@typeach/core 0.0.18 → 0.0.20
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 +873 -883
- package/dist/typeach.umd.cjs +2 -2
- package/package.json +2 -1
package/dist/typeach.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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
|
|
2
|
-
import { defineStore as
|
|
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 ee, openBlock as y, provide as b, ref as x, renderSlot as S, resolveDynamicComponent as te, shallowReadonly as ne, shallowRef as re, toRefs as ie, toValue as C, unref as w, useId as T, useModel as E, useTemplateRef as D, vModelDynamic as ae, vModelText as oe, watch as O, watchEffect as se, withCtx as k, withDirectives as ce, withKeys as le } from "vue";
|
|
2
|
+
import { defineStore as ue } from "pinia";
|
|
3
3
|
//#region ../../node_modules/.pnpm/hotkeys-js@4.0.8/node_modules/hotkeys-js/dist/hotkeys-js.js
|
|
4
|
-
var
|
|
5
|
-
function
|
|
4
|
+
var de = typeof navigator < "u" && navigator.userAgent.toLowerCase().indexOf("firefox") > 0;
|
|
5
|
+
function fe(e, t, n, r) {
|
|
6
6
|
e.addEventListener ? e.addEventListener(t, n, r) : e.attachEvent && e.attachEvent(`on${t}`, n);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function pe(e, t, n, r) {
|
|
9
9
|
e && (e.removeEventListener ? e.removeEventListener(t, n, r) : e.detachEvent && e.detachEvent(`on${t}`, n));
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function me(e, t) {
|
|
12
12
|
let n = t.slice(0, t.length - 1), r = [];
|
|
13
13
|
for (let t = 0; t < n.length; t++) r.push(e[n[t].toLowerCase()]);
|
|
14
14
|
return r;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function he(e) {
|
|
17
17
|
typeof e != "string" && (e = ""), e = e.replace(/\s/g, "");
|
|
18
18
|
let t = e.split(","), n = t.lastIndexOf("");
|
|
19
19
|
for (; n >= 0;) t[n - 1] += ",", t.splice(n, 1), n = t.lastIndexOf("");
|
|
20
20
|
return t;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ge(e, t) {
|
|
23
23
|
let n = e.length >= t.length ? e : t, r = e.length >= t.length ? t : e, i = !0;
|
|
24
24
|
for (let e = 0; e < n.length; e++) r.indexOf(n[e]) === -1 && (i = !1);
|
|
25
25
|
return i;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function _e(e, t, n) {
|
|
28
28
|
let r = e.keyCode || e.which || e.charCode;
|
|
29
29
|
if (e.key) {
|
|
30
30
|
let r = e.key.toLowerCase();
|
|
@@ -35,7 +35,7 @@ function he(e, t, n) {
|
|
|
35
35
|
}
|
|
36
36
|
return e.code && /^Key[A-Z]$/.test(e.code) && (r = e.code.charCodeAt(3)), r;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var A = {
|
|
39
39
|
backspace: 8,
|
|
40
40
|
"⌫": 8,
|
|
41
41
|
tab: 9,
|
|
@@ -84,16 +84,16 @@ var M = {
|
|
|
84
84
|
".": 190,
|
|
85
85
|
"/": 191,
|
|
86
86
|
"`": 192,
|
|
87
|
-
"-":
|
|
88
|
-
"=":
|
|
89
|
-
";":
|
|
87
|
+
"-": de ? 173 : 189,
|
|
88
|
+
"=": de ? 61 : 187,
|
|
89
|
+
";": de ? 59 : 186,
|
|
90
90
|
"'": 222,
|
|
91
91
|
"{": 219,
|
|
92
92
|
"}": 221,
|
|
93
93
|
"[": 219,
|
|
94
94
|
"]": 221,
|
|
95
95
|
"\\": 220
|
|
96
|
-
},
|
|
96
|
+
}, j = {
|
|
97
97
|
"⇧": 16,
|
|
98
98
|
shift: 16,
|
|
99
99
|
"⌥": 18,
|
|
@@ -106,7 +106,7 @@ var M = {
|
|
|
106
106
|
cmd: 91,
|
|
107
107
|
meta: 91,
|
|
108
108
|
command: 91
|
|
109
|
-
},
|
|
109
|
+
}, ve = {
|
|
110
110
|
16: "shiftKey",
|
|
111
111
|
18: "altKey",
|
|
112
112
|
17: "ctrlKey",
|
|
@@ -115,28 +115,28 @@ var M = {
|
|
|
115
115
|
ctrlKey: 17,
|
|
116
116
|
altKey: 18,
|
|
117
117
|
metaKey: 91
|
|
118
|
-
},
|
|
118
|
+
}, M = {
|
|
119
119
|
16: !1,
|
|
120
120
|
18: !1,
|
|
121
121
|
17: !1,
|
|
122
122
|
91: !1
|
|
123
|
-
},
|
|
124
|
-
for (let e = 1; e < 20; e++)
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
},
|
|
123
|
+
}, N = {};
|
|
124
|
+
for (let e = 1; e < 20; e++) A[`f${e}`] = 111 + e;
|
|
125
|
+
var P = [], ye = null, F = null, be = "all", I = /* @__PURE__ */ new Map(), L = (e) => A[e.toLowerCase()] || j[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), xe = (e) => Object.keys(A).find((t) => A[t] === e), Se = (e) => Object.keys(j).find((t) => j[t] === e), Ce = (e) => {
|
|
126
|
+
be = e || "all";
|
|
127
|
+
}, we = () => be || "all", Te = () => P.slice(0), Ee = () => P.map((e) => xe(e) || Se(e) || String.fromCharCode(e)), De = () => {
|
|
128
128
|
let e = [];
|
|
129
|
-
return Object.keys(
|
|
130
|
-
|
|
129
|
+
return Object.keys(N).forEach((t) => {
|
|
130
|
+
N[t].forEach(({ key: t, scope: n, mods: r, shortcut: i }) => {
|
|
131
131
|
e.push({
|
|
132
132
|
scope: n,
|
|
133
133
|
shortcut: i,
|
|
134
134
|
mods: r,
|
|
135
|
-
keys: t.split("+").map((e) =>
|
|
135
|
+
keys: t.split("+").map((e) => L(e))
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
138
|
}), e;
|
|
139
|
-
},
|
|
139
|
+
}, Oe = (e) => {
|
|
140
140
|
let t = e.target || e.srcElement, { tagName: n } = t, r = !0, i = n === "INPUT" && ![
|
|
141
141
|
"checkbox",
|
|
142
142
|
"radio",
|
|
@@ -148,99 +148,99 @@ var I = [], _e = null, L = null, ve = "all", R = /* @__PURE__ */ new Map(), z =
|
|
|
148
148
|
"color"
|
|
149
149
|
].includes(t.type);
|
|
150
150
|
return (t.isContentEditable || (i || n === "TEXTAREA" || n === "SELECT") && !t.readOnly) && (r = !1), r;
|
|
151
|
-
},
|
|
151
|
+
}, ke = (e) => (typeof e == "string" && (e = L(e)), P.indexOf(e) !== -1), Ae = (e, t) => {
|
|
152
152
|
let n, r;
|
|
153
|
-
e ||=
|
|
154
|
-
for (let t in
|
|
155
|
-
|
|
153
|
+
e ||= we();
|
|
154
|
+
for (let t in N) if (Object.prototype.hasOwnProperty.call(N, t)) for (n = N[t], r = 0; r < n.length;) n[r].scope === e ? n.splice(r, 1).forEach(({ element: e }) => Le(e)) : r++;
|
|
155
|
+
we() === e && Ce(t || "all");
|
|
156
156
|
};
|
|
157
|
-
function
|
|
158
|
-
let t =
|
|
159
|
-
e.key && e.key.toLowerCase() === "capslock" && (t =
|
|
160
|
-
let n =
|
|
161
|
-
if (n >= 0 &&
|
|
162
|
-
|
|
163
|
-
for (let e in
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var
|
|
167
|
-
if (e === void 0) Object.keys(
|
|
168
|
-
Array.isArray(
|
|
169
|
-
}),
|
|
157
|
+
function je(e) {
|
|
158
|
+
let t = _e(e, A, j);
|
|
159
|
+
e.key && e.key.toLowerCase() === "capslock" && (t = L(e.key));
|
|
160
|
+
let n = P.indexOf(t);
|
|
161
|
+
if (n >= 0 && P.splice(n, 1), e.key && e.key.toLowerCase() === "meta" && P.splice(0, P.length), (t === 93 || t === 224) && (t = 91), t in M) {
|
|
162
|
+
M[t] = !1;
|
|
163
|
+
for (let e in j) j[e] === t && (R[e] = !1);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
var Me = (e, ...t) => {
|
|
167
|
+
if (e === void 0) Object.keys(N).forEach((e) => {
|
|
168
|
+
Array.isArray(N[e]) && N[e].forEach((e) => Ne(e)), delete N[e];
|
|
169
|
+
}), Le(null);
|
|
170
170
|
else if (Array.isArray(e)) e.forEach((e) => {
|
|
171
|
-
e.key &&
|
|
171
|
+
e.key && Ne(e);
|
|
172
172
|
});
|
|
173
|
-
else if (typeof e == "object") e.key &&
|
|
173
|
+
else if (typeof e == "object") e.key && Ne(e);
|
|
174
174
|
else if (typeof e == "string") {
|
|
175
175
|
let [n, r] = t;
|
|
176
|
-
typeof n == "function" && (r = n, n = ""),
|
|
176
|
+
typeof n == "function" && (r = n, n = ""), Ne({
|
|
177
177
|
key: e,
|
|
178
178
|
scope: n,
|
|
179
179
|
method: r,
|
|
180
180
|
splitKey: "+"
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
let i = e.split(r), a = i.length, o = i[a - 1], s = o === "*" ? "*" :
|
|
186
|
-
if (!
|
|
187
|
-
t ||=
|
|
188
|
-
let c = a > 1 ?
|
|
189
|
-
|
|
190
|
-
let r = (!n || e.method === n) && e.scope === t &&
|
|
183
|
+
}, Ne = ({ key: e, scope: t, method: n, splitKey: r = "+" }) => {
|
|
184
|
+
he(e).forEach((e) => {
|
|
185
|
+
let i = e.split(r), a = i.length, o = i[a - 1], s = o === "*" ? "*" : L(o);
|
|
186
|
+
if (!N[s]) return;
|
|
187
|
+
t ||= we();
|
|
188
|
+
let c = a > 1 ? me(j, i) : [], l = [];
|
|
189
|
+
N[s] = N[s].filter((e) => {
|
|
190
|
+
let r = (!n || e.method === n) && e.scope === t && ge(e.mods, c);
|
|
191
191
|
return r && l.push(e.element), !r;
|
|
192
|
-
}), l.forEach((e) =>
|
|
192
|
+
}), l.forEach((e) => Le(e));
|
|
193
193
|
});
|
|
194
194
|
};
|
|
195
|
-
function
|
|
195
|
+
function Pe(e, t, n, r) {
|
|
196
196
|
if (t.element !== r) return;
|
|
197
197
|
let i;
|
|
198
198
|
if (t.scope === n || t.scope === "all") {
|
|
199
199
|
i = t.mods.length > 0;
|
|
200
|
-
for (let e in
|
|
201
|
-
(t.mods.length === 0 && !
|
|
200
|
+
for (let e in M) Object.prototype.hasOwnProperty.call(M, e) && (!M[e] && t.mods.indexOf(+e) > -1 || M[e] && t.mods.indexOf(+e) === -1) && (i = !1);
|
|
201
|
+
(t.mods.length === 0 && !M[16] && !M[18] && !M[17] && !M[91] || i || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(P), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble &&= !0));
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
let n =
|
|
206
|
-
if (e.key && e.key.toLowerCase() === "capslock" || !(
|
|
207
|
-
if ((r === 93 || r === 224) && (r = 91),
|
|
204
|
+
function Fe(e, t) {
|
|
205
|
+
let n = N["*"], r = _e(e, A, j);
|
|
206
|
+
if (e.key && e.key.toLowerCase() === "capslock" || !(R.filter || Oe).call(this, e)) return;
|
|
207
|
+
if ((r === 93 || r === 224) && (r = 91), P.indexOf(r) === -1 && r !== 229 && P.push(r), [
|
|
208
208
|
"metaKey",
|
|
209
209
|
"ctrlKey",
|
|
210
210
|
"altKey",
|
|
211
211
|
"shiftKey"
|
|
212
212
|
].forEach((t) => {
|
|
213
|
-
let n =
|
|
214
|
-
e[t] &&
|
|
215
|
-
}), r in
|
|
216
|
-
|
|
217
|
-
for (let t in
|
|
213
|
+
let n = ve[t];
|
|
214
|
+
e[t] && P.indexOf(n) === -1 ? P.push(n) : !e[t] && P.indexOf(n) > -1 ? P.splice(P.indexOf(n), 1) : t === "metaKey" && e[t] && (P = P.filter((e) => e in ve || e === r));
|
|
215
|
+
}), r in M) {
|
|
216
|
+
M[r] = !0;
|
|
217
|
+
for (let t in j) Object.prototype.hasOwnProperty.call(j, t) && (R[t] = e[ve[j[t]]]);
|
|
218
218
|
if (!n) return;
|
|
219
219
|
}
|
|
220
|
-
for (let t in
|
|
221
|
-
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (
|
|
222
|
-
let i =
|
|
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) &&
|
|
224
|
-
if (!(r in
|
|
225
|
-
let a =
|
|
220
|
+
for (let t in M) Object.prototype.hasOwnProperty.call(M, t) && (M[t] = e[ve[t]]);
|
|
221
|
+
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (P.indexOf(17) === -1 && P.push(17), P.indexOf(18) === -1 && P.push(18), M[17] = !0, M[18] = !0);
|
|
222
|
+
let i = we();
|
|
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) && Pe(e, n[r], i, t);
|
|
224
|
+
if (!(r in N)) return;
|
|
225
|
+
let a = N[r], o = a.length;
|
|
226
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
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(
|
|
229
|
-
c.sort().join("") ===
|
|
228
|
+
for (let e = 0; e < s.length; e++) c.push(L(s[e]));
|
|
229
|
+
c.sort().join("") === P.sort().join("") && Pe(e, r, i, t);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
let i =
|
|
232
|
+
var R = function e(t, n, r) {
|
|
233
|
+
P = [];
|
|
234
|
+
let i = he(t), a = [], o = "all", s = document, c = 0, l = !1, u = !0, d = "+", f = !1, p = !1;
|
|
235
235
|
if (r === void 0 && typeof n == "function" && (r = n), Object.prototype.toString.call(n) === "[object Object]") {
|
|
236
236
|
let e = n;
|
|
237
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
238
|
}
|
|
239
|
-
for (typeof n == "string" && (o = n), p &&
|
|
239
|
+
for (typeof n == "string" && (o = n), p && Me(t, o); c < i.length; c++) {
|
|
240
240
|
let e = i[c].split(d);
|
|
241
|
-
a = [], e.length > 1 && (a =
|
|
241
|
+
a = [], e.length > 1 && (a = me(j, e));
|
|
242
242
|
let t = e[e.length - 1];
|
|
243
|
-
t = t === "*" ? "*" :
|
|
243
|
+
t = t === "*" ? "*" : L(t), t in N || (N[t] = []), N[t].push({
|
|
244
244
|
keyup: l,
|
|
245
245
|
keydown: u,
|
|
246
246
|
scope: o,
|
|
@@ -253,99 +253,99 @@ var B = function e(t, n, r) {
|
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
if (s !== void 0 && typeof window < "u") {
|
|
256
|
-
if (!
|
|
257
|
-
let e = (e = window.event) =>
|
|
258
|
-
|
|
256
|
+
if (!I.has(s)) {
|
|
257
|
+
let e = (e = window.event) => Fe(e, s), t = (e = window.event) => {
|
|
258
|
+
Fe(e, s), je(e);
|
|
259
259
|
};
|
|
260
|
-
|
|
260
|
+
I.set(s, {
|
|
261
261
|
keydownListener: e,
|
|
262
262
|
keyupListenr: t,
|
|
263
263
|
capture: f
|
|
264
|
-
}),
|
|
264
|
+
}), fe(s, "keydown", e, f), fe(s, "keyup", t, f);
|
|
265
265
|
}
|
|
266
|
-
if (!
|
|
266
|
+
if (!ye) {
|
|
267
267
|
let e = () => {
|
|
268
|
-
|
|
268
|
+
P = [];
|
|
269
269
|
};
|
|
270
|
-
|
|
270
|
+
ye = {
|
|
271
271
|
listener: e,
|
|
272
272
|
capture: f
|
|
273
|
-
},
|
|
273
|
+
}, fe(window, "focus", e, f);
|
|
274
274
|
}
|
|
275
|
-
if (!
|
|
275
|
+
if (!F && typeof document < "u") {
|
|
276
276
|
let t = () => {
|
|
277
|
-
|
|
278
|
-
for (let e in
|
|
279
|
-
for (let t in
|
|
277
|
+
P = [];
|
|
278
|
+
for (let e in M) M[e] = !1;
|
|
279
|
+
for (let t in j) e[t] = !1;
|
|
280
280
|
}, n = t, r = t;
|
|
281
|
-
document.addEventListener("fullscreenchange", n), document.addEventListener("webkitfullscreenchange", r),
|
|
281
|
+
document.addEventListener("fullscreenchange", n), document.addEventListener("webkitfullscreenchange", r), F = {
|
|
282
282
|
fullscreen: n,
|
|
283
283
|
webkit: r
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
function
|
|
289
|
-
Object.keys(
|
|
290
|
-
|
|
288
|
+
function Ie(e, t = "all") {
|
|
289
|
+
Object.keys(N).forEach((n) => {
|
|
290
|
+
N[n].filter((n) => n.scope === t && (n.shortcut === e || n.shortcut === "*")).forEach((e) => {
|
|
291
291
|
e && e.method && e.method({}, e);
|
|
292
292
|
});
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
let t = Object.values(
|
|
295
|
+
function Le(e) {
|
|
296
|
+
let t = Object.values(N).flat();
|
|
297
297
|
if (t.findIndex(({ element: t }) => t === e) < 0 && e) {
|
|
298
|
-
let { keydownListener: t, keyupListenr: n, capture: r } =
|
|
299
|
-
t && n && (
|
|
300
|
-
}
|
|
301
|
-
if (t.length <= 0 ||
|
|
302
|
-
if (Array.from(
|
|
303
|
-
let { keydownListener: t, keyupListenr: n, capture: r } =
|
|
304
|
-
t && n && (
|
|
305
|
-
}),
|
|
306
|
-
let { listener: e, capture: t } =
|
|
307
|
-
|
|
298
|
+
let { keydownListener: t, keyupListenr: n, capture: r } = I.get(e) || {};
|
|
299
|
+
t && n && (pe(e, "keyup", n, r), pe(e, "keydown", t, r), I.delete(e));
|
|
300
|
+
}
|
|
301
|
+
if (t.length <= 0 || I.size <= 0) {
|
|
302
|
+
if (Array.from(I.keys()).forEach((e) => {
|
|
303
|
+
let { keydownListener: t, keyupListenr: n, capture: r } = I.get(e) || {};
|
|
304
|
+
t && n && (pe(e, "keyup", n, r), pe(e, "keydown", t, r), I.delete(e));
|
|
305
|
+
}), I.clear(), Object.keys(N).forEach((e) => delete N[e]), ye) {
|
|
306
|
+
let { listener: e, capture: t } = ye;
|
|
307
|
+
pe(window, "focus", e, t), ye = null;
|
|
308
308
|
}
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
var
|
|
313
|
-
getPressedKeyString:
|
|
314
|
-
setScope:
|
|
315
|
-
getScope:
|
|
316
|
-
deleteScope:
|
|
317
|
-
getPressedKeyCodes:
|
|
318
|
-
getAllKeyCodes:
|
|
319
|
-
isPressed:
|
|
320
|
-
filter:
|
|
321
|
-
trigger:
|
|
322
|
-
unbind:
|
|
323
|
-
keyMap:
|
|
324
|
-
modifier:
|
|
325
|
-
modifierMap:
|
|
309
|
+
F && typeof document < "u" && (document.removeEventListener("fullscreenchange", F.fullscreen), document.removeEventListener("webkitfullscreenchange", F.webkit), F = null);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
var Re = {
|
|
313
|
+
getPressedKeyString: Ee,
|
|
314
|
+
setScope: Ce,
|
|
315
|
+
getScope: we,
|
|
316
|
+
deleteScope: Ae,
|
|
317
|
+
getPressedKeyCodes: Te,
|
|
318
|
+
getAllKeyCodes: De,
|
|
319
|
+
isPressed: ke,
|
|
320
|
+
filter: Oe,
|
|
321
|
+
trigger: Ie,
|
|
322
|
+
unbind: Me,
|
|
323
|
+
keyMap: A,
|
|
324
|
+
modifier: j,
|
|
325
|
+
modifierMap: ve
|
|
326
326
|
};
|
|
327
|
-
for (let e in
|
|
327
|
+
for (let e in Re) {
|
|
328
328
|
let t = e;
|
|
329
|
-
Object.prototype.hasOwnProperty.call(
|
|
329
|
+
Object.prototype.hasOwnProperty.call(Re, t) && (R[t] = Re[t]);
|
|
330
330
|
}
|
|
331
331
|
if (typeof window < "u") {
|
|
332
332
|
let e = window.hotkeys;
|
|
333
|
-
|
|
333
|
+
R.noConflict = (t) => (t && window.hotkeys === R && (window.hotkeys = e), R), window.hotkeys = R;
|
|
334
334
|
}
|
|
335
335
|
//#endregion
|
|
336
336
|
//#region src/hooks/keyboard/utils.ts
|
|
337
|
-
var
|
|
337
|
+
var z = /* @__PURE__ */ function(e) {
|
|
338
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
|
-
}({}),
|
|
339
|
+
}({}), ze = [
|
|
340
340
|
1,
|
|
341
341
|
2,
|
|
342
342
|
3,
|
|
343
343
|
4,
|
|
344
344
|
5,
|
|
345
345
|
6
|
|
346
|
-
],
|
|
346
|
+
], Be = /* @__PURE__ */ function(e) {
|
|
347
347
|
return e[e.Forward = 1] = "Forward", e[e.Backward = 2] = "Backward", e;
|
|
348
|
-
}({}),
|
|
348
|
+
}({}), Ve = [1, 2], He = (e) => ze.includes(e), Ue = (e) => Ve.includes(e), We = (e, t, n) => {
|
|
349
349
|
switch (t) {
|
|
350
350
|
case 1: return Math.min(e + 1, n);
|
|
351
351
|
case 2: return Math.max(e - 1, 0);
|
|
@@ -355,121 +355,121 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
355
355
|
case 6: return 0;
|
|
356
356
|
default: return e;
|
|
357
357
|
}
|
|
358
|
-
},
|
|
358
|
+
}, Ge = (e, t, n, r, i = 10) => {
|
|
359
359
|
let a = t === 1;
|
|
360
360
|
for (let t = r; a ? t > 0 : t < 0; a ? t-- : t++) {
|
|
361
361
|
let r = e + t * i;
|
|
362
362
|
if (r >= 0 && r <= n) return r;
|
|
363
363
|
}
|
|
364
364
|
return e;
|
|
365
|
-
},
|
|
365
|
+
}, Ke = (e, t, n) => Math.max(Math.min(e + t, n), 0), qe = (e) => {
|
|
366
366
|
let t = (t) => {
|
|
367
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
368
|
c = a[s], c && r(c, a[o]);
|
|
369
369
|
};
|
|
370
370
|
return {
|
|
371
371
|
navigate(e) {
|
|
372
|
-
return t((t, n) =>
|
|
372
|
+
return t((t, n) => We(t, e, n));
|
|
373
373
|
},
|
|
374
374
|
navigateByPage(e, n) {
|
|
375
|
-
return t((t, r) =>
|
|
375
|
+
return t((t, r) => Ge(t, e < 0 ? Be.Backward : Be.Forward, r, e, n));
|
|
376
376
|
},
|
|
377
377
|
navigateCustom(e) {
|
|
378
|
-
return t((t, n) =>
|
|
378
|
+
return t((t, n) => Ke(t, e, n));
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
|
-
},
|
|
381
|
+
}, Je = (e, t) => {
|
|
382
382
|
let n = new Date(e);
|
|
383
383
|
return n.setDate(n.getDate() + t), n;
|
|
384
|
-
},
|
|
384
|
+
}, Ye = (e, t) => {
|
|
385
385
|
let n = new Date(e);
|
|
386
386
|
return n.setMonth(n.getMonth() + t), n;
|
|
387
|
-
},
|
|
387
|
+
}, Xe = (e, t) => {
|
|
388
388
|
let n = new Date(e);
|
|
389
389
|
return n.setFullYear(n.getFullYear() + t), n;
|
|
390
|
-
},
|
|
390
|
+
}, Ze = (e) => Je(e, 1), Qe = (e) => Je(e, -1), $e = (e) => Je(e, 7), et = (e) => Je(e, -7), tt = (e) => Ye(e, 1), nt = (e) => Ye(e, -1), rt = (e) => Xe(e, 1), it = (e) => Xe(e, -1), at = (e, t) => {
|
|
391
391
|
let n = new Date(e), r = n.getDay(), i = r >= t ? r - t : 6 - r;
|
|
392
392
|
return n.setDate(n.getDate() - i), n;
|
|
393
|
-
},
|
|
393
|
+
}, ot = (e, t) => Je(at(e, t), 6), st = (e) => {
|
|
394
394
|
let t = `${e.getFullYear()}`.padStart(4, "0"), n = `${e.getMonth() + 1}`.padStart(2, "0");
|
|
395
|
-
return
|
|
396
|
-
},
|
|
397
|
-
let t =
|
|
395
|
+
return dt(/* @__PURE__ */ new Date(`${t}-${n}-01`));
|
|
396
|
+
}, ct = (e) => {
|
|
397
|
+
let t = st(e);
|
|
398
398
|
return t.setMonth(t.getMonth() + 1), t.setDate(t.getDate() - 1), t;
|
|
399
|
-
},
|
|
399
|
+
}, lt = (e) => new Date(e.getFullYear(), 0, 1), ut = (e) => new Date(e.getFullYear(), 11, 31), dt = (e) => {
|
|
400
400
|
let t = new Date(e), n = t.getTimezoneOffset();
|
|
401
401
|
return t.setMinutes(t.getMinutes() + n), t;
|
|
402
|
-
},
|
|
402
|
+
}, ft = (e, t) => Intl.DateTimeFormat(t, {
|
|
403
403
|
weekday: "long",
|
|
404
404
|
day: "numeric",
|
|
405
405
|
month: "long",
|
|
406
406
|
year: "numeric"
|
|
407
|
-
}).format(e),
|
|
407
|
+
}).format(e), pt = (e) => e.getDate(), mt = (e, t) => Intl.DateTimeFormat(t, { weekday: "long" }).format(e), ht = (e) => {
|
|
408
408
|
let t = new Date(e);
|
|
409
409
|
t.setDate(t.getDate() + 4 - t.getDay());
|
|
410
|
-
let n =
|
|
410
|
+
let n = lt(e);
|
|
411
411
|
return Math.floor(((t - +n) / 864e5 + 1) / 7);
|
|
412
|
-
},
|
|
413
|
-
name:
|
|
412
|
+
}, gt = (e, t) => ({
|
|
413
|
+
name: yt(e, t),
|
|
414
414
|
number: e.getMonth() + 1
|
|
415
|
-
}),
|
|
415
|
+
}), _t = (e) => e.getFullYear(), vt = (e, t) => Array.from({ length: 7 }).fill(void 0).map((t, n) => (e + n) % 7 + 1).map((e) => mt(dt(/* @__PURE__ */ new Date(`2006-01-0${e}`)), t)), yt = (e, t) => Intl.DateTimeFormat(t, { month: "long" }).format(e), bt = (e) => Array.from({ length: 12 }).fill(void 0).map((t, n) => gt(/* @__PURE__ */ new Date(`2006-${String(n + 1).padStart(2, "0")}-01`), e)), xt = /* @__PURE__ */ function(e) {
|
|
416
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;
|
|
417
|
-
}({}),
|
|
418
|
-
let t = [], n =
|
|
419
|
-
for (; n.getMonth() === e.getMonth();) t.push(n), n =
|
|
417
|
+
}({}), St = (e) => {
|
|
418
|
+
let t = [], n = st(e);
|
|
419
|
+
for (; n.getMonth() === e.getMonth();) t.push(n), n = Ze(n);
|
|
420
420
|
return t;
|
|
421
|
-
},
|
|
422
|
-
let n =
|
|
421
|
+
}, Ct = (e, t) => {
|
|
422
|
+
let n = St(e), { daysBefore: r, daysAfter: i } = Tt(e, t);
|
|
423
423
|
return [
|
|
424
424
|
...r,
|
|
425
425
|
...n,
|
|
426
426
|
...i
|
|
427
427
|
];
|
|
428
|
-
},
|
|
428
|
+
}, wt = (e) => {
|
|
429
429
|
let t = [];
|
|
430
430
|
for (let n = 0; n < e.length; n += 7) t.push(e.slice(n, n + 7));
|
|
431
431
|
return t.map((e) => ({
|
|
432
432
|
days: e,
|
|
433
|
-
number:
|
|
433
|
+
number: ht(e[e.length - 1])
|
|
434
434
|
}));
|
|
435
|
-
},
|
|
436
|
-
let n =
|
|
437
|
-
for (; l > 0;) s.push(u), u =
|
|
435
|
+
}, Tt = (e, t) => {
|
|
436
|
+
let n = st(e), r = n.getDay() === 0 ? 7 : n.getDay(), i = ct(e), a = i.getDay() === 0 ? 7 : i.getDay(), o = t === xt.Monday ? 7 : t - 1, s = [], c = [], l = (7 - t + r) % 7, u = Qe(n);
|
|
437
|
+
for (; l > 0;) s.push(u), u = Qe(u), --l;
|
|
438
438
|
s.reverse();
|
|
439
|
-
let d = (7 - a + o) % 7, f =
|
|
440
|
-
for (; d > 0;) c.push(f), f =
|
|
439
|
+
let d = (7 - a + o) % 7, f = Ze(i);
|
|
440
|
+
for (; d > 0;) c.push(f), f = Ze(f), --d;
|
|
441
441
|
return {
|
|
442
442
|
daysBefore: s,
|
|
443
443
|
daysAfter: c
|
|
444
444
|
};
|
|
445
|
-
},
|
|
445
|
+
}, Et = (e) => ({
|
|
446
446
|
start: e.start < e.end ? e.start : e.end,
|
|
447
447
|
end: e.start < e.end ? e.end : e.start
|
|
448
|
-
}),
|
|
449
|
-
let { start: n, end: r } =
|
|
448
|
+
}), Dt = (e, t) => {
|
|
449
|
+
let { start: n, end: r } = Et(t);
|
|
450
450
|
return e >= n && e <= r;
|
|
451
|
-
},
|
|
452
|
-
let { start: n, end: r } =
|
|
451
|
+
}, Ot = (e, t) => {
|
|
452
|
+
let { start: n, end: r } = Et(t);
|
|
453
453
|
return n.setHours(0, 0, 0, 0), r.setHours(23, 59, 59, 999), e >= n && e <= r;
|
|
454
|
-
},
|
|
454
|
+
}, kt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), At = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), jt = (e) => e == null, Mt = (e) => e instanceof HTMLElement, Nt = (e) => {
|
|
455
455
|
let { disabled: t } = e.dataset;
|
|
456
|
-
return e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || !
|
|
457
|
-
},
|
|
456
|
+
return e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || !jt(t) && t !== "";
|
|
457
|
+
}, Pt = (e) => !jt(e) && e === document.activeElement, Ft = (e) => Pt(e) || e.getAttribute("tabindex") === "0", It = (e) => [...e].sort((e, t) => e === t ? 0 : e.compareDocumentPosition(t) & 2 ? 1 : -1), Lt = (e) => e.clientHeight < e.scrollHeight, Rt = (e, t) => {
|
|
458
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
459
|
o ? t.scrollTo(0, r - parseInt(l)) : s && t.scrollTo(0, r - i + n + parseInt(c));
|
|
460
|
-
},
|
|
460
|
+
}, zt = (e) => e.match(/^[\P{Cc}\P{Cn}\P{Cs}]$/u) !== null, Bt = (e) => zt(e) && e !== " " || ["Backspace", "Clear"].includes(e), Vt = (e, t) => e.length > 1 && e.split("").every((e) => e === t), Ht = (e, t) => e.trim().toLowerCase().startsWith(t.trim().toLowerCase()), Ut = (e) => {
|
|
461
461
|
let t = (e, t) => {
|
|
462
462
|
t.filter((t) => !e?.isSameNode(t)).forEach((e) => e.setAttribute("tabindex", "-1")), e?.setAttribute("tabindex", "0");
|
|
463
463
|
}, n = (n) => {
|
|
464
464
|
t(n, e()), n.focus();
|
|
465
465
|
};
|
|
466
|
-
|
|
466
|
+
O(e, (e) => {
|
|
467
467
|
let [n] = e, r = e.find((e) => e.matches(":focus"));
|
|
468
|
-
!r && n &&
|
|
468
|
+
!r && n && Nt(n) && (n = e.find((e) => !Nt(e))), t(r || n, e);
|
|
469
469
|
});
|
|
470
|
-
let { navigate: r, navigateByPage: i, navigateCustom: a } =
|
|
470
|
+
let { navigate: r, navigateByPage: i, navigateCustom: a } = qe({
|
|
471
471
|
getElements: e,
|
|
472
|
-
isNavigatedTo:
|
|
472
|
+
isNavigatedTo: Ft,
|
|
473
473
|
navigateTo: n
|
|
474
474
|
});
|
|
475
475
|
return {
|
|
@@ -481,8 +481,8 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
481
481
|
return e().find((e) => e.matches(":focus") || e.tabIndex === 0);
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
|
-
},
|
|
485
|
-
let { navigate: n, navigateByPage: r, navigateCustom: i, navigateTo: a, getCurrentTabStop: o } =
|
|
484
|
+
}, Wt = Symbol("roving-tabindex"), Gt = (e, t) => {
|
|
485
|
+
let { navigate: n, navigateByPage: r, navigateCustom: i, navigateTo: a, getCurrentTabStop: o } = Ut(t);
|
|
486
486
|
return {
|
|
487
487
|
navigate: n,
|
|
488
488
|
navigateByPage: r,
|
|
@@ -490,7 +490,7 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
490
490
|
navigateTo: a,
|
|
491
491
|
getCurrentTabStop: o,
|
|
492
492
|
onKeyDown(t) {
|
|
493
|
-
let r =
|
|
493
|
+
let r = C(e) === "vertical", a = r ? "ArrowUp" : "ArrowLeft", o = r ? "ArrowDown" : "ArrowRight";
|
|
494
494
|
switch ([
|
|
495
495
|
o,
|
|
496
496
|
a,
|
|
@@ -499,12 +499,12 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
499
499
|
"Home",
|
|
500
500
|
"End"
|
|
501
501
|
].includes(t.key) && t.preventDefault(), t.key) {
|
|
502
|
-
case a: return n(
|
|
503
|
-
case o: return n(
|
|
502
|
+
case a: return n(z.Backward);
|
|
503
|
+
case o: return n(z.Forward);
|
|
504
504
|
case "PageUp": return i(-10);
|
|
505
505
|
case "PageDown": return i(10);
|
|
506
|
-
case "Home": return n(
|
|
507
|
-
case "End": return n(
|
|
506
|
+
case "Home": return n(z.Start);
|
|
507
|
+
case "End": return n(z.End);
|
|
508
508
|
default: return;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
@@ -512,17 +512,17 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
512
512
|
};
|
|
513
513
|
//#endregion
|
|
514
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
|
|
515
|
-
function
|
|
516
|
-
return c() ? (
|
|
515
|
+
function Kt(e, t) {
|
|
516
|
+
return c() ? (ee(e, t), !0) : !1;
|
|
517
517
|
}
|
|
518
|
-
var
|
|
518
|
+
var qt = typeof window < "u" && typeof document < "u";
|
|
519
519
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
520
|
-
var
|
|
521
|
-
function
|
|
520
|
+
var Jt = (e) => e != null, Yt = () => {};
|
|
521
|
+
function Xt(e) {
|
|
522
522
|
return Array.isArray(e) ? e : [e];
|
|
523
523
|
}
|
|
524
|
-
function
|
|
525
|
-
let { immediate: r = !0, immediateCallback: i = !1 } = n, a =
|
|
524
|
+
function Zt(e, t, n = {}) {
|
|
525
|
+
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = re(!1), o;
|
|
526
526
|
function s() {
|
|
527
527
|
o &&= (clearTimeout(o), void 0);
|
|
528
528
|
}
|
|
@@ -532,57 +532,57 @@ function Yt(e, t, n = {}) {
|
|
|
532
532
|
function l(...n) {
|
|
533
533
|
i && e(), s(), a.value = !0, o = setTimeout(() => {
|
|
534
534
|
a.value = !1, o = void 0, e(...n);
|
|
535
|
-
},
|
|
535
|
+
}, C(t));
|
|
536
536
|
}
|
|
537
|
-
return r && (a.value = !0,
|
|
538
|
-
isPending:
|
|
537
|
+
return r && (a.value = !0, qt && l()), Kt(c), {
|
|
538
|
+
isPending: ne(a),
|
|
539
539
|
start: l,
|
|
540
540
|
stop: c
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
|
-
function
|
|
544
|
-
let { controls: r = !1, callback: i } = n, a =
|
|
543
|
+
function Qt(e = 1e3, n = {}) {
|
|
544
|
+
let { controls: r = !1, callback: i } = n, a = Zt(i ?? Yt, e, n), o = t(() => !a.isPending.value);
|
|
545
545
|
return r ? {
|
|
546
546
|
ready: o,
|
|
547
547
|
...a
|
|
548
548
|
} : o;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
return
|
|
550
|
+
function $t(e, t, n) {
|
|
551
|
+
return O(e, t, {
|
|
552
552
|
...n,
|
|
553
553
|
deep: !0
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
return
|
|
556
|
+
function en(e, t, n) {
|
|
557
|
+
return O(e, t, {
|
|
558
558
|
...n,
|
|
559
559
|
immediate: !0
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
562
|
//#endregion
|
|
563
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
|
|
564
|
-
var
|
|
565
|
-
|
|
566
|
-
function
|
|
567
|
-
let t =
|
|
564
|
+
var tn = qt ? window : void 0;
|
|
565
|
+
qt && window.document, qt && window.navigator, qt && window.location;
|
|
566
|
+
function nn(e) {
|
|
567
|
+
let t = C(e);
|
|
568
568
|
return t?.$el ?? t;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
let e =
|
|
570
|
+
function rn() {
|
|
571
|
+
let e = re(!1), t = s();
|
|
572
572
|
return t && v(() => {
|
|
573
573
|
e.value = !0;
|
|
574
574
|
}, t), e;
|
|
575
575
|
}
|
|
576
576
|
/* @__NO_SIDE_EFFECTS__ */
|
|
577
|
-
function
|
|
578
|
-
let n =
|
|
577
|
+
function an(e) {
|
|
578
|
+
let n = rn();
|
|
579
579
|
return t(() => (n.value, !!e()));
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
let { window: i =
|
|
581
|
+
function on(e, n, r = {}) {
|
|
582
|
+
let { window: i = tn, ...a } = r, o, s = /* @__PURE__ */ an(() => i && "MutationObserver" in i), c = () => {
|
|
583
583
|
o &&= (o.disconnect(), void 0);
|
|
584
|
-
}, l =
|
|
585
|
-
let t =
|
|
584
|
+
}, l = O(t(() => {
|
|
585
|
+
let t = Xt(C(e)).map(nn).filter(Jt);
|
|
586
586
|
return new Set(t);
|
|
587
587
|
}), (e) => {
|
|
588
588
|
c(), s.value && e.size && (o = new MutationObserver(n), e.forEach((e) => o.observe(e, a)));
|
|
@@ -592,7 +592,7 @@ function rn(e, n, r = {}) {
|
|
|
592
592
|
}), u = () => o?.takeRecords(), d = () => {
|
|
593
593
|
l(), c();
|
|
594
594
|
};
|
|
595
|
-
return
|
|
595
|
+
return Kt(d), {
|
|
596
596
|
isSupported: s,
|
|
597
597
|
stop: d,
|
|
598
598
|
takeRecords: u
|
|
@@ -600,8 +600,8 @@ function rn(e, n, r = {}) {
|
|
|
600
600
|
}
|
|
601
601
|
//#endregion
|
|
602
602
|
//#region src/hooks/keyboard/useTypeahead.ts
|
|
603
|
-
var
|
|
604
|
-
let n =
|
|
603
|
+
var sn = (e, t) => {
|
|
604
|
+
let n = x(""), r = Qt(500, {
|
|
605
605
|
controls: !0,
|
|
606
606
|
callback() {
|
|
607
607
|
n.value = "";
|
|
@@ -611,12 +611,12 @@ var an = (e, t) => {
|
|
|
611
611
|
r.isPending.value && r.stop();
|
|
612
612
|
let a = i.toLowerCase();
|
|
613
613
|
n.value += a;
|
|
614
|
-
let o =
|
|
614
|
+
let o = Vt(n.value, a) ? a : n.value;
|
|
615
615
|
console.log("new search", o);
|
|
616
616
|
let s = t.value.map((e, t) => ({
|
|
617
617
|
...e,
|
|
618
618
|
index: t
|
|
619
|
-
})).filter((e) =>
|
|
619
|
+
})).filter((e) => Ht(e.label, o));
|
|
620
620
|
if (s.length === 1) e.value = s[0].index;
|
|
621
621
|
else if (s.length > 0) {
|
|
622
622
|
let t = s.find((t) => t.index > e.value);
|
|
@@ -624,20 +624,20 @@ var an = (e, t) => {
|
|
|
624
624
|
}
|
|
625
625
|
r.start();
|
|
626
626
|
} };
|
|
627
|
-
},
|
|
628
|
-
function
|
|
627
|
+
}, cn = /([\p{Ll}\d])(\p{Lu})/gu, ln = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu, un = /(\d)\p{Ll}|(\p{L})\d/u, dn = /[^\p{L}\d]+/giu, fn = "$1\0$2", pn = "";
|
|
628
|
+
function mn(e) {
|
|
629
629
|
let t = e.trim();
|
|
630
|
-
t = t.replace(
|
|
630
|
+
t = t.replace(cn, fn).replace(ln, fn), t = t.replace(dn, "\0");
|
|
631
631
|
let n = 0, r = t.length;
|
|
632
632
|
for (; t.charAt(n) === "\0";) n++;
|
|
633
633
|
if (n === r) return [];
|
|
634
634
|
for (; t.charAt(r - 1) === "\0";) r--;
|
|
635
635
|
return t.slice(n, r).split(/\0/g);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
let t =
|
|
637
|
+
function hn(e) {
|
|
638
|
+
let t = mn(e);
|
|
639
639
|
for (let e = 0; e < t.length; e++) {
|
|
640
|
-
let n = t[e], r =
|
|
640
|
+
let n = t[e], r = un.exec(n);
|
|
641
641
|
if (r) {
|
|
642
642
|
let i = r.index + (r[1] ?? r[2]).length;
|
|
643
643
|
t.splice(e, 1, n.slice(0, i), n.slice(i));
|
|
@@ -645,21 +645,21 @@ function pn(e) {
|
|
|
645
645
|
}
|
|
646
646
|
return t;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
let [n, r, i] =
|
|
650
|
-
return n + r.map(
|
|
648
|
+
function gn(e, t) {
|
|
649
|
+
let [n, r, i] = yn(e, t);
|
|
650
|
+
return n + r.map(vn(t?.locale)).join(t?.delimiter ?? " ") + i;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
return
|
|
652
|
+
function _n(e, t) {
|
|
653
|
+
return gn(e, {
|
|
654
654
|
delimiter: "-",
|
|
655
655
|
...t
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function vn(e) {
|
|
659
659
|
return e === !1 ? (e) => e.toLowerCase() : (t) => t.toLocaleLowerCase(e);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
let n = t.split ?? (t.separateNumbers ?
|
|
661
|
+
function yn(e, t = {}) {
|
|
662
|
+
let n = t.split ?? (t.separateNumbers ? hn : mn), r = t.prefixCharacters ?? pn, i = t.suffixCharacters ?? pn, a = 0, o = e.length;
|
|
663
663
|
for (; a < e.length;) {
|
|
664
664
|
let t = e.charAt(a);
|
|
665
665
|
if (!r.includes(t)) break;
|
|
@@ -678,49 +678,51 @@ function _n(e, t = {}) {
|
|
|
678
678
|
}
|
|
679
679
|
//#endregion
|
|
680
680
|
//#region src/hooks/useBemClass.ts
|
|
681
|
-
var
|
|
681
|
+
var bn = (e, t) => {
|
|
682
682
|
let n = t ? `${t}-${e}` : e;
|
|
683
683
|
return (...e) => {
|
|
684
|
-
let t = [n, ...e].filter((e) => typeof e == "string").map((e) =>
|
|
684
|
+
let t = [n, ...e].filter((e) => typeof e == "string").map((e) => _n(e)).join("__"), r = { [t]: !0 };
|
|
685
685
|
for (let n of e.filter((e) => typeof e == "object")) for (let e of Object.keys(n)) {
|
|
686
686
|
let i = n[e];
|
|
687
|
-
typeof i == "string" && (r[`${t}--${i}`] = !0), typeof i == "number" && (r[`${t}--${
|
|
687
|
+
typeof i == "string" && (r[`${t}--${i}`] = !0), typeof i == "number" && (r[`${t}--${_n(e)}-${i}`] = !0), typeof i == "boolean" && (r[`${t}--${_n(e)}`] = i);
|
|
688
688
|
}
|
|
689
689
|
return r;
|
|
690
690
|
};
|
|
691
|
-
},
|
|
692
|
-
let i =
|
|
693
|
-
return
|
|
694
|
-
i.value =
|
|
695
|
-
}),
|
|
696
|
-
i.value =
|
|
691
|
+
}, xn = (e) => (t) => bn(t, e), Sn = (e, n = xt.Monday, r = "en") => {
|
|
692
|
+
let i = x(Ct(e.value, C(n))), a = t(() => _t(e.value)), o = t(() => gt(e.value, C(r))), s = t(() => wt(i.value));
|
|
693
|
+
return O(t(() => `${a.value}${o.value.number}`), () => {
|
|
694
|
+
i.value = Ct(e.value, C(n));
|
|
695
|
+
}), O(() => C(n), (t) => {
|
|
696
|
+
i.value = Ct(e.value, t);
|
|
697
697
|
}), {
|
|
698
698
|
year: a,
|
|
699
699
|
month: o,
|
|
700
700
|
weeks: s
|
|
701
701
|
};
|
|
702
|
-
},
|
|
703
|
-
let o =
|
|
702
|
+
}, Cn = (e, n, r, i, a) => {
|
|
703
|
+
let o = x([]), s = x(0), c = x(!1), l = t(() => {
|
|
704
704
|
if (!i) return o.value;
|
|
705
705
|
let e = i.value.toLowerCase().trim();
|
|
706
706
|
return o.value.filter((t) => t.label.toLowerCase().startsWith(e));
|
|
707
|
-
}), { type: u } =
|
|
708
|
-
|
|
707
|
+
}), { type: u } = sn(s, l), d = t(() => l.value[s.value]), f = t(() => d.value ? r.get(d.value.value) : "");
|
|
708
|
+
O(() => i?.value, () => {
|
|
709
709
|
let e = l.value.length - 1;
|
|
710
|
-
s.value =
|
|
710
|
+
s.value = We(s.value, z.Start, e), m(l.value.length > 0);
|
|
711
711
|
});
|
|
712
712
|
let p = (e) => {
|
|
713
713
|
i && (i.value = e);
|
|
714
|
-
},
|
|
714
|
+
}, m = (e) => {
|
|
715
715
|
a && a.value !== e && (a.value = e);
|
|
716
|
-
},
|
|
716
|
+
}, h = (t) => {
|
|
717
717
|
let n = l.value[t];
|
|
718
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
|
-
},
|
|
719
|
+
}, g = () => {
|
|
720
720
|
e.value = l.value.filter((t) => !t.disabled || e.value.includes(t.value)).map((e) => e.value);
|
|
721
|
-
},
|
|
721
|
+
}, _ = (t) => {
|
|
722
722
|
let n = l.value[t];
|
|
723
|
-
!n || n.disabled || (e.value = [n.value])
|
|
723
|
+
!n || n.disabled || (e.value = [n.value], setTimeout(() => {
|
|
724
|
+
m(!1);
|
|
725
|
+
}, 0));
|
|
724
726
|
};
|
|
725
727
|
return {
|
|
726
728
|
optionsTracker: o,
|
|
@@ -728,19 +730,19 @@ var vn = (e, t) => {
|
|
|
728
730
|
activeIndex: s,
|
|
729
731
|
activeElementId: f,
|
|
730
732
|
onClick: () => {
|
|
731
|
-
|
|
733
|
+
m(!0);
|
|
732
734
|
},
|
|
733
735
|
onBlur: () => {
|
|
734
736
|
if (c.value) {
|
|
735
737
|
c.value = !1;
|
|
736
738
|
return;
|
|
737
739
|
}
|
|
738
|
-
|
|
740
|
+
m(!1);
|
|
739
741
|
},
|
|
740
|
-
onKeyDown:
|
|
741
|
-
let t =
|
|
742
|
-
if (
|
|
743
|
-
e.preventDefault(), s.value =
|
|
742
|
+
onKeyDown: (e) => {
|
|
743
|
+
let t = wn(e, !a || a.value, !!i), r = l.value.length - 1;
|
|
744
|
+
if (He(t)) {
|
|
745
|
+
e.preventDefault(), s.value = We(s.value, t, r), m(!0);
|
|
744
746
|
return;
|
|
745
747
|
}
|
|
746
748
|
switch (t) {
|
|
@@ -749,33 +751,28 @@ var vn = (e, t) => {
|
|
|
749
751
|
break;
|
|
750
752
|
case "open":
|
|
751
753
|
case "close":
|
|
752
|
-
|
|
754
|
+
m(t === "open");
|
|
753
755
|
break;
|
|
754
756
|
case "select":
|
|
755
|
-
n.value ? (
|
|
757
|
+
n.value ? (p(""), h(s.value)) : (p(d.value?.label || ""), _(s.value));
|
|
756
758
|
break;
|
|
757
759
|
case "select-all":
|
|
758
|
-
n.value &&
|
|
760
|
+
n.value && g();
|
|
759
761
|
break;
|
|
760
762
|
case "type":
|
|
761
|
-
i ?
|
|
763
|
+
i ? m(!0) : u(e.key);
|
|
762
764
|
break;
|
|
763
765
|
default: break;
|
|
764
766
|
}
|
|
765
767
|
},
|
|
766
768
|
onOptionClick: (e) => {
|
|
767
|
-
s.value = e, n.value ?
|
|
769
|
+
s.value = e, p(""), n.value ? h(e) : _(e), document.getElementById(r.get("input"))?.focus();
|
|
768
770
|
},
|
|
769
771
|
onOptionMouseDown: () => {
|
|
770
772
|
c.value = !0;
|
|
771
|
-
},
|
|
772
|
-
onOptionMouseUp: () => {
|
|
773
|
-
setTimeout(() => {
|
|
774
|
-
n.value || h(!1);
|
|
775
|
-
}, 0);
|
|
776
773
|
}
|
|
777
774
|
};
|
|
778
|
-
},
|
|
775
|
+
}, wn = (e, t, n) => {
|
|
779
776
|
let { key: r, altKey: i, ctrlKey: a, metaKey: o } = e, s = [
|
|
780
777
|
"ArrowDown",
|
|
781
778
|
"ArrowUp",
|
|
@@ -785,16 +782,16 @@ var vn = (e, t) => {
|
|
|
785
782
|
"End"
|
|
786
783
|
], c = ["Backspace", "Clear"];
|
|
787
784
|
if (!t && s.includes(r)) return "open";
|
|
788
|
-
if (c.includes(r) ||
|
|
785
|
+
if (c.includes(r) || Bt(r) && !i && !a && !o) return "type";
|
|
789
786
|
switch (r) {
|
|
790
787
|
case "ArrowUp":
|
|
791
|
-
case "ArrowLeft": return t ?
|
|
788
|
+
case "ArrowLeft": return t ? z.Backward : z.End;
|
|
792
789
|
case "ArrowDown":
|
|
793
|
-
case "ArrowRight": return t ?
|
|
794
|
-
case "PageUp": return
|
|
795
|
-
case "PageDown": return
|
|
796
|
-
case "Home": return
|
|
797
|
-
case "End": return
|
|
790
|
+
case "ArrowRight": return t ? z.Forward : void 0;
|
|
791
|
+
case "PageUp": return z.JumpBackward;
|
|
792
|
+
case "PageDown": return z.JumpForward;
|
|
793
|
+
case "Home": return z.Start;
|
|
794
|
+
case "End": return z.End;
|
|
798
795
|
case "Enter": return "select";
|
|
799
796
|
case " ": return n ? void 0 : "select";
|
|
800
797
|
case "Escape": return t ? "close" : "clear";
|
|
@@ -802,8 +799,8 @@ var vn = (e, t) => {
|
|
|
802
799
|
case "A": return a ? "select-all" : void 0;
|
|
803
800
|
default: return;
|
|
804
801
|
}
|
|
805
|
-
},
|
|
806
|
-
let n =
|
|
802
|
+
}, Tn = (e) => {
|
|
803
|
+
let n = x([]), 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
804
|
let e = [], t = [];
|
|
808
805
|
for (let n of r.value) {
|
|
809
806
|
let r = parseInt(n.tagName.substring(1), 10), i = {
|
|
@@ -825,33 +822,33 @@ var vn = (e, t) => {
|
|
|
825
822
|
}) : t;
|
|
826
823
|
return v(async () => {
|
|
827
824
|
await m(), n.value = Array.from(i());
|
|
828
|
-
}),
|
|
825
|
+
}), on(document.body, (e) => {
|
|
829
826
|
let t = Array.from(i());
|
|
830
827
|
t.some((t) => e.some((e) => [...e.addedNodes, ...e.removedNodes].includes(t))) && (n.value = t);
|
|
831
828
|
}, {
|
|
832
829
|
childList: !0,
|
|
833
830
|
subtree: !0
|
|
834
831
|
}), { documentOutline: t(() => o(a.value)) };
|
|
835
|
-
},
|
|
836
|
-
let r =
|
|
832
|
+
}, B = (e, n) => {
|
|
833
|
+
let r = x(/* @__PURE__ */ new Map()), i = n ? {
|
|
837
834
|
items: r,
|
|
838
835
|
parent: n
|
|
839
836
|
} : l(`${e}-elements`, {
|
|
840
837
|
items: r,
|
|
841
|
-
parent:
|
|
838
|
+
parent: x()
|
|
842
839
|
});
|
|
843
|
-
return n &&
|
|
840
|
+
return n && b(`${e}-elements`, i), {
|
|
844
841
|
getElements: (t = !0) => {
|
|
845
842
|
let n = i.parent.value;
|
|
846
843
|
if (!n) return [];
|
|
847
844
|
let r = Array.from(n.querySelectorAll(`[data-elements-${e}="true"]`));
|
|
848
|
-
return
|
|
845
|
+
return It(Array.from(i.items.value.values()).sort((e, t) => r.indexOf(e) - r.indexOf(t)).filter((e) => t || !Nt(e)));
|
|
849
846
|
},
|
|
850
|
-
elements: t(() =>
|
|
847
|
+
elements: t(() => It(Array.from(i.items.value.values())))
|
|
851
848
|
};
|
|
852
|
-
},
|
|
849
|
+
}, V = (e, t, n) => {
|
|
853
850
|
let r = l(`${e}-elements`, void 0);
|
|
854
|
-
|
|
851
|
+
se((e) => {
|
|
855
852
|
if (!t.value) return;
|
|
856
853
|
let i = d(t.value);
|
|
857
854
|
n?.value ? r?.items.value.delete(i) : r?.items.value.set(i, t.value), e(() => r?.items.value.delete(i));
|
|
@@ -863,48 +860,48 @@ var vn = (e, t) => {
|
|
|
863
860
|
};
|
|
864
861
|
//#endregion
|
|
865
862
|
//#region ../../node_modules/.pnpm/fuse.js@7.5.0/node_modules/fuse.js/dist/fuse.mjs
|
|
866
|
-
function
|
|
867
|
-
return Array.isArray ? Array.isArray(e) :
|
|
863
|
+
function H(e) {
|
|
864
|
+
return Array.isArray ? Array.isArray(e) : Nn(e) === "[object Array]";
|
|
868
865
|
}
|
|
869
|
-
function
|
|
866
|
+
function En(e) {
|
|
870
867
|
if (typeof e == "string") return e;
|
|
871
868
|
if (typeof e == "bigint") return e.toString();
|
|
872
869
|
let t = e + "";
|
|
873
870
|
return t == "0" && 1 / e == -Infinity ? "-0" : t;
|
|
874
871
|
}
|
|
875
|
-
function
|
|
876
|
-
return e == null ? "" :
|
|
872
|
+
function Dn(e) {
|
|
873
|
+
return e == null ? "" : En(e);
|
|
877
874
|
}
|
|
878
|
-
function
|
|
875
|
+
function U(e) {
|
|
879
876
|
return typeof e == "string";
|
|
880
877
|
}
|
|
881
|
-
function
|
|
878
|
+
function On(e) {
|
|
882
879
|
return typeof e == "number";
|
|
883
880
|
}
|
|
884
|
-
function
|
|
885
|
-
return e === !0 || e === !1 ||
|
|
881
|
+
function kn(e) {
|
|
882
|
+
return e === !0 || e === !1 || jn(e) && Nn(e) == "[object Boolean]";
|
|
886
883
|
}
|
|
887
|
-
function
|
|
884
|
+
function An(e) {
|
|
888
885
|
return typeof e == "object";
|
|
889
886
|
}
|
|
890
|
-
function
|
|
891
|
-
return
|
|
887
|
+
function jn(e) {
|
|
888
|
+
return An(e) && e !== null;
|
|
892
889
|
}
|
|
893
|
-
function
|
|
890
|
+
function W(e) {
|
|
894
891
|
return e != null;
|
|
895
892
|
}
|
|
896
|
-
function
|
|
893
|
+
function Mn(e) {
|
|
897
894
|
return !e.trim().length;
|
|
898
895
|
}
|
|
899
|
-
function
|
|
896
|
+
function Nn(e) {
|
|
900
897
|
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
901
898
|
}
|
|
902
|
-
var
|
|
899
|
+
var Pn = "Incorrect 'index' type", Fn = "Invalid doc index: must be a non-negative integer within the bounds of the docs array", In = (e) => `Invalid value for key ${e}`, Ln = (e) => `Pattern length exceeds max of ${e}.`, Rn = (e) => `Missing ${e} property in key`, zn = (e) => `Property 'weight' in key '${e}' must be a positive integer`, Bn = "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.", Vn = Object.prototype.hasOwnProperty, Hn = class {
|
|
903
900
|
constructor(e) {
|
|
904
901
|
this._keys = [], this._keyMap = {};
|
|
905
902
|
let t = 0;
|
|
906
903
|
e.forEach((e) => {
|
|
907
|
-
let n =
|
|
904
|
+
let n = Un(e);
|
|
908
905
|
this._keys.push(n), this._keyMap[n.id] = n, t += n.weight;
|
|
909
906
|
}), this._keys.forEach((e) => {
|
|
910
907
|
e.weight /= t;
|
|
@@ -920,14 +917,14 @@ var Mn = "Incorrect 'index' type", Nn = "Invalid doc index: must be a non-negati
|
|
|
920
917
|
return JSON.stringify(this._keys);
|
|
921
918
|
}
|
|
922
919
|
};
|
|
923
|
-
function
|
|
920
|
+
function Un(e) {
|
|
924
921
|
let t = null, n = null, r = null, i = 1, a = null;
|
|
925
|
-
if (
|
|
922
|
+
if (U(e) || H(e)) r = e, t = Wn(e), n = Gn(e);
|
|
926
923
|
else {
|
|
927
|
-
if (!
|
|
924
|
+
if (!Vn.call(e, "name")) throw Error(Rn("name"));
|
|
928
925
|
let o = e.name;
|
|
929
|
-
if (r = o,
|
|
930
|
-
t =
|
|
926
|
+
if (r = o, Vn.call(e, "weight") && e.weight !== void 0 && (i = e.weight, i <= 0)) throw Error(zn(Gn(o)));
|
|
927
|
+
t = Wn(o), n = Gn(o), a = e.getFn ?? null;
|
|
931
928
|
}
|
|
932
929
|
return {
|
|
933
930
|
path: t,
|
|
@@ -937,72 +934,72 @@ function Vn(e) {
|
|
|
937
934
|
getFn: a
|
|
938
935
|
};
|
|
939
936
|
}
|
|
940
|
-
function
|
|
941
|
-
return
|
|
937
|
+
function Wn(e) {
|
|
938
|
+
return H(e) ? e : e.split(".");
|
|
942
939
|
}
|
|
943
|
-
function
|
|
944
|
-
return
|
|
940
|
+
function Gn(e) {
|
|
941
|
+
return H(e) ? e.join(".") : e;
|
|
945
942
|
}
|
|
946
|
-
function
|
|
943
|
+
function Kn(e, t) {
|
|
947
944
|
let n = [], r = !1, i = (e, t, a, o) => {
|
|
948
|
-
if (
|
|
945
|
+
if (W(e)) if (!t[a]) n.push(o === void 0 ? e : {
|
|
949
946
|
v: e,
|
|
950
947
|
i: o
|
|
951
948
|
});
|
|
952
949
|
else {
|
|
953
950
|
let s = e[t[a]];
|
|
954
|
-
if (!
|
|
955
|
-
if (a === t.length - 1 && (
|
|
956
|
-
v:
|
|
951
|
+
if (!W(s)) return;
|
|
952
|
+
if (a === t.length - 1 && (U(s) || On(s) || kn(s) || typeof s == "bigint")) n.push(o === void 0 ? Dn(s) : {
|
|
953
|
+
v: Dn(s),
|
|
957
954
|
i: o
|
|
958
955
|
});
|
|
959
|
-
else if (
|
|
956
|
+
else if (H(s)) {
|
|
960
957
|
r = !0;
|
|
961
958
|
for (let e = 0, n = s.length; e < n; e += 1) i(s[e], t, a + 1, e);
|
|
962
959
|
} else t.length && i(s, t, a + 1, o);
|
|
963
960
|
}
|
|
964
961
|
};
|
|
965
|
-
return i(e,
|
|
962
|
+
return i(e, U(t) ? t.split(".") : t, 0), r ? n : n[0];
|
|
966
963
|
}
|
|
967
|
-
var
|
|
964
|
+
var qn = {
|
|
968
965
|
includeMatches: !1,
|
|
969
966
|
findAllMatches: !1,
|
|
970
967
|
minMatchCharLength: 1
|
|
971
|
-
},
|
|
968
|
+
}, Jn = {
|
|
972
969
|
isCaseSensitive: !1,
|
|
973
970
|
ignoreDiacritics: !1,
|
|
974
971
|
includeScore: !1,
|
|
975
972
|
keys: [],
|
|
976
973
|
shouldSort: !0,
|
|
977
974
|
sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
|
|
978
|
-
},
|
|
975
|
+
}, Yn = {
|
|
979
976
|
location: 0,
|
|
980
977
|
threshold: .6,
|
|
981
978
|
distance: 100
|
|
982
|
-
},
|
|
979
|
+
}, Xn = {
|
|
983
980
|
useExtendedSearch: !1,
|
|
984
981
|
useTokenSearch: !1,
|
|
985
982
|
tokenize: void 0,
|
|
986
983
|
tokenMatch: "any",
|
|
987
|
-
getFn:
|
|
984
|
+
getFn: Kn,
|
|
988
985
|
ignoreLocation: !1,
|
|
989
986
|
ignoreFieldNorm: !1,
|
|
990
987
|
fieldNormWeight: 1
|
|
991
|
-
},
|
|
992
|
-
...
|
|
993
|
-
...Gn,
|
|
988
|
+
}, G = Object.freeze({
|
|
989
|
+
...Jn,
|
|
994
990
|
...qn,
|
|
995
|
-
...
|
|
991
|
+
...Yn,
|
|
992
|
+
...Xn
|
|
996
993
|
});
|
|
997
|
-
function
|
|
994
|
+
function Zn(e) {
|
|
998
995
|
return e >= 9 && e <= 13 || e === 32 || e === 160;
|
|
999
996
|
}
|
|
1000
|
-
function
|
|
997
|
+
function Qn(e = 1, t = 3) {
|
|
1001
998
|
let n = /* @__PURE__ */ new Map(), r = 10 ** t;
|
|
1002
999
|
return {
|
|
1003
1000
|
get(t) {
|
|
1004
1001
|
let i = 0, a = !1;
|
|
1005
|
-
for (let e = 0; e < t.length; e++)
|
|
1002
|
+
for (let e = 0; e < t.length; e++) Zn(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
|
|
1006
1003
|
if (i === 0 && (i = 1), n.has(i)) return n.get(i);
|
|
1007
1004
|
let o = Math.round(r / i ** (.5 * e)) / r;
|
|
1008
1005
|
return n.set(i, o), o;
|
|
@@ -1012,9 +1009,9 @@ function Xn(e = 1, t = 3) {
|
|
|
1012
1009
|
}
|
|
1013
1010
|
};
|
|
1014
1011
|
}
|
|
1015
|
-
var
|
|
1016
|
-
constructor({ getFn: e =
|
|
1017
|
-
this.norm =
|
|
1012
|
+
var $n = class {
|
|
1013
|
+
constructor({ getFn: e = G.getFn, fieldNormWeight: t = G.fieldNormWeight } = {}) {
|
|
1014
|
+
this.norm = Qn(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
|
|
1018
1015
|
}
|
|
1019
1016
|
setSources(e = []) {
|
|
1020
1017
|
this.docs = e;
|
|
@@ -1033,7 +1030,7 @@ var Zn = class {
|
|
|
1033
1030
|
let e = this.docs.length;
|
|
1034
1031
|
this.records = Array(e);
|
|
1035
1032
|
let t = 0;
|
|
1036
|
-
if (
|
|
1033
|
+
if (U(this.docs[0])) for (let n = 0; n < e; n++) {
|
|
1037
1034
|
let e = this._createStringRecord(this.docs[n], n);
|
|
1038
1035
|
e && (this.records[t++] = e);
|
|
1039
1036
|
}
|
|
@@ -1041,8 +1038,8 @@ var Zn = class {
|
|
|
1041
1038
|
this.records.length = t, this.norm.clear();
|
|
1042
1039
|
}
|
|
1043
1040
|
add(e, t) {
|
|
1044
|
-
if (!Number.isInteger(t) || t < 0) throw Error(
|
|
1045
|
-
if (
|
|
1041
|
+
if (!Number.isInteger(t) || t < 0) throw Error(Fn);
|
|
1042
|
+
if (U(e)) {
|
|
1046
1043
|
let n = this._createStringRecord(e, t);
|
|
1047
1044
|
return n && this.records.push(n), n;
|
|
1048
1045
|
}
|
|
@@ -1050,7 +1047,7 @@ var Zn = class {
|
|
|
1050
1047
|
return this.records.push(n), n;
|
|
1051
1048
|
}
|
|
1052
1049
|
removeAt(e) {
|
|
1053
|
-
if (!Number.isInteger(e) || e < 0) throw Error(
|
|
1050
|
+
if (!Number.isInteger(e) || e < 0) throw Error(Fn);
|
|
1054
1051
|
for (let t = 0, n = this.records.length; t < n; t += 1) if (this.records[t].i === e) {
|
|
1055
1052
|
this.records.splice(t, 1);
|
|
1056
1053
|
break;
|
|
@@ -1079,7 +1076,7 @@ var Zn = class {
|
|
|
1079
1076
|
return this.records.length;
|
|
1080
1077
|
}
|
|
1081
1078
|
_createStringRecord(e, t) {
|
|
1082
|
-
return !
|
|
1079
|
+
return !W(e) || Mn(e) ? null : {
|
|
1083
1080
|
v: e,
|
|
1084
1081
|
i: t,
|
|
1085
1082
|
n: this.norm.get(e)
|
|
@@ -1092,14 +1089,14 @@ var Zn = class {
|
|
|
1092
1089
|
};
|
|
1093
1090
|
for (let t = 0, r = this.keys.length; t < r; t++) {
|
|
1094
1091
|
let r = this.keys[t], i = r.getFn ? r.getFn(e) : this.getFn(e, r.path);
|
|
1095
|
-
if (
|
|
1096
|
-
if (
|
|
1092
|
+
if (W(i)) {
|
|
1093
|
+
if (H(i)) {
|
|
1097
1094
|
let e = [];
|
|
1098
1095
|
for (let t = 0, n = i.length; t < n; t += 1) {
|
|
1099
1096
|
let n = i[t];
|
|
1100
|
-
if (
|
|
1101
|
-
if (
|
|
1102
|
-
if (!
|
|
1097
|
+
if (W(n)) {
|
|
1098
|
+
if (U(n)) {
|
|
1099
|
+
if (!Mn(n)) {
|
|
1103
1100
|
let r = {
|
|
1104
1101
|
v: n,
|
|
1105
1102
|
i: t,
|
|
@@ -1107,9 +1104,9 @@ var Zn = class {
|
|
|
1107
1104
|
};
|
|
1108
1105
|
e.push(r);
|
|
1109
1106
|
}
|
|
1110
|
-
} else if (
|
|
1111
|
-
let t =
|
|
1112
|
-
if (!
|
|
1107
|
+
} else if (W(n.v)) {
|
|
1108
|
+
let t = U(n.v) ? n.v : Dn(n.v);
|
|
1109
|
+
if (!Mn(t)) {
|
|
1113
1110
|
let r = {
|
|
1114
1111
|
v: t,
|
|
1115
1112
|
i: n.i,
|
|
@@ -1121,7 +1118,7 @@ var Zn = class {
|
|
|
1121
1118
|
}
|
|
1122
1119
|
}
|
|
1123
1120
|
n.$[t] = e;
|
|
1124
|
-
} else if (
|
|
1121
|
+
} else if (U(i) && !Mn(i)) {
|
|
1125
1122
|
let e = {
|
|
1126
1123
|
v: i,
|
|
1127
1124
|
n: this.norm.get(i)
|
|
@@ -1139,21 +1136,21 @@ var Zn = class {
|
|
|
1139
1136
|
};
|
|
1140
1137
|
}
|
|
1141
1138
|
};
|
|
1142
|
-
function
|
|
1143
|
-
let i = new
|
|
1139
|
+
function er(e, t, { getFn: n = G.getFn, fieldNormWeight: r = G.fieldNormWeight } = {}) {
|
|
1140
|
+
let i = new $n({
|
|
1144
1141
|
getFn: n,
|
|
1145
1142
|
fieldNormWeight: r
|
|
1146
1143
|
});
|
|
1147
|
-
return i.setKeys(e.map(
|
|
1144
|
+
return i.setKeys(e.map(Un)), i.setSources(t), i.create(), i;
|
|
1148
1145
|
}
|
|
1149
|
-
function
|
|
1150
|
-
let { keys: r, records: i } = e, a = new
|
|
1146
|
+
function tr(e, { getFn: t = G.getFn, fieldNormWeight: n = G.fieldNormWeight } = {}) {
|
|
1147
|
+
let { keys: r, records: i } = e, a = new $n({
|
|
1151
1148
|
getFn: t,
|
|
1152
1149
|
fieldNormWeight: n
|
|
1153
1150
|
});
|
|
1154
1151
|
return a.setKeys(r), a.setIndexRecords(i), a;
|
|
1155
1152
|
}
|
|
1156
|
-
function
|
|
1153
|
+
function nr(e = [], t = G.minMatchCharLength) {
|
|
1157
1154
|
let n = [], r = -1, i = -1, a = 0;
|
|
1158
1155
|
for (let o = e.length; a < o; a += 1) {
|
|
1159
1156
|
let o = e[a];
|
|
@@ -1161,8 +1158,8 @@ function er(e = [], t = q.minMatchCharLength) {
|
|
|
1161
1158
|
}
|
|
1162
1159
|
return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
|
|
1163
1160
|
}
|
|
1164
|
-
function
|
|
1165
|
-
if (t.length > 32) throw Error(
|
|
1161
|
+
function rr(e, t, n, { location: r = G.location, distance: i = G.distance, threshold: a = G.threshold, findAllMatches: o = G.findAllMatches, minMatchCharLength: s = G.minMatchCharLength, includeMatches: c = G.includeMatches, ignoreLocation: l = G.ignoreLocation } = {}) {
|
|
1162
|
+
if (t.length > 32) throw Error(Ln(32));
|
|
1166
1163
|
let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, h = (e, t) => {
|
|
1167
1164
|
let n = e / u;
|
|
1168
1165
|
if (l) return n;
|
|
@@ -1177,38 +1174,38 @@ function tr(e, t, n, { location: r = q.location, distance: i = q.distance, thres
|
|
|
1177
1174
|
}
|
|
1178
1175
|
}
|
|
1179
1176
|
m = -1;
|
|
1180
|
-
let
|
|
1177
|
+
let ee = [], y = 1, b = 0, x = u + d, S = 1 << u - 1;
|
|
1181
1178
|
for (let t = 0; t < u; t += 1) {
|
|
1182
|
-
let r = 0, i =
|
|
1183
|
-
for (; r < i;) h(t, f + i) <= p ? r = i :
|
|
1184
|
-
|
|
1179
|
+
let r = 0, i = x;
|
|
1180
|
+
for (; r < i;) h(t, f + i) <= p ? r = i : x = i, i = Math.floor((x - r) / 2 + r);
|
|
1181
|
+
x = i;
|
|
1185
1182
|
let a = Math.max(1, f - i + 1), s = o ? d : Math.min(f + i, d) + u, c = Array(s + 2);
|
|
1186
1183
|
c[s + 1] = (1 << t) - 1;
|
|
1187
1184
|
for (let r = s; r >= a; --r) {
|
|
1188
1185
|
let i = r - 1, o = n[e[i]];
|
|
1189
|
-
if (c[r] = (c[r + 1] << 1 | 1) & o, t && (c[r] |= (
|
|
1190
|
-
if (p =
|
|
1186
|
+
if (c[r] = (c[r + 1] << 1 | 1) & o, t && (c[r] |= (ee[r + 1] | ee[r]) << 1 | 1 | ee[r + 1]), c[r] & S && (y = h(t, i), y <= p)) {
|
|
1187
|
+
if (p = y, m = i, b = t, m <= f) break;
|
|
1191
1188
|
a = Math.max(1, 2 * f - m);
|
|
1192
1189
|
}
|
|
1193
1190
|
}
|
|
1194
1191
|
if (h(t + 1, f) > p) break;
|
|
1195
|
-
|
|
1192
|
+
ee = c;
|
|
1196
1193
|
}
|
|
1197
1194
|
if (g && m >= 0) {
|
|
1198
|
-
let t = Math.min(d - 1, m + u - 1 +
|
|
1195
|
+
let t = Math.min(d - 1, m + u - 1 + b);
|
|
1199
1196
|
for (let r = m; r <= t; r += 1) n[e[r]] && (_[r] = 1);
|
|
1200
1197
|
}
|
|
1201
|
-
let
|
|
1198
|
+
let te = {
|
|
1202
1199
|
isMatch: m >= 0,
|
|
1203
|
-
score: Math.max(.001,
|
|
1200
|
+
score: Math.max(.001, y)
|
|
1204
1201
|
};
|
|
1205
1202
|
if (g) {
|
|
1206
|
-
let e =
|
|
1207
|
-
e.length ? c && (
|
|
1203
|
+
let e = nr(_, s);
|
|
1204
|
+
e.length ? c && (te.indices = e) : te.isMatch = !1;
|
|
1208
1205
|
}
|
|
1209
|
-
return
|
|
1206
|
+
return te;
|
|
1210
1207
|
}
|
|
1211
|
-
function
|
|
1208
|
+
function ir(e) {
|
|
1212
1209
|
let t = {};
|
|
1213
1210
|
for (let n = 0, r = e.length; n < r; n += 1) {
|
|
1214
1211
|
let i = e.charAt(n);
|
|
@@ -1216,7 +1213,7 @@ function nr(e) {
|
|
|
1216
1213
|
}
|
|
1217
1214
|
return t;
|
|
1218
1215
|
}
|
|
1219
|
-
function
|
|
1216
|
+
function ar(e) {
|
|
1220
1217
|
if (e.length <= 1) return e;
|
|
1221
1218
|
e.sort((e, t) => e[0] - t[0] || e[1] - t[1]);
|
|
1222
1219
|
let t = [e[0]];
|
|
@@ -1226,7 +1223,7 @@ function rr(e) {
|
|
|
1226
1223
|
}
|
|
1227
1224
|
return t;
|
|
1228
1225
|
}
|
|
1229
|
-
var
|
|
1226
|
+
var or = {
|
|
1230
1227
|
ł: "l",
|
|
1231
1228
|
Ł: "L",
|
|
1232
1229
|
đ: "d",
|
|
@@ -1239,8 +1236,8 @@ var ir = {
|
|
|
1239
1236
|
Ŧ: "T",
|
|
1240
1237
|
ı: "i",
|
|
1241
1238
|
ß: "ss"
|
|
1242
|
-
},
|
|
1243
|
-
constructor(e, { location: t =
|
|
1239
|
+
}, sr = RegExp("[" + Object.keys(or).join("") + "]", "g"), cr = 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(sr, (e) => or[e]) : (e) => e, lr = class {
|
|
1240
|
+
constructor(e, { location: t = G.location, threshold: n = G.threshold, distance: r = G.distance, includeMatches: i = G.includeMatches, findAllMatches: a = G.findAllMatches, minMatchCharLength: o = G.minMatchCharLength, isCaseSensitive: s = G.isCaseSensitive, ignoreDiacritics: c = G.ignoreDiacritics, ignoreLocation: l = G.ignoreLocation } = {}) {
|
|
1244
1241
|
if (this.options = {
|
|
1245
1242
|
location: t,
|
|
1246
1243
|
threshold: n,
|
|
@@ -1251,11 +1248,11 @@ var ir = {
|
|
|
1251
1248
|
isCaseSensitive: s,
|
|
1252
1249
|
ignoreDiacritics: c,
|
|
1253
1250
|
ignoreLocation: l
|
|
1254
|
-
}, e = s ? e : e.toLowerCase(), e = c ?
|
|
1251
|
+
}, e = s ? e : e.toLowerCase(), e = c ? cr(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
|
|
1255
1252
|
let u = (e, t) => {
|
|
1256
1253
|
this.chunks.push({
|
|
1257
1254
|
pattern: e,
|
|
1258
|
-
alphabet:
|
|
1255
|
+
alphabet: ir(e),
|
|
1259
1256
|
startIndex: t
|
|
1260
1257
|
});
|
|
1261
1258
|
}, d = this.pattern.length;
|
|
@@ -1270,7 +1267,7 @@ var ir = {
|
|
|
1270
1267
|
}
|
|
1271
1268
|
searchIn(e) {
|
|
1272
1269
|
let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
|
|
1273
|
-
if (e = t ? e : e.toLowerCase(), e = n ?
|
|
1270
|
+
if (e = t ? e : e.toLowerCase(), e = n ? cr(e) : e, this.pattern === e) {
|
|
1274
1271
|
if (e.length < this.options.minMatchCharLength) return {
|
|
1275
1272
|
isMatch: !1,
|
|
1276
1273
|
score: 1
|
|
@@ -1283,7 +1280,7 @@ var ir = {
|
|
|
1283
1280
|
}
|
|
1284
1281
|
let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
|
|
1285
1282
|
this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
|
|
1286
|
-
let { isMatch: m, score: h, indices: g } =
|
|
1283
|
+
let { isMatch: m, score: h, indices: g } = rr(e, t, n, {
|
|
1287
1284
|
location: i + p,
|
|
1288
1285
|
distance: a,
|
|
1289
1286
|
threshold: o,
|
|
@@ -1298,13 +1295,13 @@ var ir = {
|
|
|
1298
1295
|
isMatch: f,
|
|
1299
1296
|
score: f ? d / this.chunks.length : 1
|
|
1300
1297
|
};
|
|
1301
|
-
return f && r && (p.indices =
|
|
1298
|
+
return f && r && (p.indices = ar(u)), p;
|
|
1302
1299
|
}
|
|
1303
|
-
},
|
|
1304
|
-
function
|
|
1300
|
+
}, ur = /* @__PURE__ */ new Set(["fuzzy", "include"]);
|
|
1301
|
+
function dr(e) {
|
|
1305
1302
|
return e.startsWith("inverse");
|
|
1306
1303
|
}
|
|
1307
|
-
var
|
|
1304
|
+
var fr = [
|
|
1308
1305
|
{
|
|
1309
1306
|
type: "exact",
|
|
1310
1307
|
multiRegex: /^="(.*)"$/,
|
|
@@ -1424,16 +1421,16 @@ var ur = [
|
|
|
1424
1421
|
multiRegex: /^"(.*)"$/,
|
|
1425
1422
|
singleRegex: /^(.*)$/,
|
|
1426
1423
|
create: (e, t = {}) => {
|
|
1427
|
-
let n = new
|
|
1428
|
-
location: t.location ??
|
|
1429
|
-
threshold: t.threshold ??
|
|
1430
|
-
distance: t.distance ??
|
|
1431
|
-
includeMatches: t.includeMatches ??
|
|
1432
|
-
findAllMatches: t.findAllMatches ??
|
|
1433
|
-
minMatchCharLength: t.minMatchCharLength ??
|
|
1434
|
-
isCaseSensitive: t.isCaseSensitive ??
|
|
1435
|
-
ignoreDiacritics: t.ignoreDiacritics ??
|
|
1436
|
-
ignoreLocation: t.ignoreLocation ??
|
|
1424
|
+
let n = new lr(e, {
|
|
1425
|
+
location: t.location ?? G.location,
|
|
1426
|
+
threshold: t.threshold ?? G.threshold,
|
|
1427
|
+
distance: t.distance ?? G.distance,
|
|
1428
|
+
includeMatches: t.includeMatches ?? G.includeMatches,
|
|
1429
|
+
findAllMatches: t.findAllMatches ?? G.findAllMatches,
|
|
1430
|
+
minMatchCharLength: t.minMatchCharLength ?? G.minMatchCharLength,
|
|
1431
|
+
isCaseSensitive: t.isCaseSensitive ?? G.isCaseSensitive,
|
|
1432
|
+
ignoreDiacritics: t.ignoreDiacritics ?? G.ignoreDiacritics,
|
|
1433
|
+
ignoreLocation: t.ignoreLocation ?? G.ignoreLocation
|
|
1437
1434
|
});
|
|
1438
1435
|
return {
|
|
1439
1436
|
type: "fuzzy",
|
|
@@ -1443,8 +1440,8 @@ var ur = [
|
|
|
1443
1440
|
};
|
|
1444
1441
|
}
|
|
1445
1442
|
}
|
|
1446
|
-
],
|
|
1447
|
-
function
|
|
1443
|
+
], pr = fr.length, mr = "\0", hr = "|";
|
|
1444
|
+
function gr(e) {
|
|
1448
1445
|
let t = [], n = e.length, r = 0;
|
|
1449
1446
|
for (; r < n;) {
|
|
1450
1447
|
for (; r < n && e[r] === " ";) r++;
|
|
@@ -1474,21 +1471,21 @@ function mr(e) {
|
|
|
1474
1471
|
}
|
|
1475
1472
|
return t;
|
|
1476
1473
|
}
|
|
1477
|
-
function
|
|
1474
|
+
function _r(e, t) {
|
|
1478
1475
|
let n = e.match(t);
|
|
1479
1476
|
return n ? n[1] : null;
|
|
1480
1477
|
}
|
|
1481
|
-
function
|
|
1482
|
-
return e.replace(/\\\|/g,
|
|
1483
|
-
let n =
|
|
1478
|
+
function vr(e, t = {}) {
|
|
1479
|
+
return e.replace(/\\\|/g, mr).split(hr).map((e) => {
|
|
1480
|
+
let n = gr(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
|
|
1484
1481
|
for (let e = 0, i = n.length; e < i; e += 1) {
|
|
1485
1482
|
let i = n[e], a = !1, o = -1;
|
|
1486
|
-
for (; !a && ++o <
|
|
1487
|
-
let e =
|
|
1483
|
+
for (; !a && ++o < pr;) {
|
|
1484
|
+
let e = fr[o], n = _r(i, e.multiRegex);
|
|
1488
1485
|
n && (r.push(e.create(n, t)), a = !0);
|
|
1489
1486
|
}
|
|
1490
|
-
if (!a) for (o = -1; ++o <
|
|
1491
|
-
let e =
|
|
1487
|
+
if (!a) for (o = -1; ++o < pr;) {
|
|
1488
|
+
let e = fr[o], n = _r(i, e.singleRegex);
|
|
1492
1489
|
if (n) {
|
|
1493
1490
|
r.push(e.create(n, t));
|
|
1494
1491
|
break;
|
|
@@ -1498,8 +1495,8 @@ function gr(e, t = {}) {
|
|
|
1498
1495
|
return r;
|
|
1499
1496
|
});
|
|
1500
1497
|
}
|
|
1501
|
-
var
|
|
1502
|
-
constructor(e, { isCaseSensitive: t =
|
|
1498
|
+
var yr = class {
|
|
1499
|
+
constructor(e, { isCaseSensitive: t = G.isCaseSensitive, ignoreDiacritics: n = G.ignoreDiacritics, includeMatches: r = G.includeMatches, minMatchCharLength: i = G.minMatchCharLength, ignoreLocation: a = G.ignoreLocation, findAllMatches: o = G.findAllMatches, location: s = G.location, threshold: c = G.threshold, distance: l = G.distance } = {}) {
|
|
1503
1500
|
this.query = null, this.options = {
|
|
1504
1501
|
isCaseSensitive: t,
|
|
1505
1502
|
ignoreDiacritics: n,
|
|
@@ -1510,7 +1507,7 @@ var _r = class {
|
|
|
1510
1507
|
location: s,
|
|
1511
1508
|
threshold: c,
|
|
1512
1509
|
distance: l
|
|
1513
|
-
}, e = t ? e : e.toLowerCase(), e = n ?
|
|
1510
|
+
}, e = t ? e : e.toLowerCase(), e = n ? cr(e) : e, this.pattern = e, this.query = vr(this.pattern, this.options);
|
|
1514
1511
|
}
|
|
1515
1512
|
static condition(e, t) {
|
|
1516
1513
|
return t.useExtendedSearch;
|
|
@@ -1522,14 +1519,14 @@ var _r = class {
|
|
|
1522
1519
|
score: 1
|
|
1523
1520
|
};
|
|
1524
1521
|
let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
|
|
1525
|
-
e = r ? e : e.toLowerCase(), e = i ?
|
|
1522
|
+
e = r ? e : e.toLowerCase(), e = i ? cr(e) : e;
|
|
1526
1523
|
let a = 0, o = [], s = 0, c = !1;
|
|
1527
1524
|
for (let r = 0, i = t.length; r < i; r += 1) {
|
|
1528
1525
|
let i = t[r];
|
|
1529
1526
|
o.length = 0, a = 0, c = !1;
|
|
1530
1527
|
for (let t = 0, r = i.length; t < r; t += 1) {
|
|
1531
1528
|
let r = i[t], { isMatch: l, indices: u, score: d } = r.search(e);
|
|
1532
|
-
if (l) a += 1, s += d,
|
|
1529
|
+
if (l) a += 1, s += d, dr(r.type) && (c = !0), n && (ur.has(r.type) ? o.push(...u) : o.push(u));
|
|
1533
1530
|
else {
|
|
1534
1531
|
s = 0, a = 0, o.length = 0, c = !1;
|
|
1535
1532
|
break;
|
|
@@ -1540,7 +1537,7 @@ var _r = class {
|
|
|
1540
1537
|
isMatch: !0,
|
|
1541
1538
|
score: s / a
|
|
1542
1539
|
};
|
|
1543
|
-
return c && (e.hasInverse = !0), n && (e.indices =
|
|
1540
|
+
return c && (e.hasInverse = !0), n && (e.indices = ar(o)), e;
|
|
1544
1541
|
}
|
|
1545
1542
|
}
|
|
1546
1543
|
return {
|
|
@@ -1548,43 +1545,43 @@ var _r = class {
|
|
|
1548
1545
|
score: 1
|
|
1549
1546
|
};
|
|
1550
1547
|
}
|
|
1551
|
-
},
|
|
1552
|
-
function
|
|
1553
|
-
|
|
1548
|
+
}, br = [];
|
|
1549
|
+
function xr(...e) {
|
|
1550
|
+
br.push(...e);
|
|
1554
1551
|
}
|
|
1555
|
-
function
|
|
1556
|
-
for (let n = 0, r =
|
|
1557
|
-
let r =
|
|
1552
|
+
function Sr(e, t) {
|
|
1553
|
+
for (let n = 0, r = br.length; n < r; n += 1) {
|
|
1554
|
+
let r = br[n];
|
|
1558
1555
|
if (r.condition(e, t)) return new r(e, t);
|
|
1559
1556
|
}
|
|
1560
|
-
return new
|
|
1557
|
+
return new lr(e, t);
|
|
1561
1558
|
}
|
|
1562
|
-
var
|
|
1559
|
+
var Cr = {
|
|
1563
1560
|
AND: "$and",
|
|
1564
1561
|
OR: "$or"
|
|
1565
|
-
},
|
|
1562
|
+
}, wr = {
|
|
1566
1563
|
PATH: "$path",
|
|
1567
1564
|
PATTERN: "$val"
|
|
1568
|
-
},
|
|
1569
|
-
function
|
|
1565
|
+
}, Tr = (e) => !!(e[Cr.AND] || e[Cr.OR]), Er = (e) => !!e[wr.PATH], Dr = (e) => !H(e) && An(e) && !Tr(e), Or = (e) => ({ [Cr.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
|
|
1566
|
+
function kr(e, t, { auto: n = !0 } = {}) {
|
|
1570
1567
|
let r = (e) => {
|
|
1571
|
-
if (
|
|
1568
|
+
if (U(e)) {
|
|
1572
1569
|
let r = {
|
|
1573
1570
|
keyId: null,
|
|
1574
1571
|
pattern: e
|
|
1575
1572
|
};
|
|
1576
|
-
return n && (r.searcher =
|
|
1573
|
+
return n && (r.searcher = Sr(e, t)), r;
|
|
1577
1574
|
}
|
|
1578
|
-
let i = Object.keys(e), a =
|
|
1579
|
-
if (!a && i.length > 1 && !
|
|
1580
|
-
if (
|
|
1581
|
-
let r = a ? e[
|
|
1582
|
-
if (!
|
|
1575
|
+
let i = Object.keys(e), a = Er(e);
|
|
1576
|
+
if (!a && i.length > 1 && !Tr(e)) return r(Or(e));
|
|
1577
|
+
if (Dr(e)) {
|
|
1578
|
+
let r = a ? e[wr.PATH] : i[0], o = a ? e[wr.PATTERN] : e[r];
|
|
1579
|
+
if (!U(o)) throw Error(In(r));
|
|
1583
1580
|
let s = {
|
|
1584
|
-
keyId:
|
|
1581
|
+
keyId: Gn(r),
|
|
1585
1582
|
pattern: o
|
|
1586
1583
|
};
|
|
1587
|
-
return n && (s.searcher =
|
|
1584
|
+
return n && (s.searcher = Sr(o, t)), s;
|
|
1588
1585
|
}
|
|
1589
1586
|
let o = {
|
|
1590
1587
|
children: [],
|
|
@@ -1592,26 +1589,26 @@ function Dr(e, t, { auto: n = !0 } = {}) {
|
|
|
1592
1589
|
};
|
|
1593
1590
|
return i.forEach((t) => {
|
|
1594
1591
|
let n = e[t];
|
|
1595
|
-
|
|
1592
|
+
H(n) && n.forEach((e) => {
|
|
1596
1593
|
o.children.push(r(e));
|
|
1597
1594
|
});
|
|
1598
1595
|
}), o;
|
|
1599
1596
|
};
|
|
1600
|
-
return
|
|
1597
|
+
return Tr(e) || (e = Or(e)), r(e);
|
|
1601
1598
|
}
|
|
1602
|
-
function
|
|
1599
|
+
function Ar(e, { ignoreFieldNorm: t = G.ignoreFieldNorm }) {
|
|
1603
1600
|
let n = 1;
|
|
1604
1601
|
return e.forEach(({ key: e, norm: r, score: i }) => {
|
|
1605
1602
|
let a = e ? e.weight : null;
|
|
1606
1603
|
n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
|
|
1607
1604
|
}), n;
|
|
1608
1605
|
}
|
|
1609
|
-
function
|
|
1606
|
+
function jr(e, { ignoreFieldNorm: t = G.ignoreFieldNorm }) {
|
|
1610
1607
|
e.forEach((e) => {
|
|
1611
|
-
e.score =
|
|
1608
|
+
e.score = Ar(e.matches, { ignoreFieldNorm: t });
|
|
1612
1609
|
});
|
|
1613
1610
|
}
|
|
1614
|
-
var
|
|
1611
|
+
var Mr = class {
|
|
1615
1612
|
constructor(e, t) {
|
|
1616
1613
|
this.limit = e, this.heap = [], this.comparator = t;
|
|
1617
1614
|
}
|
|
@@ -1645,10 +1642,10 @@ var Ar = class {
|
|
|
1645
1642
|
} while (r !== e);
|
|
1646
1643
|
}
|
|
1647
1644
|
};
|
|
1648
|
-
function
|
|
1645
|
+
function Nr(e) {
|
|
1649
1646
|
let t = [];
|
|
1650
1647
|
return e.matches.forEach((e) => {
|
|
1651
|
-
if (!
|
|
1648
|
+
if (!W(e.indices) || !e.indices.length) return;
|
|
1652
1649
|
let n = {
|
|
1653
1650
|
indices: e.indices,
|
|
1654
1651
|
value: e.value
|
|
@@ -1656,20 +1653,20 @@ function jr(e) {
|
|
|
1656
1653
|
e.key && (n.key = e.key.id), e.idx > -1 && (n.refIndex = e.idx), t.push(n);
|
|
1657
1654
|
}), t;
|
|
1658
1655
|
}
|
|
1659
|
-
function
|
|
1656
|
+
function Pr(e, t, { includeMatches: n = G.includeMatches, includeScore: r = G.includeScore } = {}) {
|
|
1660
1657
|
return e.map((e) => {
|
|
1661
1658
|
let { idx: i } = e, a = {
|
|
1662
1659
|
item: t[i],
|
|
1663
1660
|
refIndex: i
|
|
1664
1661
|
};
|
|
1665
|
-
return n && (a.matches =
|
|
1662
|
+
return n && (a.matches = Nr(e)), r && (a.score = e.score), a;
|
|
1666
1663
|
});
|
|
1667
1664
|
}
|
|
1668
|
-
var
|
|
1669
|
-
function
|
|
1670
|
-
|
|
1665
|
+
var Fr = /[\p{L}\p{M}\p{N}_]+/gu, Ir = /* @__PURE__ */ new WeakSet();
|
|
1666
|
+
function Lr(e) {
|
|
1667
|
+
Ir.has(e) || (Ir.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
1668
|
}
|
|
1672
|
-
function
|
|
1669
|
+
function Rr(e) {
|
|
1673
1670
|
if (typeof e == "function") {
|
|
1674
1671
|
let t = !1;
|
|
1675
1672
|
return (n) => {
|
|
@@ -1678,20 +1675,20 @@ function Ir(e) {
|
|
|
1678
1675
|
return r;
|
|
1679
1676
|
};
|
|
1680
1677
|
}
|
|
1681
|
-
return e instanceof RegExp ? (e.global ||
|
|
1678
|
+
return e instanceof RegExp ? (e.global || Lr(e), (t) => t.match(e) || []) : (e) => e.match(Fr) || [];
|
|
1682
1679
|
}
|
|
1683
|
-
function
|
|
1684
|
-
let r =
|
|
1680
|
+
function zr({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
|
|
1681
|
+
let r = Rr(n);
|
|
1685
1682
|
return { tokenize(n) {
|
|
1686
|
-
return e || (n = n.toLowerCase()), t && (n =
|
|
1683
|
+
return e || (n = n.toLowerCase()), t && (n = cr(n)), r(n);
|
|
1687
1684
|
} };
|
|
1688
1685
|
}
|
|
1689
|
-
var
|
|
1686
|
+
var Br = class {
|
|
1690
1687
|
static condition(e, t) {
|
|
1691
1688
|
return t.useTokenSearch;
|
|
1692
1689
|
}
|
|
1693
1690
|
constructor(e, t) {
|
|
1694
|
-
this.options = t, this.analyzer =
|
|
1691
|
+
this.options = t, this.analyzer = zr({
|
|
1695
1692
|
isCaseSensitive: t.isCaseSensitive,
|
|
1696
1693
|
ignoreDiacritics: t.ignoreDiacritics,
|
|
1697
1694
|
tokenize: t.tokenize
|
|
@@ -1699,7 +1696,7 @@ var Rr = class {
|
|
|
1699
1696
|
let n = this.analyzer.tokenize(e), { df: r, fieldCount: i } = t._invertedIndex;
|
|
1700
1697
|
this.termSearchers = [], this.idfWeights = [];
|
|
1701
1698
|
for (let e of n) {
|
|
1702
|
-
this.termSearchers.push(new
|
|
1699
|
+
this.termSearchers.push(new lr(e, {
|
|
1703
1700
|
location: t.location,
|
|
1704
1701
|
threshold: t.threshold,
|
|
1705
1702
|
distance: t.distance,
|
|
@@ -1733,10 +1730,10 @@ var Rr = class {
|
|
|
1733
1730
|
isMatch: !0,
|
|
1734
1731
|
score: Math.max(.001, s)
|
|
1735
1732
|
};
|
|
1736
|
-
return this.options.includeMatches && t.length && (c.indices =
|
|
1733
|
+
return this.options.includeMatches && t.length && (c.indices = ar(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
|
|
1737
1734
|
}
|
|
1738
1735
|
};
|
|
1739
|
-
function
|
|
1736
|
+
function Vr(e, t, n, r) {
|
|
1740
1737
|
let i = r.tokenize(t);
|
|
1741
1738
|
if (!i.length) return;
|
|
1742
1739
|
e.fieldCount++, e.docFieldCount.set(n, (e.docFieldCount.get(n) || 0) + 1);
|
|
@@ -1744,32 +1741,32 @@ function zr(e, t, n, r) {
|
|
|
1744
1741
|
o || (o = /* @__PURE__ */ new Map(), e.docTermFieldHits.set(n, o));
|
|
1745
1742
|
for (let t of a) o.set(t, (o.get(t) || 0) + 1), e.df.set(t, (e.df.get(t) || 0) + 1);
|
|
1746
1743
|
}
|
|
1747
|
-
function
|
|
1744
|
+
function Hr(e, t, n, r) {
|
|
1748
1745
|
let { i, v: a, $: o } = t;
|
|
1749
1746
|
if (a !== void 0) {
|
|
1750
|
-
|
|
1747
|
+
Vr(e, a, i, r);
|
|
1751
1748
|
return;
|
|
1752
1749
|
}
|
|
1753
1750
|
if (o) for (let t = 0; t < n; t++) {
|
|
1754
1751
|
let n = o[t];
|
|
1755
|
-
if (n) if (Array.isArray(n)) for (let t of n)
|
|
1756
|
-
else
|
|
1752
|
+
if (n) if (Array.isArray(n)) for (let t of n) Vr(e, t.v, i, r);
|
|
1753
|
+
else Vr(e, n.v, i, r);
|
|
1757
1754
|
}
|
|
1758
1755
|
}
|
|
1759
|
-
function
|
|
1756
|
+
function Ur(e, t, n) {
|
|
1760
1757
|
let r = {
|
|
1761
1758
|
fieldCount: 0,
|
|
1762
1759
|
df: /* @__PURE__ */ new Map(),
|
|
1763
1760
|
docFieldCount: /* @__PURE__ */ new Map(),
|
|
1764
1761
|
docTermFieldHits: /* @__PURE__ */ new Map()
|
|
1765
1762
|
};
|
|
1766
|
-
for (let i of e)
|
|
1763
|
+
for (let i of e) Hr(r, i, t, n);
|
|
1767
1764
|
return r;
|
|
1768
1765
|
}
|
|
1769
|
-
function
|
|
1770
|
-
|
|
1766
|
+
function Wr(e, t, n, r) {
|
|
1767
|
+
Hr(e, t, n, r);
|
|
1771
1768
|
}
|
|
1772
|
-
function
|
|
1769
|
+
function Gr(e, t) {
|
|
1773
1770
|
let n = e.docFieldCount.get(t);
|
|
1774
1771
|
if (n === void 0) return;
|
|
1775
1772
|
e.fieldCount -= n, e.docFieldCount.delete(t);
|
|
@@ -1782,10 +1779,10 @@ function Ur(e, t) {
|
|
|
1782
1779
|
e.docTermFieldHits.delete(t);
|
|
1783
1780
|
}
|
|
1784
1781
|
}
|
|
1785
|
-
function
|
|
1782
|
+
function Kr(e, t) {
|
|
1786
1783
|
if (t.length === 0) return;
|
|
1787
1784
|
let n = Array.from(new Set(t)).sort((e, t) => e - t);
|
|
1788
|
-
for (let t of n)
|
|
1785
|
+
for (let t of n) Gr(e, t);
|
|
1789
1786
|
let r = (e) => {
|
|
1790
1787
|
let t = 0, r = n.length;
|
|
1791
1788
|
for (; t < r;) {
|
|
@@ -1800,47 +1797,47 @@ function Wr(e, t) {
|
|
|
1800
1797
|
for (let [t, n] of e.docTermFieldHits) o.set(t > i ? r(t) : t, n);
|
|
1801
1798
|
e.docTermFieldHits = o;
|
|
1802
1799
|
}
|
|
1803
|
-
var
|
|
1800
|
+
var K = class {
|
|
1804
1801
|
constructor(e, t, n) {
|
|
1805
1802
|
this.options = {
|
|
1806
|
-
...
|
|
1803
|
+
...G,
|
|
1807
1804
|
...t
|
|
1808
|
-
}, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new
|
|
1805
|
+
}, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new Hn(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
|
|
1809
1806
|
}
|
|
1810
1807
|
_getSearcher(e) {
|
|
1811
1808
|
if (this._lastQuery === e) return this._lastSearcher;
|
|
1812
|
-
let t =
|
|
1809
|
+
let t = Sr(e, this._invertedIndex ? {
|
|
1813
1810
|
...this.options,
|
|
1814
1811
|
_invertedIndex: this._invertedIndex
|
|
1815
1812
|
} : this.options);
|
|
1816
1813
|
return this._lastQuery = e, this._lastSearcher = t, t;
|
|
1817
1814
|
}
|
|
1818
1815
|
setCollection(e, t) {
|
|
1819
|
-
if (this._docs = e, t && !(t instanceof
|
|
1820
|
-
if (this._myIndex = t ||
|
|
1816
|
+
if (this._docs = e, t && !(t instanceof $n)) throw Error(Pn);
|
|
1817
|
+
if (this._myIndex = t || er(this.options.keys, this._docs, {
|
|
1821
1818
|
getFn: this.options.getFn,
|
|
1822
1819
|
fieldNormWeight: this.options.fieldNormWeight
|
|
1823
1820
|
}), this.options.useTokenSearch) {
|
|
1824
|
-
let e =
|
|
1821
|
+
let e = zr({
|
|
1825
1822
|
isCaseSensitive: this.options.isCaseSensitive,
|
|
1826
1823
|
ignoreDiacritics: this.options.ignoreDiacritics,
|
|
1827
1824
|
tokenize: this.options.tokenize
|
|
1828
1825
|
});
|
|
1829
|
-
this._invertedIndex =
|
|
1826
|
+
this._invertedIndex = Ur(this._myIndex.records, this._myIndex.keys.length, e);
|
|
1830
1827
|
}
|
|
1831
1828
|
this._invalidateSearcherCache();
|
|
1832
1829
|
}
|
|
1833
1830
|
add(e) {
|
|
1834
|
-
if (!
|
|
1831
|
+
if (!W(e)) return;
|
|
1835
1832
|
this._docs.push(e);
|
|
1836
1833
|
let t = this._myIndex.add(e, this._docs.length - 1);
|
|
1837
1834
|
if (this._invertedIndex && t) {
|
|
1838
|
-
let e =
|
|
1835
|
+
let e = zr({
|
|
1839
1836
|
isCaseSensitive: this.options.isCaseSensitive,
|
|
1840
1837
|
ignoreDiacritics: this.options.ignoreDiacritics,
|
|
1841
1838
|
tokenize: this.options.tokenize
|
|
1842
1839
|
});
|
|
1843
|
-
|
|
1840
|
+
Wr(this._invertedIndex, t, this._myIndex.keys.length, e);
|
|
1844
1841
|
}
|
|
1845
1842
|
this._invalidateSearcherCache();
|
|
1846
1843
|
}
|
|
@@ -1848,15 +1845,15 @@ var J = class {
|
|
|
1848
1845
|
let t = [], n = [];
|
|
1849
1846
|
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
1847
|
if (n.length) {
|
|
1851
|
-
this._invertedIndex &&
|
|
1848
|
+
this._invertedIndex && Kr(this._invertedIndex, n);
|
|
1852
1849
|
let e = new Set(n);
|
|
1853
1850
|
this._docs = this._docs.filter((t, n) => !e.has(n)), this._myIndex.removeAll(n), this._invalidateSearcherCache();
|
|
1854
1851
|
}
|
|
1855
1852
|
return t;
|
|
1856
1853
|
}
|
|
1857
1854
|
removeAt(e) {
|
|
1858
|
-
if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(
|
|
1859
|
-
this._invertedIndex &&
|
|
1855
|
+
if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Fn);
|
|
1856
|
+
this._invertedIndex && Kr(this._invertedIndex, [e]);
|
|
1860
1857
|
let t = this._docs.splice(e, 1)[0];
|
|
1861
1858
|
return this._myIndex.removeAt(e), this._invalidateSearcherCache(), t;
|
|
1862
1859
|
}
|
|
@@ -1871,25 +1868,25 @@ var J = class {
|
|
|
1871
1868
|
}
|
|
1872
1869
|
search(e, t) {
|
|
1873
1870
|
let { limit: n = -1 } = t || {}, { includeMatches: r, includeScore: i, shouldSort: a, sortFn: o, ignoreFieldNorm: s } = this.options;
|
|
1874
|
-
if (
|
|
1871
|
+
if (U(e) && !e.trim()) {
|
|
1875
1872
|
let e = this._docs.map((e, t) => ({
|
|
1876
1873
|
item: e,
|
|
1877
1874
|
refIndex: t
|
|
1878
1875
|
}));
|
|
1879
|
-
return
|
|
1876
|
+
return On(n) && n > -1 && (e = e.slice(0, n)), e;
|
|
1880
1877
|
}
|
|
1881
|
-
let c = a &&
|
|
1878
|
+
let c = a && On(n) && n > 0 && U(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
|
|
1882
1879
|
if (c) {
|
|
1883
|
-
let t = new
|
|
1884
|
-
|
|
1880
|
+
let t = new Mr(n, u);
|
|
1881
|
+
U(this._docs[0]) ? this._searchStringList(e, {
|
|
1885
1882
|
heap: t,
|
|
1886
1883
|
ignoreFieldNorm: s
|
|
1887
1884
|
}) : this._searchObjectList(e, {
|
|
1888
1885
|
heap: t,
|
|
1889
1886
|
ignoreFieldNorm: s
|
|
1890
1887
|
}), d = t.extractSorted();
|
|
1891
|
-
} else d =
|
|
1892
|
-
return
|
|
1888
|
+
} else d = U(e) ? U(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), jr(d, { ignoreFieldNorm: s }), a && d.sort(U(e) ? u : l), On(n) && n > -1 && (d = d.slice(0, n));
|
|
1889
|
+
return Pr(d, this._docs, {
|
|
1893
1890
|
includeMatches: r,
|
|
1894
1891
|
includeScore: i
|
|
1895
1892
|
});
|
|
@@ -1897,7 +1894,7 @@ var J = class {
|
|
|
1897
1894
|
_searchStringList(e, { heap: t, ignoreFieldNorm: n } = {}) {
|
|
1898
1895
|
let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", { records: a } = this._myIndex, o = t ? null : [];
|
|
1899
1896
|
return a.forEach(({ v: e, i: a, n: s }) => {
|
|
1900
|
-
if (!
|
|
1897
|
+
if (!W(e)) return;
|
|
1901
1898
|
let c = r.searchIn(e);
|
|
1902
1899
|
if (c.isMatch) {
|
|
1903
1900
|
let r = {
|
|
@@ -1914,13 +1911,13 @@ var J = class {
|
|
|
1914
1911
|
idx: a,
|
|
1915
1912
|
matches: l
|
|
1916
1913
|
};
|
|
1917
|
-
t ? (r.score =
|
|
1914
|
+
t ? (r.score = Ar(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
|
|
1918
1915
|
}
|
|
1919
1916
|
}
|
|
1920
1917
|
}), o;
|
|
1921
1918
|
}
|
|
1922
1919
|
_searchLogical(e) {
|
|
1923
|
-
let t =
|
|
1920
|
+
let t = kr(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
|
|
1924
1921
|
if (!("children" in e)) {
|
|
1925
1922
|
let { keyId: r, searcher: a } = e, o;
|
|
1926
1923
|
return r === null ? (o = [], n.forEach((e, n) => {
|
|
@@ -1943,12 +1940,12 @@ var J = class {
|
|
|
1943
1940
|
for (let e = 0, n = a.length; e < n; e += 1) {
|
|
1944
1941
|
let n = a[e], c = r(n, t, i);
|
|
1945
1942
|
if (c.length) s.push(...c);
|
|
1946
|
-
else if (o ===
|
|
1943
|
+
else if (o === Cr.AND) return [];
|
|
1947
1944
|
}
|
|
1948
1945
|
return s;
|
|
1949
1946
|
}, i = this._myIndex.records, a = /* @__PURE__ */ new Map(), o = [];
|
|
1950
1947
|
return i.forEach(({ $: e, i: n }) => {
|
|
1951
|
-
if (
|
|
1948
|
+
if (W(e)) {
|
|
1952
1949
|
let i = r(t, e, n);
|
|
1953
1950
|
i.length && (a.has(n) || (a.set(n, {
|
|
1954
1951
|
idx: n,
|
|
@@ -1963,7 +1960,7 @@ var J = class {
|
|
|
1963
1960
|
_searchObjectList(e, { heap: t, ignoreFieldNorm: n } = {}) {
|
|
1964
1961
|
let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", { records: a } = this._myIndex, o = this._normalizedKeys(), s = t ? null : [];
|
|
1965
1962
|
return a.forEach(({ $: e, i: a }) => {
|
|
1966
|
-
if (!
|
|
1963
|
+
if (!W(e)) return;
|
|
1967
1964
|
let c = [], l = !1, u = !1;
|
|
1968
1965
|
if (o.forEach((t, n) => {
|
|
1969
1966
|
let i = this._findMatches({
|
|
@@ -1978,15 +1975,15 @@ var J = class {
|
|
|
1978
1975
|
item: e,
|
|
1979
1976
|
matches: c
|
|
1980
1977
|
};
|
|
1981
|
-
t ? (r.score =
|
|
1978
|
+
t ? (r.score = Ar(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
|
|
1982
1979
|
}
|
|
1983
1980
|
}), s;
|
|
1984
1981
|
}
|
|
1985
1982
|
_findMatches({ key: e, value: t, searcher: n }) {
|
|
1986
|
-
if (!
|
|
1983
|
+
if (!W(t)) return [];
|
|
1987
1984
|
let r = [];
|
|
1988
|
-
if (
|
|
1989
|
-
if (!
|
|
1985
|
+
if (H(t)) t.forEach(({ v: t, i, n: a }) => {
|
|
1986
|
+
if (!W(t)) return;
|
|
1990
1987
|
let o = n.searchIn(t);
|
|
1991
1988
|
if (o.isMatch) {
|
|
1992
1989
|
let n = {
|
|
@@ -2033,25 +2030,25 @@ var J = class {
|
|
|
2033
2030
|
return n.size === t;
|
|
2034
2031
|
}
|
|
2035
2032
|
};
|
|
2036
|
-
|
|
2037
|
-
if (n && n.useTokenSearch) throw Error(
|
|
2038
|
-
return
|
|
2039
|
-
...
|
|
2033
|
+
K.version = "7.5.0", K.createIndex = er, K.parseIndex = tr, K.config = G, K.match = function(e, t, n) {
|
|
2034
|
+
if (n && n.useTokenSearch) throw Error(Bn);
|
|
2035
|
+
return Sr(e, {
|
|
2036
|
+
...G,
|
|
2040
2037
|
...n
|
|
2041
2038
|
}).searchIn(t);
|
|
2042
|
-
},
|
|
2043
|
-
e.forEach((e) =>
|
|
2039
|
+
}, K.parseQuery = kr, xr(yr), xr(Br), K.use = function(...e) {
|
|
2040
|
+
e.forEach((e) => xr(e));
|
|
2044
2041
|
};
|
|
2045
|
-
var
|
|
2046
|
-
let t =
|
|
2042
|
+
var qr = K, Jr = (e, n, r) => t(() => {
|
|
2043
|
+
let t = C(e), i = C(n);
|
|
2047
2044
|
if (!t) return i;
|
|
2048
|
-
let a = new
|
|
2045
|
+
let a = new qr([...i], {
|
|
2049
2046
|
threshold: .2,
|
|
2050
2047
|
keys: r
|
|
2051
2048
|
});
|
|
2052
|
-
return t ? a.search(t
|
|
2053
|
-
}),
|
|
2054
|
-
let e =
|
|
2049
|
+
return t ? a.search(t).map((e) => e.item) : i;
|
|
2050
|
+
}), q = () => {
|
|
2051
|
+
let e = x(/* @__PURE__ */ new Map());
|
|
2055
2052
|
return {
|
|
2056
2053
|
set(t, n) {
|
|
2057
2054
|
n ? e.value.set(t, n) : e.value.delete(t);
|
|
@@ -2060,47 +2057,47 @@ var Gr = J, Kr = (e, n, r) => t(() => {
|
|
|
2060
2057
|
return e.value.get(t);
|
|
2061
2058
|
}
|
|
2062
2059
|
};
|
|
2063
|
-
},
|
|
2064
|
-
|
|
2060
|
+
}, J = (e, t, n) => {
|
|
2061
|
+
en(n, (n) => {
|
|
2065
2062
|
e.set(t, n);
|
|
2066
2063
|
});
|
|
2067
|
-
},
|
|
2068
|
-
let e =
|
|
2064
|
+
}, Yr = ue("theme-settings", () => {
|
|
2065
|
+
let e = x(1), t = x(!0), n = (e, t) => {
|
|
2069
2066
|
document.documentElement.style.setProperty(`--${e}`, t);
|
|
2070
2067
|
};
|
|
2071
|
-
return
|
|
2068
|
+
return en(e, (e) => {
|
|
2072
2069
|
document.documentElement.style.setProperty("saturation", `${e}`);
|
|
2073
|
-
}),
|
|
2070
|
+
}), en(t, (e) => {
|
|
2074
2071
|
n("code-white-space", e ? "pre-wrap" : "pre");
|
|
2075
2072
|
}), {
|
|
2076
2073
|
saturation: e,
|
|
2077
2074
|
wrapCode: t
|
|
2078
2075
|
};
|
|
2079
|
-
}),
|
|
2076
|
+
}), Xr = (e) => l(e, { missingContext: !0 }), Zr = Symbol("toolbar"), Qr = ["aria-orientation", "aria-controls"], $r = /* @__PURE__ */ o({
|
|
2080
2077
|
__name: "Toolbar",
|
|
2081
2078
|
props: {
|
|
2082
2079
|
orientation: { default: "horizontal" },
|
|
2083
2080
|
controls: {}
|
|
2084
2081
|
},
|
|
2085
2082
|
setup(e) {
|
|
2086
|
-
let { orientation: t } =
|
|
2087
|
-
return
|
|
2083
|
+
let { orientation: t } = ie(e), n = D("element"), { getElements: r } = B("toolbar", n), { onKeyDown: a, navigateTo: o } = Gt(t, r);
|
|
2084
|
+
return b(Zr, {
|
|
2088
2085
|
onKeyDown: a,
|
|
2089
2086
|
navigateTo: o
|
|
2090
|
-
}), (r, a) => (
|
|
2087
|
+
}), (r, a) => (y(), i("div", {
|
|
2091
2088
|
ref_key: "element",
|
|
2092
2089
|
ref: n,
|
|
2093
|
-
"aria-orientation":
|
|
2090
|
+
"aria-orientation": w(t),
|
|
2094
2091
|
"aria-controls": e.controls,
|
|
2095
2092
|
role: "toolbar"
|
|
2096
|
-
}, [
|
|
2093
|
+
}, [S(r.$slots, "default")], 8, Qr));
|
|
2097
2094
|
}
|
|
2098
|
-
}),
|
|
2095
|
+
}), ei = [
|
|
2099
2096
|
"aria-disabled",
|
|
2100
2097
|
"aria-keyshortcuts",
|
|
2101
|
-
"
|
|
2102
|
-
"
|
|
2103
|
-
],
|
|
2098
|
+
"type",
|
|
2099
|
+
"tabindex"
|
|
2100
|
+
], Y = /* @__PURE__ */ o({
|
|
2104
2101
|
__name: "Button",
|
|
2105
2102
|
props: {
|
|
2106
2103
|
type: { default: "button" },
|
|
@@ -2112,62 +2109,62 @@ var Gr = J, Kr = (e, n, r) => t(() => {
|
|
|
2112
2109
|
},
|
|
2113
2110
|
emits: ["click"],
|
|
2114
2111
|
setup(e, { emit: t }) {
|
|
2115
|
-
let n = e, r = t, a =
|
|
2116
|
-
|
|
2112
|
+
let n = e, r = t, a = D("element"), { onKeyDown: o, navigateTo: s } = Xr(Zr);
|
|
2113
|
+
V("toolbar", a);
|
|
2117
2114
|
let c = (e) => {
|
|
2118
2115
|
s?.(a.value), n.disabled || r("click", e);
|
|
2119
2116
|
};
|
|
2120
|
-
return
|
|
2117
|
+
return R("*", () => {
|
|
2121
2118
|
if (!n.keyboardShortcut) return;
|
|
2122
|
-
let e =
|
|
2119
|
+
let e = R.getPressedKeyString();
|
|
2123
2120
|
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) => (
|
|
2121
|
+
}), (t, n) => (y(), i("button", {
|
|
2125
2122
|
ref_key: "element",
|
|
2126
2123
|
ref: a,
|
|
2127
|
-
"aria-disabled": e.disabled
|
|
2124
|
+
"aria-disabled": !!e.disabled,
|
|
2128
2125
|
"aria-keyshortcuts": e.keyboardShortcut,
|
|
2129
|
-
disabled: e.disabled === "without-focus" || void 0,
|
|
2130
2126
|
type: e.type,
|
|
2127
|
+
tabindex: e.disabled === "without-focus" ? -1 : void 0,
|
|
2131
2128
|
onClick: c,
|
|
2132
|
-
onKeydown: n[0] ||= (...e) =>
|
|
2133
|
-
}, [
|
|
2129
|
+
onKeydown: n[0] ||= (...e) => w(o) && w(o)(...e)
|
|
2130
|
+
}, [S(t.$slots, "default")], 40, ei));
|
|
2134
2131
|
}
|
|
2135
|
-
}),
|
|
2132
|
+
}), ti = Symbol("calendar-table"), ni = /* @__PURE__ */ o({
|
|
2136
2133
|
__name: "Table",
|
|
2137
2134
|
setup(e) {
|
|
2138
|
-
return (e, t) => (
|
|
2135
|
+
return (e, t) => (y(), i("table", null, [S(e.$slots, "default")]));
|
|
2139
2136
|
}
|
|
2140
|
-
}),
|
|
2137
|
+
}), ri = /* @__PURE__ */ o({
|
|
2141
2138
|
__name: "TableBody",
|
|
2142
2139
|
setup(e) {
|
|
2143
|
-
return (e, t) => (
|
|
2140
|
+
return (e, t) => (y(), i("tbody", null, [S(e.$slots, "default")]));
|
|
2144
2141
|
}
|
|
2145
|
-
}),
|
|
2142
|
+
}), ii = /* @__PURE__ */ o({
|
|
2146
2143
|
__name: "TableCell",
|
|
2147
2144
|
props: { heading: { type: Boolean } },
|
|
2148
2145
|
setup(e) {
|
|
2149
|
-
return (t, r) => (
|
|
2150
|
-
default:
|
|
2146
|
+
return (t, r) => (y(), n(te(e.heading ? "th" : "td"), { scope: e.heading ? "row" : void 0 }, {
|
|
2147
|
+
default: k(() => [S(t.$slots, "default")]),
|
|
2151
2148
|
_: 3
|
|
2152
2149
|
}, 8, ["scope"]));
|
|
2153
2150
|
}
|
|
2154
|
-
}),
|
|
2151
|
+
}), ai = /* @__PURE__ */ o({
|
|
2155
2152
|
__name: "TableHead",
|
|
2156
2153
|
setup(e) {
|
|
2157
|
-
return (e, t) => (
|
|
2154
|
+
return (e, t) => (y(), i("thead", null, [S(e.$slots, "default")]));
|
|
2158
2155
|
}
|
|
2159
|
-
}),
|
|
2156
|
+
}), oi = ["aria-sort"], si = /* @__PURE__ */ o({
|
|
2160
2157
|
__name: "TableHeadingCell",
|
|
2161
2158
|
props: { sorted: {} },
|
|
2162
2159
|
setup(e) {
|
|
2163
|
-
return (t, n) => (
|
|
2160
|
+
return (t, n) => (y(), i("th", { "aria-sort": e.sorted }, [S(t.$slots, "default")], 8, oi));
|
|
2164
2161
|
}
|
|
2165
|
-
}),
|
|
2162
|
+
}), ci = /* @__PURE__ */ o({
|
|
2166
2163
|
__name: "TableRow",
|
|
2167
2164
|
setup(e) {
|
|
2168
|
-
return (e, t) => (
|
|
2165
|
+
return (e, t) => (y(), i("tr", null, [S(e.$slots, "default")]));
|
|
2169
2166
|
}
|
|
2170
|
-
}),
|
|
2167
|
+
}), li = /* @__PURE__ */ o({
|
|
2171
2168
|
__name: "CalendarTable",
|
|
2172
2169
|
props: /*@__PURE__*/ f({ autoFocus: { type: Boolean } }, {
|
|
2173
2170
|
modelValue: { default: () => /* @__PURE__ */ new Date() },
|
|
@@ -2175,24 +2172,24 @@ var Gr = J, Kr = (e, n, r) => t(() => {
|
|
|
2175
2172
|
}),
|
|
2176
2173
|
emits: ["update:modelValue"],
|
|
2177
2174
|
setup(e) {
|
|
2178
|
-
let r = e, i =
|
|
2179
|
-
return
|
|
2175
|
+
let r = e, i = E(e, "modelValue"), a = rn();
|
|
2176
|
+
return b(ti, {
|
|
2180
2177
|
focusedDate: i,
|
|
2181
2178
|
allowFocus: t(() => r.autoFocus || a.value)
|
|
2182
|
-
}), (e, t) => (
|
|
2183
|
-
default:
|
|
2179
|
+
}), (e, t) => (y(), n(w(ni), { role: "grid" }, {
|
|
2180
|
+
default: k(() => [S(e.$slots, "default")]),
|
|
2184
2181
|
_: 3
|
|
2185
2182
|
}));
|
|
2186
2183
|
}
|
|
2187
|
-
}),
|
|
2184
|
+
}), ui = /* @__PURE__ */ o({
|
|
2188
2185
|
__name: "CalendarTableCell",
|
|
2189
2186
|
setup(e) {
|
|
2190
|
-
return (e, t) => (
|
|
2191
|
-
default:
|
|
2187
|
+
return (e, t) => (y(), n(w(ii), { role: "gridcell" }, {
|
|
2188
|
+
default: k(() => [S(e.$slots, "default")]),
|
|
2192
2189
|
_: 3
|
|
2193
2190
|
}));
|
|
2194
2191
|
}
|
|
2195
|
-
}),
|
|
2192
|
+
}), di = (e, t = xt.Monday) => ({ onKeyDown(n) {
|
|
2196
2193
|
switch ([
|
|
2197
2194
|
"ArrowLeft",
|
|
2198
2195
|
"ArrowRight",
|
|
@@ -2204,37 +2201,37 @@ var Gr = J, Kr = (e, n, r) => t(() => {
|
|
|
2204
2201
|
"End"
|
|
2205
2202
|
].includes(n.key) && n.preventDefault(), n.key) {
|
|
2206
2203
|
case "ArrowLeft":
|
|
2207
|
-
e.value =
|
|
2204
|
+
e.value = Qe(e.value);
|
|
2208
2205
|
break;
|
|
2209
2206
|
case "ArrowRight":
|
|
2210
|
-
e.value =
|
|
2207
|
+
e.value = Ze(e.value);
|
|
2211
2208
|
break;
|
|
2212
2209
|
case "ArrowUp":
|
|
2213
|
-
e.value =
|
|
2210
|
+
e.value = et(e.value);
|
|
2214
2211
|
break;
|
|
2215
2212
|
case "ArrowDown":
|
|
2216
|
-
e.value =
|
|
2213
|
+
e.value = $e(e.value);
|
|
2217
2214
|
break;
|
|
2218
2215
|
case "PageUp":
|
|
2219
|
-
e.value = n.shiftKey ?
|
|
2216
|
+
e.value = n.shiftKey ? it(e.value) : nt(e.value);
|
|
2220
2217
|
break;
|
|
2221
2218
|
case "PageDown":
|
|
2222
|
-
e.value = n.shiftKey ?
|
|
2219
|
+
e.value = n.shiftKey ? rt(e.value) : tt(e.value);
|
|
2223
2220
|
break;
|
|
2224
2221
|
case "Home":
|
|
2225
|
-
e.value = n.shiftKey ?
|
|
2222
|
+
e.value = n.shiftKey ? st(e.value) : at(e.value, t);
|
|
2226
2223
|
break;
|
|
2227
2224
|
case "End":
|
|
2228
|
-
e.value = n.shiftKey ?
|
|
2225
|
+
e.value = n.shiftKey ? ct(e.value) : ot(e.value, t);
|
|
2229
2226
|
break;
|
|
2230
2227
|
default: break;
|
|
2231
2228
|
}
|
|
2232
|
-
} }),
|
|
2229
|
+
} }), fi = [
|
|
2233
2230
|
"aria-pressed",
|
|
2234
2231
|
"aria-disabled",
|
|
2235
2232
|
"aria-current",
|
|
2236
2233
|
"tabindex"
|
|
2237
|
-
],
|
|
2234
|
+
], pi = /* @__PURE__ */ o({
|
|
2238
2235
|
__name: "CalendarTableCellButton",
|
|
2239
2236
|
props: {
|
|
2240
2237
|
date: {},
|
|
@@ -2243,30 +2240,30 @@ var Gr = J, Kr = (e, n, r) => t(() => {
|
|
|
2243
2240
|
},
|
|
2244
2241
|
emits: ["click"],
|
|
2245
2242
|
setup(e, { emit: n }) {
|
|
2246
|
-
let r = e, a = n, o =
|
|
2247
|
-
return
|
|
2243
|
+
let r = e, a = n, o = D("element"), { focusedDate: s, allowFocus: c } = l(ti), { onKeyDown: u } = di(s), d = t(() => kt(r.date, s.value));
|
|
2244
|
+
return en(d, async (e) => {
|
|
2248
2245
|
e && c.value && (await m(), o.value?.focus());
|
|
2249
|
-
}), (t, n) => (
|
|
2246
|
+
}), (t, n) => (y(), i("button", {
|
|
2250
2247
|
ref_key: "element",
|
|
2251
2248
|
ref: o,
|
|
2252
2249
|
"aria-pressed": e.selected,
|
|
2253
2250
|
"aria-disabled": e.disabled,
|
|
2254
|
-
"aria-current":
|
|
2251
|
+
"aria-current": w(kt)(e.date, /* @__PURE__ */ new Date()) ? "date" : void 0,
|
|
2255
2252
|
tabindex: d.value ? 0 : -1,
|
|
2256
2253
|
onFocus: n[0] ||= (t) => s.value = e.date,
|
|
2257
|
-
onKeydown: n[1] ||= (...e) =>
|
|
2254
|
+
onKeydown: n[1] ||= (...e) => w(u) && w(u)(...e),
|
|
2258
2255
|
onClick: n[2] ||= (e) => a("click", e)
|
|
2259
|
-
}, [
|
|
2256
|
+
}, [S(t.$slots, "default")], 40, fi));
|
|
2260
2257
|
}
|
|
2261
|
-
}),
|
|
2262
|
-
let n =
|
|
2258
|
+
}), X = Symbol("field"), Z = (e) => {
|
|
2259
|
+
let n = q(), { elements: r } = B("field-error", e), { elements: i } = B("field-description", e), a = (e) => e.filter((e) => e.id).map((e) => e.id), o = {
|
|
2263
2260
|
sharedIds: n,
|
|
2264
2261
|
hasErrors: t(() => r.value.length > 0),
|
|
2265
2262
|
errorIds: t(() => a(r.value)),
|
|
2266
2263
|
descriptionIds: t(() => a(i.value))
|
|
2267
2264
|
};
|
|
2268
|
-
return
|
|
2269
|
-
},
|
|
2265
|
+
return b(X, o), o;
|
|
2266
|
+
}, mi = Symbol("combobox-field"), Q = Symbol("listbox-field"), hi = Symbol("listbox-field-group"), gi = Symbol("standalone-listbox"), _i = /* @__PURE__ */ o({
|
|
2270
2267
|
__name: "ComboboxField",
|
|
2271
2268
|
props: /*@__PURE__*/ f({ multiselect: { type: Boolean } }, {
|
|
2272
2269
|
modelValue: { default: () => [] },
|
|
@@ -2274,8 +2271,8 @@ var Gr = J, Kr = (e, n, r) => t(() => {
|
|
|
2274
2271
|
}),
|
|
2275
2272
|
emits: ["update:modelValue"],
|
|
2276
2273
|
setup(e) {
|
|
2277
|
-
let n = e, r =
|
|
2278
|
-
return
|
|
2274
|
+
let n = e, r = E(e, "modelValue"), a = D("element"), { sharedIds: o } = Z(a), s = t(() => n.multiselect), c = x(""), l = x(!1), { optionsTracker: u, options: d, activeIndex: f, activeElementId: p, onClick: m, onBlur: h, onKeyDown: g, onOptionClick: _, onOptionMouseDown: v } = Cn(r, s, o, c, l);
|
|
2275
|
+
return b(Q, {
|
|
2279
2276
|
modelValue: r,
|
|
2280
2277
|
open: l,
|
|
2281
2278
|
activeIndex: f,
|
|
@@ -2287,71 +2284,67 @@ var Gr = J, Kr = (e, n, r) => t(() => {
|
|
|
2287
2284
|
onBlur: h,
|
|
2288
2285
|
onKeyDown: g,
|
|
2289
2286
|
onOptionClick: _,
|
|
2290
|
-
onOptionMouseDown: v
|
|
2291
|
-
|
|
2292
|
-
}), x(pi, { filter: c }), (e, t) => (b(), i("div", {
|
|
2287
|
+
onOptionMouseDown: v
|
|
2288
|
+
}), b(mi, { filter: c }), (e, t) => (y(), i("div", {
|
|
2293
2289
|
ref_key: "element",
|
|
2294
2290
|
ref: a
|
|
2295
|
-
}, [
|
|
2291
|
+
}, [S(e.$slots, "default")], 512));
|
|
2296
2292
|
}
|
|
2297
|
-
}),
|
|
2293
|
+
}), vi = [
|
|
2298
2294
|
"id",
|
|
2299
2295
|
"placeholder",
|
|
2300
2296
|
"aria-activedescendant",
|
|
2301
2297
|
"aria-controls",
|
|
2302
2298
|
"aria-expanded",
|
|
2303
2299
|
"aria-labelledby"
|
|
2304
|
-
],
|
|
2300
|
+
], yi = /* @__PURE__ */ o({
|
|
2305
2301
|
__name: "ComboboxInput",
|
|
2306
2302
|
props: {
|
|
2307
2303
|
placeholder: { default: void 0 },
|
|
2308
|
-
id: { default: () =>
|
|
2304
|
+
id: { default: () => T() }
|
|
2309
2305
|
},
|
|
2310
2306
|
setup(e) {
|
|
2311
|
-
let t = e, { sharedIds: n } = l(
|
|
2312
|
-
return
|
|
2307
|
+
let t = e, { sharedIds: n } = l(X), { open: r, activeElementId: a, onBlur: o, onKeyDown: s, onClick: c } = l(Q), { filter: d } = l(mi);
|
|
2308
|
+
return J(n, "input", () => t.id), (t, l) => ce((y(), i("input", {
|
|
2313
2309
|
id: e.id,
|
|
2314
2310
|
"onUpdate:modelValue": l[0] ||= (e) => u(d) ? d.value = e : null,
|
|
2315
2311
|
placeholder: e.placeholder,
|
|
2316
|
-
"aria-activedescendant":
|
|
2317
|
-
"aria-controls":
|
|
2318
|
-
"aria-expanded":
|
|
2319
|
-
"aria-labelledby": `${
|
|
2312
|
+
"aria-activedescendant": w(a),
|
|
2313
|
+
"aria-controls": w(n).get("listbox"),
|
|
2314
|
+
"aria-expanded": w(r),
|
|
2315
|
+
"aria-labelledby": `${w(n).get("label")} ${w(n).get("selection-list")}`,
|
|
2320
2316
|
"aria-autocomplete": "list",
|
|
2321
2317
|
"aria-haspopup": "listbox",
|
|
2322
2318
|
role: "combobox",
|
|
2323
2319
|
type: "text",
|
|
2324
|
-
onBlur: l[1] ||= (...e) =>
|
|
2325
|
-
onKeydown: l[2] ||= (...e) =>
|
|
2326
|
-
onClick: l[3] ||= (...e) =>
|
|
2327
|
-
}, null, 40,
|
|
2320
|
+
onBlur: l[1] ||= (...e) => w(o) && w(o)(...e),
|
|
2321
|
+
onKeydown: l[2] ||= (...e) => w(s) && w(s)(...e),
|
|
2322
|
+
onClick: l[3] ||= (...e) => w(c) && w(c)(...e)
|
|
2323
|
+
}, null, 40, vi)), [[oe, w(d)]]);
|
|
2328
2324
|
}
|
|
2329
|
-
}),
|
|
2325
|
+
}), bi = ["id"], xi = /* @__PURE__ */ o({
|
|
2330
2326
|
__name: "ComboboxSelectionList",
|
|
2331
|
-
props: { id: { default: () =>
|
|
2327
|
+
props: { id: { default: () => T() } },
|
|
2332
2328
|
setup(e) {
|
|
2333
|
-
let t = e, { sharedIds: n } = l(
|
|
2334
|
-
|
|
2335
|
-
let { multiselect: a } = l(
|
|
2336
|
-
return (t, n) =>
|
|
2329
|
+
let t = e, { sharedIds: n } = l(X);
|
|
2330
|
+
J(n, "selection-list", () => t.id);
|
|
2331
|
+
let { multiselect: a } = l(Q);
|
|
2332
|
+
return (t, n) => w(a) ? (y(), i("ul", {
|
|
2337
2333
|
key: 0,
|
|
2338
2334
|
id: e.id
|
|
2339
|
-
}, [
|
|
2335
|
+
}, [S(t.$slots, "default")], 8, bi)) : r("", !0);
|
|
2340
2336
|
}
|
|
2341
|
-
}),
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
}
|
|
2346
|
-
|
|
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({
|
|
2337
|
+
}), Si = /* @__PURE__ */ o({
|
|
2338
|
+
__name: "ComboboxSelectionListItem",
|
|
2339
|
+
setup(e) {
|
|
2340
|
+
return (e, t) => (y(), i("li", null, [S(e.$slots, "default")]));
|
|
2341
|
+
}
|
|
2342
|
+
}), Ci = "\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", wi = /* @__PURE__ */ o({
|
|
2350
2343
|
__name: "VisuallyHidden",
|
|
2351
2344
|
setup(e) {
|
|
2352
|
-
return (e, t) => (
|
|
2345
|
+
return (e, t) => (y(), i("div", { style: Ci }, [S(e.$slots, "default")]));
|
|
2353
2346
|
}
|
|
2354
|
-
}),
|
|
2347
|
+
}), Ti = /* @__PURE__ */ o({
|
|
2355
2348
|
__name: "CopyButton",
|
|
2356
2349
|
props: {
|
|
2357
2350
|
content: {},
|
|
@@ -2362,27 +2355,27 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2362
2355
|
},
|
|
2363
2356
|
emits: ["copy"],
|
|
2364
2357
|
setup(o) {
|
|
2365
|
-
let s =
|
|
2358
|
+
let s = x(!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) => {
|
|
2366
2359
|
c.content ? await navigator.clipboard.write(l.value) : await c.onCopy?.(e), s.value = !0, setTimeout(() => {
|
|
2367
2360
|
s.value = !1;
|
|
2368
2361
|
}, 4e3);
|
|
2369
2362
|
};
|
|
2370
|
-
return (t, c) => (
|
|
2363
|
+
return (t, c) => (y(), i(e, null, [o.preventAnnouncement ? r("", !0) : (y(), n(w(wi), {
|
|
2371
2364
|
key: 0,
|
|
2372
2365
|
"aria-live": "polite"
|
|
2373
2366
|
}, {
|
|
2374
|
-
default:
|
|
2367
|
+
default: k(() => [s.value ? S(t.$slots, "default", { isCopying: s.value }, void 0, void 0, 0) : r("", !0)]),
|
|
2375
2368
|
_: 3
|
|
2376
|
-
})), a(
|
|
2369
|
+
})), a(w(Y), p(t.$attrs, {
|
|
2377
2370
|
disabled: o.disabled,
|
|
2378
2371
|
"keyboard-shortcut": o.keyboardShortcut,
|
|
2379
2372
|
onClick: u
|
|
2380
2373
|
}), {
|
|
2381
|
-
default:
|
|
2374
|
+
default: k(() => [S(t.$slots, "default", { isCopying: s.value })]),
|
|
2382
2375
|
_: 3
|
|
2383
2376
|
}, 16, ["disabled", "keyboard-shortcut"])], 64));
|
|
2384
2377
|
}
|
|
2385
|
-
}),
|
|
2378
|
+
}), $ = Symbol("dialog"), Ei = /* @__PURE__ */ o({
|
|
2386
2379
|
__name: "Dialog",
|
|
2387
2380
|
props: /*@__PURE__*/ f({ modal: { type: [Boolean, String] } }, {
|
|
2388
2381
|
modelValue: {
|
|
@@ -2394,29 +2387,29 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2394
2387
|
emits: ["update:modelValue"],
|
|
2395
2388
|
setup(e) {
|
|
2396
2389
|
let n = e;
|
|
2397
|
-
return
|
|
2398
|
-
sharedIds:
|
|
2399
|
-
open:
|
|
2390
|
+
return b($, {
|
|
2391
|
+
sharedIds: q(),
|
|
2392
|
+
open: E(e, "modelValue"),
|
|
2400
2393
|
modal: t(() => n.modal)
|
|
2401
|
-
}), (e, t) => Object.keys(e.$attrs).length ? (
|
|
2394
|
+
}), (e, t) => Object.keys(e.$attrs).length ? (y(), i("div", h(p({ key: 0 }, e.$attrs)), [S(e.$slots, "default")], 16)) : S(e.$slots, "default", {}, void 0, void 0, 1);
|
|
2402
2395
|
}
|
|
2403
|
-
}),
|
|
2396
|
+
}), Di = /* @__PURE__ */ o({
|
|
2404
2397
|
__name: "DialogButton",
|
|
2405
2398
|
props: {
|
|
2406
2399
|
disabled: { type: [Boolean, String] },
|
|
2407
2400
|
keyboardShortcut: {}
|
|
2408
2401
|
},
|
|
2409
2402
|
setup(e) {
|
|
2410
|
-
let { sharedIds: t, open: r, modal: i } = l(
|
|
2411
|
-
return (a, o) => (
|
|
2403
|
+
let { sharedIds: t, open: r, modal: i } = l($);
|
|
2404
|
+
return (a, o) => (y(), n(w(Y), {
|
|
2412
2405
|
"aria-haspopup": "dialog",
|
|
2413
|
-
"aria-expanded":
|
|
2406
|
+
"aria-expanded": w(r),
|
|
2414
2407
|
disabled: e.disabled,
|
|
2415
2408
|
"keyboard-shortcut": e.keyboardShortcut,
|
|
2416
|
-
commandfor:
|
|
2417
|
-
command:
|
|
2409
|
+
commandfor: w(t).get("panel"),
|
|
2410
|
+
command: w(i) ? "show-modal" : "--show-non-modal"
|
|
2418
2411
|
}, {
|
|
2419
|
-
default:
|
|
2412
|
+
default: k(() => [S(a.$slots, "default")]),
|
|
2420
2413
|
_: 3
|
|
2421
2414
|
}, 8, [
|
|
2422
2415
|
"aria-expanded",
|
|
@@ -2426,21 +2419,21 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2426
2419
|
"command"
|
|
2427
2420
|
]));
|
|
2428
2421
|
}
|
|
2429
|
-
}),
|
|
2422
|
+
}), Oi = /* @__PURE__ */ o({
|
|
2430
2423
|
__name: "DialogCloseButton",
|
|
2431
2424
|
props: {
|
|
2432
2425
|
disabled: { type: [Boolean, String] },
|
|
2433
2426
|
keyboardShortcut: {}
|
|
2434
2427
|
},
|
|
2435
2428
|
setup(e) {
|
|
2436
|
-
let { sharedIds: t } = l(
|
|
2437
|
-
return (r, i) => (
|
|
2429
|
+
let { sharedIds: t } = l($);
|
|
2430
|
+
return (r, i) => (y(), n(w(Y), {
|
|
2438
2431
|
disabled: e.disabled,
|
|
2439
2432
|
"keyboard-shortcut": e.keyboardShortcut,
|
|
2440
|
-
commandfor:
|
|
2433
|
+
commandfor: w(t).get("panel"),
|
|
2441
2434
|
command: "close"
|
|
2442
2435
|
}, {
|
|
2443
|
-
default:
|
|
2436
|
+
default: k(() => [S(r.$slots, "default")]),
|
|
2444
2437
|
_: 3
|
|
2445
2438
|
}, 8, [
|
|
2446
2439
|
"disabled",
|
|
@@ -2448,59 +2441,59 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2448
2441
|
"commandfor"
|
|
2449
2442
|
]));
|
|
2450
2443
|
}
|
|
2451
|
-
}),
|
|
2444
|
+
}), ki = [
|
|
2452
2445
|
"id",
|
|
2453
2446
|
"role",
|
|
2454
2447
|
"aria-labelledby",
|
|
2455
2448
|
"aria-describedby",
|
|
2456
2449
|
"closedby"
|
|
2457
|
-
],
|
|
2450
|
+
], Ai = /* @__PURE__ */ o({
|
|
2458
2451
|
__name: "DialogPanel",
|
|
2459
2452
|
props: {
|
|
2460
2453
|
lightDismiss: { type: Boolean },
|
|
2461
|
-
id: { default: () =>
|
|
2454
|
+
id: { default: () => T() }
|
|
2462
2455
|
},
|
|
2463
2456
|
setup(e) {
|
|
2464
|
-
let t = e, n =
|
|
2465
|
-
|
|
2457
|
+
let t = e, n = D("element"), { sharedIds: r, open: a, modal: o } = l($);
|
|
2458
|
+
J(r, "panel", () => t.id);
|
|
2466
2459
|
let s = (e) => {
|
|
2467
2460
|
e.command === "--show-non-modal" && n.value?.show();
|
|
2468
2461
|
};
|
|
2469
|
-
return
|
|
2462
|
+
return O(a, (e) => {
|
|
2470
2463
|
n.value && (e ? o?.value ? n.value.showModal() : n.value.show() : n.value.close());
|
|
2471
|
-
}), (t, c) => (
|
|
2464
|
+
}), (t, c) => (y(), i("dialog", {
|
|
2472
2465
|
id: e.id,
|
|
2473
2466
|
ref_key: "element",
|
|
2474
2467
|
ref: n,
|
|
2475
|
-
role:
|
|
2476
|
-
"aria-labelledby":
|
|
2477
|
-
"aria-describedby":
|
|
2468
|
+
role: w(o) === "alert" ? "alertdialog" : void 0,
|
|
2469
|
+
"aria-labelledby": w(r).get("heading"),
|
|
2470
|
+
"aria-describedby": w(r).get("description"),
|
|
2478
2471
|
closedby: e.lightDismiss ? "any" : void 0,
|
|
2479
2472
|
onCommand: s,
|
|
2480
2473
|
onToggle: c[0] ||= (e) => a.value = e.newState === "open"
|
|
2481
|
-
}, [
|
|
2474
|
+
}, [S(t.$slots, "default")], 40, ki));
|
|
2482
2475
|
}
|
|
2483
|
-
}),
|
|
2476
|
+
}), ji = ["id"], Mi = /* @__PURE__ */ o({
|
|
2484
2477
|
__name: "DialogDescription",
|
|
2485
|
-
props: { id: { default: () =>
|
|
2478
|
+
props: { id: { default: () => T() } },
|
|
2486
2479
|
setup(e) {
|
|
2487
|
-
let t = e, { sharedIds: n } = l(
|
|
2488
|
-
return
|
|
2480
|
+
let t = e, { sharedIds: n } = l($);
|
|
2481
|
+
return J(n, "description", () => t.id), (t, n) => (y(), i("div", { id: e.id }, [S(t.$slots, "default")], 8, ji));
|
|
2489
2482
|
}
|
|
2490
|
-
}),
|
|
2483
|
+
}), Ni = /* @__PURE__ */ o({
|
|
2491
2484
|
__name: "DialogHeading",
|
|
2492
2485
|
props: {
|
|
2493
2486
|
level: { default: 1 },
|
|
2494
|
-
id: { default: () =>
|
|
2487
|
+
id: { default: () => T() }
|
|
2495
2488
|
},
|
|
2496
2489
|
setup(e) {
|
|
2497
|
-
let t = e, { sharedIds: r } = l(
|
|
2498
|
-
return
|
|
2499
|
-
default:
|
|
2490
|
+
let t = e, { sharedIds: r } = l($);
|
|
2491
|
+
return J(r, "heading", () => t.id), (t, r) => (y(), n(te(`h${e.level}`), { id: e.id }, {
|
|
2492
|
+
default: k(() => [S(t.$slots, "default")]),
|
|
2500
2493
|
_: 3
|
|
2501
2494
|
}, 8, ["id"]));
|
|
2502
2495
|
}
|
|
2503
|
-
}),
|
|
2496
|
+
}), Pi = Symbol("disclosure"), Fi = /* @__PURE__ */ o({
|
|
2504
2497
|
__name: "Disclosure",
|
|
2505
2498
|
props: /*@__PURE__*/ f({
|
|
2506
2499
|
disabled: { type: Boolean },
|
|
@@ -2514,9 +2507,9 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2514
2507
|
}),
|
|
2515
2508
|
emits: ["update:modelValue"],
|
|
2516
2509
|
setup(e) {
|
|
2517
|
-
let n =
|
|
2518
|
-
return
|
|
2519
|
-
sharedIds:
|
|
2510
|
+
let n = E(e, "modelValue"), r = e;
|
|
2511
|
+
return b(Pi, {
|
|
2512
|
+
sharedIds: q(),
|
|
2520
2513
|
disabled: t(() => r.disabled),
|
|
2521
2514
|
popover: t(() => r.popover),
|
|
2522
2515
|
open: t({
|
|
@@ -2527,27 +2520,27 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2527
2520
|
n.value = e;
|
|
2528
2521
|
}
|
|
2529
2522
|
})
|
|
2530
|
-
}), (e, t) => Object.keys(e.$attrs).length ? (
|
|
2523
|
+
}), (e, t) => Object.keys(e.$attrs).length ? (y(), i("div", h(p({ key: 0 }, e.$attrs)), [S(e.$slots, "default")], 16)) : S(e.$slots, "default", {}, void 0, void 0, 1);
|
|
2531
2524
|
}
|
|
2532
|
-
}),
|
|
2525
|
+
}), Ii = /* @__PURE__ */ o({
|
|
2533
2526
|
__name: "DisclosureButton",
|
|
2534
2527
|
props: {
|
|
2535
2528
|
disabled: { type: [Boolean, String] },
|
|
2536
2529
|
keyboardShortcut: {}
|
|
2537
2530
|
},
|
|
2538
2531
|
setup(e) {
|
|
2539
|
-
let { sharedIds: i, open: a, disabled: o, popover: s } = l(
|
|
2532
|
+
let { sharedIds: i, open: a, disabled: o, popover: s } = l(Pi), c = t(() => ({
|
|
2540
2533
|
command: s.value ? "toggle-popover" : "--toggle-disclosure",
|
|
2541
2534
|
commandfor: i.get("panel")
|
|
2542
2535
|
}));
|
|
2543
|
-
return (t, s) =>
|
|
2536
|
+
return (t, s) => w(o) ? r("", !0) : (y(), n(w(Y), p({
|
|
2544
2537
|
key: 0,
|
|
2545
|
-
"aria-expanded":
|
|
2546
|
-
"aria-controls":
|
|
2538
|
+
"aria-expanded": w(a),
|
|
2539
|
+
"aria-controls": w(i).get("panel"),
|
|
2547
2540
|
disabled: e.disabled,
|
|
2548
2541
|
"keyboard-shortcut": e.keyboardShortcut
|
|
2549
2542
|
}, c.value), {
|
|
2550
|
-
default:
|
|
2543
|
+
default: k(() => [S(t.$slots, "default")]),
|
|
2551
2544
|
_: 3
|
|
2552
2545
|
}, 16, [
|
|
2553
2546
|
"aria-expanded",
|
|
@@ -2556,143 +2549,143 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2556
2549
|
"keyboard-shortcut"
|
|
2557
2550
|
]));
|
|
2558
2551
|
}
|
|
2559
|
-
}),
|
|
2552
|
+
}), Li = x(0), Ri = {
|
|
2560
2553
|
beforeMount(e, { value: t }) {
|
|
2561
|
-
let n = `a-l-${
|
|
2562
|
-
e.setAttribute("data-labelledby-id", n), t && (
|
|
2554
|
+
let n = `a-l-${Li.value++}`;
|
|
2555
|
+
e.setAttribute("data-labelledby-id", n), t && (zi(t, n), e.setAttribute("aria-labelledby", n));
|
|
2563
2556
|
},
|
|
2564
2557
|
updated(e, { value: t, oldValue: n }) {
|
|
2565
2558
|
if (t === n) return;
|
|
2566
2559
|
let r = e.getAttribute("data-labelledby-id");
|
|
2567
2560
|
if (r) {
|
|
2568
2561
|
let n = document.getElementById(r);
|
|
2569
|
-
t ? n ? n.innerText = t : (
|
|
2562
|
+
t ? n ? n.innerText = t : (zi(t, r), e.setAttribute("aria-labelledby", r)) : (e.removeAttribute("aria-labelledby"), n?.remove());
|
|
2570
2563
|
}
|
|
2571
2564
|
},
|
|
2572
2565
|
beforeUnmount(e) {
|
|
2573
2566
|
let t = e.getAttribute("data-labelledby-id");
|
|
2574
2567
|
t && (e.removeAttribute("aria-labelledby"), document.getElementById(t)?.remove());
|
|
2575
2568
|
}
|
|
2576
|
-
},
|
|
2569
|
+
}, zi = (e, t) => {
|
|
2577
2570
|
let n = document.createElement("span");
|
|
2578
2571
|
return n.innerText = e, n.id = t, n.hidden = !0, document.documentElement.appendChild(n), n;
|
|
2579
|
-
},
|
|
2572
|
+
}, Bi = {
|
|
2580
2573
|
beforeMount(e, { value: t }, { transition: n }) {
|
|
2581
|
-
n && t === !1 ? n.beforeEnter(e) :
|
|
2574
|
+
n && t === !1 ? n.beforeEnter(e) : Vi(e, t);
|
|
2582
2575
|
},
|
|
2583
2576
|
mounted(e, { value: t }, { transition: n }) {
|
|
2584
2577
|
n && t === !1 && n.enter(e);
|
|
2585
2578
|
},
|
|
2586
2579
|
updated(e, { value: t, oldValue: n }, { transition: r }) {
|
|
2587
|
-
t !== n && (r ? t === !1 ? (r.beforeEnter(e),
|
|
2580
|
+
t !== n && (r ? t === !1 ? (r.beforeEnter(e), Vi(e, t), r.enter(e)) : r.leave(e, () => Vi(e, t)) : Vi(e, t));
|
|
2588
2581
|
},
|
|
2589
2582
|
beforeUnmount(e, { value: t }) {
|
|
2590
|
-
|
|
2583
|
+
Vi(e, t);
|
|
2591
2584
|
}
|
|
2592
|
-
},
|
|
2585
|
+
}, Vi = (e, t) => {
|
|
2593
2586
|
t ? e.setAttribute("hidden", `${t}`) : e.removeAttribute("hidden");
|
|
2594
|
-
},
|
|
2587
|
+
}, Hi = /* @__PURE__ */ o({
|
|
2595
2588
|
__name: "DisclosurePanel",
|
|
2596
2589
|
props: {
|
|
2597
2590
|
hideFromSearch: { type: Boolean },
|
|
2598
2591
|
as: { default: "div" },
|
|
2599
|
-
id: { default: () =>
|
|
2592
|
+
id: { default: () => T() }
|
|
2600
2593
|
},
|
|
2601
2594
|
setup(e) {
|
|
2602
|
-
let r = e, { sharedIds: i, popover: a, open: o } = l(
|
|
2603
|
-
|
|
2595
|
+
let r = e, { sharedIds: i, popover: a, open: o } = l(Pi);
|
|
2596
|
+
J(i, "panel", () => r.id);
|
|
2604
2597
|
let s = t(() => o.value ? void 0 : r.hideFromSearch ? !0 : "until-found"), c = (e) => {
|
|
2605
2598
|
o.value = e.newState === "open";
|
|
2606
2599
|
}, u = (e) => {
|
|
2607
2600
|
e.command === "--toggle-disclosure" && (o.value = !o.value);
|
|
2608
2601
|
};
|
|
2609
|
-
return (t, r) =>
|
|
2602
|
+
return (t, r) => ce((y(), n(te(e.as), {
|
|
2610
2603
|
id: e.id,
|
|
2611
2604
|
ref: "element",
|
|
2612
|
-
popover:
|
|
2605
|
+
popover: w(a) ? "auto" : void 0,
|
|
2613
2606
|
onBeforematch: r[0] ||= (e) => o.value = !0,
|
|
2614
2607
|
onToggle: c,
|
|
2615
2608
|
onCommand: u
|
|
2616
2609
|
}, {
|
|
2617
|
-
default:
|
|
2610
|
+
default: k(() => [S(t.$slots, "default")]),
|
|
2618
2611
|
_: 3
|
|
2619
|
-
}, 40, ["id", "popover"])), [[
|
|
2612
|
+
}, 40, ["id", "popover"])), [[w(Bi), s.value]]);
|
|
2620
2613
|
}
|
|
2621
|
-
}),
|
|
2614
|
+
}), Ui = ["href"], Wi = /* @__PURE__ */ o({
|
|
2622
2615
|
__name: "Link",
|
|
2623
2616
|
props: { url: {} },
|
|
2624
2617
|
setup(e) {
|
|
2625
|
-
let t =
|
|
2626
|
-
return
|
|
2618
|
+
let t = D("element"), { onKeyDown: n, navigateTo: r } = Xr(Zr);
|
|
2619
|
+
return V("toolbar", t), (a, o) => (y(), i("a", {
|
|
2627
2620
|
ref_key: "element",
|
|
2628
2621
|
ref: t,
|
|
2629
2622
|
href: e.url,
|
|
2630
|
-
onKeydown: o[0] ||= (...e) =>
|
|
2631
|
-
onClick: o[1] ||= (e) =>
|
|
2632
|
-
}, [
|
|
2623
|
+
onKeydown: o[0] ||= (...e) => w(n) && w(n)(...e),
|
|
2624
|
+
onClick: o[1] ||= (e) => w(r)?.(t.value)
|
|
2625
|
+
}, [S(a.$slots, "default")], 40, Ui));
|
|
2633
2626
|
}
|
|
2634
|
-
}),
|
|
2627
|
+
}), Gi = /* @__PURE__ */ o({
|
|
2635
2628
|
__name: "DownloadLink",
|
|
2636
2629
|
props: {
|
|
2637
2630
|
url: {},
|
|
2638
2631
|
filename: {}
|
|
2639
2632
|
},
|
|
2640
2633
|
setup(e) {
|
|
2641
|
-
return (t, r) => (
|
|
2634
|
+
return (t, r) => (y(), n(w(Wi), {
|
|
2642
2635
|
url: e.url,
|
|
2643
2636
|
download: e.filename || !0
|
|
2644
2637
|
}, {
|
|
2645
|
-
default:
|
|
2638
|
+
default: k(() => [S(t.$slots, "default")]),
|
|
2646
2639
|
_: 3
|
|
2647
2640
|
}, 8, ["url", "download"]));
|
|
2648
2641
|
}
|
|
2649
|
-
}),
|
|
2642
|
+
}), Ki = ["id"], qi = /* @__PURE__ */ o({
|
|
2650
2643
|
__name: "FieldDescription",
|
|
2651
|
-
props: { id: { default: () =>
|
|
2644
|
+
props: { id: { default: () => T() } },
|
|
2652
2645
|
setup(e) {
|
|
2653
|
-
let t =
|
|
2654
|
-
return
|
|
2646
|
+
let t = D("element");
|
|
2647
|
+
return V("field-description", t), (n, r) => (y(), i("div", {
|
|
2655
2648
|
id: e.id,
|
|
2656
2649
|
ref_key: "element",
|
|
2657
2650
|
ref: t
|
|
2658
|
-
}, [
|
|
2651
|
+
}, [S(n.$slots, "default")], 8, Ki));
|
|
2659
2652
|
}
|
|
2660
|
-
}),
|
|
2653
|
+
}), Ji = ["id"], Yi = /* @__PURE__ */ o({
|
|
2661
2654
|
__name: "FieldError",
|
|
2662
|
-
props: { id: { default: () =>
|
|
2655
|
+
props: { id: { default: () => T() } },
|
|
2663
2656
|
setup(e) {
|
|
2664
|
-
let t =
|
|
2665
|
-
return
|
|
2657
|
+
let t = D("element");
|
|
2658
|
+
return V("field-error", t), (n, r) => (y(), i("div", {
|
|
2666
2659
|
id: e.id,
|
|
2667
2660
|
ref_key: "element",
|
|
2668
2661
|
ref: t
|
|
2669
|
-
}, [
|
|
2662
|
+
}, [S(n.$slots, "default")], 8, Ji));
|
|
2670
2663
|
}
|
|
2671
|
-
}),
|
|
2664
|
+
}), Xi = ["id", "for"], Zi = /* @__PURE__ */ o({
|
|
2672
2665
|
__name: "FieldLabel",
|
|
2673
|
-
props: { id: { default: () =>
|
|
2666
|
+
props: { id: { default: () => T() } },
|
|
2674
2667
|
setup(e) {
|
|
2675
|
-
let t = e, { sharedIds: n } = l(
|
|
2676
|
-
|
|
2668
|
+
let t = e, { sharedIds: n } = l(X);
|
|
2669
|
+
J(n, "label", () => t.id);
|
|
2677
2670
|
let r = () => {
|
|
2678
2671
|
document.getElementById(n.get("input"))?.focus();
|
|
2679
2672
|
};
|
|
2680
|
-
return (t, a) => (
|
|
2673
|
+
return (t, a) => (y(), i("label", {
|
|
2681
2674
|
id: e.id,
|
|
2682
|
-
for:
|
|
2675
|
+
for: w(n).get("input"),
|
|
2683
2676
|
onClick: r
|
|
2684
|
-
}, [
|
|
2677
|
+
}, [S(t.$slots, "default")], 8, Xi));
|
|
2685
2678
|
}
|
|
2686
|
-
}),
|
|
2687
|
-
let n = t(() => e.value?.$el), r = l(
|
|
2688
|
-
|
|
2689
|
-
let { onKeyDown: i } = l(
|
|
2679
|
+
}), Qi = (e) => {
|
|
2680
|
+
let n = t(() => e.value?.$el), r = l(ea);
|
|
2681
|
+
V("table", n), V(r, n);
|
|
2682
|
+
let { onKeyDown: i } = l(ta);
|
|
2690
2683
|
return {
|
|
2691
2684
|
onKeyDown: i,
|
|
2692
2685
|
rowId: r
|
|
2693
2686
|
};
|
|
2694
|
-
},
|
|
2695
|
-
let { navigate: t, navigateByPage: n, navigateCustom: r, navigateTo: i } =
|
|
2687
|
+
}, $i = (e) => {
|
|
2688
|
+
let { navigate: t, navigateByPage: n, navigateCustom: r, navigateTo: i } = Ut(e);
|
|
2696
2689
|
return { onKeyDown(a, o) {
|
|
2697
2690
|
let s = [
|
|
2698
2691
|
"ArrowLeft",
|
|
@@ -2704,7 +2697,7 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2704
2697
|
"Home",
|
|
2705
2698
|
"End"
|
|
2706
2699
|
];
|
|
2707
|
-
if (!
|
|
2700
|
+
if (!Mt(o.target)) return;
|
|
2708
2701
|
s.includes(o.key) && o.preventDefault();
|
|
2709
2702
|
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
2703
|
switch (o.key) {
|
|
@@ -2719,66 +2712,66 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2719
2712
|
case "PageUp": return n(-9, c.length);
|
|
2720
2713
|
case "PageDown": return n(9, c.length);
|
|
2721
2714
|
case "Home":
|
|
2722
|
-
o.ctrlKey ? t(
|
|
2715
|
+
o.ctrlKey ? t(z.Start) : l && i(l);
|
|
2723
2716
|
break;
|
|
2724
2717
|
case "End":
|
|
2725
|
-
o.ctrlKey ? t(
|
|
2718
|
+
o.ctrlKey ? t(z.End) : u && i(u);
|
|
2726
2719
|
break;
|
|
2727
2720
|
default: break;
|
|
2728
2721
|
}
|
|
2729
2722
|
} };
|
|
2730
|
-
},
|
|
2723
|
+
}, ea = Symbol("row"), ta = Symbol("grid"), na = /* @__PURE__ */ o({
|
|
2731
2724
|
__name: "GridTable",
|
|
2732
2725
|
setup(e) {
|
|
2733
|
-
let r =
|
|
2734
|
-
return
|
|
2726
|
+
let r = D("element"), i = t(() => r.value?.$el), { getElements: a } = B("table", i), { onKeyDown: o } = $i(a);
|
|
2727
|
+
return b(ta, { onKeyDown: o }), (e, t) => (y(), n(w(ni), {
|
|
2735
2728
|
ref_key: "element",
|
|
2736
2729
|
ref: i,
|
|
2737
2730
|
role: "grid"
|
|
2738
2731
|
}, {
|
|
2739
|
-
default:
|
|
2732
|
+
default: k(() => [S(e.$slots, "default")]),
|
|
2740
2733
|
_: 3
|
|
2741
2734
|
}, 512));
|
|
2742
2735
|
}
|
|
2743
|
-
}),
|
|
2736
|
+
}), ra = /* @__PURE__ */ o({
|
|
2744
2737
|
__name: "GridTableCell",
|
|
2745
2738
|
props: { heading: { type: Boolean } },
|
|
2746
2739
|
setup(e) {
|
|
2747
|
-
let { rowId: t, onKeyDown: r } =
|
|
2748
|
-
return (i, a) => (
|
|
2740
|
+
let { rowId: t, onKeyDown: r } = Qi(D("element"));
|
|
2741
|
+
return (i, a) => (y(), n(w(ii), {
|
|
2749
2742
|
ref: "element",
|
|
2750
2743
|
heading: e.heading,
|
|
2751
2744
|
role: "gridcell",
|
|
2752
|
-
onKeydown: a[0] ||= (e) =>
|
|
2745
|
+
onKeydown: a[0] ||= (e) => w(r)(w(t), e)
|
|
2753
2746
|
}, {
|
|
2754
|
-
default:
|
|
2747
|
+
default: k(() => [S(i.$slots, "default")]),
|
|
2755
2748
|
_: 3
|
|
2756
2749
|
}, 8, ["heading"]));
|
|
2757
2750
|
}
|
|
2758
|
-
}),
|
|
2751
|
+
}), ia = /* @__PURE__ */ o({
|
|
2759
2752
|
__name: "GridTableHeadingCell",
|
|
2760
2753
|
props: { sorted: {} },
|
|
2761
2754
|
setup(e) {
|
|
2762
|
-
let { rowId: t, onKeyDown: r } =
|
|
2763
|
-
return (i, a) => (
|
|
2755
|
+
let { rowId: t, onKeyDown: r } = Qi(D("element"));
|
|
2756
|
+
return (i, a) => (y(), n(w(si), {
|
|
2764
2757
|
ref: "element",
|
|
2765
2758
|
role: "gridcell",
|
|
2766
2759
|
sorted: e.sorted,
|
|
2767
|
-
onKeydown: a[0] ||= (e) =>
|
|
2760
|
+
onKeydown: a[0] ||= (e) => w(r)(w(t), e)
|
|
2768
2761
|
}, {
|
|
2769
|
-
default:
|
|
2762
|
+
default: k(() => [S(i.$slots, "default")]),
|
|
2770
2763
|
_: 3
|
|
2771
2764
|
}, 8, ["sorted"]));
|
|
2772
2765
|
}
|
|
2773
|
-
}),
|
|
2766
|
+
}), aa = /* @__PURE__ */ o({
|
|
2774
2767
|
__name: "GridTableRow",
|
|
2775
2768
|
setup(e) {
|
|
2776
|
-
return
|
|
2777
|
-
default:
|
|
2769
|
+
return b(ea, T()), (e, t) => (y(), n(w(ci), null, {
|
|
2770
|
+
default: k(() => [S(e.$slots, "default")]),
|
|
2778
2771
|
_: 3
|
|
2779
2772
|
}));
|
|
2780
2773
|
}
|
|
2781
|
-
}),
|
|
2774
|
+
}), oa = /* @__PURE__ */ o({
|
|
2782
2775
|
__name: "ListboxField",
|
|
2783
2776
|
props: /*@__PURE__*/ f({ multiselect: { type: Boolean } }, {
|
|
2784
2777
|
modelValue: { default: () => [] },
|
|
@@ -2786,8 +2779,8 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2786
2779
|
}),
|
|
2787
2780
|
emits: ["update:modelValue"],
|
|
2788
2781
|
setup(e) {
|
|
2789
|
-
let n = e, r =
|
|
2790
|
-
return
|
|
2782
|
+
let n = e, r = E(e, "modelValue"), a = D("element"), { sharedIds: o } = Z(a), s = t(() => n.multiselect), { optionsTracker: c, options: l, activeIndex: u, activeElementId: d, onClick: f, onBlur: p, onKeyDown: m, onOptionClick: h, onOptionMouseDown: g } = Cn(r, s, o);
|
|
2783
|
+
return b(Q, {
|
|
2791
2784
|
modelValue: r,
|
|
2792
2785
|
activeIndex: u,
|
|
2793
2786
|
optionsTracker: c,
|
|
@@ -2798,14 +2791,13 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2798
2791
|
onBlur: p,
|
|
2799
2792
|
onKeyDown: m,
|
|
2800
2793
|
onOptionClick: h,
|
|
2801
|
-
onOptionMouseDown: g
|
|
2802
|
-
|
|
2803
|
-
}), x(hi, !0), (e, t) => (b(), i("div", {
|
|
2794
|
+
onOptionMouseDown: g
|
|
2795
|
+
}), b(gi, !0), (e, t) => (y(), i("div", {
|
|
2804
2796
|
ref_key: "element",
|
|
2805
2797
|
ref: a
|
|
2806
|
-
}, [
|
|
2798
|
+
}, [S(e.$slots, "default")], 512));
|
|
2807
2799
|
}
|
|
2808
|
-
}),
|
|
2800
|
+
}), sa = [
|
|
2809
2801
|
"id",
|
|
2810
2802
|
"aria-multiselectable",
|
|
2811
2803
|
"aria-labelledby",
|
|
@@ -2813,91 +2805,90 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2813
2805
|
"aria-invalid",
|
|
2814
2806
|
"aria-activedescendant",
|
|
2815
2807
|
"tabindex"
|
|
2816
|
-
],
|
|
2808
|
+
], ca = /* @__PURE__ */ o({
|
|
2817
2809
|
__name: "ListboxInput",
|
|
2818
|
-
props: { id: { default: () =>
|
|
2810
|
+
props: { id: { default: () => T() } },
|
|
2819
2811
|
setup(e) {
|
|
2820
|
-
let t = e, { sharedIds: n, hasErrors: a, errorIds: o, descriptionIds: s } = l(
|
|
2821
|
-
|
|
2822
|
-
let { open: c, multiselect: u, activeElementId: d, onKeyDown: f } = l(
|
|
2823
|
-
return (t, l) =>
|
|
2812
|
+
let t = e, { sharedIds: n, hasErrors: a, errorIds: o, descriptionIds: s } = l(X);
|
|
2813
|
+
J(n, "listbox", () => t.id);
|
|
2814
|
+
let { open: c, multiselect: u, activeElementId: d, onKeyDown: f } = l(Q), p = l(gi, !1);
|
|
2815
|
+
return (t, l) => w(c) === void 0 || w(c) ? (y(), i("div", {
|
|
2824
2816
|
key: 0,
|
|
2825
2817
|
id: e.id,
|
|
2826
|
-
"aria-multiselectable":
|
|
2827
|
-
"aria-labelledby":
|
|
2828
|
-
"aria-describedby": [
|
|
2829
|
-
"aria-invalid":
|
|
2830
|
-
"aria-activedescendant":
|
|
2831
|
-
tabindex:
|
|
2818
|
+
"aria-multiselectable": w(u),
|
|
2819
|
+
"aria-labelledby": w(n).get("label"),
|
|
2820
|
+
"aria-describedby": [w(o), w(s)].flat().join(" "),
|
|
2821
|
+
"aria-invalid": w(a),
|
|
2822
|
+
"aria-activedescendant": w(d),
|
|
2823
|
+
tabindex: w(p) ? 0 : -1,
|
|
2832
2824
|
role: "listbox",
|
|
2833
|
-
onKeydown: l[0] ||= (e) =>
|
|
2834
|
-
}, [
|
|
2825
|
+
onKeydown: l[0] ||= (e) => w(p) ? w(f)(e) : void 0
|
|
2826
|
+
}, [S(t.$slots, "default")], 40, sa)) : r("", !0);
|
|
2835
2827
|
}
|
|
2836
|
-
}),
|
|
2828
|
+
}), la = ["aria-labelledby"], ua = /* @__PURE__ */ o({
|
|
2837
2829
|
__name: "ListboxGroup",
|
|
2838
2830
|
setup(e) {
|
|
2839
|
-
let t =
|
|
2840
|
-
return
|
|
2831
|
+
let t = q();
|
|
2832
|
+
return b(hi, t), (e, n) => (y(), i("div", {
|
|
2841
2833
|
role: "group",
|
|
2842
|
-
"aria-labelledby":
|
|
2843
|
-
}, [
|
|
2834
|
+
"aria-labelledby": w(t).get("group-label")
|
|
2835
|
+
}, [S(e.$slots, "default")], 8, la));
|
|
2844
2836
|
}
|
|
2845
|
-
}),
|
|
2837
|
+
}), da = ["id"], fa = /* @__PURE__ */ o({
|
|
2846
2838
|
__name: "ListboxGroupLabel",
|
|
2847
|
-
props: { id: { default: () =>
|
|
2839
|
+
props: { id: { default: () => T() } },
|
|
2848
2840
|
setup(e) {
|
|
2849
2841
|
let t = e;
|
|
2850
|
-
return
|
|
2842
|
+
return J(l(hi), "group-label", () => t.id), (t, n) => (y(), i("div", { id: e.id }, [S(t.$slots, "default")], 8, da));
|
|
2851
2843
|
}
|
|
2852
|
-
}),
|
|
2844
|
+
}), pa = [
|
|
2853
2845
|
"id",
|
|
2854
2846
|
"data-active",
|
|
2855
2847
|
"data-value",
|
|
2856
2848
|
"aria-selected",
|
|
2857
2849
|
"aria-disabled"
|
|
2858
|
-
],
|
|
2850
|
+
], ma = /* @__PURE__ */ o({
|
|
2859
2851
|
__name: "ListboxOption",
|
|
2860
2852
|
props: {
|
|
2861
2853
|
label: {},
|
|
2862
2854
|
value: {},
|
|
2863
2855
|
disabled: { type: Boolean },
|
|
2864
|
-
id: { default: () =>
|
|
2856
|
+
id: { default: () => T() }
|
|
2865
2857
|
},
|
|
2866
2858
|
setup(e) {
|
|
2867
|
-
let n = e, a =
|
|
2868
|
-
|
|
2869
|
-
let { modelValue: c, options: u, optionsTracker: d, activeIndex: f, onOptionClick: p, onOptionMouseDown: m
|
|
2859
|
+
let n = e, a = T(), o = D("element"), { sharedIds: s } = l(X);
|
|
2860
|
+
J(s, n.value, () => n.id);
|
|
2861
|
+
let { modelValue: c, options: u, optionsTracker: d, activeIndex: f, onOptionClick: p, onOptionMouseDown: m } = l(Q), h = t(() => u.value.findIndex((e) => e.value === n.value)), v = t(() => ({
|
|
2870
2862
|
id: a,
|
|
2871
2863
|
value: n.value,
|
|
2872
2864
|
label: n.label,
|
|
2873
2865
|
disabled: n.disabled
|
|
2874
2866
|
}));
|
|
2875
|
-
return
|
|
2876
|
-
if (e !==
|
|
2867
|
+
return O(f, (e) => {
|
|
2868
|
+
if (e !== h.value) return;
|
|
2877
2869
|
let t = document.getElementById(s.get("listbox"));
|
|
2878
|
-
|
|
2870
|
+
Lt(t) && Rt(o.value, t);
|
|
2879
2871
|
}), g(() => {
|
|
2880
|
-
d.value = [...d.value,
|
|
2872
|
+
d.value = [...d.value, v.value];
|
|
2881
2873
|
}), _(() => {
|
|
2882
2874
|
d.value = d.value.filter((e) => e.id !== a);
|
|
2883
|
-
}),
|
|
2875
|
+
}), $t(v, (e) => {
|
|
2884
2876
|
d.value = d.value.map((t) => t.id === a ? e : t);
|
|
2885
|
-
}), (t, n) =>
|
|
2877
|
+
}), (t, n) => h.value > -1 ? (y(), i("div", {
|
|
2886
2878
|
key: 0,
|
|
2887
2879
|
id: e.id,
|
|
2888
2880
|
ref_key: "element",
|
|
2889
2881
|
ref: o,
|
|
2890
|
-
"data-active":
|
|
2882
|
+
"data-active": w(f) === h.value,
|
|
2891
2883
|
"data-value": e.value,
|
|
2892
|
-
"aria-selected":
|
|
2884
|
+
"aria-selected": w(c).some((t) => t === e.value),
|
|
2893
2885
|
"aria-disabled": e.disabled,
|
|
2894
2886
|
role: "option",
|
|
2895
|
-
onClick: n[0] ||= (e) =>
|
|
2896
|
-
onMousedown: n[1] ||= (...e) =>
|
|
2897
|
-
|
|
2898
|
-
}, [C(t.$slots, "default")], 40, ga)) : r("", !0);
|
|
2887
|
+
onClick: n[0] ||= (e) => w(p)(h.value),
|
|
2888
|
+
onMousedown: n[1] ||= (...e) => w(m) && w(m)(...e)
|
|
2889
|
+
}, [S(t.$slots, "default")], 40, pa)) : r("", !0);
|
|
2899
2890
|
}
|
|
2900
|
-
}),
|
|
2891
|
+
}), ha = /* @__PURE__ */ o({
|
|
2901
2892
|
__name: "SelectField",
|
|
2902
2893
|
props: /*@__PURE__*/ f({ multiselect: { type: Boolean } }, {
|
|
2903
2894
|
modelValue: { default: () => [] },
|
|
@@ -2905,8 +2896,8 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2905
2896
|
}),
|
|
2906
2897
|
emits: ["update:modelValue"],
|
|
2907
2898
|
setup(e) {
|
|
2908
|
-
let n = e, r =
|
|
2909
|
-
return
|
|
2899
|
+
let n = e, r = E(e, "modelValue"), a = D("element"), { sharedIds: o } = Z(a), s = t(() => n.multiselect), c = x(!1), { options: l, optionsTracker: u, activeIndex: d, activeElementId: f, onClick: p, onBlur: m, onKeyDown: h, onOptionClick: g, onOptionMouseDown: _ } = Cn(r, s, o, void 0, c);
|
|
2900
|
+
return b(Q, {
|
|
2910
2901
|
modelValue: r,
|
|
2911
2902
|
open: c,
|
|
2912
2903
|
activeIndex: d,
|
|
@@ -2918,46 +2909,45 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2918
2909
|
onBlur: m,
|
|
2919
2910
|
onKeyDown: h,
|
|
2920
2911
|
onOptionClick: g,
|
|
2921
|
-
onOptionMouseDown: _
|
|
2922
|
-
|
|
2923
|
-
}), (e, t) => (b(), i("div", {
|
|
2912
|
+
onOptionMouseDown: _
|
|
2913
|
+
}), (e, t) => (y(), i("div", {
|
|
2924
2914
|
ref_key: "element",
|
|
2925
2915
|
ref: a
|
|
2926
|
-
}, [
|
|
2916
|
+
}, [S(e.$slots, "default")], 512));
|
|
2927
2917
|
}
|
|
2928
|
-
}),
|
|
2918
|
+
}), ga = [
|
|
2929
2919
|
"id",
|
|
2930
2920
|
"aria-activedescendant",
|
|
2931
2921
|
"aria-controls",
|
|
2932
2922
|
"aria-expanded",
|
|
2933
2923
|
"aria-labelledby"
|
|
2934
|
-
],
|
|
2924
|
+
], _a = /* @__PURE__ */ o({
|
|
2935
2925
|
__name: "SelectButton",
|
|
2936
|
-
props: { id: { default: () =>
|
|
2926
|
+
props: { id: { default: () => T() } },
|
|
2937
2927
|
setup(e) {
|
|
2938
|
-
let t = e, { sharedIds: n } = l(
|
|
2939
|
-
return
|
|
2928
|
+
let t = e, { sharedIds: n } = l(X), { open: r, activeElementId: a, onBlur: o, onKeyDown: s, onClick: c } = l(Q);
|
|
2929
|
+
return J(n, "input", () => t.id), (t, l) => (y(), i("button", {
|
|
2940
2930
|
id: e.id,
|
|
2941
|
-
"aria-activedescendant":
|
|
2942
|
-
"aria-controls":
|
|
2943
|
-
"aria-expanded":
|
|
2944
|
-
"aria-labelledby":
|
|
2931
|
+
"aria-activedescendant": w(a),
|
|
2932
|
+
"aria-controls": w(n).get("listbox"),
|
|
2933
|
+
"aria-expanded": w(r),
|
|
2934
|
+
"aria-labelledby": w(n).get("label"),
|
|
2945
2935
|
"aria-autocomplete": "none",
|
|
2946
2936
|
"aria-haspopup": "listbox",
|
|
2947
2937
|
role: "combobox",
|
|
2948
2938
|
type: "button",
|
|
2949
|
-
onBlur: l[0] ||= (...e) =>
|
|
2950
|
-
onKeydown: l[1] ||= (...e) =>
|
|
2951
|
-
onClick: l[2] ||= (...e) =>
|
|
2952
|
-
}, [
|
|
2939
|
+
onBlur: l[0] ||= (...e) => w(o) && w(o)(...e),
|
|
2940
|
+
onKeydown: l[1] ||= (...e) => w(s) && w(s)(...e),
|
|
2941
|
+
onClick: l[2] ||= (...e) => w(c) && w(c)(...e)
|
|
2942
|
+
}, [S(t.$slots, "default")], 40, ga));
|
|
2953
2943
|
}
|
|
2954
|
-
}),
|
|
2944
|
+
}), va = ["aria-orientation"], ya = /* @__PURE__ */ o({
|
|
2955
2945
|
__name: "Separator",
|
|
2956
2946
|
props: { orientation: { default: "horizontal" } },
|
|
2957
2947
|
setup(e) {
|
|
2958
|
-
return (t, n) => (
|
|
2948
|
+
return (t, n) => (y(), i("hr", { "aria-orientation": e.orientation }, null, 8, va));
|
|
2959
2949
|
}
|
|
2960
|
-
}),
|
|
2950
|
+
}), ba = Symbol("Switch-field"), xa = /* @__PURE__ */ o({
|
|
2961
2951
|
__name: "SwitchField",
|
|
2962
2952
|
props: {
|
|
2963
2953
|
modelValue: {
|
|
@@ -2968,38 +2958,38 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
2968
2958
|
},
|
|
2969
2959
|
emits: ["update:modelValue"],
|
|
2970
2960
|
setup(e) {
|
|
2971
|
-
let t =
|
|
2972
|
-
return
|
|
2961
|
+
let t = E(e, "modelValue"), n = D("element");
|
|
2962
|
+
return Z(n), b(ba, { modelValue: t }), (e, t) => (y(), i("div", {
|
|
2973
2963
|
ref_key: "element",
|
|
2974
2964
|
ref: n
|
|
2975
|
-
}, [
|
|
2965
|
+
}, [S(e.$slots, "default")], 512));
|
|
2976
2966
|
}
|
|
2977
|
-
}),
|
|
2967
|
+
}), Sa = { "aria-hidden": "true" }, Ca = /* @__PURE__ */ o({
|
|
2978
2968
|
__name: "SwitchFieldStateLabel",
|
|
2979
2969
|
setup(e) {
|
|
2980
|
-
return (e, t) => (
|
|
2970
|
+
return (e, t) => (y(), i("div", Sa, [S(e.$slots, "default")]));
|
|
2981
2971
|
}
|
|
2982
|
-
}),
|
|
2972
|
+
}), wa = /* @__PURE__ */ o({
|
|
2983
2973
|
__name: "SwitchFieldSwitchButton",
|
|
2984
2974
|
props: {
|
|
2985
|
-
id: { default: () =>
|
|
2975
|
+
id: { default: () => T() },
|
|
2986
2976
|
disabled: { type: [Boolean, String] },
|
|
2987
2977
|
keyboardShortcut: {}
|
|
2988
2978
|
},
|
|
2989
2979
|
setup(e) {
|
|
2990
|
-
let t = e, { modelValue: r } = l(
|
|
2991
|
-
return
|
|
2980
|
+
let t = e, { modelValue: r } = l(ba), { sharedIds: i, hasErrors: a, errorIds: o, descriptionIds: s } = l(X);
|
|
2981
|
+
return J(i, "switch-button", () => t.id), (t, c) => (y(), n(w(Y), {
|
|
2992
2982
|
id: e.id,
|
|
2993
|
-
"aria-checked":
|
|
2994
|
-
"aria-describedby": [
|
|
2995
|
-
"aria-invalid":
|
|
2996
|
-
"aria-labelledby":
|
|
2983
|
+
"aria-checked": w(r),
|
|
2984
|
+
"aria-describedby": [w(o), w(s)].flat().join(" ") || void 0,
|
|
2985
|
+
"aria-invalid": w(a) ? !0 : void 0,
|
|
2986
|
+
"aria-labelledby": w(i).get("label"),
|
|
2997
2987
|
disabled: e.disabled,
|
|
2998
2988
|
"keyboard-shortcut": e.keyboardShortcut,
|
|
2999
2989
|
role: "switch",
|
|
3000
|
-
onClick: c[0] ||= (e) => r.value = !
|
|
2990
|
+
onClick: c[0] ||= (e) => r.value = !w(r)
|
|
3001
2991
|
}, {
|
|
3002
|
-
default:
|
|
2992
|
+
default: k(() => [S(t.$slots, "default")]),
|
|
3003
2993
|
_: 3
|
|
3004
2994
|
}, 8, [
|
|
3005
2995
|
"id",
|
|
@@ -3011,7 +3001,7 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
3011
3001
|
"keyboard-shortcut"
|
|
3012
3002
|
]));
|
|
3013
3003
|
}
|
|
3014
|
-
}),
|
|
3004
|
+
}), Ta = Symbol("tabs"), Ea = Symbol("tabs-list"), Da = /* @__PURE__ */ o({
|
|
3015
3005
|
__name: "Tabs",
|
|
3016
3006
|
props: {
|
|
3017
3007
|
modelValue: {},
|
|
@@ -3019,17 +3009,17 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
3019
3009
|
},
|
|
3020
3010
|
emits: ["update:modelValue"],
|
|
3021
3011
|
setup(e) {
|
|
3022
|
-
let t =
|
|
3023
|
-
return
|
|
3024
|
-
sharedIds:
|
|
3012
|
+
let t = E(e, "modelValue");
|
|
3013
|
+
return b(Ta, {
|
|
3014
|
+
sharedIds: q(),
|
|
3025
3015
|
selectedPanel: t
|
|
3026
|
-
}), (e, t) => Object.keys(e.$attrs).length ? (
|
|
3016
|
+
}), (e, t) => Object.keys(e.$attrs).length ? (y(), i("div", h(p({ key: 0 }, e.$attrs)), [S(e.$slots, "default")], 16)) : S(e.$slots, "default", {}, void 0, void 0, 1);
|
|
3027
3017
|
}
|
|
3028
|
-
}),
|
|
3018
|
+
}), Oa = [
|
|
3029
3019
|
"tabindex",
|
|
3030
3020
|
"aria-disabled",
|
|
3031
3021
|
"disabled"
|
|
3032
|
-
],
|
|
3022
|
+
], ka = /* @__PURE__ */ o({
|
|
3033
3023
|
__name: "TabsActionButton",
|
|
3034
3024
|
props: {
|
|
3035
3025
|
value: {},
|
|
@@ -3037,165 +3027,165 @@ var wi = /*#__PURE__*/ xi(Si, [["render", Ci]]), Ti = "\n block-size: 1px;\n i
|
|
|
3037
3027
|
},
|
|
3038
3028
|
emits: ["click"],
|
|
3039
3029
|
setup(e, { emit: t }) {
|
|
3040
|
-
let n = e, r = t, { selectedPanel: a } = l(
|
|
3030
|
+
let n = e, r = t, { selectedPanel: a } = l(Ta), o = (e) => {
|
|
3041
3031
|
n.disabled || r("click", e);
|
|
3042
3032
|
};
|
|
3043
|
-
return (t, n) => (
|
|
3033
|
+
return (t, n) => (y(), i("button", {
|
|
3044
3034
|
ref: "button",
|
|
3045
|
-
tabindex:
|
|
3035
|
+
tabindex: w(a) === e.value ? 0 : -1,
|
|
3046
3036
|
"aria-disabled": e.disabled === !0 || void 0,
|
|
3047
3037
|
disabled: e.disabled === "without-focus" || void 0,
|
|
3048
3038
|
type: "button",
|
|
3049
3039
|
onClick: o
|
|
3050
|
-
}, [
|
|
3040
|
+
}, [S(t.$slots, "default")], 8, Oa));
|
|
3051
3041
|
}
|
|
3052
|
-
}),
|
|
3042
|
+
}), Aa = [
|
|
3053
3043
|
"id",
|
|
3054
3044
|
"aria-disabled",
|
|
3055
3045
|
"aria-selected",
|
|
3056
3046
|
"aria-controls"
|
|
3057
|
-
],
|
|
3047
|
+
], ja = /* @__PURE__ */ o({
|
|
3058
3048
|
__name: "TabsButton",
|
|
3059
3049
|
props: {
|
|
3060
3050
|
value: {},
|
|
3061
|
-
id: { default: () =>
|
|
3051
|
+
id: { default: () => T() },
|
|
3062
3052
|
disabled: { type: Boolean }
|
|
3063
3053
|
},
|
|
3064
3054
|
emits: ["delete"],
|
|
3065
3055
|
setup(e, { emit: t }) {
|
|
3066
|
-
let n = e, r =
|
|
3067
|
-
|
|
3068
|
-
let a = t, { selectedPanel: o, sharedIds: s } = l(
|
|
3069
|
-
|
|
3070
|
-
let { onKeyDown: c, selectionFollowsFocus: u } = l(
|
|
3056
|
+
let n = e, r = D("element");
|
|
3057
|
+
V("tabs-list", r);
|
|
3058
|
+
let a = t, { selectedPanel: o, sharedIds: s } = l(Ta);
|
|
3059
|
+
J(s, `${n.value}-button`, () => n.id);
|
|
3060
|
+
let { onKeyDown: c, selectionFollowsFocus: u } = l(Ea), d = () => {
|
|
3071
3061
|
n.disabled || (o.value = n.value);
|
|
3072
3062
|
}, f = () => {
|
|
3073
3063
|
n.disabled || a("delete");
|
|
3074
3064
|
};
|
|
3075
3065
|
return g(() => {
|
|
3076
3066
|
o.value ||= n.value;
|
|
3077
|
-
}), (t, a) => (
|
|
3067
|
+
}), (t, a) => (y(), i("button", {
|
|
3078
3068
|
id: e.id,
|
|
3079
3069
|
ref_key: "element",
|
|
3080
3070
|
ref: r,
|
|
3081
3071
|
"aria-disabled": e.disabled === !0 || void 0,
|
|
3082
|
-
"aria-selected":
|
|
3083
|
-
"aria-controls":
|
|
3072
|
+
"aria-selected": w(o) === e.value,
|
|
3073
|
+
"aria-controls": w(s).get(`${n.value}-panel`),
|
|
3084
3074
|
type: "button",
|
|
3085
3075
|
role: "tab",
|
|
3086
|
-
onFocus: a[0] ||= (t) =>
|
|
3087
|
-
onKeydown: [
|
|
3076
|
+
onFocus: a[0] ||= (t) => w(u) ? o.value = e.value : void 0,
|
|
3077
|
+
onKeydown: [le(f, ["delete"]), a[1] ||= (...e) => w(c) && w(c)(...e)],
|
|
3088
3078
|
onClick: d
|
|
3089
|
-
}, [
|
|
3079
|
+
}, [S(t.$slots, "default")], 40, Aa));
|
|
3090
3080
|
}
|
|
3091
|
-
}),
|
|
3081
|
+
}), Ma = ["aria-orientation"], Na = /* @__PURE__ */ o({
|
|
3092
3082
|
__name: "TabsList",
|
|
3093
3083
|
props: {
|
|
3094
3084
|
orientation: { default: "horizontal" },
|
|
3095
3085
|
selectionFollowsFocus: { type: Boolean }
|
|
3096
3086
|
},
|
|
3097
3087
|
setup(e) {
|
|
3098
|
-
let n = e, { orientation: r } =
|
|
3099
|
-
return
|
|
3088
|
+
let n = e, { orientation: r } = ie(n), a = D("element"), { getElements: o } = B("tabs-list", a), { onKeyDown: s } = Gt(r, o);
|
|
3089
|
+
return b(Ea, {
|
|
3100
3090
|
selectionFollowsFocus: t(() => n.selectionFollowsFocus),
|
|
3101
3091
|
onKeyDown: s
|
|
3102
|
-
}), (e, t) => (
|
|
3092
|
+
}), (e, t) => (y(), i("div", {
|
|
3103
3093
|
ref_key: "element",
|
|
3104
3094
|
ref: a,
|
|
3105
|
-
"aria-orientation":
|
|
3095
|
+
"aria-orientation": w(r),
|
|
3106
3096
|
role: "tablist"
|
|
3107
|
-
}, [
|
|
3097
|
+
}, [S(e.$slots, "default")], 8, Ma));
|
|
3108
3098
|
}
|
|
3109
|
-
}),
|
|
3099
|
+
}), Pa = ["id", "aria-labelledby"], Fa = /* @__PURE__ */ o({
|
|
3110
3100
|
__name: "TabsPanel",
|
|
3111
3101
|
props: {
|
|
3112
3102
|
value: {},
|
|
3113
|
-
id: { default: () =>
|
|
3103
|
+
id: { default: () => T() }
|
|
3114
3104
|
},
|
|
3115
3105
|
setup(e) {
|
|
3116
|
-
let n = e, { selectedPanel: a, sharedIds: o } = l(
|
|
3117
|
-
|
|
3106
|
+
let n = e, { selectedPanel: a, sharedIds: o } = l(Ta);
|
|
3107
|
+
J(o, `${n.value}-panel`, () => n.id);
|
|
3118
3108
|
let s = t(() => a.value === n.value);
|
|
3119
|
-
return (t, a) => s.value ? (
|
|
3109
|
+
return (t, a) => s.value ? (y(), i("div", {
|
|
3120
3110
|
key: 0,
|
|
3121
3111
|
id: e.id,
|
|
3122
3112
|
ref: "button",
|
|
3123
|
-
"aria-labelledby":
|
|
3113
|
+
"aria-labelledby": w(o).get(`${n.value}-button`),
|
|
3124
3114
|
tabindex: "-1",
|
|
3125
3115
|
role: "tabpanel"
|
|
3126
|
-
}, [
|
|
3116
|
+
}, [S(t.$slots, "default")], 8, Pa)) : r("", !0);
|
|
3127
3117
|
}
|
|
3128
|
-
}),
|
|
3118
|
+
}), Ia = /* @__PURE__ */ o({
|
|
3129
3119
|
__name: "TextareaField",
|
|
3130
3120
|
setup(e) {
|
|
3131
|
-
return
|
|
3121
|
+
return Z(D("element")), (e, t) => Object.keys(e.$attrs).length ? (y(), i("div", h(p({ key: 0 }, e.$attrs)), [S(e.$slots, "default")], 16)) : S(e.$slots, "default", {}, void 0, void 0, 1);
|
|
3132
3122
|
}
|
|
3133
|
-
}),
|
|
3123
|
+
}), La = [
|
|
3134
3124
|
"id",
|
|
3135
3125
|
"aria-invalid",
|
|
3136
3126
|
"aria-describedby",
|
|
3137
3127
|
"aria-labelledby",
|
|
3138
3128
|
"disabled"
|
|
3139
|
-
],
|
|
3129
|
+
], Ra = /* @__PURE__ */ o({
|
|
3140
3130
|
__name: "TextareaFieldInput",
|
|
3141
3131
|
props: /*@__PURE__*/ f({
|
|
3142
3132
|
disabled: { type: Boolean },
|
|
3143
|
-
id: { default: () =>
|
|
3133
|
+
id: { default: () => T() }
|
|
3144
3134
|
}, {
|
|
3145
3135
|
modelValue: {},
|
|
3146
3136
|
modelModifiers: {}
|
|
3147
3137
|
}),
|
|
3148
3138
|
emits: ["update:modelValue"],
|
|
3149
3139
|
setup(e) {
|
|
3150
|
-
let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l(
|
|
3151
|
-
|
|
3152
|
-
let s =
|
|
3153
|
-
return (t, c) =>
|
|
3140
|
+
let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l(X);
|
|
3141
|
+
J(n, "input", () => t.id);
|
|
3142
|
+
let s = E(e, "modelValue");
|
|
3143
|
+
return (t, c) => ce((y(), i("textarea", {
|
|
3154
3144
|
id: e.id,
|
|
3155
3145
|
"onUpdate:modelValue": c[0] ||= (e) => s.value = e,
|
|
3156
|
-
"aria-invalid":
|
|
3157
|
-
"aria-describedby": [
|
|
3158
|
-
"aria-labelledby":
|
|
3146
|
+
"aria-invalid": w(r),
|
|
3147
|
+
"aria-describedby": [w(a), w(o)].flat().join(" ") || void 0,
|
|
3148
|
+
"aria-labelledby": w(n).get("label"),
|
|
3159
3149
|
disabled: e.disabled
|
|
3160
|
-
}, null, 8,
|
|
3150
|
+
}, null, 8, La)), [[oe, s.value]]);
|
|
3161
3151
|
}
|
|
3162
|
-
}),
|
|
3152
|
+
}), za = /* @__PURE__ */ o({
|
|
3163
3153
|
__name: "TextField",
|
|
3164
3154
|
setup(e) {
|
|
3165
|
-
return
|
|
3155
|
+
return Z(D("element")), (e, t) => Object.keys(e.$attrs).length ? (y(), i("div", h(p({ key: 0 }, e.$attrs)), [S(e.$slots, "default")], 16)) : S(e.$slots, "default", {}, void 0, void 0, 1);
|
|
3166
3156
|
}
|
|
3167
|
-
}),
|
|
3157
|
+
}), Ba = [
|
|
3168
3158
|
"id",
|
|
3169
3159
|
"type",
|
|
3170
3160
|
"aria-invalid",
|
|
3171
3161
|
"aria-describedby",
|
|
3172
3162
|
"aria-labelledby",
|
|
3173
3163
|
"disabled"
|
|
3174
|
-
],
|
|
3164
|
+
], Va = /* @__PURE__ */ o({
|
|
3175
3165
|
__name: "TextFieldInput",
|
|
3176
3166
|
props: /*@__PURE__*/ f({
|
|
3177
3167
|
search: { type: Boolean },
|
|
3178
3168
|
disabled: { type: Boolean },
|
|
3179
|
-
id: { default: () =>
|
|
3169
|
+
id: { default: () => T() }
|
|
3180
3170
|
}, {
|
|
3181
3171
|
modelValue: {},
|
|
3182
3172
|
modelModifiers: {}
|
|
3183
3173
|
}),
|
|
3184
3174
|
emits: ["update:modelValue"],
|
|
3185
3175
|
setup(e) {
|
|
3186
|
-
let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l(
|
|
3187
|
-
|
|
3188
|
-
let s =
|
|
3189
|
-
return (t, c) =>
|
|
3176
|
+
let t = e, { sharedIds: n, hasErrors: r, errorIds: a, descriptionIds: o } = l(X);
|
|
3177
|
+
J(n, "input", () => t.id);
|
|
3178
|
+
let s = E(e, "modelValue");
|
|
3179
|
+
return (t, c) => ce((y(), i("input", {
|
|
3190
3180
|
id: e.id,
|
|
3191
3181
|
"onUpdate:modelValue": c[0] ||= (e) => s.value = e,
|
|
3192
3182
|
type: e.search ? "search" : "text",
|
|
3193
|
-
"aria-invalid":
|
|
3194
|
-
"aria-describedby": [
|
|
3195
|
-
"aria-labelledby":
|
|
3183
|
+
"aria-invalid": w(r),
|
|
3184
|
+
"aria-describedby": [w(a), w(o)].flat().join(" ") || void 0,
|
|
3185
|
+
"aria-labelledby": w(n).get("label"),
|
|
3196
3186
|
disabled: e.disabled
|
|
3197
|
-
}, null, 8,
|
|
3187
|
+
}, null, 8, Ba)), [[ae, s.value]]);
|
|
3198
3188
|
}
|
|
3199
3189
|
});
|
|
3200
3190
|
//#endregion
|
|
3201
|
-
export {
|
|
3191
|
+
export { z as Move, ze as Moves, Be as PageMove, Ve as PageMoves, Y as PeachyButton, li as PeachyCalendarTable, ui as PeachyCalendarTableCell, pi as PeachyCalendarTableCellButton, _i as PeachyComboboxField, yi as PeachyComboboxInput, xi as PeachyComboboxSelectionList, Si as PeachyComboboxSelectionListItem, Ti as PeachyCopyButton, Ei as PeachyDialog, Di as PeachyDialogButton, Oi as PeachyDialogCloseButton, Mi as PeachyDialogDescription, Ni as PeachyDialogHeading, Ai as PeachyDialogPanel, Fi as PeachyDisclosure, Ii as PeachyDisclosureButton, Hi as PeachyDisclosurePanel, Gi as PeachyDownloadLink, qi as PeachyFieldDescription, Yi as PeachyFieldError, Zi as PeachyFieldLabel, na as PeachyGridTable, ra as PeachyGridTableCell, ia as PeachyGridTableHeadingCell, aa as PeachyGridTableRow, Wi as PeachyLink, oa as PeachyListboxField, ua as PeachyListboxGroup, fa as PeachyListboxGroupLabel, ca as PeachyListboxInput, ma as PeachyListboxOption, _a as PeachySelectButton, ha as PeachySelectField, ya as PeachySeparator, wa as PeachySwitchButton, xa as PeachySwitchField, Ca as PeachySwitchStateLabel, ni as PeachyTable, ri as PeachyTableBody, ii as PeachyTableCell, ai as PeachyTableHead, si as PeachyTableHeadingCell, ci as PeachyTableRow, Da as PeachyTabs, ka as PeachyTabsActionButton, ja as PeachyTabsButton, Na as PeachyTabsList, Fa as PeachyTabsPanel, za as PeachyTextField, Va as PeachyTextFieldInput, Ia as PeachyTextareaField, Ra as PeachyTextareaFieldInput, $r as PeachyToolbar, wi as PeachyVisuallyHidden, Wt as RovingTabindexKey, Zr as ToolbarContextKey, xt as Weekday, Lt as elementHasBlockScroll, ft as formatDate, pt as getDate, Ct as getDaysOfCalendarMonth, St as getDaysOfMonth, st as getFirstDayOfMonth, at as getFirstDayOfWeek, lt as getFirstDayOfYear, ct as getLastDayOfMonth, ot as getLastDayOfTheWeek, ut as getLastDayOfYear, gt as getMonth, bt as getMonths, yt as getNameOfMonth, Ze as getNextDay, tt as getNextMonth, $e as getNextWeek, rt as getNextYear, Qe as getPreviousDay, nt as getPreviousMonth, et as getPreviousWeek, it as getPreviousYear, ht as getWeekNumber, vt as getWeekdays, _t as getYear, Ot as isDateInRange, Dt as isDateTimeInRange, Nt as isDisabledElement, Pt as isFocusedHtmlElement, Ft as isFocusedRovingTabindexElement, Mt as isHtmlElement, He as isMove, jt as isNullish, Ue as isPageMove, zt as isPrintableCharacter, Vt as isRepeatingCharacter, kt as isSameDate, At as isSameMonth, Bt as isTypeaheadCharacter, We as navigateList, Ge as navigateListByPage, Ke as navigateListCustom, Xr as optionalInject, V as provideElement, dt as removeTimezoneOffset, Rt as scrollElementIntoArea, J as shareId, It as sortElementsByAppearance, Et as sortRange, wt as splitDaysIntoWeeks, Ht as startsWith, bn as useBemClass, Sn as useCalendar, Cn as useCombobox, Tn as useDocumentOutline, qe as useElementNavigation, B as useElements, Jr as useFuzzySearch, xn as useGlobalBemClass, Gt as useRovingTabindex, q as useSharedIds, Ut as useSingleTabStop, Yr as useThemeSettingsStore, sn as useTypeahead, Ri as vAriaLabelledby, Bi as vHidden };
|