difit 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +8 -10
  2. package/dist/cli/index.d.ts +2 -0
  3. package/dist/cli/index.test.d.ts +1 -0
  4. package/dist/cli/index.test.js +676 -0
  5. package/dist/cli/utils.d.ts +1 -0
  6. package/dist/cli/utils.js +12 -1
  7. package/dist/cli/utils.test.d.ts +1 -0
  8. package/dist/cli/utils.test.js +214 -0
  9. package/dist/client/assets/index-CGpOyJJl.js +178 -0
  10. package/dist/client/assets/index-CpclbaYk.css +1 -0
  11. package/dist/client/index.html +2 -2
  12. package/dist/server/git-diff-tui.d.ts +2 -0
  13. package/dist/server/git-diff-tui.js +95 -0
  14. package/dist/server/git-diff.d.ts +10 -0
  15. package/dist/server/git-diff.js +23 -5
  16. package/dist/server/git-diff.test.d.ts +1 -0
  17. package/dist/server/git-diff.test.js +292 -0
  18. package/dist/server/server.d.ts +12 -0
  19. package/dist/server/server.js +8 -58
  20. package/dist/server/server.test.d.ts +1 -0
  21. package/dist/server/server.test.js +382 -0
  22. package/dist/tui/App.d.ts +8 -0
  23. package/dist/tui/App.js +92 -0
  24. package/dist/tui/components/DiffViewer.d.ts +9 -0
  25. package/dist/tui/components/DiffViewer.js +88 -0
  26. package/dist/tui/components/FileList.d.ts +8 -0
  27. package/dist/tui/components/FileList.js +48 -0
  28. package/dist/tui/components/SideBySideDiffViewer.d.ts +9 -0
  29. package/dist/tui/components/SideBySideDiffViewer.js +237 -0
  30. package/dist/tui/components/StatusBar.d.ts +8 -0
  31. package/dist/tui/components/StatusBar.js +23 -0
  32. package/dist/tui/utils/parseDiff.d.ts +2 -0
  33. package/dist/tui/utils/parseDiff.js +68 -0
  34. package/dist/types/diff.d.ts +35 -0
  35. package/dist/utils/fileUtils.d.ts +12 -0
  36. package/dist/utils/fileUtils.js +21 -0
  37. package/package.json +1 -1
  38. package/dist/client/assets/index-W2UC55JC.css +0 -1
  39. package/dist/client/assets/index-hiGBtmpa.js +0 -142
