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