@typeach/core 0.0.15 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/typeach.js CHANGED
@@ -1,206 +1,496 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, getCurrentInstance as s, getCurrentScope as c, inject as l, markRaw as u, mergeModels as d, mergeProps as f, nextTick as ee, onBeforeMount as te, onBeforeUnmount as ne, onMounted as p, onScopeDispose as re, openBlock as m, provide as h, ref as g, renderSlot as _, resolveDynamicComponent as v, shallowReadonly as ie, shallowRef as ae, toRefs as oe, toValue as y, unref as b, useId as x, useModel as S, useTemplateRef as C, watch as w, watchEffect as se, withCtx as T, withDirectives as ce, withKeys as E, withModifiers as le } from "vue";
2
- import { defineStore as ue } from "pinia";
3
- //#region src/utils/date/date-modifiers.ts
4
- var D = (e, t) => {
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, getCurrentInstance as s, getCurrentScope as c, inject as l, isRef as u, markRaw as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeProps as h, onBeforeMount as g, onBeforeUnmount as _, onMounted as v, onScopeDispose as y, openBlock as b, provide as x, ref as S, renderSlot as C, resolveDynamicComponent as w, shallowReadonly as ee, shallowRef as te, toRefs as ne, toValue as T, unref as E, useId as D, useModel as O, useTemplateRef as k, vModelDynamic as re, vModelText as ie, watch as A, watchEffect as ae, withCtx as j, withDirectives as oe, withKeys as se } from "vue";
2
+ import { defineStore as ce } from "pinia";
3
+ //#region ../../node_modules/.pnpm/hotkeys-js@4.0.8/node_modules/hotkeys-js/dist/hotkeys-js.js
4
+ var le = typeof navigator < "u" && navigator.userAgent.toLowerCase().indexOf("firefox") > 0;
5
+ function ue(e, t, n, r) {
6
+ e.addEventListener ? e.addEventListener(t, n, r) : e.attachEvent && e.attachEvent(`on${t}`, n);
7
+ }
8
+ function de(e, t, n, r) {
9
+ e && (e.removeEventListener ? e.removeEventListener(t, n, r) : e.detachEvent && e.detachEvent(`on${t}`, n));
10
+ }
11
+ function fe(e, t) {
12
+ let n = t.slice(0, t.length - 1), r = [];
13
+ for (let t = 0; t < n.length; t++) r.push(e[n[t].toLowerCase()]);
14
+ return r;
15
+ }
16
+ function pe(e) {
17
+ typeof e != "string" && (e = ""), e = e.replace(/\s/g, "");
18
+ let t = e.split(","), n = t.lastIndexOf("");
19
+ for (; n >= 0;) t[n - 1] += ",", t.splice(n, 1), n = t.lastIndexOf("");
20
+ return t;
21
+ }
22
+ function me(e, t) {
23
+ let n = e.length >= t.length ? e : t, r = e.length >= t.length ? t : e, i = !0;
24
+ for (let e = 0; e < n.length; e++) r.indexOf(n[e]) === -1 && (i = !1);
25
+ return i;
26
+ }
27
+ function he(e, t, n) {
28
+ let r = e.keyCode || e.which || e.charCode;
29
+ if (e.key) {
30
+ let r = e.key.toLowerCase();
31
+ if (r in t) return t[r];
32
+ if (r in n) return n[r];
33
+ if (/^[0-9]$/.test(e.key)) return e.key.charCodeAt(0);
34
+ if (/^[a-z]$/i.test(e.key)) return e.key.toUpperCase().charCodeAt(0);
35
+ }
36
+ return e.code && /^Key[A-Z]$/.test(e.code) && (r = e.code.charCodeAt(3)), r;
37
+ }
38
+ var M = {
39
+ backspace: 8,
40
+ "⌫": 8,
41
+ tab: 9,
42
+ clear: 12,
43
+ enter: 13,
44
+ "↩": 13,
45
+ return: 13,
46
+ esc: 27,
47
+ escape: 27,
48
+ space: 32,
49
+ left: 37,
50
+ up: 38,
51
+ right: 39,
52
+ down: 40,
53
+ arrowup: 38,
54
+ arrowdown: 40,
55
+ arrowleft: 37,
56
+ arrowright: 39,
57
+ del: 46,
58
+ delete: 46,
59
+ ins: 45,
60
+ insert: 45,
61
+ home: 36,
62
+ end: 35,
63
+ pageup: 33,
64
+ pagedown: 34,
65
+ capslock: 20,
66
+ num_0: 96,
67
+ num_1: 97,
68
+ num_2: 98,
69
+ num_3: 99,
70
+ num_4: 100,
71
+ num_5: 101,
72
+ num_6: 102,
73
+ num_7: 103,
74
+ num_8: 104,
75
+ num_9: 105,
76
+ num_multiply: 106,
77
+ num_add: 107,
78
+ num_enter: 108,
79
+ num_subtract: 109,
80
+ num_decimal: 110,
81
+ num_divide: 111,
82
+ "⇪": 20,
83
+ ",": 188,
84
+ ".": 190,
85
+ "/": 191,
86
+ "`": 192,
87
+ "-": le ? 173 : 189,
88
+ "=": le ? 61 : 187,
89
+ ";": le ? 59 : 186,
90
+ "'": 222,
91
+ "{": 219,
92
+ "}": 221,
93
+ "[": 219,
94
+ "]": 221,
95
+ "\\": 220
96
+ }, N = {
97
+ "⇧": 16,
98
+ shift: 16,
99
+ "⌥": 18,
100
+ alt: 18,
101
+ option: 18,
102
+ "⌃": 17,
103
+ ctrl: 17,
104
+ control: 17,
105
+ "⌘": 91,
106
+ cmd: 91,
107
+ meta: 91,
108
+ command: 91
109
+ }, ge = {
110
+ 16: "shiftKey",
111
+ 18: "altKey",
112
+ 17: "ctrlKey",
113
+ 91: "metaKey",
114
+ shiftKey: 16,
115
+ ctrlKey: 17,
116
+ altKey: 18,
117
+ metaKey: 91
118
+ }, P = {
119
+ 16: !1,
120
+ 18: !1,
121
+ 17: !1,
122
+ 91: !1
123
+ }, F = {};
124
+ for (let e = 1; e < 20; e++) M[`f${e}`] = 111 + e;
125
+ var I = [], _e = null, L = null, ve = "all", R = /* @__PURE__ */ new Map(), z = (e) => M[e.toLowerCase()] || N[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), ye = (e) => Object.keys(M).find((t) => M[t] === e), be = (e) => Object.keys(N).find((t) => N[t] === e), xe = (e) => {
126
+ ve = e || "all";
127
+ }, Se = () => ve || "all", Ce = () => I.slice(0), we = () => I.map((e) => ye(e) || be(e) || String.fromCharCode(e)), Te = () => {
128
+ let e = [];
129
+ return Object.keys(F).forEach((t) => {
130
+ F[t].forEach(({ key: t, scope: n, mods: r, shortcut: i }) => {
131
+ e.push({
132
+ scope: n,
133
+ shortcut: i,
134
+ mods: r,
135
+ keys: t.split("+").map((e) => z(e))
136
+ });
137
+ });
138
+ }), e;
139
+ }, Ee = (e) => {
140
+ let t = e.target || e.srcElement, { tagName: n } = t, r = !0, i = n === "INPUT" && ![
141
+ "checkbox",
142
+ "radio",
143
+ "range",
144
+ "button",
145
+ "file",
146
+ "reset",
147
+ "submit",
148
+ "color"
149
+ ].includes(t.type);
150
+ return (t.isContentEditable || (i || n === "TEXTAREA" || n === "SELECT") && !t.readOnly) && (r = !1), r;
151
+ }, De = (e) => (typeof e == "string" && (e = z(e)), I.indexOf(e) !== -1), Oe = (e, t) => {
152
+ let n, r;
153
+ e ||= Se();
154
+ for (let t in F) if (Object.prototype.hasOwnProperty.call(F, t)) for (n = F[t], r = 0; r < n.length;) n[r].scope === e ? n.splice(r, 1).forEach(({ element: e }) => Fe(e)) : r++;
155
+ Se() === e && xe(t || "all");
156
+ };
157
+ function ke(e) {
158
+ let t = he(e, M, N);
159
+ e.key && e.key.toLowerCase() === "capslock" && (t = z(e.key));
160
+ let n = I.indexOf(t);
161
+ if (n >= 0 && I.splice(n, 1), e.key && e.key.toLowerCase() === "meta" && I.splice(0, I.length), (t === 93 || t === 224) && (t = 91), t in P) {
162
+ P[t] = !1;
163
+ for (let e in N) N[e] === t && (B[e] = !1);
164
+ }
165
+ }
166
+ var Ae = (e, ...t) => {
167
+ if (e === void 0) Object.keys(F).forEach((e) => {
168
+ Array.isArray(F[e]) && F[e].forEach((e) => je(e)), delete F[e];
169
+ }), Fe(null);
170
+ else if (Array.isArray(e)) e.forEach((e) => {
171
+ e.key && je(e);
172
+ });
173
+ else if (typeof e == "object") e.key && je(e);
174
+ else if (typeof e == "string") {
175
+ let [n, r] = t;
176
+ typeof n == "function" && (r = n, n = ""), je({
177
+ key: e,
178
+ scope: n,
179
+ method: r,
180
+ splitKey: "+"
181
+ });
182
+ }
183
+ }, je = ({ key: e, scope: t, method: n, splitKey: r = "+" }) => {
184
+ pe(e).forEach((e) => {
185
+ let i = e.split(r), a = i.length, o = i[a - 1], s = o === "*" ? "*" : z(o);
186
+ if (!F[s]) return;
187
+ t ||= Se();
188
+ let c = a > 1 ? fe(N, i) : [], l = [];
189
+ F[s] = F[s].filter((e) => {
190
+ let r = (!n || e.method === n) && e.scope === t && me(e.mods, c);
191
+ return r && l.push(e.element), !r;
192
+ }), l.forEach((e) => Fe(e));
193
+ });
194
+ };
195
+ function Me(e, t, n, r) {
196
+ if (t.element !== r) return;
197
+ let i;
198
+ if (t.scope === n || t.scope === "all") {
199
+ i = t.mods.length > 0;
200
+ for (let e in P) Object.prototype.hasOwnProperty.call(P, e) && (!P[e] && t.mods.indexOf(+e) > -1 || P[e] && t.mods.indexOf(+e) === -1) && (i = !1);
201
+ (t.mods.length === 0 && !P[16] && !P[18] && !P[17] && !P[91] || i || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(I), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble &&= !0));
202
+ }
203
+ }
204
+ function Ne(e, t) {
205
+ let n = F["*"], r = he(e, M, N);
206
+ if (e.key && e.key.toLowerCase() === "capslock" || !(B.filter || Ee).call(this, e)) return;
207
+ if ((r === 93 || r === 224) && (r = 91), I.indexOf(r) === -1 && r !== 229 && I.push(r), [
208
+ "metaKey",
209
+ "ctrlKey",
210
+ "altKey",
211
+ "shiftKey"
212
+ ].forEach((t) => {
213
+ let n = ge[t];
214
+ e[t] && I.indexOf(n) === -1 ? I.push(n) : !e[t] && I.indexOf(n) > -1 ? I.splice(I.indexOf(n), 1) : t === "metaKey" && e[t] && (I = I.filter((e) => e in ge || e === r));
215
+ }), r in P) {
216
+ P[r] = !0;
217
+ for (let t in N) Object.prototype.hasOwnProperty.call(N, t) && (B[t] = e[ge[N[t]]]);
218
+ if (!n) return;
219
+ }
220
+ for (let t in P) Object.prototype.hasOwnProperty.call(P, t) && (P[t] = e[ge[t]]);
221
+ e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (I.indexOf(17) === -1 && I.push(17), I.indexOf(18) === -1 && I.push(18), P[17] = !0, P[18] = !0);
222
+ let i = Se();
223
+ if (n) for (let r = 0; r < n.length; r++) n[r].scope === i && (e.type === "keydown" && n[r].keydown || e.type === "keyup" && n[r].keyup) && Me(e, n[r], i, t);
224
+ if (!(r in F)) return;
225
+ let a = F[r], o = a.length;
226
+ for (let n = 0; n < o; n++) if ((e.type === "keydown" && a[n].keydown || e.type === "keyup" && a[n].keyup) && a[n].key) {
227
+ let r = a[n], { splitKey: o } = r, s = r.key.split(o), c = [];
228
+ for (let e = 0; e < s.length; e++) c.push(z(s[e]));
229
+ c.sort().join("") === I.sort().join("") && Me(e, r, i, t);
230
+ }
231
+ }
232
+ var B = function e(t, n, r) {
233
+ I = [];
234
+ let i = pe(t), a = [], o = "all", s = document, c = 0, l = !1, u = !0, d = "+", f = !1, p = !1;
235
+ if (r === void 0 && typeof n == "function" && (r = n), Object.prototype.toString.call(n) === "[object Object]") {
236
+ let e = n;
237
+ e.scope && (o = e.scope), e.element && (s = e.element), e.keyup && (l = e.keyup), e.keydown !== void 0 && (u = e.keydown), e.capture !== void 0 && (f = e.capture), typeof e.splitKey == "string" && (d = e.splitKey), e.single === !0 && (p = !0);
238
+ }
239
+ for (typeof n == "string" && (o = n), p && Ae(t, o); c < i.length; c++) {
240
+ let e = i[c].split(d);
241
+ a = [], e.length > 1 && (a = fe(N, e));
242
+ let t = e[e.length - 1];
243
+ t = t === "*" ? "*" : z(t), t in F || (F[t] = []), F[t].push({
244
+ keyup: l,
245
+ keydown: u,
246
+ scope: o,
247
+ mods: a,
248
+ shortcut: i[c],
249
+ method: r,
250
+ key: i[c],
251
+ splitKey: d,
252
+ element: s
253
+ });
254
+ }
255
+ if (s !== void 0 && typeof window < "u") {
256
+ if (!R.has(s)) {
257
+ let e = (e = window.event) => Ne(e, s), t = (e = window.event) => {
258
+ Ne(e, s), ke(e);
259
+ };
260
+ R.set(s, {
261
+ keydownListener: e,
262
+ keyupListenr: t,
263
+ capture: f
264
+ }), ue(s, "keydown", e, f), ue(s, "keyup", t, f);
265
+ }
266
+ if (!_e) {
267
+ let e = () => {
268
+ I = [];
269
+ };
270
+ _e = {
271
+ listener: e,
272
+ capture: f
273
+ }, ue(window, "focus", e, f);
274
+ }
275
+ if (!L && typeof document < "u") {
276
+ let t = () => {
277
+ I = [];
278
+ for (let e in P) P[e] = !1;
279
+ for (let t in N) e[t] = !1;
280
+ }, n = t, r = t;
281
+ document.addEventListener("fullscreenchange", n), document.addEventListener("webkitfullscreenchange", r), L = {
282
+ fullscreen: n,
283
+ webkit: r
284
+ };
285
+ }
286
+ }
287
+ };
288
+ function Pe(e, t = "all") {
289
+ Object.keys(F).forEach((n) => {
290
+ F[n].filter((n) => n.scope === t && (n.shortcut === e || n.shortcut === "*")).forEach((e) => {
291
+ e && e.method && e.method({}, e);
292
+ });
293
+ });
294
+ }
295
+ function Fe(e) {
296
+ let t = Object.values(F).flat();
297
+ if (t.findIndex(({ element: t }) => t === e) < 0 && e) {
298
+ let { keydownListener: t, keyupListenr: n, capture: r } = R.get(e) || {};
299
+ t && n && (de(e, "keyup", n, r), de(e, "keydown", t, r), R.delete(e));
300
+ }
301
+ if (t.length <= 0 || R.size <= 0) {
302
+ if (Array.from(R.keys()).forEach((e) => {
303
+ let { keydownListener: t, keyupListenr: n, capture: r } = R.get(e) || {};
304
+ t && n && (de(e, "keyup", n, r), de(e, "keydown", t, r), R.delete(e));
305
+ }), R.clear(), Object.keys(F).forEach((e) => delete F[e]), _e) {
306
+ let { listener: e, capture: t } = _e;
307
+ de(window, "focus", e, t), _e = null;
308
+ }
309
+ L && typeof document < "u" && (document.removeEventListener("fullscreenchange", L.fullscreen), document.removeEventListener("webkitfullscreenchange", L.webkit), L = null);
310
+ }
311
+ }
312
+ var Ie = {
313
+ getPressedKeyString: we,
314
+ setScope: xe,
315
+ getScope: Se,
316
+ deleteScope: Oe,
317
+ getPressedKeyCodes: Ce,
318
+ getAllKeyCodes: Te,
319
+ isPressed: De,
320
+ filter: Ee,
321
+ trigger: Pe,
322
+ unbind: Ae,
323
+ keyMap: M,
324
+ modifier: N,
325
+ modifierMap: ge
326
+ };
327
+ for (let e in Ie) {
328
+ let t = e;
329
+ Object.prototype.hasOwnProperty.call(Ie, t) && (B[t] = Ie[t]);
330
+ }
331
+ if (typeof window < "u") {
332
+ let e = window.hotkeys;
333
+ B.noConflict = (t) => (t && window.hotkeys === B && (window.hotkeys = e), B), window.hotkeys = B;
334
+ }
335
+ //#endregion
336
+ //#region src/hooks/keyboard/utils.ts
337
+ var V = /* @__PURE__ */ function(e) {
338
+ return e[e.Forward = 1] = "Forward", e[e.Backward = 2] = "Backward", e[e.JumpForward = 3] = "JumpForward", e[e.JumpBackward = 4] = "JumpBackward", e[e.End = 5] = "End", e[e.Start = 6] = "Start", e;
339
+ }({}), Le = [
340
+ 1,
341
+ 2,
342
+ 3,
343
+ 4,
344
+ 5,
345
+ 6
346
+ ], Re = /* @__PURE__ */ function(e) {
347
+ return e[e.Forward = 1] = "Forward", e[e.Backward = 2] = "Backward", e;
348
+ }({}), ze = [1, 2], Be = (e) => Le.includes(e), Ve = (e) => ze.includes(e), He = (e, t, n) => {
349
+ switch (t) {
350
+ case 1: return Math.min(e + 1, n);
351
+ case 2: return Math.max(e - 1, 0);
352
+ case 3: return Math.min(e + 10, n);
353
+ case 4: return Math.max(e - 10, 0);
354
+ case 5: return n;
355
+ case 6: return 0;
356
+ default: return e;
357
+ }
358
+ }, Ue = (e, t, n, r, i = 10) => {
359
+ let a = t === 1;
360
+ for (let t = r; a ? t > 0 : t < 0; a ? t-- : t++) {
361
+ let r = e + t * i;
362
+ if (r >= 0 && r <= n) return r;
363
+ }
364
+ return e;
365
+ }, We = (e, t, n) => Math.max(Math.min(e + t, n), 0), Ge = (e) => {
366
+ let t = (t) => {
367
+ let { getElements: n, navigateTo: r, isNavigatedTo: i } = e, a = n(), o = a.findIndex((e) => i(e)), s = t(o, a.length - 1), c = a[s];
368
+ c = a[s], c && r(c, a[o]);
369
+ };
370
+ return {
371
+ navigate(e) {
372
+ return t((t, n) => He(t, e, n));
373
+ },
374
+ navigateByPage(e, n) {
375
+ return t((t, r) => Ue(t, e < 0 ? Re.Backward : Re.Forward, r, e, n));
376
+ },
377
+ navigateCustom(e) {
378
+ return t((t, n) => We(t, e, n));
379
+ }
380
+ };
381
+ }, Ke = (e, t) => {
5
382
  let n = new Date(e);
6
383
  return n.setDate(n.getDate() + t), n;
7
- }, de = (e, t) => {
384
+ }, qe = (e, t) => {
8
385
  let n = new Date(e);
9
386
  return n.setMonth(n.getMonth() + t), n;
10
- }, fe = (e, t) => {
387
+ }, Je = (e, t) => {
11
388
  let n = new Date(e);
12
389
  return n.setFullYear(n.getFullYear() + t), n;
13
- }, O = (e) => D(e, 1), k = (e) => D(e, -1), pe = (e) => D(e, 7), me = (e) => D(e, -7), he = (e) => de(e, 1), ge = (e) => de(e, -1), _e = (e) => fe(e, 1), ve = (e) => fe(e, -1), ye = (e, t) => {
390
+ }, Ye = (e) => Ke(e, 1), Xe = (e) => Ke(e, -1), Ze = (e) => Ke(e, 7), Qe = (e) => Ke(e, -7), $e = (e) => qe(e, 1), et = (e) => qe(e, -1), tt = (e) => Je(e, 1), nt = (e) => Je(e, -1), rt = (e, t) => {
14
391
  let n = new Date(e), r = n.getDay(), i = r >= t ? r - t : 6 - r;
15
392
  return n.setDate(n.getDate() - i), n;
16
- }, be = (e, t) => D(ye(e, t), 6), A = (e) => {
393
+ }, it = (e, t) => Ke(rt(e, t), 6), at = (e) => {
17
394
  let t = `${e.getFullYear()}`.padStart(4, "0"), n = `${e.getMonth() + 1}`.padStart(2, "0");
18
- return we(/* @__PURE__ */ new Date(`${t}-${n}-01`));
19
- }, xe = (e) => {
20
- let t = A(e);
395
+ return lt(/* @__PURE__ */ new Date(`${t}-${n}-01`));
396
+ }, ot = (e) => {
397
+ let t = at(e);
21
398
  return t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1), t;