@@ -0,0 +1,237 @@
1
+ import React, { useState } from 'react';
2
+ import { Box, Text, useInput, useApp } from 'ink';
3
+ import { parseDiff } from '../utils/parseDiff.js';
4
+ const SideBySideDiffViewer = ({ files, initialFileIndex, onBack, }) => {
5
+ const [currentFileIndex, setCurrentFileIndex] = useState(initialFileIndex);
6
+ const [scrollOffset, setScrollOffset] = useState(0);
7
+ const currentFile = files[currentFileIndex];
8
+ if (!currentFile || files.length === 0) {
9
+ return (React.createElement(Box, { flexDirection: "column", flexGrow: 1 },
10
+ React.createElement(Text, { color: "yellow" }, "No files to display"),
11
+ React.createElement(Box, { marginTop: 1 },
12
+ React.createElement(Text, { dimColor: true }, "Press ESC or 'b' to go back"))));
13
+ }
14
+ const parsedDiff = parseDiff(currentFile.diff);
15
+ // Calculate total lines for current file
16
+ const allLines = [];
17
+ parsedDiff.chunks.forEach((chunk) => {
18
+ // Add chunk header
19
+ allLines.push({
20
+ old: chunk.header,
21
+ new: chunk.header,
22
+ type: 'header',
23
+ });
24
+ let oldIdx = 0;
25
+ let newIdx = 0;
26
+ while (oldIdx < chunk.lines.length || newIdx < chunk.lines.length) {
27
+ const oldLine = chunk.lines[oldIdx];
28
+ const newLine = chunk.lines[newIdx];
29
+ if (oldLine?.type === 'remove' && newLine?.type === 'add') {
30
+ // Same line modified - show side by side
31
+ allLines.push({
32
+ old: oldLine.content,
33
+ new: newLine.content,
34
+ oldNum: oldLine.oldLineNumber,
35
+ newNum: newLine.newLineNumber,
36
+ type: 'modified',
37
+ });
38
+ oldIdx++;
39
+ newIdx++;
40
+ }
41
+ else if (oldLine?.type === 'remove') {
42
+ // Line removed
43
+ allLines.push({
44
+ old: oldLine.content,
45
+ oldNum: oldLine.oldLineNumber,
46
+ type: 'remove',
47
+ });
48
+ oldIdx++;
49
+ }
50
+ else if (newLine?.type === 'add') {
51
+ // Line added
52
+ allLines.push({
53
+ new: newLine.content,
54
+ newNum: newLine.newLineNumber,
55
+ type: 'add',
56
+ });
57
+ newIdx++;
58
+ }
59
+ else if (oldLine?.type === 'context') {
60
+ // Unchanged line
61
+ allLines.push({
62
+ old: oldLine.content,
63
+ new: oldLine.content,
64
+ oldNum: oldLine.oldLineNumber,
65
+ newNum: oldLine.newLineNumber,
66
+ type: 'context',
67
+ });
68
+ oldIdx++;
69
+ newIdx++;
70
+ }
71
+ else {
72
+ oldIdx++;
73
+ newIdx++;
74
+ }
75
+ }
76
+ });
77
+ const viewportHeight = Math.max(10, (process.stdout.rows || 24) - 10); // StatusBar(3) + file nav(3) + footer(3) + margin(1)
78
+ const maxScroll = Math.max(0, allLines.length - viewportHeight);
79
+ const { exit } = useApp();
80
+ useInput((input, key) => {
81
+ if (input === 'q' || (key.ctrl && input === 'c')) {
82
+ exit();
83
+ return;
84
+ }
85
+ if (key.escape || input === 'b') {
86
+ onBack();
87
+ return;
88
+ }
89
+ // Scroll within file
90
+ if (key.upArrow || input === 'k') {
91
+ setScrollOffset((prev) => Math.max(0, prev - 1));
92
+ }
93
+ if (key.downArrow || input === 'j') {
94
+ setScrollOffset((prev) => Math.min(maxScroll, prev + 1));
95
+ }
96
+ if (key.pageUp) {
97
+ setScrollOffset((prev) => Math.max(0, prev - viewportHeight));
98
+ }
99
+ if (key.pageDown) {
100
+ setScrollOffset((prev) => Math.min(maxScroll, prev + viewportHeight));
101
+ }
102
+ // Navigate between files
103
+ if (key.tab && !key.shift) {
104
+ // Next file (loop to first when at end)
105
+ setCurrentFileIndex((currentFileIndex + 1) % files.length);
106
+ setScrollOffset(0);
107
+ }
108
+ if (key.tab && key.shift) {
109
+ // Previous file (loop to last when at start)
110
+ setCurrentFileIndex((currentFileIndex - 1 + files.length) % files.length);
111
+ setScrollOffset(0);
112
+ }
113
+ }, { isActive: true });
114
+ const visibleLines = allLines.slice(scrollOffset, scrollOffset + viewportHeight);
115
+ const terminalWidth = process.stdout.columns || 80;
116
+ const columnWidth = Math.floor((terminalWidth - 6) / 2); // 6 for borders and separators
117
+ const getLineColor = (type) => {
118
+ switch (type) {
119
+ case 'add':
120
+ return 'green';
121
+ case 'remove':
122
+ return 'red';
123
+ case 'modified':
124
+ return undefined; // Will be handled separately for each side
125
+ case 'header':
126
+ return 'cyan';
127
+ default:
128
+ return undefined;
129
+ }
130
+ };
131
+ const truncateLine = (line, width) => {
132
+ if (line.length <= width)
133
+ return line.padEnd(width);
134
+ return line.substring(0, width - 1) + '…';
135
+ };
136
+ return (React.createElement(Box, { flexDirection: "column", flexGrow: 1 },
137
+ React.createElement(Box, { marginBottom: 1, flexDirection: "column" },
138
+ React.createElement(Box, null,
139
+ React.createElement(Text, { bold: true },
140
+ currentFile.path,
141
+ " (",
142
+ currentFileIndex + 1,
143
+ "/",
144
+ files.length,
145
+ ")"),
146
+ React.createElement(Text, { dimColor: true },
147
+ ' ',
148
+ "- ",
149
+ currentFile.additions,
150
+ " additions, ",
151
+ currentFile.deletions,
152
+ " deletions")),
153
+ React.createElement(Box, { height: 2, overflow: "hidden", flexDirection: "column" }, (() => {
154
+ const terminalWidth = process.stdout.columns || 80;
155
+ const maxWidth = terminalWidth - 4; // Leave some margin
156
+ // Generate file list with current file highlighted
157
+ const fileItems = [];
158
+ // Add files before current
159
+ for (let i = Math.max(0, currentFileIndex - 2); i < currentFileIndex; i++) {
160
+ fileItems.push({
161
+ text: files[i].path,
162
+ isActive: false,
163
+ });
164
+ }
165
+ // Add current file
166
+ fileItems.push({
167
+ text: `[${files[currentFileIndex].path}]`,
168
+ isActive: true,
169
+ });
170
+ // Add files after current
171
+ for (let i = currentFileIndex + 1; i < Math.min(files.length, currentFileIndex + 3); i++) {
172
+ fileItems.push({
173
+ text: files[i].path,
174
+ isActive: false,
175
+ });
176
+ }
177
+ // Build lines (max 2 lines)
178
+ const lines = [[]];
179
+ let currentLineWidth = 0;
180
+ for (const item of fileItems) {
181
+ const itemWidth = item.text.length + 3; // Include separator
182
+ if (currentLineWidth + itemWidth > maxWidth && lines.length < 2) {
183
+ lines.push([]);
184
+ currentLineWidth = 0;
185
+ }
186
+ if (lines.length <= 2) {
187
+ lines[lines.length - 1].push(item);
188
+ currentLineWidth += itemWidth;
189
+ }
190
+ }
191
+ return lines.map((line, lineIndex) => (React.createElement(Box, { key: lineIndex }, line.map((item, itemIndex) => (React.createElement(React.Fragment, { key: itemIndex },
192
+ itemIndex > 0 && React.createElement(Text, { dimColor: true }, " | "),
193
+ React.createElement(Text, { color: item.isActive ? 'cyan' : undefined, dimColor: !item.isActive }, item.text)))))));
194
+ })())),
195
+ React.createElement(Box, { borderStyle: "single", flexDirection: "column", flexGrow: 1 },
196
+ React.createElement(Box, { borderStyle: "single", borderTop: false, borderLeft: false, borderRight: false },
197
+ React.createElement(Box, { width: columnWidth },
198
+ React.createElement(Text, { dimColor: true }, " \u2502 "),
199
+ React.createElement(Text, { bold: true }, "Old")),
200
+ React.createElement(Text, { dimColor: true }, " \u2503 "),
201
+ React.createElement(Box, { width: columnWidth },
202
+ React.createElement(Text, { dimColor: true }, " \u2502 "),
203
+ React.createElement(Text, { bold: true }, "New"))),
204
+ React.createElement(Box, { flexDirection: "column", flexGrow: 1 }, visibleLines.map((line, index) => (React.createElement(Box, { key: `line-${scrollOffset + index}` },
205
+ React.createElement(Box, { width: columnWidth },
206
+ React.createElement(Text, { dimColor: true }, line.oldNum ? String(line.oldNum).padStart(4) : ' '),
207
+ React.createElement(Text, { dimColor: true }, " \u2502 "),
208
+ React.createElement(Text, { color: line.type === 'remove' || line.type === 'modified' ? 'red' : undefined, dimColor: line.type === 'header' }, line.type === 'remove' || line.type === 'modified' ? '- ' : ' '),
209
+ React.createElement(Text, { color: line.type === 'remove' || line.type === 'modified'
210
+ ? 'red'
211
+ : getLineColor(line.type) }, line.old
212
+ ? truncateLine(line.old, columnWidth - 10)
213
+ : ' '.repeat(columnWidth - 10))),
214
+ React.createElement(Text, { dimColor: true }, " \u2503 "),
215
+ React.createElement(Box, { width: columnWidth },
216
+ React.createElement(Text, { dimColor: true }, line.newNum ? String(line.newNum).padStart(4) : ' '),
217
+ React.createElement(Text, { dimColor: true }, " \u2502 "),
218
+ React.createElement(Text, { color: line.type === 'add' || line.type === 'modified' ? 'green' : undefined, dimColor: line.type === 'header' }, line.type === 'add' || line.type === 'modified' ? '+ ' : ' '),
219
+ React.createElement(Text, { color: line.type === 'add' || line.type === 'modified'
220
+ ? 'green'
221
+ : getLineColor(line.type) }, line.new
222
+ ? truncateLine(line.new, columnWidth - 10)
223
+ : ' '.repeat(columnWidth - 10)))))))),
224
+ React.createElement(Box, { marginTop: 1, justifyContent: "space-between" },
225
+ React.createElement(Text, { dimColor: true },
226
+ "Lines ",
227
+ scrollOffset + 1,
228
+ "-",
229
+ Math.min(scrollOffset + viewportHeight, allLines.length),
230
+ " of",
231
+ ' ',
232
+ allLines.length,
233
+ scrollOffset + viewportHeight < allLines.length &&
234
+ ` (${allLines.length - scrollOffset - viewportHeight} more)`),
235
+ React.createElement(Text, { dimColor: true }, "Tab: next file | Shift+Tab: prev file | \u2191\u2193/jk: scroll | ESC/b: back"))));
236
+ };
237
+ export default SideBySideDiffViewer;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface StatusBarProps {
3
+ commitish: string;
4
+ totalFiles: number;
5
+ currentMode: 'list' | 'inline' | 'side-by-side';
6
+ }
7
+ declare const StatusBar: React.FC<StatusBarProps>;
8
+ export default StatusBar;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { Box, Text } from 'ink';
3
+ const StatusBar = ({ commitish, totalFiles, currentMode }) => {
4
+ return (React.createElement(Box, { borderStyle: "round", paddingX: 1, marginBottom: 1 },
5
+ React.createElement(Box, { flexGrow: 1 },
6
+ React.createElement(Text, { bold: true, color: "cyan" }, "\uD83D\uDCCB ReviewIt TUI"),
7
+ React.createElement(Text, null, " | "),
8
+ React.createElement(Text, { color: "yellow" }, commitish),
9
+ React.createElement(Text, null, " | "),
10
+ React.createElement(Text, null,
11
+ totalFiles,
12
+ " files changed")),
13
+ React.createElement(Box, null,
14
+ React.createElement(Text, { dimColor: true },
15
+ "[",
16
+ currentMode === 'list'
17
+ ? 'File List'
18
+ : currentMode === 'side-by-side'
19
+ ? 'Side-by-Side'
20
+ : 'Inline Diff',
21
+ "]"))));
22
+ };
23
+ export default StatusBar;
@@ -0,0 +1,2 @@
1
+ import { ParsedDiff } from '../../types/diff.js';
2
+ export declare function parseDiff(diffText: string): ParsedDiff;
@@ -0,0 +1,68 @@
1
+ export function parseDiff(diffText) {
2
+ const lines = diffText.split('\n');
3
+ const chunks = [];
4
+ let currentChunk = null;
5
+ let oldLineNumber = 0;
6
+ let newLineNumber = 0;
7
+ for (let i = 0; i < lines.length; i++) {
8
+ const line = lines[i];
9
+ // Skip file headers
10
+ if (line.startsWith('diff --git') ||
11
+ line.startsWith('index ') ||
12
+ line.startsWith('---') ||
13
+ line.startsWith('+++')) {
14
+ continue;
15
+ }
16
+ // Chunk header
17
+ if (line.startsWith('@@')) {
18
+ const match = line.match(/@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@/);
19
+ if (match) {
20
+ const [, oldStart, oldLinesStr, newStart, newLinesStr] = match;
21
+ currentChunk = {
22
+ header: line,
23
+ oldStart: parseInt(oldStart),
24
+ oldLines: parseInt(oldLinesStr || '1'),
25
+ newStart: parseInt(newStart),
26
+ newLines: parseInt(newLinesStr || '1'),
27
+ lines: [],
28
+ };
29
+ chunks.push(currentChunk);
30
+ oldLineNumber = currentChunk.oldStart - 1;
31
+ newLineNumber = currentChunk.newStart - 1;
32
+ }
33
+ continue;
34
+ }
35
+ // Skip if no current chunk
36
+ if (!currentChunk)
37
+ continue;
38
+ // Parse diff lines
39
+ if (line.startsWith('+')) {
40
+ newLineNumber++;
41
+ currentChunk.lines.push({
42
+ type: 'add',
43
+ content: line.substring(1),
44
+ newLineNumber: newLineNumber,
45
+ });
46
+ }
47
+ else if (line.startsWith('-')) {
48
+ oldLineNumber++;
49
+ currentChunk.lines.push({
50
+ type: 'remove',
51
+ content: line.substring(1),
52
+ oldLineNumber: oldLineNumber,
53
+ });
54
+ }
55
+ else {
56
+ // Context line
57
+ oldLineNumber++;
58
+ newLineNumber++;
59
+ currentChunk.lines.push({
60
+ type: 'context',
61
+ content: line.substring(1),
62
+ oldLineNumber: oldLineNumber,
63
+ newLineNumber: newLineNumber,
64
+ });
65
+ }
66
+ }
67
+ return { chunks };
68
+ }
@@ -0,0 +1,35 @@
1
+ export interface DiffFile {
2
+ path: string;
3
+ oldPath?: string;
4
+ status: 'modified' | 'added' | 'deleted' | 'renamed';
5
+ additions: number;
6
+ deletions: number;
7
+ chunks: DiffChunk[];
8
+ }
9
+ export interface DiffChunk {
10
+ header: string;
11
+ oldStart: number;
12
+ oldLines: number;
13
+ newStart: number;
14
+ newLines: number;
15
+ lines: DiffLine[];
16
+ }
17
+ export interface DiffLine {
18
+ type: 'add' | 'delete' | 'normal' | 'hunk';
19
+ content: string;
20
+ oldLineNumber?: number;
21
+ newLineNumber?: number;
22
+ }
23
+ export interface DiffResponse {
24
+ commit: string;
25
+ files: DiffFile[];
26
+ ignoreWhitespace?: boolean;
27
+ }
28
+ export interface Comment {
29
+ id: string;
30
+ file: string;
31
+ line: number;
32
+ body: string;
33
+ timestamp: string;
34
+ codeContent?: string;
35
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Get file extension from filename or filepath
3
+ * @param filename - The filename or filepath
4
+ * @returns The file extension in lowercase, or null if no extension
5
+ */
6
+ export declare function getFileExtension(filename: string): string | null;
7
+ /**
8
+ * Get filename from filepath
9
+ * @param filepath - The filepath
10
+ * @returns The filename
11
+ */
12
+ export declare function getFileName(filepath: string): string;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Get file extension from filename or filepath
3
+ * @param filename - The filename or filepath
4
+ * @returns The file extension in lowercase, or null if no extension
5
+ */
6
+ export function getFileExtension(filename) {
7
+ if (!filename)
8
+ return null;
9
+ const extension = filename.split('.').pop()?.toLowerCase();
10
+ return extension || null;
11
+ }
12
+ /**
13
+ * Get filename from filepath
14
+ * @param filepath - The filepath
15
+ * @returns The filename
16
+ */
17
+ export function getFileName(filepath) {
18
+ if (!filepath)
19
+ return '';
20
+ return filepath.split('/').pop() || '';
21
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "difit",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "A lightweight command-line tool that spins up a local web server to display Git commit diffs in a GitHub-like Files changed view",
5
5
  "type": "module",
6
6
  "engines": {
@@ -1 +0,0 @@
1
- /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-100:oklch(96.2% .044 156.743);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-md:.375rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-github-bg-primary:#0d1117;--color-github-bg-secondary:#161b22;--color-github-bg-tertiary:#21262d;--color-github-border:#30363d;--color-github-text-primary:#f0f6fc;--color-github-text-secondary:#8b949e;--color-github-text-muted:#6e7681;--color-github-accent:#238636;--color-github-danger:#da3633;--color-github-warning:#d29922;--color-diff-addition-bg:#0d4429;--color-diff-deletion-bg:#67060c}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.z-10{z-index:10}.m-0{margin:calc(var(--spacing)*0)}.m-2{margin:calc(var(--spacing)*2)}.mx-3{margin-inline:calc(var(--spacing)*3)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mr-1{margin-right:calc(var(--spacing)*1)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.block{display:block}.flex{display:flex}.inline{display:inline}.h-4{height:calc(var(--spacing)*4)}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[20px\]{min-height:20px}.min-h-\[60px\]{min-height:60px}.w-1\/2{width:50%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-80{width:calc(var(--spacing)*80)}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-full{width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-80{min-width:calc(var(--spacing)*80)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.cursor-pointer{cursor:pointer}.resize-y{resize:vertical}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-none{--tw-border-style:none;border-style:none}.border-\[var\(--border-muted\)\]{border-color:var(--border-muted)}.border-github-border{border-color:var(--color-github-border)}.border-gray-500{border-color:var(--color-gray-500)}.border-red-600\/50{border-color:#e4001480}@supports (color:color-mix(in lab,red,red)){.border-red-600\/50{border-color:color-mix(in oklab,var(--color-red-600)50%,transparent)}}.border-yellow-400\/30{border-color:#fac8004d}@supports (color:color-mix(in lab,red,red)){.border-yellow-400\/30{border-color:color-mix(in oklab,var(--color-yellow-400)30%,transparent)}}.border-yellow-600\/50{border-color:#cd890080}@supports (color:color-mix(in lab,red,red)){.border-yellow-600\/50{border-color:color-mix(in oklab,var(--color-yellow-600)50%,transparent)}}.border-l-yellow-400{border-left-color:var(--color-yellow-400)}.bg-\[var\(--bg-secondary\)\]{background-color:var(--bg-secondary)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-diff-addition-bg{background-color:var(--color-diff-addition-bg)}.bg-diff-deletion-bg{background-color:var(--color-diff-deletion-bg)}.bg-github-accent{background-color:var(--color-github-accent)}.bg-github-bg-primary{background-color:var(--color-github-bg-primary)}.bg-github-bg-secondary{background-color:var(--color-github-bg-secondary)}.bg-github-bg-tertiary{background-color:var(--color-github-bg-tertiary)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-100\/10{background-color:#dcfce71a}@supports (color:color-mix(in lab,red,red)){.bg-green-100\/10{background-color:color-mix(in oklab,var(--color-green-100)10%,transparent)}}.bg-red-100\/10{background-color:#ffe2e21a}@supports (color:color-mix(in lab,red,red)){.bg-red-100\/10{background-color:color-mix(in oklab,var(--color-red-100)10%,transparent)}}.bg-red-700\/40{background-color:#bf000f66}@supports (color:color-mix(in lab,red,red)){.bg-red-700\/40{background-color:color-mix(in oklab,var(--color-red-700)40%,transparent)}}.bg-transparent{background-color:#0000}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500)10%,transparent)}}.bg-yellow-700\/40{background-color:#a3610066}@supports (color:color-mix(in lab,red,red)){.bg-yellow-700\/40{background-color:color-mix(in oklab,var(--color-yellow-700)40%,transparent)}}.bg-yellow-800\/30{background-color:#874b004d}@supports (color:color-mix(in lab,red,red)){.bg-yellow-800\/30{background-color:color-mix(in oklab,var(--color-yellow-800)30%,transparent)}}.bg-yellow-900\/20{background-color:#733e0a33}@supports (color:color-mix(in lab,red,red)){.bg-yellow-900\/20{background-color:color-mix(in oklab,var(--color-yellow-900)20%,transparent)}}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-3{padding:calc(var(--spacing)*3)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-github-accent{color:var(--color-github-accent)}.text-github-danger{color:var(--color-github-danger)}.text-github-text-muted{color:var(--color-github-text-muted)}.text-github-text-primary{color:var(--color-github-text-primary)}.text-github-text-secondary{color:var(--color-github-text-secondary)}.text-github-warning{color:var(--color-github-warning)}.text-gray-200{color:var(--color-gray-200)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-red-200{color:var(--color-red-200)}.text-white{color:var(--color-white)}.text-yellow-100{color:var(--color-yellow-100)}.text-yellow-200{color:var(--color-yellow-200)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.accent-github-accent{accent-color:var(--color-github-accent)}.opacity-70{opacity:.7}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (hover:hover){.hover\:border-red-500:hover{border-color:var(--color-red-500)}.hover\:border-yellow-500:hover{border-color:var(--color-yellow-500)}.hover\:bg-github-bg-tertiary:hover{background-color:var(--color-github-bg-tertiary)}.hover\:bg-gray-500:hover{background-color:var(--color-gray-500)}.hover\:bg-red-600\/50:hover{background-color:#e4001480}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-600\/50:hover{background-color:color-mix(in oklab,var(--color-red-600)50%,transparent)}}.hover\:bg-yellow-600\/50:hover{background-color:#cd890080}@supports (color:color-mix(in lab,red,red)){.hover\:bg-yellow-600\/50:hover{background-color:color-mix(in oklab,var(--color-yellow-600)50%,transparent)}}.hover\:bg-yellow-800\/30:hover{background-color:#874b004d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-yellow-800\/30:hover{background-color:color-mix(in oklab,var(--color-yellow-800)30%,transparent)}}.hover\:text-github-text-primary:hover{color:var(--color-github-text-primary)}.hover\:text-white:hover{color:var(--color-white)}.hover\:opacity-80:hover{opacity:.8}}.focus\:min-h-\[80px\]:focus{min-height:80px}.focus\:border-blue-600:focus{border-color:var(--color-blue-600)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-blue-600\/30:focus{--tw-ring-color:#155dfc4d}@supports (color:color-mix(in lab,red,red)){.focus\:ring-blue-600\/30:focus{--tw-ring-color:color-mix(in oklab,var(--color-blue-600)30%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:opacity-50:disabled{opacity:.5}.\[\&_code\]\:\!bg-transparent code{background-color:#0000!important}.\[\&_code\]\:text-inherit code{color:inherit}.\[\&_pre\]\:m-0 pre{margin:calc(var(--spacing)*0)}.\[\&_pre\]\:\!bg-transparent pre{background-color:#0000!important}.\[\&_pre\]\:p-0 pre{padding:calc(var(--spacing)*0)}.\[\&_pre\]\:text-inherit pre{color:inherit}}html,body{color:#f0f6fc;background-color:#0d1117;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5}button{cursor:pointer}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}