73 lines
No EOL
72 KiB
HTML
73 lines
No EOL
72 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Fractured Symmetry in Motion — exploration</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { background: #0a0a0f; color: #3a3a4a; font-family: ui-monospace, monospace; overflow: hidden; }
|
|
#grid { padding: 20px; font-size: 12px; line-height: 1.4; white-space: pre; }
|
|
.c { display: inline-block; transition: all 0.3s; }
|
|
.c.active { color: #fde68a; text-shadow: 0 0 6px rgba(253,230,138,0.5); }
|
|
.c.strong { color: #34d399; text-shadow: 0 0 10px rgba(52,211,153,0.6); font-weight: bold; }
|
|
.c.dead { color: #1a1a2a; }
|
|
#info { position: fixed; bottom: 10px; left: 20px; color: #3a3a4a; font-size: 11px; }
|
|
#controls { position: fixed; top: 10px; right: 20px; color: #666; font-size: 11px; }
|
|
#controls span { cursor: pointer; margin-left: 12px; color: #fde68a; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="grid"></div>
|
|
<div id="info">neurameba · physarum exploration</div>
|
|
<div id="controls"><span id="play-btn">play</span><span id="reset-btn">reset</span></div>
|
|
<script>
|
|
const text = "# API Reference\n\nmotd is API-first. Every feature is an endpoint. Build clients, bots, integrations — whatever you want.\n\n## Base URL\n\n```\nhttps://motd.social/api\n```\n\nLocal dev: `http://localhost:3006/api`\n\n## Response Format\n\nEvery endpoint returns the same envelope:\n\n**Success:**\n```json\n{ \"ok\": true, \"data\": { ... } }\n```\n\n**Error:**\n```json\n{ \"ok\": false, \"error\": \"Something went wrong.\" }\n```\n\nHTTP status codes are standard: 200 success, 400 bad request, 401 unauthorized, 404 not found, 409 conflict.\n\n## Authentication\n\nMost endpoints require authentication. Get a token by registering or logging in, then send it as a Bearer token or let the browser handle it via cookies.\n\n**Header auth (for scripts and clients):**\n```\nAuthorization: Bearer <token>\n```\n\n**Cookie auth (for the web client):**\nThe login endpoints set an `motd_session` httpOnly cookie automatically.\n\nSessions expire after 7 days. Use `/login-permanently` in the web client to persist across tabs (stored in localStorage instead of sessionStorage — the token is the same).\n\n---\n\n## Auth\n\n### POST /api/auth/register\n\nCreate a new account.\n\n**Auth:** none\n\n**Body:**\n```json\n{ \"username\": \"alice\", \"password\": \"hunter2pwd\" }\n```\n\n**Rules:**\n- Username: 3-20 characters, letters, numbers, underscore only\n- Password: minimum 8 characters\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"token\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"user\": {\n \"username\": \"alice\",\n \"display_name\": \"alice\"\n }\n }\n}\n```\n\n**Errors:**\n- `400` — username or password missing, invalid format\n- `409` — username taken\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/auth/register \\\n -H \"Content-Type: application/json\" \\\n -d '{\"username\":\"alice\",\"password\":\"hunter2pwd\"}'\n```\n\n### POST /api/auth/login\n\nLog in to an existing account.\n\n**Auth:** none\n\n**Body:**\n```json\n{ \"username\": \"alice\", \"password\": \"hunter2pwd\" }\n```\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"token\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"user\": {\n \"username\": \"alice\",\n \"display_name\": \"Alice\"\n }\n }\n}\n```\n\n**Errors:**\n- `400` — missing fields\n- `401` — invalid username or password\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/auth/login \\\n -H \"Content-Type: application/json\" \\\n -d '{\"username\":\"alice\",\"password\":\"hunter2pwd\"}'\n```\n\n### GET /api/auth/me\n\nGet the current authenticated user.\n\n**Auth:** required\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"user\": {\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"bio\": \"building things\",\n \"created_at\": \"2026-03-15T10:30:00.000Z\"\n }\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/auth/me \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### POST /api/auth/logout\n\nEnd the current session.\n\n**Auth:** required\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Logged out.\" } }\n```\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/auth/logout \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n---\n\n## Profile\n\n### GET /api/profile/:username\n\nView a user's profile.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"bio\": \"building things\",\n \"created_at\": \"2026-03-15T10:30:00.000Z\",\n \"posts\": 42,\n \"avatar\": [\n \"████ ████\",\n \" ████████ \",\n \"████████████\",\n \" ████████ \",\n \"██ ████ ██\"\n ]\n }\n}\n```\n\n**Errors:**\n- `404` — user not found\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/profile/alice\n```\n\n### PUT /api/profile\n\nUpdate your display name and/or bio.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"display_name\": \"Alice W.\", \"bio\": \"shipping code\" }\n```\n\nBoth fields are optional. Send only what you want to change.\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"username\": \"alice\",\n \"display_name\": \"Alice W.\",\n \"bio\": \"shipping code\",\n \"created_at\": \"2026-03-15T10:30:00.000Z\"\n }\n}\n```\n\n**Errors:**\n- `400` — nothing to update\n\n**Example:**\n```bash\ncurl -X PUT http://localhost:3006/api/profile \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"bio\":\"shipping code\"}'\n```\n\n### GET /api/profile/search?q=\n\nSearch users by username or display name.\n\n**Auth:** none\n\n**Params:**\n- `q` — search query (required, min 1 character)\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"users\": [\n { \"username\": \"alice\", \"display_name\": \"Alice\", \"bio\": \"building things\" },\n { \"username\": \"alice2\", \"display_name\": \"Alice Too\", \"bio\": null }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl \"http://localhost:3006/api/profile/search?q=alice\"\n```\n\n---\n\n## Posts\n\n### POST /api/posts\n\nPublish a post.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"content\": \"just shipped the wasm compiler [rust] [wasm]\" }\n```\n\n**Optional fields:**\n- `reply_to` — post ID to reply to\n\n**Inline commands:**\n- `/attach <media_id>` — attach previously uploaded media to the post. The `/attach` command is stripped from the displayed content.\n\n**Rules:**\n- Content: 1-500 characters\n- Tags use [brackets]: `[rust]`, `[music]`, `[coding]`\n- Tags are auto-extracted and stored\n- New tags are auto-assigned to the \"general\" category\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"reply_to\": null,\n \"tags\": [\"rust\", \"wasm\"],\n \"media_id\": null,\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\"\n }\n}\n```\n\n**Errors:**\n- `400` — empty content, too long, media not found/not yours\n- `404` — reply_to post not found\n\n**Examples:**\n\nSimple post:\n```bash\ncurl -X POST http://localhost:3006/api/posts \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"content\":\"just shipped the wasm compiler [rust] [wasm]\"}'\n```\n\nReply to a post:\n```bash\ncurl -X POST http://localhost:3006/api/posts \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"content\":\"nice work!\",\"reply_to\":\"a3kf9x\"}'\n```\n\nPost with media attachment:\n```bash\ncurl -X POST http://localhost:3006/api/posts \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"content\":\"screenshot of the new UI /attach x7km2p [showcase]\"}'\n```\n\n### GET /api/posts/feed\n\nGet the chronological feed. Public — works without auth. Authenticated users get kill-filtered results; guests get unfiltered posts (still subject to system-level filter_score suppression).\n\n**Auth:** optional\n\n**Params:**\n- `limit` — max posts to return (default 50, max 100)\n- `offset` — pagination offset (default 0)\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"posts\": [\n {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"reply_to\": null,\n \"tags\": [\"rust\", \"wasm\"],\n \"media_id\": null,\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\"\n }\n ]\n }\n}\n```\n\n**Examples:**\n```bash\n# Guest (unfiltered)\ncurl \"http://localhost:3006/api/posts/feed?limit=20\"\n\n# Authenticated (kill-filtered)\ncurl \"http://localhost:3006/api/posts/feed?limit=20\" \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### GET /api/posts/:id\n\nGet a single post by ID.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"reply_to\": null,\n \"tags\": [\"rust\", \"wasm\"],\n \"media_id\": null,\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\"\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/posts/a3kf9x\n```\n\n### GET /api/posts/:id/thread\n\nGet a post and all its replies.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"post\": {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"reply_to\": null,\n \"tags\": [\"rust\", \"wasm\"],\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\"\n },\n \"replies\": [\n {\n \"id\": \"b7xm2k\",\n \"content\": \"nice work!\",\n \"reply_to\": \"a3kf9x\",\n \"tags\": [],\n \"username\": \"bob\",\n \"display_name\": \"Bob\",\n \"created_at\": \"2026-03-22T14:05:00.000Z\"\n }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/posts/a3kf9x/thread\n```\n\n### GET /api/posts/search\n\nSearch posts by content. Searches active posts by default, or archived posts with the `archive` flag.\n\n**Auth:** none\n\n**Params:**\n- `q` — search query (required)\n- `archive` — set to `true` to search archived posts instead\n\n**Response (active):**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"posts\": [\n {\n \"id\": \"a3kf9x\",\n \"content\": \"just shipped the wasm compiler [rust] [wasm]\",\n \"tags\": [\"rust\", \"wasm\"],\n \"media_id\": null,\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2026-03-22T14:00:00.000Z\",\n \"archived\": false\n }\n ]\n }\n}\n```\n\n**Response (archive):**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"posts\": [\n {\n \"id\": \"b7xm2k\",\n \"content\": \"old post about [rust]\",\n \"tags\": [\"rust\"],\n \"username\": \"alice\",\n \"display_name\": \"Alice\",\n \"created_at\": \"2025-12-01T08:00:00.000Z\",\n \"archived\": true\n }\n ]\n }\n}\n```\n\n**Examples:**\n```bash\n# Search active posts\ncurl \"http://localhost:3006/api/posts/search?q=rust\"\n\n# Search archived posts\ncurl \"http://localhost:3006/api/posts/search?q=rust&archive=true\"\n```\n\n---\n\n## Filter (Kill)\n\nThe `/kill` command maps to the filter API. The word \"kill\" never appears in the database or API.\n\n### POST /api/filter\n\nAdd a filter. Hides a user or post from your feed.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"target_type\": \"user\", \"target_id\": \"bob\" }\n```\n\n- `target_type` — `\"user\"` or `\"post\"`\n- `target_id` — username (for users) or post ID (for posts)\n\nFiltering a user also increments their hidden `filter_score`. Users filtered by enough people get suppressed from everyone's feed silently (threshold: ~5 active filters, with 7-day half-life decay).\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Filtered.\" } }\n```\n\n**Errors:**\n- `400` — missing fields, invalid type, can't filter yourself\n- `404` — user not found\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/filter \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"user\",\"target_id\":\"spammer\"}'\n```\n\n### GET /api/filter\n\nGet your current filter list.\n\n**Auth:** required\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"filters\": [\n { \"type\": \"user\", \"id\": \"uuid-of-filtered-user\" },\n { \"type\": \"post\", \"id\": \"b7xm2k\" }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/filter \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n---\n\n## Media\n\nSupported formats: PNG (max 5MB), MP3 (max 10MB), MP4 (max 25MB).\n\nPNG uploads are processed into multiple variants: original (downscaled to max 1MB), thumbnail (80px wide), large (800px wide), and ASCII art.\n\n### POST /api/media/upload\n\nUpload a file.\n\n**Auth:** required\n\n**Body:** multipart/form-data with `file` field\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"media_id\": \"x7km2p\",\n \"type\": \"png\"\n }\n}\n```\n\n**Errors:**\n- `400` — no file, unsupported type, file too large\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/media/upload \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -F \"file=@screenshot.png\"\n```\n\n### GET /api/media/:id\n\nServe the original file.\n\n**Auth:** none\n\n**Response:** raw file with appropriate Content-Type header (`image/png`, `audio/mpeg`, `video/mp4`)\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/media/x7km2p -o image.png\n```\n\n### GET /api/media/:id/thumb\n\nServe the thumbnail (PNG only, max 80px wide).\n\n**Auth:** none\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/media/x7km2p/thumb -o thumb.png\n```\n\n### GET /api/media/:id/large\n\nServe the large version (PNG only, max 800px wide).\n\n**Auth:** none\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/media/x7km2p/large -o large.png\n```\n\n### GET /api/media/:id/ascii\n\nGet the ASCII art representation (PNG only).\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"ascii\": \" @@@@ \\n @ @ \\n @ @ \\n @@@@ \\n\"\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/media/x7km2p/ascii\n```\n\n---\n\n## Avatar\n\n### POST /api/avatar\n\nUpload a profile picture. PNG only, max 5MB. Processes into thumb, large, and ASCII art versions. Sets as your avatar immediately.\n\n**Auth:** required\n\n**Body:** multipart/form-data with `file` field\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"avatar_id\": \"x7km2p\" } }\n```\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/avatar \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -F \"file=@photo.png\"\n```\n\n### GET /api/avatar/:username\n\nGet a user's avatar image (large version, 800px max).\n\n**Auth:** none\n\n**Response:** raw PNG with `Content-Type: image/png`\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/avatar/alice -o avatar.png\n```\n\nReturns 404 if the user has no uploaded avatar.\n\n---\n\n## Bookmarks\n\nBookmarks are private. Nobody sees your bookmarks. No counts, no notifications. One concept for everything: users, tags, posts, docs.\n\n### POST /api/bookmarks\n\nAdd a bookmark.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"target_type\": \"user\", \"target_id\": \"alice\" }\n```\n\n- `target_type` — `\"user\"`, `\"tag\"`, `\"post\"`, or `\"doc\"`\n- `target_id` — username, tag name, post ID, or doc name\n\nBookmarking the same thing twice is a no-op, not an error.\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Bookmarked.\" } }\n```\n\n**Errors:**\n- `400` — missing fields, invalid type\n\n**Example:**\n```bash\n# Bookmark a user\ncurl -X POST http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"user\",\"target_id\":\"alice\"}'\n\n# Bookmark a tag\ncurl -X POST http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"tag\",\"target_id\":\"rust\"}'\n\n# Bookmark a post\ncurl -X POST http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"post\",\"target_id\":\"a3kf9x\"}'\n\n# Bookmark a doc\ncurl -X POST http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"doc\",\"target_id\":\"api\"}'\n```\n\n### DELETE /api/bookmarks\n\nRemove a bookmark.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"target_type\": \"user\", \"target_id\": \"alice\" }\n```\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Unbookmarked.\" } }\n```\n\n**Example:**\n```bash\ncurl -X DELETE http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"target_type\":\"user\",\"target_id\":\"alice\"}'\n```\n\n### GET /api/bookmarks\n\nList your bookmarks. Optionally filter by type.\n\n**Auth:** required\n\n**Params:**\n- `type` — optional: `user`, `tag`, `post`, or `doc`\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"bookmarks\": [\n { \"type\": \"user\", \"id\": \"alice\" },\n { \"type\": \"tag\", \"id\": \"rust\" },\n {\n \"type\": \"post\",\n \"id\": \"a3kf9x\",\n \"preview\": \"just shipped the wasm compiler...\",\n \"username\": \"alice\"\n },\n {\n \"type\": \"post\",\n \"id\": \"old123\",\n \"preview\": \"this was archived...\",\n \"archived\": true\n },\n {\n \"type\": \"post\",\n \"id\": \"gone99\",\n \"expired\": true\n },\n { \"type\": \"doc\", \"id\": \"api\" }\n ]\n }\n}\n```\n\nPost bookmarks are enriched with a content preview (60 chars), the author's username, and status flags (`archived`, `expired`) when applicable.\n\n**Examples:**\n```bash\n# All bookmarks\ncurl http://localhost:3006/api/bookmarks \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n\n# Only bookmarked tags\ncurl \"http://localhost:3006/api/bookmarks?type=tag\" \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n---\n\n## Docs\n\n### GET /api/docs\n\nList all available documentation files.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"docs\": [\n { \"name\": \"about\", \"path\": \"docs/about.md\" },\n { \"name\": \"api\", \"path\": \"docs/api.md\" },\n { \"name\": \"commands\", \"path\": \"docs/commands.md\" },\n { \"name\": \"changelog\", \"path\": \"docs/changelog.md\" }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/docs\n```\n\n### GET /api/docs/:name\n\nGet the contents of a specific document. The `.md` extension is optional.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"name\": \"api\",\n \"content\": \"# API Reference\\n\\n...\"\n }\n}\n```\n\n**Errors:**\n- `400` — path traversal attempt\n- `404` — document not found\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/docs/api\n```\n\n---\n\n## Categories\n\n### GET /api/categories\n\nGet the category tree with tags. Used by `/tree -cat` in the client.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"categories\": [\n {\n \"id\": \"coding\",\n \"name\": \"coding\",\n \"tags\": [\"rust\", \"python\", \"wasm\", \"js\", \"frontend\", \"backend\"]\n },\n {\n \"id\": \"creative\",\n \"name\": \"creative\",\n \"tags\": [\"music\", \"art\", \"writing\", \"gamedev\"]\n },\n {\n \"id\": \"meta\",\n \"name\": \"meta\",\n \"tags\": [\"motd\", \"bugs\", \"ideas\", \"feedback\"]\n },\n {\n \"id\": \"general\",\n \"name\": \"general\",\n \"tags\": [\"offtopic\", \"introductions\", \"showcase\"]\n }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/categories\n```\n\n---\n\n## Commands\n\n### GET /api/commands\n\nGet the full command list grouped by category. Used by `/help` and `/menu` in the client.\n\n**Auth:** none\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"categories\": [\n {\n \"name\": \"General\",\n \"commands\": [\n { \"command\": \"/help\", \"description\": \"Show all available commands\" },\n { \"command\": \"/menu\", \"description\": \"Toggle the command menu\" },\n { \"command\": \"/clear\", \"description\": \"Clear the terminal\" },\n { \"command\": \"/read [path]\", \"description\": \"Read a document\" },\n { \"command\": \"/tree -cat\", \"description\": \"Browse categories and tags\" },\n { \"command\": \"/link [target]\", \"description\": \"Navigate to user, tag, post, or doc\" }\n ]\n }\n ]\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/commands\n```\n\n---\n\n## Telegram Connect\n\n### POST /api/connect/telegram\n\nGenerate a Telegram deep link to connect your account.\n\n**Auth:** required\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"link\": \"https://t.me/motdsocial_bot?start=alice_a8f3k2\",\n \"expires_in\": 600\n }\n}\n```\n\nIf already connected:\n```json\n{\n \"ok\": true,\n \"data\": {\n \"already_connected\": true,\n \"message\": \"Telegram already connected.\"\n }\n}\n```\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/connect/telegram \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### DELETE /api/connect/telegram\n\nDisconnect your Telegram account.\n\n**Auth:** required\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Telegram disconnected.\" } }\n```\n\n**Example:**\n```bash\ncurl -X DELETE http://localhost:3006/api/connect/telegram \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### POST /api/connect/email\n\nSend a verification email to connect your email address.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"email\": \"you@gmail.com\" }\n```\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"message\": \"Verification email sent to you@gmail.com\",\n \"tip\": \"Tip: add noreply@motd.social to your contacts so notifications don't go to spam.\"\n }\n}\n```\n\n**Example:**\n```bash\ncurl -X POST http://localhost:3006/api/connect/email \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"email\":\"you@gmail.com\"}'\n```\n\n### GET /api/connect/email/verify\n\nVerify email address from link in verification email.\n\n**Auth:** none (link from email)\n\n**Params:**\n- `code` — verification code from the email link\n\nReturns an HTML confirmation page on success.\n\n### DELETE /api/connect/email\n\nDisconnect your email address.\n\n**Auth:** required\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Email disconnected.\" } }\n```\n\n**Example:**\n```bash\ncurl -X DELETE http://localhost:3006/api/connect/email \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n### GET /api/connect/status\n\nCheck your Telegram and email connection status and notification settings.\n\n**Auth:** required\n\n**Response:**\n```json\n{\n \"ok\": true,\n \"data\": {\n \"telegram\": {\n \"connected\": true,\n \"username\": \"alice_tg\",\n \"notify\": true,\n \"notify_bookmarks\": true,\n \"notify_mentions\": true\n },\n \"email\": {\n \"connected\": true,\n \"address\": \"alice@gmail.com\",\n \"notify\": true,\n \"notify_bookmarks\": true,\n \"notify_mentions\": true\n }\n }\n}\n```\n\n**Example:**\n```bash\ncurl http://localhost:3006/api/connect/status \\\n -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\n---\n\n## Account\n\n### DELETE /api/account\n\nPermanently delete your account. This is irreversible. Deletes all posts, media, sessions, and user data.\n\n**Auth:** required\n\n**Body:**\n```json\n{ \"confirm_username\": \"alice\" }\n```\n\nThe `confirm_username` must match your actual username.\n\n**Response:**\n```json\n{ \"ok\": true, \"data\": { \"message\": \"Account terminated.\" } }\n```\n\n**Errors:**\n- `400` — username confirmation doesn't match\n\n**Example:**\n```bash\ncurl -X DELETE http://localhost:3006/api/account \\\n -H \"Authorization: Bearer YOUR_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"confirm_username\":\"alice\"}'\n```\n";
|
|
const passes = [{"t":0,"r":933,"c":2,"a":"hold","s":0.2711792880795781,"ps":9,"e":100.81943430463663,"pr":1.1},{"t":0,"r":1068,"c":36,"a":"extend","s":0.42489483628409375,"ps":9,"e":71.43441108319092,"pr":1.1},{"t":0,"r":167,"c":0,"a":"died","s":0,"ps":8,"e":100,"pr":1},{"t":0,"r":796,"c":15,"a":"extend","s":0.39025763346713643,"ps":9,"e":71.24044274741597,"pr":1.1},{"t":1,"r":933,"c":2,"a":"hold","s":0.21390706611306032,"ps":9,"e":101.1806908335411,"pr":1.1},{"t":1,"r":1068,"c":36,"a":"extend","s":0.42260577188165505,"ps":8,"e":51.53068008077091,"pr":1.05},{"t":1,"r":796,"c":15,"a":"extend","s":0.36570689118235106,"ps":9,"e":50.97126851381234,"pr":1.1},{"t":1,"r":1068,"c":35,"a":"hold","s":0.08675125748440939,"ps":5,"e":30.5587576669571,"pr":1.2000000000000002},{"t":1,"r":796,"c":14,"a":"hold","s":0.14998290719198637,"ps":5,"e":30.98148157785702,"pr":1.2000000000000002},{"t":2,"r":933,"c":2,"a":"retracted","s":0.21390706611306032,"ps":8,"e":101.69194736244559,"pr":1.05},{"t":2,"r":1068,"c":36,"a":"extend","s":0.42489483628409375,"ps":7,"e":37.71588713973056,"pr":1},{"t":2,"r":796,"c":15,"a":"extend","s":0.36570689118235106,"ps":8,"e":36.8878465502898,"pr":1.05},{"t":2,"r":1068,"c":35,"a":"hold","s":0.1364473605185184,"ps":5,"e":30.900336551105248,"pr":1.2000000000000002},{"t":2,"r":796,"c":14,"a":"hold","s":0.14407649092049987,"ps":5,"e":31.38409350522102,"pr":1.2000000000000002},{"t":3,"r":1068,"c":36,"a":"extend","s":0.401124774909063,"ps":7,"e":27.912419737302145,"pr":1},{"t":3,"r":796,"c":15,"a":"extend","s":0.39025763346713643,"ps":8,"e":27.166935332618824,"pr":1.05},{"t":3,"r":1068,"c":35,"a":"retracted","s":0.1364473605185184,"ps":4,"e":31.391915435253395,"pr":1.1500000000000001},{"t":3,"r":796,"c":14,"a":"retracted","s":0.14407649092049987,"ps":4,"e":31.93670543258502,"pr":1.1500000000000001},{"t":3,"r":1068,"c":37,"a":"hold","s":0.207724241909386,"ps":5,"e":17.075745566588186,"pr":1.1},{"t":3,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":5,"e":13.037668019790031,"pr":1.1500000000000001},{"t":4,"r":1068,"c":36,"a":"extend","s":0.401124774909063,"ps":6,"e":21.154992555602252,"pr":0.95},{"t":4,"r":796,"c":15,"a":"hold","s":0.39025763346713643,"ps":7,"e":29.238996400355916,"pr":1},{"t":4,"r":1068,"c":37,"a":"hold","s":0.17182455268974023,"ps":4,"e":17.85034198810611,"pr":1.05},{"t":4,"r":796,"c":16,"a":"extend","s":0.45468046226452974,"ps":4,"e":11.252578202534387,"pr":1.1},{"t":5,"r":1068,"c":36,"a":"hold","s":0.3474974071802458,"ps":6,"e":23.03497181304422,"pr":0.95},{"t":5,"r":796,"c":15,"a":"hold","s":0.35341541997033077,"ps":6,"e":31.16631976011856,"pr":0.95},{"t":5,"r":1068,"c":37,"a":"retracted","s":0.207724241909386,"ps":4,"e":18.912135923381197,"pr":1},{"t":5,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":9.953118796477163,"pr":1.05},{"t":5,"r":1068,"c":35,"a":"hold","s":0.2148480701022672,"ps":5,"e":10.035209941790532,"pr":1.05},{"t":6,"r":1068,"c":36,"a":"hold","s":0.3474974071802458,"ps":5,"e":25.064951070486185,"pr":0.8999999999999999},{"t":6,"r":796,"c":15,"a":"retracted","s":0.3509964917912594,"ps":5,"e":33.22429169444864,"pr":0.8999999999999999},{"t":6,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":9.043497212237106,"pr":1},{"t":6,"r":1068,"c":35,"a":"hold","s":0.20637317707007255,"ps":5,"e":10.936195358351112,"pr":1.05},{"t":6,"r":796,"c":17,"a":"hold","s":0.3109132197826185,"ps":5,"e":6.002928099608303,"pr":1.1500000000000001},{"t":7,"r":1068,"c":36,"a":"retracted","s":0.3205297295326896,"ps":5,"e":26.8791889067477,"pr":0.8999999999999999},{"t":7,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":8.406762103269067,"pr":0.95},{"t":7,"r":1068,"c":35,"a":"retracted","s":0.20637317707007255,"ps":4,"e":11.987180774911693,"pr":1},{"t":7,"r":796,"c":17,"a":"hold","s":0.25161947428047354,"ps":5,"e":7.2658838938520915,"pr":1.1500000000000001},{"t":8,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":7.961047526991439,"pr":0.8999999999999999},{"t":8,"r":796,"c":17,"a":"retracted","s":0.25161947428047354,"ps":4,"e":8.67883968809588,"pr":1.1},{"t":8,"r":796,"c":15,"a":"hold","s":0.20611234413958246,"ps":5,"e":4.501796797374832,"pr":1.05},{"t":9,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":7.649047323597099,"pr":0.8499999999999999},{"t":9,"r":796,"c":15,"a":"hold","s":0.22563984883929045,"ps":5,"e":5.556915588089155,"pr":1.05},{"t":10,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":7.430647181221061,"pr":0.7999999999999998},{"t":10,"r":796,"c":15,"a":"retracted","s":0.22563984883929045,"ps":4,"e":6.762034378803479,"pr":1},{"t":10,"r":796,"c":17,"a":"hold","s":0.17925696299022936,"ps":5,"e":3.9622188426063056,"pr":0.9499999999999998},{"t":12,"r":796,"c":17,"a":"hold","s":0.2490999891913466,"ps":6,"e":4.961202898041344,"pr":1.0499999999999998},{"t":12,"r":796,"c":18,"a":"extend","s":0.30765780292690253,"ps":5,"e":2.358404591743825,"pr":1.15},{"t":14,"r":796,"c":18,"a":"extend","s":0.3433682368386382,"ps":4,"e":3.6369838646583097,"pr":1.0999999999999999},{"t":16,"r":796,"c":18,"a":"extend","s":0.30765780292690253,"ps":4,"e":3.9970243775466834,"pr":1.0499999999999998},{"t":17,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.96301462764929,"pr":0.4499999999999996},{"t":17,"r":796,"c":17,"a":"hold","s":0.15236579499475283,"ps":5,"e":5.42569967921556,"pr":1.0499999999999998},{"t":18,"r":796,"c":18,"a":"extend","s":0.30765780292690253,"ps":4,"e":4.173444228861986,"pr":0.9499999999999997},{"t":19,"r":796,"c":15,"a":"hold","s":0.18916998290991574,"ps":5,"e":4.598965085408395,"pr":0.6999999999999995},{"t":20,"r":796,"c":15,"a":"retracted","s":0.2418411853317725,"ps":5,"e":5.783694568062575,"pr":0.6999999999999995},{"t":20,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":5,"e":3.8725828741369086,"pr":0.4499999999999996},{"t":22,"r":796,"c":17,"a":"extend","s":0.39122445946439205,"ps":4,"e":4.8345224624280965,"pr":0.39999999999999963},{"t":22,"r":796,"c":15,"a":"hold","s":0.09127778043785909,"ps":5,"e":2.9507036632149557,"pr":0.4},{"t":23,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":5.279265279673553,"pr":0.39999999999999963},{"t":24,"r":796,"c":19,"a":"retracted","s":0.163166653377868,"ps":4,"e":4.729691262941312,"pr":0.8499999999999995},{"t":26,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.922740400256166,"pr":0.3},{"t":27,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.922232334882408,"pr":0.3},{"t":34,"r":796,"c":15,"a":"retracted","s":0.22600356624663714,"ps":5,"e":5.036853416263975,"pr":0.45},{"t":35,"r":796,"c":18,"a":"extend","s":0.3284111972498816,"ps":4,"e":4.415772297929775,"pr":0.35000000000000003},{"t":35,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":5,"e":3.0173200683281602,"pr":0.45000000000000007},{"t":36,"r":796,"c":20,"a":"extend","s":0.2723359100368368,"ps":5,"e":1.9052771167047342,"pr":0.55},{"t":37,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921080336051995,"pr":0.3},{"t":38,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921070289939488,"pr":0.3},{"t":40,"r":796,"c":18,"a":"extend","s":0.3284111972498816,"ps":4,"e":4.677472560237478,"pr":0.3},{"t":40,"r":796,"c":20,"a":"extend","s":0.2723359100368368,"ps":4,"e":3.0346345730459343,"pr":0.45},{"t":41,"r":796,"c":20,"a":"hold","s":0.2723359100368368,"ps":4,"e":4.613321853340629,"pr":0.4},{"t":42,"r":796,"c":20,"a":"hold","s":0.2723359100368368,"ps":4,"e":6.192009133635324,"pr":0.35000000000000003},{"t":43,"r":796,"c":18,"a":"hold","s":0.3284111972498816,"ps":4,"e":6.731725730334289,"pr":0.3},{"t":45,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921048779471619,"pr":0.3},{"t":46,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921048200333225,"pr":0.3},{"t":47,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316799709700941,"pr":0.3},{"t":47,"r":796,"c":20,"a":"hold","s":0.38784642768302957,"ps":5,"e":5.965971005766498,"pr":0.4},{"t":47,"r":796,"c":18,"a":"hold","s":0.26204229220046354,"ps":5,"e":3.933898967362186,"pr":0.4},{"t":49,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.096203512486661,"pr":0.3},{"t":49,"r":796,"c":18,"a":"retracted","s":0.33787954681138516,"ps":4,"e":9.289489210521518,"pr":0.30000000000000004},{"t":50,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921047173462938,"pr":0.3},{"t":50,"r":796,"c":15,"a":"hold","s":0.2648106676393727,"ps":5,"e":4.3346484750495815,"pr":0.4},{"t":52,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.3169651058806195,"pr":0.3},{"t":52,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.116290293252884,"pr":0.3},{"t":53,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.119436305034992,"pr":0.3},{"t":53,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":5,"e":4.0520710758569605,"pr":0.4},{"t":54,"r":796,"c":22,"a":"hold","s":0.12408870664750454,"ps":5,"e":1.9793115428330195,"pr":0.5},{"t":55,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046903541061,"pr":0.3},{"t":55,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316987058899862,"pr":0.3},{"t":55,"r":796,"c":18,"a":"extend","s":0.29287417139417515,"ps":4,"e":4.4261276472619455,"pr":0.30000000000000004},{"t":55,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":5.5873142780851826,"pr":0.30000000000000004},{"t":55,"r":796,"c":15,"a":"hold","s":0.21967010916607965,"ps":4,"e":4.779880107664175,"pr":0.35000000000000003},{"t":58,"r":796,"c":18,"a":"extend","s":0.29287417139417515,"ps":4,"e":4.190170620989011,"pr":0.3},{"t":58,"r":796,"c":23,"a":"extend","s":0.2710980788423285,"ps":5,"e":1.714998350886522,"pr":0.7499999999999999},{"t":59,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.9210468621031405,"pr":0.3},{"t":61,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.414654653048902,"pr":0.3},{"t":61,"r":796,"c":18,"a":"extend","s":0.29287417139417515,"ps":4,"e":4.109237360977394,"pr":0.3},{"t":62,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.40862568300286,"pr":0.3},{"t":62,"r":796,"c":15,"a":"extend","s":0.3183052978361356,"ps":4,"e":4.372320992048902,"pr":0.35000000000000003},{"t":63,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046852153895,"pr":0.3},{"t":63,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126569642752224,"pr":0.3},{"t":64,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.908766133466358,"pr":0.3},{"t":64,"r":796,"c":24,"a":"hold","s":0.2802492917466796,"ps":4,"e":6.057441495212642,"pr":0.5999999999999996},{"t":65,"r":796,"c":24,"a":"retracted","s":0.2802492917466796,"ps":4,"e":7.699435829186079,"pr":0.5499999999999996},{"t":65,"r":796,"c":22,"a":"retracted","s":0.09030800872805814,"ps":4,"e":3.295783794104012,"pr":0.30000000000000004},{"t":65,"r":796,"c":14,"a":"retracted","s":0.2552764652848951,"ps":4,"e":5.921873699095318,"pr":0.4000000000000001},{"t":66,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.937105663638646,"pr":0.3},{"t":68,"r":796,"c":18,"a":"hold","s":0.29665895557046296,"ps":4,"e":6.098274006271154,"pr":0.35000000000000003},{"t":71,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126765045507057,"pr":0.3},{"t":72,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.3169984932511385,"pr":0.3},{"t":73,"r":796,"c":22,"a":"hold","s":0.11145375966603774,"ps":5,"e":3.2129339576300753,"pr":0.4},{"t":75,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126774129113189,"pr":0.3},{"t":75,"r":796,"c":15,"a":"retracted","s":0.24264182106567478,"ps":4,"e":6.834160269434529,"pr":0.30000000000000004},{"t":76,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126774990137205,"pr":0.3},{"t":76,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.9635647111056365,"pr":0.3},{"t":76,"r":796,"c":22,"a":"hold","s":0.15055996426380136,"ps":5,"e":3.4387233217836832,"pr":0.4},{"t":77,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849031627,"pr":0.3},{"t":77,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.3946248730097475,"pr":0.3},{"t":78,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998516776217,"pr":0.3},{"t":78,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776014755785,"pr":0.3},{"t":78,"r":796,"c":22,"a":"retracted","s":0.16707968574673754,"ps":4,"e":4.761998293731484,"pr":0.35000000000000003},{"t":79,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.3945908117514465,"pr":0.3},{"t":79,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964070028583284,"pr":0.3},{"t":79,"r":796,"c":15,"a":"extend","s":0.30467138617442796,"ps":4,"e":3.719165926151702,"pr":0.30000000000000004},{"t":80,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849017618,"pr":0.3},{"t":80,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":5.446065840847138,"pr":0.3},{"t":80,"r":796,"c":13,"a":"hold","s":0.17167328313094915,"ps":5,"e":1.6636895856977452,"pr":0.55},{"t":81,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964204572245939,"pr":0.3},{"t":82,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394569311083044,"pr":0.3},{"t":82,"r":796,"c":15,"a":"extend","s":0.30467138617442796,"ps":4,"e":4.0923637927132175,"pr":0.3},{"t":83,"r":796,"c":15,"a":"extend","s":0.30467138617442796,"ps":4,"e":4.150814417476049,"pr":0.3},{"t":84,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519543917,"pr":0.3},{"t":84,"r":796,"c":14,"a":"extend","s":0.34101026564356546,"ps":4,"e":4.540156195378586,"pr":0.3},{"t":85,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.9643028025740445,"pr":0.3},{"t":85,"r":796,"c":15,"a":"hold","s":0.30467138617442796,"ps":4,"e":7.825556596266896,"pr":0.3},{"t":86,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849011167,"pr":0.3},{"t":86,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519732124,"pr":0.3},{"t":86,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.96431211370779,"pr":0.3},{"t":87,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.12677695946764,"pr":0.3},{"t":87,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.9643186315014125,"pr":0.3},{"t":87,"r":796,"c":14,"a":"hold","s":0.34101026564356546,"ps":4,"e":8.923931074666022,"pr":0.3},{"t":88,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.12677697138532,"pr":0.3},{"t":89,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964326387675823,"pr":0.3},{"t":89,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.052053772418279,"pr":0.3},{"t":91,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010449,"pr":0.3},{"t":91,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.1267769896551245,"pr":0.3},{"t":91,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964330188201283,"pr":0.3},{"t":91,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.0650496399566,"pr":0.3},{"t":91,"r":796,"c":22,"a":"hold","s":0.17735674185307498,"ps":5,"e":4.1283372996498535,"pr":0.4},{"t":92,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558403303114,"pr":0.3},{"t":92,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964331283646858,"pr":0.3},{"t":92,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.068795507658822,"pr":0.3},{"t":93,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558308180809,"pr":0.3},{"t":95,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.074537922846329,"pr":0.3},{"t":96,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010329,"pr":0.3},{"t":96,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.075437305681634,"pr":0.3},{"t":97,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519909375,"pr":0.3},{"t":97,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558139519451,"pr":0.3},{"t":98,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010317,"pr":0.3},{"t":99,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558112341201,"pr":0.3},{"t":99,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333629185672,"pr":0.3},{"t":100,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.07703200138691,"pr":0.3},{"t":100,"r":796,"c":15,"a":"extend","s":0.25976283737821476,"ps":4,"e":3.590900353122266,"pr":0.3},{"t":101,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077183160660039,"pr":0.3},{"t":102,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999004642,"pr":0.3},{"t":102,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333767484736,"pr":0.3},{"t":102,"r":796,"c":22,"a":"hold","s":0.18154733797776867,"ps":5,"e":3.6870931623397682,"pr":0.4},{"t":103,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.39455809249836,"pr":0.3},{"t":103,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077363040195063,"pr":0.3},{"t":104,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":105,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999128553,"pr":0.3},{"t":107,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999161544,"pr":0.3},{"t":107,"r":796,"c":14,"a":"hold","s":0.3434363756260079,"ps":4,"e":6.538223961249666,"pr":0.30000000000000004},{"t":108,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.3169985199128815,"pr":0.3},{"t":108,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333831192062,"pr":0.3},{"t":108,"r":796,"c":13,"a":"retracted","s":0.16662896849166312,"ps":4,"e":3.5571429310141625,"pr":0.4000000000000001},{"t":109,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912903,"pr":0.3},{"t":110,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333835524241,"pr":0.3},{"t":112,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":112,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999187914,"pr":0.3},{"t":113,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086405864,"pr":0.3},{"t":114,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077532448307117,"pr":0.3},{"t":116,"r":796,"c":22,"a":"retracted","s":0.21105383956353624,"ps":4,"e":6.025373659430526,"pr":0.30000000000000004},{"t":117,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":117,"r":796,"c":15,"a":"hold","s":0.16543522891262374,"ps":4,"e":4.145013868257665,"pr":0.35000000000000003},{"t":118,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086258529,"pr":0.3},{"t":118,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839446582,"pr":0.3},{"t":119,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":119,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535291281104,"pr":0.3},{"t":120,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086243349,"pr":0.3},{"t":120,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.9643338395689565,"pr":0.3},{"t":120,"r":796,"c":22,"a":"hold","s":0.18182052807960059,"ps":5,"e":3.704544767620315,"pr":0.4},{"t":122,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193091,"pr":0.3},{"t":122,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.07753566862877,"pr":0.3},{"t":123,"r":796,"c":15,"a":"extend","s":0.31522500221036215,"ps":4,"e":3.6393550241203894,"pr":0.35000000000000003},{"t":124,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":125,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":125,"r":796,"c":13,"a":"hold","s":0.13643760175108577,"ps":5,"e":1.4250854604293384,"pr":0.55},{"t":126,"r":796,"c":14,"a":"hold","s":0.301057418112773,"ps":4,"e":4.739235808820778,"pr":0.4000000000000001},{"t":126,"r":796,"c":13,"a":"hold","s":0.1691051992298123,"ps":5,"e":2.0279270542678365,"pr":0.55},{"t":127,"r":796,"c":14,"a":"extend","s":0.3502781549545366,"ps":4,"e":4.85902273391995,"pr":0.4000000000000001},{"t":128,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086229605,"pr":0.3},{"t":128,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535842453596,"pr":0.3},{"t":128,"r":796,"c":14,"a":"hold","s":0.3502781549545366,"ps":4,"e":7.0612479735562435,"pr":0.3500000000000001},{"t":129,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":129,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535849406719,"pr":0.3},{"t":129,"r":796,"c":22,"a":"retracted","s":0.15067382252427786,"ps":4,"e":4.760741173624128,"pr":0.30000000000000004},{"t":131,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193236,"pr":0.3},{"t":132,"r":796,"c":15,"a":"retracted","s":0.32859127748268996,"ps":4,"e":8.917348120952026,"pr":0.30000000000000004},{"t":134,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":134,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":134,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228864,"pr":0.3},{"t":135,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":135,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535863721941,"pr":0.3},{"t":136,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":136,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":136,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535864294561,"pr":0.3},{"t":137,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686256,"pr":0.3},{"t":138,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686338,"pr":0.3},{"t":141,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":141,"r":796,"c":15,"a":"extend","s":0.2764279257713073,"ps":4,"e":3.3524979175860294,"pr":0.35000000000000003},{"t":142,"r":796,"c":15,"a":"extend","s":0.2726895690374158,"ps":4,"e":3.453810128919749,"pr":0.35000000000000003},{"t":144,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":144,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686509,"pr":0.3},{"t":144,"r":796,"c":23,"a":"retracted","s":0.18066409580359236,"ps":4,"e":3.7034319253155754,"pr":0.4000000000000001},{"t":145,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":145,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686515,"pr":0.3},{"t":145,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865576757,"pr":0.3},{"t":146,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":146,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865592933,"pr":0.3},{"t":146,"r":796,"c":14,"a":"hold","s":0.23633175791299474,"ps":5,"e":2.687420527115818,"pr":0.4},{"t":147,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":147,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":147,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686524,"pr":0.3},{"t":148,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":149,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":150,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":150,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":150,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":151,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":151,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":151,"r":796,"c":15,"a":"hold","s":0.12234483051400055,"ps":5,"e":3.194921579402136,"pr":0.4},{"t":151,"r":796,"c":22,"a":"hold","s":0.11947781297668099,"ps":5,"e":3.1905370065362457,"pr":0.4},{"t":152,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865626235,"pr":0.3},{"t":153,"r":796,"c":15,"a":"retracted","s":0.17853194205950904,"ps":4,"e":4.70143265235428,"pr":0.35000000000000003},{"t":153,"r":796,"c":22,"a":"retracted","s":0.09273734937174545,"ps":4,"e":3.3243345964841726,"pr":0.35000000000000003},{"t":154,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":156,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":156,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":157,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":157,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":158,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":158,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":158,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630152,"pr":0.3},{"t":159,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":160,"r":796,"c":22,"a":"hold","s":0.09095880232031824,"ps":5,"e":2.9623849212853437,"pr":0.4},{"t":161,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":161,"r":796,"c":15,"a":"extend","s":0.31139016222419535,"ps":5,"e":3.2950989631585856,"pr":0.4},{"t":162,"r":796,"c":22,"a":"retracted","s":0.07864561386635814,"ps":4,"e":2.870714743147074,"pr":0.35000000000000003},{"t":163,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":163,"r":796,"c":15,"a":"extend","s":0.29261195271704776,"ps":4,"e":3.6127642818140018,"pr":0.35000000000000003},{"t":165,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":165,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":165,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":165,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":165,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":165,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630631,"pr":0.3},{"t":165,"r":796,"c":15,"a":"extend","s":0.31139016222419535,"ps":4,"e":4.0206888424632,"pr":0.30000000000000004},{"t":166,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":166,"r":796,"c":15,"a":"extend","s":0.31139016222419535,"ps":4,"e":4.1382670981797345,"pr":0.3},{"t":167,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":167,"r":796,"c":15,"a":"extend","s":0.31139016222419535,"ps":4,"e":4.220571877181308,"pr":0.3},{"t":168,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":168,"r":796,"c":14,"a":"extend","s":0.34292793143211325,"ps":4,"e":4.536819756760707,"pr":0.4000000000000001},{"t":169,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":169,"r":796,"c":14,"a":"extend","s":0.34292793143211325,"ps":4,"e":4.676170245752329,"pr":0.3500000000000001},{"t":170,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":170,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":170,"r":796,"c":15,"a":"retracted","s":0.31139016222419535,"ps":4,"e":9.893935770561995,"pr":0.3},{"t":171,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":171,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630669,"pr":0.3},{"t":171,"r":796,"c":14,"a":"hold","s":0.34292793143211325,"ps":4,"e":8.96301714866614,"pr":0.3},{"t":175,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":175,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":175,"r":796,"c":22,"a":"hold","s":0.19412011299180365,"ps":5,"e":4.363987692313808,"pr":0.4},{"t":176,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":177,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":178,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":179,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":180,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":181,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":181,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":181,"r":796,"c":15,"a":"hold","s":0.15304916044354427,"ps":5,"e":3.4405562188384855,"pr":0.4},{"t":182,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":182,"r":796,"c":22,"a":"hold","s":0.15424900019302754,"ps":5,"e":3.7787385258709962,"pr":0.4},{"t":183,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":183,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":184,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":186,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":186,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":186,"r":796,"c":14,"a":"extend","s":0.23944703350739832,"ps":4,"e":3.8249513753375473,"pr":0.45},{"t":187,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":187,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":187,"r":796,"c":22,"a":"hold","s":0.19262317477529664,"ps":5,"e":4.510000682479382,"pr":0.4},{"t":188,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":188,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":190,"r":796,"c":15,"a":"hold","s":0.3144096250119756,"ps":4,"e":5.73466188313135,"pr":0.30000000000000004},{"t":191,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":191,"r":796,"c":15,"a":"hold","s":0.3144096250119756,"ps":4,"e":7.649938883227155,"pr":0.3},{"t":191,"r":796,"c":22,"a":"hold","s":0.08330807477889252,"ps":4,"e":2.9891281352536994,"pr":0.35000000000000003},{"t":192,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":193,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":194,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":194,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":195,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":195,"r":796,"c":15,"a":"hold","s":0.1851379117536715,"ps":5,"e":3.6972662293195033,"pr":0.4},{"t":196,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":196,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":198,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":199,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":200,"r":796,"c":22,"a":"hold","s":0.09785102650836515,"ps":5,"e":3.017522714789719,"pr":0.4},{"t":201,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":202,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":203,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":204,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":204,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":204,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":204,"r":796,"c":15,"a":"extend","s":0.2436202593217499,"ps":5,"e":2.9155875069048913,"pr":0.4},{"t":205,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":206,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":206,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":207,"r":796,"c":15,"a":"extend","s":0.2436202593217499,"ps":4,"e":4.031875751336986,"pr":0.35000000000000003},{"t":208,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":209,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":209,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":209,"r":796,"c":22,"a":"hold","s":0.16083989924981335,"ps":6,"e":3.5809609337539077,"pr":0.5},{"t":210,"r":796,"c":15,"a":"retracted","s":0.2436202593217499,"ps":4,"e":8.078761975058983,"pr":0.3},{"t":210,"r":796,"c":22,"a":"retracted","s":0.16782006983227524,"ps":5,"e":4.173521492412109,"pr":0.45},{"t":211,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":211,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":213,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":215,"r":796,"c":15,"a":"retracted","s":0.14475826672196765,"ps":4,"e":4.478909562902207,"pr":0.30000000000000004},{"t":216,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":216,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":217,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":218,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":219,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":219,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":219,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":219,"r":796,"c":22,"a":"hold","s":0.14478131672411423,"ps":5,"e":4.052061076210205,"pr":0.4},{"t":220,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":221,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":221,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":222,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":222,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":222,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":223,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":223,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":226,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":228,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":228,"r":796,"c":22,"a":"retracted","s":0.14697356373822879,"ps":4,"e":4.575750767043388,"pr":0.35000000000000003},{"t":229,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":229,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":230,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":230,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":231,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":232,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":232,"r":796,"c":15,"a":"hold","s":0.21843512755048894,"ps":5,"e":4.924755980634782,"pr":0.4},{"t":233,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":236,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":236,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":238,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":238,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":240,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":241,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":241,"r":796,"c":22,"a":"hold","s":0.16807478103769677,"ps":5,"e":3.5793127510243723,"pr":0.4},{"t":242,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":244,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":246,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":246,"r":796,"c":15,"a":"hold","s":0.17054014143144725,"ps":5,"e":3.5804840667417093,"pr":0.4},{"t":247,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":247,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":248,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":248,"r":796,"c":15,"a":"hold","s":0.21071436096841695,"ps":4,"e":4.247054155889667,"pr":0.35000000000000003},{"t":249,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":249,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":252,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":252,"r":796,"c":15,"a":"hold","s":0.23013354293534646,"ps":5,"e":4.057231278772903,"pr":0.4},{"t":253,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":254,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":254,"r":796,"c":15,"a":"retracted","s":0.24874623824206343,"ps":6,"e":5.789219935522912,"pr":0.5},{"t":255,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":256,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":256,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":257,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":257,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":258,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":258,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":260,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":260,"r":796,"c":22,"a":"retracted","s":0.07167709577046003,"ps":4,"e":2.852659373321697,"pr":0.35000000000000003},{"t":261,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":261,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":262,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":262,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":263,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":265,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":265,"r":796,"c":15,"a":"hold","s":0.21670441827320014,"ps":5,"e":3.9497982814757324,"pr":0.4},{"t":267,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":267,"r":796,"c":15,"a":"extend","s":0.2313767921562368,"ps":4,"e":3.350608219250483,"pr":0.35000000000000003},{"t":267,"r":796,"c":14,"a":"extend","s":0.26444585129823045,"ps":5,"e":2.016567417202472,"pr":0.5},{"t":268,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":268,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":268,"r":796,"c":22,"a":"extend","s":0.2048951957825169,"ps":4,"e":3.475643962279274,"pr":0.3},{"t":269,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":269,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":270,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":270,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":270,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":271,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":271,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":272,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":273,"r":796,"c":15,"a":"hold","s":0.15662908811819226,"ps":5,"e":3.4691956402356694,"pr":0.4},{"t":274,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":274,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":274,"r":796,"c":22,"a":"hold","s":0.145252425608272,"ps":5,"e":3.7167179545309046,"pr":0.4},{"t":275,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":275,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":275,"r":796,"c":15,"a":"retracted","s":0.1929144845659883,"ps":4,"e":5.205827393291482,"pr":0.35000000000000003},{"t":276,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":276,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":277,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":280,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":281,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":281,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":282,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":283,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":283,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":283,"r":796,"c":15,"a":"retracted","s":0.18363704007580842,"ps":4,"e":5.431270592654452,"pr":0.30000000000000004},{"t":283,"r":796,"c":22,"a":"retracted","s":0.17452768461242885,"ps":4,"e":4.6166849822672535,"pr":0.35000000000000003},{"t":285,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":285,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":286,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":287,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":287,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":287,"r":796,"c":22,"a":"retracted","s":0.10856696510557075,"ps":4,"e":3.6051119086300645,"pr":0.30000000000000004},{"t":288,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":291,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3},{"t":292,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":292,"r":796,"c":17,"a":"extend","s":0.41341063499533676,"ps":4,"e":6.316998519912948,"pr":0.3},{"t":292,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":293,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":294,"r":796,"c":19,"a":"extend","s":0.40322019638535234,"ps":4,"e":6.126776999193241,"pr":0.3},{"t":294,"r":796,"c":18,"a":"extend","s":0.40058227851592904,"ps":4,"e":6.077535865630671,"pr":0.3},{"t":294,"r":796,"c":15,"a":"hold","s":0.11352647542450368,"ps":5,"e":5.5065371792971165,"pr":0.5},{"t":296,"r":796,"c":16,"a":"extend","s":0.4457703669112664,"ps":4,"e":6.921046849010306,"pr":0.3},{"t":296,"r":796,"c":20,"a":"extend","s":0.4175656117622553,"ps":4,"e":6.394558086228767,"pr":0.3},{"t":297,"r":796,"c":22,"a":"retracted","s":0.08066063094895123,"ps":4,"e":3.0799612691053357,"pr":0.35000000000000003},{"t":298,"r":796,"c":21,"a":"extend","s":0.4480893128403499,"ps":4,"e":6.964333839686528,"pr":0.3}];
|
|
const lines = text.split('\n');
|
|
const gridEl = document.getElementById('grid');
|
|
const charEls = [];
|
|
for (let r = 0; r < lines.length; r++) {
|
|
const row = [];
|
|
for (let c = 0; c < lines[r].length; c++) {
|
|
const s = document.createElement('span');
|
|
s.className = 'c';
|
|
s.textContent = lines[r][c];
|
|
row.push(s);
|
|
gridEl.appendChild(s);
|
|
}
|
|
charEls.push(row);
|
|
gridEl.appendChild(document.createTextNode('\n'));
|
|
}
|
|
let tick = -1, playing = false, iv;
|
|
function apply(t) {
|
|
for (const r of charEls) for (const e of r) e.className = 'c';
|
|
const active = new Map();
|
|
for (const p of passes) {
|
|
if (p.t > t) break;
|
|
const k = p.r+','+p.c;
|
|
if (p.a === 'died' || p.a === 'retracted') active.set(k, 'dead');
|
|
else if (p.ps > 16) active.set(k, 'strong');
|
|
else active.set(k, 'active');
|
|
}
|
|
for (const [k, cls] of active) {
|
|
const [r, c] = k.split(',').map(Number);
|
|
if (charEls[r]?.[c]) charEls[r][c].className = 'c ' + cls;
|
|
}
|
|
document.getElementById('info').textContent = 'tick ' + t + ' · ' + [...active.values()].filter(v=>v!=='dead').length + ' alive';
|
|
}
|
|
function play() {
|
|
if (playing) return;
|
|
playing = true;
|
|
document.getElementById('play-btn').textContent = 'pause';
|
|
const max = passes.length > 0 ? passes[passes.length-1].t : 0;
|
|
iv = setInterval(() => { tick++; if (tick > max) { pause(); return; } apply(tick); }, 900);
|
|
}
|
|
function pause() { playing = false; clearInterval(iv); document.getElementById('play-btn').textContent = 'play'; }
|
|
function reset() { pause(); tick = -1; for (const r of charEls) for (const e of r) e.className = 'c'; document.getElementById('info').textContent = 'neurameba'; }
|
|
document.getElementById('play-btn').addEventListener('click', () => playing ? pause() : play());
|
|
document.getElementById('reset-btn').addEventListener('click', reset);
|
|
setTimeout(play, 1000);
|
|
</script>
|
|
</body>
|
|
</html> |