22
- }, Se = (e) => new Date(e.getFullYear(), 0, 1), Ce = (e) => new Date(e.getFullYear(), 11, 31), we = (e) => {
399
+ }, st = (e) => new Date(e.getFullYear(), 0, 1), ct = (e) => new Date(e.getFullYear(), 11, 31), lt = (e) => {
23
400
  let t = new Date(e), n = t.getTimezoneOffset();
24
401
  return t.setMinutes(t.getMinutes() + n), t;
25
- }, Te = (e, t) => Intl.DateTimeFormat(t, {
402
+ }, ut = (e, t) => Intl.DateTimeFormat(t, {
26
403
  weekday: "long",
27
404
  day: "numeric",
28
405
  month: "long",
29
406
  year: "numeric"
30
- }).format(e), Ee = (e) => e.getDate(), De = (e, t) => Intl.DateTimeFormat(t, { weekday: "long" }).format(e), Oe = (e) => {
407
+ }).format(e), dt = (e) => e.getDate(), ft = (e, t) => Intl.DateTimeFormat(t, { weekday: "long" }).format(e), pt = (e) => {
31
408
  let t = new Date(e);
32
409
  t.setDate(t.getDate() + 4 - t.getDay());
33
- let n = Se(e);
410
+ let n = st(e);
34
411
  return Math.floor(((t - +n) / 864e5 + 1) / 7);
35
- }, ke = (e, t) => ({
36
- name: Me(e, t),
412
+ }, mt = (e, t) => ({
413
+ name: _t(e, t),
37
414
  number: e.getMonth() + 1
38
- }), Ae = (e) => e.getFullYear(), je = (e, t) => Array.from({ length: 7 }).fill(void 0).map((t, n) => (e + n) % 7 + 1).map((e) => De(we(/* @__PURE__ */ new Date(`2006-01-0${e}`)), t)), Me = (e, t) => Intl.DateTimeFormat(t, { month: "long" }).format(e), Ne = (e) => Array.from({ length: 12 }).fill(void 0).map((t, n) => ke(/* @__PURE__ */ new Date(`2006-${String(n + 1).padStart(2, "0")}-01`), e)), j = /* @__PURE__ */ function(e) {
415
+ }), ht = (e) => e.getFullYear(), gt = (e, t) => Array.from({ length: 7 }).fill(void 0).map((t, n) => (e + n) % 7 + 1).map((e) => ft(lt(/* @__PURE__ */ new Date(`2006-01-0${e}`)), t)), _t = (e, t) => Intl.DateTimeFormat(t, { month: "long" }).format(e), vt = (e) => Array.from({ length: 12 }).fill(void 0).map((t, n) => mt(/* @__PURE__ */ new Date(`2006-${String(n + 1).padStart(2, "0")}-01`), e)), yt = /* @__PURE__ */ function(e) {
39
416
  return e[e.Monday = 1] = "Monday", e[e.Tuesday = 2] = "Tuesday", e[e.Wednesday = 3] = "Wednesday", e[e.Thursday = 4] = "Thursday", e[e.Friday = 5] = "Friday", e[e.Saturday = 6] = "Saturday", e[e.Sunday = 7] = "Sunday", e;
40
- }({}), Pe = (e) => {
41
- let t = [], n = A(e);
42
- for (; n.getMonth() === e.getMonth();) t.push(n), n = O(n);
417
+ }({}), bt = (e) => {
418
+ let t = [], n = at(e);
419
+ for (; n.getMonth() === e.getMonth();) t.push(n), n = Ye(n);
43
420
  return t;
44
- }, M = (e, t) => {
45
- let n = Pe(e), { daysBefore: r, daysAfter: i } = Ie(e, t);
421
+ }, xt = (e, t) => {
422
+ let n = bt(e), { daysBefore: r, daysAfter: i } = Ct(e, t);
46
423
  return [
47
424
  ...r,
48
425
  ...n,
49
426
  ...i
50
427
  ];
51
- }, Fe = (e) => {
428
+ }, St = (e) => {
52
429
  let t = [];
53
430
  for (let n = 0; n < e.length; n += 7) t.push(e.slice(n, n + 7));
54
431
  return t.map((e) => ({
55
432
  days: e,
56
- number: Oe(e[e.length - 1])
433
+ number: pt(e[e.length - 1])
57
434
  }));
58
- }, Ie = (e, t) => {
59
- let n = A(e), r = n.getDay() === 0 ? 7 : n.getDay(), i = xe(e), a = i.getDay() === 0 ? 7 : i.getDay(), o = t === j.Monday ? 7 : t - 1, s = [], c = [], l = (7 - t + r) % 7, u = k(n);
60
- for (; l > 0;) s.push(u), u = k(u), --l;
435
+ }, Ct = (e, t) => {
436
+ let n = at(e), r = n.getDay() === 0 ? 7 : n.getDay(), i = ot(e), a = i.getDay() === 0 ? 7 : i.getDay(), o = t === yt.Monday ? 7 : t - 1, s = [], c = [], l = (7 - t + r) % 7, u = Xe(n);
437
+ for (; l > 0;) s.push(u), u = Xe(u), --l;
61
438
  s.reverse();
62
- let d = (7 - a + o) % 7, f = O(i);
63
- for (; d > 0;) c.push(f), f = O(f), --d;
439
+ let d = (7 - a + o) % 7, f = Ye(i);
440
+ for (; d > 0;) c.push(f), f = Ye(f), --d;
64
441
  return {
65
442
  daysBefore: s,
66
443
  daysAfter: c
67
444
  };
68
- }, N = (e) => ({
445
+ }, wt = (e) => ({
69
446
  start: e.start < e.end ? e.start : e.end,
70
447
  end: e.start < e.end ? e.end : e.start
71
- }), Le = (e, t) => {
72
- let { start: n, end: r } = N(t);
448
+ }), Tt = (e, t) => {
449
+ let { start: n, end: r } = wt(t);
73
450
  return e >= n && e <= r;
74
- }, Re = (e, t) => {
75
- let { start: n, end: r } = N(t);
451
+ }, Et = (e, t) => {
452
+ let { start: n, end: r } = wt(t);
76
453
  return n.setHours(0, 0, 0, 0), r.setHours(23, 59, 59, 999), e >= n && e <= r;
77
- }, P = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), ze = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), F = (e) => e == null, I = (e) => e instanceof HTMLElement, L = (e) => {
454
+ }, Dt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Ot = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), kt = (e) => e == null, At = (e) => e instanceof HTMLElement, jt = (e) => {
78
455
  let { disabled: t } = e.dataset;
79
- return e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || !F(t) && t !== "";
80
- }, Be = (e) => !F(e) && e === document.activeElement, Ve = (e) => Be(e) || e.getAttribute("tabindex") === "0", R = (e) => [...e].sort((e, t) => e === t ? 0 : e.compareDocumentPosition(t) & 2 ? 1 : -1), He = (e) => e.match(/^[\P{Cc}\P{Cn}\P{Cs}]$/u) !== null, Ue = (e) => He(e) && e !== " ", We = (e, t) => e.length > 1 && e.split("").every((e) => e === t), Ge = (e, t) => e.trim().toLowerCase().startsWith(t.trim().toLowerCase()), Ke = (e, t = j.Monday) => ({ onKeyDown(n) {
81
- switch ([
82
- "ArrowLeft",
83
- "ArrowRight",
84
- "ArrowUp",
85
- "ArrowDown",
86
- "PageUp",
87
- "PageDown",
88
- "Home",
89
- "End"
90
- ].includes(n.key) && n.preventDefault(), n.key) {
91
- case "ArrowLeft":
92
- e.value = k(e.value);
93
- break;
94
- case "ArrowRight":
95
- e.value = O(e.value);
96
- break;
97
- case "ArrowUp":
98
- e.value = me(e.value);
99
- break;
100
- case "ArrowDown":
101
- e.value = pe(e.value);
102
- break;
103
- case "PageUp":
104
- e.value = n.shiftKey ? ve(e.value) : ge(e.value);
105
- break;
106
- case "PageDown":
107
- e.value = n.shiftKey ? _e(e.value) : he(e.value);
108
- break;
109
- case "Home":
110
- e.value = n.shiftKey ? A(e.value) : ye(e.value, t);
111
- break;
112
- case "End":
113
- e.value = n.shiftKey ? xe(e.value) : be(e.value, t);
114
- break;
115
- default: break;
116
- }
117
- } }), qe = (e) => {
118
- let t = (t, n, i = !1) => {
119
- let { getElements: a, moveTo: o, isMovedTo: s } = e, c = a(), l = c.findIndex((e) => s(e)), u = n(l, c.length), d = c[u], f = t === "forwards" ? u++ : u--;
120
- if (f < 0) return i ? "backwards" : r("start");
121
- if (f > c.length - 1) return i ? "forwards" : r("end");
122
- d = c[f], d && o(d, c[l]);
123
- }, n = (e, n = !1) => t(e > 0 ? "forwards" : "backwards", (t) => t + e, n), r = (e) => {
124
- t(e === "start" ? "forwards" : "backwards", (t, n) => e === "start" ? 0 : n - 1);
125
- }, i = (e, t) => {
126
- let r = e * t, a = n(r, !0);
127
- a && e !== 0 && i(a === "forwards" ? e - 1 : e + 1, t);
128
- };
129
- return {
130
- moveRelatively: n,
131
- moveToEdge: r,
132
- moveByPages: i
133
- };
134
- }, z = (e) => {
456
+ return e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || !kt(t) && t !== "";
457
+ }, Mt = (e) => !kt(e) && e === document.activeElement, Nt = (e) => Mt(e) || e.getAttribute("tabindex") === "0", Pt = (e) => [...e].sort((e, t) => e === t ? 0 : e.compareDocumentPosition(t) & 2 ? 1 : -1), Ft = (e) => e.clientHeight < e.scrollHeight, It = (e, t) => {
458
+ let { offsetHeight: n, offsetTop: r } = e, { offsetHeight: i, scrollTop: a } = t, o = r < a, s = r + n > a + i, c = getComputedStyle(e).scrollMarginTop || "0px", l = getComputedStyle(e).scrollMarginBottom || "0px";
459
+ o ? t.scrollTo(0, r - parseInt(l)) : s && t.scrollTo(0, r - i + n + parseInt(c));
460
+ }, Lt = (e) => e.match(/^[\P{Cc}\P{Cn}\P{Cs}]$/u) !== null, Rt = (e) => Lt(e) && e !== " " || ["Backspace", "Clear"].includes(e), zt = (e, t) => e.length > 1 && e.split("").every((e) => e === t), Bt = (e, t) => e.trim().toLowerCase().startsWith(t.trim().toLowerCase()), Vt = (e) => {
135
461
  let t = (e, t) => {
136
462
  t.filter((t) => !e?.isSameNode(t)).forEach((e) => e.setAttribute("tabindex", "-1")), e?.setAttribute("tabindex", "0");
137
463
  }, n = (n) => {
138
464
  t(n, e()), n.focus();
139
465
  };
140
- w(e, (e) => {
466
+ A(e, (e) => {
141
467
  let [n] = e, r = e.find((e) => e.matches(":focus"));
142
- !r && n && L(n) && (n = e.find((e) => !L(e))), t(r || n, e);
468
+ !r && n && jt(n) && (n = e.find((e) => !jt(e))), t(r || n, e);
143
469
  });
144
- let { moveRelatively: r, moveToEdge: i, moveByPages: a } = qe({
470
+ let { navigate: r, navigateByPage: i, navigateCustom: a } = Ge({
145
471
  getElements: e,
146
- isMovedTo: Ve,
147
- moveTo: n
472
+ isNavigatedTo: Nt,
473
+ navigateTo: n
148
474
  });
149
475
  return {
150
- moveTo: n,
151
- moveRelatively: r,
152
- moveToEdge: i,
153
- moveByPages: a,
476
+ navigateTo: n,
477
+ navigate: r,
478
+ navigateByPage: i,
479
+ navigateCustom: a,
154
480
  getCurrentTabStop() {
155
481
  return e().find((e) => e.matches(":focus") || e.tabIndex === 0);
156
482
  }
157
483
  };
158
- }, B = Symbol("grid"), Je = (e) => {
159
- let { moveRelatively: t, moveToEdge: n, moveTo: r, moveByPages: i } = z(e);
160
- return { onKeyDown(a, o) {
161
- let s = [
162
- "ArrowLeft",
163
- "ArrowRight",
164
- "ArrowUp",
165
- "ArrowDown",
166
- "PageUp",
167
- "PageDown",
168
- "Home",
169
- "End"
170
- ];
171
- if (!I(o.target)) return;
172
- s.includes(o.key) && o.preventDefault();
173
- let c = e().filter((e) => e.matches(`[data-elements-${a}="true"]`)), [l, u] = [c[0], c[c.length - 1]], d = o.target.closest(`[data-elements-${a}="true"]`);
174
- switch (o.key) {
175
- case "ArrowLeft":
176
- l?.isSameNode(d) || t(-1);
177
- break;
178
- case "ArrowRight":
179
- u?.isSameNode(d) || t(1);
180
- break;
181
- case "ArrowUp": return i(-1, c.length);
182
- case "ArrowDown": return i(1, c.length);
183
- case "PageUp": return i(-9, c.length);
184
- case "PageDown": return i(9, c.length);
185
- case "Home":
186
- o.ctrlKey ? n("start") : l && r(l);
187
- break;
188
- case "End":
189
- o.ctrlKey ? n("end") : u && r(u);
190
- break;
191
- default: break;
192
- }
193
- } };
194
- }, Ye = Symbol("roving-tabindex"), V = (e, t) => {
195
- let { moveTo: n, moveRelatively: r, moveToEdge: i, moveByPages: a, getCurrentTabStop: o } = z(t);
484
+ }, Ht = Symbol("roving-tabindex"), Ut = (e, t) => {
485
+ let { navigate: n, navigateByPage: r, navigateCustom: i, navigateTo: a, getCurrentTabStop: o } = Vt(t);
196
486
  return {
197
- moveTo: n,
198
- moveRelatively: r,
199
- moveToEdge: i,
200
- moveByPages: a,
487
+ navigate: n,
488
+ navigateByPage: r,
489
+ navigateCustom: i,
490
+ navigateTo: a,
201
491
  getCurrentTabStop: o,
202
492
  onKeyDown(t) {
203
- let n = y(e) === "vertical", a = n ? "ArrowUp" : "ArrowLeft", o = n ? "ArrowDown" : "ArrowRight";
493
+ let r = T(e) === "vertical", a = r ? "ArrowUp" : "ArrowLeft", o = r ? "ArrowDown" : "ArrowRight";
204
494
  switch ([
205
495
  o,
206
496
  a,
@@ -209,75 +499,30 @@ var D = (e, t) => {
209
499
  "Home",
210
500
  "End"
211
501
  ].includes(t.key) && t.preventDefault(), t.key) {
212
- case a: return r(-1);
213
- case o: return r(1);
214
- case "PageUp": return r(-10);
215
- case "PageDown": return r(10);
216
- case "Home": return i("start");
217
- case "End": return i("end");
502
+ case a: return n(V.Backward);
503
+ case o: return n(V.Forward);
504
+ case "PageUp": return i(-10);
505
+ case "PageDown": return i(10);
506
+ case "Home": return n(V.Start);
507
+ case "End": return n(V.End);
218
508
  default: return;
219
509
  }
220
510
  }
221
511
  };
222
- }, Xe = Symbol("listbox"), Ze = (e, t, n, r) => {
223
- let { moveTo: i, moveRelatively: a, moveToEdge: o, onKeyDown: s, getCurrentTabStop: c } = V(e, r), l = () => {
224
- c()?.dispatchEvent(new KeyboardEvent("keydown", { key: " " }));
225
- }, u = (e, t) => {
226
- let i = r(), a = i.findIndex((t) => t.getAttribute("data-value") === e), o = i.findIndex((e) => e.getAttribute("data-value") === t);
227
- if (a < 0 || o < 0 || a === o) return;
228
- let s = (a < o ? i.slice(a, o) : i.slice(o, a)).filter((e) => !L(e) && !!e.getAttribute("data-value")).map((e) => e.getAttribute("data-value"));
229
- i[a] && !L(i[a]) && s.unshift(e), i[o] && !L(i[o]) && s.push(t), n.value = [...new Set(n.value.concat(s))];
230
- }, d = (e, t) => {
231
- let n = r().at(t === "start" ? 0 : -1)?.getAttribute("data-value");
232
- n && u(e, n);
233
- }, f = (e = r()) => e.map((e) => e.getAttribute("data-value")).filter((e) => !!e);
234
- return {
235
- moveTo: i,
236
- onSpace(e, i) {
237
- if (!(I(i.target) && L(i.target))) if (n.value.includes(e)) n.value = n.value.filter((t) => t !== e);
238
- else if (y(t)) n.value = [...n.value, e];
239
- else {
240
- let t = r().filter((e) => L(e)), i = f(t);
241
- (!n.value.length || !i.includes(n.value[0])) && (n.value = [e]);
242
- }
243
- },
244
- onKeyDown(i, c) {
245
- if (!y(t) || !c.shiftKey && !c.ctrlKey) return s(c);
246
- let u = y(e) === "vertical";
247
- if (c.ctrlKey && c.key === "a") {
248
- c.preventDefault();
249
- let e = r(), t = f(e), i = f(e.filter((e) => L(e)));
250
- return t.filter((e) => !i.includes(e)).every((e) => n.value.includes(e)) ? n.value = n.value.filter((e) => i.includes(e)) : n.value = t.filter((e) => !i.includes(e) || n.value.includes(e));
251
- }
252
- if (c.shiftKey) switch (c.key) {
253
- case u ? "ArrowUp" : "ArrowLeft":
254
- c.preventDefault(), a(-1), l();
255
- break;
256
- case u ? "ArrowDown" : "ArrowRight":
257
- c.preventDefault(), a(1), l();
258
- break;
259
- case "Home":
260
- case "End":
261
- c.ctrlKey && (c.preventDefault(), d(i, c.key === "Home" ? "start" : "end"), o(c.key === "Home" ? "start" : "end"));
262
- break;
263
- default: break;
264
- }
265
- }
266
- };
267
512
  };
268
513
  //#endregion
269
514
  //#region ../../node_modules/.pnpm/@vueuse+shared@14.4.0_vue@3.5.40_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
270
- function Qe(e, t) {
271
- return c() ? (re(e, t), !0) : !1;
515
+ function Wt(e, t) {
516
+ return c() ? (y(e, t), !0) : !1;
272
517
  }
273
- var H = typeof window < "u" && typeof document < "u";
518
+ var Gt = typeof window < "u" && typeof document < "u";
274
519
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
275
- var $e = (e) => e != null, et = () => {};
276
- function tt(e) {
520
+ var Kt = (e) => e != null, qt = () => {};
521
+ function Jt(e) {
277
522
  return Array.isArray(e) ? e : [e];
278
523
  }
279
- function nt(e, t, n = {}) {
280
- let { immediate: r = !0, immediateCallback: i = !1 } = n, a = ae(!1), o;
524
+ function Yt(e, t, n = {}) {
525
+ let { immediate: r = !0, immediateCallback: i = !1 } = n, a = te(!1), o;
281
526
  function s() {
282
527
  o &&= (clearTimeout(o), void 0);
283
528
  }
@@ -287,51 +532,57 @@ function nt(e, t, n = {}) {
287
532
  function l(...n) {
288
533
  i && e(), s(), a.value = !0, o = setTimeout(() => {
289
534
  a.value = !1, o = void 0, e(...n);
290
- }, y(t));
535
+ }, T(t));
291
536
  }
292
- return r && (a.value = !0, H && l()), Qe(c), {
293
- isPending: ie(a),
537
+ return r && (a.value = !0, Gt && l()), Wt(c), {
538
+ isPending: ee(a),
294
539
  start: l,
295
540
  stop: c
296
541
  };
297
542
  }
298
- function rt(e = 1e3, n = {}) {
299
- let { controls: r = !1, callback: i } = n, a = nt(i ?? et, e, n), o = t(() => !a.isPending.value);
543
+ function Xt(e = 1e3, n = {}) {
544
+ let { controls: r = !1, callback: i } = n, a = Yt(i ?? qt, e, n), o = t(() => !a.isPending.value);
300
545
  return r ? {
301
546
  ready: o,
302
547
  ...a
303
548
  } : o;
304
549
  }
305
- function U(e, t, n) {
306
- return w(e, t, {
550
+ function Zt(e, t, n) {
551
+ return A(e, t, {
552
+ ...n,
553
+ deep: !0
554
+ });
555
+ }
556
+ function Qt(e, t, n) {
557
+ return A(e, t, {
307
558
  ...n,
308
559
  immediate: !0
309
560
  });
310
561
  }
311
562
  //#endregion
312
563
  //#region ../../node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.40_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
313
- var it = H ? window : void 0;
314
- H && window.document, H && window.navigator, H && window.location;
315
- function at(e) {
316
- let t = y(e);
564
+ var $t = Gt ? window : void 0;
565
+ Gt && window.document, Gt && window.navigator, Gt && window.location;
566
+ function en(e) {
567
+ let t = T(e);
317
568
  return t?.$el ?? t;
318
569
  }
319
- function ot() {
320
- let e = ae(!1), t = s();
321
- return t && p(() => {
570
+ function tn() {
571
+ let e = te(!1), t = s();
572
+ return t && v(() => {
322
573
  e.value = !0;
323
574
  }, t), e;
324
575
  }
325
576
  /* @__NO_SIDE_EFFECTS__ */
326
- function st(e) {
327
- let n = ot();
577
+ function nn(e) {
578
+ let n = tn();
328
579
  return t(() => (n.value, !!e()));
329
580
  }
330
- function ct(e, n, r = {}) {
331
- let { window: i = it, ...a } = r, o, s = /* @__PURE__ */ st(() => i && "MutationObserver" in i), c = () => {
581
+ function rn(e, n, r = {}) {
582
+ let { window: i = $t, ...a } = r, o, s = /* @__PURE__ */ nn(() => i && "MutationObserver" in i), c = () => {
332
583
  o &&= (o.disconnect(), void 0);
333
- }, l = w(t(() => {
334
- let t = tt(y(e)).map(at).filter($e);
584
+ }, l = A(t(() => {
585
+ let t = Jt(T(e)).map(en).filter(Kt);
335
586
  return new Set(t);
336
587
  }), (e) => {
337
588
  c(), s.value && e.size && (o = new MutationObserver(n), e.forEach((e) => o.observe(e, a)));
@@ -341,7 +592,7 @@ function ct(e, n, r = {}) {
341
592
  }), u = () => o?.takeRecords(), d = () => {
342
593
  l(), c();
343
594
  };
344
- return Qe(d), {
595
+ return Wt(d), {
345
596
  isSupported: s,
346
597
  stop: d,
347
598
  takeRecords: u
@@ -349,35 +600,44 @@ function ct(e, n, r = {}) {
349
600
  }
350
601
  //#endregion
351
602
  //#region src/hooks/keyboard/useTypeahead.ts
352
- var lt = (e) => {
353
- let t = g(""), n = rt(500, {
603
+ var an = (e, t) => {
604
+ let n = S(""), r = Xt(500, {
354
605
  controls: !0,
355
606
  callback() {
356
- t.value = "";
607
+ n.value = "";
357
608
  }
358
609
  });
359
- return { type(r) {
360
- let { getElements: i, moveTo: a, isMovedTo: o } = y(e);
361
- n.isPending.value && n.stop();
362
- let s = r.toLowerCase();
363
- t.value += s;
364
- let c = We(t.value, s) ? s : t.value, l = i(), u = l.filter((e) => Ge(e.textContent, c)), d = l.find((e) => o(e)), f = u[u.findIndex((e) => d?.isSameNode(e)) + 1];
365
- f && a(f, d), n.start();
610
+ return { type(i) {
611
+ r.isPending.value && r.stop();
612
+ let a = i.toLowerCase();
613
+ n.value += a;
614
+ let o = zt(n.value, a) ? a : n.value;
615
+ console.log("new search", o);
616
+ let s = t.value.map((e, t) => ({
617
+ ...e,
618
+ index: t
619
+ })).filter((e) => Bt(e.label, o));
620
+ if (s.length === 1) e.value = s[0].index;
621
+ else if (s.length > 0) {
622
+ let t = s.find((t) => t.index > e.value);
623
+ e.value = t ? t.index : s[0].index;
624
+ }
625
+ r.start();
366
626
  } };
367
- }, ut = /([\p{Ll}\d])(\p{Lu})/gu, dt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu, ft = /(\d)\p{Ll}|(\p{L})\d/u, pt = /[^\p{L}\d]+/giu, mt = "$1\0$2", ht = "";
368
- function gt(e) {
627
+ }, on = /([\p{Ll}\d])(\p{Lu})/gu, sn = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu, cn = /(\d)\p{Ll}|(\p{L})\d/u, ln = /[^\p{L}\d]+/giu, un = "$1\0$2", dn = "";
628
+ function fn(e) {
369
629
  let t = e.trim();
370
- t = t.replace(ut, mt).replace(dt, mt), t = t.replace(pt, "\0");
630
+ t = t.replace(on, un).replace(sn, un), t = t.replace(ln, "\0");
371
631
  let n = 0, r = t.length;
372
632
  for (; t.charAt(n) === "\0";) n++;
373
633
  if (n === r) return [];
374
634
  for (; t.charAt(r - 1) === "\0";) r--;
375
635
  return t.slice(n, r).split(/\0/g);
376
636
  }
377
- function _t(e) {
378
- let t = gt(e);
637
+ function pn(e) {
638
+ let t = fn(e);
379
639
  for (let e = 0; e < t.length; e++) {
380
- let n = t[e], r = ft.exec(n);
640
+ let n = t[e], r = cn.exec(n);
381
641
  if (r) {
382
642
  let i = r.index + (r[1] ?? r[2]).length;
383
643
  t.splice(e, 1, n.slice(0, i), n.slice(i));
@@ -385,21 +645,21 @@ function _t(e) {
385
645
  }
386
646
  return t;
387
647
  }
388
- function vt(e, t) {
389
- let [n, r, i] = xt(e, t);
390
- return n + r.map(bt(t?.locale)).join(t?.delimiter ?? " ") + i;
648
+ function mn(e, t) {
649
+ let [n, r, i] = _n(e, t);
650
+ return n + r.map(gn(t?.locale)).join(t?.delimiter ?? " ") + i;
391
651
  }
392
- function yt(e, t) {
393
- return vt(e, {
652
+ function hn(e, t) {
653
+ return mn(e, {
394
654
  delimiter: "-",
395
655
  ...t
396
656
  });
397
657
  }
398
- function bt(e) {
658
+ function gn(e) {
399
659
  return e === !1 ? (e) => e.toLowerCase() : (t) => t.toLocaleLowerCase(e);
400
660
  }
401
- function xt(e, t = {}) {
402
- let n = t.split ?? (t.separateNumbers ? _t : gt), r = t.prefixCharacters ?? ht, i = t.suffixCharacters ?? ht, a = 0, o = e.length;
661
+ function _n(e, t = {}) {
662
+ let n = t.split ?? (t.separateNumbers ? pn : fn), r = t.prefixCharacters ?? dn, i = t.suffixCharacters ?? dn, a = 0, o = e.length;
403
663
  for (; a < e.length;) {
404
664
  let t = e.charAt(a);
405
665
  if (!r.includes(t)) break;
@@ -418,87 +678,1380 @@ function xt(e, t = {}) {
418
678
  }
419
679
  //#endregion
420
680
  //#region src/hooks/useBemClass.ts
421
- var St = (e, t) => {
681
+ var vn = (e, t) => {
422
682
  let n = t ? `${t}-${e}` : e;
423
683
  return (...e) => {
424
- let t = [n, ...e].filter((e) => typeof e == "string").map((e) => yt(e)).join("__"), r = { [t]: !0 };
684
+ let t = [n, ...e].filter((e) => typeof e == "string").map((e) => hn(e)).join("__"), r = { [t]: !0 };
425
685
  for (let n of e.filter((e) => typeof e == "object")) for (let e of Object.keys(n)) {
426
686
  let i = n[e];
427
- typeof i == "string" && (r[`${t}--${i}`] = !0), typeof i == "number" && (r[`${t}--${yt(e)}-${i}`] = !0), typeof i == "boolean" && (r[`${t}--${yt(e)}`] = i);
687
+ typeof i == "string" && (r[`${t}--${i}`] = !0), typeof i == "number" && (r[`${t}--${hn(e)}-${i}`] = !0), typeof i == "boolean" && (r[`${t}--${hn(e)}`] = i);
688
+ }
689
+ return r;
690
+ };
691
+ }, yn = (e) => (t) => vn(t, e), bn = (e, n = yt.Monday, r = "en") => {
692
+ let i = S(xt(e.value, T(n))), a = t(() => ht(e.value)), o = t(() => mt(e.value, T(r))), s = t(() => St(i.value));
693
+ return A(t(() => `${a.value}${o.value.number}`), () => {
694
+ i.value = xt(e.value, T(n));
695
+ }), A(() => T(n), (t) => {
696
+ i.value = xt(e.value, t);
697
+ }), {
698
+ year: a,
699
+ month: o,
700
+ weeks: s
701
+ };
702
+ }, xn = (e, n, r, i, a) => {
703
+ let o = S([]), s = S(0), c = S(!1), l = t(() => {
704
+ if (!i) return o.value;
705
+ let e = i.value.toLowerCase().trim();
706
+ return o.value.filter((t) => t.label.toLowerCase().startsWith(e));
707
+ }), { type: u } = an(s, l), d = t(() => l.value[s.value]), f = t(() => d.value ? r.get(d.value.value) : "");
708
+ A(() => i?.value, () => {
709
+ let e = l.value.length - 1;
710
+ s.value = He(s.value, V.Start, e), h(l.value.length > 0);
711
+ });
712
+ let p = (e) => {
713
+ i && (i.value = e);
714
+ }, h = (e) => {
715
+ a && a.value !== e && (a.value = e);
716
+ }, g = (t) => {
717
+ let n = l.value[t];
718
+ !n || n.disabled || (e.value.some((e) => e === n.value) ? e.value = e.value.filter((e) => e !== n.value) : e.value = [...e.value, n.value]);
719
+ }, _ = () => {
720
+ e.value = l.value.filter((t) => !t.disabled || e.value.includes(t.value)).map((e) => e.value);
721
+ }, v = (t) => {
722
+ let n = l.value[t];
723
+ !n || n.disabled || (e.value = [n.value]);
724
+ };
725
+ return {
726
+ optionsTracker: o,
727
+ options: l,
728
+ activeIndex: s,
729
+ activeElementId: f,
730
+ onClick: () => {
731
+ h(!0);
732
+ },
733
+ onBlur: () => {
734
+ if (c.value) {
735
+ c.value = !1;
736
+ return;
737
+ }
738
+ h(!1);
739
+ },
740
+ onKeyDown: async (e) => {
741
+ let t = Sn(e, !a || a.value, !!i), r = l.value.length - 1;
742
+ if (Be(t)) {
743
+ e.preventDefault(), s.value = He(s.value, t, r), h(!0);
744
+ return;
745
+ }
746
+ switch (t) {
747
+ case "clear":
748
+ p("");
749
+ break;
750
+ case "open":
751
+ case "close":
752
+ h(t === "open");
753
+ break;
754
+ case "select":
755
+ n.value ? (g(s.value), p("")) : (v(s.value), p(d.value?.label || ""), await m(), h(!1));
756
+ break;
757
+ case "select-all":
758
+ n.value && _();
759
+ break;
760
+ case "type":
761
+ i ? h(!0) : u(e.key);
762
+ break;
763
+ default: break;
764
+ }
765
+ },
766
+ onOptionClick: (e) => {
767
+ s.value = e, n.value ? g(e) : v(e), p(""), document.getElementById(r.get("input"))?.focus();
768
+ },
769
+ onOptionMouseDown: () => {
770
+ c.value = !0;
771
+ },
772
+ onOptionMouseUp: () => {
773
+ setTimeout(() => {
774
+ n.value || h(!1);
775
+ }, 0);
776
+ }
777
+ };
778
+ }, Sn = (e, t, n) => {
779
+ let { key: r, altKey: i, ctrlKey: a, metaKey: o } = e, s = [
780
+ "ArrowDown",
781
+ "ArrowUp",
782
+ "Enter",
783
+ " ",
784
+ "Home",
785
+ "End"
786
+ ], c = ["Backspace", "Clear"];
787
+ if (!t && s.includes(r)) return "open";
788
+ if (c.includes(r) || Rt(r) && !i && !a && !o) return "type";
789
+ switch (r) {
790
+ case "ArrowUp":
791
+ case "ArrowLeft": return t ? V.Backward : V.End;
792
+ case "ArrowDown":
793
+ case "ArrowRight": return t ? V.Forward : void 0;
794
+ case "PageUp": return V.JumpBackward;
795
+ case "PageDown": return V.JumpForward;
796
+ case "Home": return V.Start;
797
+ case "End": return V.End;
798
+ case "Enter": return "select";
799
+ case " ": return n ? void 0 : "select";
800
+ case "Escape": return t ? "close" : "clear";
801
+ case "a":
802
+ case "A": return a ? "select-all" : void 0;
803
+ default: return;
804
+ }
805
+ }, Cn = (e) => {
806
+ let n = S([]), r = t(() => n.value.sort((e, t) => e === t ? 0 : e.compareDocumentPosition(t) & 2 ? 1 : -1)), i = () => document.querySelectorAll(":is(h1, h2, h3, h4, h5, h6):not(dialog *)"), a = t(() => {
807
+ let e = [], t = [];
808
+ for (let n of r.value) {
809
+ let r = parseInt(n.tagName.substring(1), 10), i = {
810
+ heading: n,
811
+ children: [],
812
+ level: r
813
+ };
814
+ for (; t.length >= r;) t.pop();
815
+ t.length === 0 ? e.push(i) : t[t.length - 1]?.children?.push(i), t.push(i);
816
+ }
817
+ return e;
818
+ }), o = (t) => e ? t.map((t) => {
819
+ let n = {
820
+ level: t.level,
821
+ heading: e(t.heading, t.level),
822
+ children: t.children
823
+ };
824
+ return t.children && (n.children = o(t.children)), n;
825
+ }) : t;
826
+ return v(async () => {
827
+ await m(), n.value = Array.from(i());
828
+ }), rn(document.body, (e) => {
829
+ let t = Array.from(i());
830
+ t.some((t) => e.some((e) => [...e.addedNodes, ...e.removedNodes].includes(t))) && (n.value = t);
831
+ }, {
832
+ childList: !0,
833
+ subtree: !0
834
+ }), { documentOutline: t(() => o(a.value)) };
835
+ }, H = (e, n) => {
836
+ let r = S(/* @__PURE__ */ new Map()), i = n ? {
837
+ items: r,
838
+ parent: n
839
+ } : l(`${e}-elements`, {
840
+ items: r,
841
+ parent: S()
842
+ });
843
+ return n && x(`${e}-elements`, i), {
844
+ getElements: (t = !0) => {
845
+ let n = i.parent.value;
846
+ if (!n) return [];
847
+ let r = Array.from(n.querySelectorAll(`[data-elements-${e}="true"]`));
848
+ return Pt(Array.from(i.items.value.values()).sort((e, t) => r.indexOf(e) - r.indexOf(t)).filter((e) => t || !jt(e)));
849
+ },
850
+ elements: t(() => Pt(Array.from(i.items.value.values())))
851
+ };
852
+ }, U = (e, t, n) => {
853
+ let r = l(`${e}-elements`, void 0);
854
+ ae((e) => {
855
+ if (!t.value) return;
856
+ let i = d(t.value);
857
+ n?.value ? r?.items.value.delete(i) : r?.items.value.set(i, t.value), e(() => r?.items.value.delete(i));
858
+ }), v(() => {
859
+ t.value?.setAttribute(`data-elements-${e}`, "true");
860
+ }), _(() => {
861
+ t.value?.removeAttribute(`data-elements-${e}`);
862
+ });
863
+ };
864
+ //#endregion
865
+ //#region ../../node_modules/.pnpm/fuse.js@7.5.0/node_modules/fuse.js/dist/fuse.mjs
866
+ function W(e) {
867
+ return Array.isArray ? Array.isArray(e) : jn(e) === "[object Array]";
868
+ }
869
+ function wn(e) {
870
+ if (typeof e == "string") return e;
871
+ if (typeof e == "bigint") return e.toString();
872
+ let t = e + "";
873
+ return t == "0" && 1 / e == -Infinity ? "-0" : t;
874
+ }
875
+ function Tn(e) {
876
+ return e == null ? "" : wn(e);
877
+ }
878
+ function G(e) {
879
+ return typeof e == "string";
880
+ }
881
+ function En(e) {
882
+ return typeof e == "number";
883
+ }
884
+ function Dn(e) {
885
+ return e === !0 || e === !1 || kn(e) && jn(e) == "[object Boolean]";
886
+ }
887
+ function On(e) {
888
+ return typeof e == "object";
889
+ }
890
+ function kn(e) {
891
+ return On(e) && e !== null;
892
+ }
893
+ function K(e) {
894
+ return e != null;
895
+ }
896
+ function An(e) {
897
+ return !e.trim().length;
898
+ }
899
+ function jn(e) {
900
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
901
+ }
902
+ var Mn = "Incorrect 'index' type", Nn = "Invalid doc index: must be a non-negative integer within the bounds of the docs array", Pn = (e) => `Invalid value for key ${e}`, Fn = (e) => `Pattern length exceeds max of ${e}.`, In = (e) => `Missing ${e} property in key`, Ln = (e) => `Property 'weight' in key '${e}' must be a positive integer`, Rn = "Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.", zn = Object.prototype.hasOwnProperty, Bn = class {
903
+ constructor(e) {
904
+ this._keys = [], this._keyMap = {};
905
+ let t = 0;
906
+ e.forEach((e) => {
907
+ let n = Vn(e);
908
+ this._keys.push(n), this._keyMap[n.id] = n, t += n.weight;
909
+ }), this._keys.forEach((e) => {
910
+ e.weight /= t;
911
+ });
912
+ }
913
+ get(e) {
914
+ return this._keyMap[e];
915
+ }
916
+ keys() {
917
+ return this._keys;
918
+ }
919
+ toJSON() {
920
+ return JSON.stringify(this._keys);
921
+ }
922
+ };
923
+ function Vn(e) {
924
+ let t = null, n = null, r = null, i = 1, a = null;
925
+ if (G(e) || W(e)) r = e, t = Hn(e), n = Un(e);
926
+ else {
927
+ if (!zn.call(e, "name")) throw Error(In("name"));
928
+ let o = e.name;
929
+ if (r = o, zn.call(e, "weight") && e.weight !== void 0 && (i = e.weight, i <= 0)) throw Error(Ln(Un(o)));
930
+ t = Hn(o), n = Un(o), a = e.getFn ?? null;
931
+ }
932
+ return {
933
+ path: t,
934
+ id: n,
935
+ weight: i,
936
+ src: r,
937
+ getFn: a
938
+ };
939
+ }
940
+ function Hn(e) {
941
+ return W(e) ? e : e.split(".");
942
+ }
943
+ function Un(e) {
944
+ return W(e) ? e.join(".") : e;
945
+ }
946
+ function Wn(e, t) {
947
+ let n = [], r = !1, i = (e, t, a, o) => {
948
+ if (K(e)) if (!t[a]) n.push(o === void 0 ? e : {
949
+ v: e,
950
+ i: o
951
+ });
952
+ else {
953
+ let s = e[t[a]];
954
+ if (!K(s)) return;
955
+ if (a === t.length - 1 && (G(s) || En(s) || Dn(s) || typeof s == "bigint")) n.push(o === void 0 ? Tn(s) : {
956
+ v: Tn(s),
957
+ i: o
958
+ });
959
+ else if (W(s)) {
960
+ r = !0;
961
+ for (let e = 0, n = s.length; e < n; e += 1) i(s[e], t, a + 1, e);
962
+ } else t.length && i(s, t, a + 1, o);
963
+ }
964
+ };
965
+ return i(e, G(t) ? t.split(".") : t, 0), r ? n : n[0];
966
+ }
967
+ var Gn = {
968
+ includeMatches: !1,
969
+ findAllMatches: !1,
970
+ minMatchCharLength: 1
971
+ }, Kn = {
972
+ isCaseSensitive: !1,
973
+ ignoreDiacritics: !1,
974
+ includeScore: !1,
975
+ keys: [],
976
+ shouldSort: !0,
977
+ sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
978
+ }, qn = {
979
+ location: 0,
980
+ threshold: .6,
981
+ distance: 100
982
+ }, Jn = {
983
+ useExtendedSearch: !1,
984
+ useTokenSearch: !1,
985
+ tokenize: void 0,
986
+ tokenMatch: "any",
987
+ getFn: Wn,
988
+ ignoreLocation: !1,
989
+ ignoreFieldNorm: !1,
990
+ fieldNormWeight: 1
991
+ }, q = Object.freeze({
992
+ ...Kn,
993
+ ...Gn,
994
+ ...qn,
995
+ ...Jn
996
+ });
997
+ function Yn(e) {
998
+ return e >= 9 && e <= 13 || e === 32 || e === 160;
999
+ }
1000
+ function Xn(e = 1, t = 3) {
1001
+ let n = /* @__PURE__ */ new Map(), r = 10 ** t;
1002
+ return {
1003
+ get(t) {
1004
+ let i = 0, a = !1;
1005
+ for (let e = 0; e < t.length; e++) Yn(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
1006
+ if (i === 0 && (i = 1), n.has(i)) return n.get(i);
1007
+ let o = Math.round(r / i ** (.5 * e)) / r;
1008
+ return n.set(i, o), o;
1009
+ },
1010
+ clear() {
1011
+ n.clear();
1012
+ }
1013
+ };
1014
+ }
1015
+ var Zn = class {
1016
+ constructor({ getFn: e = q.getFn, fieldNormWeight: t = q.fieldNormWeight } = {}) {
1017
+ this.norm = Xn(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
1018
+ }
1019
+ setSources(e = []) {
1020
+ this.docs = e;
1021
+ }
1022
+ setIndexRecords(e = []) {
1023
+ this.records = e;
1024
+ }
1025
+ setKeys(e = []) {
1026
+ this.keys = e, this._keysMap = {}, e.forEach((e, t) => {
1027
+ this._keysMap[e.id] = t;
1028
+ });
1029
+ }
1030
+ create() {
1031
+ if (this.isCreated || !this.docs.length) return;
1032
+ this.isCreated = !0;
1033
+ let e = this.docs.length;
1034
+ this.records = Array(e);
1035
+ let t = 0;
1036
+ if (G(this.docs[0])) for (let n = 0; n < e; n++) {
1037
+ let e = this._createStringRecord(this.docs[n], n);
1038
+ e && (this.records[t++] = e);
1039
+ }
1040
+ else for (let n = 0; n < e; n++) this.records[t++] = this._createObjectRecord(this.docs[n], n);
1041
+ this.records.length = t, this.norm.clear();
1042
+ }
1043
+ add(e, t) {
1044
+ if (!Number.isInteger(t) || t < 0) throw Error(Nn);
1045
+ if (G(e)) {
1046
+ let n = this._createStringRecord(e, t);
1047
+ return n && this.records.push(n), n;
1048
+ }
1049
+ let n = this._createObjectRecord(e, t);
1050
+ return this.records.push(n), n;
1051
+ }
1052
+ removeAt(e) {
1053
+ if (!Number.isInteger(e) || e < 0) throw Error(Nn);
1054
+ for (let t = 0, n = this.records.length; t < n; t += 1) if (this.records[t].i === e) {
1055
+ this.records.splice(t, 1);
1056
+ break;
1057
+ }
1058
+ for (let t = 0, n = this.records.length; t < n; t += 1) this.records[t].i > e && --this.records[t].i;
1059
+ }
1060
+ removeAll(e) {
1061
+ let t = /* @__PURE__ */ new Set();
1062
+ for (let n of e) Number.isInteger(n) && n >= 0 && t.add(n);
1063
+ if (t.size === 0) return;
1064
+ this.records = this.records.filter((e) => !t.has(e.i));
1065
+ let n = Array.from(t).sort((e, t) => e - t);
1066
+ for (let e of this.records) {
1067
+ let t = 0, r = n.length;
1068
+ for (; t < r;) {
1069
+ let i = t + r >>> 1;
1070
+ n[i] < e.i ? t = i + 1 : r = i;
1071
+ }
1072
+ e.i -= t;
1073
+ }
1074
+ }
1075
+ getValueForItemAtKeyId(e, t) {
1076
+ return e[this._keysMap[t]];
1077
+ }
1078
+ size() {
1079
+ return this.records.length;
1080
+ }
1081
+ _createStringRecord(e, t) {
1082
+ return !K(e) || An(e) ? null : {
1083
+ v: e,
1084
+ i: t,
1085
+ n: this.norm.get(e)
1086
+ };
1087
+ }
1088
+ _createObjectRecord(e, t) {
1089
+ let n = {
1090
+ i: t,
1091
+ $: {}
1092
+ };
1093
+ for (let t = 0, r = this.keys.length; t < r; t++) {
1094
+ let r = this.keys[t], i = r.getFn ? r.getFn(e) : this.getFn(e, r.path);
1095
+ if (K(i)) {
1096
+ if (W(i)) {
1097
+ let e = [];
1098
+ for (let t = 0, n = i.length; t < n; t += 1) {
1099
+ let n = i[t];
1100
+ if (K(n)) {
1101
+ if (G(n)) {
1102
+ if (!An(n)) {
1103
+ let r = {
1104
+ v: n,
1105
+ i: t,
1106
+ n: this.norm.get(n)
1107
+ };
1108
+ e.push(r);
1109
+ }
1110
+ } else if (K(n.v)) {
1111
+ let t = G(n.v) ? n.v : Tn(n.v);
1112
+ if (!An(t)) {
1113
+ let r = {
1114
+ v: t,
1115
+ i: n.i,
1116
+ n: this.norm.get(t)
1117
+ };
1118
+ e.push(r);
1119
+ }
1120
+ }
1121
+ }
1122
+ }
1123
+ n.$[t] = e;
1124
+ } else if (G(i) && !An(i)) {
1125
+ let e = {
1126
+ v: i,
1127
+ n: this.norm.get(i)
1128
+ };
1129
+ n.$[t] = e;
1130
+ }
1131
+ }
1132
+ }
1133
+ return n;
1134
+ }
1135
+ toJSON() {
1136
+ return {
1137
+ keys: this.keys.map(({ getFn: e, ...t }) => t),
1138
+ records: this.records
1139
+ };
1140
+ }
1141
+ };
1142
+ function Qn(e, t, { getFn: n = q.getFn, fieldNormWeight: r = q.fieldNormWeight } = {}) {
1143
+ let i = new Zn({
1144
+ getFn: n,
1145
+ fieldNormWeight: r
1146
+ });
1147
+ return i.setKeys(e.map(Vn)), i.setSources(t), i.create(), i;
1148
+ }
1149
+ function $n(e, { getFn: t = q.getFn, fieldNormWeight: n = q.fieldNormWeight } = {}) {
1150
+ let { keys: r, records: i } = e, a = new Zn({
1151
+ getFn: t,
1152
+ fieldNormWeight: n
1153
+ });
1154
+ return a.setKeys(r), a.setIndexRecords(i), a;
1155
+ }
1156
+ function er(e = [], t = q.minMatchCharLength) {
1157
+ let n = [], r = -1, i = -1, a = 0;
1158
+ for (let o = e.length; a < o; a += 1) {
1159
+ let o = e[a];
1160
+ o && r === -1 ? r = a : !o && r !== -1 && (i = a - 1, i - r + 1 >= t && n.push([r, i]), r = -1);
1161
+ }
1162
+ return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
1163
+ }
1164
+ function tr(e, t, n, { location: r = q.location, distance: i = q.distance, threshold: a = q.threshold, findAllMatches: o = q.findAllMatches, minMatchCharLength: s = q.minMatchCharLength, includeMatches: c = q.includeMatches, ignoreLocation: l = q.ignoreLocation } = {}) {
1165
+ if (t.length > 32) throw Error(Fn(32));
1166
+ let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, h = (e, t) => {
1167
+ let n = e / u;
1168
+ if (l) return n;
1169
+ let r = Math.abs(f - t);
1170
+ return i ? n + r / i : r ? 1 : n;
1171
+ }, g = s > 1 || c, _ = g ? Array(d) : [], v;
1172
+ for (; (v = e.indexOf(t, m)) > -1;) {
1173
+ let e = h(0, v);
1174
+ if (p = Math.min(e, p), m = v + u, g) {
1175
+ let e = 0;
1176
+ for (; e < u;) _[v + e] = 1, e += 1;
1177
+ }
1178
+ }
1179
+ m = -1;
1180
+ let y = [], b = 1, x = 0, S = u + d, C = 1 << u - 1;
1181
+ for (let t = 0; t < u; t += 1) {
1182
+ let r = 0, i = S;
1183
+ for (; r < i;) h(t, f + i) <= p ? r = i : S = i, i = Math.floor((S - r) / 2 + r);
1184
+ S = i;
1185
+ let a = Math.max(1, f - i + 1), s = o ? d : Math.min(f + i, d) + u, c = Array(s + 2);
1186
+ c[s + 1] = (1 << t) - 1;
1187
+ for (let r = s; r >= a; --r) {
1188
+ let i = r - 1, o = n[e[i]];
1189
+ if (c[r] = (c[r + 1] << 1 | 1) & o, t && (c[r] |= (y[r + 1] | y[r]) << 1 | 1 | y[r + 1]), c[r] & C && (b = h(t, i), b <= p)) {
1190
+ if (p = b, m = i, x = t, m <= f) break;
1191
+ a = Math.max(1, 2 * f - m);
1192
+ }
1193
+ }
1194
+ if (h(t + 1, f) > p) break;
1195
+ y = c;
1196
+ }
1197
+ if (g && m >= 0) {
1198
+ let t = Math.min(d - 1, m + u - 1 + x);
1199
+ for (let r = m; r <= t; r += 1) n[e[r]] && (_[r] = 1);
1200
+ }
1201
+ let w = {
1202
+ isMatch: m >= 0,
1203
+ score: Math.max(.001, b)
1204
+ };
1205
+ if (g) {
1206
+ let e = er(_, s);
1207
+ e.length ? c && (w.indices = e) : w.isMatch = !1;
1208
+ }
1209
+ return w;
1210
+ }
1211
+ function nr(e) {
1212
+ let t = {};
1213
+ for (let n = 0, r = e.length; n < r; n += 1) {
1214
+ let i = e.charAt(n);
1215
+ t[i] = (t[i] || 0) | 1 << r - n - 1;
1216
+ }
1217
+ return t;
1218
+ }
1219
+ function rr(e) {
1220
+ if (e.length <= 1) return e;
1221
+ e.sort((e, t) => e[0] - t[0] || e[1] - t[1]);
1222
+ let t = [e[0]];
1223
+ for (let n = 1, r = e.length; n < r; n += 1) {
1224
+ let r = t[t.length - 1], i = e[n];
1225
+ i[0] <= r[1] + 1 ? r[1] = Math.max(r[1], i[1]) : t.push(i);
1226
+ }
1227
+ return t;
1228
+ }
1229
+ var ir = {
1230
+ ł: "l",
1231
+ Ł: "L",
1232
+ đ: "d",
1233
+ Đ: "D",
1234
+ ø: "o",
1235
+ Ø: "O",
1236
+ ħ: "h",
1237
+ Ħ: "H",
1238
+ ŧ: "t",
1239
+ Ŧ: "T",
1240
+ ı: "i",
1241
+ ß: "ss"
1242
+ }, ar = RegExp("[" + Object.keys(ir).join("") + "]", "g"), or = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(ar, (e) => ir[e]) : (e) => e, sr = class {
1243
+ constructor(e, { location: t = q.location, threshold: n = q.threshold, distance: r = q.distance, includeMatches: i = q.includeMatches, findAllMatches: a = q.findAllMatches, minMatchCharLength: o = q.minMatchCharLength, isCaseSensitive: s = q.isCaseSensitive, ignoreDiacritics: c = q.ignoreDiacritics, ignoreLocation: l = q.ignoreLocation } = {}) {
1244
+ if (this.options = {
1245
+ location: t,
1246
+ threshold: n,
1247
+ distance: r,
1248
+ includeMatches: i,
1249
+ findAllMatches: a,
1250
+ minMatchCharLength: o,
1251
+ isCaseSensitive: s,
1252
+ ignoreDiacritics: c,
1253
+ ignoreLocation: l
1254
+ }, e = s ? e : e.toLowerCase(), e = c ? or(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
1255
+ let u = (e, t) => {
1256
+ this.chunks.push({
1257
+ pattern: e,
1258
+ alphabet: nr(e),
1259
+ startIndex: t
1260
+ });
1261
+ }, d = this.pattern.length;
1262
+ if (d > 32) {
1263
+ let e = 0, t = d % 32, n = d - t;
1264
+ for (; e < n;) u(this.pattern.substr(e, 32), e), e += 32;
1265
+ if (t) {
1266
+ let e = d - 32;
1267
+ u(this.pattern.substr(e), e);
1268
+ }
1269
+ } else u(this.pattern, 0);
1270
+ }
1271
+ searchIn(e) {
1272
+ let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
1273
+ if (e = t ? e : e.toLowerCase(), e = n ? or(e) : e, this.pattern === e) {
1274
+ if (e.length < this.options.minMatchCharLength) return {
1275
+ isMatch: !1,
1276
+ score: 1
1277
+ };
1278
+ let t = {
1279
+ isMatch: !0,
1280
+ score: 0
1281
+ };
1282
+ return r && (t.indices = [[0, e.length - 1]]), t;
1283
+ }
1284
+ let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
1285
+ this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
1286
+ let { isMatch: m, score: h, indices: g } = tr(e, t, n, {
1287
+ location: i + p,
1288
+ distance: a,
1289
+ threshold: o,
1290
+ findAllMatches: s,
1291
+ minMatchCharLength: c,
1292
+ includeMatches: r,
1293
+ ignoreLocation: l
1294
+ });
1295
+ m && (f = !0), d += h, m && g && u.push(...g);
1296
+ });
1297
+ let p = {
1298
+ isMatch: f,
1299
+ score: f ? d / this.chunks.length : 1
1300
+ };
1301
+ return f && r && (p.indices = rr(u)), p;
1302
+ }
1303
+ }, cr = /* @__PURE__ */ new Set(["fuzzy", "include"]);
1304
+ function lr(e) {
1305
+ return e.startsWith("inverse");
1306
+ }
1307
+ var ur = [
1308
+ {
1309
+ type: "exact",
1310
+ multiRegex: /^="(.*)"$/,
1311
+ singleRegex: /^=(.*)$/,
1312
+ create: (e) => ({
1313
+ type: "exact",
1314
+ search(t) {
1315
+ let n = t === e;
1316
+ return {
1317
+ isMatch: n,
1318
+ score: +!n,
1319
+ indices: [0, e.length - 1]
1320
+ };
1321
+ }
1322
+ })
1323
+ },
1324
+ {
1325
+ type: "include",
1326
+ multiRegex: /^'"(.*)"$/,
1327
+ singleRegex: /^'(.*)$/,
1328
+ create: (e) => ({
1329
+ type: "include",
1330
+ search(t) {
1331
+ let n = 0, r, i = [], a = e.length;
1332
+ for (; (r = t.indexOf(e, n)) > -1;) n = r + a, i.push([r, n - 1]);
1333
+ let o = !!i.length;
1334
+ return {
1335
+ isMatch: o,
1336
+ score: +!o,
1337
+ indices: i
1338
+ };
1339
+ }
1340
+ })
1341
+ },
1342
+ {
1343
+ type: "prefix-exact",
1344
+ multiRegex: /^\^"(.*)"$/,
1345
+ singleRegex: /^\^(.*)$/,
1346
+ create: (e) => ({
1347
+ type: "prefix-exact",
1348
+ search(t) {
1349
+ let n = t.startsWith(e);
1350
+ return {
1351
+ isMatch: n,
1352
+ score: +!n,
1353
+ indices: [0, e.length - 1]
1354
+ };
1355
+ }
1356
+ })
1357
+ },
1358
+ {
1359
+ type: "inverse-prefix-exact",
1360
+ multiRegex: /^!\^"(.*)"$/,
1361
+ singleRegex: /^!\^(.*)$/,
1362
+ create: (e) => ({
1363
+ type: "inverse-prefix-exact",
1364
+ search(t) {
1365
+ let n = !t.startsWith(e);
1366
+ return {
1367
+ isMatch: n,
1368
+ score: +!n,
1369
+ indices: [0, t.length - 1]
1370
+ };
1371
+ }
1372
+ })
1373
+ },
1374
+ {
1375
+ type: "inverse-suffix-exact",
1376
+ multiRegex: /^!"(.*)"\$$/,
1377
+ singleRegex: /^!(.*)\$$/,
1378
+ create: (e) => ({
1379
+ type: "inverse-suffix-exact",
1380
+ search(t) {
1381
+ let n = !t.endsWith(e);
1382
+ return {
1383
+ isMatch: n,
1384
+ score: +!n,
1385
+ indices: [0, t.length - 1]
1386
+ };
1387
+ }
1388
+ })
1389
+ },
1390
+ {
1391
+ type: "suffix-exact",
1392
+ multiRegex: /^"(.*)"\$$/,
1393
+ singleRegex: /^(.*)\$$/,
1394
+ create: (e) => ({
1395
+ type: "suffix-exact",
1396
+ search(t) {
1397
+ let n = t.endsWith(e);
1398
+ return {
1399
+ isMatch: n,
1400
+ score: +!n,
1401
+ indices: [t.length - e.length, t.length - 1]
1402
+ };
1403
+ }
1404
+ })
1405
+ },
1406
+ {
1407
+ type: "inverse-exact",
1408
+ multiRegex: /^!"(.*)"$/,
1409
+ singleRegex: /^!(.*)$/,
1410
+ create: (e) => ({
1411
+ type: "inverse-exact",
1412
+ search(t) {
1413
+ let n = t.indexOf(e) === -1;
1414
+ return {
1415
+ isMatch: n,
1416
+ score: +!n,
1417
+ indices: [0, t.length - 1]
1418
+ };
1419
+ }
1420
+ })
1421
+ },
1422
+ {
1423
+ type: "fuzzy",
1424
+ multiRegex: /^"(.*)"$/,
1425
+ singleRegex: /^(.*)$/,
1426
+ create: (e, t = {}) => {
1427
+ let n = new sr(e, {
1428
+ location: t.location ?? q.location,
1429
+ threshold: t.threshold ?? q.threshold,
1430
+ distance: t.distance ?? q.distance,
1431
+ includeMatches: t.includeMatches ?? q.includeMatches,
1432
+ findAllMatches: t.findAllMatches ?? q.findAllMatches,
1433
+ minMatchCharLength: t.minMatchCharLength ?? q.minMatchCharLength,
1434
+ isCaseSensitive: t.isCaseSensitive ?? q.isCaseSensitive,
1435
+ ignoreDiacritics: t.ignoreDiacritics ?? q.ignoreDiacritics,
1436
+ ignoreLocation: t.ignoreLocation ?? q.ignoreLocation
1437
+ });
1438
+ return {
1439
+ type: "fuzzy",
1440
+ search(e) {
1441
+ return n.searchIn(e);
1442
+ }
1443
+ };
1444
+ }
1445
+ }
1446
+ ], dr = ur.length, fr = "\0", pr = "|";
1447
+ function mr(e) {
1448
+ let t = [], n = e.length, r = 0;
1449
+ for (; r < n;) {
1450
+ for (; r < n && e[r] === " ";) r++;
1451
+ if (r >= n) break;
1452
+ let i = r;
1453
+ for (; i < n && e[i] !== " " && e[i] !== "\"";) i++;
1454
+ if (i < n && e[i] === "\"") {
1455
+ for (i++; i < n;) {
1456
+ if (e[i] === "\"") {
1457
+ let t = i + 1;
1458
+ if (t >= n || e[t] === " ") {
1459
+ i++;
1460
+ break;
1461
+ }
1462
+ if (e[t] === "$" && (t + 1 >= n || e[t + 1] === " ")) {
1463
+ i += 2;
1464
+ break;
1465
+ }
1466
+ }
1467
+ i++;
1468
+ }
1469
+ t.push(e.substring(r, i)), r = i;
1470
+ } else {
1471
+ for (; i < n && e[i] !== " ";) i++;
1472
+ t.push(e.substring(r, i)), r = i;
1473
+ }
1474
+ }
1475
+ return t;
1476
+ }
1477
+ function hr(e, t) {
1478
+ let n = e.match(t);
1479
+ return n ? n[1] : null;
1480
+ }
1481
+ function gr(e, t = {}) {
1482
+ return e.replace(/\\\|/g, fr).split(pr).map((e) => {
1483
+ let n = mr(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
1484
+ for (let e = 0, i = n.length; e < i; e += 1) {
1485
+ let i = n[e], a = !1, o = -1;
1486
+ for (; !a && ++o < dr;) {
1487
+ let e = ur[o], n = hr(i, e.multiRegex);
1488
+ n && (r.push(e.create(n, t)), a = !0);
1489
+ }
1490
+ if (!a) for (o = -1; ++o < dr;) {
1491
+ let e = ur[o], n = hr(i, e.singleRegex);
1492
+ if (n) {
1493
+ r.push(e.create(n, t));
1494
+ break;
1495
+ }
1496
+ }
1497
+ }
1498
+ return r;
1499
+ });
1500
+ }
1501
+ var _r = class {
1502
+ constructor(e, { isCaseSensitive: t = q.isCaseSensitive, ignoreDiacritics: n = q.ignoreDiacritics, includeMatches: r = q.includeMatches, minMatchCharLength: i = q.minMatchCharLength, ignoreLocation: a = q.ignoreLocation, findAllMatches: o = q.findAllMatches, location: s = q.location, threshold: c = q.threshold, distance: l = q.distance } = {}) {
1503
+ this.query = null, this.options = {
1504
+ isCaseSensitive: t,
1505
+ ignoreDiacritics: n,
1506
+ includeMatches: r,
1507
+ minMatchCharLength: i,
1508
+ findAllMatches: o,
1509
+ ignoreLocation: a,
1510
+ location: s,
1511
+ threshold: c,
1512
+ distance: l
1513
+ }, e = t ? e : e.toLowerCase(), e = n ? or(e) : e, this.pattern = e, this.query = gr(this.pattern, this.options);
1514
+ }
1515
+ static condition(e, t) {
1516
+ return t.useExtendedSearch;
1517
+ }
1518
+ searchIn(e) {
1519
+ let t = this.query;
1520
+ if (!t) return {
1521
+ isMatch: !1,
1522
+ score: 1
1523
+ };
1524
+ let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
1525
+ e = r ? e : e.toLowerCase(), e = i ? or(e) : e;
1526
+ let a = 0, o = [], s = 0, c = !1;
1527
+ for (let r = 0, i = t.length; r < i; r += 1) {
1528
+ let i = t[r];
1529
+ o.length = 0, a = 0, c = !1;
1530
+ for (let t = 0, r = i.length; t < r; t += 1) {
1531
+ let r = i[t], { isMatch: l, indices: u, score: d } = r.search(e);
1532
+ if (l) a += 1, s += d, lr(r.type) && (c = !0), n && (cr.has(r.type) ? o.push(...u) : o.push(u));
1533
+ else {
1534
+ s = 0, a = 0, o.length = 0, c = !1;
1535
+ break;
1536
+ }
1537
+ }
1538
+ if (a) {
1539
+ let e = {
1540
+ isMatch: !0,
1541
+ score: s / a
1542
+ };
1543
+ return c && (e.hasInverse = !0), n && (e.indices = rr(o)), e;
1544
+ }
1545
+ }
1546
+ return {
1547
+ isMatch: !1,
1548
+ score: 1
1549
+ };
1550
+ }
1551
+ }, vr = [];
1552
+ function yr(...e) {
1553
+ vr.push(...e);
1554
+ }
1555
+ function br(e, t) {
1556
+ for (let n = 0, r = vr.length; n < r; n += 1) {
1557
+ let r = vr[n];
1558
+ if (r.condition(e, t)) return new r(e, t);
1559
+ }
1560
+ return new sr(e, t);
1561
+ }
1562
+ var xr = {
1563
+ AND: "$and",
1564
+ OR: "$or"
1565
+ }, Sr = {
1566
+ PATH: "$path",
1567
+ PATTERN: "$val"
1568
+ }, Cr = (e) => !!(e[xr.AND] || e[xr.OR]), wr = (e) => !!e[Sr.PATH], Tr = (e) => !W(e) && On(e) && !Cr(e), Er = (e) => ({ [xr.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
1569
+ function Dr(e, t, { auto: n = !0 } = {}) {
1570
+ let r = (e) => {
1571
+ if (G(e)) {
1572
+ let r = {
1573
+ keyId: null,
1574
+ pattern: e
1575
+ };
1576
+ return n && (r.searcher = br(e, t)), r;
1577
+ }
1578
+ let i = Object.keys(e), a = wr(e);
1579
+ if (!a && i.length > 1 && !Cr(e)) return r(Er(e));
1580
+ if (Tr(e)) {
1581
+ let r = a ? e[Sr.PATH] : i[0], o = a ? e[Sr.PATTERN] : e[r];
1582
+ if (!G(o)) throw Error(Pn(r));
1583
+ let s = {
1584
+ keyId: Un(r),
1585
+ pattern: o
1586
+ };
1587
+ return n && (s.searcher = br(o, t)), s;
1588
+ }
1589
+ let o = {
1590
+ children: [],
1591
+ operator: i[0]
1592
+ };
1593
+ return i.forEach((t) => {
1594
+ let n = e[t];
1595
+ W(n) && n.forEach((e) => {
1596
+ o.children.push(r(e));
1597
+ });
1598
+ }), o;
1599
+ };
1600
+ return Cr(e) || (e = Er(e)), r(e);
1601
+ }
1602
+ function Or(e, { ignoreFieldNorm: t = q.ignoreFieldNorm }) {
1603
+ let n = 1;
1604
+ return e.forEach(({ key: e, norm: r, score: i }) => {
1605
+ let a = e ? e.weight : null;
1606
+ n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
1607
+ }), n;
1608
+ }
1609
+ function kr(e, { ignoreFieldNorm: t = q.ignoreFieldNorm }) {
1610
+ e.forEach((e) => {
1611
+ e.score = Or(e.matches, { ignoreFieldNorm: t });
1612
+ });
1613
+ }
1614
+ var Ar = class {
1615
+ constructor(e, t) {
1616
+ this.limit = e, this.heap = [], this.comparator = t;
1617
+ }
1618
+ get size() {
1619
+ return this.heap.length;
1620
+ }
1621
+ insert(e) {
1622
+ this.size < this.limit ? (this.heap.push(e), this._bubbleUp(this.size - 1)) : this.comparator(e, this.heap[0]) < 0 && (this.heap[0] = e, this._sinkDown(0));
1623
+ }
1624
+ extractSorted() {
1625
+ return this.heap.sort(this.comparator);
1626
+ }
1627
+ _bubbleUp(e) {
1628
+ let t = this.heap;
1629
+ for (; e > 0;) {
1630
+ let n = e - 1 >> 1;
1631
+ if (this.comparator(t[e], t[n]) <= 0) break;
1632
+ let r = t[e];
1633
+ t[e] = t[n], t[n] = r, e = n;
1634
+ }
1635
+ }
1636
+ _sinkDown(e) {
1637
+ let t = this.heap, n = t.length, r = e;
1638
+ do {
1639
+ e = r;
1640
+ let i = 2 * e + 1, a = 2 * e + 2;
1641
+ if (i < n && this.comparator(t[i], t[r]) > 0 && (r = i), a < n && this.comparator(t[a], t[r]) > 0 && (r = a), r !== e) {
1642
+ let n = t[e];
1643
+ t[e] = t[r], t[r] = n;
1644
+ }
1645
+ } while (r !== e);
1646
+ }
1647
+ };
1648
+ function jr(e) {
1649
+ let t = [];
1650
+ return e.matches.forEach((e) => {
1651
+ if (!K(e.indices) || !e.indices.length) return;
1652
+ let n = {
1653
+ indices: e.indices,
1654
+ value: e.value
1655
+ };
1656
+ e.key && (n.key = e.key.id), e.idx > -1 && (n.refIndex = e.idx), t.push(n);
1657
+ }), t;
1658
+ }
1659
+ function Mr(e, t, { includeMatches: n = q.includeMatches, includeScore: r = q.includeScore } = {}) {
1660
+ return e.map((e) => {
1661
+ let { idx: i } = e, a = {
1662
+ item: t[i],
1663
+ refIndex: i
1664
+ };
1665
+ return n && (a.matches = jr(e)), r && (a.score = e.score), a;
1666
+ });
1667
+ }
1668
+ var Nr = /[\p{L}\p{M}\p{N}_]+/gu, Pr = /* @__PURE__ */ new WeakSet();
1669
+ function Fr(e) {
1670
+ Pr.has(e) || (Pr.add(e), console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));
1671
+ }
1672
+ function Ir(e) {
1673
+ if (typeof e == "function") {
1674
+ let t = !1;
1675
+ return (n) => {
1676
+ let r = e(n);
1677
+ if (!t && (t = !0, !Array.isArray(r) || r.some((e) => typeof e != "string"))) throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r) ? "array containing non-strings" : typeof r}.`);
1678
+ return r;
1679
+ };
1680
+ }
1681
+ return e instanceof RegExp ? (e.global || Fr(e), (t) => t.match(e) || []) : (e) => e.match(Nr) || [];
1682
+ }
1683
+ function Lr({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
1684
+ let r = Ir(n);
1685
+ return { tokenize(n) {
1686
+ return e || (n = n.toLowerCase()), t && (n = or(n)), r(n);
1687
+ } };
1688
+ }
1689
+ var Rr = class {
1690
+ static condition(e, t) {
1691
+ return t.useTokenSearch;
1692
+ }
1693
+ constructor(e, t) {
1694
+ this.options = t, this.analyzer = Lr({
1695
+ isCaseSensitive: t.isCaseSensitive,
1696
+ ignoreDiacritics: t.ignoreDiacritics,
1697
+ tokenize: t.tokenize
1698
+ });
1699
+ let n = this.analyzer.tokenize(e), { df: r, fieldCount: i } = t._invertedIndex;
1700
+ this.termSearchers = [], this.idfWeights = [];
1701
+ for (let e of n) {
1702
+ this.termSearchers.push(new sr(e, {
1703
+ location: t.location,
1704
+ threshold: t.threshold,
1705
+ distance: t.distance,
1706
+ includeMatches: t.includeMatches,
1707
+ findAllMatches: t.findAllMatches,
1708
+ minMatchCharLength: t.minMatchCharLength,
1709
+ isCaseSensitive: t.isCaseSensitive,
1710
+ ignoreDiacritics: t.ignoreDiacritics,
1711
+ ignoreLocation: !0
1712
+ }));
1713
+ let n = r.get(e) || 0, a = Math.log(1 + (i - n + .5) / (n + .5));
1714
+ this.idfWeights.push(a);
1715
+ }
1716
+ this.combineAll = t.tokenMatch === "all", this.numTerms = this.termSearchers.length, this.useMask = this.numTerms <= 31;
1717
+ }
1718
+ searchIn(e) {
1719
+ if (!this.termSearchers.length) return {
1720
+ isMatch: !1,
1721
+ score: 1
1722
+ };
1723
+ let t = [], n = 0, r = 0, i = 0, a = 0, o = this.combineAll && !this.useMask ? /* @__PURE__ */ new Set() : null;
1724
+ for (let s = 0; s < this.termSearchers.length; s++) {
1725
+ let c = this.termSearchers[s].searchIn(e), l = this.idfWeights[s];
1726
+ r += l, c.isMatch && (i++, n += l * (1 - c.score), c.indices && t.push(...c.indices), this.combineAll && (this.useMask ? a |= 1 << s : o.add(s)));
1727
+ }
1728
+ if (i === 0) return {
1729
+ isMatch: !1,
1730
+ score: 1
1731
+ };
1732
+ let s = r > 0 ? 1 - n / r : 0, c = {
1733
+ isMatch: !0,
1734
+ score: Math.max(.001, s)
1735
+ };
1736
+ return this.options.includeMatches && t.length && (c.indices = rr(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
1737
+ }
1738
+ };
1739
+ function zr(e, t, n, r) {
1740
+ let i = r.tokenize(t);
1741
+ if (!i.length) return;
1742
+ e.fieldCount++, e.docFieldCount.set(n, (e.docFieldCount.get(n) || 0) + 1);
1743
+ let a = new Set(i), o = e.docTermFieldHits.get(n);
1744
+ o || (o = /* @__PURE__ */ new Map(), e.docTermFieldHits.set(n, o));
1745
+ for (let t of a) o.set(t, (o.get(t) || 0) + 1), e.df.set(t, (e.df.get(t) || 0) + 1);
1746
+ }
1747
+ function Br(e, t, n, r) {
1748
+ let { i, v: a, $: o } = t;
1749
+ if (a !== void 0) {
1750
+ zr(e, a, i, r);
1751
+ return;
1752
+ }
1753
+ if (o) for (let t = 0; t < n; t++) {
1754
+ let n = o[t];
1755
+ if (n) if (Array.isArray(n)) for (let t of n) zr(e, t.v, i, r);
1756
+ else zr(e, n.v, i, r);
1757
+ }
1758
+ }
1759
+ function Vr(e, t, n) {
1760
+ let r = {
1761
+ fieldCount: 0,
1762
+ df: /* @__PURE__ */ new Map(),
1763
+ docFieldCount: /* @__PURE__ */ new Map(),
1764
+ docTermFieldHits: /* @__PURE__ */ new Map()
1765
+ };
1766
+ for (let i of e) Br(r, i, t, n);
1767
+ return r;
1768
+ }
1769
+ function Hr(e, t, n, r) {
1770
+ Br(e, t, n, r);
1771
+ }
1772
+ function Ur(e, t) {
1773
+ let n = e.docFieldCount.get(t);
1774
+ if (n === void 0) return;
1775
+ e.fieldCount -= n, e.docFieldCount.delete(t);
1776
+ let r = e.docTermFieldHits.get(t);
1777
+ if (r) {
1778
+ for (let [t, n] of r) {
1779
+ let r = (e.df.get(t) || 0) - n;
1780
+ r <= 0 ? e.df.delete(t) : e.df.set(t, r);
1781
+ }
1782
+ e.docTermFieldHits.delete(t);
1783
+ }
1784
+ }
1785
+ function Wr(e, t) {
1786
+ if (t.length === 0) return;
1787
+ let n = Array.from(new Set(t)).sort((e, t) => e - t);
1788
+ for (let t of n) Ur(e, t);
1789
+ let r = (e) => {
1790
+ let t = 0, r = n.length;
1791
+ for (; t < r;) {
1792
+ let i = t + r >>> 1;
1793
+ n[i] < e ? t = i + 1 : r = i;
1794
+ }
1795
+ return e - t;
1796
+ }, i = n[0], a = /* @__PURE__ */ new Map();
1797
+ for (let [t, n] of e.docFieldCount) a.set(t > i ? r(t) : t, n);
1798
+ e.docFieldCount = a;
1799
+ let o = /* @__PURE__ */ new Map();
1800
+ for (let [t, n] of e.docTermFieldHits) o.set(t > i ? r(t) : t, n);
1801
+ e.docTermFieldHits = o;
1802
+ }
1803
+ var J = class {
1804
+ constructor(e, t, n) {
1805
+ this.options = {
1806
+ ...q,
1807
+ ...t
1808
+ }, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new Bn(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
1809
+ }
1810
+ _getSearcher(e) {
1811
+ if (this._lastQuery === e) return this._lastSearcher;
1812
+ let t = br(e, this._invertedIndex ? {
1813
+ ...this.options,
1814
+ _invertedIndex: this._invertedIndex
1815
+ } : this.options);
1816
+ return this._lastQuery = e, this._lastSearcher = t, t;
1817
+ }
1818
+ setCollection(e, t) {
1819
+ if (this._docs = e, t && !(t instanceof Zn)) throw Error(Mn);
1820
+ if (this._myIndex = t || Qn(this.options.keys, this._docs, {
1821
+ getFn: this.options.getFn,
1822
+ fieldNormWeight: this.options.fieldNormWeight
1823
+ }), this.options.useTokenSearch) {
1824
+ let e = Lr({
1825
+ isCaseSensitive: this.options.isCaseSensitive,
1826
+ ignoreDiacritics: this.options.ignoreDiacritics,
1827
+ tokenize: this.options.tokenize
1828
+ });
1829
+ this._invertedIndex = Vr(this._myIndex.records, this._myIndex.keys.length, e);
1830
+ }
1831
+ this._invalidateSearcherCache();
1832
+ }
1833
+ add(e) {
1834
+ if (!K(e)) return;
1835
+ this._docs.push(e);
1836
+ let t = this._myIndex.add(e, this._docs.length - 1);
1837
+ if (this._invertedIndex && t) {
1838
+ let e = Lr({
1839
+ isCaseSensitive: this.options.isCaseSensitive,
1840
+ ignoreDiacritics: this.options.ignoreDiacritics,
1841
+ tokenize: this.options.tokenize
1842
+ });
1843
+ Hr(this._invertedIndex, t, this._myIndex.keys.length, e);
1844
+ }
1845
+ this._invalidateSearcherCache();
1846
+ }
1847
+ remove(e = () => !1) {
1848
+ let t = [], n = [];
1849
+ for (let r = 0, i = this._docs.length; r < i; r += 1) e(this._docs[r], r) && (t.push(this._docs[r]), n.push(r));
1850
+ if (n.length) {
1851
+ this._invertedIndex && Wr(this._invertedIndex, n);
1852
+ let e = new Set(n);
1853
+ this._docs = this._docs.filter((t, n) => !e.has(n)), this._myIndex.removeAll(n), this._invalidateSearcherCache();
1854
+ }
1855
+ return t;
1856
+ }
1857
+ removeAt(e) {
1858
+ if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Nn);
1859
+ this._invertedIndex && Wr(this._invertedIndex, [e]);
1860
+ let t = this._docs.splice(e, 1)[0];
1861
+ return this._myIndex.removeAt(e), this._invalidateSearcherCache(), t;
1862
+ }
1863
+ _invalidateSearcherCache() {
1864
+ this._lastQuery = null, this._lastSearcher = null;
1865
+ }
1866
+ getIndex() {
1867
+ return this._myIndex;
1868
+ }
1869
+ _normalizedKeys() {
1870
+ return this._myIndex.keys.map((e) => this._keyStore.get(e.id) || e);
1871
+ }
1872
+ search(e, t) {
1873
+ let { limit: n = -1 } = t || {}, { includeMatches: r, includeScore: i, shouldSort: a, sortFn: o, ignoreFieldNorm: s } = this.options;
1874
+ if (G(e) && !e.trim()) {
1875
+ let e = this._docs.map((e, t) => ({
1876
+ item: e,
1877
+ refIndex: t
1878
+ }));
1879
+ return En(n) && n > -1 && (e = e.slice(0, n)), e;
1880
+ }
1881
+ let c = a && En(n) && n > 0 && G(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
1882
+ if (c) {
1883
+ let t = new Ar(n, u);
1884
+ G(this._docs[0]) ? this._searchStringList(e, {
1885
+ heap: t,
1886
+ ignoreFieldNorm: s
1887
+ }) : this._searchObjectList(e, {
1888
+ heap: t,
1889
+ ignoreFieldNorm: s
1890
+ }), d = t.extractSorted();
1891
+ } else d = G(e) ? G(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), kr(d, { ignoreFieldNorm: s }), a && d.sort(G(e) ? u : l), En(n) && n > -1 && (d = d.slice(0, n));
1892
+ return Mr(d, this._docs, {
1893
+ includeMatches: r,
1894
+ includeScore: i
1895
+ });
1896
+ }
1897
+ _searchStringList(e, { heap: t, ignoreFieldNorm: n } = {}) {
1898
+ let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", { records: a } = this._myIndex, o = t ? null : [];
1899
+ return a.forEach(({ v: e, i: a, n: s }) => {
1900
+ if (!K(e)) return;
1901
+ let c = r.searchIn(e);
1902
+ if (c.isMatch) {
1903
+ let r = {
1904
+ score: c.score,
1905
+ value: e,
1906
+ norm: s,
1907
+ indices: c.indices
1908
+ };
1909
+ i && (r.matchedMask = c.matchedMask, r.matchedTerms = c.matchedTerms, r.termCount = c.termCount);
1910
+ let l = [r];
1911
+ if (!i || this._coversAllTokens(l)) {
1912
+ let r = {
1913
+ item: e,
1914
+ idx: a,
1915
+ matches: l
1916
+ };
1917
+ t ? (r.score = Or(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
1918
+ }
1919
+ }
1920
+ }), o;
1921
+ }
1922
+ _searchLogical(e) {
1923
+ let t = Dr(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
1924
+ if (!("children" in e)) {
1925
+ let { keyId: r, searcher: a } = e, o;
1926
+ return r === null ? (o = [], n.forEach((e, n) => {
1927
+ o.push(...this._findMatches({
1928
+ key: e,
1929
+ value: t[n],
1930
+ searcher: a
1931
+ }));
1932
+ })) : o = this._findMatches({
1933
+ key: this._keyStore.get(r),
1934
+ value: this._myIndex.getValueForItemAtKeyId(t, r),
1935
+ searcher: a
1936
+ }), o && o.length ? [{
1937
+ idx: i,
1938
+ item: t,
1939
+ matches: o
1940
+ }] : [];
1941
+ }
1942
+ let { children: a, operator: o } = e, s = [];
1943
+ for (let e = 0, n = a.length; e < n; e += 1) {
1944
+ let n = a[e], c = r(n, t, i);
1945
+ if (c.length) s.push(...c);
1946
+ else if (o === xr.AND) return [];
1947
+ }
1948
+ return s;
1949
+ }, i = this._myIndex.records, a = /* @__PURE__ */ new Map(), o = [];
1950
+ return i.forEach(({ $: e, i: n }) => {
1951
+ if (K(e)) {
1952
+ let i = r(t, e, n);
1953
+ i.length && (a.has(n) || (a.set(n, {
1954
+ idx: n,
1955
+ item: e,
1956
+ matches: []
1957
+ }), o.push(a.get(n))), i.forEach(({ matches: e }) => {
1958
+ a.get(n).matches.push(...e);
1959
+ }));
1960
+ }
1961
+ }), o;
1962
+ }
1963
+ _searchObjectList(e, { heap: t, ignoreFieldNorm: n } = {}) {
1964
+ let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", { records: a } = this._myIndex, o = this._normalizedKeys(), s = t ? null : [];
1965
+ return a.forEach(({ $: e, i: a }) => {
1966
+ if (!K(e)) return;
1967
+ let c = [], l = !1, u = !1;
1968
+ if (o.forEach((t, n) => {
1969
+ let i = this._findMatches({
1970
+ key: t,
1971
+ value: e[n],
1972
+ searcher: r
1973
+ });
1974
+ i.length ? (c.push(...i), i[0].hasInverse && (u = !0)) : l = !0;
1975
+ }), !(u && l) && c.length && (!i || this._coversAllTokens(c))) {
1976
+ let r = {
1977
+ idx: a,
1978
+ item: e,
1979
+ matches: c
1980
+ };
1981
+ t ? (r.score = Or(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
1982
+ }
1983
+ }), s;
1984
+ }
1985
+ _findMatches({ key: e, value: t, searcher: n }) {
1986
+ if (!K(t)) return [];
1987
+ let r = [];
1988
+ if (W(t)) t.forEach(({ v: t, i, n: a }) => {
1989
+ if (!K(t)) return;
1990
+ let o = n.searchIn(t);
1991
+ if (o.isMatch) {
1992
+ let n = {
1993
+ score: o.score,
1994
+ key: e,
1995
+ value: t,
1996
+ idx: i,
1997
+ norm: a,
1998
+ indices: o.indices,
1999
+ hasInverse: o.hasInverse
2000
+ };
2001
+ o.termCount !== void 0 && (n.matchedMask = o.matchedMask, n.matchedTerms = o.matchedTerms, n.termCount = o.termCount), r.push(n);
2002
+ }
2003
+ });
2004
+ else {
2005
+ let { v: i, n: a } = t, o = n.searchIn(i);
2006
+ if (o.isMatch) {
2007
+ let t = {
2008
+ score: o.score,
2009
+ key: e,
2010
+ value: i,
2011
+ norm: a,
2012
+ indices: o.indices,
2013
+ hasInverse: o.hasInverse
2014
+ };
2015
+ o.termCount !== void 0 && (t.matchedMask = o.matchedMask, t.matchedTerms = o.matchedTerms, t.termCount = o.termCount), r.push(t);
2016
+ }
428
2017
  }
429
2018
  return r;
430
- };
431
- }, Ct = (e) => (t) => St(t, e), wt = (e, n = j.Monday, r = "en") => {
432
- let i = g(M(e.value, y(n))), a = t(() => Ae(e.value)), o = t(() => ke(e.value, y(r))), s = t(() => Fe(i.value));
433
- return w(t(() => `${a.value}${o.value.number}`), () => {
434
- i.value = M(e.value, y(n));
435
- }), w(() => y(n), (t) => {
436
- i.value = M(e.value, t);
437
- }), {
438
- year: a,
439
- month: o,
440
- weeks: s
441
- };
442
- }, Tt = (e) => {
443
- let n = g([]), r = t(() => n.value.sort((e, t) => e === t ? 0 : e.compareDocumentPosition(t) & 2 ? 1 : -1)), i = () => document.querySelectorAll("h1, h2, h3, h4, h5, h6"), a = t(() => {
444
- let e = [], t = [];
445
- for (let n of r.value) {
446
- let r = parseInt(n.tagName.substring(1), 10), i = {
447
- heading: n,
448
- children: [],
449
- level: r
450
- };
451
- for (; t.length >= r;) t.pop();
452
- t.length === 0 ? e.push(i) : t[t.length - 1]?.children?.push(i), t.push(i);
2019
+ }
2020
+ _coversAllTokens(e) {
2021
+ let t = e.length ? e[0].termCount : void 0;
2022
+ if (t === void 0) return !0;
2023
+ if (t <= 31) {
2024
+ let n = 0;
2025
+ for (let t = 0; t < e.length; t++) n |= e[t].matchedMask || 0;
2026
+ return n === 2 ** t - 1;
453
2027
  }
454
- return e;
455
- }), o = (t) => e ? t.map((t) => {
456
- let n = {
457
- level: t.level,
458
- heading: e(t.heading, t.level),
459
- children: t.children
460
- };
461
- return t.children && (n.children = o(t.children)), n;
462
- }) : t;
463
- return p(async () => {
464
- await ee(), n.value = Array.from(i());
465
- }), ct(document.body, (e) => {
466
- let t = Array.from(i());
467
- t.some((t) => e.some((e) => [...e.addedNodes, ...e.removedNodes].includes(t))) && (n.value = t);
468
- }, {
469
- childList: !0,
470
- subtree: !0
471
- }), { documentOutline: t(() => o(a.value)) };
472
- }, W = (e, n) => {
473
- let r = g(/* @__PURE__ */ new Map()), i = n ? {
474
- items: r,
475
- parent: n
476
- } : l(`${e}-elements`, {
477
- items: r,
478
- parent: g()
479
- });
480
- return n && h(`${e}-elements`, i), {
481
- getElements: (t = !0) => {
482
- let n = i.parent.value;
483
- if (!n) return [];
484
- let r = Array.from(n.querySelectorAll(`[data-elements-${e}="true"]`));
485
- return R(Array.from(i.items.value.values()).sort((e, t) => r.indexOf(e) - r.indexOf(t)).filter((e) => t || !L(e)));
486
- },
487
- elements: t(() => R(Array.from(i.items.value.values())))
488
- };
489
- }, G = (e, t, n) => {
490
- let r = l(`${e}-elements`, void 0);
491
- se((e) => {
492
- if (!t.value) return;
493
- let i = u(t.value);
494
- n?.value ? r?.items.value.delete(i) : r?.items.value.set(i, t.value), e(() => r?.items.value.delete(i));
495
- }), p(() => {
496
- t.value?.setAttribute(`data-elements-${e}`, "true");
497
- }), ne(() => {
498
- t.value?.removeAttribute(`data-elements-${e}`);
2028
+ let n = /* @__PURE__ */ new Set();
2029
+ for (let t = 0; t < e.length; t++) {
2030
+ let r = e[t].matchedTerms;
2031
+ if (r) for (let e of r) n.add(e);
2032
+ }
2033
+ return n.size === t;
2034
+ }
2035
+ };
2036
+ J.version = "7.5.0", J.createIndex = Qn, J.parseIndex = $n, J.config = q, J.match = function(e, t, n) {
2037
+ if (n && n.useTokenSearch) throw Error(Rn);
2038
+ return br(e, {
2039
+ ...q,
2040
+ ...n
2041
+ }).searchIn(t);
2042
+ }, J.parseQuery = Dr, yr(_r), yr(Rr), J.use = function(...e) {
2043
+ e.forEach((e) => yr(e));
2044
+ };
2045
+ var Gr = J, Kr = (e, n, r) => t(() => {
2046
+ let t = T(e), i = T(n);
2047
+ if (!t) return i;
2048
+ let a = new Gr([...i], {
2049
+ threshold: .2,
2050
+ keys: r
499
2051
  });
500
- }, K = () => {
501
- let e = g(/* @__PURE__ */ new Map());
2052
+ return t ? a.search(t, { limit: 3 }).map((e) => e.item) : i;
2053
+ }), Y = () => {
2054
+ let e = S(/* @__PURE__ */ new Map());
502
2055
  return {
503
2056
  set(t, n) {
504
2057
  n ? e.value.set(t, n) : e.value.delete(t);
@@ -507,137 +2060,181 @@ var St = (e, t) => {
507
2060
  return e.value.get(t);
508
2061
  }
509
2062
  };
510
- }, q = (e, t, n) => {
511
- U(n, (n) => {
2063
+ }, X = (e, t, n) => {
2064
+ Qt(n, (n) => {
512
2065
  e.set(t, n);
513
2066
  });
514
- }, Et = ue("theme-settings", () => {
515
- let e = g(1), t = g(!0), n = (e, t) => {
2067
+ }, qr = ce("theme-settings", () => {
2068
+ let e = S(1), t = S(!0), n = (e, t) => {
516
2069
  document.documentElement.style.setProperty(`--${e}`, t);
517
2070
  };
518
- return U(e, (e) => {
2071
+ return Qt(e, (e) => {
519
2072
  document.documentElement.style.setProperty("saturation", `${e}`);
520
- }), U(t, (e) => {
2073
+ }), Qt(t, (e) => {
521
2074
  n("code-white-space", e ? "pre-wrap" : "pre");
522
2075
  }), {
523
2076
  saturation: e,
524
2077
  wrapCode: t
525
2078
  };
526
- }), Dt = (e) => l(e, { missingContext: !0 }), J = Symbol("toolbar"), Ot = ["aria-orientation", "aria-controls"], kt = /* @__PURE__ */ o({
2079
+ }), Jr = (e) => l(e, { missingContext: !0 }), Yr = Symbol("toolbar"), Xr = ["aria-orientation", "aria-controls"], Zr = /* @__PURE__ */ o({
527
2080
  __name: "Toolbar",
528
2081
  props: {
529
2082
  orientation: { default: "horizontal" },
530
2083
  controls: {}
531
2084
  },
532
2085
  setup(e) {
533
- let { orientation: t } = oe(e), n = C("element"), { getElements: r } = W("toolbar", n), { onKeyDown: a, moveTo: o } = V(t, r);
534
- return h(J, {
2086
+ let { orientation: t } = ne(e), n = k("element"), { getElements: r } = H("toolbar", n), { onKeyDown: a, navigateTo: o } = Ut(t, r);
2087
+ return x(Yr, {
535
2088
  onKeyDown: a,
536
- moveTo: o
537
- }), (r, a) => (m(), i("div", {
2089
+ navigateTo: o
2090
+ }), (r, a) => (b(), i("div", {
538
2091
  ref_key: "element",
539
2092
  ref: n,
540
- "aria-orientation": b(t),
2093
+ "aria-orientation": E(t),
541
2094
  "aria-controls": e.controls,
542
2095
  role: "toolbar"
543
- }, [_(r.$slots, "default")], 8, Ot));
2096
+ }, [C(r.$slots, "default")], 8, Xr));
544
2097
  }
545
- }), At = [
2098
+ }), Qr = [
546
2099
  "aria-disabled",
2100
+ "aria-keyshortcuts",
547
2101
  "disabled",
548
2102
  "type"
549
- ], Y = /* @__PURE__ */ o({
2103
+ ], Z = /* @__PURE__ */ o({
550
2104
  __name: "Button",
551
2105
  props: {
552
2106
  type: { default: "button" },
553
2107
  disabled: {
554
2108
  type: [Boolean, String],
555
2109
  default: void 0
556
- }
2110
+ },
2111
+ keyboardShortcut: { default: void 0 }
557
2112
  },
558
2113
  emits: ["click"],
559
2114
  setup(e, { emit: t }) {
560
- let n = e, r = t, a = C("element"), { onKeyDown: o, moveTo: s } = Dt(J);
561
- G("toolbar", a);
2115
+ let n = e, r = t, a = k("element"), { onKeyDown: o, navigateTo: s } = Jr(Yr);
2116
+ U("toolbar", a);
562
2117
  let c = (e) => {
563
2118
  s?.(a.value), n.disabled || r("click", e);
564
2119
  };
565
- return (t, n) => (m(), i("button", {
2120
+ return B("*", () => {
2121
+ if (!n.keyboardShortcut) return;
2122
+ let e = B.getPressedKeyString();
2123
+ for (let t of n.keyboardShortcut.split(",")) if (t.split("+").map((e) => e.trim()).every((t) => e.includes(t))) return a.value?.click(), !1;
2124
+ }), (t, n) => (b(), i("button", {
566
2125
  ref_key: "element",
567
2126
  ref: a,
568
2127
  "aria-disabled": e.disabled === !0 || void 0,
2128
+ "aria-keyshortcuts": e.keyboardShortcut,
569
2129
  disabled: e.disabled === "without-focus" || void 0,
570
2130
  type: e.type,
571
2131
  onClick: c,
572
- onKeydown: n[0] ||= (...e) => b(o) && b(o)(...e)
573
- }, [_(t.$slots, "default")], 40, At));
2132
+ onKeydown: n[0] ||= (...e) => E(o) && E(o)(...e)
2133
+ }, [C(t.$slots, "default")], 40, Qr));
574
2134
  }
575
- }), jt = Symbol("calendar-table"), Mt = /* @__PURE__ */ o({
2135
+ }), $r = Symbol("calendar-table"), ei = /* @__PURE__ */ o({
576
2136
  __name: "Table",
577
2137
  setup(e) {
578
- return (e, t) => (m(), i("table", null, [_(e.$slots, "default")]));
2138
+ return (e, t) => (b(), i("table", null, [C(e.$slots, "default")]));
579
2139
  }
580
- }), Nt = /* @__PURE__ */ o({
2140
+ }), ti = /* @__PURE__ */ o({
581
2141
  __name: "TableBody",
582
2142
  setup(e) {
583
- return (e, t) => (m(), i("tbody", null, [_(e.$slots, "default")]));
2143
+ return (e, t) => (b(), i("tbody", null, [C(e.$slots, "default")]));
584
2144
  }
585
- }), Pt = /* @__PURE__ */ o({
2145
+ }), ni = /* @__PURE__ */ o({
586
2146
  __name: "TableCell",
587
2147
  props: { heading: { type: Boolean } },
588
2148
  setup(e) {
589
- return (t, r) => (m(), n(v(e.heading ? "th" : "td"), { scope: e.heading ? "row" : void 0 }, {
590
- default: T(() => [_(t.$slots, "default")]),
2149
+ return (t, r) => (b(), n(w(e.heading ? "th" : "td"), { scope: e.heading ? "row" : void 0 }, {
2150
+ default: j(() => [C(t.$slots, "default")]),
591
2151
  _: 3
592
2152
  }, 8, ["scope"]));
593
2153
  }
594
- }), Ft = /* @__PURE__ */ o({
2154
+ }), ri = /* @__PURE__ */ o({
595
2155
  __name: "TableHead",
596
2156
  setup(e) {
597
- return (e, t) => (m(), i("thead", null, [_(e.$slots, "default")]));
2157
+ return (e, t) => (b(), i("thead", null, [C(e.$slots, "default")]));
598
2158
  }
599
- }), It = ["aria-sort"], Lt = /* @__PURE__ */ o({
2159
+ }), ii = ["aria-sort"], ai = /* @__PURE__ */ o({
600
2160
  __name: "TableHeadingCell",
601
2161
  props: { sorted: {} },
602
2162
  setup(e) {
603
- return (t, n) => (m(), i("th", { "aria-sort": e.sorted }, [_(t.$slots, "default")], 8, It));
2163
+ return (t, n) => (b(), i("th", { "aria-sort": e.sorted }, [C(t.$slots, "default")], 8, ii));
604
2164
  }
605
- }), Rt = /* @__PURE__ */ o({
2165
+ }), oi = /* @__PURE__ */ o({
606
2166
  __name: "TableRow",
607
2167
  setup(e) {
608
- return (e, t) => (m(), i("tr", null, [_(e.$slots, "default")]));
2168
+ return (e, t) => (b(), i("tr", null, [C(e.$slots, "default")]));
609
2169
  }
610
- }), zt = /* @__PURE__ */ o({
2170
+ }), si = /* @__PURE__ */ o({
611
2171
  __name: "CalendarTable",
612
- props: /*@__PURE__*/ d({ autoFocus: { type: Boolean } }, {
2172
+ props: /*@__PURE__*/ f({ autoFocus: { type: Boolean } }, {
613
2173
  modelValue: { default: () => /* @__PURE__ */ new Date() },
614
2174
  modelModifiers: {}
615
2175
  }),
616
2176
  emits: ["update:modelValue"],
617
2177
  setup(e) {
618
- let r = e, i = S(e, "modelValue"), a = ot();
619
- return h(jt, {
2178
+ let r = e, i = O(e, "modelValue"), a = tn();
2179
+ return x($r, {
620
2180
  focusedDate: i,
621
2181
  allowFocus: t(() => r.autoFocus || a.value)
622
- }), (e, t) => (m(), n(b(Mt), { role: "grid" }, {
623
- default: T(() => [_(e.$slots, "default")]),
2182
+ }), (e, t) => (b(), n(E(ei), { role: "grid" }, {
2183
+ default: j(() => [C(e.$slots, "default")]),
624
2184
  _: 3
625
2185
  }));
626
2186
  }
627
- }), Bt = /* @__PURE__ */ o({
2187
+ }), ci = /* @__PURE__ */ o({
628
2188
  __name: "CalendarTableCell",
629
2189
  setup(e) {
630
- return (e, t) => (m(), n(b(Pt), { role: "gridcell" }, {
631
- default: T(() => [_(e.$slots, "default")]),
2190
+ return (e, t) => (b(), n(E(ni), { role: "gridcell" }, {
2191
+ default: j(() => [C(e.$slots, "default")]),
632
2192
  _: 3
633
2193
  }));
634
2194
  }
635
- }), Vt = [
2195
+ }), li = (e, t = yt.Monday) => ({ onKeyDown(n) {
2196
+ switch ([
2197
+ "ArrowLeft",
2198
+ "ArrowRight",
2199
+ "ArrowUp",
2200
+ "ArrowDown",
2201
+ "PageUp",
2202
+ "PageDown",
2203
+ "Home",
2204
+ "End"
2205
+ ].includes(n.key) && n.preventDefault(), n.key) {
2206
+ case "ArrowLeft":
2207
+ e.value = Xe(e.value);
2208
+ break;
2209
+ case "ArrowRight":
2210
+ e.value = Ye(e.value);
2211
+ break;
2212
+ case "ArrowUp":
2213
+ e.value = Qe(e.value);
2214
+ break;
2215
+ case "ArrowDown":
2216
+ e.value = Ze(e.value);
2217
+ break;
2218
+ case "PageUp":
2219
+ e.value = n.shiftKey ? nt(e.value) : et(e.value);
2220
+ break;
2221
+ case "PageDown":
2222
+ e.value = n.shiftKey ? tt(e.value) : $e(e.value);
2223
+ break;
2224
+ case "Home":
2225
+ e.value = n.shiftKey ? at(e.value) : rt(e.value, t);
2226
+ break;
2227
+ case "End":
2228
+ e.value = n.shiftKey ? ot(e.value) : it(e.value, t);
2229
+ break;
2230
+ default: break;
2231
+ }
2232
+ } }), ui = [
636
2233
  "aria-pressed",
637
2234
  "aria-disabled",
638
2235
  "aria-current",
639
2236
  "tabindex"
640
- ], Ht = /* @__PURE__ */ o({
2237
+ ], di = /* @__PURE__ */ o({
641
2238
  __name: "CalendarTableCellButton",
642
2239
  props: {
643
2240
  date: {},
@@ -646,54 +2243,148 @@ var St = (e, t) => {
646
2243
  },
647
2244
  emits: ["click"],
648
2245
  setup(e, { emit: n }) {
649
- let r = e, a = n, o = C("element"), { focusedDate: s, allowFocus: c } = l(jt), { onKeyDown: u } = Ke(s), d = t(() => P(r.date, s.value));
650
- return U(d, async (e) => {
651
- e && c.value && (await ee(), o.value?.focus());
652
- }), (t, n) => (m(), i("button", {
2246
+ let r = e, a = n, o = k("element"), { focusedDate: s, allowFocus: c } = l($r), { onKeyDown: u } = li(s), d = t(() => Dt(r.date, s.value));
2247
+ return Qt(d, async (e) => {
2248
+ e && c.value && (await m(), o.value?.focus());
2249
+ }), (t, n) => (b(), i("button", {
653
2250
  ref_key: "element",
654
2251
  ref: o,
655
2252
  "aria-pressed": e.selected,
656
2253
  "aria-disabled": e.disabled,
657
- "aria-current": b(P)(e.date, /* @__PURE__ */ new Date()) ? "date" : void 0,
2254
+ "aria-current": E(Dt)(e.date, /* @__PURE__ */ new Date()) ? "date" : void 0,
658
2255
  tabindex: d.value ? 0 : -1,
659
2256
  onFocus: n[0] ||= (t) => s.value = e.date,
660
- onKeydown: n[1] ||= (...e) => b(u) && b(u)(...e),
2257
+ onKeydown: n[1] ||= (...e) => E(u) && E(u)(...e),
661
2258
  onClick: n[2] ||= (e) => a("click", e)
662
- }, [_(t.$slots, "default")], 40, Vt));
2259
+ }, [C(t.$slots, "default")], 40, ui));
2260
+ }
2261
+ }), Q = Symbol("field"), fi = (e) => {
2262
+ let n = Y(), { elements: r } = H("field-error", e), { elements: i } = H("field-description", e), a = (e) => e.filter((e) => e.id).map((e) => e.id), o = {
2263
+ sharedIds: n,
2264
+ hasErrors: t(() => r.value.length > 0),
2265
+ errorIds: t(() => a(r.value)),
2266
+ descriptionIds: t(() => a(i.value))
2267
+ };
2268
+ return x(Q, o), o;
2269
+ }, pi = Symbol("combobox-field"), $ = Symbol("listbox-field"), mi = Symbol("listbox-field-group"), hi = Symbol("standalone-listbox"), gi = /* @__PURE__ */ o({
2270
+ __name: "ComboboxField",
2271
+ props: /*@__PURE__*/ f({ multiselect: { type: Boolean } }, {
2272
+ modelValue: { default: () => [] },
2273
+ modelModifiers: {}
2274
+ }),
2275
+ emits: ["update:modelValue"],
2276
+ setup(e) {
2277
+ let n = e, r = O(e, "modelValue"), a = k("element"), { sharedIds: o } = fi(a), s = t(() => n.multiselect), c = S(""), l = S(!1), { optionsTracker: u, options: d, activeIndex: f, activeElementId: p, onClick: m, onBlur: h, onKeyDown: g, onOptionClick: _, onOptionMouseDown: v, onOptionMouseUp: y } = xn(r, s, o, c, l);
2278
+ return x($, {
2279
+ modelValue: r,
2280
+ open: l,
2281
+ activeIndex: f,
2282
+ activeElementId: p,
2283
+ optionsTracker: u,
2284
+ options: d,
2285
+ multiselect: s,
2286
+ onClick: m,
2287
+ onBlur: h,
2288
+ onKeyDown: g,
2289
+ onOptionClick: _,
2290
+ onOptionMouseDown: v,
2291
+ onOptionMouseUp: y
2292
+ }), x(pi, { filter: c }), (e, t) => (b(), i("div", {
2293
+ ref_key: "element",
2294
+ ref: a
2295
+ }, [C(e.$slots, "default")], 512));
2296
+ }
2297
+ }), _i = [
2298
+ "id",
2299
+ "placeholder",
2300
+ "aria-activedescendant",
2301
+ "aria-controls",
2302
+ "aria-expanded",
2303
+ "aria-labelledby"
2304
+ ], vi = /* @__PURE__ */ o({
2305
+ __name: "ComboboxInput",
2306
+ props: {
2307
+ placeholder: { default: void 0 },
2308
+ id: { default: () => D() }
2309
+ },
2310
+ setup(e) {
2311
+ let t = e, { sharedIds: n } = l(Q), { open: r, activeElementId: a, onBlur: o, onKeyDown: s, onClick: c } = l($), { filter: d } = l(pi);
2312
+ return X(n, "input", () => t.id), (t, l) => oe((b(), i("input", {
2313
+ id: e.id,
2314
+ "onUpdate:modelValue": l[0] ||= (e) => u(d) ? d.value = e : null,
2315
+ placeholder: e.placeholder,
2316
+ "aria-activedescendant": E(a),
2317
+ "aria-controls": E(n).get("listbox"),
2318
+ "aria-expanded": E(r),
2319
+ "aria-labelledby": `${E(n).get("label")} ${E(n).get("selection-list")}`,
2320
+ "aria-autocomplete": "list",
2321
+ "aria-haspopup": "listbox",
2322
+ role: "combobox",
2323
+ type: "text",
2324
+ onBlur: l[1] ||= (...e) => E(o) && E(o)(...e),
2325
+ onKeydown: l[2] ||= (...e) => E(s) && E(s)(...e),
2326
+ onClick: l[3] ||= (...e) => E(c) && E(c)(...e)
2327
+ }, null, 40, _i)), [[ie, E(d)]]);
2328
+ }
2329
+ }), yi = ["id"], bi = /* @__PURE__ */ o({
2330
+ __name: "ComboboxSelectionList",
2331
+ props: { id: { default: () => D() } },
2332
+ setup(e) {
2333
+ let t = e, { sharedIds: n } = l(Q);
2334
+ X(n, "selection-list", () => t.id);
2335
+ let { multiselect: a } = l($);
2336
+ return (t, n) => E(a) ? (b(), i("ul", {
2337
+ key: 0,
2338
+ id: e.id
2339
+ }, [C(t.$slots, "default")], 8, yi)) : r("", !0);
663
2340
  }
664
- }), Ut = "\n block-size: 1px;\n inline-size: 1px;\n\n position: absolute;\n overflow: hidden;\n\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n\n white-space: nowrap;\n", Wt = /* @__PURE__ */ o({
2341
+ }), xi = (e, t) => {
2342
+ let n = e.__vccOpts || e;
2343
+ for (let [e, r] of t) n[e] = r;
2344
+ return n;
2345
+ }, Si = {};
2346
+ function Ci(e, t) {
2347
+ return b(), i("li", null, [C(e.$slots, "default")]);
2348
+ }
2349
+ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n inline-size: 1px;\n\n position: absolute;\n overflow: hidden;\n\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n\n white-space: nowrap;\n", Ei = /* @__PURE__ */ o({
665
2350
  __name: "VisuallyHidden",
666
2351
  setup(e) {
667
- return (e, t) => (m(), i("div", { style: Ut }, [_(e.$slots, "default")]));
2352
+ return (e, t) => (b(), i("div", { style: Ti }, [C(e.$slots, "default")]));
668
2353
  }
669
- }), Gt = /* @__PURE__ */ o({
2354
+ }), Di = /* @__PURE__ */ o({
670
2355
  __name: "CopyButton",
671
2356
  props: {
672
2357
  content: {},
673
2358
  preventAnnouncement: { type: Boolean },
674
- onCopy: { type: Function }
2359
+ onCopy: { type: Function },
2360
+ disabled: { type: [Boolean, String] },
2361
+ keyboardShortcut: {}
675
2362
  },
676
2363
  emits: ["copy"],
677
2364
  setup(o) {
678
- let s = g(!1), c = o, l = t(() => c.content ? typeof c.content == "string" ? [new ClipboardItem({ "text/plain": c.content })] : Array.isArray(c.content) ? c.content : [c.content] : []), u = async (e) => {
2365
+ let s = S(!1), c = o, l = t(() => c.content ? typeof c.content == "string" ? [new ClipboardItem({ "text/plain": c.content })] : Array.isArray(c.content) ? c.content : [c.content] : []), u = async (e) => {
679
2366
  c.content ? await navigator.clipboard.write(l.value) : await c.onCopy?.(e), s.value = !0, setTimeout(() => {
680
2367
  s.value = !1;
681
2368
  }, 4e3);
682
2369
  };
683
- return (t, c) => (m(), i(e, null, [o.preventAnnouncement ? r("", !0) : (m(), n(b(Wt), {
2370
+ return (t, c) => (b(), i(e, null, [o.preventAnnouncement ? r("", !0) : (b(), n(E(Ei), {
684
2371
  key: 0,
685
2372
  "aria-live": "polite"
686
2373
  }, {
687
- default: T(() => [s.value ? _(t.$slots, "default", { isCopying: s.value }, void 0, void 0, 0) : r("", !0)]),
2374
+ default: j(() => [s.value ? C(t.$slots, "default", { isCopying: s.value }, void 0, void 0, 0) : r("", !0)]),
688
2375
  _: 3
689
- })), a(b(Y), f(t.$attrs, { onClick: u }), {
690
- default: T(() => [_(t.$slots, "default", { isCopying: s.value })]),
2376
+ })), a(E(Z), p(t.$attrs, {
2377
+ disabled: o.disabled,
2378
+ "keyboard-shortcut": o.keyboardShortcut,
2379
+ onClick: u
2380
+ }), {
2381
+ default: j(() => [C(t.$slots, "default", { isCopying: s.value })]),
691
2382
  _: 3
692
- }, 16)], 64));
2383
+ }, 16, ["disabled", "keyboard-shortcut"])], 64));
693
2384
  }
694
- }), X = Symbol("dialog"), Kt = /* @__PURE__ */ o({
2385
+ }), Oi = Symbol("dialog"), ki = /* @__PURE__ */ o({
695
2386
  __name: "Dialog",
696
- props: /*@__PURE__*/ d({ modal: { type: [Boolean, String] } }, {
2387
+ props: /*@__PURE__*/ f({ modal: { type: [Boolean, String] } }, {
697
2388
  modelValue: {
698
2389
  type: Boolean,
699
2390
  default: !1
@@ -703,103 +2394,115 @@ var St = (e, t) => {
703
2394
  emits: ["update:modelValue"],
704
2395
  setup(e) {
705
2396
  let n = e;
706
- return h(X, {
707
- sharedIds: K(),
708
- open: S(e, "modelValue"),
2397
+ return x(Oi, {
2398
+ sharedIds: Y(),
2399
+ open: O(e, "modelValue"),
709
2400
  modal: t(() => n.modal)
710
- }), (e, t) => _(e.$slots, "default");
2401
+ }), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
711
2402
  }
712
- }), qt = /* @__PURE__ */ o({
2403
+ }), Ai = /* @__PURE__ */ o({
713
2404
  __name: "DialogButton",
714
- props: { disabled: { type: [Boolean, String] } },
2405
+ props: {
2406
+ disabled: { type: [Boolean, String] },
2407
+ keyboardShortcut: {}
2408
+ },
715
2409
  setup(e) {
716
- let { sharedIds: t, open: r, modal: i } = l(X);
717
- return (a, o) => (m(), n(b(Y), {
2410
+ let { sharedIds: t, open: r, modal: i } = l(Oi);
2411
+ return (a, o) => (b(), n(E(Z), {
718
2412
  "aria-haspopup": "dialog",
719
- "aria-expanded": b(r),
2413
+ "aria-expanded": E(r),
720
2414
  disabled: e.disabled,
721
- commandfor: b(t).get("panel"),
722
- command: b(i) ? "show-modal" : "--show-non-modal"
2415
+ "keyboard-shortcut": e.keyboardShortcut,
2416
+ commandfor: E(t).get("panel"),
2417
+ command: E(i) ? "show-modal" : "--show-non-modal"
723
2418
  }, {
724
- default: T(() => [_(a.$slots, "default")]),
2419
+ default: j(() => [C(a.$slots, "default")]),
725
2420
  _: 3
726
2421
  }, 8, [
727
2422
  "aria-expanded",
728
2423
  "disabled",
2424
+ "keyboard-shortcut",
729
2425
  "commandfor",
730
2426
  "command"
731
2427
  ]));
732
2428
  }
733
- }), Jt = /* @__PURE__ */ o({
2429
+ }), ji = /* @__PURE__ */ o({
734
2430
  __name: "DialogCloseButton",
735
- props: { disabled: { type: [Boolean, String] } },
2431
+ props: {
2432
+ disabled: { type: [Boolean, String] },
2433
+ keyboardShortcut: {}
2434
+ },
736
2435
  setup(e) {
737
- let { sharedIds: t } = l(X);
738
- return (r, i) => (m(), n(b(Y), {
2436
+ let { sharedIds: t } = l(Oi);
2437
+ return (r, i) => (b(), n(E(Z), {
739
2438
  disabled: e.disabled,
740
- commandfor: b(t).get("panel"),
2439
+ "keyboard-shortcut": e.keyboardShortcut,
2440
+ commandfor: E(t).get("panel"),
741
2441
  command: "close"
742
2442
  }, {
743
- default: T(() => [_(r.$slots, "default")]),
2443
+ default: j(() => [C(r.$slots, "default")]),
744
2444
  _: 3
745
- }, 8, ["disabled", "commandfor"]));
2445
+ }, 8, [
2446
+ "disabled",
2447
+ "keyboard-shortcut",
2448
+ "commandfor"
2449
+ ]));
746
2450
  }
747
- }), Yt = [
2451
+ }), Mi = [
748
2452
  "id",
749
2453
  "role",
750
2454
  "aria-labelledby",
751
2455
  "aria-describedby",
752
2456
  "closedby"
753
- ], Xt = /* @__PURE__ */ o({
2457
+ ], Ni = /* @__PURE__ */ o({
754
2458
  __name: "DialogPanel",
755
2459
  props: {
756
2460
  lightDismiss: { type: Boolean },
757
- id: { default: () => x() }
2461
+ id: { default: () => D() }
758
2462
  },
759
2463
  setup(e) {
760
- let t = e, n = C("element"), { sharedIds: r, open: a, modal: o } = l(X);
761
- q(r, "panel", () => t.id);
2464
+ let t = e, n = k("element"), { sharedIds: r, open: a, modal: o } = l(Oi);
2465
+ X(r, "panel", () => t.id);
762
2466
  let s = (e) => {
763
2467
  e.command === "--show-non-modal" && n.value?.show();
764
2468
  };
765
- return w(a, (e) => {
2469
+ return A(a, (e) => {
766
2470
  n.value && (e ? o?.value ? n.value.showModal() : n.value.show() : n.value.close());
767
- }), (t, c) => (m(), i("dialog", {
2471
+ }), (t, c) => (b(), i("dialog", {
768
2472
  id: e.id,
769
2473
  ref_key: "element",
770
2474
  ref: n,
771
- role: b(o) === "alert" ? "alertdialog" : void 0,
772
- "aria-labelledby": b(r).get("heading"),
773
- "aria-describedby": b(r).get("description"),
2475
+ role: E(o) === "alert" ? "alertdialog" : void 0,
2476
+ "aria-labelledby": E(r).get("heading"),
2477
+ "aria-describedby": E(r).get("description"),
774
2478
  closedby: e.lightDismiss ? "any" : void 0,
775
2479
  onCommand: s,
776
2480
  onToggle: c[0] ||= (e) => a.value = e.newState === "open"
777
- }, [_(t.$slots, "default")], 40, Yt));
2481
+ }, [C(t.$slots, "default")], 40, Mi));
778
2482
  }
779
- }), Zt = ["id"], Qt = /* @__PURE__ */ o({
2483
+ }), Pi = ["id"], Fi = /* @__PURE__ */ o({
780
2484
  __name: "DialogDescription",
781
- props: { id: { default: () => x() } },
2485
+ props: { id: { default: () => D() } },
782
2486
  setup(e) {
783
- let t = e, { sharedIds: n } = l(X);
784
- return q(n, "description", () => t.id), (t, n) => (m(), i("div", { id: e.id }, [_(t.$slots, "default")], 8, Zt));
2487
+ let t = e, { sharedIds: n } = l(Oi);
2488
+ return X(n, "description", () => t.id), (t, n) => (b(), i("div", { id: e.id }, [C(t.$slots, "default")], 8, Pi));
785
2489
  }
786
- }), $t = /* @__PURE__ */ o({
2490
+ }), Ii = /* @__PURE__ */ o({
787
2491
  __name: "DialogHeading",
788
2492
  props: {
789
2493
  level: { default: 1 },
790
- id: { default: () => x() }
2494
+ id: { default: () => D() }
791
2495
  },
792
2496
  setup(e) {
793
- let t = e, { sharedIds: r } = l(X);
794
- return q(r, "heading", () => t.id), (t, r) => (m(), n(v(`h${e.level}`), { id: e.id }, {
795
- default: T(() => [_(t.$slots, "default")]),
2497
+ let t = e, { sharedIds: r } = l(Oi);
2498
+ return X(r, "heading", () => t.id), (t, r) => (b(), n(w(`h${e.level}`), { id: e.id }, {
2499
+ default: j(() => [C(t.$slots, "default")]),
796
2500
  _: 3
797
2501
  }, 8, ["id"]));
798
2502
  }
799
- }), en = Symbol("disclosure"), tn = { key: 0 }, nn = /* @__PURE__ */ o({
2503
+ }), Li = Symbol("disclosure"), Ri = /* @__PURE__ */ o({
800
2504
  __name: "Disclosure",
801
- props: /*@__PURE__*/ d({
802
- render: { type: Boolean },
2505
+ props: /*@__PURE__*/ f({
803
2506
  disabled: { type: Boolean },
804
2507
  popover: { type: Boolean }
805
2508
  }, {
@@ -811,9 +2514,9 @@ var St = (e, t) => {
811
2514
  }),
812
2515
  emits: ["update:modelValue"],
813
2516
  setup(e) {
814
- let n = S(e, "modelValue"), r = e;
815
- return h(en, {
816
- sharedIds: K(),
2517
+ let n = O(e, "modelValue"), r = e;
2518
+ return x(Li, {
2519
+ sharedIds: Y(),
817
2520
  disabled: t(() => r.disabled),
818
2521
  popover: t(() => r.popover),
819
2522
  open: t({
@@ -824,325 +2527,437 @@ var St = (e, t) => {
824
2527
  n.value = e;
825
2528
  }
826
2529
  })
827
- }), (t, n) => e.render ? (m(), i("div", tn, [_(t.$slots, "default")])) : _(t.$slots, "default", {}, void 0, void 0, 1);
2530
+ }), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
828
2531
  }
829
- }), rn = /* @__PURE__ */ o({
2532
+ }), zi = /* @__PURE__ */ o({
830
2533
  __name: "DisclosureButton",
831
- props: { disabled: { type: [Boolean, String] } },
2534
+ props: {
2535
+ disabled: { type: [Boolean, String] },
2536
+ keyboardShortcut: {}
2537
+ },
832
2538
  setup(e) {
833
- let { sharedIds: i, open: a, disabled: o, popover: s } = l(en), c = t(() => ({
2539
+ let { sharedIds: i, open: a, disabled: o, popover: s } = l(Li), c = t(() => ({
834
2540
  command: s.value ? "toggle-popover" : "--toggle-disclosure",
835
2541
  commandfor: i.get("panel")
836
2542
  }));
837
- return (t, s) => b(o) ? r("", !0) : (m(), n(b(Y), f({
2543
+ return (t, s) => E(o) ? r("", !0) : (b(), n(E(Z), p({
838
2544
  key: 0,
839
- "aria-expanded": b(a),
840
- "aria-controls": b(i).get("panel"),
841
- disabled: e.disabled
2545
+ "aria-expanded": E(a),
2546
+ "aria-controls": E(i).get("panel"),
2547
+ disabled: e.disabled,
2548
+ "keyboard-shortcut": e.keyboardShortcut
842
2549
  }, c.value), {
843
- default: T(() => [_(t.$slots, "default")]),
2550
+ default: j(() => [C(t.$slots, "default")]),
844
2551
  _: 3
845
2552
  }, 16, [
846
2553
  "aria-expanded",
847
2554
  "aria-controls",
848
- "disabled"
2555
+ "disabled",
2556
+ "keyboard-shortcut"
849
2557
  ]));
850
2558
  }
851
- }), an = g(0), on = {
2559
+ }), Bi = S(0), Vi = {
852
2560
  beforeMount(e, { value: t }) {
853
- let n = `a-l-${an.value++}`;
854
- e.setAttribute("data-labelledby-id", n), t && (sn(t, n), e.setAttribute("aria-labelledby", n));
2561
+ let n = `a-l-${Bi.value++}`;
2562
+ e.setAttribute("data-labelledby-id", n), t && (Hi(t, n), e.setAttribute("aria-labelledby", n));
855
2563
  },
856
2564
  updated(e, { value: t, oldValue: n }) {
857
2565
  if (t === n) return;
858
2566
  let r = e.getAttribute("data-labelledby-id");
859
2567
  if (r) {
860
2568
  let n = document.getElementById(r);
861
- t ? n ? n.innerText = t : (sn(t, r), e.setAttribute("aria-labelledby", r)) : (e.removeAttribute("aria-labelledby"), n?.remove());
2569
+ t ? n ? n.innerText = t : (Hi(t, r), e.setAttribute("aria-labelledby", r)) : (e.removeAttribute("aria-labelledby"), n?.remove());
862
2570
  }
863
2571
  },
864
2572
  beforeUnmount(e) {
865
2573
  let t = e.getAttribute("data-labelledby-id");
866
2574
  t && (e.removeAttribute("aria-labelledby"), document.getElementById(t)?.remove());
867
2575
  }
868
- }, sn = (e, t) => {
2576
+ }, Hi = (e, t) => {
869
2577
  let n = document.createElement("span");
870
2578
  return n.innerText = e, n.id = t, n.hidden = !0, document.documentElement.appendChild(n), n;
871
- }, cn = {
2579
+ }, Ui = {
872
2580
  beforeMount(e, { value: t }, { transition: n }) {
873
- n && t === !1 ? n.beforeEnter(e) : Z(e, t);
2581
+ n && t === !1 ? n.beforeEnter(e) : Wi(e, t);
874
2582
  },
875
2583
  mounted(e, { value: t }, { transition: n }) {
876
2584
  n && t === !1 && n.enter(e);
877
2585
  },
878
2586
  updated(e, { value: t, oldValue: n }, { transition: r }) {
879
- t !== n && (r ? t === !1 ? (r.beforeEnter(e), Z(e, t), r.enter(e)) : r.leave(e, () => Z(e, t)) : Z(e, t));
2587
+ t !== n && (r ? t === !1 ? (r.beforeEnter(e), Wi(e, t), r.enter(e)) : r.leave(e, () => Wi(e, t)) : Wi(e, t));
880
2588
  },
881
2589
  beforeUnmount(e, { value: t }) {
882
- Z(e, t);
2590
+ Wi(e, t);
883
2591
  }
884
- }, Z = (e, t) => {
2592
+ }, Wi = (e, t) => {
885
2593
  t ? e.setAttribute("hidden", `${t}`) : e.removeAttribute("hidden");
886
- }, ln = /* @__PURE__ */ o({
2594
+ }, Gi = /* @__PURE__ */ o({
887
2595
  __name: "DisclosurePanel",
888
2596
  props: {
889
2597
  hideFromSearch: { type: Boolean },
890
2598
  as: { default: "div" },
891
- id: { default: () => x() }
2599
+ id: { default: () => D() }
892
2600
  },
893
2601
  setup(e) {
894
- let r = e, { sharedIds: i, popover: a, open: o } = l(en);
895
- q(i, "panel", () => r.id);
2602
+ let r = e, { sharedIds: i, popover: a, open: o } = l(Li);
2603
+ X(i, "panel", () => r.id);
896
2604
  let s = t(() => o.value ? void 0 : r.hideFromSearch ? !0 : "until-found"), c = (e) => {
897
2605
  o.value = e.newState === "open";
898
2606
  }, u = (e) => {
899
2607
  e.command === "--toggle-disclosure" && (o.value = !o.value);
900
2608
  };
901
- return (t, r) => ce((m(), n(v(e.as), {
2609
+ return (t, r) => oe((b(), n(w(e.as), {
902
2610
  id: e.id,
903
2611
  ref: "element",
904
- popover: b(a) ? "auto" : void 0,
2612
+ popover: E(a) ? "auto" : void 0,
905
2613
  onBeforematch: r[0] ||= (e) => o.value = !0,
906
2614
  onToggle: c,
907
2615
  onCommand: u
908
2616
  }, {
909
- default: T(() => [_(t.$slots, "default")]),
2617
+ default: j(() => [C(t.$slots, "default")]),
910
2618
  _: 3
911
- }, 40, ["id", "popover"])), [[b(cn), s.value]]);
2619
+ }, 40, ["id", "popover"])), [[E(Ui), s.value]]);
912
2620
  }
913
- }), un = ["href"], dn = /* @__PURE__ */ o({
2621
+ }), Ki = ["href"], qi = /* @__PURE__ */ o({
914
2622
  __name: "Link",
915
2623
  props: { url: {} },
916
2624
  setup(e) {
917
- let t = C("element"), { onKeyDown: n, moveTo: r } = Dt(J);
918
- return G("toolbar", t), (a, o) => (m(), i("a", {
2625
+ let t = k("element"), { onKeyDown: n, navigateTo: r } = Jr(Yr);
2626
+ return U("toolbar", t), (a, o) => (b(), i("a", {
919
2627
  ref_key: "element",
920
2628
  ref: t,
921
2629
  href: e.url,
922
- onKeydown: o[0] ||= (...e) => b(n) && b(n)(...e),
923
- onClick: o[1] ||= (e) => b(r)?.(t.value)
924
- }, [_(a.$slots, "default")], 40, un));
2630
+ onKeydown: o[0] ||= (...e) => E(n) && E(n)(...e),
2631
+ onClick: o[1] ||= (e) => E(r)?.(t.value)
2632
+ }, [C(a.$slots, "default")], 40, Ki));
925
2633
  }
926
- }), fn = /* @__PURE__ */ o({
2634
+ }), Ji = /* @__PURE__ */ o({
927
2635
  __name: "DownloadLink",
928
2636
  props: {
929
2637
  url: {},
930
2638
  filename: {}
931
2639
  },
932
2640
  setup(e) {
933
- return (t, r) => (m(), n(b(dn), {
2641
+ return (t, r) => (b(), n(E(qi), {
934
2642
  url: e.url,
935
2643
  download: e.filename || !0
936
2644
  }, {
937
- default: T(() => [_(t.$slots, "default")]),
2645
+ default: j(() => [C(t.$slots, "default")]),
938
2646
  _: 3
939
2647
  }, 8, ["url", "download"]));
940
2648
  }
941
- }), pn = ["id"], mn = /* @__PURE__ */ o({
2649
+ }), Yi = ["id"], Xi = /* @__PURE__ */ o({
942
2650
  __name: "FieldDescription",
2651
+ props: { id: { default: () => D() } },
943
2652
  setup(e) {
944
- let t = x(), n = C("element");
945
- return G("field-description", n), (e, r) => (m(), i("div", {
946
- id: b(t),
2653
+ let t = k("element");
2654
+ return U("field-description", t), (n, r) => (b(), i("div", {
2655
+ id: e.id,
947
2656
  ref_key: "element",
948
- ref: n
949
- }, [_(e.$slots, "default")], 8, pn));
2657
+ ref: t
2658
+ }, [C(n.$slots, "default")], 8, Yi));
950
2659
  }
951
- }), hn = ["id"], gn = /* @__PURE__ */ o({
2660
+ }), Zi = ["id"], Qi = /* @__PURE__ */ o({
952
2661
  __name: "FieldError",
2662
+ props: { id: { default: () => D() } },
953
2663
  setup(e) {
954
- let t = x(), n = C("element");
955
- return G("field-error", n), (e, r) => (m(), i("div", {
956
- id: b(t),
2664
+ let t = k("element");
2665
+ return U("field-error", t), (n, r) => (b(), i("div", {
2666
+ id: e.id,
957
2667
  ref_key: "element",
958
- ref: n
959
- }, [_(e.$slots, "default")], 8, hn));
2668
+ ref: t
2669
+ }, [C(n.$slots, "default")], 8, Zi));
960
2670
  }
961
- }), Q = Symbol("field"), _n = (e, n) => {
962
- let { elements: r } = W("field-error", n), { elements: i } = W("field-description", n), a = (e) => e.filter((e) => e.id).map((e) => e.id);
963
- return h(Q, {
964
- id: e,
965
- hasErrors: t(() => r.value.length > 0),
966
- errorIds: t(() => a(r.value)),
967
- descriptionIds: t(() => a(i.value))
968
- });
969
- }, vn = ["id", "for"], yn = /* @__PURE__ */ o({
2671
+ }), $i = ["id", "for"], ea = /* @__PURE__ */ o({
970
2672
  __name: "FieldLabel",
2673
+ props: { id: { default: () => D() } },
971
2674
  setup(e) {
972
- let { id: t } = l(Q), n = () => {
973
- document.getElementById(t)?.focus();
2675
+ let t = e, { sharedIds: n } = l(Q);
2676
+ X(n, "label", () => t.id);
2677
+ let r = () => {
2678
+ document.getElementById(n.get("input"))?.focus();
974
2679
  };
975
- return (e, r) => (m(), i("label", {
976
- id: `${b(t)}-label`,
977
- for: b(t),
978
- onClick: n
979
- }, [_(e.$slots, "default")], 8, vn));
2680
+ return (t, a) => (b(), i("label", {
2681
+ id: e.id,
2682
+ for: E(n).get("input"),
2683
+ onClick: r
2684
+ }, [C(t.$slots, "default")], 8, $i));
980
2685
  }
981
- }), bn = /* @__PURE__ */ o({
2686
+ }), ta = (e) => {
2687
+ let n = t(() => e.value?.$el), r = l(ra);
2688
+ U("table", n), U(r, n);
2689
+ let { onKeyDown: i } = l(ia);
2690
+ return {
2691
+ onKeyDown: i,
2692
+ rowId: r
2693
+ };
2694
+ }, na = (e) => {
2695
+ let { navigate: t, navigateByPage: n, navigateCustom: r, navigateTo: i } = Vt(e);
2696
+ return { onKeyDown(a, o) {
2697
+ let s = [
2698
+ "ArrowLeft",
2699
+ "ArrowRight",
2700
+ "ArrowUp",
2701
+ "ArrowDown",
2702
+ "PageUp",
2703
+ "PageDown",
2704
+ "Home",
2705
+ "End"
2706
+ ];
2707
+ if (!At(o.target)) return;
2708
+ s.includes(o.key) && o.preventDefault();
2709
+ let c = e().filter((e) => e.matches(`[data-elements-${a}="true"]`)), [l, u] = [c[0], c[c.length - 1]], d = o.target.closest(`[data-elements-${a}="true"]`);
2710
+ switch (o.key) {
2711
+ case "ArrowLeft":
2712
+ l?.isSameNode(d) || r(-1);
2713
+ break;
2714
+ case "ArrowRight":
2715
+ u?.isSameNode(d) || r(1);
2716
+ break;
2717
+ case "ArrowUp": return n(-1, c.length);
2718
+ case "ArrowDown": return n(1, c.length);
2719
+ case "PageUp": return n(-9, c.length);
2720
+ case "PageDown": return n(9, c.length);
2721
+ case "Home":
2722
+ o.ctrlKey ? t(V.Start) : l && i(l);
2723
+ break;
2724
+ case "End":
2725
+ o.ctrlKey ? t(V.End) : u && i(u);
2726
+ break;
2727
+ default: break;
2728
+ }
2729
+ } };
2730
+ }, ra = Symbol("row"), ia = Symbol("grid"), aa = /* @__PURE__ */ o({
982
2731
  __name: "GridTable",
983
2732
  setup(e) {
984
- let r = C("element"), i = t(() => r.value?.$el), { getElements: a } = W("table", i), { onKeyDown: o } = Je(a);
985
- return h(B, { onKeyDown: o }), (e, t) => (m(), n(b(Mt), {
2733
+ let r = k("element"), i = t(() => r.value?.$el), { getElements: a } = H("table", i), { onKeyDown: o } = na(a);
2734
+ return x(ia, { onKeyDown: o }), (e, t) => (b(), n(E(ei), {
986
2735
  ref_key: "element",
987
2736
  ref: i,
988
2737
  role: "grid"
989
2738
  }, {
990
- default: T(() => [_(e.$slots, "default")]),
2739
+ default: j(() => [C(e.$slots, "default")]),
991
2740
  _: 3
992
2741
  }, 512));
993
2742
  }
994
- }), xn = (e) => {
995
- let n = t(() => e.value?.$el), r = l(Sn);
996
- G("table", n), G(r, n);
997
- let { onKeyDown: i } = l(B);
998
- return {
999
- onKeyDown: i,
1000
- rowId: r
1001
- };
1002
- }, Sn = Symbol("row"), Cn = /* @__PURE__ */ o({
2743
+ }), oa = /* @__PURE__ */ o({
1003
2744
  __name: "GridTableCell",
1004
2745
  props: { heading: { type: Boolean } },
1005
2746
  setup(e) {
1006
- let { rowId: t, onKeyDown: r } = xn(C("element"));
1007
- return (i, a) => (m(), n(b(Pt), {
2747
+ let { rowId: t, onKeyDown: r } = ta(k("element"));
2748
+ return (i, a) => (b(), n(E(ni), {
1008
2749
  ref: "element",
1009
2750
  heading: e.heading,
1010
2751
  role: "gridcell",
1011
- onKeydown: a[0] ||= (e) => b(r)(b(t), e)
2752
+ onKeydown: a[0] ||= (e) => E(r)(E(t), e)
1012
2753
  }, {
1013
- default: T(() => [_(i.$slots, "default")]),
2754
+ default: j(() => [C(i.$slots, "default")]),
1014
2755
  _: 3
1015
2756
  }, 8, ["heading"]));
1016
2757
  }
1017
- }), wn = /* @__PURE__ */ o({
2758
+ }), sa = /* @__PURE__ */ o({
1018
2759
  __name: "GridTableHeadingCell",
1019
2760
  props: { sorted: {} },
1020
2761
  setup(e) {
1021
- let { rowId: t, onKeyDown: r } = xn(C("element"));
1022
- return (i, a) => (m(), n(b(Lt), {
2762
+ let { rowId: t, onKeyDown: r } = ta(k("element"));
2763
+ return (i, a) => (b(), n(E(ai), {
1023
2764
  ref: "element",
1024
2765
  role: "gridcell",
1025
2766
  sorted: e.sorted,
1026
- onKeydown: a[0] ||= (e) => b(r)(b(t), e)
2767
+ onKeydown: a[0] ||= (e) => E(r)(E(t), e)
1027
2768
  }, {
1028
- default: T(() => [_(i.$slots, "default")]),
2769
+ default: j(() => [C(i.$slots, "default")]),
1029
2770
  _: 3
1030
2771
  }, 8, ["sorted"]));
1031
2772
  }
1032
- }), Tn = /* @__PURE__ */ o({
2773
+ }), ca = /* @__PURE__ */ o({
1033
2774
  __name: "GridTableRow",
1034
2775
  setup(e) {
1035
- return h(Sn, x()), (e, t) => (m(), n(b(Rt), null, {
1036
- default: T(() => [_(e.$slots, "default")]),
2776
+ return x(ra, D()), (e, t) => (b(), n(E(oi), null, {
2777
+ default: j(() => [C(e.$slots, "default")]),
1037
2778
  _: 3
1038
2779
  }));
1039
2780
  }
1040
- }), En = /* @__PURE__ */ o({
2781
+ }), la = /* @__PURE__ */ o({
1041
2782
  __name: "ListboxField",
2783
+ props: /*@__PURE__*/ f({ multiselect: { type: Boolean } }, {
2784
+ modelValue: { default: () => [] },
2785
+ modelModifiers: {}
2786
+ }),
2787
+ emits: ["update:modelValue"],
1042
2788
  setup(e) {
1043
- let t = x(), n = C("element");
1044
- return _n(t, n), (e, t) => (m(), i("div", {
2789
+ let n = e, r = O(e, "modelValue"), a = k("element"), { sharedIds: o } = fi(a), s = t(() => n.multiselect), { optionsTracker: c, options: l, activeIndex: u, activeElementId: d, onClick: f, onBlur: p, onKeyDown: m, onOptionClick: h, onOptionMouseDown: g, onOptionMouseUp: _ } = xn(r, s, o);
2790
+ return x($, {
2791
+ modelValue: r,
2792
+ activeIndex: u,
2793
+ optionsTracker: c,
2794
+ options: l,
2795
+ activeElementId: d,
2796
+ multiselect: s,
2797
+ onClick: f,
2798
+ onBlur: p,
2799
+ onKeyDown: m,
2800
+ onOptionClick: h,
2801
+ onOptionMouseDown: g,
2802
+ onOptionMouseUp: _
2803
+ }), x(hi, !0), (e, t) => (b(), i("div", {
1045
2804
  ref_key: "element",
1046
- ref: n
1047
- }, [_(e.$slots, "default")], 512));
2805
+ ref: a
2806
+ }, [C(e.$slots, "default")], 512));
2807
+ }
2808
+ }), ua = [
2809
+ "id",
2810
+ "aria-multiselectable",
2811
+ "aria-labelledby",
2812
+ "aria-describedby",
2813
+ "aria-invalid",
2814
+ "aria-activedescendant",
2815
+ "tabindex"
2816
+ ], da = /* @__PURE__ */ o({
2817
+ __name: "ListboxInput",
2818
+ props: { id: { default: () => D() } },
2819
+ setup(e) {
2820
+ let t = e, { sharedIds: n, hasErrors: a, errorIds: o, descriptionIds: s } = l(Q);
2821
+ X(n, "listbox", () => t.id);
2822
+ let { open: c, multiselect: u, activeElementId: d, onKeyDown: f } = l($), p = l(hi, !1);
2823
+ return (t, l) => E(c) === void 0 || E(c) ? (b(), i("div", {
2824
+ key: 0,
2825
+ id: e.id,
2826
+ "aria-multiselectable": E(u),
2827
+ "aria-labelledby": E(n).get("label"),
2828
+ "aria-describedby": [E(o), E(s)].flat().join(" "),
2829
+ "aria-invalid": E(a),
2830
+ "aria-activedescendant": E(d),
2831
+ tabindex: E(p) ? 0 : -1,
2832
+ role: "listbox",
2833
+ onKeydown: l[0] ||= (e) => E(p) ? E(f)(e) : void 0
2834
+ }, [C(t.$slots, "default")], 40, ua)) : r("", !0);
1048
2835
  }
1049
- }), Dn = Symbol("listbox-field"), On = Symbol("listbox-field-group"), kn = ["aria-labelledby"], An = /* @__PURE__ */ o({
1050
- __name: "ListboxFieldGroup",
2836
+ }), fa = ["aria-labelledby"], pa = /* @__PURE__ */ o({
2837
+ __name: "ListboxGroup",
1051
2838
  setup(e) {
1052
- let t = x();
1053
- return h(On, t), (e, n) => (m(), i("div", {
2839
+ let t = Y();
2840
+ return x(mi, t), (e, n) => (b(), i("div", {
1054
2841
  role: "group",
1055
- "aria-labelledby": b(t)
1056
- }, [_(e.$slots, "default")], 8, kn));
2842
+ "aria-labelledby": E(t).get("group-label")
2843
+ }, [C(e.$slots, "default")], 8, fa));
1057
2844
  }
1058
- }), jn = ["id"], Mn = /* @__PURE__ */ o({
1059
- __name: "ListboxFieldGroupTitle",
2845
+ }), ma = ["id"], ha = /* @__PURE__ */ o({
2846
+ __name: "ListboxGroupLabel",
2847
+ props: { id: { default: () => D() } },
1060
2848
  setup(e) {
1061
- let t = l(On);
1062
- return (e, n) => (m(), i("div", { id: b(t) }, [_(e.$slots, "default")], 8, jn));
2849
+ let t = e;
2850
+ return X(l(mi), "group-label", () => t.id), (t, n) => (b(), i("div", { id: e.id }, [C(t.$slots, "default")], 8, ma));
1063
2851
  }
1064
- }), Nn = [
2852
+ }), ga = [
1065
2853
  "id",
1066
- "aria-labelledby",
1067
- "aria-describedby",
1068
- "aria-invalid",
1069
- "aria-multiselectable",
1070
- "aria-orientation"
1071
- ], Pn = /* @__PURE__ */ o({
1072
- __name: "ListboxFieldInput",
1073
- props: /*@__PURE__*/ d({
1074
- multiselect: { type: Boolean },
2854
+ "data-active",
2855
+ "data-value",
2856
+ "aria-selected",
2857
+ "aria-disabled"
2858
+ ], _a = /* @__PURE__ */ o({
2859
+ __name: "ListboxOption",
2860
+ props: {
2861
+ label: {},
2862
+ value: {},
1075
2863
  disabled: { type: Boolean },
1076
- orientation: { default: "vertical" }
1077
- }, {
2864
+ id: { default: () => D() }
2865
+ },
2866
+ setup(e) {
2867
+ let n = e, a = D(), o = k("element"), { sharedIds: s } = l(Q);
2868
+ X(s, n.value, () => n.id);
2869
+ let { modelValue: c, options: u, optionsTracker: d, activeIndex: f, onOptionClick: p, onOptionMouseDown: m, onOptionMouseUp: h } = l($), v = t(() => u.value.findIndex((e) => e.value === n.value)), y = t(() => ({
2870
+ id: a,
2871
+ value: n.value,
2872
+ label: n.label,
2873
+ disabled: n.disabled
2874
+ }));
2875
+ return A(f, (e) => {
2876
+ if (e !== v.value) return;
2877
+ let t = document.getElementById(s.get("listbox"));
2878
+ Ft(t) && It(o.value, t);
2879
+ }), g(() => {
2880
+ d.value = [...d.value, y.value];
2881
+ }), _(() => {
2882
+ d.value = d.value.filter((e) => e.id !== a);
2883
+ }), Zt(y, (e) => {
2884
+ d.value = d.value.map((t) => t.id === a ? e : t);
2885
+ }), (t, n) => v.value > -1 ? (b(), i("div", {
2886
+ key: 0,
2887
+ id: e.id,
2888
+ ref_key: "element",
2889
+ ref: o,
2890
+ "data-active": E(f) === v.value,
2891
+ "data-value": e.value,
2892
+ "aria-selected": E(c).some((t) => t === e.value),
2893
+ "aria-disabled": e.disabled,
2894
+ role: "option",
2895
+ onClick: n[0] ||= (e) => E(p)(v.value),
2896
+ onMousedown: n[1] ||= (...e) => E(m) && E(m)(...e),
2897
+ onMouseup: n[2] ||= (...e) => E(h) && E(h)(...e)
2898
+ }, [C(t.$slots, "default")], 40, ga)) : r("", !0);
2899
+ }
2900
+ }), va = /* @__PURE__ */ o({
2901
+ __name: "SelectField",
2902
+ props: /*@__PURE__*/ f({ multiselect: { type: Boolean } }, {
1078
2903
  modelValue: { default: () => [] },
1079
2904
  modelModifiers: {}
1080
2905
  }),
1081
2906
  emits: ["update:modelValue"],
1082
2907
  setup(e) {
1083
- let n = e, r = S(e, "modelValue"), { id: a, hasErrors: o, errorIds: s, descriptionIds: c } = l(Q), u = C("element"), { getElements: d } = W("listbox", u), { onKeyDown: f, onSpace: ee, moveTo: te } = Ze(() => n.orientation, () => n.multiselect, r, d);
1084
- return h(Dn, {
1085
- onKeyDown: f,
1086
- onSpace: ee,
1087
- moveTo: te,
2908
+ let n = e, r = O(e, "modelValue"), a = k("element"), { sharedIds: o } = fi(a), s = t(() => n.multiselect), c = S(!1), { options: l, optionsTracker: u, activeIndex: d, activeElementId: f, onClick: p, onBlur: m, onKeyDown: h, onOptionClick: g, onOptionMouseDown: _, onOptionMouseUp: v } = xn(r, s, o, void 0, c);
2909
+ return x($, {
1088
2910
  modelValue: r,
1089
- multiselect: t(() => n.multiselect)
1090
- }), (t, n) => (m(), i("div", {
1091
- id: b(a),
2911
+ open: c,
2912
+ activeIndex: d,
2913
+ activeElementId: f,
2914
+ optionsTracker: u,
2915
+ options: l,
2916
+ multiselect: s,
2917
+ onClick: p,
2918
+ onBlur: m,
2919
+ onKeyDown: h,
2920
+ onOptionClick: g,
2921
+ onOptionMouseDown: _,
2922
+ onOptionMouseUp: v
2923
+ }), (e, t) => (b(), i("div", {
1092
2924
  ref_key: "element",
1093
- ref: u,
1094
- "aria-labelledby": `${b(a)}-label`,
1095
- "aria-describedby": [b(s), b(c)].flat().join(" "),
1096
- "aria-invalid": b(o),
1097
- "aria-multiselectable": e.multiselect,
1098
- "aria-orientation": e.orientation,
1099
- role: "listbox"
1100
- }, [_(t.$slots, "default")], 8, Nn));
1101
- }
1102
- }), Fn = [
1103
- "aria-selected",
1104
- "aria-disabled",
1105
- "data-value"
1106
- ], In = /* @__PURE__ */ o({
1107
- __name: "ListboxFieldOption",
1108
- props: {
1109
- value: {},
1110
- disabled: {
1111
- type: Boolean,
1112
- default: !1
1113
- }
1114
- },
2925
+ ref: a
2926
+ }, [C(e.$slots, "default")], 512));
2927
+ }
2928
+ }), ya = [
2929
+ "id",
2930
+ "aria-activedescendant",
2931
+ "aria-controls",
2932
+ "aria-expanded",
2933
+ "aria-labelledby"
2934
+ ], ba = /* @__PURE__ */ o({
2935
+ __name: "SelectButton",
2936
+ props: { id: { default: () => D() } },
1115
2937
  setup(e) {
1116
- let t = e, n = C("element");
1117
- G("listbox", n);
1118
- let { onKeyDown: r, onSpace: a, moveTo: o, modelValue: s, multiselect: c } = l(Dn), u = () => {
1119
- o(n.value), !t.disabled && (s.value.includes(t.value) ? s.value = s.value.filter((e) => e !== t.value) : s.value = c.value ? [...s.value, t.value] : [t.value]);
1120
- }, d = () => {
1121
- t.disabled || s.value.includes(t.value) || (s.value = c.value ? [...s.value, t.value] : [t.value]);
1122
- };
1123
- return (t, o) => (m(), i("div", {
1124
- ref_key: "element",
1125
- ref: n,
1126
- "aria-selected": b(s).includes(e.value),
1127
- "aria-disabled": e.disabled,
1128
- "data-value": e.value,
1129
- role: "option",
1130
- tabindex: "-1",
1131
- onClick: u,
1132
- onKeydown: [
1133
- E(d, ["enter"]),
1134
- o[0] ||= E(le((t) => e.disabled ? void 0 : b(a)(e.value, t), ["prevent"]), ["space"]),
1135
- o[1] ||= (t) => b(r)(e.value, t)
1136
- ]
1137
- }, [_(t.$slots, "default", { selected: b(s).includes(e.value) })], 40, Fn));
1138
- }
1139
- }), Ln = ["aria-orientation"], Rn = /* @__PURE__ */ o({
2938
+ let t = e, { sharedIds: n } = l(Q), { open: r, activeElementId: a, onBlur: o, onKeyDown: s, onClick: c } = l($);
2939
+ return X(n, "input", () => t.id), (t, l) => (b(), i("button", {
2940
+ id: e.id,
2941
+ "aria-activedescendant": E(a),
2942
+ "aria-controls": E(n).get("listbox"),
2943
+ "aria-expanded": E(r),
2944
+ "aria-labelledby": E(n).get("label"),
2945
+ "aria-autocomplete": "none",
2946
+ "aria-haspopup": "listbox",
2947
+ role: "combobox",
2948
+ type: "button",
2949
+ onBlur: l[0] ||= (...e) => E(o) && E(o)(...e),
2950
+ onKeydown: l[1] ||= (...e) => E(s) && E(s)(...e),
2951
+ onClick: l[2] ||= (...e) => E(c) && E(c)(...e)
2952
+ }, [C(t.$slots, "default")], 40, ya));
2953
+ }
2954
+ }), xa = ["aria-orientation"], Sa = /* @__PURE__ */ o({
1140
2955
  __name: "Separator",
1141
2956
  props: { orientation: { default: "horizontal" } },
1142
2957
  setup(e) {
1143
- return (t, n) => (m(), i("hr", { "aria-orientation": e.orientation }, null, 8, Ln));
2958
+ return (t, n) => (b(), i("hr", { "aria-orientation": e.orientation }, null, 8, xa));
1144
2959
  }
1145
- }), zn = Symbol("Switch-field"), Bn = /* @__PURE__ */ o({
2960
+ }), Ca = Symbol("Switch-field"), wa = /* @__PURE__ */ o({
1146
2961
  __name: "SwitchField",
1147
2962
  props: {
1148
2963
  modelValue: {
@@ -1153,36 +2968,38 @@ var St = (e, t) => {
1153
2968
  },
1154
2969
  emits: ["update:modelValue"],
1155
2970
  setup(e) {
1156
- let t = S(e, "modelValue"), n = x(), r = C("element");
1157
- return _n(n, r), h(zn, {
1158
- id: n,
1159
- modelValue: t
1160
- }), (e, t) => (m(), i("div", {
2971
+ let t = O(e, "modelValue"), n = k("element");
2972
+ return fi(n), x(Ca, { modelValue: t }), (e, t) => (b(), i("div", {
1161
2973
  ref_key: "element",
1162
- ref: r
1163
- }, [_(e.$slots, "default")], 512));
2974
+ ref: n
2975
+ }, [C(e.$slots, "default")], 512));
1164
2976
  }
1165
- }), Vn = { "aria-hidden": "true" }, Hn = /* @__PURE__ */ o({
2977
+ }), Ta = { "aria-hidden": "true" }, Ea = /* @__PURE__ */ o({
1166
2978
  __name: "SwitchFieldStateLabel",
1167
2979
  setup(e) {
1168
- return (e, t) => (m(), i("div", Vn, [_(e.$slots, "default")]));
2980
+ return (e, t) => (b(), i("div", Ta, [C(e.$slots, "default")]));
1169
2981
  }
1170
- }), Un = /* @__PURE__ */ o({
2982
+ }), Da = /* @__PURE__ */ o({
1171
2983
  __name: "SwitchFieldSwitchButton",
1172
- props: { disabled: { type: Boolean } },
2984
+ props: {
2985
+ id: { default: () => D() },
2986
+ disabled: { type: [Boolean, String] },
2987
+ keyboardShortcut: {}
2988
+ },
1173
2989
  setup(e) {
1174
- let { modelValue: t } = l(zn), { id: r, hasErrors: i, errorIds: a, descriptionIds: o } = l(Q);
1175
- return (s, c) => (m(), n(b(Y), {
1176
- id: b(r),
1177
- "aria-checked": b(t),
1178
- "aria-describedby": [b(a), b(o)].flat().join(" ") || void 0,
1179
- "aria-invalid": b(i) ? !0 : void 0,
1180
- "aria-labelledby": `${b(r)}-label`,
2990
+ let t = e, { modelValue: r } = l(Ca), { sharedIds: i, hasErrors: a, errorIds: o, descriptionIds: s } = l(Q);
2991
+ return X(i, "switch-button", () => t.id), (t, c) => (b(), n(E(Z), {
2992
+ id: e.id,
2993
+ "aria-checked": E(r),
2994
+ "aria-describedby": [E(o), E(s)].flat().join(" ") || void 0,
2995
+ "aria-invalid": E(a) ? !0 : void 0,
2996
+ "aria-labelledby": E(i).get("label"),
1181
2997
  disabled: e.disabled,
2998
+ "keyboard-shortcut": e.keyboardShortcut,
1182
2999
  role: "switch",
1183
- onClick: c[0] ||= (e) => t.value = !b(t)
3000
+ onClick: c[0] ||= (e) => r.value = !E(r)
1184
3001
  }, {
1185
- default: T(() => [_(s.$slots, "default")]),
3002
+ default: j(() => [C(t.$slots, "default")]),
1186
3003
  _: 3
1187
3004
  }, 8, [
1188
3005
  "id",
@@ -1190,31 +3007,29 @@ var St = (e, t) => {
1190
3007
  "aria-describedby",
1191
3008
  "aria-invalid",
1192
3009
  "aria-labelledby",
1193
- "disabled"
3010
+ "disabled",
3011
+ "keyboard-shortcut"
1194
3012
  ]));
1195
3013
  }
1196
- }), $ = Symbol("tabs"), Wn = Symbol("tabs-list"), Gn = /* @__PURE__ */ o({
3014
+ }), Oa = Symbol("tabs"), ka = Symbol("tabs-list"), Aa = /* @__PURE__ */ o({
1197
3015
  __name: "Tabs",
1198
- props: /*@__PURE__*/ d({ as: {} }, {
3016
+ props: {
1199
3017
  modelValue: {},
1200
3018
  modelModifiers: {}
1201
- }),
3019
+ },
1202
3020
  emits: ["update:modelValue"],
1203
3021
  setup(e) {
1204
- let t = S(e, "modelValue");
1205
- return h($, {
1206
- sharedIds: K(),
3022
+ let t = O(e, "modelValue");
3023
+ return x(Oa, {
3024
+ sharedIds: Y(),
1207
3025
  selectedPanel: t
1208
- }), (t, r) => e.as ? (m(), n(v(e.as), { key: 0 }, {
1209
- default: T(() => [_(t.$slots, "default")]),
1210
- _: 3
1211
- })) : _(t.$slots, "default", {}, void 0, void 0, 1);
3026
+ }), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
1212
3027
  }
1213
- }), Kn = [
3028
+ }), ja = [
1214
3029
  "tabindex",
1215
3030
  "aria-disabled",
1216
3031
  "disabled"
1217
- ], qn = /* @__PURE__ */ o({
3032
+ ], Ma = /* @__PURE__ */ o({
1218
3033
  __name: "TabsActionButton",
1219
3034
  props: {
1220
3035
  value: {},
@@ -1222,94 +3037,165 @@ var St = (e, t) => {
1222
3037
  },
1223
3038
  emits: ["click"],
1224
3039
  setup(e, { emit: t }) {
1225
- let n = e, r = t, { selectedPanel: a } = l($), o = (e) => {
3040
+ let n = e, r = t, { selectedPanel: a } = l(Oa), o = (e) => {
1226
3041
  n.disabled || r("click", e);
1227
3042
  };
1228
- return (t, n) => (m(), i("button", {
3043
+ return (t, n) => (b(), i("button", {
1229
3044
  ref: "button",
1230
- tabindex: b(a) === e.value ? 0 : -1,
3045
+ tabindex: E(a) === e.value ? 0 : -1,
1231
3046
  "aria-disabled": e.disabled === !0 || void 0,
1232
3047
  disabled: e.disabled === "without-focus" || void 0,
1233
3048
  type: "button",
1234
3049
  onClick: o
1235
- }, [_(t.$slots, "default")], 8, Kn));
3050
+ }, [C(t.$slots, "default")], 8, ja));
1236
3051
  }
1237
- }), Jn = [
3052
+ }), Na = [
1238
3053
  "id",
1239
3054
  "aria-disabled",
1240
3055
  "aria-selected",
1241
3056
  "aria-controls"
1242
- ], Yn = /* @__PURE__ */ o({
3057
+ ], Pa = /* @__PURE__ */ o({
1243
3058
  __name: "TabsButton",
1244
3059
  props: {
1245
3060
  value: {},
1246
- id: { default: () => x() },
3061
+ id: { default: () => D() },
1247
3062
  disabled: { type: Boolean }
1248
3063
  },
1249
3064
  emits: ["delete"],
1250
3065
  setup(e, { emit: t }) {
1251
- let n = e, r = C("element");
1252
- G("tabs-list", r);
1253
- let a = t, { selectedPanel: o, sharedIds: s } = l($);
1254
- q(s, `${n.value}-button`, () => n.id);
1255
- let { onKeyDown: c, selectionFollowsFocus: u } = l(Wn), d = () => {
3066
+ let n = e, r = k("element");
3067
+ U("tabs-list", r);
3068
+ let a = t, { selectedPanel: o, sharedIds: s } = l(Oa);
3069
+ X(s, `${n.value}-button`, () => n.id);
3070
+ let { onKeyDown: c, selectionFollowsFocus: u } = l(ka), d = () => {
1256
3071
  n.disabled || (o.value = n.value);
1257
3072
  }, f = () => {
1258
3073
  n.disabled || a("delete");
1259
3074
  };
1260
- return te(() => {
3075
+ return g(() => {
1261
3076
  o.value ||= n.value;
1262
- }), (t, a) => (m(), i("button", {
3077
+ }), (t, a) => (b(), i("button", {
1263
3078
  id: e.id,
1264
3079
  ref_key: "element",
1265
3080
  ref: r,
1266
3081
  "aria-disabled": e.disabled === !0 || void 0,
1267
- "aria-selected": b(o) === e.value,
1268
- "aria-controls": b(s).get(`${n.value}-panel`),
3082
+ "aria-selected": E(o) === e.value,
3083
+ "aria-controls": E(s).get(`${n.value}-panel`),
1269
3084
  type: "button",
1270
3085
  role: "tab",
1271
- onFocus: a[0] ||= (t) => b(u) ? o.value = e.value : void 0,
1272
- onKeydown: [E(f, ["delete"]), a[1] ||= (...e) => b(c) && b(c)(...e)],
3086
+ onFocus: a[0] ||= (t) => E(u) ? o.value = e.value : void 0,
3087
+ onKeydown: [se(f, ["delete"]), a[1] ||= (...e) => E(c) && E(c)(...e)],
1273
3088
  onClick: d
1274
- }, [_(t.$slots, "default")], 40, Jn));
3089
+ }, [C(t.$slots, "default")], 40, Na));
1275
3090
  }
1276
- }), Xn = ["aria-orientation"], Zn = /* @__PURE__ */ o({
3091
+ }), Fa = ["aria-orientation"], Ia = /* @__PURE__ */ o({
1277
3092
  __name: "TabsList",
1278
3093
  props: {
1279
3094
  orientation: { default: "horizontal" },
1280
3095
  selectionFollowsFocus: { type: Boolean }
1281
3096
  },
1282
3097
  setup(e) {
1283
- let n = e, { orientation: r } = oe(n), a = C("element"), { getElements: o } = W("tabs-list", a), { onKeyDown: s } = V(r, o);
1284
- return h(Wn, {
3098
+ let n = e, { orientation: r } = ne(n), a = k("element"), { getElements: o } = H("tabs-list", a), { onKeyDown: s } = Ut(r, o);
3099
+ return x(ka, {
1285
3100
  selectionFollowsFocus: t(() => n.selectionFollowsFocus),
1286
3101
  onKeyDown: s
1287
- }), (e, t) => (m(), i("div", {
3102
+ }), (e, t) => (b(), i("div", {
1288
3103
  ref_key: "element",
1289
3104
  ref: a,
1290
- "aria-orientation": b(r),
3105
+ "aria-orientation": E(r),
1291
3106
  role: "tablist"
1292
- }, [_(e.$slots, "default")], 8, Xn));
3107
+ }, [C(e.$slots, "default")], 8, Fa));
1293
3108
  }
1294
- }), Qn = ["id", "aria-labelledby"], $n = /* @__PURE__ */ o({
3109
+ }), La = ["id", "aria-labelledby"], Ra = /* @__PURE__ */ o({
1295
3110
  __name: "TabsPanel",
1296
3111
  props: {
1297
3112
  value: {},
1298
- id: { default: () => x() }
3113
+ id: { default: () => D() }
1299
3114
  },
1300
3115
  setup(e) {
1301
- let n = e, { selectedPanel: a, sharedIds: o } = l($);
1302
- q(o, `${n.value}-panel`, () => n.id);
3116
+ let n = e, { selectedPanel: a, sharedIds: o } = l(Oa);
3117
+ X(o, `${n.value}-panel`, () => n.id);
1303
3118
  let s = t(() => a.value === n.value);
1304
- return (t, a) => s.value ? (m(), i("div", {
3119
+ return (t, a) => s.value ? (b(), i("div", {
1305
3120
  key: 0,
1306
3121
  id: e.id,
1307
3122
  ref: "button",
1308
- "aria-labelledby": b(o).get(`${n.value}-button`),
3123
+ "aria-labelledby": E(o).get(`${n.value}-button`),
1309
3124
  tabindex: "-1",
1310
3125
  role: "tabpanel"
1311
- }, [_(t.$slots, "default")], 8, Qn)) : r("", !0);
3126
+ }, [C(t.$slots, "default")], 8, La)) : r("", !0);
3127
+ }
3128
+ }), za = /* @__PURE__ */ o({
3129
+ __name: "TextareaField",
3130
+ setup(e) {
3131
+ return fi(k("element")), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
3132
+ }
3133
+ }), Ba = [
3134
+ "id",
3135
+ "aria-invalid",
3136
+ "aria-describedby",
3137
+ "aria-labelledby",
3138
+ "disabled"
3139
+ ], Va = /* @__PURE__ */ o({
3140
+ __name: "TextareaFieldInput",
3141
+ props: /*@__PURE__*/ f({
3142
+ disabled: { type: Boolean },
3143
+ id: { default: () => D() }
3144
+ }, {
3145
+ modelValue: {},
3146
+ modelModifiers: {}
3147
+ }),
3148
+ emits: ["update:modelValue"],
3149
+ setup(e) {
3150
+ let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l(Q);
3151
+ X(n, "input", () => t.id);
3152
+ let s = O(e, "modelValue");
3153
+ return (t, c) => oe((b(), i("textarea", {
3154
+ id: e.id,
3155
+ "onUpdate:modelValue": c[0] ||= (e) => s.value = e,
3156
+ "aria-invalid": E(r),
3157
+ "aria-describedby": [E(a), E(o)].flat().join(" ") || void 0,
3158
+ "aria-labelledby": E(n).get("label"),
3159
+ disabled: e.disabled
3160
+ }, null, 8, Ba)), [[ie, s.value]]);
3161
+ }
3162
+ }), Ha = /* @__PURE__ */ o({
3163
+ __name: "TextField",
3164
+ setup(e) {
3165
+ return fi(k("element")), (e, t) => Object.keys(e.$attrs).length ? (b(), i("div", h(p({ key: 0 }, e.$attrs)), [C(e.$slots, "default")], 16)) : C(e.$slots, "default", {}, void 0, void 0, 1);
3166
+ }
3167
+ }), Ua = [
3168
+ "id",
3169
+ "type",
3170
+ "aria-invalid",
3171
+ "aria-describedby",
3172
+ "aria-labelledby",
3173
+ "disabled"
3174
+ ], Wa = /* @__PURE__ */ o({
3175
+ __name: "TextFieldInput",
3176
+ props: /*@__PURE__*/ f({
3177
+ search: { type: Boolean },
3178
+ disabled: { type: Boolean },
3179
+ id: { default: () => D() }
3180
+ }, {
3181
+ modelValue: {},
3182
+ modelModifiers: {}
3183
+ }),
3184
+ emits: ["update:modelValue"],
3185
+ setup(e) {
3186
+ let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l(Q);
3187
+ X(n, "input", () => t.id);
3188
+ let s = O(e, "modelValue");
3189
+ return (t, c) => oe((b(), i("input", {
3190
+ id: e.id,
3191
+ "onUpdate:modelValue": c[0] ||= (e) => s.value = e,
3192
+ type: e.search ? "search" : "text",
3193
+ "aria-invalid": E(r),
3194
+ "aria-describedby": [E(a), E(o)].flat().join(" ") || void 0,
3195
+ "aria-labelledby": E(n).get("label"),
3196
+ disabled: e.disabled
3197
+ }, null, 8, Ua)), [[re, s.value]]);
1312
3198
  }
1313
3199
  });
1314
3200
  //#endregion
1315
- export { B as GridKey, Xe as ListboxKey, Y as PeachyButton, zt as PeachyCalendarTable, Bt as PeachyCalendarTableCell, Ht as PeachyCalendarTableCellButton, Gt as PeachyCopyButton, Kt as PeachyDialog, qt as PeachyDialogButton, Jt as PeachyDialogCloseButton, Qt as PeachyDialogDescription, $t as PeachyDialogHeading, Xt as PeachyDialogPanel, nn as PeachyDisclosure, rn as PeachyDisclosureButton, ln as PeachyDisclosurePanel, fn as PeachyDownloadLink, mn as PeachyFieldDescription, gn as PeachyFieldError, yn as PeachyFieldLabel, bn as PeachyGridTable, Cn as PeachyGridTableCell, wn as PeachyGridTableHeadingCell, Tn as PeachyGridTableRow, dn as PeachyLink, En as PeachyListboxField, An as PeachyListboxGroup, Mn as PeachyListboxGroupTitle, Pn as PeachyListboxInput, In as PeachyListboxOption, Rn as PeachySeparator, Un as PeachySwitchButton, Bn as PeachySwitchField, Hn as PeachySwitchStateLabel, Mt as PeachyTable, Nt as PeachyTableBody, Pt as PeachyTableCell, Ft as PeachyTableHead, Lt as PeachyTableHeadingCell, Rt as PeachyTableRow, Gn as PeachyTabs, qn as PeachyTabsActionButton, Yn as PeachyTabsButton, Zn as PeachyTabsList, $n as PeachyTabsPanel, kt as PeachyToolbar, Wt as PeachyVisuallyHidden, Ye as RovingTabindexKey, J as ToolbarContextKey, j as Weekday, Te as formatDate, Ee as getDate, M as getDaysOfCalendarMonth, Pe as getDaysOfMonth, A as getFirstDayOfMonth, ye as getFirstDayOfWeek, Se as getFirstDayOfYear, xe as getLastDayOfMonth, be as getLastDayOfTheWeek, Ce as getLastDayOfYear, ke as getMonth, Ne as getMonths, Me as getNameOfMonth, O as getNextDay, he as getNextMonth, pe as getNextWeek, _e as getNextYear, k as getPreviousDay, ge as getPreviousMonth, me as getPreviousWeek, ve as getPreviousYear, Oe as getWeekNumber, je as getWeekdays, Ae as getYear, Re as isDateInRange, Le as isDateTimeInRange, L as isDisabledElement, Be as isFocusedHtmlElement, Ve as isFocusedRovingTabindexElement, I as isHtmlElement, F as isNullish, He as isPrintableCharacter, We as isRepeatingCharacter, P as isSameDate, ze as isSameMonth, Ue as isTypeaheadCharacter, Dt as optionalInject, G as provideElement, we as removeTimezoneOffset, q as shareId, R as sortElementsByAppearance, N as sortRange, Fe as splitDaysIntoWeeks, Ge as startsWith, St as useBemClass, wt as useCalendar, Ke as useCalendarGrid, Tt as useDocumentOutline, W as useElements, Ct as useGlobalBemClass, Je as useGrid, Ze as useListbox, qe as useNavigableElements, V as useRovingTabindex, K as useSharedIds, z as useSingleTabStop, Et as useThemeSettingsStore, lt as useTypeahead, on as vAriaLabelledby, cn as vHidden };
3201
+ export { V as Move, Le as Moves, Re as PageMove, ze as PageMoves, Z as PeachyButton, si as PeachyCalendarTable, ci as PeachyCalendarTableCell, di as PeachyCalendarTableCellButton, gi as PeachyComboboxField, vi as PeachyComboboxInput, bi as PeachyComboboxSelectionList, wi as PeachyComboboxSelectionListItem, Di as PeachyCopyButton, ki as PeachyDialog, Ai as PeachyDialogButton, ji as PeachyDialogCloseButton, Fi as PeachyDialogDescription, Ii as PeachyDialogHeading, Ni as PeachyDialogPanel, Ri as PeachyDisclosure, zi as PeachyDisclosureButton, Gi as PeachyDisclosurePanel, Ji as PeachyDownloadLink, Xi as PeachyFieldDescription, Qi as PeachyFieldError, ea as PeachyFieldLabel, aa as PeachyGridTable, oa as PeachyGridTableCell, sa as PeachyGridTableHeadingCell, ca as PeachyGridTableRow, qi as PeachyLink, la as PeachyListboxField, pa as PeachyListboxGroup, ha as PeachyListboxGroupLabel, da as PeachyListboxInput, _a as PeachyListboxOption, ba as PeachySelectButton, va as PeachySelectField, Sa as PeachySeparator, Da as PeachySwitchButton, wa as PeachySwitchField, Ea as PeachySwitchStateLabel, ei as PeachyTable, ti as PeachyTableBody, ni as PeachyTableCell, ri as PeachyTableHead, ai as PeachyTableHeadingCell, oi as PeachyTableRow, Aa as PeachyTabs, Ma as PeachyTabsActionButton, Pa as PeachyTabsButton, Ia as PeachyTabsList, Ra as PeachyTabsPanel, Ha as PeachyTextField, Wa as PeachyTextFieldInput, za as PeachyTextareaField, Va as PeachyTextareaFieldInput, Zr as PeachyToolbar, Ei as PeachyVisuallyHidden, Ht as RovingTabindexKey, Yr as ToolbarContextKey, yt as Weekday, Ft as elementHasBlockScroll, ut as formatDate, dt as getDate, xt as getDaysOfCalendarMonth, bt as getDaysOfMonth, at as getFirstDayOfMonth, rt as getFirstDayOfWeek, st as getFirstDayOfYear, ot as getLastDayOfMonth, it as getLastDayOfTheWeek, ct as getLastDayOfYear, mt as getMonth, vt as getMonths, _t as getNameOfMonth, Ye as getNextDay, $e as getNextMonth, Ze as getNextWeek, tt as getNextYear, Xe as getPreviousDay, et as getPreviousMonth, Qe as getPreviousWeek, nt as getPreviousYear, pt as getWeekNumber, gt as getWeekdays, ht as getYear, Et as isDateInRange, Tt as isDateTimeInRange, jt as isDisabledElement, Mt as isFocusedHtmlElement, Nt as isFocusedRovingTabindexElement, At as isHtmlElement, Be as isMove, kt as isNullish, Ve as isPageMove, Lt as isPrintableCharacter, zt as isRepeatingCharacter, Dt as isSameDate, Ot as isSameMonth, Rt as isTypeaheadCharacter, He as navigateList, Ue as navigateListByPage, We as navigateListCustom, Jr as optionalInject, U as provideElement, lt as removeTimezoneOffset, It as scrollElementIntoArea, X as shareId, Pt as sortElementsByAppearance, wt as sortRange, St as splitDaysIntoWeeks, Bt as startsWith, vn as useBemClass, bn as useCalendar, xn as useCombobox, Cn as useDocumentOutline, Ge as useElementNavigation, H as useElements, Kr as useFuzzySearch, yn as useGlobalBemClass, Ut as useRovingTabindex, Y as useSharedIds, Vt as useSingleTabStop, qr as useThemeSettingsStore, an as useTypeahead, Vi as vAriaLabelledby, Ui as vHidden };