@iamfiro/design 0.3.0 → 0.3.1
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/lib/components/Accordion/Accordion2.js +86 -86
- package/lib/components/ActionBar/ActionBar2.js +44 -43
- package/lib/components/Alert/Alert2.js +79 -79
- package/lib/components/AppShell/AppShell2.js +58 -58
- package/lib/components/AreaChart/AreaChart.js +41 -41
- package/lib/components/BarChart/BarChart2.js +110 -110
- package/lib/components/BarList/BarList2.js +95 -95
- package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
- package/lib/components/Calendar/Calendar2.js +202 -202
- package/lib/components/Calendar/DatePicker2.js +122 -123
- package/lib/components/Calendar/date.js +57 -60
- package/lib/components/Card/Card2.js +62 -63
- package/lib/components/CardFrame/CardFrame2.js +43 -48
- package/lib/components/Chart/ChartParts.js +80 -80
- package/lib/components/Chart/chart2.js +57 -57
- package/lib/components/Chart/useChartInteraction.js +49 -49
- package/lib/components/ChatBubble/ChatBubble2.js +87 -87
- package/lib/components/ChatBubble/formatChatTime.js +34 -39
- package/lib/components/ChatComposer/ChatComposer2.js +97 -97
- package/lib/components/CodeBlock/CodeBlock2.js +60 -60
- package/lib/components/CodeBlock/highlight.js +75 -78
- package/lib/components/ColorPicker/ColorPicker2.js +383 -384
- package/lib/components/ColorPicker/color.js +74 -74
- package/lib/components/ColorPicker/presets.js +41 -46
- package/lib/components/Combobox/Combobox2.js +130 -131
- package/lib/components/CommandMenu/CommandMenu.js +137 -137
- package/lib/components/Comment/Comment2.js +64 -88
- package/lib/components/ContextMenu/ContextMenu2.js +87 -87
- package/lib/components/DataGrid/DataGrid2.js +911 -909
- package/lib/components/DataGrid/GridPopover.js +114 -114
- package/lib/components/DataGrid/anchor.js +25 -25
- package/lib/components/DataGrid/model.js +281 -282
- package/lib/components/DataGrid/panels.js +427 -429
- package/lib/components/DataGrid/typeMeta.js +50 -51
- package/lib/components/DataGrid/types.js +39 -40
- package/lib/components/DescriptionList/DescriptionList2.js +104 -104
- package/lib/components/Dialog/AlertDialog.js +85 -84
- package/lib/components/Dialog/Dialog2.js +72 -71
- package/lib/components/Dialog/modal.js +68 -68
- package/lib/components/Drawer/Drawer2.js +100 -100
- package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
- package/lib/components/DropdownMenu/menuCore.js +36 -36
- package/lib/components/Dropzone/Dropzone2.js +66 -65
- package/lib/components/EmptyState/EmptyState2.js +52 -54
- package/lib/components/FileChip/FileChip2.js +42 -66
- package/lib/components/FileUpload/FileUpload.js +171 -170
- package/lib/components/FilterChips/FilterChips2.js +54 -54
- package/lib/components/FunnelChart/FunnelChart2.js +144 -144
- package/lib/components/FunnelChart/funnel.js +56 -53
- package/lib/components/Highlight/Highlight2.js +60 -60
- package/lib/components/HoverCard/HoverCard.js +72 -72
- package/lib/components/InlineDiff/InlineDiff2.js +112 -112
- package/lib/components/InlineDiff/diff.js +81 -81
- package/lib/components/InlineDiff/useDiffReview.js +54 -53
- package/lib/components/Kanban/Kanban2.js +372 -372
- package/lib/components/Kanban/KanbanCard.js +80 -80
- package/lib/components/Kanban/move.js +55 -55
- package/lib/components/LineChart/LineChart2.js +167 -167
- package/lib/components/List/List2.js +64 -65
- package/lib/components/Listbox/Listbox2.js +105 -105
- package/lib/components/Marker/Marker2.js +54 -54
- package/lib/components/Menubar/Menubar2.js +112 -113
- package/lib/components/MultiSelect/MultiSelect2.js +106 -106
- package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
- package/lib/components/NoticeStack/NoticeStack2.js +115 -115
- package/lib/components/NumberStepper/NumberStepper2.js +69 -70
- package/lib/components/OtpInput/OtpInput2.js +87 -87
- package/lib/components/Pagination/Pagination2.js +97 -97
- package/lib/components/Pagination/paginationRange.js +23 -24
- package/lib/components/PhoneInput/PhoneInput.js +85 -85
- package/lib/components/PieChart/PieChart2.js +116 -116
- package/lib/components/PieChart/arc.js +80 -56
- package/lib/components/PieChart/useArcTween.js +57 -59
- package/lib/components/Popover/Popover2.js +59 -60
- package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
- package/lib/components/Rating/Rating2.js +93 -93
- package/lib/components/Resizable/Resizable2.js +136 -134
- package/lib/components/Resizable/layout.js +73 -73
- package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
- package/lib/components/ScatterChart/ScatterChart2.js +252 -253
- package/lib/components/ScatterChart/scatter.js +58 -56
- package/lib/components/ScrollArea/ScrollArea2.js +133 -134
- package/lib/components/Select/Select2.js +89 -89
- package/lib/components/Sidebar/Sidebar2.js +76 -76
- package/lib/components/Skeleton/Skeleton2.js +67 -67
- package/lib/components/Slider/Slider2.js +67 -67
- package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
- package/lib/components/SparkChart/SparkChart2.js +130 -130
- package/lib/components/SparkChart/spark.js +57 -62
- package/lib/components/Sparkbar/Sparkbar2.js +44 -44
- package/lib/components/SplitView/SplitView2.js +53 -53
- package/lib/components/Stat/Stat2.js +83 -83
- package/lib/components/StepList/StepList2.js +73 -73
- package/lib/components/Table/Table2.js +45 -45
- package/lib/components/Tabs/Tabs2.js +87 -87
- package/lib/components/TagInput/TagInput2.js +231 -234
- package/lib/components/TimePicker/TimePicker2.js +195 -195
- package/lib/components/TimePicker/time.js +60 -62
- package/lib/components/Timeline/Timeline2.js +199 -199
- package/lib/components/Timeline/scale.js +56 -58
- package/lib/components/Toast/Toaster.js +153 -152
- package/lib/components/Toast/store.js +57 -58
- package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
- package/lib/components/Toolbar/Toolbar2.js +135 -133
- package/lib/components/Tracker/Tracker2.js +83 -83
- package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
- package/lib/components/TreeView/TreeView2.js +165 -163
- package/lib/hooks/timing.js +33 -31
- package/lib/hooks/useControllableState.js +42 -42
- package/lib/hooks/useCountdown.js +58 -63
- package/lib/hooks/useDigitInput.js +75 -77
- package/lib/hooks/useDismiss.js +50 -52
- package/lib/hooks/useElapsed.js +58 -56
- package/lib/hooks/useFloating.js +44 -44
- package/lib/hooks/useFocusTrap.js +64 -40
- package/lib/hooks/usePresence.js +48 -50
- package/lib/hooks/usePressToOpen.js +52 -51
- package/lib/hooks/useScrollLock.js +49 -48
- package/lib/hooks/useSelection.js +37 -40
- package/lib/index.js +70 -69
- package/lib/primitives/AspectRatio2.js +50 -54
- package/lib/primitives/BrandIcon.js +153 -153
- package/lib/primitives/ColorDot2.js +49 -48
- package/lib/primitives/CopyButton2.js +59 -58
- package/lib/primitives/CountBadge2.js +57 -55
- package/lib/primitives/Countdown2.js +45 -49
- package/lib/primitives/Delta2.js +71 -46
- package/lib/primitives/Elapsed.js +43 -43
- package/lib/primitives/FileIcon2.js +93 -93
- package/lib/primitives/Flag2.js +95 -95
- package/lib/primitives/IconStack2.js +55 -55
- package/lib/primitives/IconTile2.js +46 -45
- package/lib/primitives/Kbd2.js +55 -55
- package/lib/primitives/Layout2.js +80 -80
- package/lib/primitives/Link2.js +36 -34
- package/lib/primitives/MaskedText2.js +65 -64
- package/lib/primitives/Progress2.js +80 -80
- package/lib/primitives/RelativeTime.js +52 -54
- package/lib/primitives/SearchInput2.js +55 -54
- package/lib/primitives/SelectorButton2.js +64 -65
- package/lib/primitives/Spinner2.js +55 -59
- package/lib/primitives/StatusIcon2.js +65 -65
- package/lib/primitives/Swatch2.js +50 -50
- package/lib/primitives/Tooltip2.js +85 -85
- package/lib/primitives/Typography2.js +66 -66
- package/lib/primitives/formatCountdown.js +43 -40
- package/lib/primitives/formatElapsed.js +24 -27
- package/lib/primitives/formatRelativeTime.js +43 -43
- package/lib/primitives/hotkey.js +71 -71
- package/lib/primitives/index.js +156 -157
- package/lib/primitives/maskValue.js +38 -34
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -3,56 +3,53 @@ const e = n;
|
|
|
3
3
|
(function(e, t) {
|
|
4
4
|
let r = n, i = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (-parseInt(r(
|
|
6
|
+
if (-parseInt(r(290)) / 1 + parseInt(r(299)) / 2 + parseInt(r(297)) / 3 + -parseInt(r(300)) / 4 + -parseInt(r(294)) / 5 * (parseInt(r(292)) / 6) + -parseInt(r(291)) / 7 + parseInt(r(289)) / 8 == t) break;
|
|
7
7
|
i.push(i.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
i.push(i.shift());
|
|
10
10
|
}
|
|
11
|
-
})(t,
|
|
11
|
+
})(t, 348376);
|
|
12
12
|
function t() {
|
|
13
13
|
let e = [
|
|
14
|
-
"
|
|
14
|
+
"mJG1mtmXn1DIAgr6Eq",
|
|
15
|
+
"nK5YwuHsDG",
|
|
15
16
|
"CgfKu3rHCNq",
|
|
16
|
-
"
|
|
17
|
-
"zMXVB3i",
|
|
17
|
+
"mJmYndqWq3r2qMr0",
|
|
18
18
|
"Bwf4",
|
|
19
|
-
"nZK3nfvls0nJwa",
|
|
20
|
-
"mZq4oduZnw9MzgHeBG",
|
|
21
|
-
"Dgv4Da",
|
|
22
|
-
"mti2ote2zfzusMPh",
|
|
23
19
|
"y2XVy2S",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
20
|
+
"mJG1otaZrunAALnp",
|
|
21
|
+
"Dgv4Da",
|
|
22
|
+
"ode1nJaYqML5rxvy",
|
|
23
|
+
"mZeZmtz0BgvlBui",
|
|
24
|
+
"zMXVB3i",
|
|
25
|
+
"ndmXmJu5mNjLq1LIEG",
|
|
26
|
+
"mJmYmtuYuuLsweTN"
|
|
30
27
|
];
|
|
31
28
|
return t = function() {
|
|
32
29
|
return e;
|
|
33
30
|
}, t();
|
|
34
31
|
}
|
|
35
32
|
function n(e, r) {
|
|
36
|
-
e -=
|
|
33
|
+
e -= 289;
|
|
37
34
|
let i = t(), a = i[e];
|
|
38
|
-
n.
|
|
35
|
+
n.VLuwkG === void 0 && (n.RneeZp = function(e) {
|
|
39
36
|
let t = "", n = "";
|
|
40
37
|
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
41
38
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
42
39
|
return decodeURIComponent(n);
|
|
43
|
-
}, n.
|
|
40
|
+
}, n.mSZarY = {}, n.VLuwkG = !0);
|
|
44
41
|
let o = i[0];
|
|
45
|
-
n.
|
|
46
|
-
let s = n.
|
|
47
|
-
return s === void 0 ? (a = n.
|
|
42
|
+
n.IJpHkO !== o && (n.mSZarY = {}, n.IJpHkO = o);
|
|
43
|
+
let s = n.mSZarY[e];
|
|
44
|
+
return s === void 0 ? (a = n.RneeZp(a), n.mSZarY[e] = a) : a = s, a;
|
|
48
45
|
}
|
|
49
|
-
function r(t, n = e(
|
|
50
|
-
let r = e, i = Math[r(
|
|
51
|
-
if (n === r(
|
|
52
|
-
let e = String(s)[r(
|
|
53
|
-
return a > 0 ? a + ":" + String(o)[r(
|
|
46
|
+
function r(t, n = e(296)) {
|
|
47
|
+
let r = e, i = Math[r(295)](0, Math[r(301)](t)), a = Math[r(301)](i / 3600), o = Math[r(301)](i % 3600 / 60), s = i % 60;
|
|
48
|
+
if (n === r(296)) {
|
|
49
|
+
let e = String(s)[r(293)](2, "0");
|
|
50
|
+
return a > 0 ? a + ":" + String(o)[r(293)](2, "0") + ":" + e : o + ":" + e;
|
|
54
51
|
}
|
|
55
|
-
let [c, l, u] = n === r(
|
|
52
|
+
let [c, l, u] = n === r(298) ? [
|
|
56
53
|
"시간",
|
|
57
54
|
"분",
|
|
58
55
|
"초"
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
3
|
-
function t() {
|
|
4
|
-
let e = /* @__PURE__ */ "z2v0tw9UDgG.zM9YBwf0.mJjrqKrtrue.7iUC6RceioYGHa.z2v0rNvSBfLLyxi.C2HVCNq.z2v0rgf0zq.ovnHzwf4Ca.mZm4nZeYofPAt0XxEq.Bwf4.7iUC6Rceio2BHa.Axnoyu4.mZi1otK2D0XmC05s.ywjZ.z2v0vgLTzq.mtuXnZDhuKDwCLa.nJe4otm0ofDJr3fdsq.mtC5ndKWueHAzMDA.n2TxEhH2sa.67Aeio2BHa.mtq5ndu5nNzxz2r3uq.zMXVB3i.nxvIqKrpDa.CM91BMq.BwLU.mZu4mJe5mgnvugntsG.A28Ts1i.mty0CMDgCNf2".split(".");
|
|
5
|
-
return t = function() {
|
|
6
|
-
return e;
|
|
7
|
-
}, t();
|
|
8
|
-
}
|
|
2
|
+
const e = c;
|
|
9
3
|
(function(e, t) {
|
|
10
|
-
let n =
|
|
4
|
+
let n = c, r = e();
|
|
11
5
|
for (;;) try {
|
|
12
|
-
if (-parseInt(n(
|
|
6
|
+
if (-parseInt(n(115)) / 1 * (parseInt(n(113)) / 2) + -parseInt(n(118)) / 3 * (-parseInt(n(122)) / 4) + parseInt(n(127)) / 5 + parseInt(n(128)) / 6 * (parseInt(n(132)) / 7) + -parseInt(n(138)) / 8 + parseInt(n(125)) / 9 * (parseInt(n(114)) / 10) + -parseInt(n(119)) / 11 == t) break;
|
|
13
7
|
r.push(r.shift());
|
|
14
8
|
} catch {
|
|
15
9
|
r.push(r.shift());
|
|
16
10
|
}
|
|
17
|
-
})(
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
e -=
|
|
21
|
-
let
|
|
22
|
-
|
|
11
|
+
})(d, 179067);
|
|
12
|
+
var t = 1e3, n = 60 * t, r = 60 * n, i = 24 * r, a = (e) => e instanceof Date ? e : new Date(e), o = (t) => new Date(t[e(117)](), t[e(139)](), t.getDate()).getTime(), s = (t, n) => Math[e(130)]((o(n) - o(t)) / i);
|
|
13
|
+
function c(e, t) {
|
|
14
|
+
e -= 112;
|
|
15
|
+
let n = d(), r = n[e];
|
|
16
|
+
c.iVrAhN === void 0 && (c.CJazXg = function(e) {
|
|
23
17
|
let t = "", n = "";
|
|
24
18
|
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
25
19
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
26
20
|
return decodeURIComponent(n);
|
|
27
|
-
},
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
let
|
|
31
|
-
return
|
|
21
|
+
}, c.KtfCMf = {}, c.iVrAhN = !0);
|
|
22
|
+
let i = n[0];
|
|
23
|
+
c.objHQY !== i && (c.KtfCMf = {}, c.objHQY = i);
|
|
24
|
+
let a = c.KtfCMf[e];
|
|
25
|
+
return a === void 0 ? (r = c.CJazXg(r), c.KtfCMf[e] = r) : r = a, r;
|
|
32
26
|
}
|
|
33
|
-
function
|
|
34
|
-
let
|
|
35
|
-
if (Number[
|
|
36
|
-
let u =
|
|
37
|
-
if (d < 45 *
|
|
38
|
-
if (d <
|
|
39
|
-
let e = Math[
|
|
40
|
-
return f ? e +
|
|
27
|
+
function l(i, o = /* @__PURE__ */ new Date()) {
|
|
28
|
+
let c = e, l = a(i);
|
|
29
|
+
if (Number[c(137)](l.getTime())) return "";
|
|
30
|
+
let u = o[c(133)]() - l[c(133)](), d = Math[c(120)](u), f = u >= 0, p = s(l, o);
|
|
31
|
+
if (d < 45 * t) return f ? "방금" : "곧";
|
|
32
|
+
if (d < r) {
|
|
33
|
+
let e = Math[c(126)](1, Math[c(112)](d / n));
|
|
34
|
+
return f ? e + c(116) : e + c(124);
|
|
41
35
|
}
|
|
42
|
-
if (p === 0 || d < 6 *
|
|
43
|
-
let e = Math
|
|
44
|
-
return f ? e +
|
|
36
|
+
if (p === 0 || d < 6 * r) {
|
|
37
|
+
let e = Math.floor(d / r);
|
|
38
|
+
return f ? e + c(121) : e + c(135);
|
|
45
39
|
}
|
|
46
40
|
if (p === 1) return "어제";
|
|
47
41
|
if (p === -1) return "내일";
|
|
48
|
-
if (Math[
|
|
49
|
-
let m = l[
|
|
50
|
-
return l
|
|
42
|
+
if (Math[c(120)](p) < 7) return f ? p + c(131) : -p + c(123);
|
|
43
|
+
let m = l[c(139)]() + 1 + "월 " + l.getDate() + "일";
|
|
44
|
+
return l[c(117)]() === o[c(117)]() ? m : l[c(117)]() + "년 " + m;
|
|
51
45
|
}
|
|
52
|
-
var
|
|
53
|
-
dateStyle:
|
|
54
|
-
timeStyle: e(
|
|
46
|
+
var u = new Intl[e(136)]("ko-KR", {
|
|
47
|
+
dateStyle: e(134),
|
|
48
|
+
timeStyle: e(129)
|
|
55
49
|
});
|
|
50
|
+
function d() {
|
|
51
|
+
let e = /* @__PURE__ */ "zMXVB3i.mNjWwhz0DW.mJa1ode3mgzOsvn0BW.nZmXnZH4rMznENO.67AeioYGHa.z2v0rNvSBfLLyxi.mtG4n3fWC0P1ra.ndi2nJLfu1nWA3y.ywjZ.7iUC6RceioYGHa.mtmZnKnyqvvYyG.7j28io2BHa.67Aeio2BHa.owrzENH5tq.Bwf4.nJaWodi1yvnmAKLu.nZKZogLnDgTQzq.C2HVCNq.CM91BMq.7j28ioYGHa.mZC4DMDoCgfw.z2v0vgLTzq.Bg9UzW.7iUC6Rceio2BHa.rgf0zvrPBwvgB3jTyxq.Axnoyu4.mJGXmta4ofvHu0PVrq.z2v0tw9UDgG".split(".");
|
|
52
|
+
return d = function() {
|
|
53
|
+
return e;
|
|
54
|
+
}, d();
|
|
55
|
+
}
|
|
56
56
|
function f(t) {
|
|
57
|
-
let n = e, r =
|
|
58
|
-
return Number.isNaN(r
|
|
57
|
+
let n = e, r = a(t);
|
|
58
|
+
return Number.isNaN(r[n(133)]()) ? "" : u.format(r);
|
|
59
59
|
}
|
|
60
|
-
function p(
|
|
61
|
-
let c = e, l = o
|
|
62
|
-
return d = u < 45 *
|
|
60
|
+
function p(o, s = /* @__PURE__ */ new Date()) {
|
|
61
|
+
let c = e, l = a(o), u = Math[c(120)](s[c(133)]() - l[c(133)]()), d;
|
|
62
|
+
return d = u < 45 * t ? 45 * t - u : u < r ? n - u % n : u < i ? r - u % r : r, Math.min(Math[c(126)](d + 50, t), r);
|
|
63
63
|
}
|
|
64
|
-
export { f as formatFullDate,
|
|
64
|
+
export { f as formatFullDate, l as formatRelativeTime, p as nextRelativeTimeChange, a as toDate };
|
package/lib/primitives/hotkey.js
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
function e(t, n) {
|
|
3
|
-
t -=
|
|
4
|
-
let
|
|
5
|
-
e.
|
|
3
|
+
t -= 368;
|
|
4
|
+
let r = l(), i = r[t];
|
|
5
|
+
e.iqolRt === void 0 && (e.GRfvFL = function(e) {
|
|
6
6
|
let t = "", n = "";
|
|
7
7
|
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
8
8
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
9
9
|
return decodeURIComponent(n);
|
|
10
|
-
}, e.
|
|
11
|
-
let
|
|
12
|
-
e.
|
|
13
|
-
let
|
|
14
|
-
return
|
|
10
|
+
}, e.HxrHZf = {}, e.iqolRt = !0);
|
|
11
|
+
let a = r[0];
|
|
12
|
+
e.DxwLIj !== a && (e.HxrHZf = {}, e.DxwLIj = a);
|
|
13
|
+
let o = e.HxrHZf[t];
|
|
14
|
+
return o === void 0 ? (i = e.GRfvFL(i), e.HxrHZf[t] = i) : i = o, i;
|
|
15
15
|
}
|
|
16
16
|
const t = e;
|
|
17
17
|
(function(t, n) {
|
|
18
18
|
let r = e, i = t();
|
|
19
19
|
for (;;) try {
|
|
20
|
-
if (
|
|
20
|
+
if (parseInt(r(373)) / 1 + -parseInt(r(389)) / 2 + -parseInt(r(374)) / 3 * (-parseInt(r(390)) / 4) + parseInt(r(400)) / 5 + parseInt(r(403)) / 6 * (-parseInt(r(382)) / 7) + -parseInt(r(388)) / 8 + parseInt(r(379)) / 9 == n) break;
|
|
21
21
|
i.push(i.shift());
|
|
22
22
|
} catch {
|
|
23
23
|
i.push(i.shift());
|
|
24
24
|
}
|
|
25
|
-
})(
|
|
25
|
+
})(l, 485567);
|
|
26
26
|
import { isMac as n } from "./Kbd2.js";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
t(
|
|
38
|
-
|
|
39
|
-
t(
|
|
40
|
-
t(
|
|
41
|
-
|
|
42
|
-
]), a = {
|
|
43
|
-
enter: t(352),
|
|
44
|
-
return: t(352),
|
|
45
|
-
esc: t(374),
|
|
46
|
-
escape: t(374),
|
|
47
|
-
tab: t(356),
|
|
27
|
+
var r = /* @__PURE__ */ new Set([
|
|
28
|
+
t(381),
|
|
29
|
+
t(385),
|
|
30
|
+
"meta",
|
|
31
|
+
t(397),
|
|
32
|
+
t(375),
|
|
33
|
+
t(401),
|
|
34
|
+
"option",
|
|
35
|
+
t(372)
|
|
36
|
+
]), i = {
|
|
37
|
+
enter: t(420),
|
|
38
|
+
return: t(420),
|
|
39
|
+
esc: t(393),
|
|
40
|
+
escape: t(393),
|
|
41
|
+
tab: "Tab",
|
|
48
42
|
space: " ",
|
|
49
|
-
backspace: t(
|
|
50
|
-
delete:
|
|
51
|
-
up: t(
|
|
52
|
-
down: t(
|
|
53
|
-
left:
|
|
54
|
-
right: t(
|
|
43
|
+
backspace: t(392),
|
|
44
|
+
delete: "Delete",
|
|
45
|
+
up: t(406),
|
|
46
|
+
down: t(417),
|
|
47
|
+
left: t(383),
|
|
48
|
+
right: t(369)
|
|
55
49
|
};
|
|
56
|
-
function
|
|
50
|
+
function a(e) {
|
|
57
51
|
let n = t;
|
|
58
|
-
return e instanceof HTMLElement ? e[n(
|
|
59
|
-
n(
|
|
60
|
-
n(
|
|
61
|
-
|
|
62
|
-
n(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
n(
|
|
66
|
-
|
|
67
|
-
]
|
|
52
|
+
return e instanceof HTMLElement ? e[n(376)] || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement ? !0 : e instanceof HTMLInputElement && ![
|
|
53
|
+
n(408),
|
|
54
|
+
n(378),
|
|
55
|
+
n(387),
|
|
56
|
+
n(399),
|
|
57
|
+
"reset",
|
|
58
|
+
n(402),
|
|
59
|
+
n(412),
|
|
60
|
+
n(416)
|
|
61
|
+
][n(394)](e[n(413)]) : !1;
|
|
68
62
|
}
|
|
69
|
-
function
|
|
70
|
-
let o = t, s =
|
|
71
|
-
if (!p || e[o(
|
|
72
|
-
let m = p
|
|
73
|
-
if (/^[a-z]$/[o(
|
|
74
|
-
if (/^[0-9]
|
|
75
|
-
let h =
|
|
76
|
-
return h ? e[o(
|
|
63
|
+
function o(e, a) {
|
|
64
|
+
let o = t, s = a[o(395)]((e) => e[o(370)]()), c = (...e) => e.some((e) => s[o(394)](e)), l = c(o(410), "cmd") || c(o(381)) && n, u = c(o(397), o(375)) || c(o(381)) && !n, d = c("alt", o(404)), f = c(o(372)), p = a[o(418)]((e) => !r[o(407)](e[o(370)]()));
|
|
65
|
+
if (!p || e[o(419)] !== l || e[o(409)] !== u || e.altKey !== d) return !1;
|
|
66
|
+
let m = p.toLowerCase();
|
|
67
|
+
if (/^[a-z]$/[o(405)](m)) return e.shiftKey === f && (e[o(377)] === o(414) + m[o(415)]() || e[o(398)][o(370)]() === m);
|
|
68
|
+
if (/^[0-9]$/[o(405)](m)) return e[o(384)] === f && (e[o(377)] === "Digit" + m || e[o(377)] === o(380) + m || e[o(398)] === m);
|
|
69
|
+
let h = i[m];
|
|
70
|
+
return h ? e[o(384)] === f && e[o(398)] === h : e[o(398)] === p;
|
|
77
71
|
}
|
|
78
|
-
var
|
|
79
|
-
ctrl: t(
|
|
80
|
-
control:
|
|
81
|
-
alt:
|
|
82
|
-
option:
|
|
83
|
-
shift: t(
|
|
84
|
-
meta: t(
|
|
85
|
-
cmd:
|
|
72
|
+
var s = {
|
|
73
|
+
ctrl: t(368),
|
|
74
|
+
control: t(368),
|
|
75
|
+
alt: t(396),
|
|
76
|
+
option: t(396),
|
|
77
|
+
shift: t(386),
|
|
78
|
+
meta: t(371),
|
|
79
|
+
cmd: "Meta"
|
|
86
80
|
};
|
|
87
|
-
function
|
|
88
|
-
let
|
|
89
|
-
return r
|
|
90
|
-
let
|
|
91
|
-
return
|
|
92
|
-
})
|
|
81
|
+
function c(e) {
|
|
82
|
+
let r = t;
|
|
83
|
+
return e[r(395)]((e) => {
|
|
84
|
+
let t = r, a = e.toLowerCase();
|
|
85
|
+
return a === "mod" ? t(n ? 371 : 368) : s[a] ? s[a] : i[a] ? i[a] === " " ? t(391) : i[a] : e[t(411)] === 1 ? e[t(415)]() : e;
|
|
86
|
+
}).join("+");
|
|
87
|
+
}
|
|
88
|
+
function l() {
|
|
89
|
+
let e = /* @__PURE__ */ "y21K.u2HPzNq.yNv0Dg9U.nduYmJa2ngLpEKP6qq.ndy0nJa2DgjACfHI.mtjMExvdsge.u3bHy2u.qMfJA3nWywnL.rxnJyxbL.Aw5JBhvKzxm.BwfW.qwX0.y3rYBa.A2v5.C3vIBwL0.odC2mteWBw11CKPe.ywX0.CMfUz2u.nMzMrMjOva.B3b0Aw9U.DgvZDa.qxjYB3DvCa.AgfZ.y2HLy2TIB3G.y3rYBeTLEq.Bwv0yq.BgvUz3rO.y29SB3i.DhLWzq.s2v5.Dg9vChbLCKnHC2u.zMLSzq.qxjYB3DeB3DU.zMLUza.Bwv0yuTLEq.rw50zxi.q29UDhjVBa.qxjYB3DsAwDODa.Dg9mB3DLCKnHC2u.twv0yq.C2HPzNq.mZq5nZu3CfDJrLLf.nJu4mZC0BNv0DhjT.y29UDhjVBa.AxndB250zw50rwrPDgfIBgu.y29Kzq.CMfKAw8.nZC4mZG0oeDhq29ABG.tNvTCgfK.Bw9K.ntm1nty3ou1frvvbAa.qxjYB3Dmzwz0.C2HPzNrlzxK".split(".");
|
|
90
|
+
return l = function() {
|
|
91
|
+
return e;
|
|
92
|
+
}, l();
|
|
93
93
|
}
|
|
94
|
-
export {
|
|
94
|
+
export { a as isTypingTarget, o as matchesHotkey, c as toAriaShortcut };
|