<html lang="en">
<head></head>
<body>

<form id="mainForm" method="post" action="https://stackblitz.com/run" target="_self">
<input type="hidden" name="project[files][README.md]" value="# Database Notes for RivetKit

Example project demonstrating persistent data storage and real-time updates with [RivetKit](https://rivetkit.org).

[Learn More →](https://github.com/rivet-gg/rivetkit)

[Discord](https://rivet.gg/discord) — [Documentation](https://rivetkit.org) — [Issues](https://github.com/rivet-gg/rivetkit/issues)

## Getting Started

### Prerequisites

- Node.js 18+

### Installation

```sh
git clone https://github.com/rivet-gg/rivetkit
cd rivetkit/examples/database
npm install
```

### Development

```sh
npm run dev
```

Open your browser to `http://localhost:3000`

## Features

- **Persistent Storage**: Notes are automatically saved and persist across sessions
- **Real-time Updates**: Changes are instantly synchronized across all connected clients
- **User Authentication**: Demonstrates basic authentication with token validation
- **Multi-user Support**: Switch between different users to see isolated data
- **CRUD Operations**: Create, read, update, and delete notes
- **Edit in Place**: Click edit to modify notes inline
- **Auto-sorting**: Notes are automatically sorted by last modified date

## How it works

This example demonstrates:

1. **Actor State Management**: Using RivetKit actors to manage persistent application state
2. **Authentication**: Basic token-based authentication for user identification
3. **Real-time Events**: Broadcasting changes to all connected clients using actor events
4. **State Persistence**: Actor state is automatically persisted between sessions
5. **Connection State**: Handle connection status and graceful degradation

## Architecture

- **Backend**: RivetKit actor that manages note storage and user authentication
- **Frontend**: React application with real-time updates via RivetKit hooks
- **State Management**: Each user gets their own actor instance for data isolation
- **Authentication**: Mock token-based auth (replace with real auth in production)

## Usage

1. Start the development server
2. Select a user from the dropdown to see their notes
3. Add new notes using the input field
4. Edit notes by clicking the &quot;Edit&quot; button
5. Delete notes with the &quot;Delete&quot; button
6. Open multiple tabs or users to see real-time synchronization

## Extending

This example can be extended with:

- Real database integration (PostgreSQL, MongoDB, etc.)
- Proper JWT authentication
- User registration and management
- Note sharing and collaboration
- Rich text editing
- File attachments
- Search and filtering

## License

Apache 2.0">
<input type="hidden" name="project[files][package.json]" value="{&quot;name&quot;:&quot;example-database&quot;,&quot;version&quot;:&quot;0.9.9&quot;,&quot;private&quot;:true,&quot;type&quot;:&quot;module&quot;,&quot;scripts&quot;:{&quot;dev&quot;:&quot;concurrently \&quot;npm run dev:backend\&quot; \&quot;npm run dev:frontend\&quot;&quot;,&quot;dev:backend&quot;:&quot;tsx --watch src/backend/server.ts&quot;,&quot;dev:frontend&quot;:&quot;vite&quot;,&quot;build&quot;:&quot;vite build&quot;,&quot;check-types&quot;:&quot;tsc --noEmit&quot;,&quot;test&quot;:&quot;vitest run&quot;},&quot;devDependencies&quot;:{&quot;@types/node&quot;:&quot;^22.13.9&quot;,&quot;@types/react&quot;:&quot;^18.2.0&quot;,&quot;@types/react-dom&quot;:&quot;^18.2.0&quot;,&quot;@vitejs/plugin-react&quot;:&quot;^4.2.0&quot;,&quot;concurrently&quot;:&quot;^8.2.2&quot;,&quot;@rivetkit/actor&quot;:&quot;https://pkg.pr.new/rivet-gg/rivetkit/@rivetkit/actor@27b9131c5788cdf2007730353b43b33a296aedf3&quot;,&quot;tsx&quot;:&quot;^3.12.7&quot;,&quot;typescript&quot;:&quot;^5.5.2&quot;,&quot;vite&quot;:&quot;^5.0.0&quot;,&quot;vitest&quot;:&quot;^3.1.1&quot;},&quot;dependencies&quot;:{&quot;@rivetkit/react&quot;:&quot;https://pkg.pr.new/rivet-gg/rivetkit/@rivetkit/react@27b9131c5788cdf2007730353b43b33a296aedf3&quot;,&quot;react&quot;:&quot;^18.2.0&quot;,&quot;react-dom&quot;:&quot;^18.2.0&quot;},&quot;stableVersion&quot;:&quot;0.8.0&quot;}">
<input type="hidden" name="project[files][tsconfig.json]" value="{
  &quot;compilerOptions&quot;: {
    &quot;target&quot;: &quot;esnext&quot;,
    &quot;lib&quot;: [&quot;esnext&quot;, &quot;dom&quot;],
    &quot;jsx&quot;: &quot;react-jsx&quot;,
    &quot;module&quot;: &quot;esnext&quot;,
    &quot;moduleResolution&quot;: &quot;bundler&quot;,
    &quot;types&quot;: [&quot;node&quot;, &quot;vite/client&quot;],
    &quot;resolveJsonModule&quot;: true,
    &quot;allowJs&quot;: true,
    &quot;checkJs&quot;: false,
    &quot;noEmit&quot;: true,
    &quot;isolatedModules&quot;: true,
    &quot;allowSyntheticDefaultImports&quot;: true,
    &quot;forceConsistentCasingInFileNames&quot;: true,
    &quot;strict&quot;: true,
    &quot;skipLibCheck&quot;: true
  },
  &quot;include&quot;: [&quot;src/**/*&quot;],
  &quot;exclude&quot;: [&quot;node_modules&quot;, &quot;dist&quot;]
}
">
<input type="hidden" name="project[files][turbo.json]" value="{
  &quot;$schema&quot;: &quot;https://turbo.build/schema.json&quot;,
  &quot;extends&quot;: [&quot;//&quot;]
}
">
<input type="hidden" name="project[files][vite.config.ts]" value="import react from &quot;@vitejs/plugin-react&quot;;
import { defineConfig } from &quot;vite&quot;;

export default defineConfig({
	plugins: [react()],
	root: &quot;src/frontend&quot;,
	server: {
		port: 3000,
	},
});
">
<input type="hidden" name="project[files][vitest.config.ts]" value="import { defineConfig } from &quot;vitest/config&quot;;

export default defineConfig({
	test: {
		include: [&quot;tests/**/*.test.ts&quot;],
	},
});
">
<input type="hidden" name="project[files][.turbo/turbo-build.log]" value="
&gt; example-database@0.9.9 build /home/runner/work/rivetkit/rivetkit/examples/database
&gt; vite build

[36mvite v5.4.19 [32mbuilding for production...[36m[39m
transforming...
[32m✓[39m 219 modules transformed.
rendering chunks...
computing gzip size...
[2mdist/[22m[32mindex.html                  [39m[1m[2m  4.85 kB[22m[1m[22m[2m │ gzip:  1.21 kB[22m
[2mdist/[22m[2massets/[22m[36mbrowser-DSyQa-bp.js  [39m[1m[2m  0.57 kB[22m[1m[22m[2m │ gzip:  0.40 kB[22m
[2mdist/[22m[2massets/[22m[36mindex-z2Dkjsn_.js    [39m[1m[2m  6.73 kB[22m[1m[22m[2m │ gzip:  2.84 kB[22m
[2mdist/[22m[2massets/[22m[36mindex-rfXCAurG.js    [39m[1m[2m277.07 kB[22m[1m[22m[2m │ gzip: 85.67 kB[22m
[32m✓ built in 10.72s[39m
">
<input type="hidden" name="project[files][tests/database.test.ts]" value="import { setupTest } from &quot;@rivetkit/actor/test&quot;;
import { expect, test, vi } from &quot;vitest&quot;;
import { registry } from &quot;../src/backend/registry&quot;;

// Mock authentication
vi.mock(&quot;../src/backend/my-utils&quot;, () =&gt; ({
	authenticate: vi.fn().mockResolvedValue(&quot;user123&quot;),
}));

test(&quot;Database notes can handle basic CRUD operations&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const notes = client.notes.getOrCreate([&quot;test-notes&quot;]);

	// Test initial empty state
	const initialNotes = await notes.getNotes();
	expect(initialNotes).toEqual([]);

	// Create a new note
	const newNote = await notes.updateNote({ content: &quot;My first note&quot; });
	expect(newNote).toMatchObject({
		id: expect.stringMatching(/^note-\d+$/),
		content: &quot;My first note&quot;,
		updatedAt: expect.any(Number),
	});

	// Verify note was added
	const notesAfterAdd = await notes.getNotes();
	expect(notesAfterAdd).toHaveLength(1);
	expect(notesAfterAdd[0]).toEqual(newNote);
});

test(&quot;Database notes can update existing notes&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const notes = client.notes.getOrCreate([&quot;test-update&quot;]);

	// Create a note
	const originalNote = await notes.updateNote({ content: &quot;Original content&quot; });
	const originalTime = originalNote.updatedAt;

	// Update the note
	const updatedNote = await notes.updateNote({
		id: originalNote.id,
		content: &quot;Updated content&quot;,
	});

	expect(updatedNote).toMatchObject({
		id: originalNote.id,
		content: &quot;Updated content&quot;,
		updatedAt: expect.any(Number),
	});
	expect(updatedNote.updatedAt).toBeGreaterThanOrEqual(originalTime);

	// Verify only one note exists
	const allNotes = await notes.getNotes();
	expect(allNotes).toHaveLength(1);
	expect(allNotes[0]).toEqual(updatedNote);
});

test(&quot;Database notes can delete notes&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const notes = client.notes.getOrCreate([&quot;test-delete&quot;]);

	// Create multiple notes
	const note1 = await notes.updateNote({ content: &quot;Note 1&quot; });
	const note2 = await notes.updateNote({ content: &quot;Note 2&quot; });
	const note3 = await notes.updateNote({ content: &quot;Note 3&quot; });

	// Verify all notes exist
	let allNotes = await notes.getNotes();
	expect(allNotes).toHaveLength(3);

	// Delete middle note
	const deleteResult = await notes.deleteNote({ id: note2.id });
	expect(deleteResult).toBe(true);

	// Verify note was deleted
	allNotes = await notes.getNotes();
	expect(allNotes).toHaveLength(2);
	expect(allNotes.map((n) =&gt; n.id)).toEqual([note1.id, note3.id]);

	// Try to delete non-existent note
	const deleteNonExistent = await notes.deleteNote({ id: &quot;non-existent&quot; });
	expect(deleteNonExistent).toBe(false);
});

test(&quot;Database notes maintains proper timestamps&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const notes = client.notes.getOrCreate([&quot;test-timestamps&quot;]);

	const note1 = await notes.updateNote({ content: &quot;First note&quot; });
	const note2 = await notes.updateNote({ content: &quot;Second note&quot; });
	const note3 = await notes.updateNote({ content: &quot;Third note&quot; });

	expect(note2.updatedAt).toBeGreaterThanOrEqual(note1.updatedAt);
	expect(note3.updatedAt).toBeGreaterThanOrEqual(note2.updatedAt);

	const allNotes = await notes.getNotes();
	for (let i = 1; i &lt; allNotes.length; i++) {
		expect(allNotes[i].updatedAt).toBeGreaterThanOrEqual(
			allNotes[i - 1].updatedAt,
		);
	}
});

test(&quot;Database notes handles empty content&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const notes = client.notes.getOrCreate([&quot;test-empty&quot;]);

	// Create note with empty content
	const emptyNote = await notes.updateNote({ content: &quot;&quot; });
	expect(emptyNote.content).toBe(&quot;&quot;);
	expect(emptyNote.id).toBeTruthy();
	expect(emptyNote.updatedAt).toBeGreaterThan(0);

	// Verify it was stored
	const allNotes = await notes.getNotes();
	expect(allNotes).toHaveLength(1);
	expect(allNotes[0]).toEqual(emptyNote);
});
">
<input type="hidden" name="project[files][src/backend/my-utils.ts]" value="export async function authenticate(token: string): Promise&lt;string&gt; {
	// Mock authentication - in real app, verify JWT or session token
	if (token === &quot;demo-token&quot;) {
		return &quot;user123&quot;;
	}
	throw new Error(&quot;Invalid token&quot;);
}
">
<input type="hidden" name="project[files][src/backend/registry.ts]" value="import { actor, setup } from &quot;@rivetkit/actor&quot;;
import { authenticate } from &quot;./my-utils&quot;;

export type Note = { id: string; content: string; updatedAt: number };

export const notes = actor({
	onAuth: () =&gt; {},
	// Persistent state that survives restarts: https://rivet.gg/docs/actors/state
	state: {
		notes: [] as Note[],
	},

	actions: {
		// Callable functions from clients: https://rivet.gg/docs/actors/actions
		getNotes: (c) =&gt; c.state.notes,

		updateNote: (c, { id, content }: { id?: string; content: string }) =&gt; {
			const noteIndex = c.state.notes.findIndex((note) =&gt; note.id === id);
			let note: Note;

			if (noteIndex &gt;= 0) {
				// Update existing note
				note = c.state.notes[noteIndex];
				note.content = content;
				note.updatedAt = Date.now();
				// Send events to all connected clients: https://rivet.gg/docs/actors/events
				c.broadcast(&quot;noteUpdated&quot;, note);
			} else {
				// Create new note
				note = {
					id: id || `note-${Date.now()}`,
					content,
					updatedAt: Date.now(),
				};
				// State changes are automatically persisted
				c.state.notes.push(note);
				c.broadcast(&quot;noteAdded&quot;, note);
			}

			return note;
		},

		deleteNote: (c, { id }: { id: string }) =&gt; {
			const noteIndex = c.state.notes.findIndex((note) =&gt; note.id === id);
			if (noteIndex &gt;= 0) {
				c.state.notes.splice(noteIndex, 1);
				c.broadcast(&quot;noteDeleted&quot;, { id });
				return true;
			}
			return false;
		},
	},
});

// Register actors for use: https://rivet.gg/docs/setup
export const registry = setup({
	use: { notes },
});
">
<input type="hidden" name="project[files][src/backend/server.ts]" value="import { registry } from &quot;./registry&quot;;

registry.runServer({
	cors: {
		origin: &quot;http://localhost:5173&quot;,
	},
});
">
<input type="hidden" name="project[files][src/frontend/App.tsx]" value="import { createClient, createRivetKit } from &quot;@rivetkit/react&quot;;
import { useEffect, useState } from &quot;react&quot;;
import type { Note, registry } from &quot;../backend/registry&quot;;

const client = createClient&lt;typeof registry&gt;(&quot;http://localhost:8080&quot;);
const { useActor } = createRivetKit(client);

function NotesApp({ userId }: { userId: string }) {
	const [notes, setNotes] = useState&lt;Note[]&gt;([]);
	const [newNote, setNewNote] = useState(&quot;&quot;);
	const [editingNote, setEditingNote] = useState&lt;string | null&gt;(null);
	const [editContent, setEditContent] = useState(&quot;&quot;);

	const notesActor = useActor({
		name: &quot;notes&quot;,
		key: [userId],
		params: { userId, token: &quot;demo-token&quot; },
	});

	useEffect(() =&gt; {
		if (notesActor.connection) {
			notesActor.connection.getNotes().then(setNotes);
		}
	}, [notesActor.connection]);

	notesActor.useEvent(&quot;noteAdded&quot;, (note: Note) =&gt; {
		setNotes((prev) =&gt; [...prev, note]);
	});

	notesActor.useEvent(&quot;noteUpdated&quot;, (updatedNote: Note) =&gt; {
		setNotes((prev) =&gt;
			prev.map((note) =&gt; (note.id === updatedNote.id ? updatedNote : note))
		);
		setEditingNote(null);
	});

	notesActor.useEvent(&quot;noteDeleted&quot;, ({ id }: { id: string }) =&gt; {
		setNotes((prev) =&gt; prev.filter((note) =&gt; note.id !== id));
	});

	const addNote = async () =&gt; {
		if (notesActor.connection &amp;&amp; newNote.trim()) {
			await notesActor.connection.updateNote({ 
				id: `note-${Date.now()}`, 
				content: newNote 
			});
			setNewNote(&quot;&quot;);
		}
	};

	const startEdit = (note: Note) =&gt; {
		setEditingNote(note.id);
		setEditContent(note.content);
	};

	const saveEdit = async () =&gt; {
		if (notesActor.connection &amp;&amp; editingNote) {
			await notesActor.connection.updateNote({ 
				id: editingNote, 
				content: editContent 
			});
		}
	};

	const cancelEdit = () =&gt; {
		setEditingNote(null);
		setEditContent(&quot;&quot;);
	};

	const deleteNote = async (id: string) =&gt; {
		if (notesActor.connection &amp;&amp; confirm(&quot;Are you sure you want to delete this note?&quot;)) {
			await notesActor.connection.deleteNote({ id });
		}
	};

	const handleKeyPress = (e: React.KeyboardEvent, action: () =&gt; void) =&gt; {
		if (e.key === &quot;Enter&quot;) {
			action();
		}
	};

	return (
		&lt;div className=&quot;notes-section&quot;&gt;
			&lt;div className={`connection-status ${notesActor.connection ? &#39;connected&#39; : &#39;disconnected&#39;}`}&gt;
				{notesActor.connection ? &#39;✓ Connected&#39; : &#39;⚠ Disconnected&#39;}
			&lt;/div&gt;

			&lt;div className=&quot;add-note&quot;&gt;
				&lt;input
					type=&quot;text&quot;
					value={newNote}
					onChange={(e) =&gt; setNewNote(e.target.value)}
					onKeyPress={(e) =&gt; handleKeyPress(e, addNote)}
					placeholder=&quot;Enter a new note...&quot;
					disabled={!notesActor.connection}
				/&gt;
				&lt;button
					onClick={addNote}
					disabled={!notesActor.connection || !newNote.trim()}
				&gt;
					Add Note
				&lt;/button&gt;
			&lt;/div&gt;

			{notes.length === 0 ? (
				&lt;div className=&quot;empty-state&quot;&gt;
					No notes yet. Add your first note above!
				&lt;/div&gt;
			) : (
				&lt;ul className=&quot;notes-list&quot;&gt;
					{notes
						.sort((a, b) =&gt; b.updatedAt - a.updatedAt)
						.map((note) =&gt; (
						&lt;li 
							key={note.id} 
							className={`note-item ${editingNote === note.id ? &#39;edit-mode&#39; : &#39;&#39;}`}
						&gt;
							{editingNote === note.id ? (
								&lt;div style={{ width: &quot;100%&quot; }}&gt;
									&lt;input
										type=&quot;text&quot;
										value={editContent}
										onChange={(e) =&gt; setEditContent(e.target.value)}
										onKeyPress={(e) =&gt; handleKeyPress(e, saveEdit)}
										className=&quot;edit-input&quot;
										autoFocus
									/&gt;
									&lt;div className=&quot;edit-actions&quot;&gt;
										&lt;button onClick={saveEdit} className=&quot;save-btn&quot;&gt;
											Save
										&lt;/button&gt;
										&lt;button onClick={cancelEdit} className=&quot;cancel-btn&quot;&gt;
											Cancel
										&lt;/button&gt;
									&lt;/div&gt;
								&lt;/div&gt;
							) : (
								&lt;&gt;
									&lt;div className=&quot;note-content&quot;&gt;
										&lt;div&gt;{note.content}&lt;/div&gt;
										&lt;div className=&quot;note-meta&quot;&gt;
											Last updated: {new Date(note.updatedAt).toLocaleString()}
										&lt;/div&gt;
									&lt;/div&gt;
									&lt;div className=&quot;note-actions&quot;&gt;
										&lt;button
											onClick={() =&gt; startEdit(note)}
											className=&quot;edit-btn&quot;
										&gt;
											Edit
										&lt;/button&gt;
										&lt;button
											onClick={() =&gt; deleteNote(note.id)}
											className=&quot;delete-btn&quot;
										&gt;
											Delete
										&lt;/button&gt;
									&lt;/div&gt;
								&lt;/&gt;
							)}
						&lt;/li&gt;
					))}
				&lt;/ul&gt;
			)}
		&lt;/div&gt;
	);
}

export function App() {
	const [selectedUser, setSelectedUser] = useState(&quot;user1&quot;);

	const users = [
		{ id: &quot;user1&quot;, name: &quot;Alice&quot; },
		{ id: &quot;user2&quot;, name: &quot;Bob&quot; },
		{ id: &quot;user3&quot;, name: &quot;Charlie&quot; },
	];

	return (
		&lt;div className=&quot;app-container&quot;&gt;
			&lt;div className=&quot;header&quot;&gt;
				&lt;h1&gt;Database Notes&lt;/h1&gt;
				&lt;p&gt;Persistent note-taking with real-time updates&lt;/p&gt;
			&lt;/div&gt;

			&lt;div className=&quot;user-selector&quot;&gt;
				&lt;label&gt;Select User:&lt;/label&gt;
				&lt;select
					value={selectedUser}
					onChange={(e) =&gt; setSelectedUser(e.target.value)}
				&gt;
					{users.map((user) =&gt; (
						&lt;option key={user.id} value={user.id}&gt;
							{user.name} ({user.id})
						&lt;/option&gt;
					))}
				&lt;/select&gt;
			&lt;/div&gt;

			&lt;NotesApp key={selectedUser} userId={selectedUser} /&gt;
		&lt;/div&gt;
	);
}">
<input type="hidden" name="project[files][src/frontend/index.html]" value="&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &lt;title&gt;Database Notes Example&lt;/title&gt;
    &lt;style&gt;
        body {
            font-family: -apple-system, BlinkMacSystemFont, &#39;Segoe UI&#39;, Roboto, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .app-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .header {
            background: #007bff;
            color: white;
            padding: 20px;
            text-align: center;
        }
        .header h1 {
            margin: 0;
            font-size: 2em;
        }
        .header p {
            margin: 10px 0 0 0;
            opacity: 0.9;
        }
        .user-selector {
            padding: 20px;
            border-bottom: 1px solid #eee;
            background: #f8f9fa;
        }
        .user-selector label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        .user-selector select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        .notes-section {
            padding: 20px;
        }
        .add-note {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .add-note input {
            flex: 1;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
        }
        .add-note button {
            padding: 12px 24px;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
        }
        .add-note button:disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        .add-note button:hover:not(:disabled) {
            background: #218838;
        }
        .notes-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .note-item {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        .note-content {
            flex: 1;
            margin-right: 10px;
            word-wrap: break-word;
        }
        .note-meta {
            font-size: 0.85em;
            color: #666;
            margin-top: 5px;
        }
        .note-actions {
            display: flex;
            gap: 5px;
        }
        .note-actions button {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        .edit-btn {
            background: #ffc107;
            color: #212529;
        }
        .edit-btn:hover {
            background: #e0a800;
        }
        .delete-btn {
            background: #dc3545;
            color: white;
        }
        .delete-btn:hover {
            background: #c82333;
        }
        .empty-state {
            text-align: center;
            color: #666;
            padding: 40px;
            font-style: italic;
        }
        .connection-status {
            padding: 10px 20px;
            font-size: 0.9em;
            font-weight: 500;
        }
        .connection-status.connected {
            background: #d4edda;
            color: #155724;
        }
        .connection-status.disconnected {
            background: #f8d7da;
            color: #721c24;
        }
        .edit-mode {
            background: #fff3cd !important;
            border-color: #ffc107 !important;
        }
        .edit-input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ffc107;
            border-radius: 4px;
            font-size: 16px;
            margin-bottom: 10px;
        }
        .edit-actions {
            display: flex;
            gap: 5px;
        }
        .save-btn {
            background: #28a745;
            color: white;
        }
        .save-btn:hover {
            background: #218838;
        }
        .cancel-btn {
            background: #6c757d;
            color: white;
        }
        .cancel-btn:hover {
            background: #5a6268;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
    &lt;script type=&quot;module&quot; src=&quot;/main.tsx&quot;&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;">
<input type="hidden" name="project[files][src/frontend/main.tsx]" value="import { StrictMode } from &quot;react&quot;;
import { createRoot } from &quot;react-dom/client&quot;;
import { App } from &quot;./App&quot;;

const root = document.getElementById(&quot;root&quot;);
if (!root) throw new Error(&quot;Root element not found&quot;);

createRoot(root).render(
	&lt;StrictMode&gt;
		&lt;App /&gt;
	&lt;/StrictMode&gt;
);">
<input type="hidden" name="project[files][src/frontend/dist/index.html]" value="&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &lt;title&gt;Database Notes Example&lt;/title&gt;
    &lt;style&gt;
        body {
            font-family: -apple-system, BlinkMacSystemFont, &#39;Segoe UI&#39;, Roboto, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .app-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .header {
            background: #007bff;
            color: white;
            padding: 20px;
            text-align: center;
        }
        .header h1 {
            margin: 0;
            font-size: 2em;
        }
        .header p {
            margin: 10px 0 0 0;
            opacity: 0.9;
        }
        .user-selector {
            padding: 20px;
            border-bottom: 1px solid #eee;
            background: #f8f9fa;
        }
        .user-selector label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        .user-selector select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        .notes-section {
            padding: 20px;
        }
        .add-note {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .add-note input {
            flex: 1;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
        }
        .add-note button {
            padding: 12px 24px;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
        }
        .add-note button:disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        .add-note button:hover:not(:disabled) {
            background: #218838;
        }
        .notes-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .note-item {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        .note-content {
            flex: 1;
            margin-right: 10px;
            word-wrap: break-word;
        }
        .note-meta {
            font-size: 0.85em;
            color: #666;
            margin-top: 5px;
        }
        .note-actions {
            display: flex;
            gap: 5px;
        }
        .note-actions button {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        .edit-btn {
            background: #ffc107;
            color: #212529;
        }
        .edit-btn:hover {
            background: #e0a800;
        }
        .delete-btn {
            background: #dc3545;
            color: white;
        }
        .delete-btn:hover {
            background: #c82333;
        }
        .empty-state {
            text-align: center;
            color: #666;
            padding: 40px;
            font-style: italic;
        }
        .connection-status {
            padding: 10px 20px;
            font-size: 0.9em;
            font-weight: 500;
        }
        .connection-status.connected {
            background: #d4edda;
            color: #155724;
        }
        .connection-status.disconnected {
            background: #f8d7da;
            color: #721c24;
        }
        .edit-mode {
            background: #fff3cd !important;
            border-color: #ffc107 !important;
        }
        .edit-input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ffc107;
            border-radius: 4px;
            font-size: 16px;
            margin-bottom: 10px;
        }
        .edit-actions {
            display: flex;
            gap: 5px;
        }
        .save-btn {
            background: #28a745;
            color: white;
        }
        .save-btn:hover {
            background: #218838;
        }
        .cancel-btn {
            background: #6c757d;
            color: white;
        }
        .cancel-btn:hover {
            background: #5a6268;
        }
    &lt;/style&gt;
  &lt;script type=&quot;module&quot; crossorigin src=&quot;/assets/index-rfXCAurG.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;">
<input type="hidden" name="project[files][src/frontend/dist/assets/browser-DSyQa-bp.js]" value="import{g as a}from&quot;./index-rfXCAurG.js&quot;;function f(t,s){for(var o=0;o&lt;s.length;o++){const e=s[o];if(typeof e!=&quot;string&quot;&amp;&amp;!Array.isArray(e)){for(const r in e)if(r!==&quot;default&quot;&amp;&amp;!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&amp;&amp;Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=&gt;e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:&quot;Module&quot;}))}var c=function(){throw new Error(&quot;ws does not work in the browser. Browser clients must use the native WebSocket object&quot;)};const i=a(c),u=f({__proto__:null,default:i},[c]);export{u as b};
">
<input type="hidden" name="project[files][src/frontend/dist/assets/index-rfXCAurG.js]" value="var am=Object.defineProperty;var fc=e=&gt;{throw TypeError(e)};var um=(e,t,n)=&gt;t in e?am(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rt=(e,t,n)=&gt;um(e,typeof t!=&quot;symbol&quot;?t+&quot;&quot;:t,n),so=(e,t,n)=&gt;t.has(e)||fc(&quot;Cannot &quot;+n);var k=(e,t,n)=&gt;(so(e,t,&quot;read from private field&quot;),n?n.call(e):t.get(e)),le=(e,t,n)=&gt;t.has(e)?fc(&quot;Cannot add the same private member more than once&quot;):t instanceof WeakSet?t.add(e):t.set(e,n),oe=(e,t,n,r)=&gt;(so(e,t,&quot;write to private field&quot;),r?r.call(e,n):t.set(e,n),n),te=(e,t,n)=&gt;(so(e,t,&quot;access private method&quot;),n);(function(){const t=document.createElement(&quot;link&quot;).relList;if(t&amp;&amp;t.supports&amp;&amp;t.supports(&quot;modulepreload&quot;))return;for(const i of document.querySelectorAll(&#39;link[rel=&quot;modulepreload&quot;]&#39;))r(i);new MutationObserver(i=&gt;{for(const s of i)if(s.type===&quot;childList&quot;)for(const l of s.addedNodes)l.tagName===&quot;LINK&quot;&amp;&amp;l.rel===&quot;modulepreload&quot;&amp;&amp;r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&amp;&amp;(s.integrity=i.integrity),i.referrerPolicy&amp;&amp;(s.referrerPolicy=i.referrerPolicy),i.crossOrigin===&quot;use-credentials&quot;?s.credentials=&quot;include&quot;:i.crossOrigin===&quot;anonymous&quot;?s.credentials=&quot;omit&quot;:s.credentials=&quot;same-origin&quot;,s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function ad(e){return e&amp;&amp;e.__esModule&amp;&amp;Object.prototype.hasOwnProperty.call(e,&quot;default&quot;)?e.default:e}var ud={exports:{}},$l={},cd={exports:{}},X={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var os=Symbol.for(&quot;react.element&quot;),cm=Symbol.for(&quot;react.portal&quot;),fm=Symbol.for(&quot;react.fragment&quot;),dm=Symbol.for(&quot;react.strict_mode&quot;),hm=Symbol.for(&quot;react.profiler&quot;),pm=Symbol.for(&quot;react.provider&quot;),mm=Symbol.for(&quot;react.context&quot;),ym=Symbol.for(&quot;react.forward_ref&quot;),vm=Symbol.for(&quot;react.suspense&quot;),gm=Symbol.for(&quot;react.memo&quot;),wm=Symbol.for(&quot;react.lazy&quot;),dc=Symbol.iterator;function _m(e){return e===null||typeof e!=&quot;object&quot;?null:(e=dc&amp;&amp;e[dc]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var fd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dd=Object.assign,hd={};function ti(e,t,n){this.props=e,this.context=t,this.refs=hd,this.updater=n||fd}ti.prototype.isReactComponent={};ti.prototype.setState=function(e,t){if(typeof e!=&quot;object&quot;&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;e!=null)throw Error(&quot;setState(...): takes an object of state variables to update or a function which returns an object of state variables.&quot;);this.updater.enqueueSetState(this,e,t,&quot;setState&quot;)};ti.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,&quot;forceUpdate&quot;)};function pd(){}pd.prototype=ti.prototype;function au(e,t,n){this.props=e,this.context=t,this.refs=hd,this.updater=n||fd}var uu=au.prototype=new pd;uu.constructor=au;dd(uu,ti.prototype);uu.isPureReactComponent=!0;var hc=Array.isArray,md=Object.prototype.hasOwnProperty,cu={current:null},yd={key:!0,ref:!0,__self:!0,__source:!0};function vd(e,t,n){var r,i={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&amp;&amp;(l=t.ref),t.key!==void 0&amp;&amp;(s=&quot;&quot;+t.key),t)md.call(t,r)&amp;&amp;!yd.hasOwnProperty(r)&amp;&amp;(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1&lt;o){for(var a=Array(o),u=0;u&lt;o;u++)a[u]=arguments[u+2];i.children=a}if(e&amp;&amp;e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&amp;&amp;(i[r]=o[r]);return{$$typeof:os,type:e,key:s,ref:l,props:i,_owner:cu.current}}function xm(e,t){return{$$typeof:os,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fu(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.$$typeof===os}function km(e){var t={&quot;=&quot;:&quot;=0&quot;,&quot;:&quot;:&quot;=2&quot;};return&quot;$&quot;+e.replace(/[=:]/g,function(n){return t[n]})}var pc=/\/+/g;function lo(e,t){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.key!=null?km(&quot;&quot;+e.key):t.toString(36)}function js(e,t,n,r,i){var s=typeof e;(s===&quot;undefined&quot;||s===&quot;boolean&quot;)&amp;&amp;(e=null);var l=!1;if(e===null)l=!0;else switch(s){case&quot;string&quot;:case&quot;number&quot;:l=!0;break;case&quot;object&quot;:switch(e.$$typeof){case os:case cm:l=!0}}if(l)return l=e,i=i(l),e=r===&quot;&quot;?&quot;.&quot;+lo(l,0):r,hc(i)?(n=&quot;&quot;,e!=null&amp;&amp;(n=e.replace(pc,&quot;$&amp;/&quot;)+&quot;/&quot;),js(i,t,n,&quot;&quot;,function(u){return u})):i!=null&amp;&amp;(fu(i)&amp;&amp;(i=xm(i,n+(!i.key||l&amp;&amp;l.key===i.key?&quot;&quot;:(&quot;&quot;+i.key).replace(pc,&quot;$&amp;/&quot;)+&quot;/&quot;)+e)),t.push(i)),1;if(l=0,r=r===&quot;&quot;?&quot;.&quot;:r+&quot;:&quot;,hc(e))for(var o=0;o&lt;e.length;o++){s=e[o];var a=r+lo(s,o);l+=js(s,t,n,a,i)}else if(a=_m(e),typeof a==&quot;function&quot;)for(e=a.call(e),o=0;!(s=e.next()).done;)s=s.value,a=r+lo(s,o++),l+=js(s,t,n,a,i);else if(s===&quot;object&quot;)throw t=String(e),Error(&quot;Objects are not valid as a React child (found: &quot;+(t===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(e).join(&quot;, &quot;)+&quot;}&quot;:t)+&quot;). If you meant to render a collection of children, use an array instead.&quot;);return l}function ps(e,t,n){if(e==null)return e;var r=[],i=0;return js(e,r,&quot;&quot;,&quot;&quot;,function(s){return t.call(n,s,i++)}),r}function Sm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=2,e._result=n)}),e._status===-1&amp;&amp;(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var He={current:null},$s={transition:null},Em={ReactCurrentDispatcher:He,ReactCurrentBatchConfig:$s,ReactCurrentOwner:cu};function gd(){throw Error(&quot;act(...) is not supported in production builds of React.&quot;)}X.Children={map:ps,forEach:function(e,t,n){ps(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ps(e,function(){t++}),t},toArray:function(e){return ps(e,function(t){return t})||[]},only:function(e){if(!fu(e))throw Error(&quot;React.Children.only expected to receive a single React element child.&quot;);return e}};X.Component=ti;X.Fragment=fm;X.Profiler=hm;X.PureComponent=au;X.StrictMode=dm;X.Suspense=vm;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Em;X.act=gd;X.cloneElement=function(e,t,n){if(e==null)throw Error(&quot;React.cloneElement(...): The argument must be a React element, but you passed &quot;+e+&quot;.&quot;);var r=dd({},e.props),i=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&amp;&amp;(s=t.ref,l=cu.current),t.key!==void 0&amp;&amp;(i=&quot;&quot;+t.key),e.type&amp;&amp;e.type.defaultProps)var o=e.type.defaultProps;for(a in t)md.call(t,a)&amp;&amp;!yd.hasOwnProperty(a)&amp;&amp;(r[a]=t[a]===void 0&amp;&amp;o!==void 0?o[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1&lt;a){o=Array(a);for(var u=0;u&lt;a;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:os,type:e.type,key:i,ref:s,props:r,_owner:l}};X.createContext=function(e){return e={$$typeof:mm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pm,_context:e},e.Consumer=e};X.createElement=vd;X.createFactory=function(e){var t=vd.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:ym,render:e}};X.isValidElement=fu;X.lazy=function(e){return{$$typeof:wm,_payload:{_status:-1,_result:e},_init:Sm}};X.memo=function(e,t){return{$$typeof:gm,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=$s.transition;$s.transition={};try{e()}finally{$s.transition=t}};X.unstable_act=gd;X.useCallback=function(e,t){return He.current.useCallback(e,t)};X.useContext=function(e){return He.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return He.current.useDeferredValue(e)};X.useEffect=function(e,t){return He.current.useEffect(e,t)};X.useId=function(){return He.current.useId()};X.useImperativeHandle=function(e,t,n){return He.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return He.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return He.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return He.current.useMemo(e,t)};X.useReducer=function(e,t,n){return He.current.useReducer(e,t,n)};X.useRef=function(e){return He.current.useRef(e)};X.useState=function(e){return He.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return He.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return He.current.useTransition()};X.version=&quot;18.3.1&quot;;cd.exports=X;var Fe=cd.exports;/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Cm=Fe,Om=Symbol.for(&quot;react.element&quot;),Tm=Symbol.for(&quot;react.fragment&quot;),Nm=Object.prototype.hasOwnProperty,Rm=Cm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Am={key:!0,ref:!0,__self:!0,__source:!0};function wd(e,t,n){var r,i={},s=null,l=null;n!==void 0&amp;&amp;(s=&quot;&quot;+n),t.key!==void 0&amp;&amp;(s=&quot;&quot;+t.key),t.ref!==void 0&amp;&amp;(l=t.ref);for(r in t)Nm.call(t,r)&amp;&amp;!Am.hasOwnProperty(r)&amp;&amp;(i[r]=t[r]);if(e&amp;&amp;e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&amp;&amp;(i[r]=t[r]);return{$$typeof:Om,type:e,key:s,ref:l,props:i,_owner:Rm.current}}$l.Fragment=Tm;$l.jsx=wd;$l.jsxs=wd;ud.exports=$l;var ie=ud.exports,_d={exports:{}},at={},xd={exports:{}},kd={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(S,I){var P=S.length;S.push(I);e:for(;0&lt;P;){var W=P-1&gt;&gt;&gt;1,H=S[W];if(0&lt;i(H,I))S[W]=I,S[P]=H,P=W;else break e}}function n(S){return S.length===0?null:S[0]}function r(S){if(S.length===0)return null;var I=S[0],P=S.pop();if(P!==I){S[0]=P;e:for(var W=0,H=S.length,Pn=H&gt;&gt;&gt;1;W&lt;Pn;){var Ln=2*(W+1)-1,io=S[Ln],Dn=Ln+1,hs=S[Dn];if(0&gt;i(io,P))Dn&lt;H&amp;&amp;0&gt;i(hs,io)?(S[W]=hs,S[Dn]=P,W=Dn):(S[W]=io,S[Ln]=P,W=Ln);else if(Dn&lt;H&amp;&amp;0&gt;i(hs,P))S[W]=hs,S[Dn]=P,W=Dn;else break e}}return I}function i(S,I){var P=S.sortIndex-I.sortIndex;return P!==0?P:S.id-I.id}if(typeof performance==&quot;object&quot;&amp;&amp;typeof performance.now==&quot;function&quot;){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var a=[],u=[],c=1,m=null,y=3,w=!1,_=!1,E=!1,L=typeof setTimeout==&quot;function&quot;?setTimeout:null,h=typeof clearTimeout==&quot;function&quot;?clearTimeout:null,f=typeof setImmediate&lt;&quot;u&quot;?setImmediate:null;typeof navigator&lt;&quot;u&quot;&amp;&amp;navigator.scheduling!==void 0&amp;&amp;navigator.scheduling.isInputPending!==void 0&amp;&amp;navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(S){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime&lt;=S)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function O(S){if(E=!1,p(S),!_)if(n(a)!==null)_=!0,R(D);else{var I=n(u);I!==null&amp;&amp;C(O,I.startTime-S)}}function D(S,I){_=!1,E&amp;&amp;(E=!1,h(B),B=-1),w=!0;var P=y;try{for(p(I),m=n(a);m!==null&amp;&amp;(!(m.expirationTime&gt;I)||S&amp;&amp;!Qe());){var W=m.callback;if(typeof W==&quot;function&quot;){m.callback=null,y=m.priorityLevel;var H=W(m.expirationTime&lt;=I);I=e.unstable_now(),typeof H==&quot;function&quot;?m.callback=H:m===n(a)&amp;&amp;r(a),p(I)}else r(a);m=n(a)}if(m!==null)var Pn=!0;else{var Ln=n(u);Ln!==null&amp;&amp;C(O,Ln.startTime-I),Pn=!1}return Pn}finally{m=null,y=P,w=!1}}var U=!1,V=null,B=-1,ce=5,G=-1;function Qe(){return!(e.unstable_now()-G&lt;ce)}function qt(){if(V!==null){var S=e.unstable_now();G=S;var I=!0;try{I=V(!0,S)}finally{I?v():(U=!1,V=null)}}else U=!1}var v;if(typeof f==&quot;function&quot;)v=function(){f(qt)};else if(typeof MessageChannel&lt;&quot;u&quot;){var j=new MessageChannel,T=j.port2;j.port1.onmessage=qt,v=function(){T.postMessage(null)}}else v=function(){L(qt,0)};function R(S){V=S,U||(U=!0,v())}function C(S,I){B=L(function(){S(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(S){S.callback=null},e.unstable_continueExecution=function(){_||w||(_=!0,R(D))},e.unstable_forceFrameRate=function(S){0&gt;S||125&lt;S?console.error(&quot;forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported&quot;):ce=0&lt;S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(S){switch(y){case 1:case 2:case 3:var I=3;break;default:I=y}var P=y;y=I;try{return S()}finally{y=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(S,I){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var P=y;y=S;try{return I()}finally{y=P}},e.unstable_scheduleCallback=function(S,I,P){var W=e.unstable_now();switch(typeof P==&quot;object&quot;&amp;&amp;P!==null?(P=P.delay,P=typeof P==&quot;number&quot;&amp;&amp;0&lt;P?W+P:W):P=W,S){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=P+H,S={id:c++,callback:I,priorityLevel:S,startTime:P,expirationTime:H,sortIndex:-1},P&gt;W?(S.sortIndex=P,t(u,S),n(a)===null&amp;&amp;S===n(u)&amp;&amp;(E?(h(B),B=-1):E=!0,C(O,P-W))):(S.sortIndex=H,t(a,S),_||w||(_=!0,R(D))),S},e.unstable_shouldYield=Qe,e.unstable_wrapCallback=function(S){var I=y;return function(){var P=y;y=I;try{return S.apply(this,arguments)}finally{y=P}}}})(kd);xd.exports=kd;var Im=xd.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pm=Fe,lt=Im;function N(e){for(var t=&quot;https://reactjs.org/docs/error-decoder.html?invariant=&quot;+e,n=1;n&lt;arguments.length;n++)t+=&quot;&amp;args[]=&quot;+encodeURIComponent(arguments[n]);return&quot;Minified React error #&quot;+e+&quot;; visit &quot;+t+&quot; for the full message or use the non-minified dev environment for full errors and additional helpful warnings.&quot;}var Sd=new Set,Di={};function lr(e,t){Vr(e,t),Vr(e+&quot;Capture&quot;,t)}function Vr(e,t){for(Di[e]=t,e=0;e&lt;t.length;e++)Sd.add(t[e])}var Qt=!(typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;),Wo=Object.prototype.hasOwnProperty,Lm=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,mc={},yc={};function Dm(e){return Wo.call(yc,e)?!0:Wo.call(mc,e)?!1:Lm.test(e)?yc[e]=!0:(mc[e]=!0,!1)}function Mm(e,t,n,r){if(n!==null&amp;&amp;n.type===0)return!1;switch(typeof t){case&quot;function&quot;:case&quot;symbol&quot;:return!0;case&quot;boolean&quot;:return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!==&quot;data-&quot;&amp;&amp;e!==&quot;aria-&quot;);default:return!1}}function zm(e,t,n,r){if(t===null||typeof t&gt;&quot;u&quot;||Mm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1&gt;t}return!1}function Ke(e,t,n,r,i,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var ze={};&quot;children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style&quot;.split(&quot; &quot;).forEach(function(e){ze[e]=new Ke(e,0,!1,e,null,!1,!1)});[[&quot;acceptCharset&quot;,&quot;accept-charset&quot;],[&quot;className&quot;,&quot;class&quot;],[&quot;htmlFor&quot;,&quot;for&quot;],[&quot;httpEquiv&quot;,&quot;http-equiv&quot;]].forEach(function(e){var t=e[0];ze[t]=new Ke(t,1,!1,e[1],null,!1,!1)});[&quot;contentEditable&quot;,&quot;draggable&quot;,&quot;spellCheck&quot;,&quot;value&quot;].forEach(function(e){ze[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});[&quot;autoReverse&quot;,&quot;externalResourcesRequired&quot;,&quot;focusable&quot;,&quot;preserveAlpha&quot;].forEach(function(e){ze[e]=new Ke(e,2,!1,e,null,!1,!1)});&quot;allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope&quot;.split(&quot; &quot;).forEach(function(e){ze[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});[&quot;checked&quot;,&quot;multiple&quot;,&quot;muted&quot;,&quot;selected&quot;].forEach(function(e){ze[e]=new Ke(e,3,!0,e,null,!1,!1)});[&quot;capture&quot;,&quot;download&quot;].forEach(function(e){ze[e]=new Ke(e,4,!1,e,null,!1,!1)});[&quot;cols&quot;,&quot;rows&quot;,&quot;size&quot;,&quot;span&quot;].forEach(function(e){ze[e]=new Ke(e,6,!1,e,null,!1,!1)});[&quot;rowSpan&quot;,&quot;start&quot;].forEach(function(e){ze[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var du=/[\-:]([a-z])/g;function hu(e){return e[1].toUpperCase()}&quot;accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(du,hu);ze[t]=new Ke(t,1,!1,e,null,!1,!1)});&quot;xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(du,hu);ze[t]=new Ke(t,1,!1,e,&quot;http://www.w3.org/1999/xlink&quot;,!1,!1)});[&quot;xml:base&quot;,&quot;xml:lang&quot;,&quot;xml:space&quot;].forEach(function(e){var t=e.replace(du,hu);ze[t]=new Ke(t,1,!1,e,&quot;http://www.w3.org/XML/1998/namespace&quot;,!1,!1)});[&quot;tabIndex&quot;,&quot;crossOrigin&quot;].forEach(function(e){ze[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new Ke(&quot;xlinkHref&quot;,1,!1,&quot;xlink:href&quot;,&quot;http://www.w3.org/1999/xlink&quot;,!0,!1);[&quot;src&quot;,&quot;href&quot;,&quot;action&quot;,&quot;formAction&quot;].forEach(function(e){ze[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function pu(e,t,n,r){var i=ze.hasOwnProperty(t)?ze[t]:null;(i!==null?i.type!==0:r||!(2&lt;t.length)||t[0]!==&quot;o&quot;&amp;&amp;t[0]!==&quot;O&quot;||t[1]!==&quot;n&quot;&amp;&amp;t[1]!==&quot;N&quot;)&amp;&amp;(zm(t,n,i,r)&amp;&amp;(n=null),r||i===null?Dm(t)&amp;&amp;(n===null?e.removeAttribute(t):e.setAttribute(t,&quot;&quot;+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:&quot;&quot;:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&amp;&amp;n===!0?&quot;&quot;:&quot;&quot;+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Xt=Pm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ms=Symbol.for(&quot;react.element&quot;),dr=Symbol.for(&quot;react.portal&quot;),hr=Symbol.for(&quot;react.fragment&quot;),mu=Symbol.for(&quot;react.strict_mode&quot;),Zo=Symbol.for(&quot;react.profiler&quot;),Ed=Symbol.for(&quot;react.provider&quot;),Cd=Symbol.for(&quot;react.context&quot;),yu=Symbol.for(&quot;react.forward_ref&quot;),Ho=Symbol.for(&quot;react.suspense&quot;),Ko=Symbol.for(&quot;react.suspense_list&quot;),vu=Symbol.for(&quot;react.memo&quot;),nn=Symbol.for(&quot;react.lazy&quot;),Od=Symbol.for(&quot;react.offscreen&quot;),vc=Symbol.iterator;function ii(e){return e===null||typeof e!=&quot;object&quot;?null:(e=vc&amp;&amp;e[vc]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var ge=Object.assign,oo;function mi(e){if(oo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oo=t&amp;&amp;t[1]||&quot;&quot;}return`
`+oo+e}var ao=!1;function uo(e,t){if(!e||ao)return&quot;&quot;;ao=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,&quot;props&quot;,{set:function(){throw Error()}}),typeof Reflect==&quot;object&quot;&amp;&amp;Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&amp;&amp;r&amp;&amp;typeof u.stack==&quot;string&quot;){for(var i=u.stack.split(`
`),s=r.stack.split(`
`),l=i.length-1,o=s.length-1;1&lt;=l&amp;&amp;0&lt;=o&amp;&amp;i[l]!==s[o];)o--;for(;1&lt;=l&amp;&amp;0&lt;=o;l--,o--)if(i[l]!==s[o]){if(l!==1||o!==1)do if(l--,o--,0&gt;o||i[l]!==s[o]){var a=`
`+i[l].replace(&quot; at new &quot;,&quot; at &quot;);return e.displayName&amp;&amp;a.includes(&quot;&lt;anonymous&gt;&quot;)&amp;&amp;(a=a.replace(&quot;&lt;anonymous&gt;&quot;,e.displayName)),a}while(1&lt;=l&amp;&amp;0&lt;=o);break}}}finally{ao=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:&quot;&quot;)?mi(e):&quot;&quot;}function Um(e){switch(e.tag){case 5:return mi(e.type);case 16:return mi(&quot;Lazy&quot;);case 13:return mi(&quot;Suspense&quot;);case 19:return mi(&quot;SuspenseList&quot;);case 0:case 2:case 15:return e=uo(e.type,!1),e;case 11:return e=uo(e.type.render,!1),e;case 1:return e=uo(e.type,!0),e;default:return&quot;&quot;}}function Qo(e){if(e==null)return null;if(typeof e==&quot;function&quot;)return e.displayName||e.name||null;if(typeof e==&quot;string&quot;)return e;switch(e){case hr:return&quot;Fragment&quot;;case dr:return&quot;Portal&quot;;case Zo:return&quot;Profiler&quot;;case mu:return&quot;StrictMode&quot;;case Ho:return&quot;Suspense&quot;;case Ko:return&quot;SuspenseList&quot;}if(typeof e==&quot;object&quot;)switch(e.$$typeof){case Cd:return(e.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case Ed:return(e._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||&quot;&quot;,e=e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;),e;case vu:return t=e.displayName||null,t!==null?t:Qo(e.type)||&quot;Memo&quot;;case nn:t=e._payload,e=e._init;try{return Qo(e(t))}catch{}}return null}function jm(e){var t=e.type;switch(e.tag){case 24:return&quot;Cache&quot;;case 9:return(t.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case 10:return(t._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case 18:return&quot;DehydratedFragment&quot;;case 11:return e=t.render,e=e.displayName||e.name||&quot;&quot;,t.displayName||(e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;);case 7:return&quot;Fragment&quot;;case 5:return t;case 4:return&quot;Portal&quot;;case 3:return&quot;Root&quot;;case 6:return&quot;Text&quot;;case 16:return Qo(t);case 8:return t===mu?&quot;StrictMode&quot;:&quot;Mode&quot;;case 22:return&quot;Offscreen&quot;;case 12:return&quot;Profiler&quot;;case 21:return&quot;Scope&quot;;case 13:return&quot;Suspense&quot;;case 19:return&quot;SuspenseList&quot;;case 25:return&quot;TracingMarker&quot;;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==&quot;function&quot;)return t.displayName||t.name||null;if(typeof t==&quot;string&quot;)return t}return null}function Cn(e){switch(typeof e){case&quot;boolean&quot;:case&quot;number&quot;:case&quot;string&quot;:case&quot;undefined&quot;:return e;case&quot;object&quot;:return e;default:return&quot;&quot;}}function Td(e){var t=e.type;return(e=e.nodeName)&amp;&amp;e.toLowerCase()===&quot;input&quot;&amp;&amp;(t===&quot;checkbox&quot;||t===&quot;radio&quot;)}function $m(e){var t=Td(e)?&quot;checked&quot;:&quot;value&quot;,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=&quot;&quot;+e[t];if(!e.hasOwnProperty(t)&amp;&amp;typeof n&lt;&quot;u&quot;&amp;&amp;typeof n.get==&quot;function&quot;&amp;&amp;typeof n.set==&quot;function&quot;){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=&quot;&quot;+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=&quot;&quot;+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ys(e){e._valueTracker||(e._valueTracker=$m(e))}function Nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=&quot;&quot;;return e&amp;&amp;(r=Td(e)?e.checked?&quot;true&quot;:&quot;false&quot;:e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rl(e){if(e=e||(typeof document&lt;&quot;u&quot;?document:void 0),typeof e&gt;&quot;u&quot;)return null;try{return e.activeElement||e.body}catch{return e.body}}function bo(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gc(e,t){var n=t.defaultValue==null?&quot;&quot;:t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===&quot;checkbox&quot;||t.type===&quot;radio&quot;?t.checked!=null:t.value!=null}}function Rd(e,t){t=t.checked,t!=null&amp;&amp;pu(e,&quot;checked&quot;,t,!1)}function Jo(e,t){Rd(e,t);var n=Cn(t.value),r=t.type;if(n!=null)r===&quot;number&quot;?(n===0&amp;&amp;e.value===&quot;&quot;||e.value!=n)&amp;&amp;(e.value=&quot;&quot;+n):e.value!==&quot;&quot;+n&amp;&amp;(e.value=&quot;&quot;+n);else if(r===&quot;submit&quot;||r===&quot;reset&quot;){e.removeAttribute(&quot;value&quot;);return}t.hasOwnProperty(&quot;value&quot;)?Go(e,t.type,n):t.hasOwnProperty(&quot;defaultValue&quot;)&amp;&amp;Go(e,t.type,Cn(t.defaultValue)),t.checked==null&amp;&amp;t.defaultChecked!=null&amp;&amp;(e.defaultChecked=!!t.defaultChecked)}function wc(e,t,n){if(t.hasOwnProperty(&quot;value&quot;)||t.hasOwnProperty(&quot;defaultValue&quot;)){var r=t.type;if(!(r!==&quot;submit&quot;&amp;&amp;r!==&quot;reset&quot;||t.value!==void 0&amp;&amp;t.value!==null))return;t=&quot;&quot;+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==&quot;&quot;&amp;&amp;(e.name=&quot;&quot;),e.defaultChecked=!!e._wrapperState.initialChecked,n!==&quot;&quot;&amp;&amp;(e.name=n)}function Go(e,t,n){(t!==&quot;number&quot;||rl(e.ownerDocument)!==e)&amp;&amp;(n==null?e.defaultValue=&quot;&quot;+e._wrapperState.initialValue:e.defaultValue!==&quot;&quot;+n&amp;&amp;(e.defaultValue=&quot;&quot;+n))}var yi=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i&lt;n.length;i++)t[&quot;$&quot;+n[i]]=!0;for(n=0;n&lt;e.length;n++)i=t.hasOwnProperty(&quot;$&quot;+e[n].value),e[n].selected!==i&amp;&amp;(e[n].selected=i),i&amp;&amp;r&amp;&amp;(e[n].defaultSelected=!0)}else{for(n=&quot;&quot;+Cn(n),t=null,i=0;i&lt;e.length;i++){if(e[i].value===n){e[i].selected=!0,r&amp;&amp;(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&amp;&amp;(t.selected=!0)}}function Yo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return ge({},t,{value:void 0,defaultValue:void 0,children:&quot;&quot;+e._wrapperState.initialValue})}function _c(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(yi(n)){if(1&lt;n.length)throw Error(N(93));n=n[0]}t=n}t==null&amp;&amp;(t=&quot;&quot;),n=t}e._wrapperState={initialValue:Cn(n)}}function Ad(e,t){var n=Cn(t.value),r=Cn(t.defaultValue);n!=null&amp;&amp;(n=&quot;&quot;+n,n!==e.value&amp;&amp;(e.value=n),t.defaultValue==null&amp;&amp;e.defaultValue!==n&amp;&amp;(e.defaultValue=n)),r!=null&amp;&amp;(e.defaultValue=&quot;&quot;+r)}function xc(e){var t=e.textContent;t===e._wrapperState.initialValue&amp;&amp;t!==&quot;&quot;&amp;&amp;t!==null&amp;&amp;(e.value=t)}function Id(e){switch(e){case&quot;svg&quot;:return&quot;http://www.w3.org/2000/svg&quot;;case&quot;math&quot;:return&quot;http://www.w3.org/1998/Math/MathML&quot;;default:return&quot;http://www.w3.org/1999/xhtml&quot;}}function Xo(e,t){return e==null||e===&quot;http://www.w3.org/1999/xhtml&quot;?Id(t):e===&quot;http://www.w3.org/2000/svg&quot;&amp;&amp;t===&quot;foreignObject&quot;?&quot;http://www.w3.org/1999/xhtml&quot;:e}var vs,Pd=function(e){return typeof MSApp&lt;&quot;u&quot;&amp;&amp;MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==&quot;http://www.w3.org/2000/svg&quot;||&quot;innerHTML&quot;in e)e.innerHTML=t;else{for(vs=vs||document.createElement(&quot;div&quot;),vs.innerHTML=&quot;&lt;svg&gt;&quot;+t.valueOf().toString()+&quot;&lt;/svg&gt;&quot;,t=vs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mi(e,t){if(t){var n=e.firstChild;if(n&amp;&amp;n===e.lastChild&amp;&amp;n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Si={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fm=[&quot;Webkit&quot;,&quot;ms&quot;,&quot;Moz&quot;,&quot;O&quot;];Object.keys(Si).forEach(function(e){Fm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Si[t]=Si[e]})});function Ld(e,t,n){return t==null||typeof t==&quot;boolean&quot;||t===&quot;&quot;?&quot;&quot;:n||typeof t!=&quot;number&quot;||t===0||Si.hasOwnProperty(e)&amp;&amp;Si[e]?(&quot;&quot;+t).trim():t+&quot;px&quot;}function Dd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf(&quot;--&quot;)===0,i=Ld(n,t[n],r);n===&quot;float&quot;&amp;&amp;(n=&quot;cssFloat&quot;),r?e.setProperty(n,i):e[n]=i}}var Vm=ge({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qo(e,t){if(t){if(Vm[e]&amp;&amp;(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!=&quot;object&quot;||!(&quot;__html&quot;in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&amp;&amp;typeof t.style!=&quot;object&quot;)throw Error(N(62))}}function ea(e,t){if(e.indexOf(&quot;-&quot;)===-1)return typeof t.is==&quot;string&quot;;switch(e){case&quot;annotation-xml&quot;:case&quot;color-profile&quot;:case&quot;font-face&quot;:case&quot;font-face-src&quot;:case&quot;font-face-uri&quot;:case&quot;font-face-format&quot;:case&quot;font-face-name&quot;:case&quot;missing-glyph&quot;:return!1;default:return!0}}var ta=null;function gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&amp;&amp;(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,Tr=null,Nr=null;function kc(e){if(e=cs(e)){if(typeof na!=&quot;function&quot;)throw Error(N(280));var t=e.stateNode;t&amp;&amp;(t=Zl(t),na(e.stateNode,e.type,t))}}function Md(e){Tr?Nr?Nr.push(e):Nr=[e]:Tr=e}function zd(){if(Tr){var e=Tr,t=Nr;if(Nr=Tr=null,kc(e),t)for(e=0;e&lt;t.length;e++)kc(t[e])}}function Ud(e,t){return e(t)}function jd(){}var co=!1;function $d(e,t,n){if(co)return e(t,n);co=!0;try{return Ud(e,t,n)}finally{co=!1,(Tr!==null||Nr!==null)&amp;&amp;(jd(),zd())}}function zi(e,t){var n=e.stateNode;if(n===null)return null;var r=Zl(n);if(r===null)return null;n=r[t];e:switch(t){case&quot;onClick&quot;:case&quot;onClickCapture&quot;:case&quot;onDoubleClick&quot;:case&quot;onDoubleClickCapture&quot;:case&quot;onMouseDown&quot;:case&quot;onMouseDownCapture&quot;:case&quot;onMouseMove&quot;:case&quot;onMouseMoveCapture&quot;:case&quot;onMouseUp&quot;:case&quot;onMouseUpCapture&quot;:case&quot;onMouseEnter&quot;:(r=!r.disabled)||(e=e.type,r=!(e===&quot;button&quot;||e===&quot;input&quot;||e===&quot;select&quot;||e===&quot;textarea&quot;)),e=!r;break e;default:e=!1}if(e)return null;if(n&amp;&amp;typeof n!=&quot;function&quot;)throw Error(N(231,t,typeof n));return n}var ra=!1;if(Qt)try{var si={};Object.defineProperty(si,&quot;passive&quot;,{get:function(){ra=!0}}),window.addEventListener(&quot;test&quot;,si,si),window.removeEventListener(&quot;test&quot;,si,si)}catch{ra=!1}function Bm(e,t,n,r,i,s,l,o,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ei=!1,il=null,sl=!1,ia=null,Wm={onError:function(e){Ei=!0,il=e}};function Zm(e,t,n,r,i,s,l,o,a){Ei=!1,il=null,Bm.apply(Wm,arguments)}function Hm(e,t,n,r,i,s,l,o,a){if(Zm.apply(this,arguments),Ei){if(Ei){var u=il;Ei=!1,il=null}else throw Error(N(198));sl||(sl=!0,ia=u)}}function or(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&amp;4098&amp;&amp;(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Fd(e){if(e.tag===13){var t=e.memoizedState;if(t===null&amp;&amp;(e=e.alternate,e!==null&amp;&amp;(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Sc(e){if(or(e)!==e)throw Error(N(188))}function Km(e){var t=e.alternate;if(!t){if(t=or(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Sc(i),e;if(s===r)return Sc(i),t;s=s.sibling}throw Error(N(188))}if(n.return!==r.return)n=i,r=s;else{for(var l=!1,o=i.child;o;){if(o===n){l=!0,n=i,r=s;break}if(o===r){l=!0,r=i,n=s;break}o=o.sibling}if(!l){for(o=s.child;o;){if(o===n){l=!0,n=s,r=i;break}if(o===r){l=!0,r=s,n=i;break}o=o.sibling}if(!l)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function Vd(e){return e=Km(e),e!==null?Bd(e):null}function Bd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Bd(e);if(t!==null)return t;e=e.sibling}return null}var Wd=lt.unstable_scheduleCallback,Ec=lt.unstable_cancelCallback,Qm=lt.unstable_shouldYield,bm=lt.unstable_requestPaint,Se=lt.unstable_now,Jm=lt.unstable_getCurrentPriorityLevel,wu=lt.unstable_ImmediatePriority,Zd=lt.unstable_UserBlockingPriority,ll=lt.unstable_NormalPriority,Gm=lt.unstable_LowPriority,Hd=lt.unstable_IdlePriority,Fl=null,zt=null;function Ym(e){if(zt&amp;&amp;typeof zt.onCommitFiberRoot==&quot;function&quot;)try{zt.onCommitFiberRoot(Fl,e,void 0,(e.current.flags&amp;128)===128)}catch{}}var Ot=Math.clz32?Math.clz32:ey,Xm=Math.log,qm=Math.LN2;function ey(e){return e&gt;&gt;&gt;=0,e===0?32:31-(Xm(e)/qm|0)|0}var gs=64,ws=4194304;function vi(e){switch(e&amp;-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&amp;4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&amp;130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,l=n&amp;268435455;if(l!==0){var o=l&amp;~i;o!==0?r=vi(o):(s&amp;=l,s!==0&amp;&amp;(r=vi(s)))}else l=n&amp;~i,l!==0?r=vi(l):s!==0&amp;&amp;(r=vi(s));if(r===0)return 0;if(t!==0&amp;&amp;t!==r&amp;&amp;!(t&amp;i)&amp;&amp;(i=r&amp;-r,s=t&amp;-t,i&gt;=s||i===16&amp;&amp;(s&amp;4194240)!==0))return t;if(r&amp;4&amp;&amp;(r|=n&amp;16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&amp;=r;0&lt;t;)n=31-Ot(t),i=1&lt;&lt;n,r|=e[n],t&amp;=~i;return r}function ty(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ny(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0&lt;s;){var l=31-Ot(s),o=1&lt;&lt;l,a=i[l];a===-1?(!(o&amp;n)||o&amp;r)&amp;&amp;(i[l]=ty(o,t)):a&lt;=t&amp;&amp;(e.expiredLanes|=o),s&amp;=~o}}function sa(e){return e=e.pendingLanes&amp;-1073741825,e!==0?e:e&amp;1073741824?1073741824:0}function Kd(){var e=gs;return gs&lt;&lt;=1,!(gs&amp;4194240)&amp;&amp;(gs=64),e}function fo(e){for(var t=[],n=0;31&gt;n;n++)t.push(e);return t}function as(e,t,n){e.pendingLanes|=t,t!==536870912&amp;&amp;(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function ry(e,t){var n=e.pendingLanes&amp;~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&amp;=t,e.mutableReadLanes&amp;=t,e.entangledLanes&amp;=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0&lt;n;){var i=31-Ot(n),s=1&lt;&lt;i;t[i]=0,r[i]=-1,e[i]=-1,n&amp;=~s}}function _u(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ot(n),i=1&lt;&lt;r;i&amp;t|e[r]&amp;t&amp;&amp;(e[r]|=t),n&amp;=~i}}var ae=0;function Qd(e){return e&amp;=-e,1&lt;e?4&lt;e?e&amp;268435455?16:536870912:4:1}var bd,xu,Jd,Gd,Yd,la=!1,_s=[],mn=null,yn=null,vn=null,Ui=new Map,ji=new Map,ln=[],iy=&quot;mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit&quot;.split(&quot; &quot;);function Cc(e,t){switch(e){case&quot;focusin&quot;:case&quot;focusout&quot;:mn=null;break;case&quot;dragenter&quot;:case&quot;dragleave&quot;:yn=null;break;case&quot;mouseover&quot;:case&quot;mouseout&quot;:vn=null;break;case&quot;pointerover&quot;:case&quot;pointerout&quot;:Ui.delete(t.pointerId);break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:ji.delete(t.pointerId)}}function li(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&amp;&amp;(t=cs(t),t!==null&amp;&amp;xu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&amp;&amp;t.indexOf(i)===-1&amp;&amp;t.push(i),e)}function sy(e,t,n,r,i){switch(t){case&quot;focusin&quot;:return mn=li(mn,e,t,n,r,i),!0;case&quot;dragenter&quot;:return yn=li(yn,e,t,n,r,i),!0;case&quot;mouseover&quot;:return vn=li(vn,e,t,n,r,i),!0;case&quot;pointerover&quot;:var s=i.pointerId;return Ui.set(s,li(Ui.get(s)||null,e,t,n,r,i)),!0;case&quot;gotpointercapture&quot;:return s=i.pointerId,ji.set(s,li(ji.get(s)||null,e,t,n,r,i)),!0}return!1}function Xd(e){var t=Fn(e.target);if(t!==null){var n=or(t);if(n!==null){if(t=n.tag,t===13){if(t=Fd(n),t!==null){e.blockedOn=t,Yd(e.priority,function(){Jd(n)});return}}else if(t===3&amp;&amp;n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0&lt;t.length;){var n=oa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ta=r,n.target.dispatchEvent(r),ta=null}else return t=cs(n),t!==null&amp;&amp;xu(t),e.blockedOn=n,!1;t.shift()}return!0}function Oc(e,t,n){Fs(e)&amp;&amp;n.delete(t)}function ly(){la=!1,mn!==null&amp;&amp;Fs(mn)&amp;&amp;(mn=null),yn!==null&amp;&amp;Fs(yn)&amp;&amp;(yn=null),vn!==null&amp;&amp;Fs(vn)&amp;&amp;(vn=null),Ui.forEach(Oc),ji.forEach(Oc)}function oi(e,t){e.blockedOn===t&amp;&amp;(e.blockedOn=null,la||(la=!0,lt.unstable_scheduleCallback(lt.unstable_NormalPriority,ly)))}function $i(e){function t(i){return oi(i,e)}if(0&lt;_s.length){oi(_s[0],e);for(var n=1;n&lt;_s.length;n++){var r=_s[n];r.blockedOn===e&amp;&amp;(r.blockedOn=null)}}for(mn!==null&amp;&amp;oi(mn,e),yn!==null&amp;&amp;oi(yn,e),vn!==null&amp;&amp;oi(vn,e),Ui.forEach(t),ji.forEach(t),n=0;n&lt;ln.length;n++)r=ln[n],r.blockedOn===e&amp;&amp;(r.blockedOn=null);for(;0&lt;ln.length&amp;&amp;(n=ln[0],n.blockedOn===null);)Xd(n),n.blockedOn===null&amp;&amp;ln.shift()}var Rr=Xt.ReactCurrentBatchConfig,al=!0;function oy(e,t,n,r){var i=ae,s=Rr.transition;Rr.transition=null;try{ae=1,ku(e,t,n,r)}finally{ae=i,Rr.transition=s}}function ay(e,t,n,r){var i=ae,s=Rr.transition;Rr.transition=null;try{ae=4,ku(e,t,n,r)}finally{ae=i,Rr.transition=s}}function ku(e,t,n,r){if(al){var i=oa(e,t,n,r);if(i===null)ko(e,t,r,ul,n),Cc(e,r);else if(sy(i,e,t,n,r))r.stopPropagation();else if(Cc(e,r),t&amp;4&amp;&amp;-1&lt;iy.indexOf(e)){for(;i!==null;){var s=cs(i);if(s!==null&amp;&amp;bd(s),s=oa(e,t,n,r),s===null&amp;&amp;ko(e,t,r,ul,n),s===i)break;i=s}i!==null&amp;&amp;r.stopPropagation()}else ko(e,t,r,null,n)}}var ul=null;function oa(e,t,n,r){if(ul=null,e=gu(r),e=Fn(e),e!==null)if(t=or(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Fd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&amp;&amp;(e=null);return ul=e,null}function qd(e){switch(e){case&quot;cancel&quot;:case&quot;click&quot;:case&quot;close&quot;:case&quot;contextmenu&quot;:case&quot;copy&quot;:case&quot;cut&quot;:case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;dragend&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:case&quot;focusin&quot;:case&quot;focusout&quot;:case&quot;input&quot;:case&quot;invalid&quot;:case&quot;keydown&quot;:case&quot;keypress&quot;:case&quot;keyup&quot;:case&quot;mousedown&quot;:case&quot;mouseup&quot;:case&quot;paste&quot;:case&quot;pause&quot;:case&quot;play&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointerup&quot;:case&quot;ratechange&quot;:case&quot;reset&quot;:case&quot;resize&quot;:case&quot;seeked&quot;:case&quot;submit&quot;:case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchstart&quot;:case&quot;volumechange&quot;:case&quot;change&quot;:case&quot;selectionchange&quot;:case&quot;textInput&quot;:case&quot;compositionstart&quot;:case&quot;compositionend&quot;:case&quot;compositionupdate&quot;:case&quot;beforeblur&quot;:case&quot;afterblur&quot;:case&quot;beforeinput&quot;:case&quot;blur&quot;:case&quot;fullscreenchange&quot;:case&quot;focus&quot;:case&quot;hashchange&quot;:case&quot;popstate&quot;:case&quot;select&quot;:case&quot;selectstart&quot;:return 1;case&quot;drag&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;mousemove&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;scroll&quot;:case&quot;toggle&quot;:case&quot;touchmove&quot;:case&quot;wheel&quot;:case&quot;mouseenter&quot;:case&quot;mouseleave&quot;:case&quot;pointerenter&quot;:case&quot;pointerleave&quot;:return 4;case&quot;message&quot;:switch(Jm()){case wu:return 1;case Zd:return 4;case ll:case Gm:return 16;case Hd:return 536870912;default:return 16}default:return 16}}var dn=null,Su=null,Vs=null;function eh(){if(Vs)return Vs;var e,t=Su,n=t.length,r,i=&quot;value&quot;in dn?dn.value:dn.textContent,s=i.length;for(e=0;e&lt;n&amp;&amp;t[e]===i[e];e++);var l=n-e;for(r=1;r&lt;=l&amp;&amp;t[n-r]===i[s-r];r++);return Vs=i.slice(e,1&lt;r?1-r:void 0)}function Bs(e){var t=e.keyCode;return&quot;charCode&quot;in e?(e=e.charCode,e===0&amp;&amp;t===13&amp;&amp;(e=13)):e=t,e===10&amp;&amp;(e=13),32&lt;=e||e===13?e:0}function xs(){return!0}function Tc(){return!1}function ut(e){function t(n,r,i,s,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&amp;&amp;(n=e[o],this[o]=n?n(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?xs:Tc,this.isPropagationStopped=Tc,this}return ge(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&amp;&amp;(n.preventDefault?n.preventDefault():typeof n.returnValue!=&quot;unknown&quot;&amp;&amp;(n.returnValue=!1),this.isDefaultPrevented=xs)},stopPropagation:function(){var n=this.nativeEvent;n&amp;&amp;(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=&quot;unknown&quot;&amp;&amp;(n.cancelBubble=!0),this.isPropagationStopped=xs)},persist:function(){},isPersistent:xs}),t}var ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eu=ut(ni),us=ge({},ni,{view:0,detail:0}),uy=ut(us),ho,po,ai,Vl=ge({},us,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return&quot;movementX&quot;in e?e.movementX:(e!==ai&amp;&amp;(ai&amp;&amp;e.type===&quot;mousemove&quot;?(ho=e.screenX-ai.screenX,po=e.screenY-ai.screenY):po=ho=0,ai=e),ho)},movementY:function(e){return&quot;movementY&quot;in e?e.movementY:po}}),Nc=ut(Vl),cy=ge({},Vl,{dataTransfer:0}),fy=ut(cy),dy=ge({},us,{relatedTarget:0}),mo=ut(dy),hy=ge({},ni,{animationName:0,elapsedTime:0,pseudoElement:0}),py=ut(hy),my=ge({},ni,{clipboardData:function(e){return&quot;clipboardData&quot;in e?e.clipboardData:window.clipboardData}}),yy=ut(my),vy=ge({},ni,{data:0}),Rc=ut(vy),gy={Esc:&quot;Escape&quot;,Spacebar:&quot; &quot;,Left:&quot;ArrowLeft&quot;,Up:&quot;ArrowUp&quot;,Right:&quot;ArrowRight&quot;,Down:&quot;ArrowDown&quot;,Del:&quot;Delete&quot;,Win:&quot;OS&quot;,Menu:&quot;ContextMenu&quot;,Apps:&quot;ContextMenu&quot;,Scroll:&quot;ScrollLock&quot;,MozPrintableKey:&quot;Unidentified&quot;},wy={8:&quot;Backspace&quot;,9:&quot;Tab&quot;,12:&quot;Clear&quot;,13:&quot;Enter&quot;,16:&quot;Shift&quot;,17:&quot;Control&quot;,18:&quot;Alt&quot;,19:&quot;Pause&quot;,20:&quot;CapsLock&quot;,27:&quot;Escape&quot;,32:&quot; &quot;,33:&quot;PageUp&quot;,34:&quot;PageDown&quot;,35:&quot;End&quot;,36:&quot;Home&quot;,37:&quot;ArrowLeft&quot;,38:&quot;ArrowUp&quot;,39:&quot;ArrowRight&quot;,40:&quot;ArrowDown&quot;,45:&quot;Insert&quot;,46:&quot;Delete&quot;,112:&quot;F1&quot;,113:&quot;F2&quot;,114:&quot;F3&quot;,115:&quot;F4&quot;,116:&quot;F5&quot;,117:&quot;F6&quot;,118:&quot;F7&quot;,119:&quot;F8&quot;,120:&quot;F9&quot;,121:&quot;F10&quot;,122:&quot;F11&quot;,123:&quot;F12&quot;,144:&quot;NumLock&quot;,145:&quot;ScrollLock&quot;,224:&quot;Meta&quot;},_y={Alt:&quot;altKey&quot;,Control:&quot;ctrlKey&quot;,Meta:&quot;metaKey&quot;,Shift:&quot;shiftKey&quot;};function xy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_y[e])?!!t[e]:!1}function Cu(){return xy}var ky=ge({},us,{key:function(e){if(e.key){var t=gy[e.key]||e.key;if(t!==&quot;Unidentified&quot;)return t}return e.type===&quot;keypress&quot;?(e=Bs(e),e===13?&quot;Enter&quot;:String.fromCharCode(e)):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?wy[e.keyCode]||&quot;Unidentified&quot;:&quot;&quot;},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cu,charCode:function(e){return e.type===&quot;keypress&quot;?Bs(e):0},keyCode:function(e){return e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0},which:function(e){return e.type===&quot;keypress&quot;?Bs(e):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0}}),Sy=ut(ky),Ey=ge({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ac=ut(Ey),Cy=ge({},us,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cu}),Oy=ut(Cy),Ty=ge({},ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ny=ut(Ty),Ry=ge({},Vl,{deltaX:function(e){return&quot;deltaX&quot;in e?e.deltaX:&quot;wheelDeltaX&quot;in e?-e.wheelDeltaX:0},deltaY:function(e){return&quot;deltaY&quot;in e?e.deltaY:&quot;wheelDeltaY&quot;in e?-e.wheelDeltaY:&quot;wheelDelta&quot;in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ay=ut(Ry),Iy=[9,13,27,32],Ou=Qt&amp;&amp;&quot;CompositionEvent&quot;in window,Ci=null;Qt&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;(Ci=document.documentMode);var Py=Qt&amp;&amp;&quot;TextEvent&quot;in window&amp;&amp;!Ci,th=Qt&amp;&amp;(!Ou||Ci&amp;&amp;8&lt;Ci&amp;&amp;11&gt;=Ci),Ic=&quot; &quot;,Pc=!1;function nh(e,t){switch(e){case&quot;keyup&quot;:return Iy.indexOf(t.keyCode)!==-1;case&quot;keydown&quot;:return t.keyCode!==229;case&quot;keypress&quot;:case&quot;mousedown&quot;:case&quot;focusout&quot;:return!0;default:return!1}}function rh(e){return e=e.detail,typeof e==&quot;object&quot;&amp;&amp;&quot;data&quot;in e?e.data:null}var pr=!1;function Ly(e,t){switch(e){case&quot;compositionend&quot;:return rh(t);case&quot;keypress&quot;:return t.which!==32?null:(Pc=!0,Ic);case&quot;textInput&quot;:return e=t.data,e===Ic&amp;&amp;Pc?null:e;default:return null}}function Dy(e,t){if(pr)return e===&quot;compositionend&quot;||!Ou&amp;&amp;nh(e,t)?(e=eh(),Vs=Su=dn=null,pr=!1,e):null;switch(e){case&quot;paste&quot;:return null;case&quot;keypress&quot;:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&amp;&amp;t.altKey){if(t.char&amp;&amp;1&lt;t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case&quot;compositionend&quot;:return th&amp;&amp;t.locale!==&quot;ko&quot;?null:t.data;default:return null}}var My={color:!0,date:!0,datetime:!0,&quot;datetime-local&quot;:!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Lc(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t===&quot;input&quot;?!!My[e.type]:t===&quot;textarea&quot;}function ih(e,t,n,r){Md(r),t=cl(t,&quot;onChange&quot;),0&lt;t.length&amp;&amp;(n=new Eu(&quot;onChange&quot;,&quot;change&quot;,null,n,r),e.push({event:n,listeners:t}))}var Oi=null,Fi=null;function zy(e){mh(e,0)}function Bl(e){var t=vr(e);if(Nd(t))return e}function Uy(e,t){if(e===&quot;change&quot;)return t}var sh=!1;if(Qt){var yo;if(Qt){var vo=&quot;oninput&quot;in document;if(!vo){var Dc=document.createElement(&quot;div&quot;);Dc.setAttribute(&quot;oninput&quot;,&quot;return;&quot;),vo=typeof Dc.oninput==&quot;function&quot;}yo=vo}else yo=!1;sh=yo&amp;&amp;(!document.documentMode||9&lt;document.documentMode)}function Mc(){Oi&amp;&amp;(Oi.detachEvent(&quot;onpropertychange&quot;,lh),Fi=Oi=null)}function lh(e){if(e.propertyName===&quot;value&quot;&amp;&amp;Bl(Fi)){var t=[];ih(t,Fi,e,gu(e)),$d(zy,t)}}function jy(e,t,n){e===&quot;focusin&quot;?(Mc(),Oi=t,Fi=n,Oi.attachEvent(&quot;onpropertychange&quot;,lh)):e===&quot;focusout&quot;&amp;&amp;Mc()}function $y(e){if(e===&quot;selectionchange&quot;||e===&quot;keyup&quot;||e===&quot;keydown&quot;)return Bl(Fi)}function Fy(e,t){if(e===&quot;click&quot;)return Bl(t)}function Vy(e,t){if(e===&quot;input&quot;||e===&quot;change&quot;)return Bl(t)}function By(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Nt=typeof Object.is==&quot;function&quot;?Object.is:By;function Vi(e,t){if(Nt(e,t))return!0;if(typeof e!=&quot;object&quot;||e===null||typeof t!=&quot;object&quot;||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r&lt;n.length;r++){var i=n[r];if(!Wo.call(t,i)||!Nt(e[i],t[i]))return!1}return!0}function zc(e){for(;e&amp;&amp;e.firstChild;)e=e.firstChild;return e}function Uc(e,t){var n=zc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e&lt;=t&amp;&amp;r&gt;=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zc(n)}}function oh(e,t){return e&amp;&amp;t?e===t?!0:e&amp;&amp;e.nodeType===3?!1:t&amp;&amp;t.nodeType===3?oh(e,t.parentNode):&quot;contains&quot;in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&amp;16):!1:!1}function ah(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==&quot;string&quot;}catch{n=!1}if(n)e=t.contentWindow;else break;t=rl(e.document)}return t}function Tu(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t&amp;&amp;(t===&quot;input&quot;&amp;&amp;(e.type===&quot;text&quot;||e.type===&quot;search&quot;||e.type===&quot;tel&quot;||e.type===&quot;url&quot;||e.type===&quot;password&quot;)||t===&quot;textarea&quot;||e.contentEditable===&quot;true&quot;)}function Wy(e){var t=ah(),n=e.focusedElem,r=e.selectionRange;if(t!==n&amp;&amp;n&amp;&amp;n.ownerDocument&amp;&amp;oh(n.ownerDocument.documentElement,n)){if(r!==null&amp;&amp;Tu(n)){if(t=r.start,e=r.end,e===void 0&amp;&amp;(e=t),&quot;selectionStart&quot;in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&amp;&amp;t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&amp;&amp;s&gt;r&amp;&amp;(i=r,r=s,s=i),i=Uc(n,s);var l=Uc(n,r);i&amp;&amp;l&amp;&amp;(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&amp;&amp;(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s&gt;r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&amp;&amp;t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==&quot;function&quot;&amp;&amp;n.focus(),n=0;n&lt;t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zy=Qt&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;11&gt;=document.documentMode,mr=null,aa=null,Ti=null,ua=!1;function jc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ua||mr==null||mr!==rl(r)||(r=mr,&quot;selectionStart&quot;in r&amp;&amp;Tu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&amp;&amp;r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ti&amp;&amp;Vi(Ti,r)||(Ti=r,r=cl(aa,&quot;onSelect&quot;),0&lt;r.length&amp;&amp;(t=new Eu(&quot;onSelect&quot;,&quot;select&quot;,null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function ks(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[&quot;Webkit&quot;+e]=&quot;webkit&quot;+t,n[&quot;Moz&quot;+e]=&quot;moz&quot;+t,n}var yr={animationend:ks(&quot;Animation&quot;,&quot;AnimationEnd&quot;),animationiteration:ks(&quot;Animation&quot;,&quot;AnimationIteration&quot;),animationstart:ks(&quot;Animation&quot;,&quot;AnimationStart&quot;),transitionend:ks(&quot;Transition&quot;,&quot;TransitionEnd&quot;)},go={},uh={};Qt&amp;&amp;(uh=document.createElement(&quot;div&quot;).style,&quot;AnimationEvent&quot;in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),&quot;TransitionEvent&quot;in window||delete yr.transitionend.transition);function Wl(e){if(go[e])return go[e];if(!yr[e])return e;var t=yr[e],n;for(n in t)if(t.hasOwnProperty(n)&amp;&amp;n in uh)return go[e]=t[n];return e}var ch=Wl(&quot;animationend&quot;),fh=Wl(&quot;animationiteration&quot;),dh=Wl(&quot;animationstart&quot;),hh=Wl(&quot;transitionend&quot;),ph=new Map,$c=&quot;abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel&quot;.split(&quot; &quot;);function Rn(e,t){ph.set(e,t),lr(t,[e])}for(var wo=0;wo&lt;$c.length;wo++){var _o=$c[wo],Hy=_o.toLowerCase(),Ky=_o[0].toUpperCase()+_o.slice(1);Rn(Hy,&quot;on&quot;+Ky)}Rn(ch,&quot;onAnimationEnd&quot;);Rn(fh,&quot;onAnimationIteration&quot;);Rn(dh,&quot;onAnimationStart&quot;);Rn(&quot;dblclick&quot;,&quot;onDoubleClick&quot;);Rn(&quot;focusin&quot;,&quot;onFocus&quot;);Rn(&quot;focusout&quot;,&quot;onBlur&quot;);Rn(hh,&quot;onTransitionEnd&quot;);Vr(&quot;onMouseEnter&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);Vr(&quot;onMouseLeave&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);Vr(&quot;onPointerEnter&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);Vr(&quot;onPointerLeave&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);lr(&quot;onChange&quot;,&quot;change click focusin focusout input keydown keyup selectionchange&quot;.split(&quot; &quot;));lr(&quot;onSelect&quot;,&quot;focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange&quot;.split(&quot; &quot;));lr(&quot;onBeforeInput&quot;,[&quot;compositionend&quot;,&quot;keypress&quot;,&quot;textInput&quot;,&quot;paste&quot;]);lr(&quot;onCompositionEnd&quot;,&quot;compositionend focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));lr(&quot;onCompositionStart&quot;,&quot;compositionstart focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));lr(&quot;onCompositionUpdate&quot;,&quot;compositionupdate focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));var gi=&quot;abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting&quot;.split(&quot; &quot;),Qy=new Set(&quot;cancel close invalid load scroll toggle&quot;.split(&quot; &quot;).concat(gi));function Fc(e,t,n){var r=e.type||&quot;unknown-event&quot;;e.currentTarget=n,Hm(r,t,void 0,e),e.currentTarget=null}function mh(e,t){t=(t&amp;4)!==0;for(var n=0;n&lt;e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var l=r.length-1;0&lt;=l;l--){var o=r[l],a=o.instance,u=o.currentTarget;if(o=o.listener,a!==s&amp;&amp;i.isPropagationStopped())break e;Fc(i,o,u),s=a}else for(l=0;l&lt;r.length;l++){if(o=r[l],a=o.instance,u=o.currentTarget,o=o.listener,a!==s&amp;&amp;i.isPropagationStopped())break e;Fc(i,o,u),s=a}}}if(sl)throw e=ia,sl=!1,ia=null,e}function fe(e,t){var n=t[pa];n===void 0&amp;&amp;(n=t[pa]=new Set);var r=e+&quot;__bubble&quot;;n.has(r)||(yh(t,e,2,!1),n.add(r))}function xo(e,t,n){var r=0;t&amp;&amp;(r|=4),yh(n,e,r,t)}var Ss=&quot;_reactListening&quot;+Math.random().toString(36).slice(2);function Bi(e){if(!e[Ss]){e[Ss]=!0,Sd.forEach(function(n){n!==&quot;selectionchange&quot;&amp;&amp;(Qy.has(n)||xo(n,!1,e),xo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ss]||(t[Ss]=!0,xo(&quot;selectionchange&quot;,!1,t))}}function yh(e,t,n,r){switch(qd(t)){case 1:var i=oy;break;case 4:i=ay;break;default:i=ku}n=i.bind(null,t,n,e),i=void 0,!ra||t!==&quot;touchstart&quot;&amp;&amp;t!==&quot;touchmove&quot;&amp;&amp;t!==&quot;wheel&quot;||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ko(e,t,n,r,i){var s=r;if(!(t&amp;1)&amp;&amp;!(t&amp;2)&amp;&amp;r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&amp;&amp;o.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&amp;&amp;(a=l.stateNode.containerInfo,a===i||a.nodeType===8&amp;&amp;a.parentNode===i))return;l=l.return}for(;o!==null;){if(l=Fn(o),l===null)return;if(a=l.tag,a===5||a===6){r=s=l;continue e}o=o.parentNode}}r=r.return}$d(function(){var u=s,c=gu(n),m=[];e:{var y=ph.get(e);if(y!==void 0){var w=Eu,_=e;switch(e){case&quot;keypress&quot;:if(Bs(n)===0)break e;case&quot;keydown&quot;:case&quot;keyup&quot;:w=Sy;break;case&quot;focusin&quot;:_=&quot;focus&quot;,w=mo;break;case&quot;focusout&quot;:_=&quot;blur&quot;,w=mo;break;case&quot;beforeblur&quot;:case&quot;afterblur&quot;:w=mo;break;case&quot;click&quot;:if(n.button===2)break e;case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;mousedown&quot;:case&quot;mousemove&quot;:case&quot;mouseup&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;contextmenu&quot;:w=Nc;break;case&quot;drag&quot;:case&quot;dragend&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:w=fy;break;case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchmove&quot;:case&quot;touchstart&quot;:w=Oy;break;case ch:case fh:case dh:w=py;break;case hh:w=Ny;break;case&quot;scroll&quot;:w=uy;break;case&quot;wheel&quot;:w=Ay;break;case&quot;copy&quot;:case&quot;cut&quot;:case&quot;paste&quot;:w=yy;break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;pointerup&quot;:w=Ac}var E=(t&amp;4)!==0,L=!E&amp;&amp;e===&quot;scroll&quot;,h=E?y!==null?y+&quot;Capture&quot;:null:y;E=[];for(var f=u,p;f!==null;){p=f;var O=p.stateNode;if(p.tag===5&amp;&amp;O!==null&amp;&amp;(p=O,h!==null&amp;&amp;(O=zi(f,h),O!=null&amp;&amp;E.push(Wi(f,O,p)))),L)break;f=f.return}0&lt;E.length&amp;&amp;(y=new w(y,_,null,n,c),m.push({event:y,listeners:E}))}}if(!(t&amp;7)){e:{if(y=e===&quot;mouseover&quot;||e===&quot;pointerover&quot;,w=e===&quot;mouseout&quot;||e===&quot;pointerout&quot;,y&amp;&amp;n!==ta&amp;&amp;(_=n.relatedTarget||n.fromElement)&amp;&amp;(Fn(_)||_[bt]))break e;if((w||y)&amp;&amp;(y=c.window===c?c:(y=c.ownerDocument)?y.defaultView||y.parentWindow:window,w?(_=n.relatedTarget||n.toElement,w=u,_=_?Fn(_):null,_!==null&amp;&amp;(L=or(_),_!==L||_.tag!==5&amp;&amp;_.tag!==6)&amp;&amp;(_=null)):(w=null,_=u),w!==_)){if(E=Nc,O=&quot;onMouseLeave&quot;,h=&quot;onMouseEnter&quot;,f=&quot;mouse&quot;,(e===&quot;pointerout&quot;||e===&quot;pointerover&quot;)&amp;&amp;(E=Ac,O=&quot;onPointerLeave&quot;,h=&quot;onPointerEnter&quot;,f=&quot;pointer&quot;),L=w==null?y:vr(w),p=_==null?y:vr(_),y=new E(O,f+&quot;leave&quot;,w,n,c),y.target=L,y.relatedTarget=p,O=null,Fn(c)===u&amp;&amp;(E=new E(h,f+&quot;enter&quot;,_,n,c),E.target=p,E.relatedTarget=L,O=E),L=O,w&amp;&amp;_)t:{for(E=w,h=_,f=0,p=E;p;p=ar(p))f++;for(p=0,O=h;O;O=ar(O))p++;for(;0&lt;f-p;)E=ar(E),f--;for(;0&lt;p-f;)h=ar(h),p--;for(;f--;){if(E===h||h!==null&amp;&amp;E===h.alternate)break t;E=ar(E),h=ar(h)}E=null}else E=null;w!==null&amp;&amp;Vc(m,y,w,E,!1),_!==null&amp;&amp;L!==null&amp;&amp;Vc(m,L,_,E,!0)}}e:{if(y=u?vr(u):window,w=y.nodeName&amp;&amp;y.nodeName.toLowerCase(),w===&quot;select&quot;||w===&quot;input&quot;&amp;&amp;y.type===&quot;file&quot;)var D=Uy;else if(Lc(y))if(sh)D=Vy;else{D=$y;var U=jy}else(w=y.nodeName)&amp;&amp;w.toLowerCase()===&quot;input&quot;&amp;&amp;(y.type===&quot;checkbox&quot;||y.type===&quot;radio&quot;)&amp;&amp;(D=Fy);if(D&amp;&amp;(D=D(e,u))){ih(m,D,n,c);break e}U&amp;&amp;U(e,y,u),e===&quot;focusout&quot;&amp;&amp;(U=y._wrapperState)&amp;&amp;U.controlled&amp;&amp;y.type===&quot;number&quot;&amp;&amp;Go(y,&quot;number&quot;,y.value)}switch(U=u?vr(u):window,e){case&quot;focusin&quot;:(Lc(U)||U.contentEditable===&quot;true&quot;)&amp;&amp;(mr=U,aa=u,Ti=null);break;case&quot;focusout&quot;:Ti=aa=mr=null;break;case&quot;mousedown&quot;:ua=!0;break;case&quot;contextmenu&quot;:case&quot;mouseup&quot;:case&quot;dragend&quot;:ua=!1,jc(m,n,c);break;case&quot;selectionchange&quot;:if(Zy)break;case&quot;keydown&quot;:case&quot;keyup&quot;:jc(m,n,c)}var V;if(Ou)e:{switch(e){case&quot;compositionstart&quot;:var B=&quot;onCompositionStart&quot;;break e;case&quot;compositionend&quot;:B=&quot;onCompositionEnd&quot;;break e;case&quot;compositionupdate&quot;:B=&quot;onCompositionUpdate&quot;;break e}B=void 0}else pr?nh(e,n)&amp;&amp;(B=&quot;onCompositionEnd&quot;):e===&quot;keydown&quot;&amp;&amp;n.keyCode===229&amp;&amp;(B=&quot;onCompositionStart&quot;);B&amp;&amp;(th&amp;&amp;n.locale!==&quot;ko&quot;&amp;&amp;(pr||B!==&quot;onCompositionStart&quot;?B===&quot;onCompositionEnd&quot;&amp;&amp;pr&amp;&amp;(V=eh()):(dn=c,Su=&quot;value&quot;in dn?dn.value:dn.textContent,pr=!0)),U=cl(u,B),0&lt;U.length&amp;&amp;(B=new Rc(B,e,null,n,c),m.push({event:B,listeners:U}),V?B.data=V:(V=rh(n),V!==null&amp;&amp;(B.data=V)))),(V=Py?Ly(e,n):Dy(e,n))&amp;&amp;(u=cl(u,&quot;onBeforeInput&quot;),0&lt;u.length&amp;&amp;(c=new Rc(&quot;onBeforeInput&quot;,&quot;beforeinput&quot;,null,n,c),m.push({event:c,listeners:u}),c.data=V))}mh(m,t)})}function Wi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cl(e,t){for(var n=t+&quot;Capture&quot;,r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&amp;&amp;s!==null&amp;&amp;(i=s,s=zi(e,n),s!=null&amp;&amp;r.unshift(Wi(e,s,i)),s=zi(e,t),s!=null&amp;&amp;r.push(Wi(e,s,i))),e=e.return}return r}function ar(e){if(e===null)return null;do e=e.return;while(e&amp;&amp;e.tag!==5);return e||null}function Vc(e,t,n,r,i){for(var s=t._reactName,l=[];n!==null&amp;&amp;n!==r;){var o=n,a=o.alternate,u=o.stateNode;if(a!==null&amp;&amp;a===r)break;o.tag===5&amp;&amp;u!==null&amp;&amp;(o=u,i?(a=zi(n,s),a!=null&amp;&amp;l.unshift(Wi(n,a,o))):i||(a=zi(n,s),a!=null&amp;&amp;l.push(Wi(n,a,o)))),n=n.return}l.length!==0&amp;&amp;e.push({event:t,listeners:l})}var by=/\r\n?/g,Jy=/\u0000|\uFFFD/g;function Bc(e){return(typeof e==&quot;string&quot;?e:&quot;&quot;+e).replace(by,`
`).replace(Jy,&quot;&quot;)}function Es(e,t,n){if(t=Bc(t),Bc(e)!==t&amp;&amp;n)throw Error(N(425))}function fl(){}var ca=null,fa=null;function da(e,t){return e===&quot;textarea&quot;||e===&quot;noscript&quot;||typeof t.children==&quot;string&quot;||typeof t.children==&quot;number&quot;||typeof t.dangerouslySetInnerHTML==&quot;object&quot;&amp;&amp;t.dangerouslySetInnerHTML!==null&amp;&amp;t.dangerouslySetInnerHTML.__html!=null}var ha=typeof setTimeout==&quot;function&quot;?setTimeout:void 0,Gy=typeof clearTimeout==&quot;function&quot;?clearTimeout:void 0,Wc=typeof Promise==&quot;function&quot;?Promise:void 0,Yy=typeof queueMicrotask==&quot;function&quot;?queueMicrotask:typeof Wc&lt;&quot;u&quot;?function(e){return Wc.resolve(null).then(e).catch(Xy)}:ha;function Xy(e){setTimeout(function(){throw e})}function So(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&amp;&amp;i.nodeType===8)if(n=i.data,n===&quot;/$&quot;){if(r===0){e.removeChild(i),$i(t);return}r--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$?&quot;&amp;&amp;n!==&quot;$!&quot;||r++;n=i}while(n);$i(t)}function gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===&quot;$&quot;||t===&quot;$!&quot;||t===&quot;$?&quot;)break;if(t===&quot;/$&quot;)return null}}return e}function Zc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;$&quot;||n===&quot;$!&quot;||n===&quot;$?&quot;){if(t===0)return e;t--}else n===&quot;/$&quot;&amp;&amp;t++}e=e.previousSibling}return null}var ri=Math.random().toString(36).slice(2),Mt=&quot;__reactFiber$&quot;+ri,Zi=&quot;__reactProps$&quot;+ri,bt=&quot;__reactContainer$&quot;+ri,pa=&quot;__reactEvents$&quot;+ri,qy=&quot;__reactListeners$&quot;+ri,ev=&quot;__reactHandles$&quot;+ri;function Fn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&amp;&amp;n.child!==null)for(e=Zc(e);e!==null;){if(n=e[Mt])return n;e=Zc(e)}return t}e=n,n=e.parentNode}return null}function cs(e){return e=e[Mt]||e[bt],!e||e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==13&amp;&amp;e.tag!==3?null:e}function vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Zl(e){return e[Zi]||null}var ma=[],gr=-1;function An(e){return{current:e}}function pe(e){0&gt;gr||(e.current=ma[gr],ma[gr]=null,gr--)}function ue(e,t){gr++,ma[gr]=e.current,e.current=t}var On={},Ve=An(On),Ye=An(!1),qn=On;function Br(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&amp;&amp;r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xe(e){return e=e.childContextTypes,e!=null}function dl(){pe(Ye),pe(Ve)}function Hc(e,t,n){if(Ve.current!==On)throw Error(N(168));ue(Ve,t),ue(Ye,n)}function vh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!=&quot;function&quot;)return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(N(108,jm(e)||&quot;Unknown&quot;,i));return ge({},n,r)}function hl(e){return e=(e=e.stateNode)&amp;&amp;e.__reactInternalMemoizedMergedChildContext||On,qn=Ve.current,ue(Ve,e),ue(Ye,Ye.current),!0}function Kc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=vh(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,pe(Ye),pe(Ve),ue(Ve,e)):pe(Ye),ue(Ye,n)}var Vt=null,Hl=!1,Eo=!1;function gh(e){Vt===null?Vt=[e]:Vt.push(e)}function tv(e){Hl=!0,gh(e)}function In(){if(!Eo&amp;&amp;Vt!==null){Eo=!0;var e=0,t=ae;try{var n=Vt;for(ae=1;e&lt;n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vt=null,Hl=!1}catch(i){throw Vt!==null&amp;&amp;(Vt=Vt.slice(e+1)),Wd(wu,In),i}finally{ae=t,Eo=!1}}return null}var wr=[],_r=0,pl=null,ml=0,ct=[],ft=0,er=null,Zt=1,Ht=&quot;&quot;;function zn(e,t){wr[_r++]=ml,wr[_r++]=pl,pl=e,ml=t}function wh(e,t,n){ct[ft++]=Zt,ct[ft++]=Ht,ct[ft++]=er,er=e;var r=Zt;e=Ht;var i=32-Ot(r)-1;r&amp;=~(1&lt;&lt;i),n+=1;var s=32-Ot(t)+i;if(30&lt;s){var l=i-i%5;s=(r&amp;(1&lt;&lt;l)-1).toString(32),r&gt;&gt;=l,i-=l,Zt=1&lt;&lt;32-Ot(t)+i|n&lt;&lt;i|r,Ht=s+e}else Zt=1&lt;&lt;s|n&lt;&lt;i|r,Ht=e}function Nu(e){e.return!==null&amp;&amp;(zn(e,1),wh(e,1,0))}function Ru(e){for(;e===pl;)pl=wr[--_r],wr[_r]=null,ml=wr[--_r],wr[_r]=null;for(;e===er;)er=ct[--ft],ct[ft]=null,Ht=ct[--ft],ct[ft]=null,Zt=ct[--ft],ct[ft]=null}var st=null,rt=null,me=!1,Ct=null;function _h(e,t){var n=mt(5,null,null,0);n.elementType=&quot;DELETED&quot;,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Qc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,st=e,rt=gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===&quot;&quot;||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=er!==null?{id:Zt,overflow:Ht}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,rt=null,!0):!1;default:return!1}}function ya(e){return(e.mode&amp;1)!==0&amp;&amp;(e.flags&amp;128)===0}function va(e){if(me){var t=rt;if(t){var n=t;if(!Qc(e,t)){if(ya(e))throw Error(N(418));t=gn(n.nextSibling);var r=st;t&amp;&amp;Qc(e,t)?_h(r,n):(e.flags=e.flags&amp;-4097|2,me=!1,st=e)}}else{if(ya(e))throw Error(N(418));e.flags=e.flags&amp;-4097|2,me=!1,st=e}}}function bc(e){for(e=e.return;e!==null&amp;&amp;e.tag!==5&amp;&amp;e.tag!==3&amp;&amp;e.tag!==13;)e=e.return;st=e}function Cs(e){if(e!==st)return!1;if(!me)return bc(e),me=!0,!1;var t;if((t=e.tag!==3)&amp;&amp;!(t=e.tag!==5)&amp;&amp;(t=e.type,t=t!==&quot;head&quot;&amp;&amp;t!==&quot;body&quot;&amp;&amp;!da(e.type,e.memoizedProps)),t&amp;&amp;(t=rt)){if(ya(e))throw xh(),Error(N(418));for(;t;)_h(e,t),t=gn(t.nextSibling)}if(bc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;/$&quot;){if(t===0){rt=gn(e.nextSibling);break e}t--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$!&quot;&amp;&amp;n!==&quot;$?&quot;||t++}e=e.nextSibling}rt=null}}else rt=st?gn(e.stateNode.nextSibling):null;return!0}function xh(){for(var e=rt;e;)e=gn(e.nextSibling)}function Wr(){rt=st=null,me=!1}function Au(e){Ct===null?Ct=[e]:Ct.push(e)}var nv=Xt.ReactCurrentBatchConfig;function ui(e,t,n){if(e=n.ref,e!==null&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;typeof e!=&quot;object&quot;){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var i=r,s=&quot;&quot;+e;return t!==null&amp;&amp;t.ref!==null&amp;&amp;typeof t.ref==&quot;function&quot;&amp;&amp;t.ref._stringRef===s?t.ref:(t=function(l){var o=i.refs;l===null?delete o[s]:o[s]=l},t._stringRef=s,t)}if(typeof e!=&quot;string&quot;)throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Os(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(t).join(&quot;, &quot;)+&quot;}&quot;:e))}function Jc(e){var t=e._init;return t(e._payload)}function kh(e){function t(h,f){if(e){var p=h.deletions;p===null?(h.deletions=[f],h.flags|=16):p.push(f)}}function n(h,f){if(!e)return null;for(;f!==null;)t(h,f),f=f.sibling;return null}function r(h,f){for(h=new Map;f!==null;)f.key!==null?h.set(f.key,f):h.set(f.index,f),f=f.sibling;return h}function i(h,f){return h=kn(h,f),h.index=0,h.sibling=null,h}function s(h,f,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p&lt;f?(h.flags|=2,f):p):(h.flags|=2,f)):(h.flags|=1048576,f)}function l(h){return e&amp;&amp;h.alternate===null&amp;&amp;(h.flags|=2),h}function o(h,f,p,O){return f===null||f.tag!==6?(f=Io(p,h.mode,O),f.return=h,f):(f=i(f,p),f.return=h,f)}function a(h,f,p,O){var D=p.type;return D===hr?c(h,f,p.props.children,O,p.key):f!==null&amp;&amp;(f.elementType===D||typeof D==&quot;object&quot;&amp;&amp;D!==null&amp;&amp;D.$$typeof===nn&amp;&amp;Jc(D)===f.type)?(O=i(f,p.props),O.ref=ui(h,f,p),O.return=h,O):(O=Js(p.type,p.key,p.props,null,h.mode,O),O.ref=ui(h,f,p),O.return=h,O)}function u(h,f,p,O){return f===null||f.tag!==4||f.stateNode.containerInfo!==p.containerInfo||f.stateNode.implementation!==p.implementation?(f=Po(p,h.mode,O),f.return=h,f):(f=i(f,p.children||[]),f.return=h,f)}function c(h,f,p,O,D){return f===null||f.tag!==7?(f=Jn(p,h.mode,O,D),f.return=h,f):(f=i(f,p),f.return=h,f)}function m(h,f,p){if(typeof f==&quot;string&quot;&amp;&amp;f!==&quot;&quot;||typeof f==&quot;number&quot;)return f=Io(&quot;&quot;+f,h.mode,p),f.return=h,f;if(typeof f==&quot;object&quot;&amp;&amp;f!==null){switch(f.$$typeof){case ms:return p=Js(f.type,f.key,f.props,null,h.mode,p),p.ref=ui(h,null,f),p.return=h,p;case dr:return f=Po(f,h.mode,p),f.return=h,f;case nn:var O=f._init;return m(h,O(f._payload),p)}if(yi(f)||ii(f))return f=Jn(f,h.mode,p,null),f.return=h,f;Os(h,f)}return null}function y(h,f,p,O){var D=f!==null?f.key:null;if(typeof p==&quot;string&quot;&amp;&amp;p!==&quot;&quot;||typeof p==&quot;number&quot;)return D!==null?null:o(h,f,&quot;&quot;+p,O);if(typeof p==&quot;object&quot;&amp;&amp;p!==null){switch(p.$$typeof){case ms:return p.key===D?a(h,f,p,O):null;case dr:return p.key===D?u(h,f,p,O):null;case nn:return D=p._init,y(h,f,D(p._payload),O)}if(yi(p)||ii(p))return D!==null?null:c(h,f,p,O,null);Os(h,p)}return null}function w(h,f,p,O,D){if(typeof O==&quot;string&quot;&amp;&amp;O!==&quot;&quot;||typeof O==&quot;number&quot;)return h=h.get(p)||null,o(f,h,&quot;&quot;+O,D);if(typeof O==&quot;object&quot;&amp;&amp;O!==null){switch(O.$$typeof){case ms:return h=h.get(O.key===null?p:O.key)||null,a(f,h,O,D);case dr:return h=h.get(O.key===null?p:O.key)||null,u(f,h,O,D);case nn:var U=O._init;return w(h,f,p,U(O._payload),D)}if(yi(O)||ii(O))return h=h.get(p)||null,c(f,h,O,D,null);Os(f,O)}return null}function _(h,f,p,O){for(var D=null,U=null,V=f,B=f=0,ce=null;V!==null&amp;&amp;B&lt;p.length;B++){V.index&gt;B?(ce=V,V=null):ce=V.sibling;var G=y(h,V,p[B],O);if(G===null){V===null&amp;&amp;(V=ce);break}e&amp;&amp;V&amp;&amp;G.alternate===null&amp;&amp;t(h,V),f=s(G,f,B),U===null?D=G:U.sibling=G,U=G,V=ce}if(B===p.length)return n(h,V),me&amp;&amp;zn(h,B),D;if(V===null){for(;B&lt;p.length;B++)V=m(h,p[B],O),V!==null&amp;&amp;(f=s(V,f,B),U===null?D=V:U.sibling=V,U=V);return me&amp;&amp;zn(h,B),D}for(V=r(h,V);B&lt;p.length;B++)ce=w(V,h,B,p[B],O),ce!==null&amp;&amp;(e&amp;&amp;ce.alternate!==null&amp;&amp;V.delete(ce.key===null?B:ce.key),f=s(ce,f,B),U===null?D=ce:U.sibling=ce,U=ce);return e&amp;&amp;V.forEach(function(Qe){return t(h,Qe)}),me&amp;&amp;zn(h,B),D}function E(h,f,p,O){var D=ii(p);if(typeof D!=&quot;function&quot;)throw Error(N(150));if(p=D.call(p),p==null)throw Error(N(151));for(var U=D=null,V=f,B=f=0,ce=null,G=p.next();V!==null&amp;&amp;!G.done;B++,G=p.next()){V.index&gt;B?(ce=V,V=null):ce=V.sibling;var Qe=y(h,V,G.value,O);if(Qe===null){V===null&amp;&amp;(V=ce);break}e&amp;&amp;V&amp;&amp;Qe.alternate===null&amp;&amp;t(h,V),f=s(Qe,f,B),U===null?D=Qe:U.sibling=Qe,U=Qe,V=ce}if(G.done)return n(h,V),me&amp;&amp;zn(h,B),D;if(V===null){for(;!G.done;B++,G=p.next())G=m(h,G.value,O),G!==null&amp;&amp;(f=s(G,f,B),U===null?D=G:U.sibling=G,U=G);return me&amp;&amp;zn(h,B),D}for(V=r(h,V);!G.done;B++,G=p.next())G=w(V,h,B,G.value,O),G!==null&amp;&amp;(e&amp;&amp;G.alternate!==null&amp;&amp;V.delete(G.key===null?B:G.key),f=s(G,f,B),U===null?D=G:U.sibling=G,U=G);return e&amp;&amp;V.forEach(function(qt){return t(h,qt)}),me&amp;&amp;zn(h,B),D}function L(h,f,p,O){if(typeof p==&quot;object&quot;&amp;&amp;p!==null&amp;&amp;p.type===hr&amp;&amp;p.key===null&amp;&amp;(p=p.props.children),typeof p==&quot;object&quot;&amp;&amp;p!==null){switch(p.$$typeof){case ms:e:{for(var D=p.key,U=f;U!==null;){if(U.key===D){if(D=p.type,D===hr){if(U.tag===7){n(h,U.sibling),f=i(U,p.props.children),f.return=h,h=f;break e}}else if(U.elementType===D||typeof D==&quot;object&quot;&amp;&amp;D!==null&amp;&amp;D.$$typeof===nn&amp;&amp;Jc(D)===U.type){n(h,U.sibling),f=i(U,p.props),f.ref=ui(h,U,p),f.return=h,h=f;break e}n(h,U);break}else t(h,U);U=U.sibling}p.type===hr?(f=Jn(p.props.children,h.mode,O,p.key),f.return=h,h=f):(O=Js(p.type,p.key,p.props,null,h.mode,O),O.ref=ui(h,f,p),O.return=h,h=O)}return l(h);case dr:e:{for(U=p.key;f!==null;){if(f.key===U)if(f.tag===4&amp;&amp;f.stateNode.containerInfo===p.containerInfo&amp;&amp;f.stateNode.implementation===p.implementation){n(h,f.sibling),f=i(f,p.children||[]),f.return=h,h=f;break e}else{n(h,f);break}else t(h,f);f=f.sibling}f=Po(p,h.mode,O),f.return=h,h=f}return l(h);case nn:return U=p._init,L(h,f,U(p._payload),O)}if(yi(p))return _(h,f,p,O);if(ii(p))return E(h,f,p,O);Os(h,p)}return typeof p==&quot;string&quot;&amp;&amp;p!==&quot;&quot;||typeof p==&quot;number&quot;?(p=&quot;&quot;+p,f!==null&amp;&amp;f.tag===6?(n(h,f.sibling),f=i(f,p),f.return=h,h=f):(n(h,f),f=Io(p,h.mode,O),f.return=h,h=f),l(h)):n(h,f)}return L}var Zr=kh(!0),Sh=kh(!1),yl=An(null),vl=null,xr=null,Iu=null;function Pu(){Iu=xr=vl=null}function Lu(e){var t=yl.current;pe(yl),e._currentValue=t}function ga(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&amp;t)!==t?(e.childLanes|=t,r!==null&amp;&amp;(r.childLanes|=t)):r!==null&amp;&amp;(r.childLanes&amp;t)!==t&amp;&amp;(r.childLanes|=t),e===n)break;e=e.return}}function Ar(e,t){vl=e,Iu=xr=null,e=e.dependencies,e!==null&amp;&amp;e.firstContext!==null&amp;&amp;(e.lanes&amp;t&amp;&amp;(Ge=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(Iu!==e)if(e={context:e,memoizedValue:t,next:null},xr===null){if(vl===null)throw Error(N(308));xr=e,vl.dependencies={lanes:0,firstContext:e}}else xr=xr.next=e;return t}var Vn=null;function Du(e){Vn===null?Vn=[e]:Vn.push(e)}function Eh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Du(t)):(n.next=i.next,i.next=n),t.interleaved=n,Jt(e,r)}function Jt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&amp;&amp;(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&amp;&amp;(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rn=!1;function Mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ch(e,t){e=e.updateQueue,t.updateQueue===e&amp;&amp;(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&amp;2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Jt(e,n)}return i=r.interleaved,i===null?(t.next=t,Du(r)):(t.next=i.next,i.next=t),r.interleaved=t,Jt(e,n)}function Ws(e,t,n){if(t=t.updateQueue,t!==null&amp;&amp;(t=t.shared,(n&amp;4194240)!==0)){var r=t.lanes;r&amp;=e.pendingLanes,n|=r,t.lanes=n,_u(e,n)}}function Gc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&amp;&amp;(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gl(e,t,n,r){var i=e.updateQueue;rn=!1;var s=i.firstBaseUpdate,l=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var a=o,u=a.next;a.next=null,l===null?s=u:l.next=u,l=a;var c=e.alternate;c!==null&amp;&amp;(c=c.updateQueue,o=c.lastBaseUpdate,o!==l&amp;&amp;(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=a))}if(s!==null){var m=i.baseState;l=0,c=u=a=null,o=s;do{var y=o.lane,w=o.eventTime;if((r&amp;y)===y){c!==null&amp;&amp;(c=c.next={eventTime:w,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var _=e,E=o;switch(y=t,w=n,E.tag){case 1:if(_=E.payload,typeof _==&quot;function&quot;){m=_.call(w,m,y);break e}m=_;break e;case 3:_.flags=_.flags&amp;-65537|128;case 0:if(_=E.payload,y=typeof _==&quot;function&quot;?_.call(w,m,y):_,y==null)break e;m=ge({},m,y);break e;case 2:rn=!0}}o.callback!==null&amp;&amp;o.lane!==0&amp;&amp;(e.flags|=64,y=i.effects,y===null?i.effects=[o]:y.push(o))}else w={eventTime:w,lane:y,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=w,a=m):c=c.next=w,l|=y;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;y=o,o=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(c===null&amp;&amp;(a=m),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else s===null&amp;&amp;(i.shared.lanes=0);nr|=l,e.lanes=l,e.memoizedState=m}}function Yc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t&lt;e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!=&quot;function&quot;)throw Error(N(191,i));i.call(r)}}}var fs={},Ut=An(fs),Hi=An(fs),Ki=An(fs);function Bn(e){if(e===fs)throw Error(N(174));return e}function zu(e,t){switch(ue(Ki,t),ue(Hi,e),ue(Ut,fs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xo(null,&quot;&quot;);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xo(t,e)}pe(Ut),ue(Ut,t)}function Hr(){pe(Ut),pe(Hi),pe(Ki)}function Oh(e){Bn(Ki.current);var t=Bn(Ut.current),n=Xo(t,e.type);t!==n&amp;&amp;(ue(Hi,e),ue(Ut,n))}function Uu(e){Hi.current===e&amp;&amp;(pe(Ut),pe(Hi))}var ye=An(0);function wl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&amp;&amp;(n=n.dehydrated,n===null||n.data===&quot;$?&quot;||n.data===&quot;$!&quot;))return t}else if(t.tag===19&amp;&amp;t.memoizedProps.revealOrder!==void 0){if(t.flags&amp;128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Co=[];function ju(){for(var e=0;e&lt;Co.length;e++)Co[e]._workInProgressVersionPrimary=null;Co.length=0}var Zs=Xt.ReactCurrentDispatcher,Oo=Xt.ReactCurrentBatchConfig,tr=0,ve=null,Ne=null,Pe=null,_l=!1,Ni=!1,Qi=0,rv=0;function Ue(){throw Error(N(321))}function $u(e,t){if(t===null)return!1;for(var n=0;n&lt;t.length&amp;&amp;n&lt;e.length;n++)if(!Nt(e[n],t[n]))return!1;return!0}function Fu(e,t,n,r,i,s){if(tr=s,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zs.current=e===null||e.memoizedState===null?ov:av,e=n(r,i),Ni){s=0;do{if(Ni=!1,Qi=0,25&lt;=s)throw Error(N(301));s+=1,Pe=Ne=null,t.updateQueue=null,Zs.current=uv,e=n(r,i)}while(Ni)}if(Zs.current=xl,t=Ne!==null&amp;&amp;Ne.next!==null,tr=0,Pe=Ne=ve=null,_l=!1,t)throw Error(N(300));return e}function Vu(){var e=Qi!==0;return Qi=0,e}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?ve.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function gt(){if(Ne===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Pe===null?ve.memoizedState:Pe.next;if(t!==null)Pe=t,Ne=e;else{if(e===null)throw Error(N(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Pe===null?ve.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function bi(e,t){return typeof t==&quot;function&quot;?t(e):t}function To(e){var t=gt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=Ne,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var l=i.next;i.next=s.next,s.next=l}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var o=l=null,a=null,u=s;do{var c=u.lane;if((tr&amp;c)===c)a!==null&amp;&amp;(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var m={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(o=a=m,l=r):a=a.next=m,ve.lanes|=c,nr|=c}u=u.next}while(u!==null&amp;&amp;u!==s);a===null?l=r:a.next=o,Nt(r,t.memoizedState)||(Ge=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ve.lanes|=s,nr|=s,i=i.next;while(i!==e)}else i===null&amp;&amp;(n.lanes=0);return[t.memoizedState,n.dispatch]}function No(e){var t=gt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do s=e(s,l.action),l=l.next;while(l!==i);Nt(s,t.memoizedState)||(Ge=!0),t.memoizedState=s,t.baseQueue===null&amp;&amp;(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Th(){}function Nh(e,t){var n=ve,r=gt(),i=t(),s=!Nt(r.memoizedState,i);if(s&amp;&amp;(r.memoizedState=i,Ge=!0),r=r.queue,Bu(Ih.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Pe!==null&amp;&amp;Pe.memoizedState.tag&amp;1){if(n.flags|=2048,Ji(9,Ah.bind(null,n,r,i,t),void 0,null),Le===null)throw Error(N(349));tr&amp;30||Rh(n,t,i)}return i}function Rh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ah(e,t,n,r){t.value=n,t.getSnapshot=r,Ph(t)&amp;&amp;Lh(e)}function Ih(e,t,n){return n(function(){Ph(t)&amp;&amp;Lh(e)})}function Ph(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nt(e,n)}catch{return!0}}function Lh(e){var t=Jt(e,1);t!==null&amp;&amp;Tt(t,e,1,-1)}function Xc(e){var t=Pt();return typeof e==&quot;function&quot;&amp;&amp;(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:e},t.queue=e,e=e.dispatch=lv.bind(null,ve,e),[t.memoizedState,e]}function Ji(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Dh(){return gt().memoizedState}function Hs(e,t,n,r){var i=Pt();ve.flags|=e,i.memoizedState=Ji(1|t,n,void 0,r===void 0?null:r)}function Kl(e,t,n,r){var i=gt();r=r===void 0?null:r;var s=void 0;if(Ne!==null){var l=Ne.memoizedState;if(s=l.destroy,r!==null&amp;&amp;$u(r,l.deps)){i.memoizedState=Ji(t,n,s,r);return}}ve.flags|=e,i.memoizedState=Ji(1|t,n,s,r)}function qc(e,t){return Hs(8390656,8,e,t)}function Bu(e,t){return Kl(2048,8,e,t)}function Mh(e,t){return Kl(4,2,e,t)}function zh(e,t){return Kl(4,4,e,t)}function Uh(e,t){if(typeof t==&quot;function&quot;)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jh(e,t,n){return n=n!=null?n.concat([e]):null,Kl(4,4,Uh.bind(null,t,e),n)}function Wu(){}function $h(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&amp;&amp;t!==null&amp;&amp;$u(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fh(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&amp;&amp;t!==null&amp;&amp;$u(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vh(e,t,n){return tr&amp;21?(Nt(n,t)||(n=Kd(),ve.lanes|=n,nr|=n,e.baseState=!0),t):(e.baseState&amp;&amp;(e.baseState=!1,Ge=!0),e.memoizedState=n)}function iv(e,t){var n=ae;ae=n!==0&amp;&amp;4&gt;n?n:4,e(!0);var r=Oo.transition;Oo.transition={};try{e(!1),t()}finally{ae=n,Oo.transition=r}}function Bh(){return gt().memoizedState}function sv(e,t,n){var r=xn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wh(e))Zh(t,n);else if(n=Eh(e,t,n,r),n!==null){var i=Ze();Tt(n,e,r,i),Hh(n,t,r)}}function lv(e,t,n){var r=xn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wh(e))Zh(t,i);else{var s=e.alternate;if(e.lanes===0&amp;&amp;(s===null||s.lanes===0)&amp;&amp;(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,o=s(l,n);if(i.hasEagerState=!0,i.eagerState=o,Nt(o,l)){var a=t.interleaved;a===null?(i.next=i,Du(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Eh(e,t,i,r),n!==null&amp;&amp;(i=Ze(),Tt(n,e,r,i),Hh(n,t,r))}}function Wh(e){var t=e.alternate;return e===ve||t!==null&amp;&amp;t===ve}function Zh(e,t){Ni=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hh(e,t,n){if(n&amp;4194240){var r=t.lanes;r&amp;=e.pendingLanes,n|=r,t.lanes=n,_u(e,n)}}var xl={readContext:vt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},ov={readContext:vt,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:qc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hs(4194308,4,Uh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hs(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sv.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Xc,useDebugValue:Wu,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Xc(!1),t=e[0];return e=iv.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,i=Pt();if(me){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Le===null)throw Error(N(349));tr&amp;30||Rh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,qc(Ih.bind(null,r,s,e),[e]),r.flags|=2048,Ji(9,Ah.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Le.identifierPrefix;if(me){var n=Ht,r=Zt;n=(r&amp;~(1&lt;&lt;32-Ot(r)-1)).toString(32)+n,t=&quot;:&quot;+t+&quot;R&quot;+n,n=Qi++,0&lt;n&amp;&amp;(t+=&quot;H&quot;+n.toString(32)),t+=&quot;:&quot;}else n=rv++,t=&quot;:&quot;+t+&quot;r&quot;+n.toString(32)+&quot;:&quot;;return e.memoizedState=t},unstable_isNewReconciler:!1},av={readContext:vt,useCallback:$h,useContext:vt,useEffect:Bu,useImperativeHandle:jh,useInsertionEffect:Mh,useLayoutEffect:zh,useMemo:Fh,useReducer:To,useRef:Dh,useState:function(){return To(bi)},useDebugValue:Wu,useDeferredValue:function(e){var t=gt();return Vh(t,Ne.memoizedState,e)},useTransition:function(){var e=To(bi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Th,useSyncExternalStore:Nh,useId:Bh,unstable_isNewReconciler:!1},uv={readContext:vt,useCallback:$h,useContext:vt,useEffect:Bu,useImperativeHandle:jh,useInsertionEffect:Mh,useLayoutEffect:zh,useMemo:Fh,useReducer:No,useRef:Dh,useState:function(){return No(bi)},useDebugValue:Wu,useDeferredValue:function(e){var t=gt();return Ne===null?t.memoizedState=e:Vh(t,Ne.memoizedState,e)},useTransition:function(){var e=No(bi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Th,useSyncExternalStore:Nh,useId:Bh,unstable_isNewReconciler:!1};function kt(e,t){if(e&amp;&amp;e.defaultProps){t=ge({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&amp;&amp;(t[n]=e[n]);return t}return t}function wa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ge({},t,n),e.memoizedState=n,e.lanes===0&amp;&amp;(e.updateQueue.baseState=n)}var Ql={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ze(),i=xn(e),s=Kt(r,i);s.payload=t,n!=null&amp;&amp;(s.callback=n),t=wn(e,s,i),t!==null&amp;&amp;(Tt(t,e,i,r),Ws(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ze(),i=xn(e),s=Kt(r,i);s.tag=1,s.payload=t,n!=null&amp;&amp;(s.callback=n),t=wn(e,s,i),t!==null&amp;&amp;(Tt(t,e,i,r),Ws(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ze(),r=xn(e),i=Kt(n,r);i.tag=2,t!=null&amp;&amp;(i.callback=t),t=wn(e,i,r),t!==null&amp;&amp;(Tt(t,e,r,n),Ws(t,e,r))}};function ef(e,t,n,r,i,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate==&quot;function&quot;?e.shouldComponentUpdate(r,s,l):t.prototype&amp;&amp;t.prototype.isPureReactComponent?!Vi(n,r)||!Vi(i,s):!0}function Kh(e,t,n){var r=!1,i=On,s=t.contextType;return typeof s==&quot;object&quot;&amp;&amp;s!==null?s=vt(s):(i=Xe(t)?qn:Ve.current,r=t.contextTypes,s=(r=r!=null)?Br(e,i):On),t=new t(n,s),e.memoizedState=t.state!==null&amp;&amp;t.state!==void 0?t.state:null,t.updater=Ql,e.stateNode=t,t._reactInternals=e,r&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function tf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&amp;&amp;Ql.enqueueReplaceState(t,t.state,null)}function _a(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Mu(e);var s=t.contextType;typeof s==&quot;object&quot;&amp;&amp;s!==null?i.context=vt(s):(s=Xe(t)?qn:Ve.current,i.context=Br(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s==&quot;function&quot;&amp;&amp;(wa(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==&quot;function&quot;||typeof i.getSnapshotBeforeUpdate==&quot;function&quot;||typeof i.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof i.componentWillMount!=&quot;function&quot;||(t=i.state,typeof i.componentWillMount==&quot;function&quot;&amp;&amp;i.componentWillMount(),typeof i.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;i.UNSAFE_componentWillMount(),t!==i.state&amp;&amp;Ql.enqueueReplaceState(i,i.state,null),gl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==&quot;function&quot;&amp;&amp;(e.flags|=4194308)}function Kr(e,t){try{var n=&quot;&quot;,r=t;do n+=Um(r),r=r.return;while(r);var i=n}catch(s){i=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Ro(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cv=typeof WeakMap==&quot;function&quot;?WeakMap:Map;function Qh(e,t,n){n=Kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sl||(Sl=!0,Ia=r),xa(e,t)},n}function bh(e,t,n){n=Kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==&quot;function&quot;){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){xa(e,t)}}var s=e.stateNode;return s!==null&amp;&amp;typeof s.componentDidCatch==&quot;function&quot;&amp;&amp;(n.callback=function(){xa(e,t),typeof r!=&quot;function&quot;&amp;&amp;(_n===null?_n=new Set([this]):_n.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:&quot;&quot;})}),n}function nf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&amp;&amp;(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ev.bind(null,e,t,n),t.then(e,e))}function rf(e){do{var t;if((t=e.tag===13)&amp;&amp;(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sf(e,t,n,r,i){return e.mode&amp;1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&amp;=-52805,n.tag===1&amp;&amp;(n.alternate===null?n.tag=17:(t=Kt(-1,1),t.tag=2,wn(n,t,1))),n.lanes|=1),e)}var fv=Xt.ReactCurrentOwner,Ge=!1;function Be(e,t,n,r){t.child=e===null?Sh(t,null,n,r):Zr(t,e.child,n,r)}function lf(e,t,n,r,i){n=n.render;var s=t.ref;return Ar(t,i),r=Fu(e,t,n,r,s,i),n=Vu(),e!==null&amp;&amp;!Ge?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~i,Gt(e,t,i)):(me&amp;&amp;n&amp;&amp;Nu(t),t.flags|=1,Be(e,t,r,i),t.child)}function of(e,t,n,r,i){if(e===null){var s=n.type;return typeof s==&quot;function&quot;&amp;&amp;!Yu(s)&amp;&amp;s.defaultProps===void 0&amp;&amp;n.compare===null&amp;&amp;n.defaultProps===void 0?(t.tag=15,t.type=s,Jh(e,t,s,r,i)):(e=Js(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&amp;i)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:Vi,n(l,r)&amp;&amp;e.ref===t.ref)return Gt(e,t,i)}return t.flags|=1,e=kn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Jh(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Vi(s,r)&amp;&amp;e.ref===t.ref)if(Ge=!1,t.pendingProps=r=s,(e.lanes&amp;i)!==0)e.flags&amp;131072&amp;&amp;(Ge=!0);else return t.lanes=e.lanes,Gt(e,t,i)}return ka(e,t,n,r,i)}function Gh(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode===&quot;hidden&quot;)if(!(t.mode&amp;1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Sr,nt),nt|=n;else{if(!(n&amp;1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(Sr,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ue(Sr,nt),nt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ue(Sr,nt),nt|=r;return Be(e,t,i,n),t.child}function Yh(e,t){var n=t.ref;(e===null&amp;&amp;n!==null||e!==null&amp;&amp;e.ref!==n)&amp;&amp;(t.flags|=512,t.flags|=2097152)}function ka(e,t,n,r,i){var s=Xe(n)?qn:Ve.current;return s=Br(t,s),Ar(t,i),n=Fu(e,t,n,r,s,i),r=Vu(),e!==null&amp;&amp;!Ge?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~i,Gt(e,t,i)):(me&amp;&amp;r&amp;&amp;Nu(t),t.flags|=1,Be(e,t,n,i),t.child)}function af(e,t,n,r,i){if(Xe(n)){var s=!0;hl(t)}else s=!1;if(Ar(t,i),t.stateNode===null)Ks(e,t),Kh(t,n,r),_a(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var a=l.context,u=n.contextType;typeof u==&quot;object&quot;&amp;&amp;u!==null?u=vt(u):(u=Xe(n)?qn:Ve.current,u=Br(t,u));var c=n.getDerivedStateFromProps,m=typeof c==&quot;function&quot;||typeof l.getSnapshotBeforeUpdate==&quot;function&quot;;m||typeof l.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof l.componentWillReceiveProps!=&quot;function&quot;||(o!==r||a!==u)&amp;&amp;tf(t,l,r,u),rn=!1;var y=t.memoizedState;l.state=y,gl(t,r,l,i),a=t.memoizedState,o!==r||y!==a||Ye.current||rn?(typeof c==&quot;function&quot;&amp;&amp;(wa(t,n,c,r),a=t.memoizedState),(o=rn||ef(t,n,o,r,y,a,u))?(m||typeof l.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof l.componentWillMount!=&quot;function&quot;||(typeof l.componentWillMount==&quot;function&quot;&amp;&amp;l.componentWillMount(),typeof l.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;l.UNSAFE_componentWillMount()),typeof l.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308)):(typeof l.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=o):(typeof l.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),r=!1)}else{l=t.stateNode,Ch(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:kt(t.type,o),l.props=u,m=t.pendingProps,y=l.context,a=n.contextType,typeof a==&quot;object&quot;&amp;&amp;a!==null?a=vt(a):(a=Xe(n)?qn:Ve.current,a=Br(t,a));var w=n.getDerivedStateFromProps;(c=typeof w==&quot;function&quot;||typeof l.getSnapshotBeforeUpdate==&quot;function&quot;)||typeof l.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof l.componentWillReceiveProps!=&quot;function&quot;||(o!==m||y!==a)&amp;&amp;tf(t,l,r,a),rn=!1,y=t.memoizedState,l.state=y,gl(t,r,l,i);var _=t.memoizedState;o!==m||y!==_||Ye.current||rn?(typeof w==&quot;function&quot;&amp;&amp;(wa(t,n,w,r),_=t.memoizedState),(u=rn||ef(t,n,u,r,y,_,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!=&quot;function&quot;&amp;&amp;typeof l.componentWillUpdate!=&quot;function&quot;||(typeof l.componentWillUpdate==&quot;function&quot;&amp;&amp;l.componentWillUpdate(r,_,a),typeof l.UNSAFE_componentWillUpdate==&quot;function&quot;&amp;&amp;l.UNSAFE_componentWillUpdate(r,_,a)),typeof l.componentDidUpdate==&quot;function&quot;&amp;&amp;(t.flags|=4),typeof l.getSnapshotBeforeUpdate==&quot;function&quot;&amp;&amp;(t.flags|=1024)):(typeof l.componentDidUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),l.props=r,l.state=_,l.context=a,r=u):(typeof l.componentDidUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=1024),r=!1)}return Sa(e,t,n,r,s,i)}function Sa(e,t,n,r,i,s){Yh(e,t);var l=(t.flags&amp;128)!==0;if(!r&amp;&amp;!l)return i&amp;&amp;Kc(t,n,!1),Gt(e,t,s);r=t.stateNode,fv.current=t;var o=l&amp;&amp;typeof n.getDerivedStateFromError!=&quot;function&quot;?null:r.render();return t.flags|=1,e!==null&amp;&amp;l?(t.child=Zr(t,e.child,null,s),t.child=Zr(t,null,o,s)):Be(e,t,o,s),t.memoizedState=r.state,i&amp;&amp;Kc(t,n,!0),t.child}function Xh(e){var t=e.stateNode;t.pendingContext?Hc(e,t.pendingContext,t.pendingContext!==t.context):t.context&amp;&amp;Hc(e,t.context,!1),zu(e,t.containerInfo)}function uf(e,t,n,r,i){return Wr(),Au(i),t.flags|=256,Be(e,t,n,r),t.child}var Ea={dehydrated:null,treeContext:null,retryLane:0};function Ca(e){return{baseLanes:e,cachePool:null,transitions:null}}function qh(e,t,n){var r=t.pendingProps,i=ye.current,s=!1,l=(t.flags&amp;128)!==0,o;if((o=l)||(o=e!==null&amp;&amp;e.memoizedState===null?!1:(i&amp;2)!==0),o?(s=!0,t.flags&amp;=-129):(e===null||e.memoizedState!==null)&amp;&amp;(i|=1),ue(ye,i&amp;1),e===null)return va(t),e=t.memoizedState,e!==null&amp;&amp;(e=e.dehydrated,e!==null)?(t.mode&amp;1?e.data===&quot;$!&quot;?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:&quot;hidden&quot;,children:l},!(r&amp;1)&amp;&amp;s!==null?(s.childLanes=0,s.pendingProps=l):s=Gl(l,r,0,null),e=Jn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ca(n),t.memoizedState=Ea,e):Zu(t,l));if(i=e.memoizedState,i!==null&amp;&amp;(o=i.dehydrated,o!==null))return dv(e,t,l,r,o,i,n);if(s){s=r.fallback,l=t.mode,i=e.child,o=i.sibling;var a={mode:&quot;hidden&quot;,children:r.children};return!(l&amp;1)&amp;&amp;t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=kn(i,a),r.subtreeFlags=i.subtreeFlags&amp;14680064),o!==null?s=kn(o,s):(s=Jn(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?Ca(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&amp;~n,t.memoizedState=Ea,r}return s=e.child,e=s.sibling,r=kn(s,{mode:&quot;visible&quot;,children:r.children}),!(t.mode&amp;1)&amp;&amp;(r.lanes=n),r.return=t,r.sibling=null,e!==null&amp;&amp;(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Zu(e,t){return t=Gl({mode:&quot;visible&quot;,children:t},e.mode,0,null),t.return=e,e.child=t}function Ts(e,t,n,r){return r!==null&amp;&amp;Au(r),Zr(t,e.child,null,n),e=Zu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dv(e,t,n,r,i,s,l){if(n)return t.flags&amp;256?(t.flags&amp;=-257,r=Ro(Error(N(422))),Ts(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Gl({mode:&quot;visible&quot;,children:r.children},i,0,null),s=Jn(s,i,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&amp;1&amp;&amp;Zr(t,e.child,null,l),t.child.memoizedState=Ca(l),t.memoizedState=Ea,s);if(!(t.mode&amp;1))return Ts(e,t,l,null);if(i.data===&quot;$!&quot;){if(r=i.nextSibling&amp;&amp;i.nextSibling.dataset,r)var o=r.dgst;return r=o,s=Error(N(419)),r=Ro(s,r,void 0),Ts(e,t,l,r)}if(o=(l&amp;e.childLanes)!==0,Ge||o){if(r=Le,r!==null){switch(l&amp;-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&amp;(r.suspendedLanes|l)?0:i,i!==0&amp;&amp;i!==s.retryLane&amp;&amp;(s.retryLane=i,Jt(e,i),Tt(r,e,i,-1))}return Gu(),r=Ro(Error(N(421))),Ts(e,t,l,r)}return i.data===&quot;$?&quot;?(t.flags|=128,t.child=e.child,t=Cv.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,rt=gn(i.nextSibling),st=t,me=!0,Ct=null,e!==null&amp;&amp;(ct[ft++]=Zt,ct[ft++]=Ht,ct[ft++]=er,Zt=e.id,Ht=e.overflow,er=t),t=Zu(t,r.children),t.flags|=4096,t)}function cf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&amp;&amp;(r.lanes|=t),ga(e.return,t,n)}function Ao(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function ep(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Be(e,t,r.children,n),r=ye.current,r&amp;2)r=r&amp;1|2,t.flags|=128;else{if(e!==null&amp;&amp;e.flags&amp;128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&amp;&amp;cf(e,n,t);else if(e.tag===19)cf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&amp;=1}if(ue(ye,r),!(t.mode&amp;1))t.memoizedState=null;else switch(i){case&quot;forwards&quot;:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&amp;&amp;wl(e)===null&amp;&amp;(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ao(t,!1,i,n,s);break;case&quot;backwards&quot;:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&amp;&amp;wl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ao(t,!0,n,null,s);break;case&quot;together&quot;:Ao(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ks(e,t){!(t.mode&amp;1)&amp;&amp;e!==null&amp;&amp;(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&amp;&amp;(t.dependencies=e.dependencies),nr|=t.lanes,!(n&amp;t.childLanes))return null;if(e!==null&amp;&amp;t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hv(e,t,n){switch(t.tag){case 3:Xh(t),Wr();break;case 5:Oh(t);break;case 1:Xe(t.type)&amp;&amp;hl(t);break;case 4:zu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ue(yl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ye,ye.current&amp;1),t.flags|=128,null):n&amp;t.child.childLanes?qh(e,t,n):(ue(ye,ye.current&amp;1),e=Gt(e,t,n),e!==null?e.sibling:null);ue(ye,ye.current&amp;1);break;case 19:if(r=(n&amp;t.childLanes)!==0,e.flags&amp;128){if(r)return ep(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&amp;&amp;(i.rendering=null,i.tail=null,i.lastEffect=null),ue(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,Gh(e,t,n)}return Gt(e,t,n)}var tp,Oa,np,rp;tp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&amp;&amp;n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Oa=function(){};np=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Bn(Ut.current);var s=null;switch(n){case&quot;input&quot;:i=bo(e,i),r=bo(e,r),s=[];break;case&quot;select&quot;:i=ge({},i,{value:void 0}),r=ge({},r,{value:void 0}),s=[];break;case&quot;textarea&quot;:i=Yo(e,i),r=Yo(e,r),s=[];break;default:typeof i.onClick!=&quot;function&quot;&amp;&amp;typeof r.onClick==&quot;function&quot;&amp;&amp;(e.onclick=fl)}qo(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&amp;&amp;i.hasOwnProperty(u)&amp;&amp;i[u]!=null)if(u===&quot;style&quot;){var o=i[u];for(l in o)o.hasOwnProperty(l)&amp;&amp;(n||(n={}),n[l]=&quot;&quot;)}else u!==&quot;dangerouslySetInnerHTML&quot;&amp;&amp;u!==&quot;children&quot;&amp;&amp;u!==&quot;suppressContentEditableWarning&quot;&amp;&amp;u!==&quot;suppressHydrationWarning&quot;&amp;&amp;u!==&quot;autoFocus&quot;&amp;&amp;(Di.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&amp;&amp;a!==o&amp;&amp;(a!=null||o!=null))if(u===&quot;style&quot;)if(o){for(l in o)!o.hasOwnProperty(l)||a&amp;&amp;a.hasOwnProperty(l)||(n||(n={}),n[l]=&quot;&quot;);for(l in a)a.hasOwnProperty(l)&amp;&amp;o[l]!==a[l]&amp;&amp;(n||(n={}),n[l]=a[l])}else n||(s||(s=[]),s.push(u,n)),n=a;else u===&quot;dangerouslySetInnerHTML&quot;?(a=a?a.__html:void 0,o=o?o.__html:void 0,a!=null&amp;&amp;o!==a&amp;&amp;(s=s||[]).push(u,a)):u===&quot;children&quot;?typeof a!=&quot;string&quot;&amp;&amp;typeof a!=&quot;number&quot;||(s=s||[]).push(u,&quot;&quot;+a):u!==&quot;suppressContentEditableWarning&quot;&amp;&amp;u!==&quot;suppressHydrationWarning&quot;&amp;&amp;(Di.hasOwnProperty(u)?(a!=null&amp;&amp;u===&quot;onScroll&quot;&amp;&amp;fe(&quot;scroll&quot;,e),s||o===a||(s=[])):(s=s||[]).push(u,a))}n&amp;&amp;(s=s||[]).push(&quot;style&quot;,n);var u=s;(t.updateQueue=u)&amp;&amp;(t.flags|=4)}};rp=function(e,t,n,r){n!==r&amp;&amp;(t.flags|=4)};function ci(e,t){if(!me)switch(e.tailMode){case&quot;hidden&quot;:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&amp;&amp;(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case&quot;collapsed&quot;:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&amp;&amp;(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function je(e){var t=e.alternate!==null&amp;&amp;e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&amp;14680064,r|=i.flags&amp;14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pv(e,t,n){var r=t.pendingProps;switch(Ru(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return Xe(t.type)&amp;&amp;dl(),je(t),null;case 3:return r=t.stateNode,Hr(),pe(Ye),pe(Ve),ju(),r.pendingContext&amp;&amp;(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&amp;&amp;(Cs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&amp;&amp;!(t.flags&amp;256)||(t.flags|=1024,Ct!==null&amp;&amp;(Da(Ct),Ct=null))),Oa(e,t),je(t),null;case 5:Uu(t);var i=Bn(Ki.current);if(n=t.type,e!==null&amp;&amp;t.stateNode!=null)np(e,t,n,r,i),e.ref!==t.ref&amp;&amp;(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return je(t),null}if(e=Bn(Ut.current),Cs(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Mt]=t,r[Zi]=s,e=(t.mode&amp;1)!==0,n){case&quot;dialog&quot;:fe(&quot;cancel&quot;,r),fe(&quot;close&quot;,r);break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:fe(&quot;load&quot;,r);break;case&quot;video&quot;:case&quot;audio&quot;:for(i=0;i&lt;gi.length;i++)fe(gi[i],r);break;case&quot;source&quot;:fe(&quot;error&quot;,r);break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:fe(&quot;error&quot;,r),fe(&quot;load&quot;,r);break;case&quot;details&quot;:fe(&quot;toggle&quot;,r);break;case&quot;input&quot;:gc(r,s),fe(&quot;invalid&quot;,r);break;case&quot;select&quot;:r._wrapperState={wasMultiple:!!s.multiple},fe(&quot;invalid&quot;,r);break;case&quot;textarea&quot;:_c(r,s),fe(&quot;invalid&quot;,r)}qo(n,s),i=null;for(var l in s)if(s.hasOwnProperty(l)){var o=s[l];l===&quot;children&quot;?typeof o==&quot;string&quot;?r.textContent!==o&amp;&amp;(s.suppressHydrationWarning!==!0&amp;&amp;Es(r.textContent,o,e),i=[&quot;children&quot;,o]):typeof o==&quot;number&quot;&amp;&amp;r.textContent!==&quot;&quot;+o&amp;&amp;(s.suppressHydrationWarning!==!0&amp;&amp;Es(r.textContent,o,e),i=[&quot;children&quot;,&quot;&quot;+o]):Di.hasOwnProperty(l)&amp;&amp;o!=null&amp;&amp;l===&quot;onScroll&quot;&amp;&amp;fe(&quot;scroll&quot;,r)}switch(n){case&quot;input&quot;:ys(r),wc(r,s,!0);break;case&quot;textarea&quot;:ys(r),xc(r);break;case&quot;select&quot;:case&quot;option&quot;:break;default:typeof s.onClick==&quot;function&quot;&amp;&amp;(r.onclick=fl)}r=i,t.updateQueue=r,r!==null&amp;&amp;(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e===&quot;http://www.w3.org/1999/xhtml&quot;&amp;&amp;(e=Id(n)),e===&quot;http://www.w3.org/1999/xhtml&quot;?n===&quot;script&quot;?(e=l.createElement(&quot;div&quot;),e.innerHTML=&quot;&lt;script&gt;&lt;\/script&gt;&quot;,e=e.removeChild(e.firstChild)):typeof r.is==&quot;string&quot;?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n===&quot;select&quot;&amp;&amp;(l=e,r.multiple?l.multiple=!0:r.size&amp;&amp;(l.size=r.size))):e=l.createElementNS(e,n),e[Mt]=t,e[Zi]=r,tp(e,t,!1,!1),t.stateNode=e;e:{switch(l=ea(n,r),n){case&quot;dialog&quot;:fe(&quot;cancel&quot;,e),fe(&quot;close&quot;,e),i=r;break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:fe(&quot;load&quot;,e),i=r;break;case&quot;video&quot;:case&quot;audio&quot;:for(i=0;i&lt;gi.length;i++)fe(gi[i],e);i=r;break;case&quot;source&quot;:fe(&quot;error&quot;,e),i=r;break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:fe(&quot;error&quot;,e),fe(&quot;load&quot;,e),i=r;break;case&quot;details&quot;:fe(&quot;toggle&quot;,e),i=r;break;case&quot;input&quot;:gc(e,r),i=bo(e,r),fe(&quot;invalid&quot;,e);break;case&quot;option&quot;:i=r;break;case&quot;select&quot;:e._wrapperState={wasMultiple:!!r.multiple},i=ge({},r,{value:void 0}),fe(&quot;invalid&quot;,e);break;case&quot;textarea&quot;:_c(e,r),i=Yo(e,r),fe(&quot;invalid&quot;,e);break;default:i=r}qo(n,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var a=o[s];s===&quot;style&quot;?Dd(e,a):s===&quot;dangerouslySetInnerHTML&quot;?(a=a?a.__html:void 0,a!=null&amp;&amp;Pd(e,a)):s===&quot;children&quot;?typeof a==&quot;string&quot;?(n!==&quot;textarea&quot;||a!==&quot;&quot;)&amp;&amp;Mi(e,a):typeof a==&quot;number&quot;&amp;&amp;Mi(e,&quot;&quot;+a):s!==&quot;suppressContentEditableWarning&quot;&amp;&amp;s!==&quot;suppressHydrationWarning&quot;&amp;&amp;s!==&quot;autoFocus&quot;&amp;&amp;(Di.hasOwnProperty(s)?a!=null&amp;&amp;s===&quot;onScroll&quot;&amp;&amp;fe(&quot;scroll&quot;,e):a!=null&amp;&amp;pu(e,s,a,l))}switch(n){case&quot;input&quot;:ys(e),wc(e,r,!1);break;case&quot;textarea&quot;:ys(e),xc(e);break;case&quot;option&quot;:r.value!=null&amp;&amp;e.setAttribute(&quot;value&quot;,&quot;&quot;+Cn(r.value));break;case&quot;select&quot;:e.multiple=!!r.multiple,s=r.value,s!=null?Or(e,!!r.multiple,s,!1):r.defaultValue!=null&amp;&amp;Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick==&quot;function&quot;&amp;&amp;(e.onclick=fl)}switch(n){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:r=!!r.autoFocus;break e;case&quot;img&quot;:r=!0;break e;default:r=!1}}r&amp;&amp;(t.flags|=4)}t.ref!==null&amp;&amp;(t.flags|=512,t.flags|=2097152)}return je(t),null;case 6:if(e&amp;&amp;t.stateNode!=null)rp(e,t,e.memoizedProps,r);else{if(typeof r!=&quot;string&quot;&amp;&amp;t.stateNode===null)throw Error(N(166));if(n=Bn(Ki.current),Bn(Ut.current),Cs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mt]=t,(s=r.nodeValue!==n)&amp;&amp;(e=st,e!==null))switch(e.tag){case 3:Es(r.nodeValue,n,(e.mode&amp;1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&amp;&amp;Es(r.nodeValue,n,(e.mode&amp;1)!==0)}s&amp;&amp;(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mt]=t,t.stateNode=r}return je(t),null;case 13:if(pe(ye),r=t.memoizedState,e===null||e.memoizedState!==null&amp;&amp;e.memoizedState.dehydrated!==null){if(me&amp;&amp;rt!==null&amp;&amp;t.mode&amp;1&amp;&amp;!(t.flags&amp;128))xh(),Wr(),t.flags|=98560,s=!1;else if(s=Cs(t),r!==null&amp;&amp;r.dehydrated!==null){if(e===null){if(!s)throw Error(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[Mt]=t}else Wr(),!(t.flags&amp;128)&amp;&amp;(t.memoizedState=null),t.flags|=4;je(t),s=!1}else Ct!==null&amp;&amp;(Da(Ct),Ct=null),s=!0;if(!s)return t.flags&amp;65536?t:null}return t.flags&amp;128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&amp;&amp;e.memoizedState!==null)&amp;&amp;r&amp;&amp;(t.child.flags|=8192,t.mode&amp;1&amp;&amp;(e===null||ye.current&amp;1?Re===0&amp;&amp;(Re=3):Gu())),t.updateQueue!==null&amp;&amp;(t.flags|=4),je(t),null);case 4:return Hr(),Oa(e,t),e===null&amp;&amp;Bi(t.stateNode.containerInfo),je(t),null;case 10:return Lu(t.type._context),je(t),null;case 17:return Xe(t.type)&amp;&amp;dl(),je(t),null;case 19:if(pe(ye),s=t.memoizedState,s===null)return je(t),null;if(r=(t.flags&amp;128)!==0,l=s.rendering,l===null)if(r)ci(s,!1);else{if(Re!==0||e!==null&amp;&amp;e.flags&amp;128)for(e=t.child;e!==null;){if(l=wl(e),l!==null){for(t.flags|=128,ci(s,!1),r=l.updateQueue,r!==null&amp;&amp;(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&amp;=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(ye,ye.current&amp;1|2),t.child}e=e.sibling}s.tail!==null&amp;&amp;Se()&gt;Qr&amp;&amp;(t.flags|=128,r=!0,ci(s,!1),t.lanes=4194304)}else{if(!r)if(e=wl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&amp;&amp;(t.updateQueue=n,t.flags|=4),ci(s,!0),s.tail===null&amp;&amp;s.tailMode===&quot;hidden&quot;&amp;&amp;!l.alternate&amp;&amp;!me)return je(t),null}else 2*Se()-s.renderingStartTime&gt;Qr&amp;&amp;n!==1073741824&amp;&amp;(t.flags|=128,r=!0,ci(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Se(),t.sibling=null,n=ye.current,ue(ye,r?n&amp;1|2:n&amp;1),t):(je(t),null);case 22:case 23:return Ju(),r=t.memoizedState!==null,e!==null&amp;&amp;e.memoizedState!==null!==r&amp;&amp;(t.flags|=8192),r&amp;&amp;t.mode&amp;1?nt&amp;1073741824&amp;&amp;(je(t),t.subtreeFlags&amp;6&amp;&amp;(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function mv(e,t){switch(Ru(t),t.tag){case 1:return Xe(t.type)&amp;&amp;dl(),e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 3:return Hr(),pe(Ye),pe(Ve),ju(),e=t.flags,e&amp;65536&amp;&amp;!(e&amp;128)?(t.flags=e&amp;-65537|128,t):null;case 5:return Uu(t),null;case 13:if(pe(ye),e=t.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Wr()}return e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 19:return pe(ye),null;case 4:return Hr(),null;case 10:return Lu(t.type._context),null;case 22:case 23:return Ju(),null;case 24:return null;default:return null}}var Ns=!1,$e=!1,yv=typeof WeakSet==&quot;function&quot;?WeakSet:Set,z=null;function kr(e,t){var n=e.ref;if(n!==null)if(typeof n==&quot;function&quot;)try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function Ta(e,t,n){try{n()}catch(r){xe(e,t,r)}}var ff=!1;function vv(e,t){if(ca=al,e=ah(),Tu(e)){if(&quot;selectionStart&quot;in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&amp;&amp;n.defaultView||window;var r=n.getSelection&amp;&amp;n.getSelection();if(r&amp;&amp;r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,o=-1,a=-1,u=0,c=0,m=e,y=null;t:for(;;){for(var w;m!==n||i!==0&amp;&amp;m.nodeType!==3||(o=l+i),m!==s||r!==0&amp;&amp;m.nodeType!==3||(a=l+r),m.nodeType===3&amp;&amp;(l+=m.nodeValue.length),(w=m.firstChild)!==null;)y=m,m=w;for(;;){if(m===e)break t;if(y===n&amp;&amp;++u===i&amp;&amp;(o=l),y===s&amp;&amp;++c===r&amp;&amp;(a=l),(w=m.nextSibling)!==null)break;m=y,y=m.parentNode}m=w}n=o===-1||a===-1?null:{start:o,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(fa={focusedElem:e,selectionRange:n},al=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&amp;1028)!==0&amp;&amp;e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var _=t.alternate;if(t.flags&amp;1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var E=_.memoizedProps,L=_.memoizedState,h=t.stateNode,f=h.getSnapshotBeforeUpdate(t.elementType===t.type?E:kt(t.type,E),L);h.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent=&quot;&quot;:p.nodeType===9&amp;&amp;p.documentElement&amp;&amp;p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(O){xe(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return _=ff,ff=!1,_}function Ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&amp;e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&amp;&amp;Ta(t,n,s)}i=i.next}while(i!==r)}}function bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&amp;e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Na(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==&quot;function&quot;?t(e):t.current=e}}function ip(e){var t=e.alternate;t!==null&amp;&amp;(e.alternate=null,ip(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&amp;&amp;(t=e.stateNode,t!==null&amp;&amp;(delete t[Mt],delete t[Zi],delete t[pa],delete t[qy],delete t[ev])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sp(e){return e.tag===5||e.tag===3||e.tag===4}function df(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==18;){if(e.flags&amp;2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&amp;2))return e.stateNode}}function Ra(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fl));else if(r!==4&amp;&amp;(e=e.child,e!==null))for(Ra(e,t,n),e=e.sibling;e!==null;)Ra(e,t,n),e=e.sibling}function Aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&amp;&amp;(e=e.child,e!==null))for(Aa(e,t,n),e=e.sibling;e!==null;)Aa(e,t,n),e=e.sibling}var De=null,Et=!1;function en(e,t,n){for(n=n.child;n!==null;)lp(e,t,n),n=n.sibling}function lp(e,t,n){if(zt&amp;&amp;typeof zt.onCommitFiberUnmount==&quot;function&quot;)try{zt.onCommitFiberUnmount(Fl,n)}catch{}switch(n.tag){case 5:$e||kr(n,t);case 6:var r=De,i=Et;De=null,en(e,t,n),De=r,Et=i,De!==null&amp;&amp;(Et?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&amp;&amp;(Et?(e=De,n=n.stateNode,e.nodeType===8?So(e.parentNode,n):e.nodeType===1&amp;&amp;So(e,n),$i(e)):So(De,n.stateNode));break;case 4:r=De,i=Et,De=n.stateNode.containerInfo,Et=!0,en(e,t,n),De=r,Et=i;break;case 0:case 11:case 14:case 15:if(!$e&amp;&amp;(r=n.updateQueue,r!==null&amp;&amp;(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&amp;&amp;(s&amp;2||s&amp;4)&amp;&amp;Ta(n,t,l),i=i.next}while(i!==r)}en(e,t,n);break;case 1:if(!$e&amp;&amp;(kr(n,t),r=n.stateNode,typeof r.componentWillUnmount==&quot;function&quot;))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){xe(n,t,o)}en(e,t,n);break;case 21:en(e,t,n);break;case 22:n.mode&amp;1?($e=(r=$e)||n.memoizedState!==null,en(e,t,n),$e=r):en(e,t,n);break;default:en(e,t,n)}}function hf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&amp;&amp;(n=e.stateNode=new yv),t.forEach(function(r){var i=Ov.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r&lt;n.length;r++){var i=n[r];try{var s=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:De=o.stateNode,Et=!1;break e;case 3:De=o.stateNode.containerInfo,Et=!0;break e;case 4:De=o.stateNode.containerInfo,Et=!0;break e}o=o.return}if(De===null)throw Error(N(160));lp(s,l,i),De=null,Et=!1;var a=i.alternate;a!==null&amp;&amp;(a.return=null),i.return=null}catch(u){xe(i,t,u)}}if(t.subtreeFlags&amp;12854)for(t=t.child;t!==null;)op(t,e),t=t.sibling}function op(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),At(e),r&amp;4){try{Ri(3,e,e.return),bl(3,e)}catch(E){xe(e,e.return,E)}try{Ri(5,e,e.return)}catch(E){xe(e,e.return,E)}}break;case 1:xt(t,e),At(e),r&amp;512&amp;&amp;n!==null&amp;&amp;kr(n,n.return);break;case 5:if(xt(t,e),At(e),r&amp;512&amp;&amp;n!==null&amp;&amp;kr(n,n.return),e.flags&amp;32){var i=e.stateNode;try{Mi(i,&quot;&quot;)}catch(E){xe(e,e.return,E)}}if(r&amp;4&amp;&amp;(i=e.stateNode,i!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,o=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{o===&quot;input&quot;&amp;&amp;s.type===&quot;radio&quot;&amp;&amp;s.name!=null&amp;&amp;Rd(i,s),ea(o,l);var u=ea(o,s);for(l=0;l&lt;a.length;l+=2){var c=a[l],m=a[l+1];c===&quot;style&quot;?Dd(i,m):c===&quot;dangerouslySetInnerHTML&quot;?Pd(i,m):c===&quot;children&quot;?Mi(i,m):pu(i,c,m,u)}switch(o){case&quot;input&quot;:Jo(i,s);break;case&quot;textarea&quot;:Ad(i,s);break;case&quot;select&quot;:var y=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var w=s.value;w!=null?Or(i,!!s.multiple,w,!1):y!==!!s.multiple&amp;&amp;(s.defaultValue!=null?Or(i,!!s.multiple,s.defaultValue,!0):Or(i,!!s.multiple,s.multiple?[]:&quot;&quot;,!1))}i[Zi]=s}catch(E){xe(e,e.return,E)}}break;case 6:if(xt(t,e),At(e),r&amp;4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(E){xe(e,e.return,E)}}break;case 3:if(xt(t,e),At(e),r&amp;4&amp;&amp;n!==null&amp;&amp;n.memoizedState.isDehydrated)try{$i(t.containerInfo)}catch(E){xe(e,e.return,E)}break;case 4:xt(t,e),At(e);break;case 13:xt(t,e),At(e),i=e.child,i.flags&amp;8192&amp;&amp;(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&amp;&amp;i.alternate.memoizedState!==null||(Qu=Se())),r&amp;4&amp;&amp;hf(e);break;case 22:if(c=n!==null&amp;&amp;n.memoizedState!==null,e.mode&amp;1?($e=(u=$e)||c,xt(t,e),$e=u):xt(t,e),At(e),r&amp;8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&amp;&amp;!c&amp;&amp;e.mode&amp;1)for(z=e,c=e.child;c!==null;){for(m=z=c;z!==null;){switch(y=z,w=y.child,y.tag){case 0:case 11:case 14:case 15:Ri(4,y,y.return);break;case 1:kr(y,y.return);var _=y.stateNode;if(typeof _.componentWillUnmount==&quot;function&quot;){r=y,n=y.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(E){xe(r,n,E)}}break;case 5:kr(y,y.return);break;case 22:if(y.memoizedState!==null){mf(m);continue}}w!==null?(w.return=y,z=w):mf(m)}c=c.sibling}e:for(c=null,m=e;;){if(m.tag===5){if(c===null){c=m;try{i=m.stateNode,u?(s=i.style,typeof s.setProperty==&quot;function&quot;?s.setProperty(&quot;display&quot;,&quot;none&quot;,&quot;important&quot;):s.display=&quot;none&quot;):(o=m.stateNode,a=m.memoizedProps.style,l=a!=null&amp;&amp;a.hasOwnProperty(&quot;display&quot;)?a.display:null,o.style.display=Ld(&quot;display&quot;,l))}catch(E){xe(e,e.return,E)}}}else if(m.tag===6){if(c===null)try{m.stateNode.nodeValue=u?&quot;&quot;:m.memoizedProps}catch(E){xe(e,e.return,E)}}else if((m.tag!==22&amp;&amp;m.tag!==23||m.memoizedState===null||m===e)&amp;&amp;m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;c===m&amp;&amp;(c=null),m=m.return}c===m&amp;&amp;(c=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:xt(t,e),At(e),r&amp;4&amp;&amp;hf(e);break;case 21:break;default:xt(t,e),At(e)}}function At(e){var t=e.flags;if(t&amp;2){try{e:{for(var n=e.return;n!==null;){if(sp(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&amp;32&amp;&amp;(Mi(i,&quot;&quot;),r.flags&amp;=-33);var s=df(e);Aa(e,s,i);break;case 3:case 4:var l=r.stateNode.containerInfo,o=df(e);Ra(e,o,l);break;default:throw Error(N(161))}}catch(a){xe(e,e.return,a)}e.flags&amp;=-3}t&amp;4096&amp;&amp;(e.flags&amp;=-4097)}function gv(e,t,n){z=e,ap(e)}function ap(e,t,n){for(var r=(e.mode&amp;1)!==0;z!==null;){var i=z,s=i.child;if(i.tag===22&amp;&amp;r){var l=i.memoizedState!==null||Ns;if(!l){var o=i.alternate,a=o!==null&amp;&amp;o.memoizedState!==null||$e;o=Ns;var u=$e;if(Ns=l,($e=a)&amp;&amp;!u)for(z=i;z!==null;)l=z,a=l.child,l.tag===22&amp;&amp;l.memoizedState!==null?yf(i):a!==null?(a.return=l,z=a):yf(i);for(;s!==null;)z=s,ap(s),s=s.sibling;z=i,Ns=o,$e=u}pf(e)}else i.subtreeFlags&amp;8772&amp;&amp;s!==null?(s.return=i,z=s):pf(e)}}function pf(e){for(;z!==null;){var t=z;if(t.flags&amp;8772){var n=t.alternate;try{if(t.flags&amp;8772)switch(t.tag){case 0:case 11:case 15:$e||bl(5,t);break;case 1:var r=t.stateNode;if(t.flags&amp;4&amp;&amp;!$e)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:kt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&amp;&amp;Yc(t,s,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Yc(t,l,n)}break;case 5:var o=t.stateNode;if(n===null&amp;&amp;t.flags&amp;4){n=o;var a=t.memoizedProps;switch(t.type){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:a.autoFocus&amp;&amp;n.focus();break;case&quot;img&quot;:a.src&amp;&amp;(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var m=c.dehydrated;m!==null&amp;&amp;$i(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}$e||t.flags&amp;512&amp;&amp;Na(t)}catch(y){xe(t,t.return,y)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function mf(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function yf(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bl(4,t)}catch(a){xe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==&quot;function&quot;){var i=t.return;try{r.componentDidMount()}catch(a){xe(t,i,a)}}var s=t.return;try{Na(t)}catch(a){xe(t,s,a)}break;case 5:var l=t.return;try{Na(t)}catch(a){xe(t,l,a)}}}catch(a){xe(t,t.return,a)}if(t===e){z=null;break}var o=t.sibling;if(o!==null){o.return=t.return,z=o;break}z=t.return}}var wv=Math.ceil,kl=Xt.ReactCurrentDispatcher,Hu=Xt.ReactCurrentOwner,yt=Xt.ReactCurrentBatchConfig,ne=0,Le=null,Ce=null,Me=0,nt=0,Sr=An(0),Re=0,Gi=null,nr=0,Jl=0,Ku=0,Ai=null,be=null,Qu=0,Qr=1/0,Ft=null,Sl=!1,Ia=null,_n=null,Rs=!1,hn=null,El=0,Ii=0,Pa=null,Qs=-1,bs=0;function Ze(){return ne&amp;6?Se():Qs!==-1?Qs:Qs=Se()}function xn(e){return e.mode&amp;1?ne&amp;2&amp;&amp;Me!==0?Me&amp;-Me:nv.transition!==null?(bs===0&amp;&amp;(bs=Kd()),bs):(e=ae,e!==0||(e=window.event,e=e===void 0?16:qd(e.type)),e):1}function Tt(e,t,n,r){if(50&lt;Ii)throw Ii=0,Pa=null,Error(N(185));as(e,n,r),(!(ne&amp;2)||e!==Le)&amp;&amp;(e===Le&amp;&amp;(!(ne&amp;2)&amp;&amp;(Jl|=n),Re===4&amp;&amp;on(e,Me)),qe(e,r),n===1&amp;&amp;ne===0&amp;&amp;!(t.mode&amp;1)&amp;&amp;(Qr=Se()+500,Hl&amp;&amp;In()))}function qe(e,t){var n=e.callbackNode;ny(e,t);var r=ol(e,e===Le?Me:0);if(r===0)n!==null&amp;&amp;Ec(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&amp;-r,e.callbackPriority!==t){if(n!=null&amp;&amp;Ec(n),t===1)e.tag===0?tv(vf.bind(null,e)):gh(vf.bind(null,e)),Yy(function(){!(ne&amp;6)&amp;&amp;In()}),n=null;else{switch(Qd(r)){case 1:n=wu;break;case 4:n=Zd;break;case 16:n=ll;break;case 536870912:n=Hd;break;default:n=ll}n=yp(n,up.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function up(e,t){if(Qs=-1,bs=0,ne&amp;6)throw Error(N(327));var n=e.callbackNode;if(Ir()&amp;&amp;e.callbackNode!==n)return null;var r=ol(e,e===Le?Me:0);if(r===0)return null;if(r&amp;30||r&amp;e.expiredLanes||t)t=Cl(e,r);else{t=r;var i=ne;ne|=2;var s=fp();(Le!==e||Me!==t)&amp;&amp;(Ft=null,Qr=Se()+500,bn(e,t));do try{kv();break}catch(o){cp(e,o)}while(!0);Pu(),kl.current=s,ne=i,Ce!==null?t=0:(Le=null,Me=0,t=Re)}if(t!==0){if(t===2&amp;&amp;(i=sa(e),i!==0&amp;&amp;(r=i,t=La(e,i))),t===1)throw n=Gi,bn(e,0),on(e,r),qe(e,Se()),n;if(t===6)on(e,r);else{if(i=e.current.alternate,!(r&amp;30)&amp;&amp;!_v(i)&amp;&amp;(t=Cl(e,r),t===2&amp;&amp;(s=sa(e),s!==0&amp;&amp;(r=s,t=La(e,s))),t===1))throw n=Gi,bn(e,0),on(e,r),qe(e,Se()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:Un(e,be,Ft);break;case 3:if(on(e,r),(r&amp;130023424)===r&amp;&amp;(t=Qu+500-Se(),10&lt;t)){if(ol(e,0)!==0)break;if(i=e.suspendedLanes,(i&amp;r)!==r){Ze(),e.pingedLanes|=e.suspendedLanes&amp;i;break}e.timeoutHandle=ha(Un.bind(null,e,be,Ft),t);break}Un(e,be,Ft);break;case 4:if(on(e,r),(r&amp;4194240)===r)break;for(t=e.eventTimes,i=-1;0&lt;r;){var l=31-Ot(r);s=1&lt;&lt;l,l=t[l],l&gt;i&amp;&amp;(i=l),r&amp;=~s}if(r=i,r=Se()-r,r=(120&gt;r?120:480&gt;r?480:1080&gt;r?1080:1920&gt;r?1920:3e3&gt;r?3e3:4320&gt;r?4320:1960*wv(r/1960))-r,10&lt;r){e.timeoutHandle=ha(Un.bind(null,e,be,Ft),r);break}Un(e,be,Ft);break;case 5:Un(e,be,Ft);break;default:throw Error(N(329))}}}return qe(e,Se()),e.callbackNode===n?up.bind(null,e):null}function La(e,t){var n=Ai;return e.current.memoizedState.isDehydrated&amp;&amp;(bn(e,t).flags|=256),e=Cl(e,t),e!==2&amp;&amp;(t=be,be=n,t!==null&amp;&amp;Da(t)),e}function Da(e){be===null?be=e:be.push.apply(be,e)}function _v(e){for(var t=e;;){if(t.flags&amp;16384){var n=t.updateQueue;if(n!==null&amp;&amp;(n=n.stores,n!==null))for(var r=0;r&lt;n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Nt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&amp;16384&amp;&amp;n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function on(e,t){for(t&amp;=~Ku,t&amp;=~Jl,e.suspendedLanes|=t,e.pingedLanes&amp;=~t,e=e.expirationTimes;0&lt;t;){var n=31-Ot(t),r=1&lt;&lt;n;e[n]=-1,t&amp;=~r}}function vf(e){if(ne&amp;6)throw Error(N(327));Ir();var t=ol(e,0);if(!(t&amp;1))return qe(e,Se()),null;var n=Cl(e,t);if(e.tag!==0&amp;&amp;n===2){var r=sa(e);r!==0&amp;&amp;(t=r,n=La(e,r))}if(n===1)throw n=Gi,bn(e,0),on(e,t),qe(e,Se()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Un(e,be,Ft),qe(e,Se()),null}function bu(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&amp;&amp;(Qr=Se()+500,Hl&amp;&amp;In())}}function rr(e){hn!==null&amp;&amp;hn.tag===0&amp;&amp;!(ne&amp;6)&amp;&amp;Ir();var t=ne;ne|=1;var n=yt.transition,r=ae;try{if(yt.transition=null,ae=1,e)return e()}finally{ae=r,yt.transition=n,ne=t,!(ne&amp;6)&amp;&amp;In()}}function Ju(){nt=Sr.current,pe(Sr)}function bn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&amp;&amp;(e.timeoutHandle=-1,Gy(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(Ru(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&amp;&amp;dl();break;case 3:Hr(),pe(Ye),pe(Ve),ju();break;case 5:Uu(r);break;case 4:Hr();break;case 13:pe(ye);break;case 19:pe(ye);break;case 10:Lu(r.type._context);break;case 22:case 23:Ju()}n=n.return}if(Le=e,Ce=e=kn(e.current,null),Me=nt=t,Re=0,Gi=null,Ku=Jl=nr=0,be=Ai=null,Vn!==null){for(t=0;t&lt;Vn.length;t++)if(n=Vn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=i,r.next=l}n.pending=r}Vn=null}return e}function cp(e,t){do{var n=Ce;try{if(Pu(),Zs.current=xl,_l){for(var r=ve.memoizedState;r!==null;){var i=r.queue;i!==null&amp;&amp;(i.pending=null),r=r.next}_l=!1}if(tr=0,Pe=Ne=ve=null,Ni=!1,Qi=0,Hu.current=null,n===null||n.return===null){Re=1,Gi=t,Ce=null;break}e:{var s=e,l=n.return,o=n,a=t;if(t=Me,o.flags|=32768,a!==null&amp;&amp;typeof a==&quot;object&quot;&amp;&amp;typeof a.then==&quot;function&quot;){var u=a,c=o,m=c.tag;if(!(c.mode&amp;1)&amp;&amp;(m===0||m===11||m===15)){var y=c.alternate;y?(c.updateQueue=y.updateQueue,c.memoizedState=y.memoizedState,c.lanes=y.lanes):(c.updateQueue=null,c.memoizedState=null)}var w=rf(l);if(w!==null){w.flags&amp;=-257,sf(w,l,o,s,t),w.mode&amp;1&amp;&amp;nf(s,u,t),t=w,a=u;var _=t.updateQueue;if(_===null){var E=new Set;E.add(a),t.updateQueue=E}else _.add(a);break e}else{if(!(t&amp;1)){nf(s,u,t),Gu();break e}a=Error(N(426))}}else if(me&amp;&amp;o.mode&amp;1){var L=rf(l);if(L!==null){!(L.flags&amp;65536)&amp;&amp;(L.flags|=256),sf(L,l,o,s,t),Au(Kr(a,o));break e}}s=a=Kr(a,o),Re!==4&amp;&amp;(Re=2),Ai===null?Ai=[s]:Ai.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&amp;=-t,s.lanes|=t;var h=Qh(s,a,t);Gc(s,h);break e;case 1:o=a;var f=s.type,p=s.stateNode;if(!(s.flags&amp;128)&amp;&amp;(typeof f.getDerivedStateFromError==&quot;function&quot;||p!==null&amp;&amp;typeof p.componentDidCatch==&quot;function&quot;&amp;&amp;(_n===null||!_n.has(p)))){s.flags|=65536,t&amp;=-t,s.lanes|=t;var O=bh(s,o,t);Gc(s,O);break e}}s=s.return}while(s!==null)}hp(n)}catch(D){t=D,Ce===n&amp;&amp;n!==null&amp;&amp;(Ce=n=n.return);continue}break}while(!0)}function fp(){var e=kl.current;return kl.current=xl,e===null?xl:e}function Gu(){(Re===0||Re===3||Re===2)&amp;&amp;(Re=4),Le===null||!(nr&amp;268435455)&amp;&amp;!(Jl&amp;268435455)||on(Le,Me)}function Cl(e,t){var n=ne;ne|=2;var r=fp();(Le!==e||Me!==t)&amp;&amp;(Ft=null,bn(e,t));do try{xv();break}catch(i){cp(e,i)}while(!0);if(Pu(),ne=n,kl.current=r,Ce!==null)throw Error(N(261));return Le=null,Me=0,Re}function xv(){for(;Ce!==null;)dp(Ce)}function kv(){for(;Ce!==null&amp;&amp;!Qm();)dp(Ce)}function dp(e){var t=mp(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?hp(e):Ce=t,Hu.current=null}function hp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&amp;32768){if(n=mv(n,t),n!==null){n.flags&amp;=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Re=6,Ce=null;return}}else if(n=pv(n,t,nt),n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Re===0&amp;&amp;(Re=5)}function Un(e,t,n){var r=ae,i=yt.transition;try{yt.transition=null,ae=1,Sv(e,t,n,r)}finally{yt.transition=i,ae=r}return null}function Sv(e,t,n,r){do Ir();while(hn!==null);if(ne&amp;6)throw Error(N(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(ry(e,s),e===Le&amp;&amp;(Ce=Le=null,Me=0),!(n.subtreeFlags&amp;2064)&amp;&amp;!(n.flags&amp;2064)||Rs||(Rs=!0,yp(ll,function(){return Ir(),null})),s=(n.flags&amp;15990)!==0,n.subtreeFlags&amp;15990||s){s=yt.transition,yt.transition=null;var l=ae;ae=1;var o=ne;ne|=4,Hu.current=null,vv(e,n),op(n,e),Wy(fa),al=!!ca,fa=ca=null,e.current=n,gv(n),bm(),ne=o,ae=l,yt.transition=s}else e.current=n;if(Rs&amp;&amp;(Rs=!1,hn=e,El=i),s=e.pendingLanes,s===0&amp;&amp;(_n=null),Ym(n.stateNode),qe(e,Se()),t!==null)for(r=e.onRecoverableError,n=0;n&lt;t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sl)throw Sl=!1,e=Ia,Ia=null,e;return El&amp;1&amp;&amp;e.tag!==0&amp;&amp;Ir(),s=e.pendingLanes,s&amp;1?e===Pa?Ii++:(Ii=0,Pa=e):Ii=0,In(),null}function Ir(){if(hn!==null){var e=Qd(El),t=yt.transition,n=ae;try{if(yt.transition=null,ae=16&gt;e?16:e,hn===null)var r=!1;else{if(e=hn,hn=null,El=0,ne&amp;6)throw Error(N(331));var i=ne;for(ne|=4,z=e.current;z!==null;){var s=z,l=s.child;if(z.flags&amp;16){var o=s.deletions;if(o!==null){for(var a=0;a&lt;o.length;a++){var u=o[a];for(z=u;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:Ri(8,c,s)}var m=c.child;if(m!==null)m.return=c,z=m;else for(;z!==null;){c=z;var y=c.sibling,w=c.return;if(ip(c),c===u){z=null;break}if(y!==null){y.return=w,z=y;break}z=w}}}var _=s.alternate;if(_!==null){var E=_.child;if(E!==null){_.child=null;do{var L=E.sibling;E.sibling=null,E=L}while(E!==null)}}z=s}}if(s.subtreeFlags&amp;2064&amp;&amp;l!==null)l.return=s,z=l;else e:for(;z!==null;){if(s=z,s.flags&amp;2048)switch(s.tag){case 0:case 11:case 15:Ri(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,z=h;break e}z=s.return}}var f=e.current;for(z=f;z!==null;){l=z;var p=l.child;if(l.subtreeFlags&amp;2064&amp;&amp;p!==null)p.return=l,z=p;else e:for(l=f;z!==null;){if(o=z,o.flags&amp;2048)try{switch(o.tag){case 0:case 11:case 15:bl(9,o)}}catch(D){xe(o,o.return,D)}if(o===l){z=null;break e}var O=o.sibling;if(O!==null){O.return=o.return,z=O;break e}z=o.return}}if(ne=i,In(),zt&amp;&amp;typeof zt.onPostCommitFiberRoot==&quot;function&quot;)try{zt.onPostCommitFiberRoot(Fl,e)}catch{}r=!0}return r}finally{ae=n,yt.transition=t}}return!1}function gf(e,t,n){t=Kr(n,t),t=Qh(e,t,1),e=wn(e,t,1),t=Ze(),e!==null&amp;&amp;(as(e,1,t),qe(e,t))}function xe(e,t,n){if(e.tag===3)gf(e,e,n);else for(;t!==null;){if(t.tag===3){gf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==&quot;function&quot;||typeof r.componentDidCatch==&quot;function&quot;&amp;&amp;(_n===null||!_n.has(r))){e=Kr(n,e),e=bh(t,e,1),t=wn(t,e,1),e=Ze(),t!==null&amp;&amp;(as(t,1,e),qe(t,e));break}}t=t.return}}function Ev(e,t,n){var r=e.pingCache;r!==null&amp;&amp;r.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&amp;n,Le===e&amp;&amp;(Me&amp;n)===n&amp;&amp;(Re===4||Re===3&amp;&amp;(Me&amp;130023424)===Me&amp;&amp;500&gt;Se()-Qu?bn(e,0):Ku|=n),qe(e,t)}function pp(e,t){t===0&amp;&amp;(e.mode&amp;1?(t=ws,ws&lt;&lt;=1,!(ws&amp;130023424)&amp;&amp;(ws=4194304)):t=1);var n=Ze();e=Jt(e,t),e!==null&amp;&amp;(as(e,t,n),qe(e,n))}function Cv(e){var t=e.memoizedState,n=0;t!==null&amp;&amp;(n=t.retryLane),pp(e,n)}function Ov(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&amp;&amp;(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&amp;&amp;r.delete(t),pp(e,n)}var mp;mp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ge=!0;else{if(!(e.lanes&amp;n)&amp;&amp;!(t.flags&amp;128))return Ge=!1,hv(e,t,n);Ge=!!(e.flags&amp;131072)}else Ge=!1,me&amp;&amp;t.flags&amp;1048576&amp;&amp;wh(t,ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ks(e,t),e=t.pendingProps;var i=Br(t,Ve.current);Ar(t,n),i=Fu(null,t,r,e,i,n);var s=Vu();return t.flags|=1,typeof i==&quot;object&quot;&amp;&amp;i!==null&amp;&amp;typeof i.render==&quot;function&quot;&amp;&amp;i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(r)?(s=!0,hl(t)):s=!1,t.memoizedState=i.state!==null&amp;&amp;i.state!==void 0?i.state:null,Mu(t),i.updater=Ql,t.stateNode=i,i._reactInternals=t,_a(t,r,e,n),t=Sa(null,t,r,!0,s,n)):(t.tag=0,me&amp;&amp;s&amp;&amp;Nu(t),Be(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ks(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Nv(r),e=kt(r,e),i){case 0:t=ka(null,t,r,e,n);break e;case 1:t=af(null,t,r,e,n);break e;case 11:t=lf(null,t,r,e,n);break e;case 14:t=of(null,t,r,kt(r.type,e),n);break e}throw Error(N(306,r,&quot;&quot;))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),ka(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),af(e,t,r,i,n);case 3:e:{if(Xh(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Ch(e,t),gl(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&amp;256){i=Kr(Error(N(423)),t),t=uf(e,t,r,n,i);break e}else if(r!==i){i=Kr(Error(N(424)),t),t=uf(e,t,r,n,i);break e}else for(rt=gn(t.stateNode.containerInfo.firstChild),st=t,me=!0,Ct=null,n=Sh(t,null,r,n),t.child=n;n;)n.flags=n.flags&amp;-3|4096,n=n.sibling;else{if(Wr(),r===i){t=Gt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return Oh(t),e===null&amp;&amp;va(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,da(r,i)?l=null:s!==null&amp;&amp;da(r,s)&amp;&amp;(t.flags|=32),Yh(e,t),Be(e,t,l,n),t.child;case 6:return e===null&amp;&amp;va(t),null;case 13:return qh(e,t,n);case 4:return zu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zr(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),lf(e,t,r,i,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,l=i.value,ue(yl,r._currentValue),r._currentValue=l,s!==null)if(Nt(s.value,l)){if(s.children===i.children&amp;&amp;!Ye.current){t=Gt(e,t,n);break e}}else for(s=t.child,s!==null&amp;&amp;(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){l=s.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Kt(-1,n&amp;-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&amp;&amp;(a.lanes|=n),ga(s.return,n,t),o.lanes|=n;break}a=a.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(N(341));l.lanes|=n,o=l.alternate,o!==null&amp;&amp;(o.lanes|=n),ga(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}Be(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ar(t,n),i=vt(i),r=r(i),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,i=kt(r,t.pendingProps),i=kt(r.type,i),of(e,t,r,i,n);case 15:return Jh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Ks(e,t),t.tag=1,Xe(r)?(e=!0,hl(t)):e=!1,Ar(t,n),Kh(t,r,i),_a(t,r,i,n),Sa(null,t,r,!0,e,n);case 19:return ep(e,t,n);case 22:return Gh(e,t,n)}throw Error(N(156,t.tag))};function yp(e,t){return Wd(e,t)}function Tv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,r){return new Tv(e,t,n,r)}function Yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nv(e){if(typeof e==&quot;function&quot;)return Yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yu)return 11;if(e===vu)return 14}return 2}function kn(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&amp;14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Js(e,t,n,r,i,s){var l=2;if(r=e,typeof e==&quot;function&quot;)Yu(e)&amp;&amp;(l=1);else if(typeof e==&quot;string&quot;)l=5;else e:switch(e){case hr:return Jn(n.children,i,s,t);case mu:l=8,i|=8;break;case Zo:return e=mt(12,n,t,i|2),e.elementType=Zo,e.lanes=s,e;case Ho:return e=mt(13,n,t,i),e.elementType=Ho,e.lanes=s,e;case Ko:return e=mt(19,n,t,i),e.elementType=Ko,e.lanes=s,e;case Od:return Gl(n,i,s,t);default:if(typeof e==&quot;object&quot;&amp;&amp;e!==null)switch(e.$$typeof){case Ed:l=10;break e;case Cd:l=9;break e;case yu:l=11;break e;case vu:l=14;break e;case nn:l=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,&quot;&quot;))}return t=mt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Jn(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Gl(e,t,n,r){return e=mt(22,e,r,t),e.elementType=Od,e.lanes=n,e.stateNode={isHidden:!1},e}function Io(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Po(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fo(0),this.expirationTimes=fo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xu(e,t,n,r,i,s,l,o,a){return e=new Rv(e,t,n,o,a),t===1?(t=1,s===!0&amp;&amp;(t|=8)):t=0,s=mt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mu(s),e}function Av(e,t,n){var r=3&lt;arguments.length&amp;&amp;arguments[3]!==void 0?arguments[3]:null;return{$$typeof:dr,key:r==null?null:&quot;&quot;+r,children:e,containerInfo:t,implementation:n}}function vp(e){if(!e)return On;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(Xe(n))return vh(e,n,t)}return t}function gp(e,t,n,r,i,s,l,o,a){return e=Xu(n,r,!0,e,i,s,l,o,a),e.context=vp(null),n=e.current,r=Ze(),i=xn(n),s=Kt(r,i),s.callback=t??null,wn(n,s,i),e.current.lanes=i,as(e,i,r),qe(e,r),e}function Yl(e,t,n,r){var i=t.current,s=Ze(),l=xn(i);return n=vp(n),t.context===null?t.context=n:t.pendingContext=n,t=Kt(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&amp;&amp;(t.callback=r),e=wn(i,t,l),e!==null&amp;&amp;(Tt(e,i,l,s),Ws(e,i,l)),l}function Ol(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function wf(e,t){if(e=e.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&amp;&amp;n&lt;t?n:t}}function qu(e,t){wf(e,t),(e=e.alternate)&amp;&amp;wf(e,t)}function Iv(){return null}var wp=typeof reportError==&quot;function&quot;?reportError:function(e){console.error(e)};function ec(e){this._internalRoot=e}Xl.prototype.render=ec.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Yl(e,t,null,null)};Xl.prototype.unmount=ec.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rr(function(){Yl(null,e,null,null)}),t[bt]=null}};function Xl(e){this._internalRoot=e}Xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gd();e={blockedOn:null,target:e,priority:t};for(var n=0;n&lt;ln.length&amp;&amp;t!==0&amp;&amp;t&lt;ln[n].priority;n++);ln.splice(n,0,e),n===0&amp;&amp;Xd(e)}};function tc(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11)}function ql(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11&amp;&amp;(e.nodeType!==8||e.nodeValue!==&quot; react-mount-point-unstable &quot;))}function _f(){}function Pv(e,t,n,r,i){if(i){if(typeof r==&quot;function&quot;){var s=r;r=function(){var u=Ol(l);s.call(u)}}var l=gp(t,r,e,0,null,!1,!1,&quot;&quot;,_f);return e._reactRootContainer=l,e[bt]=l.current,Bi(e.nodeType===8?e.parentNode:e),rr(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==&quot;function&quot;){var o=r;r=function(){var u=Ol(a);o.call(u)}}var a=Xu(e,0,!1,null,null,!1,!1,&quot;&quot;,_f);return e._reactRootContainer=a,e[bt]=a.current,Bi(e.nodeType===8?e.parentNode:e),rr(function(){Yl(t,a,n,r)}),a}function eo(e,t,n,r,i){var s=n._reactRootContainer;if(s){var l=s;if(typeof i==&quot;function&quot;){var o=i;i=function(){var a=Ol(l);o.call(a)}}Yl(t,l,e,i)}else l=Pv(n,t,e,i,r);return Ol(l)}bd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vi(t.pendingLanes);n!==0&amp;&amp;(_u(t,n|1),qe(t,Se()),!(ne&amp;6)&amp;&amp;(Qr=Se()+500,In()))}break;case 13:rr(function(){var r=Jt(e,1);if(r!==null){var i=Ze();Tt(r,e,1,i)}}),qu(e,1)}};xu=function(e){if(e.tag===13){var t=Jt(e,134217728);if(t!==null){var n=Ze();Tt(t,e,134217728,n)}qu(e,134217728)}};Jd=function(e){if(e.tag===13){var t=xn(e),n=Jt(e,t);if(n!==null){var r=Ze();Tt(n,e,t,r)}qu(e,t)}};Gd=function(){return ae};Yd=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};na=function(e,t,n){switch(t){case&quot;input&quot;:if(Jo(e,n),t=n.name,n.type===&quot;radio&quot;&amp;&amp;t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(&quot;input[name=&quot;+JSON.stringify(&quot;&quot;+t)+&#39;][type=&quot;radio&quot;]&#39;),t=0;t&lt;n.length;t++){var r=n[t];if(r!==e&amp;&amp;r.form===e.form){var i=Zl(r);if(!i)throw Error(N(90));Nd(r),Jo(r,i)}}}break;case&quot;textarea&quot;:Ad(e,n);break;case&quot;select&quot;:t=n.value,t!=null&amp;&amp;Or(e,!!n.multiple,t,!1)}};Ud=bu;jd=rr;var Lv={usingClientEntryPoint:!1,Events:[cs,vr,Zl,Md,zd,bu]},fi={findFiberByHostInstance:Fn,bundleType:0,version:&quot;18.3.1&quot;,rendererPackageName:&quot;react-dom&quot;},Dv={bundleType:fi.bundleType,version:fi.version,rendererPackageName:fi.rendererPackageName,rendererConfig:fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vd(e),e===null?null:e.stateNode},findFiberByHostInstance:fi.findFiberByHostInstance||Iv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:&quot;18.3.1-next-f1338f8080-20240426&quot;};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&lt;&quot;u&quot;){var As=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!As.isDisabled&amp;&amp;As.supportsFiber)try{Fl=As.inject(Dv),zt=As}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lv;at.createPortal=function(e,t){var n=2&lt;arguments.length&amp;&amp;arguments[2]!==void 0?arguments[2]:null;if(!tc(t))throw Error(N(200));return Av(e,t,null,n)};at.createRoot=function(e,t){if(!tc(e))throw Error(N(299));var n=!1,r=&quot;&quot;,i=wp;return t!=null&amp;&amp;(t.unstable_strictMode===!0&amp;&amp;(n=!0),t.identifierPrefix!==void 0&amp;&amp;(r=t.identifierPrefix),t.onRecoverableError!==void 0&amp;&amp;(i=t.onRecoverableError)),t=Xu(e,1,!1,null,null,n,!1,r,i),e[bt]=t.current,Bi(e.nodeType===8?e.parentNode:e),new ec(t)};at.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==&quot;function&quot;?Error(N(188)):(e=Object.keys(e).join(&quot;,&quot;),Error(N(268,e)));return e=Vd(t),e=e===null?null:e.stateNode,e};at.flushSync=function(e){return rr(e)};at.hydrate=function(e,t,n){if(!ql(t))throw Error(N(200));return eo(null,e,t,!0,n)};at.hydrateRoot=function(e,t,n){if(!tc(e))throw Error(N(405));var r=n!=null&amp;&amp;n.hydratedSources||null,i=!1,s=&quot;&quot;,l=wp;if(n!=null&amp;&amp;(n.unstable_strictMode===!0&amp;&amp;(i=!0),n.identifierPrefix!==void 0&amp;&amp;(s=n.identifierPrefix),n.onRecoverableError!==void 0&amp;&amp;(l=n.onRecoverableError)),t=gp(t,null,e,1,n??null,i,!1,s,l),e[bt]=t.current,Bi(e),r)for(e=0;e&lt;r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Xl(t)};at.render=function(e,t,n){if(!ql(t))throw Error(N(200));return eo(null,e,t,!1,n)};at.unmountComponentAtNode=function(e){if(!ql(e))throw Error(N(40));return e._reactRootContainer?(rr(function(){eo(null,null,e,!1,function(){e._reactRootContainer=null,e[bt]=null})}),!0):!1};at.unstable_batchedUpdates=bu;at.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ql(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return eo(e,t,n,!1,r)};at.version=&quot;18.3.1-next-f1338f8080-20240426&quot;;function _p(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&gt;&quot;u&quot;||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=&quot;function&quot;))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_p)}catch(e){console.error(e)}}_p(),_d.exports=at;var Mv=_d.exports,xp,xf=Mv;xp=xf.createRoot,xf.hydrateRoot;const Pr=new WeakMap,Gs=new WeakMap,Tl={current:[]};let Lo=!1;const Is=new Set,kf=new Map;function kp(e){const t=Array.from(e).sort((n,r)=&gt;n instanceof Sn&amp;&amp;n.options.deps.includes(r)?1:r instanceof Sn&amp;&amp;r.options.deps.includes(n)?-1:0);for(const n of t){if(Tl.current.includes(n))continue;Tl.current.push(n),n.recompute();const r=Gs.get(n);if(r)for(const i of r){const s=Pr.get(i);s&amp;&amp;kp(s)}}}function zv(e){e.listeners.forEach(t=&gt;t({prevVal:e.prevState,currentVal:e.state}))}function Uv(e){e.listeners.forEach(t=&gt;t({prevVal:e.prevState,currentVal:e.state}))}function jv(e){if(Is.add(e),!Lo)try{for(Lo=!0;Is.size&gt;0;){const t=Array.from(Is);Is.clear();for(const n of t){const r=kf.get(n)??n.prevState;n.prevState=r,zv(n)}for(const n of t){const r=Pr.get(n);r&amp;&amp;(Tl.current.push(n),kp(r))}for(const n of t){const r=Pr.get(n);if(r)for(const i of r)Uv(i)}}}finally{Lo=!1,Tl.current=[],kf.clear()}}function $v(e){return typeof e==&quot;function&quot;}class Ma{constructor(t,n){this.listeners=new Set,this.subscribe=r=&gt;{var i,s;this.listeners.add(r);const l=(s=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:s.call(i,r,this);return()=&gt;{this.listeners.delete(r),l==null||l()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,r,i;this.prevState=this.state,(n=this.options)!=null&amp;&amp;n.updateFn?this.state=this.options.updateFn(this.prevState)(t):$v(t)?this.state=t(this.prevState):this.state=t,(i=(r=this.options)==null?void 0:r.onUpdate)==null||i.call(r),jv(this)}}class Sn{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=&gt;{const n=[],r=[];for(const i of this.options.deps)n.push(i.prevState),r.push(i.state);return this.lastSeenDepValues=r,{prevDepVals:n,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=&gt;{var n,r;this.prevState=this.state;const{prevDepVals:i,currDepVals:s,prevVal:l}=this.getDepVals();this.state=this.options.fn({prevDepVals:i,currDepVals:s,prevVal:l}),(r=(n=this.options).onUpdate)==null||r.call(n)},this.checkIfRecalculationNeededDeeply=()=&gt;{for(const s of this.options.deps)s instanceof Sn&amp;&amp;s.checkIfRecalculationNeededDeeply();let n=!1;const r=this.lastSeenDepValues,{currDepVals:i}=this.getDepVals();for(let s=0;s&lt;i.length;s++)if(i[s]!==r[s]){n=!0;break}n&amp;&amp;this.recompute()},this.mount=()=&gt;(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=&gt;{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=&gt;{var r,i;this.listeners.add(n);const s=(i=(r=this.options).onSubscribe)==null?void 0:i.call(r,n,this);return()=&gt;{this.listeners.delete(n),s==null||s()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Sn)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof Ma){let r=Pr.get(n);r||(r=new Set,Pr.set(n,r)),r.add(this);let i=Gs.get(this);i||(i=new Set,Gs.set(this,i)),i.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Sn)this.unregisterFromGraph(n.options.deps);else if(n instanceof Ma){const r=Pr.get(n);r&amp;&amp;r.delete(this);const i=Gs.get(this);i&amp;&amp;i.delete(n)}}}class Fv{constructor(t){const{eager:n,fn:r,...i}=t;this._derived=new Sn({...i,fn:()=&gt;{},onUpdate(){r()}}),n&amp;&amp;r()}mount(){return this._derived.mount()}}function Vv(e,t={}){const n=new Ma({actors:{}}),r=t.hashFunction||Bv,i=new Map;function s(l){const o=r(l),a=i.get(o);if(a)return{...a,state:a.state};const u=new Sn({fn:({currDepVals:[_]})=&gt;_.actors[o],deps:[n]});function c(){async function _(){const E=n.state.actors[o];try{const L=e.getOrCreate(E.opts.name,E.opts.key,{params:E.opts.params,createInRegion:E.opts.createInRegion,createWithInput:E.opts.createWithInput}),h=L.connect();await L.resolve(),n.setState(f=&gt;({...f,actors:{...f.actors,[o]:{...f.actors[o],isConnected:!0,isConnecting:!1,handle:L,connection:h,isError:!1,error:null}}}))}catch(L){n.setState(h=&gt;({...h,actors:{...h.actors,[o]:{...h.actors[o],isError:!0,isConnecting:!1,error:L}}}))}}n.setState(E=&gt;(E.actors[o].isConnecting=!0,E.actors[o].isError=!1,E.actors[o].error=null,_(),E))}const m=new Fv({fn:()=&gt;{const _=n.state.actors[o];JSON.stringify(n.prevState.actors[o].opts)===JSON.stringify(n.state.actors[o].opts)&amp;&amp;!_.isConnected&amp;&amp;!_.isConnecting&amp;&amp;!_.isError&amp;&amp;_.opts.enabled&amp;&amp;c()},deps:[u]});n.setState(_=&gt;_.actors[o]?_:{..._,actors:{..._.actors,[o]:{hash:o,isConnected:!1,isConnecting:!1,connection:null,handle:null,isError:!1,error:null,opts:l}}});function y(_){n.setState(E=&gt;{const L=E.actors[o];if(!L)throw new Error(`Actor with key &quot;${o}&quot; does not exist.`);let h;return typeof _==&quot;function&quot;?h=_(L):h=_,{...E,actors:{...E.actors,[o]:h}}})}const w=()=&gt;{const _=u.mount(),E=m.mount();return()=&gt;{_(),E()}};return i.set(o,{state:u,key:o,mount:w,setState:y,create:c,addEventListener}),{mount:w,setState:y,state:u,create:c,key:o}}return{getOrCreateActor:s,store:n}}function Bv({name:e,key:t,params:n}){return JSON.stringify({name:e,key:t,params:n})}var Sp={exports:{}},Ep={},Cp={exports:{}},Op={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var br=Fe;function Wv(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Zv=typeof Object.is==&quot;function&quot;?Object.is:Wv,Hv=br.useState,Kv=br.useEffect,Qv=br.useLayoutEffect,bv=br.useDebugValue;function Jv(e,t){var n=t(),r=Hv({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return Qv(function(){i.value=n,i.getSnapshot=t,Do(i)&amp;&amp;s({inst:i})},[e,n,t]),Kv(function(){return Do(i)&amp;&amp;s({inst:i}),e(function(){Do(i)&amp;&amp;s({inst:i})})},[e]),bv(n),n}function Do(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zv(e,n)}catch{return!0}}function Gv(e,t){return t()}var Yv=typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;?Gv:Jv;Op.useSyncExternalStore=br.useSyncExternalStore!==void 0?br.useSyncExternalStore:Yv;Cp.exports=Op;var Xv=Cp.exports;/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var to=Fe,qv=Xv;function eg(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var tg=typeof Object.is==&quot;function&quot;?Object.is:eg,ng=qv.useSyncExternalStore,rg=to.useRef,ig=to.useEffect,sg=to.useMemo,lg=to.useDebugValue;Ep.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=rg(null);if(s.current===null){var l={hasValue:!1,value:null};s.current=l}else l=s.current;s=sg(function(){function a(w){if(!u){if(u=!0,c=w,w=r(w),i!==void 0&amp;&amp;l.hasValue){var _=l.value;if(i(_,w))return m=_}return m=w}if(_=m,tg(c,w))return _;var E=r(w);return i!==void 0&amp;&amp;i(_,E)?(c=w,_):(c=w,m=E)}var u=!1,c,m,y=n===void 0?null:n;return[function(){return a(t())},y===null?void 0:function(){return a(y())}]},[t,n,r,i]);var o=ng(e,s[0],s[1]);return ig(function(){l.hasValue=!0,l.value=o},[o]),lg(o),o};Sp.exports=Ep;var og=Sp.exports;function Sf(e,t=n=&gt;n){return og.useSyncExternalStoreWithSelector(e.subscribe,()=&gt;e.state,()=&gt;e.state,t,ag)}function ag(e,t){if(Object.is(e,t))return!0;if(typeof e!=&quot;object&quot;||e===null||typeof t!=&quot;object&quot;||t===null)return!1;if(e instanceof Map&amp;&amp;t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!t.has(r)||!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&amp;&amp;t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r&lt;n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}const ug=&quot;modulepreload&quot;,cg=function(e){return&quot;/&quot;+e},Ef={},Tp=function(t,n,r){let i=Promise.resolve();if(n&amp;&amp;n.length&gt;0){document.getElementsByTagName(&quot;link&quot;);const l=document.querySelector(&quot;meta[property=csp-nonce]&quot;),o=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute(&quot;nonce&quot;));i=Promise.allSettled(n.map(a=&gt;{if(a=cg(a),a in Ef)return;Ef[a]=!0;const u=a.endsWith(&quot;.css&quot;),c=u?&#39;[rel=&quot;stylesheet&quot;]&#39;:&quot;&quot;;if(document.querySelector(`link[href=&quot;${a}&quot;]${c}`))return;const m=document.createElement(&quot;link&quot;);if(m.rel=u?&quot;stylesheet&quot;:ug,u||(m.as=&quot;script&quot;),m.crossOrigin=&quot;&quot;,m.href=a,o&amp;&amp;m.setAttribute(&quot;nonce&quot;,o),document.head.appendChild(m),u)return new Promise((y,w)=&gt;{m.addEventListener(&quot;load&quot;,y),m.addEventListener(&quot;error&quot;,()=&gt;w(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(l){const o=new Event(&quot;vite:preloadError&quot;,{cancelable:!0});if(o.payload=l,window.dispatchEvent(o),!o.defaultPrevented)throw l}return i.then(l=&gt;{for(const o of l||[])o.status===&quot;rejected&quot;&amp;&amp;s(o.reason);return t().catch(s)})};var fg=&quot;internal_error&quot;,dg=class extends Error{constructor(n,r,i){super(r,{cause:i==null?void 0:i.cause});Rt(this,&quot;__type&quot;,&quot;ActorError&quot;);Rt(this,&quot;public&quot;);Rt(this,&quot;metadata&quot;);Rt(this,&quot;statusCode&quot;,500);this.code=n,this.public=(i==null?void 0:i.public)??!1,this.metadata=i==null?void 0:i.metadata,i!=null&amp;&amp;i.public&amp;&amp;(this.statusCode=400)}static isActorError(n){return typeof n==&quot;object&quot;&amp;&amp;n.__type===&quot;ActorError&quot;}toString(){return this.message}serializeForHttp(){return{type:this.code,message:this.message,metadata:this.metadata}}},hg=class extends dg{constructor(e){super(fg,e)}},pg=class extends hg{constructor(e){super(`Unreachable case: ${e}`)}},mg={};function dt(e){throw new Error(`Unreachable case: ${e}`)}function Cf(e){if(e instanceof Error)return typeof process&lt;&quot;u&quot;&amp;&amp;Nl(&quot;_RIVETKIT_ERROR_STACK&quot;)===&quot;1&quot;?`${e.name}: ${e.message}${e.stack?`
${e.stack}`:&quot;&quot;}`:`${e.name}: ${e.message}`;if(typeof e==&quot;string&quot;)return e;if(typeof e==&quot;object&quot;&amp;&amp;e!==null)try{return`${JSON.stringify(e)}`}catch{return&quot;[cannot stringify error]&quot;}else return`Unknown error: ${yg(e)}`}function yg(e){return e&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;&quot;message&quot;in e&amp;&amp;typeof e.message==&quot;string&quot;?e.message:String(e)}var vg={version:&quot;0.9.9&quot;},gg=vg.version,Mo;function Ys(){if(Mo!==void 0)return Mo;let e=`RivetKit/${gg}`;const t=typeof navigator&lt;&quot;u&quot;?navigator:void 0;return t!=null&amp;&amp;t.userAgent&amp;&amp;(e+=` ${t.userAgent}`),Mo=e,e}function Nl(e){if(typeof Deno&lt;&quot;u&quot;)return Deno.env.get(e);if(typeof process&lt;&quot;u&quot;)return mg[e]}var Mn={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,CRITICAL:5},Np={0:&quot;TRACE&quot;,1:&quot;DEBUG&quot;,2:&quot;INFO&quot;,3:&quot;WARN&quot;,4:&quot;ERROR&quot;,5:&quot;CRITICAL&quot;};function wg(...e){let t=&quot;&quot;;for(let n=0;n&lt;e.length;n++){const[r,i]=e[n];let s=!1,l;i==null?(s=!0,l=&quot;&quot;):l=i.toString(),l.length&gt;512&amp;&amp;r!==&quot;msg&quot;&amp;&amp;r!==&quot;error&quot;&amp;&amp;(l=`${l.slice(0,512)}...`);const o=l.indexOf(&quot; &quot;)&gt;-1||l.indexOf(&quot;=&quot;)&gt;-1,a=l.indexOf(&#39;&quot;&#39;)&gt;-1||l.indexOf(&quot;\\&quot;)&gt;-1;l=l.replace(/\n/g,&quot;\\n&quot;),a&amp;&amp;(l=l.replace(/[&quot;\\]/g,&quot;\\$&amp;&quot;)),(o||a)&amp;&amp;(l=`&quot;${l}&quot;`),l===&quot;&quot;&amp;&amp;!s&amp;&amp;(l=&#39;&quot;&quot;&#39;),t+=`${r}=${l}`,n!==e.length-1&amp;&amp;(t+=&quot; &quot;)}return t}function _g(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,&quot;0&quot;),r=String(e.getUTCDate()).padStart(2,&quot;0&quot;),i=String(e.getUTCHours()).padStart(2,&quot;0&quot;),s=String(e.getUTCMinutes()).padStart(2,&quot;0&quot;),l=String(e.getUTCSeconds()).padStart(2,&quot;0&quot;),o=String(e.getUTCMilliseconds()).padStart(3,&quot;0&quot;);return`${t}-${n}-${r}T${i}:${s}:${l}.${o}Z`}function xg(e){if(typeof e==&quot;string&quot;||typeof e==&quot;number&quot;||typeof e==&quot;boolean&quot;||e===null||e===void 0)return e;if(e instanceof Error)return String(e);try{return JSON.stringify(e)}catch{return&quot;[cannot stringify]&quot;}}var ei,Rp,Ap,nd,kg=(nd=class{constructor(e,t){le(this,ei);Rt(this,&quot;name&quot;);Rt(this,&quot;level&quot;);this.name=e,this.level=t}log(e,t,...n){const r={msg:t,args:n,level:e,loggerName:this.name,datetime:new Date,levelName:Np[e]};te(this,ei,Rp).call(this,e)&amp;&amp;te(this,ei,Ap).call(this,r)}trace(e,...t){this.log(Mn.TRACE,e,...t)}debug(e,...t){this.log(Mn.DEBUG,e,...t)}info(e,...t){this.log(Mn.INFO,e,...t)}warn(e,...t){this.log(Mn.WARN,e,...t)}error(e,...t){this.log(Mn.ERROR,e,...t)}critical(e,...t){this.log(Mn.CRITICAL,e,...t)}},ei=new WeakSet,Rp=function(e){return e&gt;=Mn[this.level]},Ap=function(e){console.log(Sg(e))},nd),zo={};function Ip(e=&quot;default&quot;){const n=Nl(&quot;_LOG_LEVEL&quot;)??&quot;INFO&quot;;return zo[e]||(zo[e]=new kg(e,n)),zo[e]}function Sg(e){const t=[];for(let i=0;i&lt;e.args.length;i++){const s=e.args[i];if(s&amp;&amp;typeof s==&quot;object&quot;)for(const l in s){const o=s[l];Of(l,o,t)}else Of(`arg${i}`,s,t)}const n=Nl(&quot;_LOG_TIMESTAMP&quot;)===&quot;1&quot;,r=Nl(&quot;_LOG_TARGET&quot;)===&quot;1&quot;;return wg(...n?[[&quot;ts&quot;,_g(new Date)]]:[],[&quot;level&quot;,Np[e.level]],...r?[[&quot;target&quot;,e.loggerName]]:[],[&quot;msg&quot;,e.msg],...t)}function Of(e,t,n){n.push([e,xg(t)])}let za;try{za=new TextDecoder}catch{}let $,Gn,x=0;const Eg=105,Cg=57342,Og=57343,Tf=57337,Nf=6,ur={};let di=11281e4,$t=1681e4,q={},ke,Rl,Al=0,Yi=0,Ae,ht,Oe=[],Ua=[],Je,We,wi,Rf={useRecords:!1,mapsAsObjects:!0},Xi=!1,Pp=2;try{new Function(&quot;&quot;)}catch{Pp=1/0}class qi{constructor(t){if(t&amp;&amp;((t.keyMap||t._keyMap)&amp;&amp;!t.useRecords&amp;&amp;(t.useRecords=!1,t.mapsAsObjects=!0),t.useRecords===!1&amp;&amp;t.mapsAsObjects===void 0&amp;&amp;(t.mapsAsObjects=!0),t.getStructures&amp;&amp;(t.getShared=t.getStructures),t.getShared&amp;&amp;!t.structures&amp;&amp;((t.structures=[]).uninitialized=!0),t.keyMap)){this.mapKey=new Map;for(let[n,r]of Object.entries(t.keyMap))this.mapKey.set(r,n)}Object.assign(this,t)}decodeKey(t){return this.keyMap&amp;&amp;this.mapKey.get(t)||t}encodeKey(t){return this.keyMap&amp;&amp;this.keyMap.hasOwnProperty(t)?this.keyMap[t]:t}encodeKeys(t){if(!this._keyMap)return t;let n=new Map;for(let[r,i]of Object.entries(t))n.set(this._keyMap.hasOwnProperty(r)?this._keyMap[r]:r,i);return n}decodeKeys(t){if(!this._keyMap||t.constructor.name!=&quot;Map&quot;)return t;if(!this._mapKey){this._mapKey=new Map;for(let[r,i]of Object.entries(this._keyMap))this._mapKey.set(i,r)}let n={};return t.forEach((r,i)=&gt;n[pt(this._mapKey.has(i)?this._mapKey.get(i):i)]=r),n}mapDecode(t,n){let r=this.decode(t);if(this._keyMap)switch(r.constructor.name){case&quot;Array&quot;:return r.map(i=&gt;this.decodeKeys(i))}return r}decode(t,n){if($)return zp(()=&gt;(Va(),this?this.decode(t,n):qi.prototype.decode.call(Rf,t,n)));Gn=n&gt;-1?n:t.length,x=0,Yi=0,Rl=null,Ae=null,$=t;try{We=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(r){throw $=null,t instanceof Uint8Array?r:new Error(&quot;Source must be a Uint8Array or Buffer but was a &quot;+(t&amp;&amp;typeof t==&quot;object&quot;?t.constructor.name:typeof t))}if(this instanceof qi){if(q=this,Je=this.sharedValues&amp;&amp;(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return ke=this.structures,Ps();(!ke||ke.length&gt;0)&amp;&amp;(ke=[])}else q=Rf,(!ke||ke.length&gt;0)&amp;&amp;(ke=[]),Je=null;return Ps()}decodeMultiple(t,n){let r,i=0;try{let s=t.length;Xi=!0;let l=this?this.decode(t,s):ic.decode(t,s);if(n){if(n(l)===!1)return;for(;x&lt;s;)if(i=x,n(Ps())===!1)return}else{for(r=[l];x&lt;s;)i=x,r.push(Ps());return r}}catch(s){throw s.lastPosition=i,s.values=r,s}finally{Xi=!1,Va()}}}function Ps(){try{let e=ee();if(Ae){if(x&gt;=Ae.postBundlePosition){let t=new Error(&quot;Unexpected bundle position&quot;);throw t.incomplete=!0,t}x=Ae.postBundlePosition,Ae=null}if(x==Gn)ke=null,$=null,ht&amp;&amp;(ht=null);else if(x&gt;Gn){let t=new Error(&quot;Unexpected end of CBOR data&quot;);throw t.incomplete=!0,t}else if(!Xi)throw new Error(&quot;Data read, but end of buffer not reached&quot;);return e}catch(e){throw Va(),(e instanceof RangeError||e.message.startsWith(&quot;Unexpected end of buffer&quot;))&amp;&amp;(e.incomplete=!0),e}}function ee(){let e=$[x++],t=e&gt;&gt;5;if(e=e&amp;31,e&gt;23)switch(e){case 24:e=$[x++];break;case 25:if(t==7)return Ag();e=We.getUint16(x),x+=2;break;case 26:if(t==7){let n=We.getFloat32(x);if(q.useFloat32&gt;2){let r=rc[($[x]&amp;127)&lt;&lt;1|$[x+1]&gt;&gt;7];return x+=4,(r*n+(n&gt;0?.5:-.5)&gt;&gt;0)/r}return x+=4,n}e=We.getUint32(x),x+=4;break;case 27:if(t==7){let n=We.getFloat64(x);return x+=8,n}if(t&gt;1){if(We.getUint32(x)&gt;0)throw new Error(&quot;JavaScript does not support arrays, maps, or strings with length over 4294967295&quot;);e=We.getUint32(x+4)}else q.int64AsNumber?(e=We.getUint32(x)*4294967296,e+=We.getUint32(x+4)):e=We.getBigUint64(x);x+=8;break;case 31:switch(t){case 2:case 3:throw new Error(&quot;Indefinite length not supported for byte or text strings&quot;);case 4:let n=[],r,i=0;for(;(r=ee())!=ur;){if(i&gt;=di)throw new Error(`Array length exceeds ${di}`);n[i++]=r}return t==4?n:t==3?n.join(&quot;&quot;):Buffer.concat(n);case 5:let s;if(q.mapsAsObjects){let l={},o=0;if(q.keyMap)for(;(s=ee())!=ur;){if(o++&gt;=$t)throw new Error(`Property count exceeds ${$t}`);l[pt(q.decodeKey(s))]=ee()}else for(;(s=ee())!=ur;){if(o++&gt;=$t)throw new Error(`Property count exceeds ${$t}`);l[pt(s)]=ee()}return l}else{wi&amp;&amp;(q.mapsAsObjects=!0,wi=!1);let l=new Map;if(q.keyMap){let o=0;for(;(s=ee())!=ur;){if(o++&gt;=$t)throw new Error(`Map size exceeds ${$t}`);l.set(q.decodeKey(s),ee())}}else{let o=0;for(;(s=ee())!=ur;){if(o++&gt;=$t)throw new Error(`Map size exceeds ${$t}`);l.set(s,ee())}}return l}case 7:return ur;default:throw new Error(&quot;Invalid major type for indefinite length &quot;+t)}default:throw new Error(&quot;Unknown token &quot;+e)}switch(t){case 0:return e;case 1:return~e;case 2:return Rg(e);case 3:if(Yi&gt;=x)return Rl.slice(x-Al,(x+=e)-Al);if(Yi==0&amp;&amp;Gn&lt;140&amp;&amp;e&lt;32){let i=e&lt;16?Lp(e):Ng(e);if(i!=null)return i}return Tg(e);case 4:if(e&gt;=di)throw new Error(`Array length exceeds ${di}`);let n=new Array(e);for(let i=0;i&lt;e;i++)n[i]=ee();return n;case 5:if(e&gt;=$t)throw new Error(`Map size exceeds ${di}`);if(q.mapsAsObjects){let i={};if(q.keyMap)for(let s=0;s&lt;e;s++)i[pt(q.decodeKey(ee()))]=ee();else for(let s=0;s&lt;e;s++)i[pt(ee())]=ee();return i}else{wi&amp;&amp;(q.mapsAsObjects=!0,wi=!1);let i=new Map;if(q.keyMap)for(let s=0;s&lt;e;s++)i.set(q.decodeKey(ee()),ee());else for(let s=0;s&lt;e;s++)i.set(ee(),ee());return i}case 6:if(e&gt;=Tf){let i=ke[e&amp;8191];if(i)return i.read||(i.read=ja(i)),i.read();if(e&lt;65536){if(e==Og){let s=Er(),l=ee(),o=ee();Fa(l,o);let a={};if(q.keyMap)for(let u=2;u&lt;s;u++){let c=q.decodeKey(o[u-2]);a[pt(c)]=ee()}else for(let u=2;u&lt;s;u++){let c=o[u-2];a[pt(c)]=ee()}return a}else if(e==Cg){let s=Er(),l=ee();for(let o=2;o&lt;s;o++)Fa(l++,ee());return ee()}else if(e==Tf)return zg();if(q.getShared&amp;&amp;(nc(),i=ke[e&amp;8191],i))return i.read||(i.read=ja(i)),i.read()}}let r=Oe[e];if(r)return r.handlesRead?r(ee):r(ee());{let i=ee();for(let s=0;s&lt;Ua.length;s++){let l=Ua[s](e,i);if(l!==void 0)return l}return new ir(i,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 31:default:let i=(Je||jn())[e];if(i!==void 0)return i;throw new Error(&quot;Unknown token &quot;+e)}default:if(isNaN(e)){let i=new Error(&quot;Unexpected end of CBOR data&quot;);throw i.incomplete=!0,i}throw new Error(&quot;Unknown CBOR token &quot;+e)}}const Af=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function ja(e){if(!e)throw new Error(&quot;Structure is required in record definition&quot;);function t(){let n=$[x++];if(n=n&amp;31,n&gt;23)switch(n){case 24:n=$[x++];break;case 25:n=We.getUint16(x),x+=2;break;case 26:n=We.getUint32(x),x+=4;break;default:throw new Error(&quot;Expected array header, but got &quot;+$[x-1])}let r=this.compiledReader;for(;r;){if(r.propertyCount===n)return r(ee);r=r.next}if(this.slowReads++&gt;=Pp){let s=this.length==n?this:this.slice(0,n);return r=q.keyMap?new Function(&quot;r&quot;,&quot;return {&quot;+s.map(l=&gt;q.decodeKey(l)).map(l=&gt;Af.test(l)?pt(l)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(l)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;):new Function(&quot;r&quot;,&quot;return {&quot;+s.map(l=&gt;Af.test(l)?pt(l)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(l)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;),this.compiledReader&amp;&amp;(r.next=this.compiledReader),r.propertyCount=n,this.compiledReader=r,r(ee)}let i={};if(q.keyMap)for(let s=0;s&lt;n;s++)i[pt(q.decodeKey(this[s]))]=ee();else for(let s=0;s&lt;n;s++)i[pt(this[s])]=ee();return i}return e.slowReads=0,t}function pt(e){if(typeof e==&quot;string&quot;)return e===&quot;__proto__&quot;?&quot;__proto_&quot;:e;if(typeof e==&quot;number&quot;||typeof e==&quot;boolean&quot;||typeof e==&quot;bigint&quot;)return e.toString();if(e==null)return e+&quot;&quot;;throw new Error(&quot;Invalid property name type &quot;+typeof e)}let Tg=$a;function $a(e){let t;if(e&lt;16&amp;&amp;(t=Lp(e)))return t;if(e&gt;64&amp;&amp;za)return za.decode($.subarray(x,x+=e));const n=x+e,r=[];for(t=&quot;&quot;;x&lt;n;){const i=$[x++];if(!(i&amp;128))r.push(i);else if((i&amp;224)===192){const s=$[x++]&amp;63;r.push((i&amp;31)&lt;&lt;6|s)}else if((i&amp;240)===224){const s=$[x++]&amp;63,l=$[x++]&amp;63;r.push((i&amp;31)&lt;&lt;12|s&lt;&lt;6|l)}else if((i&amp;248)===240){const s=$[x++]&amp;63,l=$[x++]&amp;63,o=$[x++]&amp;63;let a=(i&amp;7)&lt;&lt;18|s&lt;&lt;12|l&lt;&lt;6|o;a&gt;65535&amp;&amp;(a-=65536,r.push(a&gt;&gt;&gt;10&amp;1023|55296),a=56320|a&amp;1023),r.push(a)}else r.push(i);r.length&gt;=4096&amp;&amp;(t+=Ie.apply(String,r),r.length=0)}return r.length&gt;0&amp;&amp;(t+=Ie.apply(String,r)),t}let Ie=String.fromCharCode;function Ng(e){let t=x,n=new Array(e);for(let r=0;r&lt;e;r++){const i=$[x++];if((i&amp;128)&gt;0){x=t;return}n[r]=i}return Ie.apply(String,n)}function Lp(e){if(e&lt;4)if(e&lt;2){if(e===0)return&quot;&quot;;{let t=$[x++];if((t&amp;128)&gt;1){x-=1;return}return Ie(t)}}else{let t=$[x++],n=$[x++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0){x-=2;return}if(e&lt;3)return Ie(t,n);let r=$[x++];if((r&amp;128)&gt;0){x-=3;return}return Ie(t,n,r)}else{let t=$[x++],n=$[x++],r=$[x++],i=$[x++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0||(r&amp;128)&gt;0||(i&amp;128)&gt;0){x-=4;return}if(e&lt;6){if(e===4)return Ie(t,n,r,i);{let s=$[x++];if((s&amp;128)&gt;0){x-=5;return}return Ie(t,n,r,i,s)}}else if(e&lt;8){let s=$[x++],l=$[x++];if((s&amp;128)&gt;0||(l&amp;128)&gt;0){x-=6;return}if(e&lt;7)return Ie(t,n,r,i,s,l);let o=$[x++];if((o&amp;128)&gt;0){x-=7;return}return Ie(t,n,r,i,s,l,o)}else{let s=$[x++],l=$[x++],o=$[x++],a=$[x++];if((s&amp;128)&gt;0||(l&amp;128)&gt;0||(o&amp;128)&gt;0||(a&amp;128)&gt;0){x-=8;return}if(e&lt;10){if(e===8)return Ie(t,n,r,i,s,l,o,a);{let u=$[x++];if((u&amp;128)&gt;0){x-=9;return}return Ie(t,n,r,i,s,l,o,a,u)}}else if(e&lt;12){let u=$[x++],c=$[x++];if((u&amp;128)&gt;0||(c&amp;128)&gt;0){x-=10;return}if(e&lt;11)return Ie(t,n,r,i,s,l,o,a,u,c);let m=$[x++];if((m&amp;128)&gt;0){x-=11;return}return Ie(t,n,r,i,s,l,o,a,u,c,m)}else{let u=$[x++],c=$[x++],m=$[x++],y=$[x++];if((u&amp;128)&gt;0||(c&amp;128)&gt;0||(m&amp;128)&gt;0||(y&amp;128)&gt;0){x-=12;return}if(e&lt;14){if(e===12)return Ie(t,n,r,i,s,l,o,a,u,c,m,y);{let w=$[x++];if((w&amp;128)&gt;0){x-=13;return}return Ie(t,n,r,i,s,l,o,a,u,c,m,y,w)}}else{let w=$[x++],_=$[x++];if((w&amp;128)&gt;0||(_&amp;128)&gt;0){x-=14;return}if(e&lt;15)return Ie(t,n,r,i,s,l,o,a,u,c,m,y,w,_);let E=$[x++];if((E&amp;128)&gt;0){x-=15;return}return Ie(t,n,r,i,s,l,o,a,u,c,m,y,w,_,E)}}}}}function Rg(e){return q.copyBuffers?Uint8Array.prototype.slice.call($,x,x+=e):$.subarray(x,x+=e)}let Dp=new Float32Array(1),Ls=new Uint8Array(Dp.buffer,0,4);function Ag(){let e=$[x++],t=$[x++],n=(e&amp;127)&gt;&gt;2;if(n===31)return t||e&amp;3?NaN:e&amp;128?-1/0:1/0;if(n===0){let r=((e&amp;3)&lt;&lt;8|t)/16777216;return e&amp;128?-r:r}return Ls[3]=e&amp;128|(n&gt;&gt;1)+56,Ls[2]=(e&amp;7)&lt;&lt;5|t&gt;&gt;3,Ls[1]=t&lt;&lt;5,Ls[0]=0,Dp[0]}new Array(4096);class ir{constructor(t,n){this.value=t,this.tag=n}}Oe[0]=e=&gt;new Date(e);Oe[1]=e=&gt;new Date(Math.round(e*1e3));Oe[2]=e=&gt;{let t=BigInt(0);for(let n=0,r=e.byteLength;n&lt;r;n++)t=BigInt(e[n])+(t&lt;&lt;BigInt(8));return t};Oe[3]=e=&gt;BigInt(-1)-Oe[2](e);Oe[4]=e=&gt;+(e[1]+&quot;e&quot;+e[0]);Oe[5]=e=&gt;e[1]*Math.exp(e[0]*Math.log(2));const Fa=(e,t)=&gt;{e=e-57344;let n=ke[e];n&amp;&amp;n.isShared&amp;&amp;((ke.restoreStructures||(ke.restoreStructures=[]))[e]=n),ke[e]=t,t.read=ja(t)};Oe[Eg]=e=&gt;{let t=e.length,n=e[1];Fa(e[0],n);let r={};for(let i=2;i&lt;t;i++){let s=n[i-2];r[pt(s)]=e[i]}return r};Oe[14]=e=&gt;Ae?Ae[0].slice(Ae.position0,Ae.position0+=e):new ir(e,14);Oe[15]=e=&gt;Ae?Ae[1].slice(Ae.position1,Ae.position1+=e):new ir(e,15);let Ig={Error,RegExp};Oe[27]=e=&gt;(Ig[e[0]]||Error)(e[1],e[2]);const Mp=e=&gt;{if($[x++]!=132){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw $.length&lt;x&amp;&amp;(n.incomplete=!0),n}let t=e();if(!t||!t.length){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw n.incomplete=!0,n}return Je=Je?t.concat(Je.slice(t.length)):t,Je.prefixes=e(),Je.suffixes=e(),e()};Mp.handlesRead=!0;Oe[51]=Mp;Oe[Nf]=e=&gt;{if(!Je)if(q.getShared)nc();else return new ir(e,Nf);if(typeof e==&quot;number&quot;)return Je[16+(e&gt;=0?2*e:-2*e-1)];let t=new Error(&quot;No support for non-integer packed references yet&quot;);throw e===void 0&amp;&amp;(t.incomplete=!0),t};Oe[28]=e=&gt;{ht||(ht=new Map,ht.id=0);let t=ht.id++,n=x,r=$[x],i;r&gt;&gt;5==4?i=[]:i={};let s={target:i};ht.set(t,s);let l=e();return s.used?(Object.getPrototypeOf(i)!==Object.getPrototypeOf(l)&amp;&amp;(x=n,i=l,ht.set(t,{target:i}),l=e()),Object.assign(i,l)):(s.target=l,l)};Oe[28].handlesRead=!0;Oe[29]=e=&gt;{let t=ht.get(e);return t.used=!0,t.target};Oe[258]=e=&gt;new Set(e);(Oe[259]=e=&gt;(q.mapsAsObjects&amp;&amp;(q.mapsAsObjects=!1,wi=!0),e())).handlesRead=!0;function cr(e,t){return typeof e==&quot;string&quot;?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function jn(){if(!Je)if(q.getShared)nc();else throw new Error(&quot;No packed values available&quot;);return Je}const Pg=1399353956;Ua.push((e,t)=&gt;{if(e&gt;=225&amp;&amp;e&lt;=255)return cr(jn().prefixes[e-224],t);if(e&gt;=28704&amp;&amp;e&lt;=32767)return cr(jn().prefixes[e-28672],t);if(e&gt;=1879052288&amp;&amp;e&lt;=2147483647)return cr(jn().prefixes[e-1879048192],t);if(e&gt;=216&amp;&amp;e&lt;=223)return cr(t,jn().suffixes[e-216]);if(e&gt;=27647&amp;&amp;e&lt;=28671)return cr(t,jn().suffixes[e-27639]);if(e&gt;=1811940352&amp;&amp;e&lt;=1879048191)return cr(t,jn().suffixes[e-1811939328]);if(e==Pg)return{packedValues:Je,structures:ke.slice(0),version:t};if(e==55799)return t});const Lg=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,If=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?{name:&quot;BigUint64Array&quot;}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?{name:&quot;BigInt64Array&quot;}:BigInt64Array,Float32Array,Float64Array],Dg=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e&lt;If.length;e++)Mg(If[e],Dg[e]);function Mg(e,t){let n=&quot;get&quot;+e.name.slice(0,-5),r;typeof e==&quot;function&quot;?r=e.BYTES_PER_ELEMENT:e=null;for(let i=0;i&lt;2;i++){if(!i&amp;&amp;r==1)continue;let s=r==2?1:r==4?2:r==8?3:0;Oe[i?t:t-4]=r==1||i==Lg?l=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);return!q.copyBuffers&amp;&amp;(r===1||r===2&amp;&amp;!(l.byteOffset&amp;1)||r===4&amp;&amp;!(l.byteOffset&amp;3)||r===8&amp;&amp;!(l.byteOffset&amp;7))?new e(l.buffer,l.byteOffset,l.byteLength&gt;&gt;s):new e(Uint8Array.prototype.slice.call(l,0).buffer)}:l=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);let o=new DataView(l.buffer,l.byteOffset,l.byteLength),a=l.length&gt;&gt;s,u=new e(a),c=o[n];for(let m=0;m&lt;a;m++)u[m]=c.call(o,m&lt;&lt;s,i);return u}}}function zg(){let e=Er(),t=x+ee();for(let r=2;r&lt;e;r++){let i=Er();x+=i}let n=x;return x=t,Ae=[$a(Er()),$a(Er())],Ae.position0=0,Ae.position1=0,Ae.postBundlePosition=x,x=n,ee()}function Er(){let e=$[x++]&amp;31;if(e&gt;23)switch(e){case 24:e=$[x++];break;case 25:e=We.getUint16(x),x+=2;break;case 26:e=We.getUint32(x),x+=4;break}return e}function nc(){if(q.getShared){let e=zp(()=&gt;($=null,q.getShared()))||{},t=e.structures||[];q.sharedVersion=e.version,Je=q.sharedValues=e.packedValues,ke===!0?q.structures=ke=t:ke.splice.apply(ke,[0,t.length].concat(t))}}function zp(e){let t=Gn,n=x,r=Al,i=Yi,s=Rl,l=ht,o=Ae,a=new Uint8Array($.slice(0,Gn)),u=ke,c=q,m=Xi,y=e();return Gn=t,x=n,Al=r,Yi=i,Rl=s,ht=l,Ae=o,$=a,Xi=m,ke=u,q=c,We=new DataView($.buffer,$.byteOffset,$.byteLength),y}function Va(){$=null,ht=null,ke=null}const rc=new Array(147);for(let e=0;e&lt;256;e++)rc[e]=+(&quot;1e&quot;+Math.floor(45.15-e*.30103));let ic=new qi({useRecords:!1});const Pi=ic.decode;ic.decodeMultiple;let Xs;try{Xs=new TextEncoder}catch{}let Ba,Up;const no=typeof globalThis==&quot;object&quot;&amp;&amp;globalThis.Buffer,ds=typeof no&lt;&quot;u&quot;,Uo=ds?no.allocUnsafeSlow:Uint8Array,Pf=ds?no:Uint8Array,Lf=256,Df=ds?4294967296:2144337920;let jo,g,he,d=0,tn,Te=null;const Ug=61440,jg=/[\u0080-\uFFFF]/,et=Symbol(&quot;record-id&quot;);class $g extends qi{constructor(t){super(t),this.offset=0;let n,r,i,s,l;t=t||{};let o=Pf.prototype.utf8Write?function(v,j,T){return g.utf8Write(v,j,T)}:Xs&amp;&amp;Xs.encodeInto?function(v,j){return Xs.encodeInto(v,g.subarray(j)).written}:!1,a=this,u=t.structures||t.saveStructures,c=t.maxSharedStructures;if(c==null&amp;&amp;(c=u?128:0),c&gt;8190)throw new Error(&quot;Maximum maxSharedStructure is 8190&quot;);let m=t.sequential;m&amp;&amp;(c=0),this.structures||(this.structures=[]),this.saveStructures&amp;&amp;(this.saveShared=this.saveStructures);let y,w,_=t.sharedValues,E;if(_){E=Object.create(null);for(let v=0,j=_.length;v&lt;j;v++)E[_[v]]=v}let L=[],h=0,f=0;this.mapEncode=function(v,j){if(this._keyMap&amp;&amp;!this._mapped)switch(v.constructor.name){case&quot;Array&quot;:v=v.map(T=&gt;this.encodeKeys(T));break}return this.encode(v,j)},this.encode=function(v,j){if(g||(g=new Uo(8192),he=new DataView(g.buffer,0,8192),d=0),tn=g.length-10,tn-d&lt;2048?(g=new Uo(g.length),he=new DataView(g.buffer,0,g.length),tn=g.length-10,d=0):j===Uf&amp;&amp;(d=d+7&amp;2147483640),n=d,a.useSelfDescribedHeader&amp;&amp;(he.setUint32(d,3654940416),d+=3),l=a.structuredClone?new Map:null,a.bundleStrings&amp;&amp;typeof v!=&quot;string&quot;?(Te=[],Te.size=1/0):Te=null,r=a.structures,r){if(r.uninitialized){let R=a.getShared()||{};a.structures=r=R.structures||[],a.sharedVersion=R.version;let C=a.sharedValues=R.packedValues;if(C){E={};for(let S=0,I=C.length;S&lt;I;S++)E[C[S]]=S}}let T=r.length;if(T&gt;c&amp;&amp;!m&amp;&amp;(T=c),!r.transitions){r.transitions=Object.create(null);for(let R=0;R&lt;T;R++){let C=r[R];if(!C)continue;let S,I=r.transitions;for(let P=0,W=C.length;P&lt;W;P++){I[et]===void 0&amp;&amp;(I[et]=R);let H=C[P];S=I[H],S||(S=I[H]=Object.create(null)),I=S}I[et]=R|1048576}}m||(r.nextId=T)}if(i&amp;&amp;(i=!1),s=r||[],w=E,t.pack){let T=new Map;if(T.values=[],T.encoder=a,T.maxValues=t.maxPrivatePackedValues||(E?16:1/0),T.objectMap=E||!1,T.samplingPackedValues=y,qs(v,T),T.values.length&gt;0){g[d++]=216,g[d++]=51,Lt(4);let R=T.values;p(R),Lt(0),Lt(0),w=Object.create(E||null);for(let C=0,S=R.length;C&lt;S;C++)w[R[C]]=C}}jo=j&amp;Fo;try{if(jo)return;if(p(v),Te&amp;&amp;zf(n,p),a.offset=d,l&amp;&amp;l.idsToInsert){d+=l.idsToInsert.length*2,d&gt;tn&amp;&amp;D(d),a.offset=d;let T=Bg(g.subarray(n,d),l.idsToInsert);return l=null,T}return j&amp;Uf?(g.start=n,g.end=d,g):g.subarray(n,d)}finally{if(r){if(f&lt;10&amp;&amp;f++,r.length&gt;c&amp;&amp;(r.length=c),h&gt;1e4)r.transitions=null,f=0,h=0,L.length&gt;0&amp;&amp;(L=[]);else if(L.length&gt;0&amp;&amp;!m){for(let T=0,R=L.length;T&lt;R;T++)L[T][et]=void 0;L=[]}}if(i&amp;&amp;a.saveShared){a.structures.length&gt;c&amp;&amp;(a.structures=a.structures.slice(0,c));let T=g.subarray(n,d);return a.updateSharedData()===!1?a.encode(v):T}j&amp;Wg&amp;&amp;(d=n)}},this.findCommonStringsToPack=()=&gt;(y=new Map,E||(E=Object.create(null)),v=&gt;{let j=v&amp;&amp;v.threshold||4,T=this.pack?v.maxPrivatePackedValues||16:0;_||(_=this.sharedValues=[]);for(let[R,C]of y)C.count&gt;j&amp;&amp;(E[R]=T++,_.push(R),i=!0);for(;this.saveShared&amp;&amp;this.updateSharedData()===!1;);y=null});const p=v=&gt;{d&gt;tn&amp;&amp;(g=D(d));var j=typeof v,T;if(j===&quot;string&quot;){if(w){let I=w[v];if(I&gt;=0){I&lt;16?g[d++]=I+224:(g[d++]=198,I&amp;1?p(15-I&gt;&gt;1):p(I-16&gt;&gt;1));return}else if(y&amp;&amp;!t.pack){let P=y.get(v);P?P.count++:y.set(v,{count:1})}}let R=v.length;if(Te&amp;&amp;R&gt;=4&amp;&amp;R&lt;1024){if((Te.size+=R)&gt;Ug){let P,W=(Te[0]?Te[0].length*3+Te[1].length:0)+10;d+W&gt;tn&amp;&amp;(g=D(d+W)),g[d++]=217,g[d++]=223,g[d++]=249,g[d++]=Te.position?132:130,g[d++]=26,P=d-n,d+=4,Te.position&amp;&amp;zf(n,p),Te=[&quot;&quot;,&quot;&quot;],Te.size=0,Te.position=P}let I=jg.test(v);Te[I?0:1]+=v,g[d++]=I?206:207,p(R);return}let C;R&lt;32?C=1:R&lt;256?C=2:R&lt;65536?C=3:C=5;let S=R*3;if(d+S&gt;tn&amp;&amp;(g=D(d+S)),R&lt;64||!o){let I,P,W,H=d+C;for(I=0;I&lt;R;I++)P=v.charCodeAt(I),P&lt;128?g[H++]=P:P&lt;2048?(g[H++]=P&gt;&gt;6|192,g[H++]=P&amp;63|128):(P&amp;64512)===55296&amp;&amp;((W=v.charCodeAt(I+1))&amp;64512)===56320?(P=65536+((P&amp;1023)&lt;&lt;10)+(W&amp;1023),I++,g[H++]=P&gt;&gt;18|240,g[H++]=P&gt;&gt;12&amp;63|128,g[H++]=P&gt;&gt;6&amp;63|128,g[H++]=P&amp;63|128):(g[H++]=P&gt;&gt;12|224,g[H++]=P&gt;&gt;6&amp;63|128,g[H++]=P&amp;63|128);T=H-d-C}else T=o(v,d+C,S);T&lt;24?g[d++]=96|T:T&lt;256?(C&lt;2&amp;&amp;g.copyWithin(d+2,d+1,d+1+T),g[d++]=120,g[d++]=T):T&lt;65536?(C&lt;3&amp;&amp;g.copyWithin(d+3,d+2,d+2+T),g[d++]=121,g[d++]=T&gt;&gt;8,g[d++]=T&amp;255):(C&lt;5&amp;&amp;g.copyWithin(d+5,d+3,d+3+T),g[d++]=122,he.setUint32(d,T),d+=4),d+=T}else if(j===&quot;number&quot;)if(!this.alwaysUseFloat&amp;&amp;v&gt;&gt;&gt;0===v)v&lt;24?g[d++]=v:v&lt;256?(g[d++]=24,g[d++]=v):v&lt;65536?(g[d++]=25,g[d++]=v&gt;&gt;8,g[d++]=v&amp;255):(g[d++]=26,he.setUint32(d,v),d+=4);else if(!this.alwaysUseFloat&amp;&amp;v&gt;&gt;0===v)v&gt;=-24?g[d++]=31-v:v&gt;=-256?(g[d++]=56,g[d++]=~v):v&gt;=-65536?(g[d++]=57,he.setUint16(d,~v),d+=2):(g[d++]=58,he.setUint32(d,~v),d+=4);else{let R;if((R=this.useFloat32)&gt;0&amp;&amp;v&lt;4294967296&amp;&amp;v&gt;=-2147483648){g[d++]=250,he.setFloat32(d,v);let C;if(R&lt;4||(C=v*rc[(g[d]&amp;127)&lt;&lt;1|g[d+1]&gt;&gt;7])&gt;&gt;0===C){d+=4;return}else d--}g[d++]=251,he.setFloat64(d,v),d+=8}else if(j===&quot;object&quot;)if(!v)g[d++]=246;else{if(l){let C=l.get(v);if(C){if(g[d++]=216,g[d++]=29,g[d++]=25,!C.references){let S=l.idsToInsert||(l.idsToInsert=[]);C.references=[],S.push(C)}C.references.push(d-n),d+=2;return}else l.set(v,{offset:d-n})}let R=v.constructor;if(R===Object)O(v);else if(R===Array){T=v.length,T&lt;24?g[d++]=128|T:Lt(T);for(let C=0;C&lt;T;C++)p(v[C])}else if(R===Map)if((this.mapsAsObjects?this.useTag259ForMaps!==!1:this.useTag259ForMaps)&amp;&amp;(g[d++]=217,g[d++]=1,g[d++]=3),T=v.size,T&lt;24?g[d++]=160|T:T&lt;256?(g[d++]=184,g[d++]=T):T&lt;65536?(g[d++]=185,g[d++]=T&gt;&gt;8,g[d++]=T&amp;255):(g[d++]=186,he.setUint32(d,T),d+=4),a.keyMap)for(let[C,S]of v)p(a.encodeKey(C)),p(S);else for(let[C,S]of v)p(C),p(S);else{for(let C=0,S=Ba.length;C&lt;S;C++){let I=Up[C];if(v instanceof I){let P=Ba[C],W=P.tag;W==null&amp;&amp;(W=P.getTag&amp;&amp;P.getTag.call(this,v)),W&lt;24?g[d++]=192|W:W&lt;256?(g[d++]=216,g[d++]=W):W&lt;65536?(g[d++]=217,g[d++]=W&gt;&gt;8,g[d++]=W&amp;255):W&gt;-1&amp;&amp;(g[d++]=218,he.setUint32(d,W),d+=4),P.encode.call(this,v,p,D);return}}if(v[Symbol.iterator]){if(jo){let C=new Error(&quot;Iterable should be serialized as iterator&quot;);throw C.iteratorNotHandled=!0,C}g[d++]=159;for(let C of v)p(C);g[d++]=255;return}if(v[Symbol.asyncIterator]||$o(v)){let C=new Error(&quot;Iterable/blob should be serialized as iterator&quot;);throw C.iteratorNotHandled=!0,C}if(this.useToJSON&amp;&amp;v.toJSON){const C=v.toJSON();if(C!==v)return p(C)}O(v)}}else if(j===&quot;boolean&quot;)g[d++]=v?245:244;else if(j===&quot;bigint&quot;){if(v&lt;BigInt(1)&lt;&lt;BigInt(64)&amp;&amp;v&gt;=0)g[d++]=27,he.setBigUint64(d,v);else if(v&gt;-(BigInt(1)&lt;&lt;BigInt(64))&amp;&amp;v&lt;0)g[d++]=59,he.setBigUint64(d,-v-BigInt(1));else if(this.largeBigIntToFloat)g[d++]=251,he.setFloat64(d,Number(v));else{v&gt;=BigInt(0)?g[d++]=194:(g[d++]=195,v=BigInt(-1)-v);let R=[];for(;v;)R.push(Number(v&amp;BigInt(255))),v&gt;&gt;=BigInt(8);Wa(new Uint8Array(R.reverse()),D);return}d+=8}else if(j===&quot;undefined&quot;)g[d++]=247;else throw new Error(&quot;Unknown type: &quot;+j)},O=this.useRecords===!1?this.variableMapSize?v=&gt;{let j=Object.keys(v),T=Object.values(v),R=j.length;if(R&lt;24?g[d++]=160|R:R&lt;256?(g[d++]=184,g[d++]=R):R&lt;65536?(g[d++]=185,g[d++]=R&gt;&gt;8,g[d++]=R&amp;255):(g[d++]=186,he.setUint32(d,R),d+=4),a.keyMap)for(let C=0;C&lt;R;C++)p(a.encodeKey(j[C])),p(T[C]);else for(let C=0;C&lt;R;C++)p(j[C]),p(T[C])}:v=&gt;{g[d++]=185;let j=d-n;d+=2;let T=0;if(a.keyMap)for(let R in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(R))&amp;&amp;(p(a.encodeKey(R)),p(v[R]),T++);else for(let R in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(R))&amp;&amp;(p(R),p(v[R]),T++);g[j+++n]=T&gt;&gt;8,g[j+n]=T&amp;255}:(v,j)=&gt;{let T,R=s.transitions||(s.transitions=Object.create(null)),C=0,S=0,I,P;if(this.keyMap){P=Object.keys(v).map(H=&gt;this.encodeKey(H)),S=P.length;for(let H=0;H&lt;S;H++){let Pn=P[H];T=R[Pn],T||(T=R[Pn]=Object.create(null),C++),R=T}}else for(let H in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(H))&amp;&amp;(T=R[H],T||(R[et]&amp;1048576&amp;&amp;(I=R[et]&amp;65535),T=R[H]=Object.create(null),C++),R=T,S++);let W=R[et];if(W!==void 0)W&amp;=65535,g[d++]=217,g[d++]=W&gt;&gt;8|224,g[d++]=W&amp;255;else if(P||(P=R.__keys__||(R.__keys__=Object.keys(v))),I===void 0?(W=s.nextId++,W||(W=0,s.nextId=1),W&gt;=Lf&amp;&amp;(s.nextId=(W=c)+1)):W=I,s[W]=P,W&lt;c){g[d++]=217,g[d++]=W&gt;&gt;8|224,g[d++]=W&amp;255,R=s.transitions;for(let H=0;H&lt;S;H++)(R[et]===void 0||R[et]&amp;1048576)&amp;&amp;(R[et]=W),R=R[P[H]];R[et]=W|1048576,i=!0}else{if(R[et]=W,he.setUint32(d,3655335680),d+=3,C&amp;&amp;(h+=f*C),L.length&gt;=Lf-c&amp;&amp;(L.shift()[et]=void 0),L.push(R),Lt(S+2),p(57344+W),p(P),j)return;for(let H in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(H))&amp;&amp;p(v[H]);return}if(S&lt;24?g[d++]=128|S:Lt(S),!j)for(let H in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(H))&amp;&amp;p(v[H])},D=v=&gt;{let j;if(v&gt;16777216){if(v-n&gt;Df)throw new Error(&quot;Encoded buffer would be larger than maximum buffer size&quot;);j=Math.min(Df,Math.round(Math.max((v-n)*(v&gt;67108864?1.25:2),4194304)/4096)*4096)}else j=(Math.max(v-n&lt;&lt;2,g.length-1)&gt;&gt;12)+1&lt;&lt;12;let T=new Uo(j);return he=new DataView(T.buffer,0,j),g.copy?g.copy(T,0,n,v):T.set(g.slice(n,v)),d-=n,n=0,tn=T.length-10,g=T};let U=100,V=1e3;this.encodeAsIterable=function(v,j){return Qe(v,j,B)},this.encodeAsAsyncIterable=function(v,j){return Qe(v,j,qt)};function*B(v,j,T){let R=v.constructor;if(R===Object){let C=a.useRecords!==!1;C?O(v,!0):Mf(Object.keys(v).length,160);for(let S in v){let I=v[S];C||p(S),I&amp;&amp;typeof I==&quot;object&quot;?j[S]?yield*B(I,j[S]):yield*ce(I,j,S):p(I)}}else if(R===Array){let C=v.length;Lt(C);for(let S=0;S&lt;C;S++){let I=v[S];I&amp;&amp;(typeof I==&quot;object&quot;||d-n&gt;U)?j.element?yield*B(I,j.element):yield*ce(I,j,&quot;element&quot;):p(I)}}else if(v[Symbol.iterator]&amp;&amp;!v.buffer){g[d++]=159;for(let C of v)C&amp;&amp;(typeof C==&quot;object&quot;||d-n&gt;U)?j.element?yield*B(C,j.element):yield*ce(C,j,&quot;element&quot;):p(C);g[d++]=255}else $o(v)?(Mf(v.size,64),yield g.subarray(n,d),yield v,G()):v[Symbol.asyncIterator]?(g[d++]=159,yield g.subarray(n,d),yield v,G(),g[d++]=255):p(v);T&amp;&amp;d&gt;n?yield g.subarray(n,d):d-n&gt;U&amp;&amp;(yield g.subarray(n,d),G())}function*ce(v,j,T){let R=d-n;try{p(v),d-n&gt;U&amp;&amp;(yield g.subarray(n,d),G())}catch(C){if(C.iteratorNotHandled)j[T]={},d=n+R,yield*B.call(this,v,j[T]);else throw C}}function G(){U=V,a.encode(null,Fo)}function Qe(v,j,T){return j&amp;&amp;j.chunkThreshold?U=V=j.chunkThreshold:U=100,v&amp;&amp;typeof v==&quot;object&quot;?(a.encode(null,Fo),T(v,a.iterateProperties||(a.iterateProperties={}),!0)):[a.encode(v)]}async function*qt(v,j){for(let T of B(v,j,!0)){let R=T.constructor;if(R===Pf||R===Uint8Array)yield T;else if($o(T)){let C=T.stream().getReader(),S;for(;!(S=await C.read()).done;)yield S.value}else if(T[Symbol.asyncIterator])for await(let C of T)G(),C?yield*qt(C,j.async||(j.async={})):yield a.encode(C);else yield T}}}useBuffer(t){g=t,he=new DataView(g.buffer,g.byteOffset,g.byteLength),d=0}clearSharedData(){this.structures&amp;&amp;(this.structures=[]),this.sharedValues&amp;&amp;(this.sharedValues=void 0)}updateSharedData(){let t=this.sharedVersion||0;this.sharedVersion=t+1;let n=this.structures.slice(0),r=new jp(n,this.sharedValues,this.sharedVersion),i=this.saveShared(r,s=&gt;(s&amp;&amp;s.version||0)==t);return i===!1?(r=this.getShared()||{},this.structures=r.structures||[],this.sharedValues=r.packedValues,this.sharedVersion=r.version,this.structures.nextId=this.structures.length):n.forEach((s,l)=&gt;this.structures[l]=s),i}}function Mf(e,t){e&lt;24?g[d++]=t|e:e&lt;256?(g[d++]=t|24,g[d++]=e):e&lt;65536?(g[d++]=t|25,g[d++]=e&gt;&gt;8,g[d++]=e&amp;255):(g[d++]=t|26,he.setUint32(d,e),d+=4)}class jp{constructor(t,n,r){this.structures=t,this.packedValues=n,this.version=r}}function Lt(e){e&lt;24?g[d++]=128|e:e&lt;256?(g[d++]=152,g[d++]=e):e&lt;65536?(g[d++]=153,g[d++]=e&gt;&gt;8,g[d++]=e&amp;255):(g[d++]=154,he.setUint32(d,e),d+=4)}const Fg=typeof Blob&gt;&quot;u&quot;?function(){}:Blob;function $o(e){if(e instanceof Fg)return!0;let t=e[Symbol.toStringTag];return t===&quot;Blob&quot;||t===&quot;File&quot;}function qs(e,t){switch(typeof e){case&quot;string&quot;:if(e.length&gt;3){if(t.objectMap[e]&gt;-1||t.values.length&gt;=t.maxValues)return;let r=t.get(e);if(r)++r.count==2&amp;&amp;t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let i=t.samplingPackedValues.get(e);i?i.count++:t.samplingPackedValues.set(e,{count:1})}}break;case&quot;object&quot;:if(e)if(e instanceof Array)for(let r=0,i=e.length;r&lt;i;r++)qs(e[r],t);else{let r=!t.encoder.useRecords;for(var n in e)e.hasOwnProperty(n)&amp;&amp;(r&amp;&amp;qs(n,t),qs(e[n],t))}break;case&quot;function&quot;:console.log(e)}}const Vg=new Uint8Array(new Uint16Array([1]).buffer)[0]==1;Up=[Date,Set,Error,RegExp,ir,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?function(){}:BigInt64Array,Float32Array,Float64Array,jp];Ba=[{tag:1,encode(e,t){let n=e.getTime()/1e3;(this.useTimestamp32||e.getMilliseconds()===0)&amp;&amp;n&gt;=0&amp;&amp;n&lt;4294967296?(g[d++]=26,he.setUint32(d,n),d+=4):(g[d++]=251,he.setFloat64(d,n),d+=8)}},{tag:258,encode(e,t){let n=Array.from(e);t(n)}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t([&quot;RegExp&quot;,e.source,e.flags])}},{getTag(e){return e.tag},encode(e,t){t(e.value)}},{encode(e,t,n){Wa(e,n)}},{getTag(e){if(e.constructor===Uint8Array&amp;&amp;(this.tagUint8Array||ds&amp;&amp;this.tagUint8Array!==!1))return 64},encode(e,t,n){Wa(e,n)}},It(68,1),It(69,2),It(70,4),It(71,8),It(72,1),It(77,2),It(78,4),It(79,8),It(85,4),It(86,8),{encode(e,t){let n=e.packedValues||[],r=e.structures||[];if(n.values.length&gt;0){g[d++]=216,g[d++]=51,Lt(4);let i=n.values;t(i),Lt(0),Lt(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let s=0,l=i.length;s&lt;l;s++)packedObjectMap[i[s]]=s}if(r){he.setUint32(d,3655335424),d+=3;let i=r.slice(0);i.unshift(57344),i.push(new ir(e.version,1399353956)),t(i)}else t(new ir(e.version,1399353956))}}];function It(e,t){return!Vg&amp;&amp;t&gt;1&amp;&amp;(e-=4),{tag:e,encode:function(r,i){let s=r.byteLength,l=r.byteOffset||0,o=r.buffer||r;i(ds?no.from(o,l,s):new Uint8Array(o,l,s))}}}function Wa(e,t){let n=e.byteLength;n&lt;24?g[d++]=64+n:n&lt;256?(g[d++]=88,g[d++]=n):n&lt;65536?(g[d++]=89,g[d++]=n&gt;&gt;8,g[d++]=n&amp;255):(g[d++]=90,he.setUint32(d,n),d+=4),d+n&gt;=g.length&amp;&amp;t(d+n),g.set(e.buffer?e:new Uint8Array(e),d),d+=n}function Bg(e,t){let n,r=t.length*2,i=e.length-r;t.sort((s,l)=&gt;s.offset&gt;l.offset?1:-1);for(let s=0;s&lt;t.length;s++){let l=t[s];l.id=s;for(let o of l.references)e[o++]=s&gt;&gt;8,e[o]=s&amp;255}for(;n=t.pop();){let s=n.offset;e.copyWithin(s+r,s,i),r-=2;let l=s+r;e[l++]=216,e[l++]=28,i=s}return e}function zf(e,t){he.setUint32(Te.position+e,d-Te.position-e+1);let n=Te;Te=null,t(n[0]),t(n[1])}let sc=new $g({useRecords:!1});const $p=sc.encode;sc.encodeAsIterable;sc.encodeAsAsyncIterable;const Uf=512,Wg=1024,Fo=2048;var se;(function(e){e.assertEqual=i=&gt;{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=&gt;{const s={};for(const l of i)s[l]=l;return s},e.getValidEnumValues=i=&gt;{const s=e.objectKeys(i).filter(o=&gt;typeof i[i[o]]!=&quot;number&quot;),l={};for(const o of s)l[o]=i[o];return e.objectValues(l)},e.objectValues=i=&gt;e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys==&quot;function&quot;?i=&gt;Object.keys(i):i=&gt;{const s=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&amp;&amp;s.push(l);return s},e.find=(i,s)=&gt;{for(const l of i)if(s(l))return l},e.isInteger=typeof Number.isInteger==&quot;function&quot;?i=&gt;Number.isInteger(i):i=&gt;typeof i==&quot;number&quot;&amp;&amp;Number.isFinite(i)&amp;&amp;Math.floor(i)===i;function r(i,s=&quot; | &quot;){return i.map(l=&gt;typeof l==&quot;string&quot;?`&#39;${l}&#39;`:l).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(i,s)=&gt;typeof s==&quot;bigint&quot;?s.toString():s})(se||(se={}));var jf;(function(e){e.mergeShapes=(t,n)=&gt;({...t,...n})})(jf||(jf={}));const F=se.arrayToEnum([&quot;string&quot;,&quot;nan&quot;,&quot;number&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;boolean&quot;,&quot;date&quot;,&quot;bigint&quot;,&quot;symbol&quot;,&quot;function&quot;,&quot;undefined&quot;,&quot;null&quot;,&quot;array&quot;,&quot;object&quot;,&quot;unknown&quot;,&quot;promise&quot;,&quot;void&quot;,&quot;never&quot;,&quot;map&quot;,&quot;set&quot;]),sn=e=&gt;{switch(typeof e){case&quot;undefined&quot;:return F.undefined;case&quot;string&quot;:return F.string;case&quot;number&quot;:return Number.isNaN(e)?F.nan:F.number;case&quot;boolean&quot;:return F.boolean;case&quot;function&quot;:return F.function;case&quot;bigint&quot;:return F.bigint;case&quot;symbol&quot;:return F.symbol;case&quot;object&quot;:return Array.isArray(e)?F.array:e===null?F.null:e.then&amp;&amp;typeof e.then==&quot;function&quot;&amp;&amp;e.catch&amp;&amp;typeof e.catch==&quot;function&quot;?F.promise:typeof Map&lt;&quot;u&quot;&amp;&amp;e instanceof Map?F.map:typeof Set&lt;&quot;u&quot;&amp;&amp;e instanceof Set?F.set:typeof Date&lt;&quot;u&quot;&amp;&amp;e instanceof Date?F.date:F.object;default:return F.unknown}},A=se.arrayToEnum([&quot;invalid_type&quot;,&quot;invalid_literal&quot;,&quot;custom&quot;,&quot;invalid_union&quot;,&quot;invalid_union_discriminator&quot;,&quot;invalid_enum_value&quot;,&quot;unrecognized_keys&quot;,&quot;invalid_arguments&quot;,&quot;invalid_return_type&quot;,&quot;invalid_date&quot;,&quot;invalid_string&quot;,&quot;too_small&quot;,&quot;too_big&quot;,&quot;invalid_intersection_types&quot;,&quot;not_multiple_of&quot;,&quot;not_finite&quot;]);class Yt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=&gt;{this.issues=[...this.issues,r]},this.addIssues=(r=[])=&gt;{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=&quot;ZodError&quot;,this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},i=s=&gt;{for(const l of s.issues)if(l.code===&quot;invalid_union&quot;)l.unionErrors.map(i);else if(l.code===&quot;invalid_return_type&quot;)i(l.returnTypeError);else if(l.code===&quot;invalid_arguments&quot;)i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let o=r,a=0;for(;a&lt;l.path.length;){const u=l.path[a];a===l.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(l))):o[u]=o[u]||{_errors:[]},o=o[u],a++}}};return i(this),r}static assert(t){if(!(t instanceof Yt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,se.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=&gt;n.message){const n={},r=[];for(const i of this.issues)if(i.path.length&gt;0){const s=i.path[0];n[s]=n[s]||[],n[s].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Yt.create=e=&gt;new Yt(e);const Za=(e,t)=&gt;{let n;switch(e.code){case A.invalid_type:e.received===F.undefined?n=&quot;Required&quot;:n=`Expected ${e.expected}, received ${e.received}`;break;case A.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,se.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:n=`Unrecognized key(s) in object: ${se.joinValues(e.keys,&quot;, &quot;)}`;break;case A.invalid_union:n=&quot;Invalid input&quot;;break;case A.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${se.joinValues(e.options)}`;break;case A.invalid_enum_value:n=`Invalid enum value. Expected ${se.joinValues(e.options)}, received &#39;${e.received}&#39;`;break;case A.invalid_arguments:n=&quot;Invalid function arguments&quot;;break;case A.invalid_return_type:n=&quot;Invalid function return type&quot;;break;case A.invalid_date:n=&quot;Invalid date&quot;;break;case A.invalid_string:typeof e.validation==&quot;object&quot;?&quot;includes&quot;in e.validation?(n=`Invalid input: must include &quot;${e.validation.includes}&quot;`,typeof e.validation.position==&quot;number&quot;&amp;&amp;(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):&quot;startsWith&quot;in e.validation?n=`Invalid input: must start with &quot;${e.validation.startsWith}&quot;`:&quot;endsWith&quot;in e.validation?n=`Invalid input: must end with &quot;${e.validation.endsWith}&quot;`:se.assertNever(e.validation):e.validation!==&quot;regex&quot;?n=`Invalid ${e.validation}`:n=&quot;Invalid&quot;;break;case A.too_small:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;more than&quot;} ${e.minimum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;over&quot;} ${e.minimum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;bigint&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${new Date(Number(e.minimum))}`:n=&quot;Invalid input&quot;;break;case A.too_big:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;less than&quot;} ${e.maximum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;under&quot;} ${e.maximum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;bigint&quot;?n=`BigInt must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;smaller than or equal to&quot;:&quot;smaller than&quot;} ${new Date(Number(e.maximum))}`:n=&quot;Invalid input&quot;;break;case A.custom:n=&quot;Invalid input&quot;;break;case A.invalid_intersection_types:n=&quot;Intersection results could not be merged&quot;;break;case A.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case A.not_finite:n=&quot;Number must be finite&quot;;break;default:n=t.defaultError,se.assertNever(e)}return{message:n}};let Zg=Za;function Hg(){return Zg}const Kg=e=&gt;{const{data:t,path:n,errorMaps:r,issueData:i}=e,s=[...n,...i.path||[]],l={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o=&quot;&quot;;const a=r.filter(u=&gt;!!u).slice().reverse();for(const u of a)o=u(l,{data:t,defaultError:o}).message;return{...i,path:s,message:o}};function M(e,t){const n=Hg(),r=Kg({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Za?void 0:Za].filter(i=&gt;!!i)});e.common.issues.push(r)}class ot{constructor(){this.value=&quot;valid&quot;}dirty(){this.value===&quot;valid&quot;&amp;&amp;(this.value=&quot;dirty&quot;)}abort(){this.value!==&quot;aborted&quot;&amp;&amp;(this.value=&quot;aborted&quot;)}static mergeArray(t,n){const r=[];for(const i of n){if(i.status===&quot;aborted&quot;)return Q;i.status===&quot;dirty&quot;&amp;&amp;t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const s=await i.key,l=await i.value;r.push({key:s,value:l})}return ot.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:s,value:l}=i;if(s.status===&quot;aborted&quot;||l.status===&quot;aborted&quot;)return Q;s.status===&quot;dirty&quot;&amp;&amp;t.dirty(),l.status===&quot;dirty&quot;&amp;&amp;t.dirty(),s.value!==&quot;__proto__&quot;&amp;&amp;(typeof l.value&lt;&quot;u&quot;||i.alwaysSet)&amp;&amp;(r[s.value]=l.value)}return{status:t.value,value:r}}}const Q=Object.freeze({status:&quot;aborted&quot;}),_i=e=&gt;({status:&quot;dirty&quot;,value:e}),_t=e=&gt;({status:&quot;valid&quot;,value:e}),$f=e=&gt;e.status===&quot;aborted&quot;,Ff=e=&gt;e.status===&quot;dirty&quot;,Jr=e=&gt;e.status===&quot;valid&quot;,Il=e=&gt;typeof Promise&lt;&quot;u&quot;&amp;&amp;e instanceof Promise;var Z;(function(e){e.errToObj=t=&gt;typeof t==&quot;string&quot;?{message:t}:t||{},e.toString=t=&gt;typeof t==&quot;string&quot;?t:t==null?void 0:t.message})(Z||(Z={}));class Tn{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Vf=(e,t)=&gt;{if(Jr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(&quot;Validation failed but no issues detected.&quot;);return{success:!1,get error(){if(this._error)return this._error;const n=new Yt(e.common.issues);return this._error=n,this._error}}};function Y(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&amp;&amp;(n||r))throw new Error(`Can&#39;t use &quot;invalid_type_error&quot; or &quot;required_error&quot; in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,o)=&gt;{const{message:a}=e;return l.code===&quot;invalid_enum_value&quot;?{message:a??o.defaultError}:typeof o.data&gt;&quot;u&quot;?{message:a??r??o.defaultError}:l.code!==&quot;invalid_type&quot;?{message:o.defaultError}:{message:a??n??o.defaultError}},description:i}}class re{get description(){return this._def.description}_getType(t){return sn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:sn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ot,ctx:{common:t.parent.common,data:t.data,parsedType:sn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Il(n))throw new Error(&quot;Synchronous parse encountered promise.&quot;);return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Vf(r,i)}&quot;~validate&quot;(t){var r,i;const n={common:{issues:[],async:!!this[&quot;~standard&quot;].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sn(t)};if(!this[&quot;~standard&quot;].async)try{const s=this._parseSync({data:t,path:[],parent:n});return Jr(s)?{value:s.value}:{issues:n.common.issues}}catch(s){(i=(r=s==null?void 0:s.message)==null?void 0:r.toLowerCase())!=null&amp;&amp;i.includes(&quot;encountered&quot;)&amp;&amp;(this[&quot;~standard&quot;].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=&gt;Jr(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sn(t)},i=this._parse({data:t,path:r.path,parent:r}),s=await(Il(i)?i:Promise.resolve(i));return Vf(r,s)}refine(t,n){const r=i=&gt;typeof n==&quot;string&quot;||typeof n&gt;&quot;u&quot;?{message:n}:typeof n==&quot;function&quot;?n(i):n;return this._refinement((i,s)=&gt;{const l=t(i),o=()=&gt;s.addIssue({code:A.custom,...r(i)});return typeof Promise&lt;&quot;u&quot;&amp;&amp;l instanceof Promise?l.then(a=&gt;a?!0:(o(),!1)):l?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=&gt;t(r)?!0:(i.addIssue(typeof n==&quot;function&quot;?n(r,i):n),!1))}_refinement(t){return new Xr({schema:this,typeName:b.ZodEffects,effect:{type:&quot;refinement&quot;,refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[&quot;~standard&quot;]={version:1,vendor:&quot;zod&quot;,validate:n=&gt;this[&quot;~validate&quot;](n)}}optional(){return En.create(this,this._def)}nullable(){return qr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this)}promise(){return Ml.create(this,this._def)}or(t){return Ll.create([this,t],this._def)}and(t){return Dl.create(this,t,this._def)}transform(t){return new Xr({...Y(this._def),schema:this,typeName:b.ZodEffects,effect:{type:&quot;transform&quot;,transform:t}})}default(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new ba({...Y(this._def),innerType:this,defaultValue:n,typeName:b.ZodDefault})}brand(){return new m0({typeName:b.ZodBranded,type:this,...Y(this._def)})}catch(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new Ja({...Y(this._def),innerType:this,catchValue:n,typeName:b.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return lc.create(this,t)}readonly(){return Ga.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Qg=/^c[^\s-]{8,}$/i,bg=/^[0-9a-z]+$/,Jg=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Gg=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Yg=/^[a-z0-9_-]{21}$/i,Xg=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qg=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,e0=/^(?!\.)(?!.*\.\.)([A-Z0-9_&#39;+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,t0=&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;;let Vo;const n0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,r0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,i0=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,s0=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,l0=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,o0=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Fp=&quot;((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))&quot;,a0=new RegExp(`^${Fp}$`);function Vp(e){let t=&quot;[0-5]\\d&quot;;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&amp;&amp;(t=`${t}(\\.\\d+)?`);const n=e.precision?&quot;+&quot;:&quot;?&quot;;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function u0(e){return new RegExp(`^${Vp(e)}$`)}function c0(e){let t=`${Fp}T${Vp(e)}`;const n=[];return n.push(e.local?&quot;Z?&quot;:&quot;Z&quot;),e.offset&amp;&amp;n.push(&quot;([+-]\\d{2}:?\\d{2})&quot;),t=`${t}(${n.join(&quot;|&quot;)})`,new RegExp(`^${t}$`)}function f0(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;n0.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;i0.test(e))}function d0(e,t){if(!Xg.test(e))return!1;try{const[n]=e.split(&quot;.&quot;);if(!n)return!1;const r=n.replace(/-/g,&quot;+&quot;).replace(/_/g,&quot;/&quot;).padEnd(n.length+(4-n.length%4)%4,&quot;=&quot;),i=JSON.parse(atob(r));return!(typeof i!=&quot;object&quot;||i===null||&quot;typ&quot;in i&amp;&amp;(i==null?void 0:i.typ)!==&quot;JWT&quot;||!i.alg||t&amp;&amp;i.alg!==t)}catch{return!1}}function h0(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;r0.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;s0.test(e))}class pn extends re{_parse(t){if(this._def.coerce&amp;&amp;(t.data=String(t.data)),this._getType(t)!==F.string){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_type,expected:F.string,received:s.parsedType}),Q}const r=new ot;let i;for(const s of this._def.checks)if(s.kind===&quot;min&quot;)t.data.length&lt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,minimum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind===&quot;max&quot;)t.data.length&gt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,maximum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind===&quot;length&quot;){const l=t.data.length&gt;s.value,o=t.data.length&lt;s.value;(l||o)&amp;&amp;(i=this._getOrReturnCtx(t,i),l?M(i,{code:A.too_big,maximum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:s.message}):o&amp;&amp;M(i,{code:A.too_small,minimum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind===&quot;email&quot;)e0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;email&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;emoji&quot;)Vo||(Vo=new RegExp(t0,&quot;u&quot;)),Vo.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;emoji&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;uuid&quot;)Gg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;uuid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;nanoid&quot;)Yg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;nanoid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;cuid&quot;)Qg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;cuid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;cuid2&quot;)bg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;cuid2&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;ulid&quot;)Jg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;ulid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;url&quot;)try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;url&quot;,code:A.invalid_string,message:s.message}),r.dirty()}else s.kind===&quot;regex&quot;?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;regex&quot;,code:A.invalid_string,message:s.message}),r.dirty())):s.kind===&quot;trim&quot;?t.data=t.data.trim():s.kind===&quot;includes&quot;?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind===&quot;toLowerCase&quot;?t.data=t.data.toLowerCase():s.kind===&quot;toUpperCase&quot;?t.data=t.data.toUpperCase():s.kind===&quot;startsWith&quot;?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind===&quot;endsWith&quot;?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind===&quot;datetime&quot;?c0(s).test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:&quot;datetime&quot;,message:s.message}),r.dirty()):s.kind===&quot;date&quot;?a0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:&quot;date&quot;,message:s.message}),r.dirty()):s.kind===&quot;time&quot;?u0(s).test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:&quot;time&quot;,message:s.message}),r.dirty()):s.kind===&quot;duration&quot;?qg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;duration&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;ip&quot;?f0(t.data,s.version)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;ip&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;jwt&quot;?d0(t.data,s.alg)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;jwt&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;cidr&quot;?h0(t.data,s.version)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;cidr&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;base64&quot;?l0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;base64&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;base64url&quot;?o0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;base64url&quot;,code:A.invalid_string,message:s.message}),r.dirty()):se.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=&gt;t.test(i),{validation:n,code:A.invalid_string,...Z.errToObj(r)})}_addCheck(t){return new pn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:&quot;email&quot;,...Z.errToObj(t)})}url(t){return this._addCheck({kind:&quot;url&quot;,...Z.errToObj(t)})}emoji(t){return this._addCheck({kind:&quot;emoji&quot;,...Z.errToObj(t)})}uuid(t){return this._addCheck({kind:&quot;uuid&quot;,...Z.errToObj(t)})}nanoid(t){return this._addCheck({kind:&quot;nanoid&quot;,...Z.errToObj(t)})}cuid(t){return this._addCheck({kind:&quot;cuid&quot;,...Z.errToObj(t)})}cuid2(t){return this._addCheck({kind:&quot;cuid2&quot;,...Z.errToObj(t)})}ulid(t){return this._addCheck({kind:&quot;ulid&quot;,...Z.errToObj(t)})}base64(t){return this._addCheck({kind:&quot;base64&quot;,...Z.errToObj(t)})}base64url(t){return this._addCheck({kind:&quot;base64url&quot;,...Z.errToObj(t)})}jwt(t){return this._addCheck({kind:&quot;jwt&quot;,...Z.errToObj(t)})}ip(t){return this._addCheck({kind:&quot;ip&quot;,...Z.errToObj(t)})}cidr(t){return this._addCheck({kind:&quot;cidr&quot;,...Z.errToObj(t)})}datetime(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;datetime&quot;,precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:&quot;datetime&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Z.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:&quot;date&quot;,message:t})}time(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;time&quot;,precision:null,message:t}):this._addCheck({kind:&quot;time&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,...Z.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:&quot;duration&quot;,...Z.errToObj(t)})}regex(t,n){return this._addCheck({kind:&quot;regex&quot;,regex:t,...Z.errToObj(n)})}includes(t,n){return this._addCheck({kind:&quot;includes&quot;,value:t,position:n==null?void 0:n.position,...Z.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:&quot;startsWith&quot;,value:t,...Z.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:&quot;endsWith&quot;,value:t,...Z.errToObj(n)})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t,...Z.errToObj(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t,...Z.errToObj(n)})}length(t,n){return this._addCheck({kind:&quot;length&quot;,value:t,...Z.errToObj(n)})}nonempty(t){return this.min(1,Z.errToObj(t))}trim(){return new pn({...this._def,checks:[...this._def.checks,{kind:&quot;trim&quot;}]})}toLowerCase(){return new pn({...this._def,checks:[...this._def.checks,{kind:&quot;toLowerCase&quot;}]})}toUpperCase(){return new pn({...this._def,checks:[...this._def.checks,{kind:&quot;toUpperCase&quot;}]})}get isDatetime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;datetime&quot;)}get isDate(){return!!this._def.checks.find(t=&gt;t.kind===&quot;date&quot;)}get isTime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;time&quot;)}get isDuration(){return!!this._def.checks.find(t=&gt;t.kind===&quot;duration&quot;)}get isEmail(){return!!this._def.checks.find(t=&gt;t.kind===&quot;email&quot;)}get isURL(){return!!this._def.checks.find(t=&gt;t.kind===&quot;url&quot;)}get isEmoji(){return!!this._def.checks.find(t=&gt;t.kind===&quot;emoji&quot;)}get isUUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;uuid&quot;)}get isNANOID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;nanoid&quot;)}get isCUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid&quot;)}get isCUID2(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid2&quot;)}get isULID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ulid&quot;)}get isIP(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ip&quot;)}get isCIDR(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cidr&quot;)}get isBase64(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64&quot;)}get isBase64url(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64url&quot;)}get minLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}}pn.create=e=&gt;new pn({checks:[],typeName:b.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Y(e)});function p0(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=(t.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,i=n&gt;r?n:r,s=Number.parseInt(e.toFixed(i).replace(&quot;.&quot;,&quot;&quot;)),l=Number.parseInt(t.toFixed(i).replace(&quot;.&quot;,&quot;&quot;));return s%l/10**i}class Gr extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&amp;&amp;(t.data=Number(t.data)),this._getType(t)!==F.number){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_type,expected:F.number,received:s.parsedType}),Q}let r;const i=new ot;for(const s of this._def.checks)s.kind===&quot;int&quot;?se.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_type,expected:&quot;integer&quot;,received:&quot;float&quot;,message:s.message}),i.dirty()):s.kind===&quot;min&quot;?(s.inclusive?t.data&lt;s.value:t.data&lt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,minimum:s.value,type:&quot;number&quot;,inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind===&quot;max&quot;?(s.inclusive?t.data&gt;s.value:t.data&gt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,maximum:s.value,type:&quot;number&quot;,inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind===&quot;multipleOf&quot;?p0(t.data,s.value)!==0&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind===&quot;finite&quot;?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.not_finite,message:s.message}),i.dirty()):se.assertNever(s);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,Z.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,Z.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,Z.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,Z.toString(n))}setLimit(t,n,r,i){return new Gr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Z.toString(i)}]})}_addCheck(t){return new Gr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:&quot;int&quot;,message:Z.toString(t)})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!1,message:Z.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!1,message:Z.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!0,message:Z.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!0,message:Z.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:Z.toString(n)})}finite(t){return this._addCheck({kind:&quot;finite&quot;,message:Z.toString(t)})}safe(t){return this._addCheck({kind:&quot;min&quot;,inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Z.toString(t)})._addCheck({kind:&quot;max&quot;,inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Z.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=&gt;t.kind===&quot;int&quot;||t.kind===&quot;multipleOf&quot;&amp;&amp;se.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind===&quot;finite&quot;||r.kind===&quot;int&quot;||r.kind===&quot;multipleOf&quot;)return!0;r.kind===&quot;min&quot;?(n===null||r.value&gt;n)&amp;&amp;(n=r.value):r.kind===&quot;max&quot;&amp;&amp;(t===null||r.value&lt;t)&amp;&amp;(t=r.value)}return Number.isFinite(n)&amp;&amp;Number.isFinite(t)}}Gr.create=e=&gt;new Gr({checks:[],typeName:b.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Y(e)});class es extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==F.bigint)return this._getInvalidInput(t);let r;const i=new ot;for(const s of this._def.checks)s.kind===&quot;min&quot;?(s.inclusive?t.data&lt;s.value:t.data&lt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,type:&quot;bigint&quot;,minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind===&quot;max&quot;?(s.inclusive?t.data&gt;s.value:t.data&gt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,type:&quot;bigint&quot;,maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind===&quot;multipleOf&quot;?t.data%s.value!==BigInt(0)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):se.assertNever(s);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:F.bigint,received:n.parsedType}),Q}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,Z.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,Z.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,Z.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,Z.toString(n))}setLimit(t,n,r,i){return new es({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Z.toString(i)}]})}_addCheck(t){return new es({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!1,message:Z.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!1,message:Z.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!0,message:Z.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!0,message:Z.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:Z.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}}es.create=e=&gt;new es({checks:[],typeName:b.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Y(e)});class Ha extends re{_parse(t){if(this._def.coerce&amp;&amp;(t.data=!!t.data),this._getType(t)!==F.boolean){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:F.boolean,received:r.parsedType}),Q}return _t(t.data)}}Ha.create=e=&gt;new Ha({typeName:b.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Y(e)});class Pl extends re{_parse(t){if(this._def.coerce&amp;&amp;(t.data=new Date(t.data)),this._getType(t)!==F.date){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_type,expected:F.date,received:s.parsedType}),Q}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_date}),Q}const r=new ot;let i;for(const s of this._def.checks)s.kind===&quot;min&quot;?t.data.getTime()&lt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:&quot;date&quot;}),r.dirty()):s.kind===&quot;max&quot;?t.data.getTime()&gt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:&quot;date&quot;}),r.dirty()):se.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Pl({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t.getTime(),message:Z.toString(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t.getTime(),message:Z.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}}Pl.create=e=&gt;new Pl({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:b.ZodDate,...Y(e)});class Bf extends re{_parse(t){if(this._getType(t)!==F.symbol){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:F.symbol,received:r.parsedType}),Q}return _t(t.data)}}Bf.create=e=&gt;new Bf({typeName:b.ZodSymbol,...Y(e)});class Wf extends re{_parse(t){if(this._getType(t)!==F.undefined){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:F.undefined,received:r.parsedType}),Q}return _t(t.data)}}Wf.create=e=&gt;new Wf({typeName:b.ZodUndefined,...Y(e)});class Zf extends re{_parse(t){if(this._getType(t)!==F.null){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:F.null,received:r.parsedType}),Q}return _t(t.data)}}Zf.create=e=&gt;new Zf({typeName:b.ZodNull,...Y(e)});class Hf extends re{constructor(){super(...arguments),this._any=!0}_parse(t){return _t(t.data)}}Hf.create=e=&gt;new Hf({typeName:b.ZodAny,...Y(e)});class Ka extends re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return _t(t.data)}}Ka.create=e=&gt;new Ka({typeName:b.ZodUnknown,...Y(e)});class Nn extends re{_parse(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:F.never,received:n.parsedType}),Q}}Nn.create=e=&gt;new Nn({typeName:b.ZodNever,...Y(e)});class Kf extends re{_parse(t){if(this._getType(t)!==F.undefined){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:F.void,received:r.parsedType}),Q}return _t(t.data)}}Kf.create=e=&gt;new Kf({typeName:b.ZodVoid,...Y(e)});class jt extends re{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==F.array)return M(n,{code:A.invalid_type,expected:F.array,received:n.parsedType}),Q;if(i.exactLength!==null){const l=n.data.length&gt;i.exactLength.value,o=n.data.length&lt;i.exactLength.value;(l||o)&amp;&amp;(M(n,{code:l?A.too_big:A.too_small,minimum:o?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:&quot;array&quot;,inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&amp;&amp;n.data.length&lt;i.minLength.value&amp;&amp;(M(n,{code:A.too_small,minimum:i.minLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&amp;&amp;n.data.length&gt;i.maxLength.value&amp;&amp;(M(n,{code:A.too_big,maximum:i.maxLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,o)=&gt;i.type._parseAsync(new Tn(n,l,n.path,o)))).then(l=&gt;ot.mergeArray(r,l));const s=[...n.data].map((l,o)=&gt;i.type._parseSync(new Tn(n,l,n.path,o)));return ot.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new jt({...this._def,minLength:{value:t,message:Z.toString(n)}})}max(t,n){return new jt({...this._def,maxLength:{value:t,message:Z.toString(n)}})}length(t,n){return new jt({...this._def,exactLength:{value:t,message:Z.toString(n)}})}nonempty(t){return this.min(1,t)}}jt.create=(e,t)=&gt;new jt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:b.ZodArray,...Y(t)});function fr(e){if(e instanceof Ee){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=En.create(fr(r))}return new Ee({...e._def,shape:()=&gt;t})}else return e instanceof jt?new jt({...e._def,type:fr(e.element)}):e instanceof En?En.create(fr(e.unwrap())):e instanceof qr?qr.create(fr(e.unwrap())):e instanceof sr?sr.create(e.items.map(t=&gt;fr(t))):e}class Ee extends re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=se.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==F.object){const u=this._getOrReturnCtx(t);return M(u,{code:A.invalid_type,expected:F.object,received:u.parsedType}),Q}const{status:r,ctx:i}=this._processInputParams(t),{shape:s,keys:l}=this._getCached(),o=[];if(!(this._def.catchall instanceof Nn&amp;&amp;this._def.unknownKeys===&quot;strip&quot;))for(const u in i.data)l.includes(u)||o.push(u);const a=[];for(const u of l){const c=s[u],m=i.data[u];a.push({key:{status:&quot;valid&quot;,value:u},value:c._parse(new Tn(i,m,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Nn){const u=this._def.unknownKeys;if(u===&quot;passthrough&quot;)for(const c of o)a.push({key:{status:&quot;valid&quot;,value:c},value:{status:&quot;valid&quot;,value:i.data[c]}});else if(u===&quot;strict&quot;)o.length&gt;0&amp;&amp;(M(i,{code:A.unrecognized_keys,keys:o}),r.dirty());else if(u!==&quot;strip&quot;)throw new Error(&quot;Internal ZodObject error: invalid unknownKeys value.&quot;)}else{const u=this._def.catchall;for(const c of o){const m=i.data[c];a.push({key:{status:&quot;valid&quot;,value:c},value:u._parse(new Tn(i,m,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=&gt;{const u=[];for(const c of a){const m=await c.key,y=await c.value;u.push({key:m,value:y,alwaysSet:c.alwaysSet})}return u}).then(u=&gt;ot.mergeObjectSync(r,u)):ot.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return Z.errToObj,new Ee({...this._def,unknownKeys:&quot;strict&quot;,...t!==void 0?{errorMap:(n,r)=&gt;{var s,l;const i=((l=(s=this._def).errorMap)==null?void 0:l.call(s,n,r).message)??r.defaultError;return n.code===&quot;unrecognized_keys&quot;?{message:Z.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Ee({...this._def,unknownKeys:&quot;strip&quot;})}passthrough(){return new Ee({...this._def,unknownKeys:&quot;passthrough&quot;})}extend(t){return new Ee({...this._def,shape:()=&gt;({...this._def.shape(),...t})})}merge(t){return new Ee({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=&gt;({...this._def.shape(),...t._def.shape()}),typeName:b.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ee({...this._def,catchall:t})}pick(t){const n={};for(const r of se.objectKeys(t))t[r]&amp;&amp;this.shape[r]&amp;&amp;(n[r]=this.shape[r]);return new Ee({...this._def,shape:()=&gt;n})}omit(t){const n={};for(const r of se.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Ee({...this._def,shape:()=&gt;n})}deepPartial(){return fr(this)}partial(t){const n={};for(const r of se.objectKeys(this.shape)){const i=this.shape[r];t&amp;&amp;!t[r]?n[r]=i:n[r]=i.optional()}return new Ee({...this._def,shape:()=&gt;n})}required(t){const n={};for(const r of se.objectKeys(this.shape))if(t&amp;&amp;!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof En;)s=s._def.innerType;n[r]=s}return new Ee({...this._def,shape:()=&gt;n})}keyof(){return Bp(se.objectKeys(this.shape))}}Ee.create=(e,t)=&gt;new Ee({shape:()=&gt;e,unknownKeys:&quot;strip&quot;,catchall:Nn.create(),typeName:b.ZodObject,...Y(t)});Ee.strictCreate=(e,t)=&gt;new Ee({shape:()=&gt;e,unknownKeys:&quot;strict&quot;,catchall:Nn.create(),typeName:b.ZodObject,...Y(t)});Ee.lazycreate=(e,t)=&gt;new Ee({shape:e,unknownKeys:&quot;strip&quot;,catchall:Nn.create(),typeName:b.ZodObject,...Y(t)});class Ll extends re{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(s){for(const o of s)if(o.result.status===&quot;valid&quot;)return o.result;for(const o of s)if(o.result.status===&quot;dirty&quot;)return n.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(o=&gt;new Yt(o.ctx.common.issues));return M(n,{code:A.invalid_union,unionErrors:l}),Q}if(n.common.async)return Promise.all(r.map(async s=&gt;{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let s;const l=[];for(const a of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=a._parseSync({data:n.data,path:n.path,parent:u});if(c.status===&quot;valid&quot;)return c;c.status===&quot;dirty&quot;&amp;&amp;!s&amp;&amp;(s={result:c,ctx:u}),u.common.issues.length&amp;&amp;l.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const o=l.map(a=&gt;new Yt(a));return M(n,{code:A.invalid_union,unionErrors:o}),Q}}get options(){return this._def.options}}Ll.create=(e,t)=&gt;new Ll({options:e,typeName:b.ZodUnion,...Y(t)});function Qa(e,t){const n=sn(e),r=sn(t);if(e===t)return{valid:!0,data:e};if(n===F.object&amp;&amp;r===F.object){const i=se.objectKeys(t),s=se.objectKeys(e).filter(o=&gt;i.indexOf(o)!==-1),l={...e,...t};for(const o of s){const a=Qa(e[o],t[o]);if(!a.valid)return{valid:!1};l[o]=a.data}return{valid:!0,data:l}}else if(n===F.array&amp;&amp;r===F.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let s=0;s&lt;e.length;s++){const l=e[s],o=t[s],a=Qa(l,o);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}else return n===F.date&amp;&amp;r===F.date&amp;&amp;+e==+t?{valid:!0,data:e}:{valid:!1}}class Dl extends re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(s,l)=&gt;{if($f(s)||$f(l))return Q;const o=Qa(s.value,l.value);return o.valid?((Ff(s)||Ff(l))&amp;&amp;n.dirty(),{status:n.value,value:o.data}):(M(r,{code:A.invalid_intersection_types}),Q)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,l])=&gt;i(s,l)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Dl.create=(e,t,n)=&gt;new Dl({left:e,right:t,typeName:b.ZodIntersection,...Y(n)});class sr extends re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==F.array)return M(r,{code:A.invalid_type,expected:F.array,received:r.parsedType}),Q;if(r.data.length&lt;this._def.items.length)return M(r,{code:A.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),Q;!this._def.rest&amp;&amp;r.data.length&gt;this._def.items.length&amp;&amp;(M(r,{code:A.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),n.dirty());const s=[...r.data].map((l,o)=&gt;{const a=this._def.items[o]||this._def.rest;return a?a._parse(new Tn(r,l,r.path,o)):null}).filter(l=&gt;!!l);return r.common.async?Promise.all(s).then(l=&gt;ot.mergeArray(n,l)):ot.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new sr({...this._def,rest:t})}}sr.create=(e,t)=&gt;{if(!Array.isArray(e))throw new Error(&quot;You must pass an array of schemas to z.tuple([ ... ])&quot;);return new sr({items:e,typeName:b.ZodTuple,rest:null,...Y(t)})};class Qf extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==F.map)return M(r,{code:A.invalid_type,expected:F.map,received:r.parsedType}),Q;const i=this._def.keyType,s=this._def.valueType,l=[...r.data.entries()].map(([o,a],u)=&gt;({key:i._parse(new Tn(r,o,r.path,[u,&quot;key&quot;])),value:s._parse(new Tn(r,a,r.path,[u,&quot;value&quot;]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=&gt;{for(const a of l){const u=await a.key,c=await a.value;if(u.status===&quot;aborted&quot;||c.status===&quot;aborted&quot;)return Q;(u.status===&quot;dirty&quot;||c.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const a of l){const u=a.key,c=a.value;if(u.status===&quot;aborted&quot;||c.status===&quot;aborted&quot;)return Q;(u.status===&quot;dirty&quot;||c.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}Qf.create=(e,t,n)=&gt;new Qf({valueType:t,keyType:e,typeName:b.ZodMap,...Y(n)});class ts extends re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==F.set)return M(r,{code:A.invalid_type,expected:F.set,received:r.parsedType}),Q;const i=this._def;i.minSize!==null&amp;&amp;r.data.size&lt;i.minSize.value&amp;&amp;(M(r,{code:A.too_small,minimum:i.minSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&amp;&amp;r.data.size&gt;i.maxSize.value&amp;&amp;(M(r,{code:A.too_big,maximum:i.maxSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function l(a){const u=new Set;for(const c of a){if(c.status===&quot;aborted&quot;)return Q;c.status===&quot;dirty&quot;&amp;&amp;n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((a,u)=&gt;s._parse(new Tn(r,a,r.path,u)));return r.common.async?Promise.all(o).then(a=&gt;l(a)):l(o)}min(t,n){return new ts({...this._def,minSize:{value:t,message:Z.toString(n)}})}max(t,n){return new ts({...this._def,maxSize:{value:t,message:Z.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ts.create=(e,t)=&gt;new ts({valueType:e,minSize:null,maxSize:null,typeName:b.ZodSet,...Y(t)});class bf extends re{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}bf.create=(e,t)=&gt;new bf({getter:e,typeName:b.ZodLazy,...Y(t)});class Jf extends re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return M(n,{received:n.data,code:A.invalid_literal,expected:this._def.value}),Q}return{status:&quot;valid&quot;,value:t.data}}get value(){return this._def.value}}Jf.create=(e,t)=&gt;new Jf({value:e,typeName:b.ZodLiteral,...Y(t)});function Bp(e,t){return new Yr({values:e,typeName:b.ZodEnum,...Y(t)})}class Yr extends re{_parse(t){if(typeof t.data!=&quot;string&quot;){const n=this._getOrReturnCtx(t),r=this._def.values;return M(n,{expected:se.joinValues(r),received:n.parsedType,code:A.invalid_type}),Q}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return M(n,{received:n.data,code:A.invalid_enum_value,options:r}),Q}return _t(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Yr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Yr.create(this.options.filter(r=&gt;!t.includes(r)),{...this._def,...n})}}Yr.create=Bp;class Gf extends re{_parse(t){const n=se.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==F.string&amp;&amp;r.parsedType!==F.number){const i=se.objectValues(n);return M(r,{expected:se.joinValues(i),received:r.parsedType,code:A.invalid_type}),Q}if(this._cache||(this._cache=new Set(se.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=se.objectValues(n);return M(r,{received:r.data,code:A.invalid_enum_value,options:i}),Q}return _t(t.data)}get enum(){return this._def.values}}Gf.create=(e,t)=&gt;new Gf({values:e,typeName:b.ZodNativeEnum,...Y(t)});class Ml extends re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==F.promise&amp;&amp;n.common.async===!1)return M(n,{code:A.invalid_type,expected:F.promise,received:n.parsedType}),Q;const r=n.parsedType===F.promise?n.data:Promise.resolve(n.data);return _t(r.then(i=&gt;this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ml.create=(e,t)=&gt;new Ml({type:e,typeName:b.ZodPromise,...Y(t)});class Xr extends re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===b.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:l=&gt;{M(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type===&quot;preprocess&quot;){const l=i.transform(r.data,s);if(r.common.async)return Promise.resolve(l).then(async o=&gt;{if(n.value===&quot;aborted&quot;)return Q;const a=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return a.status===&quot;aborted&quot;?Q:a.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?_i(a.value):a});{if(n.value===&quot;aborted&quot;)return Q;const o=this._def.schema._parseSync({data:l,path:r.path,parent:r});return o.status===&quot;aborted&quot;?Q:o.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?_i(o.value):o}}if(i.type===&quot;refinement&quot;){const l=o=&gt;{const a=i.refinement(o,s);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error(&quot;Async refinement encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status===&quot;aborted&quot;?Q:(o.status===&quot;dirty&quot;&amp;&amp;n.dirty(),l(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=&gt;o.status===&quot;aborted&quot;?Q:(o.status===&quot;dirty&quot;&amp;&amp;n.dirty(),l(o.value).then(()=&gt;({status:n.value,value:o.value}))))}if(i.type===&quot;transform&quot;)if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Jr(l))return Q;const o=i.transform(l.value,s);if(o instanceof Promise)throw new Error(&quot;Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=&gt;Jr(l)?Promise.resolve(i.transform(l.value,s)).then(o=&gt;({status:n.value,value:o})):Q);se.assertNever(i)}}Xr.create=(e,t,n)=&gt;new Xr({schema:e,typeName:b.ZodEffects,effect:t,...Y(n)});Xr.createWithPreprocess=(e,t,n)=&gt;new Xr({schema:t,effect:{type:&quot;preprocess&quot;,transform:e},typeName:b.ZodEffects,...Y(n)});class En extends re{_parse(t){return this._getType(t)===F.undefined?_t(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}En.create=(e,t)=&gt;new En({innerType:e,typeName:b.ZodOptional,...Y(t)});class qr extends re{_parse(t){return this._getType(t)===F.null?_t(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qr.create=(e,t)=&gt;new qr({innerType:e,typeName:b.ZodNullable,...Y(t)});class ba extends re{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===F.undefined&amp;&amp;(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ba.create=(e,t)=&gt;new ba({innerType:e,typeName:b.ZodDefault,defaultValue:typeof t.default==&quot;function&quot;?t.default:()=&gt;t.default,...Y(t)});class Ja extends re{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Il(i)?i.then(s=&gt;({status:&quot;valid&quot;,value:s.status===&quot;valid&quot;?s.value:this._def.catchValue({get error(){return new Yt(r.common.issues)},input:r.data})})):{status:&quot;valid&quot;,value:i.status===&quot;valid&quot;?i.value:this._def.catchValue({get error(){return new Yt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ja.create=(e,t)=&gt;new Ja({innerType:e,typeName:b.ZodCatch,catchValue:typeof t.catch==&quot;function&quot;?t.catch:()=&gt;t.catch,...Y(t)});class Yf extends re{_parse(t){if(this._getType(t)!==F.nan){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:F.nan,received:r.parsedType}),Q}return{status:&quot;valid&quot;,value:t.data}}}Yf.create=e=&gt;new Yf({typeName:b.ZodNaN,...Y(e)});class m0 extends re{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class lc extends re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=&gt;{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status===&quot;aborted&quot;?Q:s.status===&quot;dirty&quot;?(n.dirty(),_i(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status===&quot;aborted&quot;?Q:i.status===&quot;dirty&quot;?(n.dirty(),{status:&quot;dirty&quot;,value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new lc({in:t,out:n,typeName:b.ZodPipeline})}}class Ga extends re{_parse(t){const n=this._def.innerType._parse(t),r=i=&gt;(Jr(i)&amp;&amp;(i.value=Object.freeze(i.value)),i);return Il(n)?n.then(i=&gt;r(i)):r(n)}unwrap(){return this._def.innerType}}Ga.create=(e,t)=&gt;new Ga({innerType:e,typeName:b.ZodReadonly,...Y(t)});var b;(function(e){e.ZodString=&quot;ZodString&quot;,e.ZodNumber=&quot;ZodNumber&quot;,e.ZodNaN=&quot;ZodNaN&quot;,e.ZodBigInt=&quot;ZodBigInt&quot;,e.ZodBoolean=&quot;ZodBoolean&quot;,e.ZodDate=&quot;ZodDate&quot;,e.ZodSymbol=&quot;ZodSymbol&quot;,e.ZodUndefined=&quot;ZodUndefined&quot;,e.ZodNull=&quot;ZodNull&quot;,e.ZodAny=&quot;ZodAny&quot;,e.ZodUnknown=&quot;ZodUnknown&quot;,e.ZodNever=&quot;ZodNever&quot;,e.ZodVoid=&quot;ZodVoid&quot;,e.ZodArray=&quot;ZodArray&quot;,e.ZodObject=&quot;ZodObject&quot;,e.ZodUnion=&quot;ZodUnion&quot;,e.ZodDiscriminatedUnion=&quot;ZodDiscriminatedUnion&quot;,e.ZodIntersection=&quot;ZodIntersection&quot;,e.ZodTuple=&quot;ZodTuple&quot;,e.ZodRecord=&quot;ZodRecord&quot;,e.ZodMap=&quot;ZodMap&quot;,e.ZodSet=&quot;ZodSet&quot;,e.ZodFunction=&quot;ZodFunction&quot;,e.ZodLazy=&quot;ZodLazy&quot;,e.ZodLiteral=&quot;ZodLiteral&quot;,e.ZodEnum=&quot;ZodEnum&quot;,e.ZodEffects=&quot;ZodEffects&quot;,e.ZodNativeEnum=&quot;ZodNativeEnum&quot;,e.ZodOptional=&quot;ZodOptional&quot;,e.ZodNullable=&quot;ZodNullable&quot;,e.ZodDefault=&quot;ZodDefault&quot;,e.ZodCatch=&quot;ZodCatch&quot;,e.ZodPromise=&quot;ZodPromise&quot;,e.ZodBranded=&quot;ZodBranded&quot;,e.ZodPipeline=&quot;ZodPipeline&quot;,e.ZodReadonly=&quot;ZodReadonly&quot;})(b||(b={}));const Wp=pn.create,y0=Gr.create,v0=Ha.create,oc=Ka.create;Nn.create;const Zp=jt.create,Yn=Ee.create,g0=Ll.create;Dl.create;sr.create;const Hp=Yr.create;Ml.create;En.create;qr.create;var w0=&quot;actor-runtime&quot;;function _0(){return Ip(w0)}function Xf(e){throw _0().error(&quot;unreachable&quot;,{value:`${e}`,stack:new Error().stack}),new pg(e)}Hp([&quot;json&quot;,&quot;cbor&quot;]);Yn({a:Zp(oc())});Yn({o:oc()});var x0=Yn({i:y0().int(),n:Wp(),a:Zp(oc())}),k0=Yn({e:Wp(),s:v0()});Yn({b:g0([Yn({ar:x0}),Yn({sr:k0})])});Hp([&quot;websocket&quot;,&quot;sse&quot;]);var Ds=&quot;X-RivetKit-Query&quot;,hi=&quot;X-RivetKit-Encoding&quot;,Ms=&quot;X-RivetKit-Conn-Params&quot;,S0=&quot;X-RivetKit-Actor&quot;,E0=&quot;X-RivetKit-Conn&quot;,C0=&quot;X-RivetKit-Conn-Token&quot;,O0=&quot;actor-client&quot;;function K(){return Ip(O0)}var zs=null;async function T0(){return zs!==null||(zs=(async()=&gt;{let e;if(typeof WebSocket&lt;&quot;u&quot;)e=WebSocket,K().debug(&quot;using native websocket&quot;);else try{e=(await Tp(()=&gt;import(&quot;./browser-DSyQa-bp.js&quot;).then(n=&gt;n.b),[])).default,K().debug(&quot;using websocket from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;WebSocket support requires installing the &quot;ws&quot; peer dependency.&#39;)}},K().debug(&quot;using mock websocket&quot;)}return e})()),zs}var N0=function(e,t,n,r,i,s,l,o){if(!e){var a;if(t===void 0)a=new Error(&quot;Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.&quot;);else{var u=[n,r,i,s,l,o],c=0;a=new Error(t.replace(/%s/g,function(){return u[c++]})),a.name=&quot;Invariant Violation&quot;}throw a.framesToPop=1,a}},R0=N0;const A0=ad(R0);/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2022 Joachim Wester
 * MIT licensed
 */var I0=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&amp;&amp;(r[s]=i[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),P0=Object.prototype.hasOwnProperty;function Ya(e,t){return P0.call(e,t)}function Xa(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n&lt;t.length;n++)t[n]=&quot;&quot;+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var i in e)Ya(e,i)&amp;&amp;r.push(i);return r}function it(e){switch(typeof e){case&quot;object&quot;:return JSON.parse(JSON.stringify(e));case&quot;undefined&quot;:return null;default:return e}}function qa(e){for(var t=0,n=e.length,r;t&lt;n;){if(r=e.charCodeAt(t),r&gt;=48&amp;&amp;r&lt;=57){t++;continue}return!1}return!0}function $n(e){return e.indexOf(&quot;/&quot;)===-1&amp;&amp;e.indexOf(&quot;~&quot;)===-1?e:e.replace(/~/g,&quot;~0&quot;).replace(/\//g,&quot;~1&quot;)}function Kp(e){return e.replace(/~1/g,&quot;/&quot;).replace(/~0/g,&quot;~&quot;)}function eu(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t&lt;n;t++)if(eu(e[t]))return!0}else if(typeof e==&quot;object&quot;){for(var r=Xa(e),i=r.length,s=0;s&lt;i;s++)if(eu(e[r[s]]))return!0}}return!1}function qf(e,t){var n=[e];for(var r in t){var i=typeof t[r]==&quot;object&quot;?JSON.stringify(t[r],null,2):t[r];typeof i&lt;&quot;u&quot;&amp;&amp;n.push(r+&quot;: &quot;+i)}return n.join(`
`)}var Qp=function(e){I0(t,e);function t(n,r,i,s,l){var o=this.constructor,a=e.call(this,qf(n,{name:r,index:i,operation:s,tree:l}))||this;return a.name=r,a.index=i,a.operation=s,a.tree=l,Object.setPrototypeOf(a,o.prototype),a.message=qf(n,{name:r,index:i,operation:s,tree:l}),a}return t}(Error),_e=Qp,L0=it,Cr={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=zl(n,this.path);r&amp;&amp;(r=it(r));var i=Xn(n,{op:&quot;remove&quot;,path:this.from}).removed;return Xn(n,{op:&quot;add&quot;,path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=zl(n,this.from);return Xn(n,{op:&quot;add&quot;,path:this.path,value:it(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:ns(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},D0={add:function(e,t,n){return qa(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var r=e.splice(t,1);return{newDocument:n,removed:r[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:Cr.move,copy:Cr.copy,test:Cr.test,_get:Cr._get};function zl(e,t){if(t==&quot;&quot;)return e;var n={op:&quot;_get&quot;,path:t};return Xn(e,n),n.value}function Xn(e,t,n,r,i,s){if(n===void 0&amp;&amp;(n=!1),r===void 0&amp;&amp;(r=!0),i===void 0&amp;&amp;(i=!0),s===void 0&amp;&amp;(s=0),n&amp;&amp;(typeof n==&quot;function&quot;?n(t,0,e,t.path):Ul(t,0)),t.path===&quot;&quot;){var l={newDocument:e};if(t.op===&quot;add&quot;)return l.newDocument=t.value,l;if(t.op===&quot;replace&quot;)return l.newDocument=t.value,l.removed=e,l;if(t.op===&quot;move&quot;||t.op===&quot;copy&quot;)return l.newDocument=zl(e,t.from),t.op===&quot;move&quot;&amp;&amp;(l.removed=e),l;if(t.op===&quot;test&quot;){if(l.test=ns(e,t.value),l.test===!1)throw new _e(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,s,t,e);return l.newDocument=e,l}else{if(t.op===&quot;remove&quot;)return l.removed=e,l.newDocument=null,l;if(t.op===&quot;_get&quot;)return t.value=e,l;if(n)throw new _e(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,s,t,e);return l}}else{r||(e=it(e));var o=t.path||&quot;&quot;,a=o.split(&quot;/&quot;),u=e,c=1,m=a.length,y=void 0,w=void 0,_=void 0;for(typeof n==&quot;function&quot;?_=n:_=Ul;;){if(w=a[c],w&amp;&amp;w.indexOf(&quot;~&quot;)!=-1&amp;&amp;(w=Kp(w)),i&amp;&amp;(w==&quot;__proto__&quot;||w==&quot;prototype&quot;&amp;&amp;c&gt;0&amp;&amp;a[c-1]==&quot;constructor&quot;))throw new TypeError(&quot;JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README&quot;);if(n&amp;&amp;y===void 0&amp;&amp;(u[w]===void 0?y=a.slice(0,c).join(&quot;/&quot;):c==m-1&amp;&amp;(y=t.path),y!==void 0&amp;&amp;_(t,0,e,y)),c++,Array.isArray(u)){if(w===&quot;-&quot;)w=u.length;else{if(n&amp;&amp;!qa(w))throw new _e(&quot;Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index&quot;,&quot;OPERATION_PATH_ILLEGAL_ARRAY_INDEX&quot;,s,t,e);qa(w)&amp;&amp;(w=~~w)}if(c&gt;=m){if(n&amp;&amp;t.op===&quot;add&quot;&amp;&amp;w&gt;u.length)throw new _e(&quot;The specified index MUST NOT be greater than the number of elements in the array&quot;,&quot;OPERATION_VALUE_OUT_OF_BOUNDS&quot;,s,t,e);var l=D0[t.op].call(t,u,w,e);if(l.test===!1)throw new _e(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,s,t,e);return l}}else if(c&gt;=m){var l=Cr[t.op].call(t,u,w,e);if(l.test===!1)throw new _e(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,s,t,e);return l}if(u=u[w],n&amp;&amp;c&lt;m&amp;&amp;(!u||typeof u!=&quot;object&quot;))throw new _e(&quot;Cannot perform operation at the desired path&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,s,t,e)}}}function ac(e,t,n,r,i){if(r===void 0&amp;&amp;(r=!0),i===void 0&amp;&amp;(i=!0),n&amp;&amp;!Array.isArray(t))throw new _e(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);r||(e=it(e));for(var s=new Array(t.length),l=0,o=t.length;l&lt;o;l++)s[l]=Xn(e,t[l],n,!0,i,l),e=s[l].newDocument;return s.newDocument=e,s}function M0(e,t,n){var r=Xn(e,t);if(r.test===!1)throw new _e(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,n,t,e);return r.newDocument}function Ul(e,t,n,r){if(typeof e!=&quot;object&quot;||e===null||Array.isArray(e))throw new _e(&quot;Operation is not an object&quot;,&quot;OPERATION_NOT_AN_OBJECT&quot;,t,e,n);if(Cr[e.op]){if(typeof e.path!=&quot;string&quot;)throw new _e(&quot;Operation `path` property is not a string&quot;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if(e.path.indexOf(&quot;/&quot;)!==0&amp;&amp;e.path.length&gt;0)throw new _e(&#39;Operation `path` property must start with &quot;/&quot;&#39;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if((e.op===&quot;move&quot;||e.op===&quot;copy&quot;)&amp;&amp;typeof e.from!=&quot;string&quot;)throw new _e(&quot;Operation `from` property is not present (applicable in `move` and `copy` operations)&quot;,&quot;OPERATION_FROM_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;e.value===void 0)throw new _e(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;eu(e.value))throw new _e(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED&quot;,t,e,n);if(n){if(e.op==&quot;add&quot;){var i=e.path.split(&quot;/&quot;).length,s=r.split(&quot;/&quot;).length;if(i!==s+1&amp;&amp;i!==s)throw new _e(&quot;Cannot perform an `add` operation at the desired path&quot;,&quot;OPERATION_PATH_CANNOT_ADD&quot;,t,e,n)}else if(e.op===&quot;replace&quot;||e.op===&quot;remove&quot;||e.op===&quot;_get&quot;){if(e.path!==r)throw new _e(&quot;Cannot perform the operation at a path that does not exist&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,t,e,n)}else if(e.op===&quot;move&quot;||e.op===&quot;copy&quot;){var l={op:&quot;_get&quot;,path:e.from,value:void 0},o=bp([l],n);if(o&amp;&amp;o.name===&quot;OPERATION_PATH_UNRESOLVABLE&quot;)throw new _e(&quot;Cannot perform the operation from a path that does not exist&quot;,&quot;OPERATION_FROM_UNRESOLVABLE&quot;,t,e,n)}}}else throw new _e(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,t,e,n)}function bp(e,t,n){try{if(!Array.isArray(e))throw new _e(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);if(t)ac(it(t),it(e),n||!0);else{n=n||Ul;for(var r=0;r&lt;e.length;r++)n(e[r],r,t,void 0)}}catch(i){if(i instanceof _e)return i;throw i}}function ns(e,t){if(e===t)return!0;if(e&amp;&amp;t&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;typeof t==&quot;object&quot;){var n=Array.isArray(e),r=Array.isArray(t),i,s,l;if(n&amp;&amp;r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!ns(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var o=Object.keys(e);if(s=o.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!t.hasOwnProperty(o[i]))return!1;for(i=s;i--!==0;)if(l=o[i],!ns(e[l],t[l]))return!1;return!0}return e!==e&amp;&amp;t!==t}const z0=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:_e,_areEquals:ns,applyOperation:Xn,applyPatch:ac,applyReducer:M0,deepClone:L0,getValueByPointer:zl,validate:bp,validator:Ul},Symbol.toStringTag,{value:&quot;Module&quot;}));/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2021 Joachim Wester
 * MIT license
 */var uc=new WeakMap,U0=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),j0=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function $0(e){return uc.get(e)}function F0(e,t){return e.observers.get(t)}function V0(e,t){e.observers.delete(t.callback)}function B0(e,t){t.unobserve()}function W0(e,t){var n=[],r,i=$0(e);if(!i)i=new U0(e),uc.set(e,i);else{var s=F0(i,t);r=s&amp;&amp;s.observer}if(r)return r;if(r={},i.value=it(e),t){r.callback=t,r.next=null;var l=function(){tu(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(l)};typeof window&lt;&quot;u&quot;&amp;&amp;(window.addEventListener(&quot;mouseup&quot;,o),window.addEventListener(&quot;keyup&quot;,o),window.addEventListener(&quot;mousedown&quot;,o),window.addEventListener(&quot;keydown&quot;,o),window.addEventListener(&quot;change&quot;,o))}return r.patches=n,r.object=e,r.unobserve=function(){tu(r),clearTimeout(r.next),V0(i,r),typeof window&lt;&quot;u&quot;&amp;&amp;(window.removeEventListener(&quot;mouseup&quot;,o),window.removeEventListener(&quot;keyup&quot;,o),window.removeEventListener(&quot;mousedown&quot;,o),window.removeEventListener(&quot;keydown&quot;,o),window.removeEventListener(&quot;change&quot;,o))},i.observers.set(t,new j0(t,r)),r}function tu(e,t){t===void 0&amp;&amp;(t=!1);var n=uc.get(e.object);cc(n.value,e.object,e.patches,&quot;&quot;,t),e.patches.length&amp;&amp;ac(n.value,e.patches);var r=e.patches;return r.length&gt;0&amp;&amp;(e.patches=[],e.callback&amp;&amp;e.callback(r)),r}function cc(e,t,n,r,i){if(t!==e){typeof t.toJSON==&quot;function&quot;&amp;&amp;(t=t.toJSON());for(var s=Xa(t),l=Xa(e),o=!1,a=l.length-1;a&gt;=0;a--){var u=l[a],c=e[u];if(Ya(t,u)&amp;&amp;!(t[u]===void 0&amp;&amp;c!==void 0&amp;&amp;Array.isArray(t)===!1)){var m=t[u];typeof c==&quot;object&quot;&amp;&amp;c!=null&amp;&amp;typeof m==&quot;object&quot;&amp;&amp;m!=null&amp;&amp;Array.isArray(c)===Array.isArray(m)?cc(c,m,n,r+&quot;/&quot;+$n(u),i):c!==m&amp;&amp;(i&amp;&amp;n.push({op:&quot;test&quot;,path:r+&quot;/&quot;+$n(u),value:it(c)}),n.push({op:&quot;replace&quot;,path:r+&quot;/&quot;+$n(u),value:it(m)}))}else Array.isArray(e)===Array.isArray(t)?(i&amp;&amp;n.push({op:&quot;test&quot;,path:r+&quot;/&quot;+$n(u),value:it(c)}),n.push({op:&quot;remove&quot;,path:r+&quot;/&quot;+$n(u)}),o=!0):(i&amp;&amp;n.push({op:&quot;test&quot;,path:r,value:e}),n.push({op:&quot;replace&quot;,path:r,value:t}))}if(!(!o&amp;&amp;s.length==l.length))for(var a=0;a&lt;s.length;a++){var u=s[a];!Ya(e,u)&amp;&amp;t[u]!==void 0&amp;&amp;n.push({op:&quot;add&quot;,path:r+&quot;/&quot;+$n(u),value:it(t[u])})}}}function Z0(e,t,n){n===void 0&amp;&amp;(n=!1);var r=[];return cc(e,t,r,&quot;&quot;,n),r}const H0=Object.freeze(Object.defineProperty({__proto__:null,compare:Z0,generate:tu,observe:W0,unobserve:B0},Symbol.toStringTag,{value:&quot;Module&quot;}));Object.assign({},z0,H0,{JsonPatchError:Qp,deepClone:it,escapePathComponent:$n,unescapePathComponent:Kp});new Set(&quot;.\\+*[^]$()&quot;);var Jp={};function wt(e,t){typeof t==&quot;boolean&quot;&amp;&amp;(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&amp;&amp;t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&amp;&amp;(this._cachedTimeouts=this._timeouts.slice(0))}var K0=wt;wt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};wt.prototype.stop=function(){this._timeout&amp;&amp;clearTimeout(this._timeout),this._timer&amp;&amp;clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};wt.prototype.retry=function(e){if(this._timeout&amp;&amp;clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&amp;&amp;t-this._operationStart&gt;=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error(&quot;RetryOperation timeout occurred&quot;)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&amp;&amp;(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&amp;&amp;r._timeout.unref()),r._fn(r._attempts)},n),this._options.unref&amp;&amp;this._timer.unref(),!0};wt.prototype.attempt=function(e,t){this._fn=e,t&amp;&amp;(t.timeout&amp;&amp;(this._operationTimeout=t.timeout),t.cb&amp;&amp;(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&amp;&amp;(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};wt.prototype.try=function(e){console.log(&quot;Using RetryOperation.try() is deprecated&quot;),this.attempt(e)};wt.prototype.start=function(e){console.log(&quot;Using RetryOperation.start() is deprecated&quot;),this.attempt(e)};wt.prototype.start=wt.prototype.try;wt.prototype.errors=function(){return this._errors};wt.prototype.attempts=function(){return this._attempts};wt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r&lt;this._errors.length;r++){var i=this._errors[r],s=i.message,l=(e[s]||0)+1;e[s]=l,l&gt;=n&amp;&amp;(t=i,n=l)}return t};(function(e){var t=K0;e.operation=function(n){var r=e.timeouts(n);return new t(r,{forever:n&amp;&amp;(n.forever||n.retries===1/0),unref:n&amp;&amp;n.unref,maxRetryTime:n&amp;&amp;n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in n)r[i]=n[i];if(r.minTimeout&gt;r.maxTimeout)throw new Error(&quot;minTimeout is greater than maxTimeout&quot;);for(var s=[],l=0;l&lt;r.retries;l++)s.push(this.createTimeout(l,r));return n&amp;&amp;n.forever&amp;&amp;!s.length&amp;&amp;s.push(this.createTimeout(l,r)),s.sort(function(o,a){return o-a}),s},e.createTimeout=function(n,r){var i=r.randomize?Math.random()+1:1,s=Math.round(i*Math.max(r.minTimeout,1)*Math.pow(r.factor,n));return s=Math.min(s,r.maxTimeout),s},e.wrap=function(n,r,i){if(r instanceof Array&amp;&amp;(i=r,r=null),!i){i=[];for(var s in n)typeof n[s]==&quot;function&quot;&amp;&amp;i.push(s)}for(var l=0;l&lt;i.length;l++){var o=i[l],a=n[o];n[o]=(function(c){var m=e.operation(r),y=Array.prototype.slice.call(arguments,1),w=y.pop();y.push(function(_){m.retry(_)||(_&amp;&amp;(arguments[0]=m.mainError()),w.apply(this,arguments))}),m.attempt(function(){c.apply(n,y)})}).bind(n,a),n[o].options=r}}})(Jp);var Q0=Jp;const b0=ad(Q0),J0=Object.prototype.toString,G0=e=&gt;J0.call(e)===&quot;[object Error]&quot;,Y0=new Set([&quot;network error&quot;,&quot;Failed to fetch&quot;,&quot;NetworkError when attempting to fetch resource.&quot;,&quot;The Internet connection appears to be offline.&quot;,&quot;Load failed&quot;,&quot;Network request failed&quot;,&quot;fetch failed&quot;,&quot;terminated&quot;]);function X0(e){return e&amp;&amp;G0(e)&amp;&amp;e.name===&quot;TypeError&quot;&amp;&amp;typeof e.message==&quot;string&quot;?e.message===&quot;Load failed&quot;?e.stack===void 0:Y0.has(e.message):!1}class q0 extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name=&quot;AbortError&quot;,this.message=t}}const ed=(e,t,n)=&gt;{const r=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=r,e};async function ew(e,t){return new Promise((n,r)=&gt;{t={...t},t.onFailedAttempt??(t.onFailedAttempt=()=&gt;{}),t.shouldRetry??(t.shouldRetry=()=&gt;!0),t.retries??(t.retries=10);const i=b0.operation(t),s=()=&gt;{var o;i.stop(),r((o=t.signal)==null?void 0:o.reason)};t.signal&amp;&amp;!t.signal.aborted&amp;&amp;t.signal.addEventListener(&quot;abort&quot;,s,{once:!0});const l=()=&gt;{var o;(o=t.signal)==null||o.removeEventListener(&quot;abort&quot;,s),i.stop()};i.attempt(async o=&gt;{try{const a=await e(o);l(),n(a)}catch(a){try{if(!(a instanceof Error))throw new TypeError(`Non-error was thrown: &quot;${a}&quot;. You should only throw errors.`);if(a instanceof q0)throw a.originalError;if(a instanceof TypeError&amp;&amp;!X0(a))throw a;if(ed(a,o,t),await t.shouldRetry(a)||(i.stop(),r(a)),await t.onFailedAttempt(a),!i.retry(a))throw i.mainError()}catch(u){ed(u,o,t),l(),r(u)}}})})}var ro=class extends Error{},xi=class extends ro{},jl=class extends ro{constructor(t,n,r){super(n);Rt(this,&quot;__type&quot;,&quot;ActorError&quot;);this.code=t,this.metadata=r}},Bo=class extends ro{constructor(e,t){super(`HTTP request error: ${e}`,{cause:t==null?void 0:t.cause})}},tw=class extends ro{constructor(){super(&quot;Attempting to interact with a disposed actor connection.&quot;)}};async function nw(e,t,n,r,i){let s,l=i||{};if(typeof r==&quot;string&quot;)s=r;else if(r instanceof URL)s=r.pathname+r.search;else if(r instanceof Request){const o=new URL(r.url);s=o.pathname+o.search;const a=new Headers(r.headers),u=new Headers((i==null?void 0:i.headers)||{}),c=new Headers(a);for(const[m,y]of u)c.set(m,y);l={method:r.method,body:r.body,mode:r.mode,credentials:r.credentials,redirect:r.redirect,referrer:r.referrer,referrerPolicy:r.referrerPolicy,integrity:r.integrity,keepalive:r.keepalive,signal:r.signal,...l,headers:c},l.body&amp;&amp;(l.duplex=&quot;half&quot;)}else throw new TypeError(&quot;Invalid input type for fetch&quot;);return await e.rawHttpRequest(void 0,t,&quot;json&quot;,n,s,l,void 0)}async function rw(e,t,n,r,i){return await e.rawWebSocket(void 0,t,&quot;json&quot;,n,r||&quot;&quot;,i,void 0)}var Lr,Bt,Wn,we,Wt,rd,iw=(rd=class{constructor(e,t,n,r,i){le(this,Lr);le(this,Bt);le(this,Wn);le(this,we);le(this,Wt);oe(this,Lr,e),oe(this,Bt,t),oe(this,Wn,r),oe(this,we,i),oe(this,Wt,n)}async action(e){return await k(this,Bt).action(void 0,k(this,we),k(this,Wn),k(this,Wt),e.name,e.args,{signal:e.signal})}connect(){K().debug(&quot;establishing connection from handle&quot;,{query:k(this,we)});const e=new aw(k(this,Lr),k(this,Bt),k(this,Wt),k(this,Wn),k(this,we));return k(this,Lr)[Gp](e)}async fetch(e,t){return nw(k(this,Bt),k(this,we),k(this,Wt),e,t)}async websocket(e,t){return rw(k(this,Bt),k(this,we),k(this,Wt),e,t)}async resolve({signal:e}={}){if(&quot;getForKey&quot;in k(this,we)||&quot;getOrCreateForKey&quot;in k(this,we)){let t;&quot;getForKey&quot;in k(this,we)?t=k(this,we).getForKey.name:&quot;getOrCreateForKey&quot;in k(this,we)?t=k(this,we).getOrCreateForKey.name:Xf(k(this,we));const n=await k(this,Bt).resolveActorId(void 0,k(this,we),k(this,Wn),k(this,Wt),e?{signal:e}:void 0);return oe(this,we,{getForId:{actorId:n,name:t}}),n}else{if(&quot;getForId&quot;in k(this,we))return k(this,we).getForId.actorId;&quot;create&quot;in k(this,we)?A0(!1,&quot;actorQuery cannot be create&quot;):Xf(k(this,we))}}},Lr=new WeakMap,Bt=new WeakMap,Wn=new WeakMap,we=new WeakMap,Wt=new WeakMap,rd),el=Symbol(&quot;actorConns&quot;),Gp=Symbol(&quot;createActorConnProxy&quot;),Li=Symbol(&quot;transport&quot;),id,sd,rs,Dr,Mr,Zn,ki,ld,sw=(ld=class{constructor(e,t){le(this,Zn);le(this,rs,!1);Rt(this,sd,new Set);le(this,Dr);le(this,Mr);Rt(this,id);oe(this,Dr,e),oe(this,Mr,(t==null?void 0:t.encoding)??&quot;cbor&quot;),this[Li]=(t==null?void 0:t.transport)??&quot;websocket&quot;}getForId(e,t,n){K().debug(&quot;get handle to actor with id&quot;,{name:e,actorId:t,params:n==null?void 0:n.params});const r={getForId:{name:e,actorId:t}},i=te(this,Zn,ki).call(this,n==null?void 0:n.params,r);return pi(i)}get(e,t,n){const r=typeof t==&quot;string&quot;?[t]:t||[];K().debug(&quot;get handle to actor&quot;,{name:e,key:r,parameters:n==null?void 0:n.params});const i={getForKey:{name:e,key:r}},s=te(this,Zn,ki).call(this,n==null?void 0:n.params,i);return pi(s)}getOrCreate(e,t,n){const r=typeof t==&quot;string&quot;?[t]:t||[];K().debug(&quot;get or create handle to actor&quot;,{name:e,key:r,parameters:n==null?void 0:n.params,createInRegion:n==null?void 0:n.createInRegion});const i={getOrCreateForKey:{name:e,key:r,input:n==null?void 0:n.createWithInput,region:n==null?void 0:n.createInRegion}},s=te(this,Zn,ki).call(this,n==null?void 0:n.params,i);return pi(s)}async create(e,t,n){const r=typeof t==&quot;string&quot;?[t]:t||[],i={create:{...n,name:e,key:r}};K().debug(&quot;create actor handle&quot;,{name:e,key:r,parameters:n==null?void 0:n.params,create:i.create});const s=await k(this,Dr).resolveActorId(void 0,i,k(this,Mr),n==null?void 0:n.params,n!=null&amp;&amp;n.signal?{signal:n.signal}:void 0);K().debug(&quot;created actor with ID&quot;,{name:e,key:r,actorId:s});const l={getForId:{name:e,actorId:s}},o=te(this,Zn,ki).call(this,n==null?void 0:n.params,l);return pi(o)}[(sd=el,id=Li,Gp)](e){return this[el].add(e),e[Xp](),pi(e)}async dispose(){if(k(this,rs)){K().warn(&quot;client already disconnected&quot;);return}oe(this,rs,!0),K().debug(&quot;disposing client&quot;);const e=[];for(const t of this[el].values())e.push(t.dispose());await Promise.all(e)}},rs=new WeakMap,Dr=new WeakMap,Mr=new WeakMap,Zn=new WeakSet,ki=function(e,t){return new iw(this,k(this,Dr),e,k(this,Mr),t)},ld);function lw(e,t){const n=new sw(e,t);return new Proxy(n,{get:(r,i,s)=&gt;{if(typeof i==&quot;symbol&quot;||i in r){const l=Reflect.get(r,i,s);return typeof l==&quot;function&quot;?l.bind(r):l}if(typeof i==&quot;string&quot;)return{get:(l,o)=&gt;r.get(i,l,o),getOrCreate:(l,o)=&gt;r.getOrCreate(i,l,o),getForId:(l,o)=&gt;r.getForId(i,l,o),create:async(l,o={})=&gt;await r.create(i,l,o)}}})}function pi(e){const t=new Map;return new Proxy(e,{get(n,r,i){if(typeof r==&quot;symbol&quot;)return Reflect.get(n,r,i);if(r===&quot;constructor&quot;||r in n){const s=Reflect.get(n,r,i);return typeof s==&quot;function&quot;?s.bind(n):s}if(typeof r==&quot;string&quot;){if(r===&quot;then&quot;)return;let s=t.get(r);return s||(s=(...l)=&gt;n.action({name:r,args:l}),t.set(r,s)),s}},has(n,r){return typeof r==&quot;string&quot;?!0:Reflect.has(n,r)},getPrototypeOf(n){return Reflect.getPrototypeOf(n)},ownKeys(n){return Reflect.ownKeys(n)},getOwnPropertyDescriptor(n,r){const i=Reflect.getOwnPropertyDescriptor(n,r);if(i)return i;if(typeof r==&quot;string&quot;)return{configurable:!0,enumerable:!1,writable:!1,value:(...s)=&gt;n.action({name:r,args:s})}}})}function ow(e){if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer||e instanceof Uint8Array)return e.byteLength;if(typeof e==&quot;string&quot;)return e.length;dt(e)}async function td(e){K().debug(&quot;sending http request&quot;,{url:e.url,encoding:e.encoding});let t,n;(e.method===&quot;POST&quot;||e.method===&quot;PUT&quot;)&amp;&amp;(e.encoding===&quot;json&quot;?(t=&quot;application/json&quot;,n=JSON.stringify(e.body)):e.encoding===&quot;cbor&quot;?(t=&quot;application/octet-stream&quot;,n=$p(e.body)):dt(e.encoding));let r;try{r=await(e.customFetch??fetch)(new Request(e.url,{method:e.method,headers:{...e.headers,...t?{&quot;Content-Type&quot;:t}:{},&quot;User-Agent&quot;:Ys()},body:n,credentials:&quot;include&quot;,signal:e.signal}))}catch(s){throw new Bo(`Request failed: ${s}`,{cause:s})}if(!r.ok){const s=await r.arrayBuffer();let l;try{if(e.encoding===&quot;json&quot;){const o=new TextDecoder().decode(s);l=JSON.parse(o)}else if(e.encoding===&quot;cbor&quot;){const o=new Uint8Array(s);l=Pi(o)}else dt(e.encoding)}catch{const a=new TextDecoder(&quot;utf-8&quot;,{fatal:!1}).decode(s);throw new Bo(`${r.statusText} (${r.status}):
${a}`)}throw new jl(l.c,l.m,l.md)}if(e.skipParseResponse)return;let i;try{if(e.encoding===&quot;json&quot;)i=await r.json();else if(e.encoding===&quot;cbor&quot;){const s=await r.arrayBuffer(),l=new Uint8Array(s);i=Pi(l)}else dt(e.encoding)}catch(s){throw new Bo(`Failed to parse response: ${s}`,{cause:s})}return i}function Yp(e,t){if(e===&quot;json&quot;)return JSON.stringify(t);if(e===&quot;cbor&quot;)return $p(t);dt(e)}var Xp=Symbol(&quot;connect&quot;),an,is,zr,Hn,Kn,Ur,de,un,cn,Dt,jr,ss,ls,tt,fn,Qn,$r,St,Fr,J,nu,qp,em,tm,nm,ru,iu,su,lu,rm,im,ou,tl,sm,lm,nl,od,aw=(od=class{constructor(e,t,n,r,i){le(this,J);le(this,an,!1);le(this,is,new AbortController);le(this,zr,!1);le(this,Hn);le(this,Kn);le(this,Ur);le(this,de);le(this,un,[]);le(this,cn,new Map);le(this,Dt,new Map);le(this,jr,new Set);le(this,ss,0);le(this,ls);le(this,tt);le(this,fn);le(this,Qn);le(this,$r);le(this,St);le(this,Fr);this.client=e,this.driver=t,this.params=n,this.encodingKind=r,this.actorQuery=i,oe(this,fn,e),oe(this,Qn,t),oe(this,$r,n),oe(this,St,r),oe(this,Fr,i),oe(this,ls,setInterval(()=&gt;6e4))}async action(e){K().debug(&quot;action&quot;,{name:e.name,args:e.args});const t=k(this,ss);oe(this,ss,k(this,ss)+1);const{promise:n,resolve:r,reject:i}=Promise.withResolvers();k(this,cn).set(t,{name:e.name,resolve:r,reject:i}),te(this,J,tl).call(this,{b:{ar:{i:t,n:e.name,a:e.args}}});const{i:s,o:l}=await n;if(s!==t)throw new Error(`Request ID ${t} does not match response ID ${s}`);return l}[Xp](){te(this,J,nu).call(this)}on(e,t){return te(this,J,ou).call(this,e,t,!1)}once(e,t){return te(this,J,ou).call(this,e,t,!0)}onError(e){return k(this,jr).add(e),()=&gt;{k(this,jr).delete(e)}}async dispose(){if(k(this,an)){K().warn(&quot;connection already disconnected&quot;);return}if(oe(this,an,!0),K().debug(&quot;disposing actor&quot;),clearInterval(k(this,ls)),k(this,is).abort(),k(this,fn)[el].delete(this),k(this,de))if(&quot;websocket&quot;in k(this,de)){const{promise:e,resolve:t}=Promise.withResolvers();k(this,de).websocket.addEventListener(&quot;close&quot;,()=&gt;{K().debug(&quot;ws closed&quot;),t(void 0)}),k(this,de).websocket.close(),await e}else&quot;sse&quot;in k(this,de)?k(this,de).sse.close():dt(k(this,de));oe(this,de,void 0)}},an=new WeakMap,is=new WeakMap,zr=new WeakMap,Hn=new WeakMap,Kn=new WeakMap,Ur=new WeakMap,de=new WeakMap,un=new WeakMap,cn=new WeakMap,Dt=new WeakMap,jr=new WeakMap,ss=new WeakMap,ls=new WeakMap,tt=new WeakMap,fn=new WeakMap,Qn=new WeakMap,$r=new WeakMap,St=new WeakMap,Fr=new WeakMap,J=new WeakSet,nu=async function(){oe(this,zr,!0);try{await ew(te(this,J,qp).bind(this),{forever:!0,minTimeout:250,maxTimeout:3e4,onFailedAttempt:e=&gt;{K().warn(&quot;failed to reconnect&quot;,{attempt:e.attemptNumber,error:Cf(e)})},signal:k(this,is).signal})}catch(e){if(e.name===&quot;AbortError&quot;){K().info(&quot;connection retry aborted&quot;);return}else throw e}oe(this,zr,!1)},qp=async function(){try{if(k(this,tt))throw new Error(&quot;#onOpenPromise already defined&quot;);oe(this,tt,Promise.withResolvers()),k(this,fn)[Li]===&quot;websocket&quot;?await te(this,J,em).call(this):k(this,fn)[Li]===&quot;sse&quot;?await te(this,J,tm).call(this):dt(k(this,fn)[Li]),await k(this,tt).promise}finally{oe(this,tt,void 0)}},em=async function({signal:e}={}){const t=await k(this,Qn).connectWebSocket(void 0,k(this,Fr),k(this,St),k(this,$r),e?{signal:e}:void 0);oe(this,de,{websocket:t}),t.addEventListener(&quot;open&quot;,()=&gt;{K().debug(&quot;websocket open&quot;)}),t.addEventListener(&quot;message&quot;,async n=&gt;{te(this,J,ru).call(this,n.data)}),t.addEventListener(&quot;close&quot;,n=&gt;{te(this,J,iu).call(this,n)}),t.addEventListener(&quot;error&quot;,n=&gt;{te(this,J,su).call(this)})},tm=async function({signal:e}={}){const t=await k(this,Qn).connectSse(void 0,k(this,Fr),k(this,St),k(this,$r),e?{signal:e}:void 0);oe(this,de,{sse:t}),t.onopen=()=&gt;{K().debug(&quot;eventsource open&quot;)},t.onmessage=n=&gt;{te(this,J,ru).call(this,n.data)},t.onerror=n=&gt;{t.readyState===t.CLOSED?te(this,J,iu).call(this,new Event(&quot;error&quot;)):te(this,J,su).call(this)}},nm=function(){K().debug(&quot;socket open&quot;,{messageQueueLength:k(this,un).length}),k(this,tt)?k(this,tt).resolve(void 0):K().warn(&quot;#onOpenPromise is undefined&quot;);for(const t of k(this,Dt).keys())te(this,J,nl).call(this,t,!0);const e=k(this,un);oe(this,un,[]);for(const t of e)te(this,J,tl).call(this,t)},ru=async function(e){var t;K().trace(&quot;received message&quot;,{dataType:typeof e,isBlob:e instanceof Blob,isArrayBuffer:e instanceof ArrayBuffer});const n=await te(this,J,lm).call(this,e);if(K().trace(&quot;parsed message&quot;,{response:JSON.stringify(n).substring(0,100)+&quot;...&quot;}),&quot;i&quot;in n.b)oe(this,Hn,n.b.i.ai),oe(this,Kn,n.b.i.ci),oe(this,Ur,n.b.i.ct),K().trace(&quot;received init message&quot;,{actorId:k(this,Hn),connectionId:k(this,Kn)}),te(this,J,nm).call(this);else if(&quot;e&quot;in n.b){const{c:r,m:i,md:s,ai:l}=n.b.e;if(l){const o=te(this,J,lu).call(this,l);K().warn(&quot;action error&quot;,{actionId:l,actionName:o==null?void 0:o.name,code:r,message:i,metadata:s}),o.reject(new jl(r,i,s))}else{K().warn(&quot;connection error&quot;,{code:r,message:i,metadata:s});const o=new jl(r,i,s);k(this,tt)&amp;&amp;k(this,tt).reject(o);for(const[a,u]of k(this,cn).entries())u.reject(o),k(this,cn).delete(a);te(this,J,im).call(this,o)}}else if(&quot;ar&quot;in n.b){const{i:r,o:i}=n.b.ar;K().trace(&quot;received action response&quot;,{actionId:r,outputType:i});const s=te(this,J,lu).call(this,r);K().trace(&quot;resolving action promise&quot;,{actionId:r,actionName:s==null?void 0:s.name}),s.resolve(n.b.ar)}else&quot;ev&quot;in n.b?(K().trace(&quot;received event&quot;,{name:n.b.ev.n,argsCount:(t=n.b.ev.a)==null?void 0:t.length}),te(this,J,rm).call(this,n.b.ev)):dt(n.b)},iu=function(e){k(this,tt)&amp;&amp;k(this,tt).reject(new Error(&quot;Closed&quot;));const t=e;t.wasClean?K().info(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}):K().warn(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}),oe(this,de,void 0),!k(this,an)&amp;&amp;!k(this,zr)&amp;&amp;te(this,J,nu).call(this)},su=function(){k(this,an)||K().warn(&quot;socket error&quot;)},lu=function(e){const t=k(this,cn).get(e);if(!t)throw new xi(`No in flight response for ${e}`);return k(this,cn).delete(e),t},rm=function(e){const{n:t,a:n}=e,r=k(this,Dt).get(t);if(r){for(const i of[...r])i.callback(...n),i.once&amp;&amp;r.delete(i);r.size===0&amp;&amp;k(this,Dt).delete(t)}},im=function(e){for(const t of[...k(this,jr)])try{t(e)}catch(n){K().error(&quot;Error in connection error handler&quot;,{error:Cf(n)})}},ou=function(e,t,n){const r={callback:t,once:n};let i=k(this,Dt).get(e);return i===void 0&amp;&amp;(i=new Set,k(this,Dt).set(e,i),te(this,J,nl).call(this,e,!0)),i.add(r),()=&gt;{const s=k(this,Dt).get(e);s&amp;&amp;(s.delete(r),s.size===0&amp;&amp;(k(this,Dt).delete(e),te(this,J,nl).call(this,e,!1)))}},tl=function(e,t){if(k(this,an))throw new tw;let n=!1;if(!k(this,de))n=!0;else if(&quot;websocket&quot;in k(this,de))if(k(this,de).websocket.readyState===1)try{const r=Yp(k(this,St),e);k(this,de).websocket.send(r),K().trace(&quot;sent websocket message&quot;,{len:ow(r)})}catch(r){K().warn(&quot;failed to send message, added to queue&quot;,{error:r}),n=!0}else n=!0;else&quot;sse&quot;in k(this,de)?k(this,de).sse.readyState===1?te(this,J,sm).call(this,e,t):n=!0:dt(k(this,de));!(t!=null&amp;&amp;t.ephemeral)&amp;&amp;n&amp;&amp;(k(this,un).push(e),K().debug(&quot;queued connection message&quot;))},sm=async function(e,t){try{if(!k(this,Hn)||!k(this,Kn)||!k(this,Ur))throw new xi(&quot;Missing connection ID or token.&quot;);K().trace(&quot;sent http message&quot;,{message:JSON.stringify(e).substring(0,100)+&quot;...&quot;});const n=await k(this,Qn).sendHttpMessage(void 0,k(this,Hn),k(this,St),k(this,Kn),k(this,Ur),e,t!=null&amp;&amp;t.signal?{signal:t.signal}:void 0);if(!n.ok)throw new xi(`Publish message over HTTP error (${n.statusText}):
${await n.text()}`);await n.json()}catch(n){K().warn(&quot;failed to send message, added to queue&quot;,{error:n}),t!=null&amp;&amp;t.ephemeral||k(this,un).unshift(e)}},lm=async function(e){if(k(this,St)===&quot;json&quot;){if(typeof e!=&quot;string&quot;)throw new Error(&quot;received non-string for json parse&quot;);return JSON.parse(e)}else if(k(this,St)===&quot;cbor&quot;){if(k(this,de))if(&quot;sse&quot;in k(this,de))if(typeof e==&quot;string&quot;){const t=atob(e);e=new Uint8Array([...t].map(n=&gt;n.charCodeAt(0)))}else throw new xi(`Expected data to be a string for SSE, got ${e}.`);else&quot;websocket&quot;in k(this,de)||dt(k(this,de));else throw new Error(&quot;Cannot parse message when no transport defined&quot;);if(e instanceof Blob)return Pi(new Uint8Array(await e.arrayBuffer()));if(e instanceof ArrayBuffer)return Pi(new Uint8Array(e));if(e instanceof Uint8Array)return Pi(e);throw new Error(`received non-binary type for cbor parse: ${typeof e}`)}else dt(k(this,St))},nl=function(e,t){te(this,J,tl).call(this,{b:{sr:{e,s:t}}},{ephemeral:!0})},od),Us=null;async function uw(){return Us!==null||(Us=(async()=&gt;{let e;try{e=(await Tp(()=&gt;import(&quot;./index-z2Dkjsn_.js&quot;),[])).EventSource,K().debug(&quot;using eventsource from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;EventSource support requires installing the &quot;eventsource&quot; peer dependency.&#39;)}},K().debug(&quot;using mock eventsource&quot;)}return e})()),Us}function cw(e){const t=(async()=&gt;{const[r,i]=await Promise.all([T0(),uw()]);return{WebSocket:r,EventSource:i}})();return{action:async(r,i,s,l,o,a,u)=&gt;(K().debug(&quot;actor handle action&quot;,{name:o,args:a,query:i}),(await td({url:`${e}/registry/actors/actions/${encodeURIComponent(o)}`,method:&quot;POST&quot;,headers:{[hi]:s,[Ds]:JSON.stringify(i),...l!==void 0?{[Ms]:JSON.stringify(l)}:{}},body:{a},encoding:s,signal:u==null?void 0:u.signal})).o),resolveActorId:async(r,i,s,l)=&gt;{K().debug(&quot;resolving actor ID&quot;,{query:i});try{const o=await td({url:`${e}/registry/actors/resolve`,method:&quot;POST&quot;,headers:{[hi]:s,[Ds]:JSON.stringify(i),...l!==void 0?{[Ms]:JSON.stringify(l)}:{}},body:{},encoding:s});return K().debug(&quot;resolved actor ID&quot;,{actorId:o.i}),o.i}catch(o){throw K().error(&quot;failed to resolve actor ID&quot;,{error:o}),o instanceof jl?o:new xi(`Failed to resolve actor ID: ${String(o)}`)}},connectWebSocket:async(r,i,s,l)=&gt;{const{WebSocket:o}=await t,u=`${e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;)}/registry/actors/connect/websocket`,c=[`query.${encodeURIComponent(JSON.stringify(i))}`,`encoding.${s}`];l&amp;&amp;c.push(`conn_params.${encodeURIComponent(JSON.stringify(l))}`),c.push(&quot;rivetkit&quot;),K().debug(&quot;connecting to websocket&quot;,{url:u});const m=new o(u,c);if(s===&quot;cbor&quot;)m.binaryType=&quot;arraybuffer&quot;;else if(s===&quot;json&quot;)try{m.binaryType=&quot;blob&quot;}catch{}else dt(s);return m},connectSse:async(r,i,s,l)=&gt;{const{EventSource:o}=await t,a=`${e}/registry/actors/connect/sse`;return K().debug(&quot;connecting to sse&quot;,{url:a}),new o(a,{fetch:(c,m)=&gt;fetch(c,{...m,headers:{...m==null?void 0:m.headers,&quot;User-Agent&quot;:Ys(),[hi]:s,[Ds]:JSON.stringify(i),...l!==void 0?{[Ms]:JSON.stringify(l)}:{}},credentials:&quot;include&quot;})})},sendHttpMessage:async(r,i,s,l,o,a)=&gt;{const u=Yp(s,a);return await fetch(`${e}/registry/actors/message`,{method:&quot;POST&quot;,headers:{&quot;User-Agent&quot;:Ys(),[hi]:s,[S0]:i,[E0]:l,[C0]:o},body:u,credentials:&quot;include&quot;})},rawHttpRequest:async(r,i,s,l,o,a)=&gt;{const u=o.startsWith(&quot;/&quot;)?o.slice(1):o,c=`${e}/registry/actors/raw/http/${u}`;K().debug(&quot;rewriting http url&quot;,{from:o,to:c});const m=new Headers(a.headers);return m.set(&quot;User-Agent&quot;,Ys()),m.set(Ds,JSON.stringify(i)),m.set(hi,s),l!==void 0&amp;&amp;m.set(Ms,JSON.stringify(l)),await fetch(c,{...a,headers:m})},rawWebSocket:async(r,i,s,l,o,a)=&gt;{const{WebSocket:u}=await t,c=e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;),m=o.startsWith(&quot;/&quot;)?o.slice(1):o,y=`${c}/registry/actors/raw/websocket/${m}`;K().debug(&quot;rewriting websocket url&quot;,{from:o,to:y});const w=[];return w.push(`query.${encodeURIComponent(JSON.stringify(i))}`),w.push(`encoding.${s}`),l&amp;&amp;w.push(`conn_params.${encodeURIComponent(JSON.stringify(l))}`),w.push(&quot;rivetkit&quot;),a&amp;&amp;(Array.isArray(a)?w.push(...a):w.push(a)),K().debug(&quot;opening raw websocket&quot;,{url:y}),new u(y,w)}}}function fw(e,t){const n=cw(e);return lw(n,t)}function dw(e,t={}){const{getOrCreateActor:n}=Vv(e,t);function r(i){const{mount:s,setState:l,state:o}=n(i);Fe.useEffect(()=&gt;{l(c=&gt;(c.opts={...i,enabled:i.enabled??!0},c))},[i,l]),Fe.useEffect(()=&gt;s(),[s]);const a=Sf(o)||{};function u(c,m){const y=Fe.useRef(m),w=Sf(o)||{};Fe.useEffect(()=&gt;{y.current=m},[m]),Fe.useEffect(()=&gt;{if(!(w!=null&amp;&amp;w.connection))return;function _(...E){y.current(...E)}return w.connection.on(c,_)},[w.connection,w.isConnected,w.hash,c])}return{...a,useEvent:u}}return{useActor:r}}const hw=fw(&quot;http://localhost:8080&quot;),{useActor:pw}=dw(hw);function mw({userId:e}){const[t,n]=Fe.useState([]),[r,i]=Fe.useState(&quot;&quot;),[s,l]=Fe.useState(null),[o,a]=Fe.useState(&quot;&quot;),u=pw({name:&quot;notes&quot;,key:[e],params:{userId:e,token:&quot;demo-token&quot;}});Fe.useEffect(()=&gt;{u.connection&amp;&amp;u.connection.getNotes().then(n)},[u.connection]),u.useEvent(&quot;noteAdded&quot;,L=&gt;{n(h=&gt;[...h,L])}),u.useEvent(&quot;noteUpdated&quot;,L=&gt;{n(h=&gt;h.map(f=&gt;f.id===L.id?L:f)),l(null)}),u.useEvent(&quot;noteDeleted&quot;,({id:L})=&gt;{n(h=&gt;h.filter(f=&gt;f.id!==L))});const c=async()=&gt;{u.connection&amp;&amp;r.trim()&amp;&amp;(await u.connection.updateNote({id:`note-${Date.now()}`,content:r}),i(&quot;&quot;))},m=L=&gt;{l(L.id),a(L.content)},y=async()=&gt;{u.connection&amp;&amp;s&amp;&amp;await u.connection.updateNote({id:s,content:o})},w=()=&gt;{l(null),a(&quot;&quot;)},_=async L=&gt;{u.connection&amp;&amp;confirm(&quot;Are you sure you want to delete this note?&quot;)&amp;&amp;await u.connection.deleteNote({id:L})},E=(L,h)=&gt;{L.key===&quot;Enter&quot;&amp;&amp;h()};return ie.jsxs(&quot;div&quot;,{className:&quot;notes-section&quot;,children:[ie.jsx(&quot;div&quot;,{className:`connection-status ${u.connection?&quot;connected&quot;:&quot;disconnected&quot;}`,children:u.connection?&quot;✓ Connected&quot;:&quot;⚠ Disconnected&quot;}),ie.jsxs(&quot;div&quot;,{className:&quot;add-note&quot;,children:[ie.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:r,onChange:L=&gt;i(L.target.value),onKeyPress:L=&gt;E(L,c),placeholder:&quot;Enter a new note...&quot;,disabled:!u.connection}),ie.jsx(&quot;button&quot;,{onClick:c,disabled:!u.connection||!r.trim(),children:&quot;Add Note&quot;})]}),t.length===0?ie.jsx(&quot;div&quot;,{className:&quot;empty-state&quot;,children:&quot;No notes yet. Add your first note above!&quot;}):ie.jsx(&quot;ul&quot;,{className:&quot;notes-list&quot;,children:t.sort((L,h)=&gt;h.updatedAt-L.updatedAt).map(L=&gt;ie.jsx(&quot;li&quot;,{className:`note-item ${s===L.id?&quot;edit-mode&quot;:&quot;&quot;}`,children:s===L.id?ie.jsxs(&quot;div&quot;,{style:{width:&quot;100%&quot;},children:[ie.jsx(&quot;input&quot;,{type:&quot;text&quot;,value:o,onChange:h=&gt;a(h.target.value),onKeyPress:h=&gt;E(h,y),className:&quot;edit-input&quot;,autoFocus:!0}),ie.jsxs(&quot;div&quot;,{className:&quot;edit-actions&quot;,children:[ie.jsx(&quot;button&quot;,{onClick:y,className:&quot;save-btn&quot;,children:&quot;Save&quot;}),ie.jsx(&quot;button&quot;,{onClick:w,className:&quot;cancel-btn&quot;,children:&quot;Cancel&quot;})]})]}):ie.jsxs(ie.Fragment,{children:[ie.jsxs(&quot;div&quot;,{className:&quot;note-content&quot;,children:[ie.jsx(&quot;div&quot;,{children:L.content}),ie.jsxs(&quot;div&quot;,{className:&quot;note-meta&quot;,children:[&quot;Last updated: &quot;,new Date(L.updatedAt).toLocaleString()]})]}),ie.jsxs(&quot;div&quot;,{className:&quot;note-actions&quot;,children:[ie.jsx(&quot;button&quot;,{onClick:()=&gt;m(L),className:&quot;edit-btn&quot;,children:&quot;Edit&quot;}),ie.jsx(&quot;button&quot;,{onClick:()=&gt;_(L.id),className:&quot;delete-btn&quot;,children:&quot;Delete&quot;})]})]})},L.id))})]})}function yw(){const[e,t]=Fe.useState(&quot;user1&quot;),n=[{id:&quot;user1&quot;,name:&quot;Alice&quot;},{id:&quot;user2&quot;,name:&quot;Bob&quot;},{id:&quot;user3&quot;,name:&quot;Charlie&quot;}];return ie.jsxs(&quot;div&quot;,{className:&quot;app-container&quot;,children:[ie.jsxs(&quot;div&quot;,{className:&quot;header&quot;,children:[ie.jsx(&quot;h1&quot;,{children:&quot;Database Notes&quot;}),ie.jsx(&quot;p&quot;,{children:&quot;Persistent note-taking with real-time updates&quot;})]}),ie.jsxs(&quot;div&quot;,{className:&quot;user-selector&quot;,children:[ie.jsx(&quot;label&quot;,{children:&quot;Select User:&quot;}),ie.jsx(&quot;select&quot;,{value:e,onChange:r=&gt;t(r.target.value),children:n.map(r=&gt;ie.jsxs(&quot;option&quot;,{value:r.id,children:[r.name,&quot; (&quot;,r.id,&quot;)&quot;]},r.id))})]}),ie.jsx(mw,{userId:e},e)]})}const om=document.getElementById(&quot;root&quot;);if(!om)throw new Error(&quot;Root element not found&quot;);xp(om).render(ie.jsx(Fe.StrictMode,{children:ie.jsx(yw,{})}));export{ad as g};
">
<input type="hidden" name="project[files][src/frontend/dist/assets/index-z2Dkjsn_.js]" value="class V extends Error{constructor(e,s){super(e),this.name=&quot;ParseError&quot;,this.type=s.type,this.field=s.field,this.value=s.value,this.line=s.line}}function A(t){}function et(t){if(typeof t==&quot;function&quot;)throw new TypeError(&quot;`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?&quot;);const{onEvent:e=A,onError:s=A,onRetry:i=A,onComment:l}=t;let r=&quot;&quot;,d=!0,u,E=&quot;&quot;,f=&quot;&quot;;function $(a){const h=d?a.replace(/^\xEF\xBB\xBF/,&quot;&quot;):a,[m,P]=st(`${r}${h}`);for(const D of m)W(D);r=P,d=!1}function W(a){if(a===&quot;&quot;){U();return}if(a.startsWith(&quot;:&quot;)){l&amp;&amp;l(a.slice(a.startsWith(&quot;: &quot;)?2:1));return}const h=a.indexOf(&quot;:&quot;);if(h!==-1){const m=a.slice(0,h),P=a[h+1]===&quot; &quot;?2:1,D=a.slice(h+P);S(m,D,a);return}S(a,&quot;&quot;,a)}function S(a,h,m){switch(a){case&quot;event&quot;:f=h;break;case&quot;data&quot;:E=`${E}${h}
`;break;case&quot;id&quot;:u=h.includes(&quot;\0&quot;)?void 0:h;break;case&quot;retry&quot;:/^\d+$/.test(h)?i(parseInt(h,10)):s(new V(`Invalid \`retry\` value: &quot;${h}&quot;`,{type:&quot;invalid-retry&quot;,value:h,line:m}));break;default:s(new V(`Unknown field &quot;${a.length&gt;20?`${a.slice(0,20)}…`:a}&quot;`,{type:&quot;unknown-field&quot;,field:a,value:h,line:m}));break}}function U(){E.length&gt;0&amp;&amp;e({id:u,event:f||void 0,data:E.endsWith(`
`)?E.slice(0,-1):E}),u=void 0,E=&quot;&quot;,f=&quot;&quot;}function T(a={}){r&amp;&amp;a.consume&amp;&amp;W(r),d=!0,u=void 0,E=&quot;&quot;,f=&quot;&quot;,r=&quot;&quot;}return{feed:$,reset:T}}function st(t){const e=[];let s=&quot;&quot;,i=0;for(;i&lt;t.length;){const l=t.indexOf(&quot;\r&quot;,i),r=t.indexOf(`
`,i);let d=-1;if(l!==-1&amp;&amp;r!==-1?d=Math.min(l,r):l!==-1?d=l:r!==-1&amp;&amp;(d=r),d===-1){s=t.slice(i);break}else{const u=t.slice(i,d);e.push(u),i=d+1,t[i-1]===&quot;\r&quot;&amp;&amp;t[i]===`
`&amp;&amp;i++}}return[e,s]}class X extends Event{constructor(e,s){var i,l;super(e),this.code=(i=s==null?void 0:s.code)!=null?i:void 0,this.message=(l=s==null?void 0:s.message)!=null?l:void 0}[Symbol.for(&quot;nodejs.util.inspect.custom&quot;)](e,s,i){return i(Y(this),s)}[Symbol.for(&quot;Deno.customInspect&quot;)](e,s){return e(Y(this),s)}}function nt(t){const e=globalThis.DOMException;return typeof e==&quot;function&quot;?new e(t,&quot;SyntaxError&quot;):new SyntaxError(t)}function F(t){return t instanceof Error?&quot;errors&quot;in t&amp;&amp;Array.isArray(t.errors)?t.errors.map(F).join(&quot;, &quot;):&quot;cause&quot;in t&amp;&amp;t.cause instanceof Error?`${t}: ${F(t.cause)}`:t.message:`${t}`}function Y(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var tt=t=&gt;{throw TypeError(t)},Q=(t,e,s)=&gt;e.has(t)||tt(&quot;Cannot &quot;+s),n=(t,e,s)=&gt;(Q(t,e,&quot;read from private field&quot;),s?s.call(t):e.get(t)),c=(t,e,s)=&gt;e.has(t)?tt(&quot;Cannot add the same private member more than once&quot;):e instanceof WeakSet?e.add(t):e.set(t,s),o=(t,e,s,i)=&gt;(Q(t,e,&quot;write to private field&quot;),e.set(t,s),s),w=(t,e,s)=&gt;(Q(t,e,&quot;access private method&quot;),s),p,_,y,I,R,L,b,N,g,C,k,x,M,v,B,q,H,Z,j,z,O,J,K;class G extends EventTarget{constructor(e,s){var i,l;super(),c(this,v),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,c(this,p),c(this,_),c(this,y),c(this,I),c(this,R),c(this,L),c(this,b),c(this,N,null),c(this,g),c(this,C),c(this,k,null),c(this,x,null),c(this,M,null),c(this,q,async r=&gt;{var d;n(this,C).reset();const{body:u,redirected:E,status:f,headers:$}=r;if(f===204){w(this,v,O).call(this,&quot;Server sent HTTP 204, not reconnecting&quot;,204),this.close();return}if(E?o(this,y,new URL(r.url)):o(this,y,void 0),f!==200){w(this,v,O).call(this,`Non-200 status code (${f})`,f);return}if(!($.get(&quot;content-type&quot;)||&quot;&quot;).startsWith(&quot;text/event-stream&quot;)){w(this,v,O).call(this,&#39;Invalid content type, expected &quot;text/event-stream&quot;&#39;,f);return}if(n(this,p)===this.CLOSED)return;o(this,p,this.OPEN);const W=new Event(&quot;open&quot;);if((d=n(this,M))==null||d.call(this,W),this.dispatchEvent(W),typeof u!=&quot;object&quot;||!u||!(&quot;getReader&quot;in u)){w(this,v,O).call(this,&quot;Invalid response body, expected a web ReadableStream&quot;,f),this.close();return}const S=new TextDecoder,U=u.getReader();let T=!0;do{const{done:a,value:h}=await U.read();h&amp;&amp;n(this,C).feed(S.decode(h,{stream:!a})),a&amp;&amp;(T=!1,n(this,C).reset(),w(this,v,J).call(this))}while(T)}),c(this,H,r=&gt;{o(this,g,void 0),!(r.name===&quot;AbortError&quot;||r.type===&quot;aborted&quot;)&amp;&amp;w(this,v,J).call(this,F(r))}),c(this,j,r=&gt;{typeof r.id==&quot;string&quot;&amp;&amp;o(this,N,r.id);const d=new MessageEvent(r.event||&quot;message&quot;,{data:r.data,origin:n(this,y)?n(this,y).origin:n(this,_).origin,lastEventId:r.id||&quot;&quot;});n(this,x)&amp;&amp;(!r.event||r.event===&quot;message&quot;)&amp;&amp;n(this,x).call(this,d),this.dispatchEvent(d)}),c(this,z,r=&gt;{o(this,L,r)}),c(this,K,()=&gt;{o(this,b,void 0),n(this,p)===this.CONNECTING&amp;&amp;w(this,v,B).call(this)});try{if(e instanceof URL)o(this,_,e);else if(typeof e==&quot;string&quot;)o(this,_,new URL(e,it()));else throw new Error(&quot;Invalid URL&quot;)}catch{throw nt(&quot;An invalid or illegal string was specified&quot;)}o(this,C,et({onEvent:n(this,j),onRetry:n(this,z)})),o(this,p,this.CONNECTING),o(this,L,3e3),o(this,R,(i=s==null?void 0:s.fetch)!=null?i:globalThis.fetch),o(this,I,(l=s==null?void 0:s.withCredentials)!=null?l:!1),w(this,v,B).call(this)}get readyState(){return n(this,p)}get url(){return n(this,_).href}get withCredentials(){return n(this,I)}get onerror(){return n(this,k)}set onerror(e){o(this,k,e)}get onmessage(){return n(this,x)}set onmessage(e){o(this,x,e)}get onopen(){return n(this,M)}set onopen(e){o(this,M,e)}addEventListener(e,s,i){const l=s;super.addEventListener(e,l,i)}removeEventListener(e,s,i){const l=s;super.removeEventListener(e,l,i)}close(){n(this,b)&amp;&amp;clearTimeout(n(this,b)),n(this,p)!==this.CLOSED&amp;&amp;(n(this,g)&amp;&amp;n(this,g).abort(),o(this,p,this.CLOSED),o(this,g,void 0))}}p=new WeakMap,_=new WeakMap,y=new WeakMap,I=new WeakMap,R=new WeakMap,L=new WeakMap,b=new WeakMap,N=new WeakMap,g=new WeakMap,C=new WeakMap,k=new WeakMap,x=new WeakMap,M=new WeakMap,v=new WeakSet,B=function(){o(this,p,this.CONNECTING),o(this,g,new AbortController),n(this,R)(n(this,_),w(this,v,Z).call(this)).then(n(this,q)).catch(n(this,H))},q=new WeakMap,H=new WeakMap,Z=function(){var t;const e={mode:&quot;cors&quot;,redirect:&quot;follow&quot;,headers:{Accept:&quot;text/event-stream&quot;,...n(this,N)?{&quot;Last-Event-ID&quot;:n(this,N)}:void 0},cache:&quot;no-store&quot;,signal:(t=n(this,g))==null?void 0:t.signal};return&quot;window&quot;in globalThis&amp;&amp;(e.credentials=this.withCredentials?&quot;include&quot;:&quot;same-origin&quot;),e},j=new WeakMap,z=new WeakMap,O=function(t,e){var s;n(this,p)!==this.CLOSED&amp;&amp;o(this,p,this.CLOSED);const i=new X(&quot;error&quot;,{code:e,message:t});(s=n(this,k))==null||s.call(this,i),this.dispatchEvent(i)},J=function(t,e){var s;if(n(this,p)===this.CLOSED)return;o(this,p,this.CONNECTING);const i=new X(&quot;error&quot;,{code:e,message:t});(s=n(this,k))==null||s.call(this,i),this.dispatchEvent(i),o(this,b,setTimeout(n(this,K),n(this,L)))},K=new WeakMap,G.CONNECTING=0,G.OPEN=1,G.CLOSED=2;function it(){const t=&quot;document&quot;in globalThis?globalThis.document:void 0;return t&amp;&amp;typeof t==&quot;object&quot;&amp;&amp;&quot;baseURI&quot;in t&amp;&amp;typeof t.baseURI==&quot;string&quot;?t.baseURI:void 0}export{X as ErrorEvent,G as EventSource};
">
<input type="hidden" name="project[description]" value="generated by https://pkg.pr.new">
<input type="hidden" name="project[template]" value="node">
<input type="hidden" name="project[title]" value="example-database">
</form>
<script>document.getElementById("mainForm").submit();</script>

</body></html>