Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

feat(ui): design-token theme system — light default, dual-theme component sweep (#405)

Swati Ahuja380de7470f67
diff --git a/docs/design/contrast_check.py b/docs/design/contrast_check.py
new file mode 100644
index 000000000..b3411309c
--- /dev/null
+++ b/docs/design/contrast_check.py
@@ -0,0 +1,220 @@
+#!/usr/bin/env python3
+"""Theme tokens — WCAG contrast verification.
+
+Computes WCAG 2.1 relative-luminance contrast ratios for every critical
+text/surface, accent-on-surface, and status pair in both light and dark
+modes, and asserts the floors from the redesign plan:
+
+ - body text on primary surfaces >= 7.0 (AAA)
+ - secondary text / large text / status >= 4.5 (AA)
+ - interactive / non-text UI >= 3.0
+
+Semi-transparent tokens (borders, muted fills) are alpha-composited over
+their surface before the ratio is computed, so the numbers reflect what a
+user actually sees. Run: python3 docs/design/contrast_check.py
+Exits non-zero if any required pair misses its floor (CI gate).
+"""
+from __future__ import annotations
+
+import re
+import sys
+
+
+# --------------------------------------------------------------------------
+# Color helpers
+# --------------------------------------------------------------------------
+def _hex_to_rgb(h: str) -> tuple[float, float, float]:
+ h = h.lstrip("#")
+ if len(h) == 3:
+ h = "".join(c * 2 for c in h)
+ return tuple(int(h[i : i + 2], 16) / 255 for i in (0, 2, 4))
+
+
+def _parse(color: str) -> tuple[float, float, float, float]:
+ """Return (r, g, b, alpha) in 0..1 from a hex or rgba() string."""
+ color = color.strip()
+ if color.startswith("#"):
+ r, g, b = _hex_to_rgb(color)
+ return r, g, b, 1.0
+ m = re.match(r"rgba?\(([^)]+)\)", color)
+ if not m:
+ raise ValueError(f"unparseable color: {color}")
+ parts = [p.strip() for p in m.group(1).split(",")]
+ r, g, b = (int(parts[i]) / 255 for i in range(3))
+ a = float(parts[3]) if len(parts) > 3 else 1.0
+ return r, g, b, a
+
+
+def _composite(fg: str, bg: str) -> tuple[float, float, float]:
+ """Alpha-composite fg over an opaque bg, return opaque rgb."""
+ fr, fg_, fb, fa = _parse(fg)
+ br, bg_, bb, _ = _parse(bg)
+ return (
+ fr * fa + br * (1 - fa),
+ fg_ * fa + bg_ * (1 - fa),
+ fb * fa + bb * (1 - fa),
+ )
+
+
+def _lin(c: float) -> float:
+ return c / 12.92 if c <= 0.03928 else ((c + 0.055) / 1.055) ** 2.4
+
+
+def _lum(rgb: tuple[float, float, float]) -> float:
+ r, g, b = (_lin(c) for c in rgb)
+ return 0.2126 * r + 0.7152 * g + 0.0722 * b
+
+
+def contrast(fg: str, bg: str) -> float:
+ """WCAG contrast ratio of fg over (opaque) bg, compositing alpha first."""
+ fg_rgb = _composite(fg, bg)
+ bg_rgb = _composite(bg, bg)
+ l1, l2 = _lum(fg_rgb), _lum(bg_rgb)
+ hi, lo = max(l1, l2), min(l1, l2)
+ return (hi + 0.05) / (lo + 0.05)
+
+
+# --------------------------------------------------------------------------
+# Token values (must mirror packages/ui/styles/globals.css)
+# --------------------------------------------------------------------------
+LIGHT = {
+ "bg-root": "#FBF6F1",
+ "bg-surface": "#FFFFFF",
+ "bg-elevated": "#FBF4EE",
+ "bg-inset": "#F4EAE1",
+ "bg-canvas": "#F4EAE1", # --color-bg-canvas → var(--color-bg-inset)
+ "text-primary": "#241B2C",
+ "text-secondary": "#5E5360",
+ "text-tertiary": "#8C7F88",
+ "text-inverse": "#FFFFFF",
+ "text-on-accent": "#241B2C",
+ "accent-primary": "#A16215",
+ "accent-fill": "#F59520",
+ "accent-secondary": "#58436C",
+ "border-default": "rgba(88,67,108,0.12)",
+ "border-active": "rgba(176,107,18,0.90)",
+ "success": "#1D8155",
+ "warning": "#9A6614",
+ "error": "#B23A2E",
+ "info": "#58436C",
+ # Blueprint diagram ink (light) — KG canvas + mermaid.
+ "diagram-node-fill": "#241B2C",
+ "diagram-node-fill-2": "#4A4152",
+ "diagram-node-text": "#FBF6F1",
+ "diagram-node-border": "#241B2C",
+ "gradient-ember-end": "#F7A94D",
+ # KG node faces (light) — paper cards with ink outline.
+ "kg-node-fill": "#FFFDF8",
+ "kg-node-fill-2": "#F3ECE2",
+ "kg-node-text": "#241B2C",
+ "kg-node-border": "#241B2C",
+ "kg-node-border-2": "#8C7F88",
+ # Textured face composite: 0.78 warm-white wash over the paper photo
+ # (avg ~#E6E8E9) — what text actually sits on.
+ "kg-node-face-textured": "#FAF8F4",
+ # Community family hubs (light) — graph clustering palette.
+ "community-1": "#C0641A", "community-2": "#58436C", "community-3": "#B23A2E",
+ "community-4": "#6B7A3D", "community-5": "#B06A86", "community-6": "#4A5D7A",
+ "community-7": "#A8821F", "community-8": "#8A7A66", "community-9": "#7A2F4A",
+ "community-10": "#B85A38", "community-11": "#2F6B66", "community-12": "#5E5360",
+}
+
+DARK = {
+ "bg-root": "#17131D",
+ "bg-surface": "#211B29",
+ "bg-elevated": "#2A2335",
+ "bg-inset": "#110D17",
+ "bg-canvas": "#110D17", # --color-bg-canvas → var(--color-bg-inset)
+ "text-primary": "#EEEAF4",
+ "text-secondary": "#A79DB3",
+ "text-tertiary": "#786F84",
+ "text-inverse": "#17131D",
+ "text-on-accent": "#17131D",
+ "accent-primary": "#F59520",
+ "accent-fill": "#F59520",
+ "accent-secondary": "#A98FC4",
+ "border-default": "rgba(213,197,232,0.10)",
+ "border-active": "rgba(245,149,32,0.55)",
+ "success": "#34D399",
+ "warning": "#F2A03D",
+ "error": "#E06A5A",
+ "info": "#A98FC4",
+ # Blueprint diagram ink (dark) — border carries canvas separation.
+ "diagram-node-fill": "#322A3E",
+ "diagram-node-fill-2": "#261F30",
+ "diagram-node-text": "#EEEAF4",
+ "diagram-node-border": "rgba(222,210,235,0.45)",
+ "gradient-ember-end": "#F7A94D",
+ # KG node faces (dark) — alias back to the solid ink blocks.
+ "kg-node-fill": "#322A3E",
+ "kg-node-fill-2": "#261F30",
+ "kg-node-text": "#EEEAF4",
+ "kg-node-border": "rgba(222,210,235,0.45)",
+ "kg-node-border-2": "rgba(222,210,235,0.45)",
+ # Textured face composite: 0.85 ink wash (#322A3E) over the paper photo.
+ "kg-node-face-textured": "#4D4658",
+ # Community family hubs (dark) — lifted to read on the near-black canvas.
+ "community-1": "#F59520", "community-2": "#A98FC4", "community-3": "#E06A5A",
+ "community-4": "#A9BB6F", "community-5": "#D795B1", "community-6": "#8FA3C0",
+ "community-7": "#D9B04A", "community-8": "#B8A68E", "community-9": "#C4708F",
+ "community-10": "#EBA585", "community-11": "#6FB3AB", "community-12": "#A79DB3",
+}
+
+# (fg, bg, floor, label) — floor is the WCAG ratio the pair must meet.
+CHECKS = [
+ ("text-primary", "bg-root", 7.0, "Body text on page"),
+ ("text-primary", "bg-surface", 7.0, "Body text on card"),
+ ("text-primary", "bg-elevated", 7.0, "Body text on elevated"),
+ ("text-secondary", "bg-root", 4.5, "Secondary text on page"),
+ ("text-secondary", "bg-surface", 4.5, "Secondary text on card"),
+ ("text-tertiary", "bg-surface", 3.0, "Tertiary/hint on card"),
+ ("accent-primary", "bg-surface", 4.5, "Accent text on card"),
+ ("accent-primary", "bg-root", 4.5, "Accent text on page"),
+ ("accent-secondary", "bg-surface", 4.5, "Plum link-alt on card"),
+ ("text-on-accent", "accent-fill", 4.5, "Text on accent fill (CTA)"),
+ ("text-inverse", "accent-primary", 4.5, "Text on accent-primary fill"),
+ ("success", "bg-surface", 4.5, "Success text on card"),
+ ("warning", "bg-surface", 4.5, "Warning text on card"),
+ ("error", "bg-surface", 4.5, "Error text on card"),
+ ("info", "bg-surface", 4.5, "Info text on card"),
+ ("border-active", "bg-surface", 3.0, "Active border on card"),
+ # Blueprint ink nodes (KG canvas): text on both ink weights; the node
+ # boundary (fill in light, border in dark) must separate from the canvas.
+ ("diagram-node-text", "diagram-node-fill", 4.5, "Ink node text on primary fill"),
+ ("diagram-node-text", "diagram-node-fill-2", 4.5, "Ink node text on secondary fill"),
+ ("diagram-node-border", "bg-canvas", 3.0, "Ink node boundary on canvas"),
+ ("kg-node-text", "kg-node-fill", 4.5, "KG card text on primary face"),
+ ("kg-node-text", "kg-node-fill-2", 4.5, "KG card text on secondary face"),
+ ("kg-node-border", "bg-canvas", 3.0, "KG card outline on canvas"),
+ ("kg-node-border-2", "bg-canvas", 3.0, "KG supporting outline on canvas"),
+ ("kg-node-text", "kg-node-face-textured", 4.5, "KG card text on textured face"),
+ ("text-on-accent", "gradient-ember-end", 4.5, "Text on ember gradient end"),
+ # Community hubs are non-text node fills on the graph canvas — floor 3.0:1.
+ *[
+ (f"community-{n}", "bg-canvas", 3.0, f"Community {n} hub on canvas")
+ for n in range(1, 13)
+ ],
+]
+
+
+def run() -> int:
+ failures = 0
+ rows: list[str] = []
+ for mode, tokens in (("Light", LIGHT), ("Dark", DARK)):
+ rows.append(f"\n### {mode} mode\n")
+ rows.append("| Pair | Ratio | Floor | Result |")
+ rows.append("|------|-------|-------|--------|")
+ for fg, bg, floor, label in CHECKS:
+ ratio = contrast(tokens[fg], tokens[bg])
+ ok = ratio >= floor
+ if not ok:
+ failures += 1
+ mark = "PASS" if ok else "**FAIL**"
+ rows.append(f"| {label} | {ratio:.2f} | {floor:.1f} | {mark} |")
+ print("\n".join(rows))
+ print(f"\n**Total pairs:** {len(CHECKS) * 2} · **Failures:** {failures}")
+ return 1 if failures else 0
+
+
+if __name__ == "__main__":
+ sys.exit(run())
diff --git a/docs/design/no-raw-hex-check.sh b/docs/design/no-raw-hex-check.sh
new file mode 100755
index 000000000..064b11787
--- /dev/null
+++ b/docs/design/no-raw-hex-check.sh
@@ -0,0 +1,47 @@
+#!/usr/bin/env bash
+#
+# no-raw-hex gate (design tokens) — fails if a raw hex color literal appears
+# in packages/ui/src OUTSIDE the allowlist below. Wire into CI.
+#
+# The allowlist has two kinds of entries:
+# * BRAND/STRUCTURAL — hex that must stay literal because it's an identity
+# color or is consumed where a CSS var() cannot resolve (e.g. <canvas>).
+# * DEFERRED-VIZ — viz subsystems whose theme-aware tokenization needs
+# runtime CSS-var resolution + visual QA; tracked as follow-up. Listed
+# explicitly so the gate stays honest (it is NOT silently ignoring them).
+#
+# Everything else — charts, badges, tooltips, treemaps, shared/primitives —
+# must route color through the design tokens. New raw hex there fails CI.
+#
+# Usage: bash docs/design/no-raw-hex-check.sh
+set -euo pipefail
+
+cd "$(dirname "$0")/../.."
+ROOT="packages/ui/src"
+
+# Files/dirs allowed to contain raw hex (regex, matched against the path).
+ALLOW='(__tests__|\.test\.)' # test fixtures
+ALLOW+='|lib/confidence\.ts' # BRAND: LANGUAGE/EDGE color hex (canvas)
+ALLOW+='|costs/provider-comparison\.tsx' # BRAND: provider identity colors
+ALLOW+='|workspace/workspace-graph-node\.tsx' # dynamic langColor hex-alpha concat
+ALLOW+='|graph-primitives/tone-styles\.ts' # BRAND: categorical node-tone palette (like lang colors)
+ALLOW+='|wiki/git-history-panel\.tsx' # BRAND: per-author categorical bar colors
+# DEFERRED-VIZ — canvas subsystems with their own runtime light/dark palette
+# (driven by the global theme), pending an aesthetic warm-palette retune:
+ALLOW+='|c4/export/svg-exporter\.ts' # SVG serializer resolves LIVE theme tokens; hex are headless-export fallbacks only (kg-ux B7)
+ALLOW+='|/graph/sigma/' # Sigma canvas renderer (internal light/dark palette)
+
+violations=$(grep -rnE '#[0-9a-fA-F]{3,8}\b' "$ROOT" 2>/dev/null \
+ | grep -vE "$ALLOW" || true)
+
+if [ -n "$violations" ]; then
+ echo "no-raw-hex gate FAILED — raw hex outside the token system:"
+ echo "$violations"
+ echo
+ echo "Route color through a design token (var(--color-*)), or add a"
+ echo "documented allowlist entry if it is a brand/canvas constant."
+ exit 1
+fi
+
+echo "no-raw-hex gate passed — cleaned surfaces route color through tokens."
+echo "(Deferred viz subsystems are allowlisted; see this script's header.)"
diff --git a/docs/design/theme-tokens.md b/docs/design/theme-tokens.md
new file mode 100644
index 000000000..f5e70bdbc
--- /dev/null
+++ b/docs/design/theme-tokens.md
@@ -0,0 +1,222 @@
+# the theme system — Design Tokens & Contrast Matrix (Phase 0)
+
+> Source of truth for the redesign. These are the **resolved** semantic token
+> values — adjusted from the plan's design-intent table to pass the WCAG
+> contrast floors. Run `python3 docs/design/contrast_check.py` to regenerate
+> the matrix; it exits non-zero if any required pair regresses (CI gate).
+
+## Floors (both light + dark)
+
+- Body text on primary surfaces — **≥ 7.0** (AAA)
+- Secondary / large / status text, accent-on-surface — **≥ 4.5** (AA)
+- Interactive / non-text UI (active borders, hints) — **≥ 3.0**
+
+## §6 decisions (resolved)
+
+1. **Default theme — Dark; explicit two-state toggle.** Preserves current
+ product behavior; Light is opt-in via the toggle. No "System" option —
+ product decision (2026-06-04): with the OS in dark mode System and Dark
+ looked identical and read as redundant; the choice stays explicit.
+ (`next-themes` `defaultTheme="dark"`, `enableSystem={false}`; the shared
+ ThemeToggle migrates stale persisted `"system"` values to dark.)
+2. **Light-mode accent strategy.** The brand accent stays repowise orange
+ `#f59520` — it's `--color-accent-fill` (CTAs, active fills, focus ring) in
+ **both** modes. Only accent *text/icons/links* darken to `#A16215`
+ (`--color-accent-primary`) in light so they clear AA on white **and** warm
+ paper (bright orange can't be AA as small text). Plum
+ (`--color-accent-secondary`) is used for links-alt **and** data-viz.
+3. **Gradient intensity.** Restrained in-product (active states, small accent
+ washes); bold in marketing (full hero meshes).
+4. **Dark-mode base — plum-tinted charcoal.** Dark surfaces carry a restrained
+ violet cast (`#17131d`→`#322a3e`, text `#eeeaf4`/`#a79db3`, lavender-alpha
+ borders) so the product is visually distinct from the crowd of
+ neutral-charcoal + orange UIs (user feedback: pure charcoal read "exactly
+ like Claude"). The tint is the theme system's own plum family at low
+ saturation; the orange accent still pops. **Light mode is unchanged**
+ (warm paper). *(Supersedes the earlier "neutral charcoal, Dark Orange
+ UI-kit" decision.)*
+
+### The fill-vs-text split (why two accent tokens)
+
+A single accent can't be both AA-as-text on white *and* vivid-as-a-CTA. So:
+
+| Token | Light | Dark | Used for |
+|-------|-------|------|----------|
+| `--color-accent-primary` | `#A16215` | `#F59520` | accent **text, icons, links, borders**; also a fill (white text on it) |
+| `--color-accent-fill` | `#F59520` | `#F59520` | brand-orange **CTA / selected fills** (dark text on it) |
+| `--color-text-inverse` | `#FFFFFF` | `#17131D` | text on an `accent-primary` fill |
+| `--color-text-on-accent` | `#241B2C` | `#17131D` | text on the brand `accent-fill` |
+
+White on the bright `#f59520` fill is only ~2.0:1 — so CTAs use **dark** text
+(`text-on-accent`, 7.26:1). Existing `bg-accent-primary text-text-inverse`
+fills keep working because `text-inverse` flips per theme (white in light on
+the deep `#A16215` = 4.91:1; near-black plum in dark on bright `#F59520` = 8.02:1).
+
+## Resolved core semantic tokens
+
+| Token | Light (`:root`) | Dark (`.dark`) |
+|-------|-----------------|----------------|
+| `--color-bg-root` | `#FBF6F1` | `#17131D` |
+| `--color-bg-surface` | `#FFFFFF` | `#211B29` |
+| `--color-bg-elevated` | `#FBF4EE` | `#2A2335` |
+| `--color-bg-overlay` | `#FFFFFF` | `#322A3E` |
+| `--color-bg-inset` | `#F4EAE1` | `#110D17` |
+| `--color-border-default` | `rgba(88,67,108,.12)` | `rgba(213,197,232,.10)` |
+| `--color-border-hover` | `rgba(88,67,108,.22)` | `rgba(213,197,232,.18)` |
+| `--color-border-active` | `rgba(192,78,20,.80)` | `rgba(245,149,32,.55)` |
+| `--color-text-primary` | `#241B2C` | `#EEEAF4` |
+| `--color-text-secondary` | `#5E5360` | `#A79DB3` |
+| `--color-text-tertiary` | `#8C7F88` | `#786F84` |
+| `--color-text-inverse` | `#FFFFFF` | `#17131D` |
+| `--color-text-on-accent` | `#241B2C` | `#17131D` |
+| `--color-accent-primary` | `#A16215` | `#F59520` |
+| `--color-accent-fill` | `#F59520` | `#F59520` |
+| `--color-accent-fill-hover` | `#E0850F` | `#F7A94D` |
+| `--color-accent-hover` | `#824F10` | `#F7A94D` |
+| `--color-accent-muted` | `rgba(245,149,32,.12)` | `rgba(245,149,32,.16)` |
+| `--color-accent-secondary` | `#58436C` | `#A98FC4` |
+
+### Status (functional, tuned)
+
+| Token | Light | Dark |
+|-------|-------|------|
+| `--color-success` / `--color-confidence-fresh` | `#1D8155` | `#34D399` |
+| `--color-warning` / `--color-confidence-stale` | `#9A6614` | `#F2A03D` |
+| `--color-error` / `--color-confidence-outdated` | `#B23A2E` | `#E06A5A` |
+| `--color-info` | `#58436C` | `#A98FC4` |
+
+## Brand primitive ramps (theme-independent)
+
+```
+--sunset-50:#FFF4ED --sunset-100:#FFE6D5 --sunset-200:#FFC4B1 --sunset-300:#F7A56E
+--sunset-400:#F2A03D --sunset-500:#F27F3D --sunset-600:#E0651F --sunset-700:#C04E14
+--sunset-800:#8C3D35 --sunset-900:#5E2A22
+--plum-50:#F4F1F8 --plum-100:#E7E1F0 --plum-200:#CFC3DF --plum-300:#A98FC4
+--plum-400:#826AA0 --plum-500:#58436C --plum-600:#473659 --plum-700:#362945
+--plum-800:#261C32 --plum-900:#1A1320
+--clay:#8C3D35 --peach:#FFC4B1 --cream:#FCE9DD --amber:#F2A03D
+```
+
+## Signature gradients
+
+```
+--gradient-sunset: linear-gradient(135deg,#58436C 0%,#F59520 55%,#F7A94D 100%)
+--gradient-ember: linear-gradient(135deg,#F59520 0%,#F7A94D 100%)
+--gradient-peach: linear-gradient(160deg,#FFC4B1 0%,#F2A03D 100%)
+--gradient-plum: linear-gradient(135deg,#362945 0%,#58436C 100%)
+```
+
+Gradients are for hero washes, primary CTAs, brand marks, empty-state art, and
+selected/active accents — never behind body text. Text over gradients uses
+`--color-text-on-accent` / `--color-text-inverse` with a verified ≥4.5:1 floor.
+
+## Community families (graph clustering palette)
+
+The dependency graph colors nodes by their detected community. Instead of a
+fixed jewel-tone array (cool, garish, identical in both themes), there are
+**12 warm/plum-anchored families**, each a `hub` (centroid / module nodes) and
+a softer `-soft` satellite tint (leaf files). The graph cycles `community_id %
+12`. One cool counterpoint (slate blue #6, deep teal #11) is deliberate for
+12-way distinguishability.
+
+These are tokens (`--color-community-1..12` + `-soft`) in `globals.css`, resolved
+at runtime by `getCommunityFamily` / `useCommunityFamilies` in
+`shared/use-theme-tokens.ts` (the canvas can't resolve `var()`, so it reads the
+computed token per theme and repaints on theme flip — same mechanism as Mermaid
+/ C4 / `THEME_COLORS`).
+
+**Usage rule:** module/centroid nodes use `hub`; file/leaf nodes use the
+`-soft` satellite so leaves recede behind their community anchor. Edge colors
+use the separate per-theme `EDGE_COLORS_BY_THEME` (import = orange,
+crossCommunity = plum, internal = sage/green), mirroring `lib/confidence.ts`.
+
+| # | Family | Light hub / soft | Dark hub / soft |
+|---|--------|------------------|-----------------|
+| 1 | Brand orange | `#C0641A` / `#F7A94D` | `#F59520` / `#C97A1A` |
+| 2 | Plum | `#58436C` / `#826AA0` | `#A98FC4` / `#7D659C` |
+| 3 | Terracotta | `#B23A2E` / `#CF6A55` | `#E06A5A` / `#B04C3E` |
+| 4 | Olive/sage | `#6B7A3D` / `#90A05E` | `#A9BB6F` / `#7E8F4E` |
+| 5 | Dusty rose | `#B06A86` / `#CF93AB` | `#D795B1` / `#A86A87` |
+| 6 | Slate blue | `#4A5D7A` / `#71849F` | `#8FA3C0` / `#66799A` |
+| 7 | Gold | `#A8821F` / `#C9A544` | `#D9B04A` / `#A8821F` |
+| 8 | Taupe | `#8A7A66` / `#A89882` | `#B8A68E` / `#8A7A66` |
+| 9 | Wine | `#7A2F4A` / `#9E5570` | `#C4708F` / `#94506A` |
+| 10 | Peach | `#B85A38` / `#EBA585` | `#EBA585` / `#C4734F` |
+| 11 | Deep teal | `#2F6B66` / `#558F89` | `#6FB3AB` / `#4A8780` |
+| 12 | Charcoal mauve | `#5E5360` / `#84778A` | `#A79DB3` / `#786F84` |
+
+Hub-on-canvas contrast is gated at **≥ 3.0:1** (non-text UI) in both modes —
+families #1 (orange) and #10 (peach) were deepened in **light** to clear the
+floor on the warm paper canvas (`#F4EAE1`): orange `#F59520 → #C0641A`
+(1.92 → 3.49), peach `#D9825F → #B85A38` (2.42 → 3.88). The `-soft` satellites
+are not gated (they sit behind hubs, never alone as the only signal).
+
+## Contrast matrix (generated)
+
+<!-- Regenerate with: python3 docs/design/contrast_check.py -->
+
+### Light mode
+| Pair | Ratio | Floor | Result |
+|------|-------|-------|--------|
+| Body text on page | 15.42 | 7.0 | PASS |
+| Body text on card | 16.56 | 7.0 | PASS |
+| Body text on elevated | 15.20 | 7.0 | PASS |
+| Secondary text on page | 6.78 | 4.5 | PASS |
+| Secondary text on card | 7.29 | 4.5 | PASS |
+| Tertiary/hint on card | 3.81 | 3.0 | PASS |
+| Accent text on card | 4.91 | 4.5 | PASS |
+| Accent text on page | 4.58 | 4.5 | PASS |
+| Plum link-alt on card | 8.63 | 4.5 | PASS |
+| Text on accent fill (CTA) | 7.26 | 4.5 | PASS |
+| Text on accent-primary fill | 4.91 | 4.5 | PASS |
+| Success text on card | 4.86 | 4.5 | PASS |
+| Warning text on card | 4.90 | 4.5 | PASS |
+| Error text on card | 5.94 | 4.5 | PASS |
+| Info text on card | 8.63 | 4.5 | PASS |
+| Active border on card | 3.59 | 3.0 | PASS |
+| Community 1 hub on canvas | 3.49 | 3.0 | PASS |
+| Community 2 hub on canvas | 7.27 | 3.0 | PASS |
+| Community 3 hub on canvas | 5.00 | 3.0 | PASS |
+| Community 4 hub on canvas | 3.95 | 3.0 | PASS |
+| Community 5 hub on canvas | 3.37 | 3.0 | PASS |
+| Community 6 hub on canvas | 5.64 | 3.0 | PASS |
+| Community 7 hub on canvas | 3.01 | 3.0 | PASS |
+| Community 8 hub on canvas | 3.50 | 3.0 | PASS |
+| Community 9 hub on canvas | 7.59 | 3.0 | PASS |
+| Community 10 hub on canvas | 3.88 | 3.0 | PASS |
+| Community 11 hub on canvas | 5.18 | 3.0 | PASS |
+| Community 12 hub on canvas | 6.14 | 3.0 | PASS |
+
+### Dark mode
+| Pair | Ratio | Floor | Result |
+|------|-------|-------|--------|
+| Body text on page | 15.44 | 7.0 | PASS |
+| Body text on card | 14.13 | 7.0 | PASS |
+| Body text on elevated | 12.74 | 7.0 | PASS |
+| Secondary text on page | 7.07 | 4.5 | PASS |
+| Secondary text on card | 6.48 | 4.5 | PASS |
+| Tertiary/hint on card | 3.51 | 3.0 | PASS |
+| Accent text on card | 7.34 | 4.5 | PASS |
+| Accent text on page | 8.02 | 4.5 | PASS |
+| Plum link-alt on card | 5.91 | 4.5 | PASS |
+| Text on accent fill (CTA) | 8.02 | 4.5 | PASS |
+| Text on accent-primary fill | 8.02 | 4.5 | PASS |
+| Success text on card | 8.71 | 4.5 | PASS |
+| Warning text on card | 7.88 | 4.5 | PASS |
+| Error text on card | 5.09 | 4.5 | PASS |
+| Info text on card | 5.91 | 4.5 | PASS |
+| Active border on card | 3.13 | 3.0 | PASS |
+| Community 1 hub on canvas | 8.41 | 3.0 | PASS |
+| Community 2 hub on canvas | 6.78 | 3.0 | PASS |
+| Community 3 hub on canvas | 5.83 | 3.0 | PASS |
+| Community 4 hub on canvas | 9.17 | 3.0 | PASS |
+| Community 5 hub on canvas | 8.07 | 3.0 | PASS |
+| Community 6 hub on canvas | 7.47 | 3.0 | PASS |
+| Community 7 hub on canvas | 9.38 | 3.0 | PASS |
+| Community 8 hub on canvas | 8.12 | 3.0 | PASS |
+| Community 9 hub on canvas | 5.54 | 3.0 | PASS |
+| Community 10 hub on canvas | 9.37 | 3.0 | PASS |
+| Community 11 hub on canvas | 7.97 | 3.0 | PASS |
+| Community 12 hub on canvas | 7.42 | 3.0 | PASS |
+
+**56 pairs · 0 failures.**
diff --git a/package-lock.json b/package-lock.json
index e0f6af718..d8d8730d4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1787,6 +1787,32 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
+ "node_modules/@lottiefiles/dotlottie-react": {
+ "version": "0.19.4",
+ "resolved": "https://registry.npmjs.org/@lottiefiles/dotlottie-react/-/dotlottie-react-0.19.4.tgz",
+ "integrity": "sha512-YgX1Ie0gK9MEA89Ap7Ic/lOv85sOzELV3y3RAQ4GrB79+wJ4gLga9Ge59mWzBqjlbT8bZNhNPEm+jYyV8kMYqg==",
+ "license": "MIT",
+ "dependencies": {
+ "@lottiefiles/dotlottie-web": "0.74.0"
+ },
+ "engines": {
+ "node": ">=18.17.0",
+ "npm": ">=9.5.0"
+ },
+ "peerDependencies": {
+ "react": "^17 || ^18 || ^19"
+ }
+ },
+ "node_modules/@lottiefiles/dotlottie-web": {
+ "version": "0.74.0",
+ "resolved": "https://registry.npmjs.org/@lottiefiles/dotlottie-web/-/dotlottie-web-0.74.0.tgz",
+ "integrity": "sha512-rG12+dJSVhQDdleGr9epR7zU/UJ6hh8jzBDHAurClHP5t5dSrOh3eP3UCFxolpVPcobaRVYsBnYg4HQokQewpg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.17.0",
+ "npm": ">=9.5.0"
+ }
+ },
"node_modules/@mdx-js/mdx": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-3.1.1.tgz",
@@ -11192,6 +11218,16 @@
"react": ">=16"
}
},
+ "node_modules/next-themes": {
+ "version": "0.4.6",
+ "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz",
+ "integrity": "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc"
+ }
+ },
"node_modules/next/node_modules/postcss": {
"version": "8.4.31",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
@@ -14446,12 +14482,14 @@
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^4.3.0",
"jsdom": "^25.0.0",
+ "next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "^5.6.0",
"vitest": "^4.1.5"
},
"peerDependencies": {
+ "next-themes": "^0.4.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
}
@@ -14665,6 +14703,7 @@
"name": "repowise-web",
"version": "0.3.0",
"dependencies": {
+ "@lottiefiles/dotlottie-react": "^0.19.4",
"@repowise-dev/types": "*",
"@repowise-dev/ui": "*",
"clsx": "^2.1.1",
@@ -14674,6 +14713,7 @@
"lucide-react": "^0.460.0",
"next": "~15.5.18",
"next-mdx-remote": "^6.0.0",
+ "next-themes": "^0.4.6",
"nuqs": "^2.2.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
diff --git a/packages/types/src/graph.ts b/packages/types/src/graph.ts
index 320ea03ce..7821ff80a 100644
--- a/packages/types/src/graph.ts
+++ b/packages/types/src/graph.ts
@@ -83,6 +83,23 @@ export interface ArchitectureGraph {
edges: ArchitectureEdge[];
}
+// ---------------------------------------------------------------------------
+// Community slice (constellation blossom — one hub's member sub-graph)
+// ---------------------------------------------------------------------------
+
+export interface CommunitySliceNode extends GraphNode {
+ /** True for one-hop neighbor stubs outside the community (cross-cluster). */
+ is_boundary?: boolean;
+}
+
+export interface CommunitySlice {
+ nodes: CommunitySliceNode[];
+ links: GraphLink[];
+ community_id: number;
+ member_count: number;
+ truncated?: boolean;
+}
+
// ---------------------------------------------------------------------------
// NetworkX-shaped raw payload (what some downstream backends emit)
// ---------------------------------------------------------------------------
diff --git a/packages/ui/__tests__/c4/arch-nodes.test.tsx b/packages/ui/__tests__/c4/arch-nodes.test.tsx
index e9d1f5b28..3905e4883 100644
--- a/packages/ui/__tests__/c4/arch-nodes.test.tsx
+++ b/packages/ui/__tests__/c4/arch-nodes.test.tsx
@@ -1,6 +1,11 @@
import { describe, it, expect, vi } from "vitest";
-import { render } from "@testing-library/react";
+import { fireEvent, render } from "@testing-library/react";
+import type { NodeProps } from "@xyflow/react";
import { NodeShell } from "../../src/graph-primitives/node-shell";
+import { ArchFileNode } from "../../src/c4/nodes/ArchFileNode";
+import { LayerClusterNode } from "../../src/c4/nodes/LayerClusterNode";
+import { useArchitectureStore } from "../../src/c4/store/use-architecture-store";
+import { createMockView } from "./fixtures";
import type { ArchNode, ArchLayer } from "../../src/c4/types";
vi.mock("@xyflow/react", () => ({
@@ -9,12 +14,12 @@ vi.mock("@xyflow/react", () => ({
}));
describe("NodeShell", () => {
- it("renders selected state with golden border", () => {
+ it("renders selected state with the brand selection token", () => {
const { container } = render(
<NodeShell tone="file" kindLabel="FILE" title="test.py" selected={true} />,
);
const root = container.firstElementChild as HTMLElement;
- expect(root.style.border).toContain("rgb(251, 191, 36)");
+ expect(root.style.borderLeft).toContain("--color-viz-selection");
});
it("renders tour highlight with accentPulse animation", () => {
@@ -33,12 +38,12 @@ describe("NodeShell", () => {
expect(root.style.opacity).toBe("0.25");
});
- it("renders diff changed state with red border", () => {
+ it("renders diff changed state with the diff-changed token", () => {
const { container } = render(
<NodeShell tone="file" kindLabel="FILE" title="test.py" diffState="changed" />,
);
const root = container.firstElementChild as HTMLElement;
- expect(root.style.border).toContain("rgb(252, 165, 165)");
+ expect(root.style.border).toContain("--color-viz-diff-changed");
});
it("renders search highlight with dashed border", () => {
@@ -101,6 +106,88 @@ describe("ArchFileNode (via NodeShell)", () => {
});
});
+describe("ArchFileNode barrels + tour badge (plan C-2/C-3)", () => {
+ function renderArchFile(overrides: Partial<ArchNode>, dataExtra: object = {}) {
+ const node = { ...mockNode, ...overrides };
+ const props = {
+ data: { node, ...dataExtra },
+ selected: false,
+ } as unknown as NodeProps;
+ return render(<ArchFileNode {...props} />);
+ }
+
+ it("de-emphasizes barrel-tagged nodes and suppresses their entry badge", () => {
+ const { container, queryByLabelText, getByText } = renderArchFile({
+ tags: ["barrel", "typescript"],
+ is_entry_point: true,
+ summary: "Re-export barrel for ui/.",
+ });
+ const wrapper = container.firstElementChild as HTMLElement;
+ expect(wrapper.style.opacity).toBe("0.55");
+ expect(queryByLabelText("Entry point")).toBeNull();
+ expect(getByText("barrel")).toBeDefined(); // honest kind label
+ expect(getByText("Re-export barrel for ui/.")).toBeDefined(); // honest summary
+ });
+
+ it("keeps the entry badge for genuine entry points", () => {
+ const { getByLabelText, container } = renderArchFile({ is_entry_point: true });
+ expect(getByLabelText("Entry point")).toBeDefined();
+ const wrapper = container.firstElementChild as HTMLElement;
+ expect(wrapper.style.opacity).not.toBe("0.55");
+ });
+
+ it("shows the numbered tour-step badge when highlighted by the tour", () => {
+ const { getByLabelText } = renderArchFile({}, { tourStepNumber: 3, tourHighlight: true });
+ expect(getByLabelText("Tour step 3")).toBeDefined();
+ });
+
+ it("selection dimming fades unrelated cards to 0.45, never vanishes them", () => {
+ const { container } = renderArchFile({}, { dimmed: true });
+ const wrapper = container.firstElementChild as HTMLElement;
+ expect(wrapper.style.opacity).toBe("0.45");
+ // The diff overlay keeps its own stronger fade — dimming must not hijack it.
+ const inner = wrapper.firstElementChild as HTMLElement;
+ expect(inner.style.opacity).not.toBe("0.25");
+ });
+});
+
+describe("a11y: tier cards are keyboard-operable (plan D)", () => {
+ function renderCard(kind: "layer" | "subGroup", layerId: string) {
+ const store = useArchitectureStore;
+ store.setState(store.getInitialState());
+ const view = createMockView();
+ // Give layer:api curated sub-groups so drilling lands on the groups tier.
+ view.layers[0]!.sub_groups = [
+ { id: "layer:api:app", name: "app", node_ids: ["src/app.py"] },
+ { id: "layer:api:routes", name: "routes", node_ids: ["src/routes.py"] },
+ ];
+ store.getState().setView(view);
+ const layer = { ...view.layers[0]!, id: layerId, name: "API" };
+ const props = {
+ data: { layer, kind },
+ selected: false,
+ } as unknown as NodeProps;
+ return render(<LayerClusterNode {...props} />);
+ }
+
+ // Unified click grammar (kg-ux plan B5): single activation = select +
+ // inspect, never drill. Drilling is double-click (page handler) or the
+ // inspect panel's "Open layer/group" button.
+ it("Enter on a layer card selects it without drilling", () => {
+ const { getByRole } = renderCard("layer", "layer:api");
+ fireEvent.keyDown(getByRole("button"), { key: "Enter" });
+ expect(useArchitectureStore.getState().selectedNodeId).toBe("layer:api");
+ expect(useArchitectureStore.getState().navigationLevel).toBe("overview");
+ });
+
+ it("Space on a sub-group card selects it without drilling", () => {
+ const { getByRole } = renderCard("subGroup", "layer:api:app");
+ fireEvent.keyDown(getByRole("button"), { key: " " });
+ expect(useArchitectureStore.getState().selectedNodeId).toBe("layer:api:app");
+ expect(useArchitectureStore.getState().activeSubGroupId).toBeNull();
+ });
+});
+
describe("LayerClusterNode (via NodeShell)", () => {
const mockLayer: ArchLayer = {
id: "layer:api",
@@ -110,6 +197,8 @@ describe("LayerClusterNode (via NodeShell)", () => {
file_count: 42,
complexity_distribution: { simple: 20, moderate: 15, complex: 7 },
health_score: 85,
+ sub_groups: [],
+ display_order: 0,
};
it("renders layer cluster with name, file count, and health score", () => {
diff --git a/packages/ui/__tests__/c4/architecture-store.test.ts b/packages/ui/__tests__/c4/architecture-store.test.ts
index f3a344730..40f87f7f5 100644
--- a/packages/ui/__tests__/c4/architecture-store.test.ts
+++ b/packages/ui/__tests__/c4/architecture-store.test.ts
@@ -359,3 +359,33 @@ describe("useArchitectureStore", () => {
});
});
});
+
+describe("setView legacy-payload hardening (kg-ux)", () => {
+ it("survives an API response that predates the curated-KG schema", () => {
+ // A pre-curation backend serves layers without sub_groups and no
+ // entry_points/tour — the page must degrade, never crash
+ // ("layer.sub_groups is not iterable" regression).
+ const legacy = createMockView();
+ for (const layer of legacy.layers) {
+ delete (layer as Partial<ArchLayer>).sub_groups;
+ delete (layer as Partial<ArchLayer>).display_order;
+ }
+ delete (legacy as Partial<typeof legacy>).entry_points;
+ delete (legacy as Partial<typeof legacy>).entry_candidates;
+ delete (legacy as Partial<typeof legacy>).tour;
+ for (const node of legacy.nodes) {
+ delete (node as Partial<ArchNode>).tags;
+ }
+
+ expect(() => store.getState().setView(legacy)).not.toThrow();
+
+ const view = store.getState().view!;
+ expect(view.layers.every((l) => Array.isArray(l.sub_groups))).toBe(true);
+ expect(view.layers.map((l) => l.display_order)).toEqual(
+ view.layers.map((_, i) => i),
+ );
+ expect(view.entry_points).toEqual([]);
+ expect(view.tour).toEqual([]);
+ expect(view.nodes.every((n) => Array.isArray(n.tags))).toBe(true);
+ });
+});
diff --git a/packages/ui/__tests__/c4/containers.test.ts b/packages/ui/__tests__/c4/containers.test.ts
index c69797d82..1c7c05ad5 100644
--- a/packages/ui/__tests__/c4/containers.test.ts
+++ b/packages/ui/__tests__/c4/containers.test.ts
@@ -1,5 +1,10 @@
import { describe, it, expect } from "vitest";
-import { buildContainers, getStandaloneNodeIds } from "../../src/c4/layout/containers";
+import {
+ buildContainers,
+ enforceBoxBudget,
+ getStandaloneNodeIds,
+ MAX_VISIBLE_BOXES,
+} from "../../src/c4/layout/containers";
import type { ArchNode, ArchEdge } from "../../src/c4/types";
function makeNode(overrides: Partial<ArchNode> & { id: string }): ArchNode {
@@ -122,6 +127,58 @@ describe("buildContainers", () => {
});
});
+ describe("curated strategy", () => {
+ const subGroups = [
+ { id: "layer:ui:forms", name: "forms", node_ids: ["src/ui/form.tsx", "src/ui/input.tsx"] },
+ { id: "layer:ui:tables", name: "tables", node_ids: ["src/ui/table.tsx", "src/ui/row.tsx"] },
+ ];
+
+ it("builds containers verbatim from sub-groups (id/name/members)", () => {
+ const nodes = subGroups.flatMap((g) =>
+ g.node_ids.map((id) => makeNode({ id, file_path: id })),
+ );
+ const containers = buildContainers(nodes, [], "curated", subGroups);
+ expect(containers).toHaveLength(2);
+ expect(containers[0]).toEqual({
+ id: "layer:ui:forms",
+ label: "forms",
+ childNodeIds: ["src/ui/form.tsx", "src/ui/input.tsx"],
+ });
+ expect(containers[1]!.label).toBe("tables");
+ });
+
+ it("drops members hidden by upstream filters and flattens singletons", () => {
+ // Only one forms file and both table files visible.
+ const nodes = [
+ makeNode({ id: "src/ui/form.tsx", file_path: "src/ui/form.tsx" }),
+ makeNode({ id: "src/ui/table.tsx", file_path: "src/ui/table.tsx" }),
+ makeNode({ id: "src/ui/row.tsx", file_path: "src/ui/row.tsx" }),
+ ];
+ const containers = buildContainers(nodes, [], "curated", subGroups);
+ // forms collapsed to a singleton → flattened away; tables survives.
+ expect(containers.map((c) => c.id)).toEqual(["layer:ui:tables"]);
+ });
+
+ it("falls back to heuristics when the layer has no sub-groups", () => {
+ const nodes: ArchNode[] = [
+ makeNode({ id: "src/api/app.py", file_path: "src/api/app.py" }),
+ makeNode({ id: "src/api/routes.py", file_path: "src/api/routes.py" }),
+ ];
+ const containers = buildContainers(nodes, [], "curated", []);
+ expect(containers.some((c) => c.id.startsWith("dir:"))).toBe(true);
+ });
+
+ it("falls back to heuristics when no sub-group survives filtering", () => {
+ const nodes: ArchNode[] = [
+ makeNode({ id: "src/api/app.py", file_path: "src/api/app.py" }),
+ makeNode({ id: "src/api/routes.py", file_path: "src/api/routes.py" }),
+ ];
+ // Sub-groups reference nodes that are all filtered out.
+ const containers = buildContainers(nodes, [], "curated", subGroups);
+ expect(containers.some((c) => c.id.startsWith("dir:"))).toBe(true);
+ });
+ });
+
describe("single-node container flattening", () => {
it("eliminates containers with only 1 node", () => {
const nodes: ArchNode[] = [
@@ -148,3 +205,51 @@ describe("getStandaloneNodeIds", () => {
expect(standalone).toEqual(["c"]);
});
});
+
+describe("enforceBoxBudget", () => {
+ const pr = new Map<string, number>([
+ ["hot1", 0.9], ["hot2", 0.8],
+ ["mid1", 0.5], ["mid2", 0.4],
+ ["cold1", 0.1], ["cold2", 0.05], ["cold3", 0.01],
+ ]);
+ const rank = (id: string) => pr.get(id) ?? 0;
+
+ it("passes through when within budget", () => {
+ const containers = [{ id: "c1", label: "C1", childNodeIds: ["hot1", "mid1"] }];
+ const out = enforceBoxBudget(containers, ["hot2"], rank);
+ expect(out.containers).toEqual(containers);
+ expect(out.standaloneIds).toEqual(["hot2"]);
+ expect(out.collapsedCount).toBe(0);
+ });
+
+ it("collapses the lowest-pagerank boxes into one '+N more' container", () => {
+ const containers = [
+ { id: "c-hot", label: "hot", childNodeIds: ["hot1", "hot2"] },
+ { id: "c-cold", label: "cold", childNodeIds: ["cold1", "cold2"] },
+ ];
+ const standalone = ["mid1", "mid2", "cold3"];
+ // Budget 4: keep the 3 strongest boxes, fold the rest.
+ const out = enforceBoxBudget(containers, standalone, rank, 4);
+
+ expect(out.containers.length + out.standaloneIds.length).toBeLessThanOrEqual(4);
+ const overflow = out.containers.find((c) => c.id === "container:__overflow");
+ expect(overflow).toBeDefined();
+ expect(overflow!.label).toBe(`+${out.collapsedCount} more`);
+ // The weakest boxes (cold container + cold3) live inside the overflow.
+ expect(overflow!.childNodeIds).toEqual(
+ expect.arrayContaining(["cold1", "cold2", "cold3"]),
+ );
+ // The strongest boxes survive untouched.
+ expect(out.containers.some((c) => c.id === "c-hot")).toBe(true);
+ expect(out.standaloneIds).toContain("mid1");
+ });
+
+ it("never exceeds the default budget", () => {
+ const standalone = Array.from({ length: 40 }, (_, i) => `f${i}`);
+ const out = enforceBoxBudget([], standalone, () => 0);
+ expect(out.containers.length + out.standaloneIds.length).toBeLessThanOrEqual(
+ MAX_VISIBLE_BOXES,
+ );
+ expect(out.collapsedCount).toBe(40 - (MAX_VISIBLE_BOXES - 1));
+ });
+});
diff --git a/packages/ui/__tests__/c4/edge-aggregation.test.ts b/packages/ui/__tests__/c4/edge-aggregation.test.ts
index e65ad3b55..8f825a5ea 100644
--- a/packages/ui/__tests__/c4/edge-aggregation.test.ts
+++ b/packages/ui/__tests__/c4/edge-aggregation.test.ts
@@ -1,5 +1,9 @@
import { describe, it, expect } from "vitest";
-import { aggregateEdges } from "../../src/c4/layout/edge-aggregation";
+import {
+ aggregateEdges,
+ capAggregatedEdges,
+ MAX_VISIBLE_AGGREGATED_EDGES,
+} from "../../src/c4/layout/edge-aggregation";
import type { ArchEdge } from "../../src/c4/types";
function makeEdge(source: string, target: string, edge_type: string): ArchEdge {
@@ -99,3 +103,41 @@ describe("aggregateEdges", () => {
expect(result[0]!.count).toBeGreaterThan(result[1]!.count);
});
});
+
+describe("capAggregatedEdges", () => {
+ function agg(i: number, count: number) {
+ return {
+ id: `agg:s${i}→t${i}`,
+ source: `s${i}`,
+ target: `t${i}`,
+ count,
+ dominantType: "imports",
+ types: ["imports"],
+ };
+ }
+
+ it("passes through when under the budget", () => {
+ const edges = [agg(1, 5), agg(2, 3)];
+ const { visible, hiddenCount } = capAggregatedEdges(edges);
+ expect(visible).toHaveLength(2);
+ expect(hiddenCount).toBe(0);
+ });
+
+ it("keeps the heaviest arrows and reports the dropped count", () => {
+ // 30 aggregated arrows with descending weight (pre-sorted contract).
+ const edges = Array.from({ length: 30 }, (_, i) => agg(i, 30 - i));
+ const { visible, hiddenCount } = capAggregatedEdges(edges);
+ expect(visible).toHaveLength(MAX_VISIBLE_AGGREGATED_EDGES);
+ expect(hiddenCount).toBe(30 - MAX_VISIBLE_AGGREGATED_EDGES);
+ // Heaviest survive; the weakest are the ones dropped.
+ expect(visible[0]!.count).toBe(30);
+ expect(visible.at(-1)!.count).toBe(30 - MAX_VISIBLE_AGGREGATED_EDGES + 1);
+ });
+
+ it("honours a custom budget", () => {
+ const edges = Array.from({ length: 5 }, (_, i) => agg(i, 5 - i));
+ const { visible, hiddenCount } = capAggregatedEdges(edges, 2);
+ expect(visible.map((e) => e.count)).toEqual([5, 4]);
+ expect(hiddenCount).toBe(3);
+ });
+});
diff --git a/packages/ui/__tests__/c4/export.test.ts b/packages/ui/__tests__/c4/export.test.ts
index 054ceb13f..2c8c5af2f 100644
--- a/packages/ui/__tests__/c4/export.test.ts
+++ b/packages/ui/__tests__/c4/export.test.ts
@@ -124,12 +124,14 @@ function makeArchView(overrides?: Partial<ArchitectureView>): ArchitectureView {
node_ids: ["file1", "func1"], file_count: 2,
complexity_distribution: { simple: 1, moderate: 1, complex: 0 },
health_score: 90,
+ sub_groups: [], display_order: 0,
},
{
id: "layer:core", name: "Core", description: "Core layer",
node_ids: ["class1"], file_count: 1,
complexity_distribution: { simple: 0, moderate: 0, complex: 1 },
health_score: 70,
+ sub_groups: [], display_order: 1,
},
],
nodes,
@@ -141,6 +143,8 @@ function makeArchView(overrides?: Partial<ArchitectureView>): ArchitectureView {
languages: ["typescript"],
frameworks: [],
external_systems: [],
+ entry_points: [],
+ entry_candidates: [],
...overrides,
};
}
@@ -174,7 +178,7 @@ describe("SVG export - new node types", () => {
expect(svg).toContain("7 files");
});
- it("test_svg_export_tone_colors: fill colors match TONE_STYLES", () => {
+ it("test_svg_export_ink_palette: arch nodes render blueprint ink (kg-ux B7)", () => {
const nodes: Node[] = [
makeArchFileNode("f1", "file"),
makeLayerClusterNode("lc1"),
@@ -182,15 +186,21 @@ describe("SVG export - new node types", () => {
];
const svg = buildC4Svg(nodes, []);
- expect(svg).toContain(TONE_STYLES.file.bg);
- expect(svg).toContain(TONE_STYLES.file.border);
- expect(svg).toContain(TONE_STYLES.file.band);
-
- expect(svg).toContain(TONE_STYLES.layerCluster.bg);
- expect(svg).toContain(TONE_STYLES.layerCluster.band);
+ // Headless export resolves the light-mode fallbacks of the kg tokens.
+ expect(svg).toContain("#fffdf8"); // --color-kg-node-fill (paper card)
+ expect(svg).toContain("#241b2c"); // --color-kg-node-text / ink outline
+ expect(svg).toContain("#826aa0"); // --color-diagram-cluster-border (ghost portal)
+ expect(svg).toContain("#f4eae1"); // warm paper canvas
+ expect(svg).toContain("kg-grid"); // graph-paper pattern
+ expect(svg).toContain('stroke-dasharray="8 5"'); // dashed ghost boundary
+ });
- expect(svg).toContain(TONE_STYLES.portal.border);
- expect(svg).toContain(TONE_STYLES.portal.band);
+ it("test_svg_export_entry_accent: entry points render the ember gradient", () => {
+ const entry = makeArchFileNode("e1", "file");
+ (entry.data as { node: { is_entry_point: boolean } }).node.is_entry_point = true;
+ const svg = buildC4Svg([entry], []);
+ expect(svg).toContain("url(#kg-ember)");
+ expect(svg).toContain("#f59520");
});
it("test_svg_export_backward_compat: existing C4 node types still render", () => {
diff --git a/packages/ui/__tests__/c4/fixtures.ts b/packages/ui/__tests__/c4/fixtures.ts
index 8edede745..3dad46c0b 100644
--- a/packages/ui/__tests__/c4/fixtures.ts
+++ b/packages/ui/__tests__/c4/fixtures.ts
@@ -5,8 +5,8 @@ export function createMockView(overrides?: Partial<ArchitectureView>): Architect
project_name: "test-project",
project_description: "A test project",
layers: [
- { id: "layer:api", name: "API", description: "API layer", node_ids: ["src/app.py", "src/routes.py"], file_count: 2, complexity_distribution: { simple: 1, moderate: 1, complex: 0 }, health_score: 85 },
- { id: "layer:core", name: "Core", description: "Core logic", node_ids: ["src/models.py"], file_count: 1, complexity_distribution: { simple: 0, moderate: 0, complex: 1 }, health_score: 72 },
+ { id: "layer:api", name: "API", description: "API layer", node_ids: ["src/app.py", "src/routes.py"], file_count: 2, complexity_distribution: { simple: 1, moderate: 1, complex: 0 }, health_score: 85, sub_groups: [], display_order: 0 },
+ { id: "layer:core", name: "Core", description: "Core logic", node_ids: ["src/models.py"], file_count: 1, complexity_distribution: { simple: 0, moderate: 0, complex: 1 }, health_score: 72, sub_groups: [], display_order: 1 },
],
nodes: [
{ id: "src/app.py", node_type: "file", name: "app.py", file_path: "src/app.py", line_range: null, summary: "Main application entry point", complexity: "simple", tags: ["python", "entry"], language: "python", pagerank: 0.5, pagerank_percentile: 90, betweenness: 0.3, in_degree: 2, out_degree: 3, community_id: 1, is_entry_point: true, is_test: false, is_hotspot: false, is_dead: false, has_doc: true, primary_owner: "dev1", primary_owner_pct: 0.75, bus_factor: 2 },
@@ -19,9 +19,9 @@ export function createMockView(overrides?: Partial<ArchitectureView>): Architect
{ source: "src/routes.py", target: "src/models.py", edge_type: "calls", direction: "forward", weight: 0.8, confidence: 0.9 },
],
tour: [
- { order: 1, title: "Entry Point", description: "Start here", node_ids: ["src/app.py"] },
- { order: 2, title: "Routes", description: "HTTP handlers", node_ids: ["src/routes.py"] },
- { order: 3, title: "Models", description: "Data layer", node_ids: ["src/models.py"] },
+ { order: 1, title: "Entry Point", description: "Start here", node_ids: ["src/app.py"], target_path: null, layer_id: null, reason: "", depth: null, kind: "" as const, page_type: null },
+ { order: 2, title: "Routes", description: "HTTP handlers", node_ids: ["src/routes.py"], target_path: null, layer_id: null, reason: "", depth: null, kind: "" as const, page_type: null },
+ { order: 3, title: "Models", description: "Data layer", node_ids: ["src/models.py"], target_path: null, layer_id: null, reason: "", depth: null, kind: "" as const, page_type: null },
],
total_files: 3,
total_symbols: 25,
@@ -29,6 +29,8 @@ export function createMockView(overrides?: Partial<ArchitectureView>): Architect
languages: ["python"],
frameworks: ["fastapi"],
external_systems: [],
+ entry_points: [],
+ entry_candidates: [],
...overrides,
};
}
diff --git a/packages/ui/__tests__/c4/graph-primitives.test.ts b/packages/ui/__tests__/c4/graph-primitives.test.ts
index 8a46c39fc..0481ca853 100644
--- a/packages/ui/__tests__/c4/graph-primitives.test.ts
+++ b/packages/ui/__tests__/c4/graph-primitives.test.ts
@@ -46,12 +46,14 @@ describe("ARCH_NODE_SIZES", () => {
});
describe("edge stroke width formula", () => {
+ // Blueprint edges are thin by design (kg-ux plan §2.3): 1px floor,
+ // gentle log growth, 2.5px cap so heavy aggregates never dominate.
it("returns expected values for various counts", () => {
- expect(computeEdgeStrokeWidth(0)).toBeCloseTo(1.5);
- expect(computeEdgeStrokeWidth(1)).toBeCloseTo(2.5);
- expect(computeEdgeStrokeWidth(5)).toBeCloseTo(1.5 + Math.log2(6));
- expect(computeEdgeStrokeWidth(15)).toBe(5);
- expect(computeEdgeStrokeWidth(100)).toBe(5); // capped at 5
- expect(computeEdgeStrokeWidth(1000)).toBe(5); // still capped
+ expect(computeEdgeStrokeWidth(0)).toBeCloseTo(1);
+ expect(computeEdgeStrokeWidth(1)).toBeCloseTo(1.5);
+ expect(computeEdgeStrokeWidth(5)).toBeCloseTo(1 + Math.log2(6) * 0.5);
+ expect(computeEdgeStrokeWidth(15)).toBe(2.5);
+ expect(computeEdgeStrokeWidth(100)).toBe(2.5); // capped at 2.5
+ expect(computeEdgeStrokeWidth(1000)).toBe(2.5); // still capped
});
});
diff --git a/packages/ui/__tests__/c4/layer-groups-tier.test.tsx b/packages/ui/__tests__/c4/layer-groups-tier.test.tsx
new file mode 100644
index 000000000..af5372822
--- /dev/null
+++ b/packages/ui/__tests__/c4/layer-groups-tier.test.tsx
@@ -0,0 +1,378 @@
+/**
+ * The curated "layer-groups" navigation tier (viewer plan B-2).
+ *
+ * Overview → layer cards; drilling into a layer with curated sub_groups lands
+ * on sub-group cards only; drilling into one group shows its files with the
+ * sibling groups as collapsed cards. Layers without sub-groups skip the tier
+ * entirely (locked decision 1).
+ */
+import { describe, it, expect, beforeEach } from "vitest";
+import { act, renderHook, waitFor } from "@testing-library/react";
+import { useArchitectureStore } from "../../src/c4/store/use-architecture-store";
+import { useArchitectureLayout } from "../../src/c4/hooks/use-architecture-layout";
+import { createMockView } from "./fixtures";
+import type { ArchitectureView } from "../../src/c4/types";
+
+const store = useArchitectureStore;
+
+/** Fixture view: layer:api curated into two sub-groups, layer:core uncurated. */
+function createCuratedView(): ArchitectureView {
+ const base = createMockView();
+ return {
+ ...base,
+ layers: [
+ {
+ ...base.layers[0]!,
+ id: "layer:api",
+ name: "API",
+ node_ids: ["src/app.py", "src/routes.py"],
+ sub_groups: [
+ { id: "layer:api:app", name: "app", node_ids: ["src/app.py"] },
+ { id: "layer:api:routes", name: "routes", node_ids: ["src/routes.py"] },
+ ],
+ display_order: 0,
+ },
+ {
+ ...base.layers[1]!,
+ id: "layer:core",
+ name: "Core",
+ node_ids: ["src/models.py"],
+ sub_groups: [],
+ display_order: 1,
+ },
+ ],
+ };
+}
+
+beforeEach(() => {
+ store.setState(store.getInitialState());
+});
+
+describe("store: layer-groups navigation", () => {
+ it("drillIntoLayer lands on layer-groups when the layer has sub_groups", () => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:api");
+ const state = store.getState();
+ expect(state.navigationLevel).toBe("layer-groups");
+ expect(state.activeLayerId).toBe("layer:api");
+ expect(state.activeSubGroupId).toBeNull();
+ });
+
+ it("drillIntoLayer skips the tier for layers without sub_groups (decision 1)", () => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:core");
+ expect(store.getState().navigationLevel).toBe("layer-detail");
+ expect(store.getState().activeSubGroupId).toBeNull();
+ });
+
+ it("drillIntoSubGroup scopes layer-detail to the group", () => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:api");
+ store.getState().drillIntoSubGroup("layer:api:app");
+ const state = store.getState();
+ expect(state.navigationLevel).toBe("layer-detail");
+ expect(state.activeLayerId).toBe("layer:api");
+ expect(state.activeSubGroupId).toBe("layer:api:app");
+ });
+
+ it("drillOut steps detail → groups → overview", () => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:api");
+ store.getState().drillIntoSubGroup("layer:api:app");
+
+ store.getState().drillOut();
+ expect(store.getState().navigationLevel).toBe("layer-groups");
+ expect(store.getState().activeLayerId).toBe("layer:api");
+ expect(store.getState().activeSubGroupId).toBeNull();
+
+ store.getState().drillOut();
+ expect(store.getState().navigationLevel).toBe("overview");
+ expect(store.getState().activeLayerId).toBeNull();
+ });
+
+ it("drillOut from an uncurated layer goes straight to overview", () => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:core");
+ store.getState().drillOut();
+ expect(store.getState().navigationLevel).toBe("overview");
+ });
+
+ it("selectNode auto-drills to the node's layer AND sub-group", () => {
+ store.getState().setView(createCuratedView());
+ store.getState().selectNode("src/routes.py");
+ const state = store.getState();
+ expect(state.navigationLevel).toBe("layer-detail");
+ expect(state.activeLayerId).toBe("layer:api");
+ expect(state.activeSubGroupId).toBe("layer:api:routes");
+ expect(state.selectedNodeId).toBe("src/routes.py");
+ });
+
+ it("tour steps drill into the step node's sub-group", () => {
+ store.getState().setView(createCuratedView());
+ store.getState().startTour();
+ // First tour step targets src/app.py (fixture).
+ expect(store.getState().activeSubGroupId).toBe("layer:api:app");
+ store.getState().nextTourStep();
+ expect(store.getState().activeSubGroupId).toBe("layer:api:routes");
+ });
+});
+
+describe("layout: visible-box budget + test-layer demotion (B-5)", () => {
+ it("caps the layer-groups tier at 12 cards with a '+N more groups' card", async () => {
+ const view = createCuratedView();
+ // 16 single-file sub-groups, each with a distinct pagerank.
+ const fileIds = Array.from({ length: 16 }, (_, i) => `src/big/f${i}.py`);
+ view.nodes = [
+ ...view.nodes,
+ ...fileIds.map((id, i) => ({
+ ...view.nodes[0]!,
+ id,
+ file_path: id,
+ pagerank: 1 - i * 0.05,
+ })),
+ ];
+ view.layers = [
+ {
+ ...view.layers[0]!,
+ id: "layer:big",
+ name: "Big",
+ node_ids: fileIds,
+ sub_groups: fileIds.map((id, i) => ({
+ id: `layer:big:g${i}`,
+ name: `g${i}`,
+ node_ids: [id],
+ })),
+ },
+ ];
+ act(() => {
+ store.getState().setView(view);
+ store.getState().drillIntoLayer("layer:big");
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ const cards = result.current.nodes.filter((n) => n.type === "subGroupCluster");
+ expect(cards.length).toBeLessThanOrEqual(12);
+ const more = cards.find((n) => n.id === "layer:big:__more");
+ expect(more).toBeDefined();
+ expect((more!.data as { layer: { name: string } }).layer.name).toBe("+5 more groups");
+ // The strongest groups stay visible; the weakest fold into "+N more".
+ expect(cards.some((n) => n.id === "layer:big:g0")).toBe(true);
+ expect(cards.some((n) => n.id === "layer:big:g15")).toBe(false);
+ });
+
+ it("demotes the Test layer card by default and restores it via showTests", async () => {
+ const view = createCuratedView();
+ view.layers = [
+ ...view.layers,
+ {
+ ...view.layers[1]!,
+ id: "layer:test",
+ name: "Test",
+ node_ids: [],
+ sub_groups: [],
+ display_order: 9,
+ },
+ ];
+ act(() => {
+ store.getState().setView(view);
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+ const testCard = () => result.current.nodes.find((n) => n.id === "layer:test")!;
+ expect((testCard().data as { demoted?: boolean }).demoted).toBe(true);
+ // Other layers are not demoted.
+ const api = result.current.nodes.find((n) => n.id === "layer:api")!;
+ expect((api.data as { demoted?: boolean }).demoted).toBe(false);
+
+ act(() => {
+ store.getState().setShowTests(true);
+ });
+ await waitFor(() => {
+ expect((testCard().data as { demoted?: boolean }).demoted).toBe(false);
+ });
+ });
+});
+
+describe("layout: curated overview stacking", () => {
+ it("stacks layer cards by display_order, not edge direction", async () => {
+ const view = createCuratedView();
+ // Curated order says API (0) above Core (1); add a contrarian edge
+ // core → api that unseeded ELK would stack the other way.
+ view.edges = [
+ ...view.edges,
+ {
+ source: "src/models.py",
+ target: "src/app.py",
+ edge_type: "imports",
+ direction: "forward",
+ weight: 1,
+ confidence: 1,
+ },
+ ];
+ act(() => {
+ store.getState().setView(view);
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ const api = result.current.nodes.find((n) => n.id === "layer:api")!;
+ const core = result.current.nodes.find((n) => n.id === "layer:core")!;
+ expect(api.position.y).toBeLessThan(core.position.y);
+ });
+});
+
+describe("layout: layer-groups tier", () => {
+ it("renders only sub-group cards (+ portals) — never file cards", async () => {
+ act(() => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:api");
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.loading).toBe(false);
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ const types = result.current.nodes.map((n) => n.type);
+ expect(types).not.toContain("archFile");
+ expect(types.filter((t) => t === "subGroupCluster")).toHaveLength(2);
+ // Cross-layer edges to layer:core collapse into a portal stub.
+ expect(types).toContain("portal");
+
+ const cardIds = result.current.nodes.map((n) => n.id);
+ expect(cardIds).toContain("layer:api:app");
+ expect(cardIds).toContain("layer:api:routes");
+
+ // One aggregated, labelled arrow between the two visible cards.
+ const aggEdge = result.current.edges.find(
+ (e) => e.source === "layer:api:app" && e.target === "layer:api:routes",
+ );
+ expect(aggEdge).toBeDefined();
+ });
+
+ it("collects curation leftovers into an 'Other files' card", async () => {
+ const view = createCuratedView();
+ view.layers[0]!.sub_groups = [
+ { id: "layer:api:app", name: "app", node_ids: ["src/app.py"] },
+ ];
+ act(() => {
+ store.getState().setView(view);
+ store.getState().drillIntoLayer("layer:api");
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ const ungrouped = result.current.nodes.find((n) => n.id === "layer:api:__ungrouped");
+ expect(ungrouped).toBeDefined();
+ expect(ungrouped!.type).toBe("subGroupCluster");
+ expect((ungrouped!.data as { layer: { node_ids: string[] } }).layer.node_ids).toEqual([
+ "src/routes.py",
+ ]);
+ });
+
+ it("layer-detail scoped to one group shows its files + sibling collapsed cards", async () => {
+ act(() => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:api");
+ store.getState().drillIntoSubGroup("layer:api:app");
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ const fileIds = result.current.nodes.filter((n) => n.type === "archFile").map((n) => n.id);
+ expect(fileIds).toEqual(["src/app.py"]); // scoped — never the whole layer
+
+ const sibling = result.current.nodes.find((n) => n.id === "layer:api:routes");
+ expect(sibling).toBeDefined();
+ expect(sibling!.type).toBe("subGroupCluster");
+
+ // The in-layer cross-group edge aggregates file/card → sibling card.
+ const toSibling = result.current.edges.find((e) => e.target === "layer:api:routes");
+ expect(toSibling).toBeDefined();
+ });
+
+ it("uncurated layers keep today's layer-detail behaviour", async () => {
+ act(() => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:core");
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ const types = result.current.nodes.map((n) => n.type);
+ expect(types).toContain("archFile");
+ expect(types).not.toContain("subGroupCluster");
+ });
+});
+
+describe("scope frame — dashed 'you are here' boundary (kg-ux plan B4)", () => {
+ it("wraps the groups tier in a frame labeled with the layer name", async () => {
+ act(() => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:api");
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ const frame = result.current.nodes.find((n) => n.type === "scopeFrame");
+ expect(frame).toBeDefined();
+ expect((frame!.data as { label: string }).label).toBe("API");
+ // Pure underlay: behind cards, never interactive.
+ expect(frame!.zIndex).toBe(-1);
+ expect(frame!.selectable).toBe(false);
+ expect(frame!.draggable).toBe(false);
+ });
+
+ it("labels the detail-tier frame 'Layer › Group' when a sub-group is active", async () => {
+ act(() => {
+ store.getState().setView(createCuratedView());
+ store.getState().drillIntoLayer("layer:api");
+ store.getState().drillIntoSubGroup("layer:api:app");
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ const frame = result.current.nodes.find((n) => n.type === "scopeFrame");
+ expect(frame).toBeDefined();
+ expect((frame!.data as { label: string }).label).toBe("API › app");
+ });
+
+ it("draws no frame on the overview tier", async () => {
+ act(() => {
+ store.getState().setView(createCuratedView());
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ expect(result.current.nodes.find((n) => n.type === "scopeFrame")).toBeUndefined();
+ });
+});
diff --git a/packages/ui/__tests__/c4/learn-panel-tour.test.tsx b/packages/ui/__tests__/c4/learn-panel-tour.test.tsx
new file mode 100644
index 000000000..b1a10ab93
--- /dev/null
+++ b/packages/ui/__tests__/c4/learn-panel-tour.test.tsx
@@ -0,0 +1,124 @@
+/**
+ * Tour wiring end-to-end (viewer plan C-2): LearnPanel renders the curated
+ * step fields (reason as body, layer pill, kind icon), the canvas follows
+ * the step's layer/sub-group, and the highlighted node carries a numbered
+ * step badge. Curated text is sentinel-tagged so we know the rendered
+ * content came from the artifact, not a heuristic.
+ */
+import { describe, it, expect, beforeEach } from "vitest";
+import { act, render, renderHook, waitFor } from "@testing-library/react";
+import { LearnPanel } from "../../src/c4/panels/LearnPanel";
+import { useArchitectureStore } from "../../src/c4/store/use-architecture-store";
+import { useArchitectureLayout } from "../../src/c4/hooks/use-architecture-layout";
+import { createMockView } from "./fixtures";
+import type { ArchitectureView } from "../../src/c4/types";
+
+const store = useArchitectureStore;
+
+beforeEach(() => {
+ store.setState(store.getInitialState());
+});
+
+function createCuratedTourView(): ArchitectureView {
+ const base = createMockView();
+ return {
+ ...base,
+ tour: [
+ {
+ order: 1,
+ title: "app.py",
+ description: "",
+ node_ids: ["src/app.py"],
+ target_path: "src/app.py",
+ layer_id: "layer:api",
+ reason: "SENTINEL-REASON: top of the stack, start here.",
+ depth: 0,
+ kind: "code",
+ page_type: "file_page",
+ },
+ {
+ order: 2,
+ title: "models.py",
+ description: "",
+ node_ids: ["src/models.py"],
+ target_path: "src/models.py",
+ layer_id: "layer:core",
+ reason: "SENTINEL-REASON: foundational layer.",
+ depth: 1,
+ kind: "code",
+ page_type: "file_page",
+ },
+ ],
+ };
+}
+
+describe("LearnPanel with curated tour steps", () => {
+ it("renders reason as the step body, with layer pill and kind icon", () => {
+ act(() => {
+ store.getState().setView(createCuratedTourView());
+ store.getState().startTour();
+ });
+ const { getByText, getByLabelText } = render(<LearnPanel />);
+
+ expect(getByText("SENTINEL-REASON: top of the stack, start here.")).toBeDefined();
+ expect(getByText("API")).toBeDefined(); // layer pill
+ expect(getByLabelText("Code step")).toBeDefined(); // kind icon
+ });
+
+ it("falls back to description for legacy LLM steps", () => {
+ act(() => {
+ store.getState().setView(createMockView()); // legacy fixture tour
+ store.getState().startTour();
+ });
+ const { getByText } = render(<LearnPanel />);
+ expect(getByText("Start here")).toBeDefined();
+ });
+});
+
+describe("canvas follows the tour", () => {
+ it("each step drills the canvas to the step's layer", () => {
+ act(() => {
+ store.getState().setView(createCuratedTourView());
+ store.getState().startTour();
+ });
+ expect(store.getState().activeLayerId).toBe("layer:api");
+
+ act(() => {
+ store.getState().nextTourStep();
+ });
+ expect(store.getState().activeLayerId).toBe("layer:core");
+ expect(store.getState().selectedNodeId).toBe("src/models.py");
+ });
+
+ it("uses the curated layer_id when the step's node is not in the graph", () => {
+ const view = createCuratedTourView();
+ view.tour[0]!.node_ids = ["ghost/file.py"];
+ view.tour[0]!.target_path = "ghost/file.py";
+ act(() => {
+ store.getState().setView(view);
+ store.getState().startTour();
+ });
+ expect(store.getState().navigationLevel).toBe("layer-detail");
+ expect(store.getState().activeLayerId).toBe("layer:api");
+ });
+
+ it("puts a numbered step badge on the highlighted node", async () => {
+ act(() => {
+ store.getState().setView(createCuratedTourView());
+ store.getState().startTour();
+ store.getState().nextTourStep(); // step 2 → src/models.py in layer:core
+ });
+ const { result } = renderHook(() => useArchitectureLayout());
+
+ await waitFor(() => {
+ expect(result.current.nodes.length).toBeGreaterThan(0);
+ });
+
+ const target = result.current.nodes.find((n) => n.id === "src/models.py")!;
+ expect((target.data as { tourStepNumber?: number }).tourStepNumber).toBe(2);
+ const other = result.current.nodes.find((n) => n.id !== "src/models.py" && n.type === "archFile");
+ if (other) {
+ expect((other.data as { tourStepNumber?: number }).tourStepNumber).toBeUndefined();
+ }
+ });
+});
diff --git a/packages/ui/__tests__/c4/project-overview.test.tsx b/packages/ui/__tests__/c4/project-overview.test.tsx
new file mode 100644
index 000000000..50b44f339
--- /dev/null
+++ b/packages/ui/__tests__/c4/project-overview.test.tsx
@@ -0,0 +1,92 @@
+/**
+ * Orientation-first ProjectOverview (viewer plan C-1): summary, Start tour
+ * CTA, clickable entry points, layer stack mini-map — stats below the fold.
+ */
+import { describe, it, expect, beforeEach } from "vitest";
+import { render, fireEvent } from "@testing-library/react";
+import { ProjectOverview } from "../../src/c4/panels/ProjectOverview";
+import { useArchitectureStore } from "../../src/c4/store/use-architecture-store";
+import { createMockView } from "./fixtures";
+
+const store = useArchitectureStore;
+
+beforeEach(() => {
+ store.setState(store.getInitialState());
+});
+
+function setCuratedView() {
+ const view = createMockView({
+ entry_points: ["src/app.py", "src/routes.py"],
+ });
+ store.getState().setView(view);
+ return view;
+}
+
+describe("ProjectOverview (orientation-first)", () => {
+ it("leads with Start tour, entry points and the layer stack", () => {
+ setCuratedView();
+ const { getByText, getByLabelText } = render(<ProjectOverview />);
+
+ const tourButton = getByText(/Start tour \(3 steps\)/);
+ const entryPoint = getByLabelText("Open entry point src/app.py");
+ const layerRow = getByLabelText("Explore layer API");
+ const stats = getByText("Stats");
+
+ // Orientation content appears above the stats fold in DOM order.
+ expect(
+ tourButton.compareDocumentPosition(stats) & Node.DOCUMENT_POSITION_FOLLOWING,
+ ).toBeTruthy();
+ expect(
+ entryPoint.compareDocumentPosition(stats) & Node.DOCUMENT_POSITION_FOLLOWING,
+ ).toBeTruthy();
+ expect(
+ layerRow.compareDocumentPosition(stats) & Node.DOCUMENT_POSITION_FOLLOWING,
+ ).toBeTruthy();
+ });
+
+ it("clicking an entry point selects (and auto-drills to) the node", () => {
+ setCuratedView();
+ const { getByLabelText } = render(<ProjectOverview />);
+
+ fireEvent.click(getByLabelText("Open entry point src/app.py"));
+ expect(store.getState().selectedNodeId).toBe("src/app.py");
+ expect(store.getState().activeLayerId).toBe("layer:api");
+ });
+
+ it("clicking a layer row drills into the layer", () => {
+ setCuratedView();
+ const { getByLabelText } = render(<ProjectOverview />);
+
+ fireEvent.click(getByLabelText("Explore layer Core"));
+ expect(store.getState().activeLayerId).toBe("layer:core");
+ });
+
+ it("orders the layer stack by curated display_order", () => {
+ const view = createMockView();
+ // Reverse the natural order: Core(0) above API(1).
+ view.layers[0]!.display_order = 1;
+ view.layers[1]!.display_order = 0;
+ store.getState().setView(view);
+ const { getByLabelText } = render(<ProjectOverview />);
+
+ const api = getByLabelText("Explore layer API");
+ const core = getByLabelText("Explore layer Core");
+ expect(
+ core.compareDocumentPosition(api) & Node.DOCUMENT_POSITION_FOLLOWING,
+ ).toBeTruthy();
+ });
+
+ it("starting the tour from the CTA activates it", () => {
+ setCuratedView();
+ const { getByText } = render(<ProjectOverview />);
+
+ fireEvent.click(getByText(/Start tour/));
+ expect(store.getState().tourActive).toBe(true);
+ });
+
+ it("hides entry points section for uncurated repos", () => {
+ store.getState().setView(createMockView());
+ const { queryByText } = render(<ProjectOverview />);
+ expect(queryByText("Entry points")).toBeNull();
+ });
+});
diff --git a/packages/ui/__tests__/c4/search-filter-tour.test.tsx b/packages/ui/__tests__/c4/search-filter-tour.test.tsx
index b879bb8c9..92f2daa35 100644
--- a/packages/ui/__tests__/c4/search-filter-tour.test.tsx
+++ b/packages/ui/__tests__/c4/search-filter-tour.test.tsx
@@ -9,7 +9,10 @@ import { PersonaSelector } from "../../src/c4/panels/PersonaSelector";
import { fuzzyMatch, scoreField } from "../../src/c4/utils/fuzzy-match";
import { createMockView } from "./fixtures";
-vi.mock("lucide-react", () => ({
+vi.mock("lucide-react", async (importOriginal) => ({
+ // Partial mock: kind-icons.ts pulls many glyphs; only the ones these
+ // tests assert on are replaced with testid stubs.
+ ...(await importOriginal<typeof import("lucide-react")>()),
Search: ({ size }: { size?: number }) => <span data-testid="icon-search">S</span>,
Filter: ({ size }: { size?: number }) => <span data-testid="icon-filter">F</span>,
Compass: ({ size }: { size?: number }) => <span data-testid="icon-compass">C</span>,
diff --git a/packages/ui/__tests__/c4/sidebar.test.tsx b/packages/ui/__tests__/c4/sidebar.test.tsx
index 7a1bd4568..9068c92c9 100644
--- a/packages/ui/__tests__/c4/sidebar.test.tsx
+++ b/packages/ui/__tests__/c4/sidebar.test.tsx
@@ -87,17 +87,17 @@ describe("ProjectOverview", () => {
expect(screen.getByText("fastapi")).toBeInTheDocument();
});
- it("shows Start Guided Tour button when tour exists", () => {
+ it("shows Start tour button when tour exists", () => {
act(() => store.getState().setView(mockView));
render(<ProjectOverview />);
- expect(screen.getByText("Start Guided Tour (3 steps)")).toBeInTheDocument();
+ expect(screen.getByText("Start tour (3 steps)")).toBeInTheDocument();
});
it("hides tour button when tour is empty", () => {
const viewNoTour = { ...mockView, tour: [] };
act(() => store.getState().setView(viewNoTour));
render(<ProjectOverview />);
- expect(screen.queryByText(/Start Guided Tour/)).not.toBeInTheDocument();
+ expect(screen.queryByText(/Start tour/)).not.toBeInTheDocument();
});
it("hides tour button when tour is already active", () => {
@@ -106,7 +106,7 @@ describe("ProjectOverview", () => {
store.getState().startTour();
});
render(<ProjectOverview />);
- expect(screen.queryByText(/Start Guided Tour/)).not.toBeInTheDocument();
+ expect(screen.queryByText(/Start tour/)).not.toBeInTheDocument();
});
it("shows most connected nodes sorted by degree", () => {
diff --git a/packages/ui/__tests__/c4/theme-mobile.test.tsx b/packages/ui/__tests__/c4/theme-mobile.test.tsx
index 2e911a072..e522fe4bc 100644
--- a/packages/ui/__tests__/c4/theme-mobile.test.tsx
+++ b/packages/ui/__tests__/c4/theme-mobile.test.tsx
@@ -77,9 +77,9 @@ describe("Theme Variables", () => {
expect(THEME.accent.primary).toContain("--color-accent-primary");
expect(THEME.selection).toBeDefined();
expect(THEME.complexity).toBeDefined();
- expect(THEME.complexity.simple).toBe("#22c55e");
- expect(THEME.complexity.moderate).toBe("#f59e0b");
- expect(THEME.complexity.complex).toBe("#ef4444");
+ expect(THEME.complexity.simple).toContain("--color-success");
+ expect(THEME.complexity.moderate).toContain("--color-warning");
+ expect(THEME.complexity.complex).toContain("--color-error");
expect(THEME.diff).toBeDefined();
expect(THEME.font).toBeDefined();
expect(THEME.radius).toBeDefined();
diff --git a/packages/ui/__tests__/c4/two-stage-layout.test.ts b/packages/ui/__tests__/c4/two-stage-layout.test.ts
index 7baf94f7e..19b48122f 100644
--- a/packages/ui/__tests__/c4/two-stage-layout.test.ts
+++ b/packages/ui/__tests__/c4/two-stage-layout.test.ts
@@ -1,6 +1,8 @@
import { describe, it, expect } from "vitest";
import {
+ assignSlotsByRank,
computeStage1Layout,
+ hoistPrioritySlots,
computeStage2Layout,
repairElkInput,
estimateContainerSize,
@@ -143,3 +145,87 @@ describe("computeStage2Layout", () => {
expect(result.actualSize.height).toBe(0);
});
});
+
+describe("assignSlotsByRank (curated display_order, plan B-4)", () => {
+ function pos(x: number, y: number) {
+ return { x, y, width: 360, height: 220 };
+ }
+
+ it("re-ranks card slots even when edges stacked them the other way", () => {
+ // ELK stacked persistence above ui (edge persistence → ui); the curated
+ // ranks say ui(0) < service(1) < persistence(2) top→bottom.
+ const positions = new Map([
+ ["layer:persistence", pos(20, 40)],
+ ["layer:ui", pos(20, 340)],
+ ["layer:service", pos(20, 640)],
+ ]);
+ const ranks = new Map([
+ ["layer:ui", 0],
+ ["layer:service", 1],
+ ["layer:persistence", 2],
+ ]);
+ const out = assignSlotsByRank(positions, ranks);
+ expect(out.get("layer:ui")!.y).toBeLessThan(out.get("layer:service")!.y);
+ expect(out.get("layer:service")!.y).toBeLessThan(out.get("layer:persistence")!.y);
+ // The slot set itself is preserved — only the occupants change.
+ const ys = [...out.values()].map((p) => p.y).sort((a, b) => a - b);
+ expect(ys).toEqual([40, 340, 640]);
+ });
+
+ it("reads same-row slots left→right by rank", () => {
+ const positions = new Map([
+ ["b", pos(440, 40)],
+ ["a", pos(20, 40)],
+ ["c", pos(20, 340)],
+ ]);
+ const ranks = new Map([["a", 0], ["b", 1], ["c", 2]]);
+ const out = assignSlotsByRank(positions, ranks);
+ expect(out.get("a")).toEqual(pos(20, 40));
+ expect(out.get("b")).toEqual(pos(440, 40));
+ expect(out.get("c")).toEqual(pos(20, 340));
+ });
+
+ it("leaves unranked entries (portals) and tiny inputs untouched", () => {
+ const positions = new Map([
+ ["layer:a", pos(20, 40)],
+ ["portal:x", { x: 500, y: 40, width: 180, height: 60 }],
+ ]);
+ const out = assignSlotsByRank(positions, new Map([["layer:a", 0]]));
+ expect(out).toEqual(positions);
+ });
+});
+
+describe("hoistPrioritySlots (entry-point anchoring, plan C-3)", () => {
+ const children = [
+ { id: "a.py", width: 300, height: 140 },
+ { id: "b.py", width: 300, height: 140 },
+ { id: "main.py", width: 300, height: 140 },
+ { id: "conf.yaml", width: 240, height: 100 },
+ ];
+
+ it("bubbles entry points to the top-left slot of their size group", () => {
+ const positions = new Map([
+ ["a.py", { x: 20, y: 20 }],
+ ["b.py", { x: 20, y: 180 }],
+ ["main.py", { x: 20, y: 340 }],
+ ["conf.yaml", { x: 360, y: 20 }],
+ ]);
+ const out = hoistPrioritySlots(positions, children, (id) => id === "main.py");
+
+ expect(out.get("main.py")).toEqual({ x: 20, y: 20 });
+ // Non-priority nodes keep their relative order in the remaining slots.
+ expect(out.get("a.py")).toEqual({ x: 20, y: 180 });
+ expect(out.get("b.py")).toEqual({ x: 20, y: 340 });
+ // Different-size nodes are never disturbed (overlap safety).
+ expect(out.get("conf.yaml")).toEqual({ x: 360, y: 20 });
+ });
+
+ it("is a no-op when no priority node is present", () => {
+ const positions = new Map([
+ ["a.py", { x: 20, y: 20 }],
+ ["b.py", { x: 20, y: 180 }],
+ ]);
+ const out = hoistPrioritySlots(positions, children, () => false);
+ expect(out).toEqual(positions);
+ });
+});
diff --git a/packages/ui/__tests__/docs/docs-tree.test.tsx b/packages/ui/__tests__/docs/docs-tree.test.tsx
index cf7cf6f22..de8fee0fe 100644
--- a/packages/ui/__tests__/docs/docs-tree.test.tsx
+++ b/packages/ui/__tests__/docs/docs-tree.test.tsx
@@ -58,4 +58,66 @@ describe("DocsTree", () => {
fireEvent.click(screen.getByText("x.ts"));
expect(onSelectPage).toHaveBeenCalledWith(target);
});
+
+ it("claims deep files for their nearest module ancestor", () => {
+ const mod = makePage({
+ id: "module_page:core/ingestion",
+ page_type: "module_page",
+ title: "Module: core/ingestion",
+ target_path: "core/ingestion",
+ });
+ const deepFile = makePage({
+ id: "file_page:core/ingestion/resolvers/dotnet/index.py",
+ page_type: "file_page",
+ title: "index.py",
+ target_path: "core/ingestion/resolvers/dotnet/index.py",
+ });
+ render(
+ <DocsTree
+ pages={[mod, deepFile]}
+ selectedPageId={null}
+ onSelectPage={() => {}}
+ />,
+ );
+ // Curated module name renders (path-shaped, not a raw graph id).
+ const modNode = screen.getByText("core/ingestion");
+ expect(modNode).toBeInTheDocument();
+ // Expanding the module reveals the deep file, named relative to the
+ // module dir so nested files stay unambiguous.
+ fireEvent.click(modNode);
+ expect(
+ screen.getByText("resolvers/dotnet/index.py"),
+ ).toBeInTheDocument();
+ });
+
+ it("prefers the deepest module when modules nest", () => {
+ const outer = makePage({
+ id: "module_page:core",
+ page_type: "module_page",
+ title: "Module: core",
+ target_path: "core",
+ });
+ const inner = makePage({
+ id: "module_page:core/ingestion",
+ page_type: "module_page",
+ title: "Module: core/ingestion",
+ target_path: "core/ingestion",
+ });
+ const file = makePage({
+ id: "file_page:core/ingestion/parser.py",
+ page_type: "file_page",
+ title: "parser.py",
+ target_path: "core/ingestion/parser.py",
+ });
+ render(
+ <DocsTree
+ pages={[outer, inner, file]}
+ selectedPageId={null}
+ onSelectPage={() => {}}
+ />,
+ );
+ fireEvent.click(screen.getByText("core/ingestion"));
+ // File appears under the inner module (relative name), not the outer one.
+ expect(screen.getByText("parser.py")).toBeInTheDocument();
+ });
});
diff --git a/packages/ui/__tests__/graph/constants.test.ts b/packages/ui/__tests__/graph/constants.test.ts
index 73d0f4920..7e1a7ad65 100644
--- a/packages/ui/__tests__/graph/constants.test.ts
+++ b/packages/ui/__tests__/graph/constants.test.ts
@@ -2,9 +2,12 @@ import { describe, it, expect } from "vitest";
import {
getScaledNodeSize,
EDGE_COLORS,
- COMMUNITY_COLORS,
- getCommunityColor,
+ EDGE_COLORS_BY_THEME,
+ edgeColorsForTheme,
NODE_BASE_SIZES,
+ getLayoutDuration,
+ getLabelDensity,
+ getLabelRenderedSizeThreshold,
} from "../../src/graph/sigma/constants";
describe("getScaledNodeSize", () => {
@@ -25,30 +28,56 @@ describe("getScaledNodeSize", () => {
});
});
-describe("EDGE_COLORS", () => {
- it("has colors for all edge types", () => {
- const expectedTypes = ["import", "crossCommunity", "internal", "dynamic", "lowConfidence"];
- for (const t of expectedTypes) {
- expect(EDGE_COLORS).toHaveProperty(t);
- expect(EDGE_COLORS[t as keyof typeof EDGE_COLORS]).toMatch(/^#[0-9a-fA-F]{6}$/);
- }
+describe("getLayoutDuration", () => {
+ it("caps at 8s for graphs up to 2000 nodes", () => {
+ expect(getLayoutDuration(100)).toBe(8000);
+ expect(getLayoutDuration(2000)).toBe(8000);
+ });
+
+ it("caps at 12s above 2000 nodes", () => {
+ expect(getLayoutDuration(2001)).toBe(12000);
+ expect(getLayoutDuration(50000)).toBe(12000);
});
});
-describe("COMMUNITY_COLORS", () => {
- it("has 24 colors", () => {
- expect(COMMUNITY_COLORS).toHaveLength(24);
+describe("label density", () => {
+ it("uses 0.15 / 6px at or below 2000 nodes", () => {
+ expect(getLabelDensity(2000)).toBe(0.15);
+ expect(getLabelRenderedSizeThreshold(2000)).toBe(6);
});
- it("getCommunityColor wraps around correctly", () => {
- expect(getCommunityColor(0)).toBe(COMMUNITY_COLORS[0]);
- expect(getCommunityColor(24)).toBe(COMMUNITY_COLORS[0]);
- expect(getCommunityColor(1)).toBe(COMMUNITY_COLORS[1]);
+ it("uses 0.07 / 8px above 2000 nodes", () => {
+ expect(getLabelDensity(2001)).toBe(0.07);
+ expect(getLabelRenderedSizeThreshold(2001)).toBe(8);
});
+});
- it("all entries are valid hex colors", () => {
- for (const c of COMMUNITY_COLORS) {
- expect(c).toMatch(/^#[0-9a-fA-F]{6}$/);
+describe("EDGE_COLORS", () => {
+ const expectedTypes = ["import", "crossCommunity", "internal", "dynamic", "lowConfidence"];
+
+ it("has valid hex colors for all edge types in both themes", () => {
+ for (const theme of ["light", "dark"] as const) {
+ for (const t of expectedTypes) {
+ const palette = EDGE_COLORS_BY_THEME[theme];
+ expect(palette).toHaveProperty(t);
+ expect(palette[t as keyof typeof palette]).toMatch(/^#[0-9a-fA-F]{6}$/);
+ }
}
});
+
+ it("edgeColorsForTheme returns the per-theme palette and falls back to dark", () => {
+ expect(edgeColorsForTheme("light")).toBe(EDGE_COLORS_BY_THEME.light);
+ expect(edgeColorsForTheme("dark")).toBe(EDGE_COLORS_BY_THEME.dark);
+ // Default export mirrors the product default (dark) palette.
+ expect(EDGE_COLORS).toBe(EDGE_COLORS_BY_THEME.dark);
+ });
+
+ it("uses the warm semantic scheme: orange imports, plum cross-community", () => {
+ // import = brand orange in both themes
+ expect(EDGE_COLORS_BY_THEME.light.import).toBe("#f59520");
+ expect(EDGE_COLORS_BY_THEME.dark.import).toBe("#f59520");
+ // cross-community = plum (accent-secondary), different per theme
+ expect(EDGE_COLORS_BY_THEME.light.crossCommunity).toBe("#58436c");
+ expect(EDGE_COLORS_BY_THEME.dark.crossCommunity).toBe("#a98fc4");
+ });
});
diff --git a/packages/ui/__tests__/graph/constellation-adapter.test.ts b/packages/ui/__tests__/graph/constellation-adapter.test.ts
new file mode 100644
index 000000000..a078a3ed7
--- /dev/null
+++ b/packages/ui/__tests__/graph/constellation-adapter.test.ts
@@ -0,0 +1,326 @@
+import { describe, it, expect } from "vitest";
+import {
+ architectureToGraphology,
+ hubNodeId,
+ CORE_NODE_ID,
+ mergeCommunitySlice,
+ satelliteSizeFromPagerank,
+} from "../../src/graph/sigma/constellation-adapter";
+import type {
+ ArchitectureGraph,
+ ArchitectureNode,
+ CommunitySlice,
+ CommunitySliceNode,
+} from "@repowise-dev/types/graph";
+
+function makeArchNode(
+ overrides: Partial<ArchitectureNode> & { community_id: number },
+): ArchitectureNode {
+ return {
+ label: `community-${overrides.community_id}`,
+ cohesion: 0.5,
+ member_count: 10,
+ top_file: `src/mod${overrides.community_id}/index.ts`,
+ avg_pagerank: 0.1,
+ hotspot_count: 0,
+ dead_count: 0,
+ has_decision: false,
+ doc_coverage_pct: 0.5,
+ languages: ["typescript"],
+ ...overrides,
+ };
+}
+
+function makeArch(
+ nodes: ArchitectureNode[] = [],
+ edges: ArchitectureGraph["edges"] = [],
+): ArchitectureGraph {
+ return { nodes, edges };
+}
+
+describe("architectureToGraphology", () => {
+ it("handles an empty architecture graph (just the core node)", () => {
+ const g = architectureToGraphology(makeArch());
+ expect(g.order).toBe(1); // repo-core only
+ expect(g.hasNode(CORE_NODE_ID)).toBe(true);
+ expect(g.size).toBe(0);
+ });
+
+ it("adds one hub node per community plus the repo-core", () => {
+ const g = architectureToGraphology(
+ makeArch([
+ makeArchNode({ community_id: 0 }),
+ makeArchNode({ community_id: 1 }),
+ ]),
+ );
+ expect(g.order).toBe(3); // 2 hubs + core
+ expect(g.hasNode(hubNodeId(0))).toBe(true);
+ expect(g.hasNode(hubNodeId(1))).toBe(true);
+ expect(g.hasNode(CORE_NODE_ID)).toBe(true);
+ });
+
+ it("marks hubs with nodeType=hub, forceLabel, and an uppercase label", () => {
+ const g = architectureToGraphology(
+ makeArch([makeArchNode({ community_id: 0, label: "auth core" })]),
+ );
+ const attrs = g.getNodeAttributes(hubNodeId(0));
+ expect(attrs.nodeType).toBe("hub");
+ expect(attrs.forceLabel).toBe(true);
+ expect(attrs.label).toBe("AUTH CORE");
+ expect(attrs.memberCount).toBe(10);
+ });
+
+ it("falls back to dirname then Community N when label is blank", () => {
+ const fromFile = architectureToGraphology(
+ makeArch([
+ makeArchNode({ community_id: 0, label: "", top_file: "src/payments/api.ts" }),
+ ]),
+ );
+ expect(fromFile.getNodeAttributes(hubNodeId(0)).label).toBe("PAYMENTS");
+
+ const fromId = architectureToGraphology(
+ makeArch([makeArchNode({ community_id: 7, label: "", top_file: "" })]),
+ );
+ expect(fromId.getNodeAttributes(hubNodeId(7)).label).toBe("COMMUNITY 7");
+ });
+
+ it("sizes hubs within the 14–32 sigma-unit range", () => {
+ const g = architectureToGraphology(
+ makeArch([
+ makeArchNode({ community_id: 0, member_count: 1 }),
+ makeArchNode({ community_id: 1, member_count: 5000 }),
+ ]),
+ );
+ const small = g.getNodeAttributes(hubNodeId(0)).size;
+ const big = g.getNodeAttributes(hubNodeId(1)).size;
+ expect(small).toBeGreaterThanOrEqual(14);
+ expect(big).toBeLessThanOrEqual(32);
+ expect(big).toBeGreaterThan(small);
+ });
+
+ it("builds cross-community edges with crossCommunity kind and clamped size", () => {
+ const g = architectureToGraphology(
+ makeArch(
+ [
+ makeArchNode({ community_id: 0 }),
+ makeArchNode({ community_id: 1 }),
+ ],
+ [{ source: 0, target: 1, edge_count: 7 }],
+ ),
+ );
+ expect(g.size).toBe(1);
+ const edgeKey = hubNodeId(0) + "→" + hubNodeId(1);
+ const attrs = g.getEdgeAttributes(edgeKey);
+ expect(attrs.edgeKind).toBe("crossCommunity");
+ expect(attrs.size).toBeGreaterThanOrEqual(1.5);
+ expect(attrs.size).toBeLessThanOrEqual(2.5);
+ expect(attrs.edgeCount).toBe(7);
+ });
+
+ it("skips edges referencing dropped communities", () => {
+ const g = architectureToGraphology(
+ makeArch(
+ [makeArchNode({ community_id: 0 })],
+ [{ source: 0, target: 99, edge_count: 3 }],
+ ),
+ );
+ expect(g.size).toBe(0);
+ });
+
+ it("places the core at the origin and labels it with the repo name", () => {
+ const g = architectureToGraphology(makeArch([makeArchNode({ community_id: 0 })]), {
+ repoName: "repowise",
+ });
+ const core = g.getNodeAttributes(CORE_NODE_ID);
+ expect(core.nodeType).toBe("core");
+ expect(core.x).toBe(0);
+ expect(core.y).toBe(0);
+ expect(core.label).toBe("REPOWISE");
+ });
+
+ it("adds hub→core spokes only when requested", () => {
+ const base = architectureToGraphology(
+ makeArch([makeArchNode({ community_id: 0 })]),
+ );
+ expect(base.size).toBe(0);
+ const withSpokes = architectureToGraphology(
+ makeArch([makeArchNode({ community_id: 0 })]),
+ { includeCoreSpokes: true },
+ );
+ expect(withSpokes.size).toBe(1);
+ expect(withSpokes.hasEdge(hubNodeId(0) + "→" + CORE_NODE_ID)).toBe(true);
+ });
+
+ it("is deterministic across builds", () => {
+ const arch = makeArch(
+ [makeArchNode({ community_id: 0 }), makeArchNode({ community_id: 1 })],
+ [{ source: 0, target: 1, edge_count: 2 }],
+ );
+ const a = architectureToGraphology(arch);
+ const b = architectureToGraphology(arch);
+ a.forEachNode((node, attrs) => {
+ expect(b.getNodeAttributes(node).x).toBe(attrs.x);
+ expect(b.getNodeAttributes(node).y).toBe(attrs.y);
+ });
+ });
+});
+
+// ---------------------------------------------------------------------------
+// G4: slice → satellite merge / collapse
+// ---------------------------------------------------------------------------
+
+function makeMember(
+ node_id: string,
+ overrides: Partial<CommunitySliceNode> = {},
+): CommunitySliceNode {
+ return {
+ node_id,
+ node_type: "file",
+ language: "typescript",
+ symbol_count: 2,
+ pagerank: 0.1,
+ betweenness: 0,
+ community_id: 0,
+ is_test: false,
+ is_entry_point: false,
+ has_doc: false,
+ ...overrides,
+ };
+}
+
+function makeSlice(overrides: Partial<CommunitySlice> = {}): CommunitySlice {
+ return {
+ community_id: 0,
+ member_count: 2,
+ nodes: [makeMember("src/mod0/a.ts"), makeMember("src/mod0/b.ts")],
+ links: [],
+ ...overrides,
+ };
+}
+
+describe("satelliteSizeFromPagerank", () => {
+ it("clamps to the 6–14 file-node band", () => {
+ expect(satelliteSizeFromPagerank(0)).toBe(6);
+ expect(satelliteSizeFromPagerank(10)).toBe(14);
+ expect(satelliteSizeFromPagerank(0.25)).toBeCloseTo(10);
+ });
+});
+
+describe("mergeCommunitySlice", () => {
+ function baseGraph() {
+ return architectureToGraphology(
+ makeArch([
+ makeArchNode({ community_id: 0, member_count: 2 }),
+ makeArchNode({ community_id: 1, member_count: 2 }),
+ ]),
+ );
+ }
+
+ it("adds satellite file nodes around the hub", () => {
+ const g = baseGraph();
+ const before = g.order;
+ const { satelliteIds } = mergeCommunitySlice(g, 0, makeSlice());
+ expect(satelliteIds).toEqual(["src/mod0/a.ts", "src/mod0/b.ts"]);
+ expect(g.order).toBe(before + 2);
+ const sat = g.getNodeAttributes("src/mod0/a.ts");
+ expect(sat.nodeType).toBe("file");
+ expect(sat.communityId).toBe(0);
+ expect(sat.fullPath).toBe("src/mod0/a.ts");
+ expect(sat.size).toBeGreaterThanOrEqual(6);
+ expect(sat.size).toBeLessThanOrEqual(14);
+ });
+
+ it("places satellites near their hub (deterministic)", () => {
+ const g1 = baseGraph();
+ const g2 = baseGraph();
+ mergeCommunitySlice(g1, 0, makeSlice());
+ mergeCommunitySlice(g2, 0, makeSlice());
+ const a1 = g1.getNodeAttributes("src/mod0/a.ts");
+ const a2 = g2.getNodeAttributes("src/mod0/a.ts");
+ expect(a1.x).toBe(a2.x);
+ expect(a1.y).toBe(a2.y);
+ // Satellites cluster around the hub, not at the origin.
+ const hub = g1.getNodeAttributes(hubNodeId(0));
+ expect(Math.hypot(a1.x - hub.x, a1.y - hub.y)).toBeLessThan(200);
+ });
+
+ it("adds thin internal edges for intra-community links", () => {
+ const g = baseGraph();
+ mergeCommunitySlice(
+ g,
+ 0,
+ makeSlice({
+ links: [
+ { source: "src/mod0/a.ts", target: "src/mod0/b.ts", imported_names: [] },
+ ],
+ }),
+ );
+ expect(g.hasEdge("slice:src/mod0/a.ts→src/mod0/b.ts")).toBe(true);
+ const e = g.getEdgeAttributes("slice:src/mod0/a.ts→src/mod0/b.ts");
+ expect(e.edgeKind).toBe("internal");
+ });
+
+ it("adds a faint membership spoke for members with no intra edge", () => {
+ const g = baseGraph();
+ mergeCommunitySlice(g, 0, makeSlice()); // no links
+ // Both members get a spoke to the hub.
+ expect(g.hasEdge(`spoke:${hubNodeId(0)}→src/mod0/a.ts`)).toBe(true);
+ expect(g.hasEdge(`spoke:${hubNodeId(0)}→src/mod0/b.ts`)).toBe(true);
+ expect(
+ g.getEdgeAttributes(`spoke:${hubNodeId(0)}→src/mod0/a.ts`).edgeKind,
+ ).toBe("lowConfidence");
+ });
+
+ it("does not spoke members that already have an intra edge", () => {
+ const g = baseGraph();
+ mergeCommunitySlice(
+ g,
+ 0,
+ makeSlice({
+ links: [
+ { source: "src/mod0/a.ts", target: "src/mod0/b.ts", imported_names: [] },
+ ],
+ }),
+ );
+ expect(g.hasEdge(`spoke:${hubNodeId(0)}→src/mod0/a.ts`)).toBe(false);
+ expect(g.hasEdge(`spoke:${hubNodeId(0)}→src/mod0/b.ts`)).toBe(false);
+ });
+
+ it("pulls in boundary stubs and cross-cluster edges", () => {
+ const g = baseGraph();
+ mergeCommunitySlice(
+ g,
+ 0,
+ makeSlice({
+ nodes: [
+ makeMember("src/mod0/a.ts"),
+ makeMember("src/mod1/x.ts", { is_boundary: true, community_id: 1 }),
+ ],
+ member_count: 1,
+ links: [
+ { source: "src/mod0/a.ts", target: "src/mod1/x.ts", imported_names: [] },
+ ],
+ }),
+ );
+ expect(g.hasNode("src/mod1/x.ts")).toBe(true);
+ expect(g.getNodeAttributes("src/mod1/x.ts").size).toBe(3); // tiny stub
+ const e = g.getEdgeAttributes("slice:src/mod0/a.ts→src/mod1/x.ts");
+ expect(e.edgeKind).toBe("crossCommunity");
+ });
+
+ it("is idempotent: re-merging the same slice adds nothing new", () => {
+ const g = baseGraph();
+ mergeCommunitySlice(g, 0, makeSlice());
+ const order = g.order;
+ const size = g.size;
+ mergeCommunitySlice(g, 0, makeSlice());
+ expect(g.order).toBe(order);
+ expect(g.size).toBe(size);
+ });
+
+ it("no-ops when the hub is absent", () => {
+ const g = baseGraph();
+ const { satelliteIds } = mergeCommunitySlice(g, 42, makeSlice({ community_id: 42 }));
+ expect(satelliteIds).toEqual([]);
+ });
+});
diff --git a/packages/ui/__tests__/graph/graph-community-panel.test.tsx b/packages/ui/__tests__/graph/graph-community-panel.test.tsx
index 89df872c5..bd7733c9f 100644
--- a/packages/ui/__tests__/graph/graph-community-panel.test.tsx
+++ b/packages/ui/__tests__/graph/graph-community-panel.test.tsx
@@ -34,6 +34,32 @@ describe("GraphCommunityPanel", () => {
expect(screen.getByText("db-cluster")).toBeTruthy();
});
+ it("shows the expand-on-canvas affordance only when the callback is provided", () => {
+ const onExpand = vi.fn();
+ const { rerender } = render(
+ <GraphCommunityPanel
+ communityId={7}
+ community={sampleCommunity}
+ isLoading={false}
+ onClose={vi.fn()}
+ />,
+ );
+ expect(screen.queryByText("Expand on canvas")).toBeNull();
+
+ rerender(
+ <GraphCommunityPanel
+ communityId={7}
+ community={sampleCommunity}
+ isLoading={false}
+ onClose={vi.fn()}
+ onExpandOnCanvas={onExpand}
+ />,
+ );
+ const btn = screen.getByText("Expand on canvas");
+ btn.click();
+ expect(onExpand).toHaveBeenCalledTimes(1);
+ });
+
it("falls back to a numeric label when community is null", () => {
render(
<GraphCommunityPanel
diff --git a/packages/ui/__tests__/graph/graphology-adapter.test.ts b/packages/ui/__tests__/graph/graphology-adapter.test.ts
index fd96de310..5bc5bf580 100644
--- a/packages/ui/__tests__/graph/graphology-adapter.test.ts
+++ b/packages/ui/__tests__/graph/graphology-adapter.test.ts
@@ -1,5 +1,5 @@
import { describe, it, expect } from "vitest";
-import { fileGraphToGraphology, moduleGraphToGraphology } from "../../src/graph/sigma/graphology-adapter";
+import { fileGraphToGraphology, fileGraphToGraphologyAsync, moduleGraphToGraphology } from "../../src/graph/sigma/graphology-adapter";
import type { GraphExport, GraphNode, GraphLink, ModuleGraph, ModuleNode, ModuleEdge, CommunitySummaryItem } from "@repowise-dev/types/graph";
function makeNode(overrides: Partial<GraphNode> & { node_id: string }): GraphNode {
@@ -95,6 +95,23 @@ describe("fileGraphToGraphology", () => {
const attrs = g.getNodeAttributes("src/minimal.ts");
expect(attrs.nodeType).toBe("file");
});
+
+ it("async variant produces a graph matching the sync builder across chunks", async () => {
+ // Span multiple chunk boundaries (CHUNK_SIZE === 500).
+ const nodes = Array.from({ length: 1200 }, (_, i) =>
+ makeNode({ node_id: `src/f${i}.ts`, community_id: i % 7 }),
+ );
+ const links: GraphLink[] = Array.from({ length: 1100 }, (_, i) => ({
+ source: `src/f${i}.ts`,
+ target: `src/f${i + 1}.ts`,
+ imported_names: ["x"],
+ }));
+ const graph = makeFileGraph(nodes, links);
+ const sync = fileGraphToGraphology(graph);
+ const async = await fileGraphToGraphologyAsync(graph);
+ expect(async.order).toBe(sync.order);
+ expect(async.size).toBe(sync.size);
+ });
});
describe("moduleGraphToGraphology", () => {
diff --git a/packages/ui/__tests__/graph/radial-layout.test.ts b/packages/ui/__tests__/graph/radial-layout.test.ts
new file mode 100644
index 000000000..9e08bfbc5
--- /dev/null
+++ b/packages/ui/__tests__/graph/radial-layout.test.ts
@@ -0,0 +1,149 @@
+import { describe, it, expect } from "vitest";
+import {
+ computeRadialLayout,
+ hubSizeFromMembers,
+ type RadialCommunityInput,
+} from "../../src/graph/sigma/radial-layout";
+
+function makeCommunities(n: number): RadialCommunityInput[] {
+ return Array.from({ length: n }, (_, i) => ({
+ community_id: i,
+ member_count: (n - i) * 3 + 1, // varied sizes
+ avg_pagerank: (n - i) / n, // descending centrality
+ }));
+}
+
+function noNaN(x: number): boolean {
+ return Number.isFinite(x);
+}
+
+describe("computeRadialLayout", () => {
+ it("handles an empty community list without crashing", () => {
+ const r = computeRadialLayout([]);
+ expect(r.hubs.size).toBe(0);
+ expect(r.satellites.size).toBe(0);
+ expect(r.core).toEqual({ x: 0, y: 0 });
+ });
+
+ it("places a single community on the inner ring with no NaNs", () => {
+ const r = computeRadialLayout(makeCommunities(1));
+ expect(r.hubs.size).toBe(1);
+ expect(r.rings.get(0)).toBe(1);
+ const pos = r.hubs.get(0)!;
+ expect(noNaN(pos.x) && noNaN(pos.y)).toBe(true);
+ });
+
+ it("is deterministic: same input → identical positions across runs", () => {
+ const input = makeCommunities(9);
+ const a = computeRadialLayout(input);
+ const b = computeRadialLayout(input);
+ for (const [cid, pos] of a.hubs) {
+ expect(b.hubs.get(cid)).toEqual(pos);
+ }
+ expect(a.ringRadii).toEqual(b.ringRadii);
+ });
+
+ it("is order-independent (stable-sorted by community_id)", () => {
+ const input = makeCommunities(9);
+ const shuffled = [...input].reverse();
+ const a = computeRadialLayout(input);
+ const b = computeRadialLayout(shuffled);
+ for (const [cid, pos] of a.hubs) {
+ expect(b.hubs.get(cid)).toEqual(pos);
+ }
+ });
+
+ it("assigns rings by tercile of rank (inner/middle/outer)", () => {
+ const r = computeRadialLayout(makeCommunities(9));
+ const ringCounts = { 1: 0, 2: 0, 3: 0 };
+ for (const ring of r.rings.values()) ringCounts[ring] += 1;
+ // 9 communities → 3 per ring.
+ expect(ringCounts[1]).toBe(3);
+ expect(ringCounts[2]).toBe(3);
+ expect(ringCounts[3]).toBe(3);
+ });
+
+ it("ranks higher avg_pagerank onto the inner ring", () => {
+ const r = computeRadialLayout(makeCommunities(9));
+ // community_id 0 has the highest avg_pagerank → inner ring.
+ expect(r.rings.get(0)).toBe(1);
+ // community_id 8 has the lowest → outer ring.
+ expect(r.rings.get(8)).toBe(3);
+ });
+
+ it("places hubs at radii matching their ring", () => {
+ const r = computeRadialLayout(makeCommunities(9));
+ for (const [cid, pos] of r.hubs) {
+ const ring = r.rings.get(cid)!;
+ const dist = Math.hypot(pos.x, pos.y);
+ expect(dist).toBeCloseTo(r.ringRadii[ring - 1]!, 5);
+ }
+ });
+
+ it("separates the largest hubs angularly within a ring", () => {
+ // n=4 → tercile=2 → ring 1 holds the two highest-pagerank communities.
+ // After relaxation those two should sit on opposite slots (~180° apart).
+ const input: RadialCommunityInput[] = [
+ { community_id: 0, member_count: 100, avg_pagerank: 0.95 },
+ { community_id: 1, member_count: 90, avg_pagerank: 0.9 },
+ { community_id: 2, member_count: 5, avg_pagerank: 0.2 },
+ { community_id: 3, member_count: 4, avg_pagerank: 0.1 },
+ ];
+ const r = computeRadialLayout(input);
+ // Both top communities land on the inner ring.
+ expect(r.rings.get(0)).toBe(1);
+ expect(r.rings.get(1)).toBe(1);
+ const a = r.hubs.get(0)!;
+ const b = r.hubs.get(1)!;
+ const angA = Math.atan2(a.y, a.x);
+ const angB = Math.atan2(b.y, b.x);
+ let diff = Math.abs(angA - angB) % (2 * Math.PI);
+ if (diff > Math.PI) diff = 2 * Math.PI - diff;
+ // Two slots in a 2-member ring → ~180° apart.
+ expect(diff).toBeGreaterThan(Math.PI / 2);
+ });
+
+ it("produces no NaN positions for a larger graph", () => {
+ const r = computeRadialLayout(makeCommunities(25));
+ for (const pos of r.hubs.values()) {
+ expect(noNaN(pos.x) && noNaN(pos.y)).toBe(true);
+ }
+ });
+
+ it("places satellites around their hub when members are given", () => {
+ const input = makeCommunities(3);
+ const members = new Map<number, string[]>([
+ [0, ["a.ts", "b.ts", "c.ts"]],
+ [1, ["d.ts"]],
+ ]);
+ const r = computeRadialLayout(input, members);
+ expect(r.satellites.size).toBe(4);
+ // Satellites of community 0 should sit near hub 0.
+ const hub0 = r.hubs.get(0)!;
+ const sat = r.satellites.get("a.ts")!;
+ expect(noNaN(sat.x) && noNaN(sat.y)).toBe(true);
+ const dist = Math.hypot(sat.x - hub0.x, sat.y - hub0.y);
+ expect(dist).toBeLessThan(200);
+ });
+
+ it("satellite placement is deterministic", () => {
+ const input = makeCommunities(2);
+ const members = new Map<number, string[]>([[0, ["x.ts", "y.ts"]]]);
+ const a = computeRadialLayout(input, members);
+ const b = computeRadialLayout(input, members);
+ expect(a.satellites.get("x.ts")).toEqual(b.satellites.get("x.ts"));
+ expect(a.satellites.get("y.ts")).toEqual(b.satellites.get("y.ts"));
+ });
+});
+
+describe("hubSizeFromMembers", () => {
+ it("clamps to the 14–32 sigma-unit range", () => {
+ expect(hubSizeFromMembers(0)).toBeGreaterThanOrEqual(14);
+ expect(hubSizeFromMembers(1)).toBeGreaterThanOrEqual(14);
+ expect(hubSizeFromMembers(100000)).toBeLessThanOrEqual(32);
+ });
+
+ it("grows monotonically with member count", () => {
+ expect(hubSizeFromMembers(50)).toBeGreaterThan(hubSizeFromMembers(2));
+ });
+});
diff --git a/packages/ui/__tests__/graph/use-expanded-hubs.test.ts b/packages/ui/__tests__/graph/use-expanded-hubs.test.ts
new file mode 100644
index 000000000..9afd93382
--- /dev/null
+++ b/packages/ui/__tests__/graph/use-expanded-hubs.test.ts
@@ -0,0 +1,65 @@
+import { describe, it, expect } from "vitest";
+import { act, renderHook } from "@testing-library/react";
+import { useExpandedHubs } from "../../src/graph/use-expanded-hubs";
+
+describe("useExpandedHubs", () => {
+ it("starts empty", () => {
+ const { result } = renderHook(() => useExpandedHubs());
+ expect(result.current.expandedHubs).toEqual([]);
+ });
+
+ it("toggle expands then collapses a hub", () => {
+ const { result } = renderHook(() => useExpandedHubs());
+ act(() => result.current.toggleHub(3));
+ expect(result.current.expandedHubs).toEqual([3]);
+ act(() => result.current.toggleHub(3));
+ expect(result.current.expandedHubs).toEqual([]);
+ });
+
+ it("expandHub is idempotent and preserves insertion order", () => {
+ const { result } = renderHook(() => useExpandedHubs());
+ act(() => result.current.expandHub(1));
+ act(() => result.current.expandHub(2));
+ act(() => result.current.expandHub(1)); // already open
+ expect(result.current.expandedHubs).toEqual([1, 2]);
+ });
+
+ it("collapseLast removes the most recently expanded hub", () => {
+ const { result } = renderHook(() => useExpandedHubs());
+ act(() => result.current.expandHub(1));
+ act(() => result.current.expandHub(2));
+ act(() => result.current.expandHub(3));
+ act(() => {
+ result.current.collapseLast();
+ });
+ expect(result.current.expandedHubs).toEqual([1, 2]);
+ act(() => {
+ result.current.collapseLast();
+ });
+ expect(result.current.expandedHubs).toEqual([1]);
+ });
+
+ it("collapseLast on an empty set is a no-op", () => {
+ const { result } = renderHook(() => useExpandedHubs());
+ act(() => {
+ result.current.collapseLast();
+ });
+ expect(result.current.expandedHubs).toEqual([]);
+ });
+
+ it("collapseHub removes a specific hub", () => {
+ const { result } = renderHook(() => useExpandedHubs());
+ act(() => result.current.expandHub(1));
+ act(() => result.current.expandHub(2));
+ act(() => result.current.collapseHub(1));
+ expect(result.current.expandedHubs).toEqual([2]);
+ });
+
+ it("collapseAll clears everything", () => {
+ const { result } = renderHook(() => useExpandedHubs());
+ act(() => result.current.expandHub(1));
+ act(() => result.current.expandHub(2));
+ act(() => result.current.collapseAll());
+ expect(result.current.expandedHubs).toEqual([]);
+ });
+});
diff --git a/packages/ui/__tests__/graph/use-sigma-focus.test.tsx b/packages/ui/__tests__/graph/use-sigma-focus.test.tsx
new file mode 100644
index 000000000..40eb72ce4
--- /dev/null
+++ b/packages/ui/__tests__/graph/use-sigma-focus.test.tsx
@@ -0,0 +1,143 @@
+import { describe, it, expect, vi, beforeEach } from "vitest";
+import { act, renderHook, waitFor } from "@testing-library/react";
+
+// Regression guard for the "canvas goes empty on hub click" bug (BUG A/C):
+// focusNode MUST drive the camera using Sigma's *framed* display coordinates
+// (getNodeDisplayData), NOT raw graphology x/y. Radial hubs sit hundreds of
+// graph units from the origin, so animating the camera to raw x/y flies it off
+// into blank canvas. We mock Sigma to capture the camera.animate target.
+
+const cameraAnimate = vi.fn();
+const getNodeDisplayData = vi.fn();
+let lastSigmaInstance: Record<string, unknown> | null = null;
+
+class FakeSigma {
+ graph: unknown;
+ constructor(graph: unknown) {
+ this.graph = graph;
+ lastSigmaInstance = this as unknown as Record<string, unknown>;
+ }
+ getCamera() {
+ return { animate: cameraAnimate, animatedReset: vi.fn(), animatedZoom: vi.fn(), animatedUnzoom: vi.fn() };
+ }
+ getNodeDisplayData(id: string) {
+ return getNodeDisplayData(id);
+ }
+ getGraph() {
+ return this.graph;
+ }
+ setGraph() {}
+ setSetting() {}
+ refresh() {}
+ on() {}
+ off() {}
+ kill() {}
+}
+
+vi.mock("sigma", () => ({ default: FakeSigma }));
+vi.mock("@sigma/edge-curve", () => ({ default: class {} }));
+vi.mock("sigma/rendering", () => ({
+ EdgeLineProgram: class {},
+ drawDiscNodeLabel: () => {},
+}));
+
+import Graph from "graphology";
+import { useSigmaRenderer } from "../../src/graph/sigma/use-sigma";
+import type { SigmaNodeAttributes, SigmaEdgeAttributes } from "../../src/graph/sigma/types";
+
+function makeGraph() {
+ const g = new Graph<SigmaNodeAttributes, SigmaEdgeAttributes>();
+ // A hub far from the origin, exactly like the radial constellation layout.
+ g.addNode("__community__7", {
+ x: 270,
+ y: -180,
+ size: 24,
+ color: "#fff",
+ label: "UI",
+ nodeType: "hub",
+ fullPath: "",
+ language: "",
+ communityId: 7,
+ pagerank: 0,
+ betweenness: 0,
+ isTest: false,
+ isEntryPoint: false,
+ hasDoc: false,
+ symbolCount: 0,
+ } as SigmaNodeAttributes);
+ return g;
+}
+
+describe("useSigmaRenderer.focusNode coordinate contract", () => {
+ beforeEach(() => {
+ cameraAnimate.mockClear();
+ getNodeDisplayData.mockReset();
+ lastSigmaInstance = null;
+ });
+
+ it("animates the camera to the node's DISPLAY coords, not raw graph coords", async () => {
+ const container = document.createElement("div");
+ const graph = makeGraph();
+
+ const { result } = renderHook(() =>
+ useSigmaRenderer({
+ container,
+ graph,
+ selectedNodeId: null,
+ hoveredNodeId: null,
+ highlightedPath: new Set(),
+ highlightedEdges: new Set(),
+ searchDimmedNodes: null,
+ communityDimmedNodes: null,
+ colorMode: "community",
+ activeSignals: new Set(),
+ graphTheme: "dark",
+ }),
+ );
+
+ // Wait for the async Sigma init effect to construct the (mocked) instance.
+ await waitFor(() => expect(lastSigmaInstance).not.toBeNull());
+
+ // Sigma reports a normalized/framed position distinct from the raw 270/-180.
+ getNodeDisplayData.mockReturnValue({ x: 0.83, y: 0.12 });
+
+ act(() => {
+ result.current.focusNode("__community__7", 0.45);
+ });
+
+ expect(getNodeDisplayData).toHaveBeenCalledWith("__community__7");
+ expect(cameraAnimate).toHaveBeenCalledTimes(1);
+ const target = cameraAnimate.mock.calls[0]![0] as { x: number; y: number; ratio: number };
+ // The camera target is the DISPLAY position + the requested ratio — NOT the
+ // raw graph coords (270/-180) that caused the blank-canvas regression.
+ expect(target).toEqual({ x: 0.83, y: 0.12, ratio: 0.45 });
+ expect(target.x).not.toBe(270);
+ });
+
+ it("defaults to a tight ratio (0.15) for small file nodes", async () => {
+ const container = document.createElement("div");
+ const graph = makeGraph();
+ const { result } = renderHook(() =>
+ useSigmaRenderer({
+ container,
+ graph,
+ selectedNodeId: null,
+ hoveredNodeId: null,
+ highlightedPath: new Set(),
+ highlightedEdges: new Set(),
+ searchDimmedNodes: null,
+ communityDimmedNodes: null,
+ colorMode: "community",
+ activeSignals: new Set(),
+ graphTheme: "dark",
+ }),
+ );
+ await waitFor(() => expect(lastSigmaInstance).not.toBeNull());
+ getNodeDisplayData.mockReturnValue({ x: 0.5, y: 0.5 });
+ act(() => {
+ result.current.focusNode("__community__7");
+ });
+ const target = cameraAnimate.mock.calls[0]![0] as { ratio: number };
+ expect(target.ratio).toBe(0.15);
+ });
+});
diff --git a/packages/ui/__tests__/shared/entity-hover-card.test.tsx b/packages/ui/__tests__/shared/entity-hover-card.test.tsx
new file mode 100644
index 000000000..285a167a6
--- /dev/null
+++ b/packages/ui/__tests__/shared/entity-hover-card.test.tsx
@@ -0,0 +1,52 @@
+/**
+ * EntityHoverCard renders curated file metadata (viewer plan C-4):
+ * summary + tags above the existing ownership/churn rows.
+ */
+import { describe, it, expect } from "vitest";
+import { render } from "@testing-library/react";
+import { EntityHoverCard } from "../../src/shared/entity";
+
+describe("EntityHoverCard file meta", () => {
+ it("shows curated summary and tags when open", () => {
+ const { getByText, getAllByText } = render(
+ <EntityHoverCard
+ entity={{ kind: "file", id: "src/main.py" }}
+ meta={{
+ kind: "file",
+ data: {
+ summary: "SENTINEL: CLI entry point wiring commands.",
+ tags: ["entry_point", "python"],
+ owner: "dev1",
+ language: "python",
+ },
+ }}
+ defaultOpen
+ >
+ <button type="button">main.py</button>
+ </EntityHoverCard>,
+ );
+
+ expect(getByText("SENTINEL: CLI entry point wiring commands.")).toBeDefined();
+ expect(getByText("entry_point")).toBeDefined();
+ // "python" appears as both a tag pill and the Language row value.
+ expect(getAllByText("python").length).toBeGreaterThanOrEqual(2);
+ expect(getByText("dev1")).toBeDefined();
+ expect(getByText("src/main.py")).toBeDefined();
+ });
+
+ it("degrades gracefully without curated fields", () => {
+ const { getByText, queryByText } = render(
+ <EntityHoverCard
+ entity={{ kind: "file", id: "src/other.py" }}
+ meta={{ kind: "file", data: { owner: "dev2" } }}
+ defaultOpen
+ >
+ <span>other.py</span>
+ </EntityHoverCard>,
+ );
+
+ expect(getByText("src/other.py")).toBeDefined();
+ expect(getByText("dev2")).toBeDefined();
+ expect(queryByText(/SENTINEL/)).toBeNull();
+ });
+});
diff --git a/packages/ui/__tests__/shared/theme-toggle.test.tsx b/packages/ui/__tests__/shared/theme-toggle.test.tsx
new file mode 100644
index 000000000..db9172f9c
--- /dev/null
+++ b/packages/ui/__tests__/shared/theme-toggle.test.tsx
@@ -0,0 +1,118 @@
+import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
+import { render, screen, waitFor } from "@testing-library/react";
+import { ThemeProvider } from "next-themes";
+import type { ReactNode } from "react";
+import { ThemeToggle } from "../../src/shared/theme-toggle.js";
+
+// Mirrors the consumer mount in packages/web (defaultTheme="light",
+// enableSystem={false}, two explicit themes). The migration effect in
+// ThemeToggle keys off the next-themes storage, so the tests exercise the
+// real provider against jsdom localStorage.
+function Harness({ children }: { children: ReactNode }) {
+ return (
+ <ThemeProvider
+ attribute="class"
+ defaultTheme="light"
+ enableSystem={false}
+ themes={["light", "dark"]}
+ >
+ {children}
+ </ThemeProvider>
+ );
+}
+
+const STORAGE_KEY = "theme"; // next-themes default key
+
+describe("ThemeToggle theme default + persistence", () => {
+ beforeEach(() => {
+ localStorage.clear();
+ document.documentElement.className = "";
+ // next-themes reads matchMedia even with enableSystem=false.
+ vi.stubGlobal(
+ "matchMedia",
+ vi.fn().mockReturnValue({
+ matches: false,
+ addEventListener: vi.fn(),
+ removeEventListener: vi.fn(),
+ addListener: vi.fn(),
+ removeListener: vi.fn(),
+ }),
+ );
+ });
+
+ afterEach(() => {
+ vi.unstubAllGlobals();
+ });
+
+ it("defaults a fresh visitor (empty storage) to light", async () => {
+ render(
+ <Harness>
+ <ThemeToggle />
+ </Harness>,
+ );
+
+ await waitFor(() => {
+ expect(screen.getByRole("radio", { name: "Light" })).toHaveAttribute(
+ "aria-checked",
+ "true",
+ );
+ });
+ expect(screen.getByRole("radio", { name: "Dark" })).toHaveAttribute(
+ "aria-checked",
+ "false",
+ );
+ // Migration must not write anything for a fresh visitor.
+ expect(localStorage.getItem(STORAGE_KEY)).not.toBe("dark");
+ });
+
+ it("keeps an explicit stored dark choice (never clobbered by the default)", async () => {
+ localStorage.setItem(STORAGE_KEY, "dark");
+ render(
+ <Harness>
+ <ThemeToggle />
+ </Harness>,
+ );
+
+ await waitFor(() => {
+ expect(screen.getByRole("radio", { name: "Dark" })).toHaveAttribute(
+ "aria-checked",
+ "true",
+ );
+ });
+ expect(localStorage.getItem(STORAGE_KEY)).toBe("dark");
+ });
+
+ it("keeps an explicit stored light choice", async () => {
+ localStorage.setItem(STORAGE_KEY, "light");
+ render(
+ <Harness>
+ <ThemeToggle />
+ </Harness>,
+ );
+
+ await waitFor(() => {
+ expect(screen.getByRole("radio", { name: "Light" })).toHaveAttribute(
+ "aria-checked",
+ "true",
+ );
+ });
+ expect(localStorage.getItem(STORAGE_KEY)).toBe("light");
+ });
+
+ it("migrates a stale persisted 'system' value to the light default", async () => {
+ localStorage.setItem(STORAGE_KEY, "system");
+ render(
+ <Harness>
+ <ThemeToggle />
+ </Harness>,
+ );
+
+ await waitFor(() => {
+ expect(localStorage.getItem(STORAGE_KEY)).toBe("light");
+ });
+ expect(screen.getByRole("radio", { name: "Light" })).toHaveAttribute(
+ "aria-checked",
+ "true",
+ );
+ });
+});
diff --git a/packages/ui/__tests__/shared/use-theme-tokens.test.ts b/packages/ui/__tests__/shared/use-theme-tokens.test.ts
new file mode 100644
index 000000000..acf3944c3
--- /dev/null
+++ b/packages/ui/__tests__/shared/use-theme-tokens.test.ts
@@ -0,0 +1,47 @@
+import { describe, it, expect, beforeEach, afterEach } from "vitest";
+import {
+ getCommunityFamily,
+ COMMUNITY_FAMILY_COUNT,
+} from "../../src/shared/use-theme-tokens";
+
+// Stamp the 12 community token pairs onto <html> so getComputedStyle resolves
+// them (mirrors what globals.css does at runtime). Distinct sentinel values
+// per family let us assert the cyclic mapping precisely.
+function stampCommunityTokens() {
+ const root = document.documentElement;
+ for (let n = 1; n <= COMMUNITY_FAMILY_COUNT; n++) {
+ root.style.setProperty(`--color-community-${n}`, `#0000${(n).toString(16).padStart(2, "0")}`);
+ root.style.setProperty(`--color-community-${n}-soft`, `#1100${(n).toString(16).padStart(2, "0")}`);
+ }
+}
+
+describe("getCommunityFamily", () => {
+ beforeEach(() => stampCommunityTokens());
+ afterEach(() => {
+ const root = document.documentElement;
+ for (let n = 1; n <= COMMUNITY_FAMILY_COUNT; n++) {
+ root.style.removeProperty(`--color-community-${n}`);
+ root.style.removeProperty(`--color-community-${n}-soft`);
+ }
+ });
+
+ it("returns a hub and satellite from the matching token pair", () => {
+ expect(getCommunityFamily(0)).toEqual({ hub: "#000001", satellite: "#110001" });
+ expect(getCommunityFamily(2)).toEqual({ hub: "#000003", satellite: "#110003" });
+ });
+
+ it("cycles community ids modulo the family count", () => {
+ expect(getCommunityFamily(COMMUNITY_FAMILY_COUNT)).toEqual(getCommunityFamily(0));
+ expect(getCommunityFamily(COMMUNITY_FAMILY_COUNT + 1)).toEqual(getCommunityFamily(1));
+ });
+
+ it("handles negative ids without going out of range", () => {
+ expect(getCommunityFamily(-1)).toEqual(getCommunityFamily(COMMUNITY_FAMILY_COUNT - 1));
+ });
+
+ it("falls back the satellite to the hub when the soft token is empty", () => {
+ document.documentElement.style.removeProperty("--color-community-1-soft");
+ const fam = getCommunityFamily(0);
+ expect(fam.satellite).toBe(fam.hub);
+ });
+});
diff --git a/packages/ui/package.json b/packages/ui/package.json
index df072b013..943a86442 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -127,6 +127,7 @@
"zustand": "^4.4.0"
},
"peerDependencies": {
+ "next-themes": "^0.4.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
@@ -137,6 +138,7 @@
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^4.3.0",
"jsdom": "^25.0.0",
+ "next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "^5.6.0",
diff --git a/packages/ui/src/c4/C4Diagram.tsx b/packages/ui/src/c4/C4Diagram.tsx
index 72e8fc244..70862fef0 100644
--- a/packages/ui/src/c4/C4Diagram.tsx
+++ b/packages/ui/src/c4/C4Diagram.tsx
@@ -12,6 +12,7 @@
import { useCallback, useMemo, useState, type ReactNode } from "react";
import {
Background,
+ BackgroundVariant,
Controls,
MiniMap,
ReactFlow,
@@ -151,7 +152,7 @@ function C4DiagramInner({
height: "100%",
display: "flex",
flexDirection: "column",
- background: "var(--color-bg-canvas, #0b1220)",
+ background: "var(--color-bg-canvas)",
}}
>
{/* Toolbar row */}
@@ -161,7 +162,7 @@ function C4DiagramInner({
alignItems: "center",
gap: 16,
padding: "8px 12px",
- borderBottom: "1px solid var(--color-border-default, #334155)",
+ borderBottom: "1px solid var(--color-border-default)",
background: "var(--color-bg-surface, rgba(15,23,42,0.6))",
}}
>
@@ -170,7 +171,7 @@ function C4DiagramInner({
onLevelChange={onLevelChange}
l3Enabled={activeContainerId != null || level === 3}
/>
- <div style={{ width: 1, height: 20, background: "var(--color-border-default, #334155)" }} />
+ <div style={{ width: 1, height: 20, background: "var(--color-border-default)" }} />
<C4Breadcrumb
level={level}
systemName={systemName}
@@ -215,9 +216,12 @@ function C4DiagramInner({
nodesDraggable={false}
nodesConnectable={false}
>
- <Background gap={28} size={1} color="rgba(148,163,184,0.18)" />
+ {/* Blueprint graph paper: 24px line grid on the warm canvas, matching
+ the mermaid container (kg-ux plan §2.1). */}
+ <Background variant={BackgroundVariant.Lines} gap={24} size={1} color="var(--color-diagram-grid)" />
<Controls showInteractive={false} />
- <MiniMap pannable zoomable maskColor="rgba(11,18,32,0.85)" />
+ {/* maskColor comes from --xy-minimap-mask-background (theme-aware). */}
+ <MiniMap pannable zoomable />
</ReactFlow>
{selectedData && renderInspector
@@ -254,10 +258,10 @@ function exportFileStem(systemName: string, level: C4Level, activePath: string |
function CenteredMessage({ tone, text }: { tone: "info" | "empty" | "error"; text: string }) {
const color =
tone === "error"
- ? "#fca5a5"
+ ? "var(--color-error)"
: tone === "empty"
- ? "var(--color-text-tertiary, #64748b)"
- : "var(--color-text-secondary, #94a3b8)";
+ ? "var(--color-text-tertiary)"
+ : "var(--color-text-secondary)";
return (
<div
role="status"
diff --git a/packages/ui/src/c4/edges/RelationEdge.tsx b/packages/ui/src/c4/edges/RelationEdge.tsx
index 24a1bf79d..8666b76c2 100644
--- a/packages/ui/src/c4/edges/RelationEdge.tsx
+++ b/packages/ui/src/c4/edges/RelationEdge.tsx
@@ -1,17 +1,18 @@
"use client";
/**
- * Styled C4 relation edge — a bezier line with an optional label pill
- * showing edge count and dominant edge type.
+ * Styled C4 relation edge — blueprint dashed smooth-step line with an
+ * optional paper chip showing edge count and dominant edge type.
*/
import { memo } from "react";
import {
BaseEdge,
EdgeLabelRenderer,
- getBezierPath,
+ getSmoothStepPath,
type EdgeProps,
} from "@xyflow/react";
+import { THEME } from "../theme/theme-variables";
import type { C4EdgeData } from "../types";
function RelationEdgeImpl(props: EdgeProps) {
@@ -29,16 +30,17 @@ function RelationEdgeImpl(props: EdgeProps) {
} = props;
const relation = (data as C4EdgeData | undefined)?.relation;
- const [edgePath, labelX, labelY] = getBezierPath({
+ const [edgePath, labelX, labelY] = getSmoothStepPath({
sourceX,
sourceY,
sourcePosition,
targetX,
targetY,
targetPosition,
+ borderRadius: 8,
});
- const stroke = selected ? "#fbbf24" : "#94a3b8";
+ const stroke = selected ? THEME.selection.ring : "var(--color-diagram-edge)";
const strokeWidth = relation && relation.edge_count > 5 ? 2 : 1.25;
const label = relation
@@ -50,21 +52,27 @@ function RelationEdgeImpl(props: EdgeProps) {
return (
<>
- <BaseEdge id={id} path={edgePath} {...(markerEnd ? { markerEnd } : {})} style={{ stroke, strokeWidth }} />
+ <BaseEdge
+ id={id}
+ path={edgePath}
+ {...(markerEnd ? { markerEnd } : {})}
+ style={{ stroke, strokeWidth, strokeDasharray: selected ? "none" : "6 4" }}
+ />
{label && (
<EdgeLabelRenderer>
<div
style={{
position: "absolute",
transform: `translate(-50%, -50%) translate(${labelX}px, ${labelY}px)`,
- background: "rgba(15, 23, 42, 0.92)",
- color: "#e2e8f0",
- padding: "2px 6px",
- borderRadius: 4,
- fontSize: 10,
+ background: "var(--color-bg-surface)",
+ color: THEME.text.secondary,
+ padding: "2px 7px",
+ borderRadius: 6,
+ fontFamily: "var(--font-mono, ui-monospace, monospace)",
+ fontSize: 9.5,
fontWeight: 500,
pointerEvents: "none",
- border: "1px solid rgba(148, 163, 184, 0.25)",
+ border: `1px solid ${THEME.border.default}`,
whiteSpace: "nowrap",
}}
className="nodrag nopan"
diff --git a/packages/ui/src/c4/export/ExportMenu.tsx b/packages/ui/src/c4/export/ExportMenu.tsx
index c272c07f7..c06097e54 100644
--- a/packages/ui/src/c4/export/ExportMenu.tsx
+++ b/packages/ui/src/c4/export/ExportMenu.tsx
@@ -132,9 +132,9 @@ export function C4ExportMenu({
padding: "4px 10px",
fontSize: 11,
fontWeight: 500,
- color: "var(--color-text-secondary, #cbd5e1)",
+ color: "var(--color-text-secondary)",
background: "transparent",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 4,
cursor: disabled ? "not-allowed" : "pointer",
opacity: disabled ? 0.5 : 1,
@@ -151,8 +151,8 @@ export function C4ExportMenu({
top: "calc(100% + 4px)",
right: 0,
minWidth: 200,
- background: "var(--color-bg-elevated, #111827)",
- border: "1px solid var(--color-border-default, #334155)",
+ background: "var(--color-bg-elevated)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 6,
boxShadow: "0 10px 30px rgba(0,0,0,0.4)",
padding: 4,
@@ -187,7 +187,7 @@ export function C4ExportMenu({
</>
)}
{status === "error" && (
- <div style={{ padding: "6px 10px", fontSize: 10, color: "#fca5a5" }}>
+ <div style={{ padding: "6px 10px", fontSize: 10, color: "var(--color-error)" }}>
Export failed. Try again.
</div>
)}
@@ -219,13 +219,13 @@ function MenuItem({
padding: "6px 10px",
background: "transparent",
border: "none",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontSize: 12,
textAlign: "left",
cursor: "pointer",
borderRadius: 4,
}}
- onMouseEnter={(e) => (e.currentTarget.style.background = "rgba(148,163,184,0.12)")}
+ onMouseEnter={(e) => (e.currentTarget.style.background = "var(--color-border-subtle)")}
onMouseLeave={(e) => (e.currentTarget.style.background = "transparent")}
>
{icon}
@@ -239,7 +239,7 @@ function Divider() {
<div
style={{
height: 1,
- background: "var(--color-border-default, #334155)",
+ background: "var(--color-border-default)",
margin: "4px 2px",
}}
/>
diff --git a/packages/ui/src/c4/export/svg-exporter.ts b/packages/ui/src/c4/export/svg-exporter.ts
index 1f1bed740..c5251c3fd 100644
--- a/packages/ui/src/c4/export/svg-exporter.ts
+++ b/packages/ui/src/c4/export/svg-exporter.ts
@@ -9,7 +9,36 @@
import type { Edge, Node } from "@xyflow/react";
import type { C4EdgeData, C4NodeData } from "../types";
import { TONE_STYLES, type ToneName } from "../../graph-primitives/tone-styles";
-import { THEME } from "../theme/theme-variables";
+import { resolveToken } from "../../shared/use-theme-tokens";
+
+/**
+ * Blueprint ink palette, resolved from the LIVE theme at export time so the
+ * file matches what the user sees (kg-ux plan B7). The literals are
+ * light-mode fallbacks for headless export (jsdom/tests) where computed
+ * styles are empty.
+ */
+function resolveInkPalette() {
+ return {
+ canvas: resolveToken("--color-bg-canvas", "#f4eae1"),
+ grid: resolveToken("--color-diagram-grid", "rgba(245,149,32,0.10)"),
+ ink: resolveToken("--color-kg-node-fill", "#fffdf8"),
+ ink2: resolveToken("--color-kg-node-fill-2", "#f3ece2"),
+ inkText: resolveToken("--color-kg-node-text", "#241b2c"),
+ inkBorder: resolveToken("--color-kg-node-border", "#241b2c"),
+ edge: resolveToken("--color-diagram-edge", "#4a3d59"),
+ cluster: resolveToken("--color-diagram-cluster-border", "#826aa0"),
+ accent: resolveToken("--color-accent-fill", "#f59520"),
+ accentEnd: "#f7a94d", // --gradient-ember end stop
+ textOnAccent: resolveToken("--color-text-on-accent", "#241b2c"),
+ paper: resolveToken("--color-bg-surface", "#ffffff"),
+ textPrimary: resolveToken("--color-text-primary", "#241b2c"),
+ textSecondary: resolveToken("--color-text-secondary", "#5e5360"),
+ success: resolveToken("--color-success", "#1d8155"),
+ warning: resolveToken("--color-warning", "#9a6614"),
+ error: resolveToken("--color-error", "#b23a2e"),
+ };
+}
+type InkPalette = ReturnType<typeof resolveInkPalette>;
interface ArchFileNodeData {
node: {
@@ -53,6 +82,7 @@ interface PortalNodeData {
const PADDING = 40;
const BAND_HEIGHT = 18;
const FONT_FAMILY = "system-ui, -apple-system, Segoe UI, sans-serif";
+const MONO_FONT = "ui-monospace, Menlo, Consolas, monospace";
function escapeXml(value: string): string {
return value
@@ -180,7 +210,7 @@ function renderNode(n: Node): string {
return parts.join("");
}
-function renderArchNode(n: Node): string {
+function renderArchNode(n: Node, pal: InkPalette): string {
const type = n.type ?? "";
const w = (n.width as number | undefined) ?? 200;
const h = (n.height as number | undefined) ?? 100;
@@ -188,71 +218,73 @@ function renderArchNode(n: Node): string {
const y = n.position.y;
const parts: string[] = [];
- if (type === "archFile") {
+ // Shared ink-block scaffolding (mirrors InkNodeShell anatomy).
+ const inkBox = (fill: string, dashed = false, gradient = false) =>
+ `<rect width="${w}" height="${h}" rx="12" ry="12" fill="${gradient ? "url(#kg-ember)" : fill}" stroke="${dashed ? pal.cluster : pal.inkBorder}" stroke-width="1.5"${dashed ? ' stroke-dasharray="8 5"' : ""}/>`;
+
+ if (type === "scopeFrame") {
+ const data = n.data as unknown as { label: string };
+ parts.push(`<g transform="translate(${x},${y})">`);
+ parts.push(`<rect width="${w}" height="${h}" rx="16" ry="16" fill="none" stroke="${pal.cluster}" stroke-width="1.5" stroke-dasharray="8 5"/>`);
+ parts.push(`<rect x="20" y="-9" width="${Math.min(w - 40, data.label.length * 7 + 20)}" height="18" rx="6" fill="${pal.canvas}" stroke="${pal.cluster}" stroke-width="1" stroke-dasharray="4 3"/>`);
+ parts.push(`<text x="30" y="4" font-family="${MONO_FONT}" font-size="9" font-weight="600" letter-spacing="1" fill="${pal.textSecondary}">${escapeXml(data.label.toUpperCase())}</text>`);
+ parts.push(`</g>`);
+ } else if (type === "archFile") {
const data = n.data as unknown as ArchFileNodeData;
const nodeData = data.node;
- const tone = nodeData.node_type as ToneName;
- const style = TONE_STYLES[tone] ?? TONE_STYLES.file;
+ const isEntry = nodeData.is_entry_point;
+ const text = isEntry ? pal.textOnAccent : pal.inkText;
const kindLabel = nodeData.language
? `${nodeData.node_type.toUpperCase()} · ${nodeData.language}`
: nodeData.node_type.toUpperCase();
const title = escapeXml(truncate(nodeData.name, Math.floor(w / 8)));
const subtitle = escapeXml(truncate(nodeData.summary, Math.floor(w / 6)));
- const complexityColor = THEME.complexity[nodeData.complexity] ?? "#94a3b8";
+ const complexityColor =
+ nodeData.complexity === "simple" ? pal.success : nodeData.complexity === "moderate" ? pal.warning : pal.error;
parts.push(`<g transform="translate(${x},${y})">`);
- parts.push(`<rect width="${w}" height="${h}" rx="8" ry="8" fill="${style.bg}" stroke="${style.border}" stroke-width="1.5"/>`);
- parts.push(`<rect width="${w}" height="${BAND_HEIGHT}" rx="8" ry="8" fill="${style.band}"/>`);
- parts.push(`<rect y="${BAND_HEIGHT - 8}" width="${w}" height="8" fill="${style.band}"/>`);
- parts.push(`<text x="8" y="${BAND_HEIGHT - 5}" font-family="${FONT_FAMILY}" font-size="9" font-weight="600" letter-spacing="0.6" fill="${style.text}" opacity="0.85">${escapeXml(kindLabel)}</text>`);
- parts.push(`<text x="10" y="${BAND_HEIGHT + 20}" font-family="${FONT_FAMILY}" font-size="13" font-weight="600" fill="${style.text}">${title}</text>`);
- parts.push(`<text x="10" y="${BAND_HEIGHT + 36}" font-family="${FONT_FAMILY}" font-size="11" fill="${style.text}" opacity="0.75">${subtitle}</text>`);
- parts.push(`<circle cx="14" cy="${h - 12}" r="4" fill="${complexityColor}"/>`);
- parts.push(`<text x="24" y="${h - 8}" font-family="${FONT_FAMILY}" font-size="10" fill="${style.text}" opacity="0.8">↓${nodeData.in_degree} ↑${nodeData.out_degree}</text>`);
+ parts.push(inkBox(pal.ink, false, isEntry));
+ parts.push(`<text x="12" y="22" font-family="${MONO_FONT}" font-size="12" font-weight="600" fill="${text}">${title}</text>`);
+ parts.push(`<text x="12" y="40" font-family="${FONT_FAMILY}" font-size="10.5" fill="${text}" opacity="0.72">${subtitle}</text>`);
+ parts.push(`<text x="12" y="${h - 10}" font-family="${MONO_FONT}" font-size="8.5" font-weight="600" letter-spacing="0.8" fill="${text}" opacity="0.6">${escapeXml(kindLabel)}</text>`);
+ parts.push(`<circle cx="${w - 64}" cy="${h - 13}" r="4" fill="${complexityColor}"/>`);
+ parts.push(`<text x="${w - 54}" y="${h - 10}" font-family="${FONT_FAMILY}" font-size="10" fill="${text}" opacity="0.85">↓${nodeData.in_degree} ↑${nodeData.out_degree}</text>`);
parts.push(`</g>`);
- } else if (type === "layerCluster") {
- const data = n.data as unknown as LayerClusterNodeData;
+ } else if (type === "layerCluster" || type === "subGroupCluster") {
+ const data = n.data as unknown as LayerClusterNodeData & { kind?: string; sibling?: boolean; demoted?: boolean };
const layer = data.layer;
- const style = TONE_STYLES.layerCluster;
+ const isGroup = data.kind === "subGroup";
+ const recessed = Boolean(data.sibling || data.demoted);
const title = escapeXml(truncate(layer.name, Math.floor(w / 8)));
const subtitle = escapeXml(truncate(layer.description, Math.floor(w / 6)));
parts.push(`<g transform="translate(${x},${y})">`);
- parts.push(`<rect width="${w}" height="${h}" rx="8" ry="8" fill="${style.bg}" stroke="${style.border}" stroke-width="1.5"/>`);
- parts.push(`<rect width="${w}" height="${BAND_HEIGHT}" rx="8" ry="8" fill="${style.band}"/>`);
- parts.push(`<rect y="${BAND_HEIGHT - 8}" width="${w}" height="8" fill="${style.band}"/>`);
- parts.push(`<text x="8" y="${BAND_HEIGHT - 5}" font-family="${FONT_FAMILY}" font-size="9" font-weight="600" letter-spacing="0.6" fill="${style.text}" opacity="0.85">LAYER</text>`);
- parts.push(`<text x="10" y="${BAND_HEIGHT + 20}" font-family="${FONT_FAMILY}" font-size="13" font-weight="600" fill="${style.text}">${title}</text>`);
- parts.push(`<text x="10" y="${BAND_HEIGHT + 36}" font-family="${FONT_FAMILY}" font-size="11" fill="${style.text}" opacity="0.75">${subtitle}</text>`);
- parts.push(`<text x="10" y="${h - 8}" font-family="${FONT_FAMILY}" font-size="10" fill="${style.text}" opacity="0.8">${layer.file_count} files</text>`);
+ parts.push(inkBox(recessed ? pal.ink2 : pal.ink));
+ parts.push(`<text x="14" y="26" font-family="${MONO_FONT}" font-size="15" font-weight="600" fill="${pal.inkText}">${title}</text>`);
+ parts.push(`<text x="14" y="44" font-family="${FONT_FAMILY}" font-size="11" fill="${pal.inkText}" opacity="0.72">${subtitle}</text>`);
+ parts.push(`<text x="14" y="${h - 12}" font-family="${MONO_FONT}" font-size="9" font-weight="600" letter-spacing="1" fill="${pal.inkText}" opacity="0.6">${isGroup ? "GROUP" : "LAYER"} · ${layer.file_count} FILES</text>`);
if (layer.health_score !== null) {
- const healthColor = layer.health_score >= 80 ? "#4ade80" : layer.health_score >= 60 ? "#fbbf24" : "#f87171";
- parts.push(`<text x="${w - 10}" y="${h - 8}" font-family="${FONT_FAMILY}" font-size="12" font-weight="600" fill="${healthColor}" text-anchor="end">${Math.round(layer.health_score)}</text>`);
+ const healthColor = layer.health_score >= 80 ? pal.success : layer.health_score >= 60 ? pal.warning : pal.error;
+ parts.push(`<text x="${w - 14}" y="${h - 12}" font-family="${FONT_FAMILY}" font-size="12" font-weight="600" fill="${healthColor}" text-anchor="end">${Math.round(layer.health_score)}</text>`);
}
parts.push(`</g>`);
} else if (type === "archContainer") {
const data = n.data as unknown as ArchContainerNodeData;
- const style = TONE_STYLES.container;
const title = escapeXml(truncate(`${data.childCount} files`, Math.floor(w / 8)));
parts.push(`<g transform="translate(${x},${y})">`);
- parts.push(`<rect width="${w}" height="${h}" rx="8" ry="8" fill="${style.bg}" stroke="${style.border}" stroke-width="1.5" stroke-dasharray="6 3"/>`);
- parts.push(`<rect width="${w}" height="${BAND_HEIGHT}" rx="8" ry="8" fill="${style.band}"/>`);
- parts.push(`<rect y="${BAND_HEIGHT - 8}" width="${w}" height="8" fill="${style.band}"/>`);
- parts.push(`<text x="8" y="${BAND_HEIGHT - 5}" font-family="${FONT_FAMILY}" font-size="9" font-weight="600" letter-spacing="0.6" fill="${style.text}" opacity="0.85">${escapeXml(data.label)}</text>`);
- parts.push(`<text x="10" y="${BAND_HEIGHT + 20}" font-family="${FONT_FAMILY}" font-size="13" font-weight="600" fill="${style.text}">${title}</text>`);
+ parts.push(inkBox("none", true));
+ parts.push(`<text x="12" y="22" font-family="${MONO_FONT}" font-size="12" font-weight="600" fill="${pal.textPrimary}">${escapeXml(data.label)}</text>`);
+ parts.push(`<text x="12" y="40" font-family="${FONT_FAMILY}" font-size="10.5" fill="${pal.textSecondary}">${title}</text>`);
parts.push(`</g>`);
} else if (type === "portal") {
const data = n.data as unknown as PortalNodeData;
- const style = TONE_STYLES.portal;
parts.push(`<g transform="translate(${x},${y})">`);
- parts.push(`<rect width="${w}" height="${h}" rx="8" ry="8" fill="${style.bg}" stroke="${style.border}" stroke-width="1.5" stroke-dasharray="6 3"/>`);
- parts.push(`<rect width="${w}" height="${BAND_HEIGHT}" rx="8" ry="8" fill="${style.band}"/>`);
- parts.push(`<rect y="${BAND_HEIGHT - 8}" width="${w}" height="8" fill="${style.band}"/>`);
- parts.push(`<text x="8" y="${BAND_HEIGHT - 5}" font-family="${FONT_FAMILY}" font-size="9" font-weight="600" letter-spacing="0.6" fill="${style.text}" opacity="0.85">PORTAL</text>`);
- parts.push(`<text x="10" y="${BAND_HEIGHT + 20}" font-family="${FONT_FAMILY}" font-size="13" font-weight="600" fill="${style.text}">→ ${escapeXml(data.targetLayerName)}</text>`);
- parts.push(`<text x="10" y="${BAND_HEIGHT + 36}" font-family="${FONT_FAMILY}" font-size="11" fill="${style.text}" opacity="0.75">${data.edgeCount} connections</text>`);
+ parts.push(inkBox("none", true));
+ parts.push(`<text x="12" y="22" font-family="${MONO_FONT}" font-size="12" font-weight="600" fill="${pal.textPrimary}">→ ${escapeXml(data.targetLayerName)}</text>`);
+ parts.push(`<text x="12" y="40" font-family="${FONT_FAMILY}" font-size="10.5" fill="${pal.textSecondary}">${data.edgeCount} connections</text>`);
+ parts.push(`<text x="12" y="${h - 8}" font-family="${MONO_FONT}" font-size="8.5" font-weight="600" letter-spacing="0.8" fill="${pal.textSecondary}" opacity="0.8">PORTAL</text>`);
parts.push(`</g>`);
}
@@ -265,7 +297,7 @@ function nodeCenter(n: Node): { x: number; y: number; w: number; h: number } {
return { x: n.position.x + w / 2, y: n.position.y + h / 2, w, h };
}
-function renderEdge(e: Edge, nodesById: Map<string, Node>): string {
+function renderEdge(e: Edge, nodesById: Map<string, Node>, pal: InkPalette): string {
const source = nodesById.get(e.source);
const target = nodesById.get(e.target);
if (!source || !target) return "";
@@ -284,18 +316,18 @@ function renderEdge(e: Edge, nodesById: Map<string, Node>): string {
const parts: string[] = [];
parts.push(
- `<path d="${path}" fill="none" stroke="#475569" stroke-width="1.2" marker-end="url(#c4-arrow)"/>`,
+ `<path d="${path}" fill="none" stroke="${pal.edge}" stroke-width="1.25" stroke-dasharray="6 4" marker-end="url(#c4-arrow)"/>`,
);
if (label) {
const lx = (sx + tx) / 2;
const ly = midY;
const text = escapeXml(truncate(label, 32));
- const padW = text.length * 6 + 10;
+ const padW = text.length * 6 + 14;
parts.push(
- `<rect x="${lx - padW / 2}" y="${ly - 9}" width="${padW}" height="16" rx="3" fill="rgba(15,23,42,0.85)" stroke="#334155" stroke-width="0.5"/>`,
+ `<rect x="${lx - padW / 2}" y="${ly - 9}" width="${padW}" height="17" rx="6" fill="${pal.paper}" stroke="${pal.cluster}" stroke-width="0.75"/>`,
);
parts.push(
- `<text x="${lx}" y="${ly + 3}" font-family="${FONT_FAMILY}" font-size="10" fill="#cbd5e1" text-anchor="middle">${text}</text>`,
+ `<text x="${lx}" y="${ly + 3}" font-family="${MONO_FONT}" font-size="9.5" fill="${pal.textSecondary}" text-anchor="middle">${text}</text>`,
);
}
return parts.join("");
@@ -319,23 +351,32 @@ export function buildC4Svg(
const ty = -bounds.minY + PADDING + titleOffset;
const nodesById = new Map(nodes.map((n) => [n.id, n]));
+ const pal = resolveInkPalette();
- const ARCH_NODE_TYPES = new Set(["archFile", "archContainer", "layerCluster", "portal"]);
+ const ARCH_NODE_TYPES = new Set(["archFile", "archContainer", "layerCluster", "subGroupCluster", "portal", "scopeFrame"]);
- const edgeMarkup = edges.map((e) => renderEdge(e, nodesById)).join("");
+ const edgeMarkup = edges.map((e) => renderEdge(e, nodesById, pal)).join("");
const nodeMarkup = nodes.map((n) =>
- ARCH_NODE_TYPES.has(n.type ?? "") ? renderArchNode(n) : renderNode(n)
+ ARCH_NODE_TYPES.has(n.type ?? "") ? renderArchNode(n, pal) : renderNode(n)
).join("");
return `<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="${Math.round(width)}" height="${Math.round(height)}" viewBox="0 0 ${Math.round(width)} ${Math.round(height)}">
<defs>
<marker id="c4-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
- <path d="M 0 0 L 10 5 L 0 10 z" fill="#475569"/>
+ <path d="M 0 0 L 10 5 L 0 10 z" fill="${pal.edge}"/>
</marker>
+ <linearGradient id="kg-ember" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" stop-color="${pal.accent}"/>
+ <stop offset="100%" stop-color="${pal.accentEnd}"/>
+ </linearGradient>
+ <pattern id="kg-grid" width="24" height="24" patternUnits="userSpaceOnUse">
+ <path d="M 24 0 L 0 0 0 24" fill="none" stroke="${pal.grid}" stroke-width="1"/>
+ </pattern>
</defs>
- <rect width="100%" height="100%" fill="#0b1220"/>
- ${options.title ? `<text x="${PADDING}" y="22" font-family="${FONT_FAMILY}" font-size="14" font-weight="600" fill="#e5e7eb">${escapeXml(options.title)}</text>` : ""}
+ <rect width="100%" height="100%" fill="${pal.canvas}"/>
+ <rect width="100%" height="100%" fill="url(#kg-grid)"/>
+ ${options.title ? `<text x="${PADDING}" y="22" font-family="${FONT_FAMILY}" font-size="14" font-weight="600" fill="${pal.textPrimary}">${escapeXml(options.title)}</text>` : ""}
<g transform="translate(${tx},${ty})">
${edgeMarkup}
${nodeMarkup}
diff --git a/packages/ui/src/c4/hooks/use-architecture-layout.ts b/packages/ui/src/c4/hooks/use-architecture-layout.ts
index 6aaae4991..8d1dade58 100644
--- a/packages/ui/src/c4/hooks/use-architecture-layout.ts
+++ b/packages/ui/src/c4/hooks/use-architecture-layout.ts
@@ -5,38 +5,51 @@ import { MarkerType, type Node, type Edge } from "@xyflow/react";
import { useArchitectureStore } from "../store/use-architecture-store";
import type { ArchitectureView, ArchNode, ArchEdge, ArchLayer } from "../types";
import { PERSONA_NODE_TYPES } from "../types";
-import { buildContainers, getStandaloneNodeIds } from "../layout/containers";
-import { aggregateEdges } from "../layout/edge-aggregation";
import {
+ buildContainers,
+ enforceBoxBudget,
+ getStandaloneNodeIds,
+ MAX_VISIBLE_BOXES,
+} from "../layout/containers";
+import { aggregateEdges, capAggregatedEdges } from "../layout/edge-aggregation";
+import {
+ assignSlotsByRank,
computeStage1Layout,
computeStage2Layout,
estimateContainerSize,
+ hoistPrioritySlots,
ARCH_NODE_SIZES,
type ContainerAtom,
type PortalSpec,
} from "../layout/two-stage-layout";
-import { THEME } from "../theme/theme-variables";
+import { THEME, edgeColor } from "../theme/theme-variables";
export interface ArchitectureLayoutResult {
nodes: Node[];
edges: Edge[];
loading: boolean;
issues: string[];
+ /** Aggregated arrows dropped by the visible-tier budget ("+N weaker links"). */
+ hiddenEdgeCount: number;
}
export function useArchitectureLayout(): ArchitectureLayoutResult {
const view = useArchitectureStore((s) => s.view);
const navigationLevel = useArchitectureStore((s) => s.navigationLevel);
const activeLayerId = useArchitectureStore((s) => s.activeLayerId);
+ const activeSubGroupId = useArchitectureStore((s) => s.activeSubGroupId);
const detailLevel = useArchitectureStore((s) => s.detailLevel);
const persona = useArchitectureStore((s) => s.persona);
const filters = useArchitectureStore((s) => s.filters);
+ const showTests = useArchitectureStore((s) => s.showTests);
const expandedContainers = useArchitectureStore((s) => s.expandedContainers);
const expandedContainersVersion = useArchitectureStore((s) => s.expandedContainers.size);
const stage1Tick = useArchitectureStore((s) => s.stage1Tick);
const focusNodeId = useArchitectureStore((s) => s.focusNodeId);
const selectedNodeId = useArchitectureStore((s) => s.selectedNodeId);
const tourHighlightedNodeIds = useArchitectureStore((s) => s.tourHighlightedNodeIds);
+ const tourActive = useArchitectureStore((s) => s.tourActive);
+ const currentTourStep = useArchitectureStore((s) => s.currentTourStep);
const searchResults = useArchitectureStore((s) => s.searchResults);
const diffMode = useArchitectureStore((s) => s.diffMode);
const changedNodeIds = useArchitectureStore((s) => s.changedNodeIds);
@@ -47,11 +60,12 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
edges: [],
loading: false,
issues: [],
+ hiddenEdgeCount: 0,
});
useEffect(() => {
if (!view) {
- setResult({ nodes: [], edges: [], loading: false, issues: [] });
+ setResult({ nodes: [], edges: [], loading: false, issues: [], hiddenEdgeCount: 0 });
return;
}
@@ -62,6 +76,9 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
if (navigationLevel === "overview") {
return computeOverviewLayout(view);
}
+ if (navigationLevel === "layer-groups") {
+ return computeLayerGroupsLayout(view);
+ }
return computeDetailLayout(view);
};
@@ -77,15 +94,19 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
view,
navigationLevel,
activeLayerId,
+ activeSubGroupId,
detailLevel,
persona,
filters,
+ showTests,
expandedContainers,
expandedContainersVersion,
stage1Tick,
focusNodeId,
selectedNodeId,
tourHighlightedNodeIds,
+ tourActive,
+ currentTourStep,
searchResults,
diffMode,
changedNodeIds,
@@ -114,6 +135,8 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
return acc;
}, {}),
health_score: null,
+ sub_groups: [],
+ display_order: Math.max(...merged.map((l) => l.display_order)),
};
displayLayers = [...kept, otherLayer];
}
@@ -125,7 +148,9 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
}
}
- const aggregated = aggregateEdges(currentView.edges, nodeToLayer);
+ const { visible: aggregated, hiddenCount } = capAggregatedEdges(
+ aggregateEdges(currentView.edges, nodeToLayer),
+ );
const layerNodes = displayLayers.map((layer: ArchLayer) => ({
id: layer.id,
width: ARCH_NODE_SIZES.layerCluster.width,
@@ -138,15 +163,43 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
target: agg.target,
}));
- const { positions, issues } = await computeStage1Layout(
+ // Curated artifacts carry a dependency-ordered display_order — re-rank
+ // the card slots so the stack reads top→bottom in that order (position =
+ // meaning). Uncurated views keep the edge-derived stacking untouched
+ // (P6): their display_order is just insertion order, not a claim.
+ const isCurated =
+ currentView.layers.some((l: ArchLayer) => l.sub_groups.length > 0) ||
+ currentView.entry_points.length > 0;
+
+ const { positions: rawPositions, issues } = await computeStage1Layout(
[],
layerNodes,
[],
layoutEdges,
new Map(),
);
+ const positions = isCurated
+ ? assignSlotsByRank(
+ rawPositions,
+ new Map(displayLayers.map((l: ArchLayer) => [l.id, l.display_order])),
+ )
+ : rawPositions;
const searchHighlightIds = new Set<string>(searchResults.map((r) => r.nodeId));
+ // Dim-on-select (kg-ux plan B5): selecting a layer card fades unrelated
+ // cards and arrows — fade, never vanish.
+ const selectedLayerId =
+ selectedNodeId && displayLayers.some((l: ArchLayer) => l.id === selectedNodeId)
+ ? selectedNodeId
+ : null;
+ const connectedLayers = new Set<string>();
+ if (selectedLayerId) {
+ connectedLayers.add(selectedLayerId);
+ for (const agg of aggregated) {
+ if (agg.source === selectedLayerId) connectedLayers.add(agg.target);
+ if (agg.target === selectedLayerId) connectedLayers.add(agg.source);
+ }
+ }
const nodes: Node[] = displayLayers.map((layer: ArchLayer) => {
const pos = positions.get(layer.id) ?? { x: 0, y: 0, width: 0, height: 0 };
const hasSearchHit = layer.node_ids.some((nid: string) => searchHighlightIds.has(nid));
@@ -157,12 +210,214 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
data: {
layer,
searchHighlight: hasSearchHit,
+ // Tests mirror the code — demoted unless restored (decision 2).
+ demoted: layer.id === "layer:test" && !showTests,
+ dimmed:
+ (selectedLayerId ? !connectedLayers.has(layer.id) : false) ||
+ (searchHighlightIds.size > 0 && !hasSearchHit),
+ },
+ width: ARCH_NODE_SIZES.layerCluster.width,
+ height: ARCH_NODE_SIZES.layerCluster.height,
+ };
+ });
+
+ const edges: Edge[] = aggregated.map((agg) => ({
+ id: agg.id,
+ source: agg.source,
+ target: agg.target,
+ type: "arch",
+ markerEnd: {
+ type: MarkerType.ArrowClosed,
+ width: 14,
+ height: 14,
+ color: "var(--color-diagram-edge)",
+ },
+ data: {
+ edge_type: agg.dominantType,
+ count: agg.count,
+ category: agg.dominantType,
+ dimmed: selectedLayerId
+ ? agg.source !== selectedLayerId && agg.target !== selectedLayerId
+ : false,
+ },
+ }));
+
+ return { nodes, edges, loading: false, issues, hiddenEdgeCount: hiddenCount };
+ }
+
+ /** Cards for one curated layer: its sub-groups plus a synthetic card for any
+ * files the curation pass left ungrouped, so every file keeps a home.
+ * Enforces the visible-box budget: the lowest-pagerank groups collapse into
+ * one "+N more groups" card before the tier ever exceeds the budget (P2).
+ * Deterministic, so the groups tier and detail tier always agree on
+ * membership. */
+ function subGroupCards(
+ layer: ArchLayer,
+ nodesById: Map<string, ArchNode>,
+ ): { id: string; name: string; node_ids: string[] }[] {
+ const grouped = new Set(layer.sub_groups.flatMap((g) => g.node_ids));
+ const leftovers = layer.node_ids.filter((id) => !grouped.has(id));
+ const cards = layer.sub_groups.map((g) => ({ id: g.id, name: g.name, node_ids: g.node_ids }));
+ if (leftovers.length > 0) {
+ cards.push({ id: `${layer.id}:__ungrouped`, name: "Other files", node_ids: leftovers });
+ }
+ if (cards.length <= MAX_VISIBLE_BOXES) {
+ return cards;
+ }
+ const score = (card: { node_ids: string[] }) =>
+ Math.max(...card.node_ids.map((id) => nodesById.get(id)?.pagerank ?? 0));
+ const ranked = [...cards].sort((a, b) => score(b) - score(a));
+ const kept = ranked.slice(0, MAX_VISIBLE_BOXES - 1);
+ const merged = ranked.slice(MAX_VISIBLE_BOXES - 1);
+ const keptSet = new Set(kept.map((c) => c.id));
+ return [
+ ...cards.filter((c) => keptSet.has(c.id)),
+ {
+ id: `${layer.id}:__more`,
+ name: `+${merged.length} more groups`,
+ node_ids: merged.flatMap((c) => c.node_ids),
+ },
+ ];
+ }
+
+ /** Shape a sub-group card as an ArchLayer so LayerClusterNode renders it
+ * (kind: "subGroup") — reuse, not a new node component. */
+ function synthesizeCardLayer(
+ card: { id: string; name: string; node_ids: string[] },
+ nodesById: Map<string, ArchNode>,
+ ): ArchLayer {
+ const dist: Record<string, number> = { simple: 0, moderate: 0, complex: 0 };
+ for (const id of card.node_ids) {
+ const c = nodesById.get(id)?.complexity ?? "simple";
+ dist[c] = (dist[c] ?? 0) + 1;
+ }
+ return {
+ id: card.id,
+ name: card.name,
+ description: "",
+ node_ids: card.node_ids,
+ file_count: card.node_ids.length,
+ complexity_distribution: dist,
+ health_score: null,
+ sub_groups: [],
+ display_order: 0,
+ };
+ }
+
+ // The intermediate "layer-groups" tier: only sub-group cards + aggregated
+ // arrows + cross-layer portals. Never renders file cards (budget P2).
+ async function computeLayerGroupsLayout(currentView: ArchitectureView): Promise<ArchitectureLayoutResult> {
+ const layer = currentView.layers.find((l: ArchLayer) => l.id === activeLayerId);
+ if (!layer) {
+ return { nodes: [], edges: [], loading: false, issues: [`Layer ${activeLayerId} not found`], hiddenEdgeCount: 0 };
+ }
+ if (layer.sub_groups.length === 0) {
+ // Layer lost its groups (e.g. filters) — degrade to the detail tier.
+ return computeDetailLayout(currentView);
+ }
+
+ const nodesById = new Map(currentView.nodes.map((n: ArchNode) => [n.id, n]));
+ const cards = subGroupCards(layer, nodesById);
+
+ const nodeToBox = new Map<string, string>();
+ for (const card of cards) {
+ for (const id of card.node_ids) {
+ nodeToBox.set(id, card.id);
+ }
+ }
+ const { visible: aggregated, hiddenCount } = capAggregatedEdges(
+ aggregateEdges(currentView.edges, nodeToBox),
+ );
+
+ const nodeIdToLayerId = useArchitectureStore.getState().nodeIdToLayerId;
+ const layerNodeIdSet = new Set(layer.node_ids);
+ const portalSpecs = buildPortalSpecs(
+ currentView.edges, layerNodeIdSet, layer, currentView.layers, nodeIdToLayerId,
+ );
+
+ const cardLayoutNodes = cards.map((card) => ({
+ id: card.id,
+ width: ARCH_NODE_SIZES.layerCluster.width,
+ height: ARCH_NODE_SIZES.layerCluster.height,
+ }));
+ const layoutEdges = aggregated.map((agg) => ({
+ id: agg.id,
+ source: agg.source,
+ target: agg.target,
+ }));
+
+ const { positions, issues } = await computeStage1Layout(
+ [],
+ cardLayoutNodes,
+ portalSpecs,
+ layoutEdges,
+ new Map(),
+ );
+
+ const searchHighlightIds = new Set<string>(searchResults.map((r) => r.nodeId));
+ // Dim-on-select (kg-ux plan B5) — card-level, same rule as overview.
+ const selectedCardId =
+ selectedNodeId && cards.some((c) => c.id === selectedNodeId) ? selectedNodeId : null;
+ const connectedCards = new Set<string>();
+ if (selectedCardId) {
+ connectedCards.add(selectedCardId);
+ for (const agg of aggregated) {
+ if (agg.source === selectedCardId) connectedCards.add(agg.target);
+ if (agg.target === selectedCardId) connectedCards.add(agg.source);
+ }
+ }
+ const nodes: Node[] = cards.map((card) => {
+ const pos = positions.get(card.id) ?? { x: 0, y: 0, width: 0, height: 0 };
+ return {
+ id: card.id,
+ type: "subGroupCluster",
+ position: { x: pos.x, y: pos.y },
+ data: {
+ layer: synthesizeCardLayer(card, nodesById),
+ kind: "subGroup",
+ searchHighlight: card.node_ids.some((nid) => searchHighlightIds.has(nid)),
+ dimmed:
+ (selectedCardId ? !connectedCards.has(card.id) : false) ||
+ (searchHighlightIds.size > 0 &&
+ !card.node_ids.some((nid) => searchHighlightIds.has(nid))),
},
width: ARCH_NODE_SIZES.layerCluster.width,
height: ARCH_NODE_SIZES.layerCluster.height,
};
});
+ // "You are here": dashed boundary around the drilled layer's cards.
+ const groupsFrame = buildScopeFrameNode(
+ `frame:${layer.id}`,
+ layer.name,
+ cards.map((card) => {
+ const pos = positions.get(card.id) ?? { x: 0, y: 0, width: 0, height: 0 };
+ return {
+ x: pos.x,
+ y: pos.y,
+ width: ARCH_NODE_SIZES.layerCluster.width,
+ height: ARCH_NODE_SIZES.layerCluster.height,
+ };
+ }),
+ );
+ if (groupsFrame) nodes.unshift(groupsFrame);
+
+ for (const portal of portalSpecs) {
+ const pos = positions.get(portal.id) ?? { x: 0, y: 0, width: 0, height: 0 };
+ nodes.push({
+ id: portal.id,
+ type: "portal",
+ position: { x: pos.x, y: pos.y },
+ data: {
+ targetLayerId: portal.targetLayerId,
+ targetLayerName: portal.targetLayerName,
+ edgeCount: portal.edgeCount,
+ },
+ width: ARCH_NODE_SIZES.portal.width,
+ height: ARCH_NODE_SIZES.portal.height,
+ });
+ }
+
const edges: Edge[] = aggregated.map((agg) => ({
id: agg.id,
source: agg.source,
@@ -172,16 +427,19 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
type: MarkerType.ArrowClosed,
width: 14,
height: 14,
- color: THEME.edge[agg.dominantType] ?? "#8b9dc3",
+ color: "var(--color-diagram-edge)",
},
data: {
edge_type: agg.dominantType,
count: agg.count,
category: agg.dominantType,
+ dimmed: selectedCardId
+ ? agg.source !== selectedCardId && agg.target !== selectedCardId
+ : false,
},
}));
- return { nodes, edges, loading: false, issues };
+ return { nodes, edges, loading: false, issues, hiddenEdgeCount: hiddenCount };
}
async function computeDetailLayout(currentView: ArchitectureView): Promise<ArchitectureLayoutResult> {
@@ -189,10 +447,24 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
const containerSizeMemory = useArchitectureStore.getState().containerSizeMemory;
const layer = currentView.layers.find((l: ArchLayer) => l.id === activeLayerId);
if (!layer) {
- return { nodes: [], edges: [], loading: false, issues: [`Layer ${activeLayerId} not found`] };
+ return { nodes: [], edges: [], loading: false, issues: [`Layer ${activeLayerId} not found`], hiddenEdgeCount: 0 };
+ }
+
+ const nodesById = new Map(currentView.nodes.map((n: ArchNode) => [n.id, n]));
+
+ // When a curated sub-group is active, file cards are scoped to it and the
+ // sibling groups stay collapsed cards (locked decision 1).
+ let scopeNodeIds = layer.node_ids;
+ let siblingCards: { id: string; name: string; node_ids: string[] }[] = [];
+ const activeCard = activeSubGroupId
+ ? subGroupCards(layer, nodesById).find((c) => c.id === activeSubGroupId)
+ : undefined;
+ if (activeSubGroupId && activeCard) {
+ scopeNodeIds = activeCard.node_ids;
+ siblingCards = subGroupCards(layer, nodesById).filter((c) => c.id !== activeSubGroupId);
}
- const layerNodeIds = new Set(layer.node_ids);
+ const layerNodeIds = new Set(scopeNodeIds);
let layerNodes = currentView.nodes.filter((n: ArchNode) => layerNodeIds.has(n.id));
layerNodes = filterByPersona(layerNodes);
@@ -204,10 +476,23 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
}
const visibleNodeIds = new Set(layerNodes.map((n: ArchNode) => n.id));
- const nodesById = new Map(currentView.nodes.map((n: ArchNode) => [n.id, n]));
- const containers = buildContainers(layerNodes, currentView.edges, "auto");
- const standaloneIds = getStandaloneNodeIds(layerNodes, containers);
+ // Curated sub-groups from the artifact drive grouping (P3); folder /
+ // community heuristics remain the fallback for uncurated layers (P6).
+ // Inside one sub-group the heuristics regroup its files.
+ const rawContainers = activeCard
+ ? buildContainers(layerNodes, currentView.edges, "auto")
+ : buildContainers(layerNodes, currentView.edges, "curated", layer.sub_groups);
+ const rawStandaloneIds = getStandaloneNodeIds(layerNodes, rawContainers);
+
+ // Hard visible-box budget (P2): sibling cards occupy slots too, so the
+ // file tier degrades into a "+N more" container before exceeding it.
+ const { containers, standaloneIds } = enforceBoxBudget(
+ rawContainers,
+ rawStandaloneIds,
+ (id) => nodesById.get(id)?.pagerank ?? 0,
+ Math.max(4, MAX_VISIBLE_BOXES - siblingCards.length),
+ );
const nodeIdToLayerId = useArchitectureStore.getState().nodeIdToLayerId;
const portalSpecs = buildPortalSpecs(currentView.edges, visibleNodeIds, layer, currentView.layers, nodeIdToLayerId);
@@ -221,8 +506,17 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
for (const id of standaloneIds) {
nodeToBox.set(id, id);
}
+ // Sibling groups absorb their members so in-layer cross-group edges
+ // aggregate into one labelled arrow per visible card pair (P2).
+ for (const sibling of siblingCards) {
+ for (const id of sibling.node_ids) {
+ nodeToBox.set(id, sibling.id);
+ }
+ }
- const aggregated = aggregateEdges(currentView.edges, nodeToBox);
+ const { visible: aggregated, hiddenCount } = capAggregatedEdges(
+ aggregateEdges(currentView.edges, nodeToBox),
+ );
const standaloneLayoutNodes = standaloneIds.map((id) => {
const node = nodesById.get(id);
@@ -230,6 +524,13 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
const sizes = ARCH_NODE_SIZES[nodeType as keyof typeof ARCH_NODE_SIZES] ?? ARCH_NODE_SIZES.file;
return { id, width: sizes.width, height: sizes.height };
});
+ for (const sibling of siblingCards) {
+ standaloneLayoutNodes.push({
+ id: sibling.id,
+ width: ARCH_NODE_SIZES.layerCluster.width,
+ height: ARCH_NODE_SIZES.layerCluster.height,
+ });
+ }
const stage1Edges = aggregated.map((agg) => ({
id: agg.id,
@@ -243,6 +544,7 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
portalSpecs,
stage1Edges,
containerSizeMemory,
+ expandedContainers,
);
const allNodes: Node[] = [];
@@ -257,12 +559,28 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
if (e.source === selectedNodeId) selectedConnectedNodes.add(e.target);
if (e.target === selectedNodeId) selectedConnectedNodes.add(e.source);
}
+ // Selecting a folder/sibling card keeps its own members lit (B5).
+ const selectedContainer = containers.find((c) => c.id === selectedNodeId);
+ if (selectedContainer) {
+ for (const id of selectedContainer.childNodeIds) selectedConnectedNodes.add(id);
+ }
+ const selectedSibling = siblingCards.find((sb) => sb.id === selectedNodeId);
+ if (selectedSibling) {
+ for (const id of selectedSibling.node_ids) selectedConnectedNodes.add(id);
+ }
}
+ // Box identity of the selection, for box-level dimming.
+ const selectedBox = selectedNodeId ? nodeToBox.get(selectedNodeId) ?? selectedNodeId : null;
+
+ // Scope members (containers + standalone files) collect their rects so
+ // the "you are here" frame can wrap them; siblings/portals stay outside.
+ const frameRects: { x: number; y: number; width: number; height: number }[] = [];
for (const container of containers) {
const pos = stage1Positions.get(container.id) ?? { x: 0, y: 0, width: 0, height: 0 };
const isExpanded = expandedContainers.has(container.id);
const searchHitCount = container.childNodeIds.filter((id) => searchHighlightIds.has(id)).length;
+ frameRects.push({ x: pos.x, y: pos.y, width: pos.width, height: pos.height });
allNodes.push({
id: container.id,
@@ -274,6 +592,12 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
childCount: container.childNodeIds.length,
expanded: isExpanded,
searchHitCount,
+ dimmed:
+ (selectedBox
+ ? container.id !== selectedBox &&
+ !container.childNodeIds.some((id) => selectedConnectedNodes.has(id))
+ : false) ||
+ (searchHighlightIds.size > 0 && searchHitCount === 0),
},
width: pos.width,
height: pos.height,
@@ -301,8 +625,14 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
}));
const stage2 = await computeStage2Layout(childLayoutNodes, internalEdges);
+ // Entry points anchor to the top of their group (plan C-3);
+ // demoted barrels never count as entries.
+ const hoisted = hoistPrioritySlots(stage2.positions, childLayoutNodes, (id) => {
+ const child = nodesById.get(id);
+ return Boolean(child?.is_entry_point) && !(child?.tags.includes("barrel") ?? false);
+ });
const layoutResult = {
- positions: stage2.positions,
+ positions: hoisted,
size: stage2.actualSize,
};
store.setContainerLayout(container.id, layoutResult);
@@ -314,7 +644,7 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
store.bumpStage1Tick();
}
- addChildNodes(allNodes, container, stage2.positions, pos, nodesById, searchHighlightIds, selectedConnectedNodes);
+ addChildNodes(allNodes, container, hoisted, pos, nodesById, searchHighlightIds, selectedConnectedNodes);
}
}
}
@@ -324,6 +654,7 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
if (!node) continue;
const pos = stage1Positions.get(id) ?? { x: 0, y: 0, width: 0, height: 0 };
const sizes = ARCH_NODE_SIZES[node.node_type as keyof typeof ARCH_NODE_SIZES] ?? ARCH_NODE_SIZES.file;
+ frameRects.push({ x: pos.x, y: pos.y, width: sizes.width, height: sizes.height });
allNodes.push({
id: node.id,
type: "archFile",
@@ -334,6 +665,38 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
});
}
+ // "You are here": dashed boundary around the active scope's content.
+ const detailFrame = buildScopeFrameNode(
+ `frame:${activeSubGroupId ?? layer.id}`,
+ activeCard ? `${layer.name} › ${activeCard.name}` : layer.name,
+ frameRects,
+ );
+ if (detailFrame) allNodes.unshift(detailFrame);
+
+ for (const sibling of siblingCards) {
+ const pos = stage1Positions.get(sibling.id) ?? { x: 0, y: 0, width: 0, height: 0 };
+ allNodes.push({
+ id: sibling.id,
+ type: "subGroupCluster",
+ position: { x: pos.x, y: pos.y },
+ data: {
+ layer: synthesizeCardLayer(sibling, nodesById),
+ kind: "subGroup",
+ sibling: true,
+ searchHighlight: sibling.node_ids.some((nid) => searchHighlightIds.has(nid)),
+ dimmed:
+ (selectedBox
+ ? sibling.id !== selectedBox &&
+ !sibling.node_ids.some((id) => selectedConnectedNodes.has(id))
+ : false) ||
+ (searchHighlightIds.size > 0 &&
+ !sibling.node_ids.some((nid) => searchHighlightIds.has(nid))),
+ },
+ width: ARCH_NODE_SIZES.layerCluster.width,
+ height: ARCH_NODE_SIZES.layerCluster.height,
+ });
+ }
+
for (const portal of portalSpecs) {
const pos = stage1Positions.get(portal.id) ?? { x: 0, y: 0, width: 0, height: 0 };
allNodes.push({
@@ -344,6 +707,15 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
targetLayerId: portal.targetLayerId,
targetLayerName: portal.targetLayerName,
edgeCount: portal.edgeCount,
+ // Portals never appear in aggregated edges (nodeToBox has no portal
+ // mapping), so testing aggregated here dimmed every portal whenever
+ // anything was selected. A portal is related when the selection's
+ // neighbourhood reaches into its target layer.
+ dimmed: selectedBox
+ ? ![...selectedConnectedNodes].some(
+ (id) => nodeIdToLayerId.get(id) === portal.targetLayerId,
+ )
+ : false,
},
width: ARCH_NODE_SIZES.portal.width,
height: ARCH_NODE_SIZES.portal.height,
@@ -352,7 +724,10 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
for (const agg of aggregated) {
const isDimmed = selectedNodeId
- ? !selectedConnectedNodes.has(agg.source) && !selectedConnectedNodes.has(agg.target)
+ ? agg.source !== selectedBox &&
+ agg.target !== selectedBox &&
+ !selectedConnectedNodes.has(agg.source) &&
+ !selectedConnectedNodes.has(agg.target)
: false;
allEdges.push({
id: agg.id,
@@ -363,7 +738,7 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
type: MarkerType.ArrowClosed,
width: 14,
height: 14,
- color: THEME.edge[agg.dominantType] ?? "#8b9dc3",
+ color: "var(--color-diagram-edge)",
},
data: {
edge_type: agg.dominantType,
@@ -375,7 +750,7 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
});
}
- return { nodes: allNodes, edges: allEdges, loading: false, issues };
+ return { nodes: allNodes, edges: allEdges, loading: false, issues, hiddenEdgeCount: hiddenCount };
}
function filterByPersona(nodes: ArchNode[]): ArchNode[] {
@@ -433,19 +808,61 @@ export function useArchitectureLayout(): ArchitectureLayoutResult {
if (changedNodeIds.has(node.id)) diffState = "changed";
else if (affectedNodeIds.has(node.id)) diffState = "affected";
}
- const dimmed = connectedNodes && selectedNodeId
+ const selectionDim = connectedNodes && selectedNodeId
? !connectedNodes.has(node.id)
: false;
+ // Search recedes everything that doesn't match (kg-ux plan B6) —
+ // matches keep the accent highlight, the rest fades.
+ const searchDim = searchHighlightIds.size > 0 && !searchHighlightIds.has(node.id);
+ const dimmed = selectionDim || searchDim;
+ const isTourTarget = tourActive && tourHighlightedNodeIds.has(node.id);
return {
node,
hasDocs: node.has_doc,
searchHighlight: searchHighlightIds.has(node.id),
tourHighlight: tourHighlightedNodeIds.has(node.id),
+ // Numbered step badge on the highlighted node (plan C-2).
+ tourStepNumber: isTourTarget ? currentTourStep + 1 : undefined,
diffState,
dimmed,
};
}
+ /** Dashed "you are here" boundary behind the drilled scope (kg-ux §2.4).
+ * Pure underlay: zIndex -1, non-interactive, sized to the members' bbox. */
+ function buildScopeFrameNode(
+ frameId: string,
+ label: string,
+ rects: { x: number; y: number; width: number; height: number }[],
+ ): Node | null {
+ if (rects.length === 0) return null;
+ const PAD = { top: 56, right: 40, bottom: 40, left: 40 };
+ let minX = Infinity;
+ let minY = Infinity;
+ let maxX = -Infinity;
+ let maxY = -Infinity;
+ for (const r of rects) {
+ minX = Math.min(minX, r.x);
+ minY = Math.min(minY, r.y);
+ maxX = Math.max(maxX, r.x + r.width);
+ maxY = Math.max(maxY, r.y + r.height);
+ }
+ const width = maxX - minX + PAD.left + PAD.right;
+ const height = maxY - minY + PAD.top + PAD.bottom;
+ return {
+ id: frameId,
+ type: "scopeFrame",
+ position: { x: minX - PAD.left, y: minY - PAD.top },
+ data: { label, width, height },
+ width,
+ height,
+ zIndex: -1,
+ selectable: false,
+ draggable: false,
+ focusable: false,
+ };
+ }
+
function addChildNodes(
allNodes: Node[],
container: ContainerAtom,
diff --git a/packages/ui/src/c4/hooks/use-architecture-navigation.ts b/packages/ui/src/c4/hooks/use-architecture-navigation.ts
index a18f3abc2..ac2cd4051 100644
--- a/packages/ui/src/c4/hooks/use-architecture-navigation.ts
+++ b/packages/ui/src/c4/hooks/use-architecture-navigation.ts
@@ -22,7 +22,13 @@ export function useArchitectureNavigation(): void {
state.closeCodeViewer();
} else if (state.selectedNodeId !== null) {
state.selectNode(null);
- } else if (state.navigationLevel === "layer-detail") {
+ } else if (state.expandedContainers.size > 0) {
+ // Grammar parity with the dependency graph's hub collapse:
+ // Esc peels the most recently expanded container before
+ // popping the tier (insertion-ordered Set).
+ const last = Array.from(state.expandedContainers).pop();
+ if (last) state.toggleContainer(last);
+ } else if (state.navigationLevel !== "overview") {
state.drillOut();
}
break;
diff --git a/packages/ui/src/c4/index.ts b/packages/ui/src/c4/index.ts
index 3c79f2e41..57fe621ce 100644
--- a/packages/ui/src/c4/index.ts
+++ b/packages/ui/src/c4/index.ts
@@ -73,6 +73,8 @@ export {
FilterPanel,
NodeTypeCategoryFilters,
LearnPanel,
+ ArchBreadcrumb,
+ ArchLegend,
PersonaSelector,
CodeViewer,
getLanguageFromPath,
diff --git a/packages/ui/src/c4/layout/containers.ts b/packages/ui/src/c4/layout/containers.ts
index 3313aa1f8..28a54964b 100644
--- a/packages/ui/src/c4/layout/containers.ts
+++ b/packages/ui/src/c4/layout/containers.ts
@@ -1,13 +1,22 @@
-import type { ArchNode, ArchEdge } from "../types";
+import type { ArchNode, ArchEdge, ArchSubGroup } from "../types";
import type { ContainerAtom } from "./two-stage-layout";
+export type ContainerStrategy = "curated" | "folder" | "community" | "auto";
+
export function buildContainers(
nodes: ArchNode[],
_edges: ArchEdge[],
- strategy: "folder" | "community" | "auto",
+ strategy: ContainerStrategy,
+ subGroups?: ArchSubGroup[],
): ContainerAtom[] {
- const resolved = resolveStrategy(strategy, nodes);
+ // Curated grouping comes from the artifact (P3); folder/community heuristics
+ // remain the fallback when curation is off or the layer has no sub-groups.
+ if (strategy === "curated" && subGroups && subGroups.length > 0) {
+ const curated = buildCuratedContainers(nodes, subGroups);
+ if (curated.length > 0) return curated;
+ }
+ const resolved = resolveStrategy(strategy, nodes);
if (resolved === "folder") {
return buildFolderContainers(nodes);
}
@@ -15,7 +24,7 @@ export function buildContainers(
}
function resolveStrategy(
- strategy: "folder" | "community" | "auto",
+ strategy: ContainerStrategy,
nodes: ArchNode[],
): "folder" | "community" {
if (strategy === "folder") return "folder";
@@ -24,6 +33,28 @@ function resolveStrategy(
return withPath / Math.max(nodes.length, 1) > 0.8 ? "folder" : "community";
}
+function buildCuratedContainers(
+ nodes: ArchNode[],
+ subGroups: ArchSubGroup[],
+): ContainerAtom[] {
+ const visible = new Set(nodes.map((n) => n.id));
+
+ const containers: ContainerAtom[] = [];
+ for (const group of subGroups) {
+ // id/name verbatim from the artifact; members limited to visible nodes
+ // (persona / detail-level / user filters run upstream).
+ const childNodeIds = group.node_ids.filter((id) => visible.has(id));
+ if (childNodeIds.length <= 1) continue;
+ containers.push({
+ id: group.id,
+ label: group.name,
+ childNodeIds,
+ });
+ }
+
+ return containers;
+}
+
function buildFolderContainers(nodes: ArchNode[]): ContainerAtom[] {
const groups = new Map<string, string[]>();
@@ -102,3 +133,67 @@ export function getStandaloneNodeIds(
}
return nodes.filter((n) => !contained.has(n.id)).map((n) => n.id);
}
+
+/** Hard budget for visible group boxes per viewport (viewer plan P2). */
+export const MAX_VISIBLE_BOXES = 12;
+
+export interface BudgetedBoxes {
+ containers: ContainerAtom[];
+ standaloneIds: string[];
+ /** Boxes folded into the "+N more" overflow container. */
+ collapsedCount: number;
+}
+
+/** Enforce the visible-box budget: when containers + standalone cards exceed
+ * *max*, the lowest-pagerank boxes collapse into one "+N more" container
+ * instead of ever exceeding the budget (degradation, not truncation). */
+export function enforceBoxBudget(
+ containers: ContainerAtom[],
+ standaloneIds: string[],
+ pagerankOf: (id: string) => number,
+ max: number = MAX_VISIBLE_BOXES,
+): BudgetedBoxes {
+ const total = containers.length + standaloneIds.length;
+ if (total <= max) {
+ return { containers, standaloneIds, collapsedCount: 0 };
+ }
+
+ type Box =
+ | { kind: "container"; score: number; container: ContainerAtom }
+ | { kind: "standalone"; score: number; id: string };
+
+ const boxes: Box[] = [
+ ...containers.map((c) => ({
+ kind: "container" as const,
+ score: Math.max(...c.childNodeIds.map(pagerankOf)),
+ container: c,
+ })),
+ ...standaloneIds.map((id) => ({
+ kind: "standalone" as const,
+ score: pagerankOf(id),
+ id,
+ })),
+ ].sort((a, b) => b.score - a.score);
+
+ // Keep the strongest max-1 boxes; everything else folds into the overflow.
+ const kept = boxes.slice(0, max - 1);
+ const merged = boxes.slice(max - 1);
+
+ const overflowChildren = merged.flatMap((b) =>
+ b.kind === "container" ? b.container.childNodeIds : [b.id],
+ );
+ const overflow: ContainerAtom = {
+ id: "container:__overflow",
+ label: `+${merged.length} more`,
+ childNodeIds: overflowChildren,
+ };
+
+ return {
+ containers: [
+ ...kept.filter((b) => b.kind === "container").map((b) => b.container),
+ overflow,
+ ],
+ standaloneIds: kept.filter((b) => b.kind === "standalone").map((b) => b.id),
+ collapsedCount: merged.length,
+ };
+}
diff --git a/packages/ui/src/c4/layout/edge-aggregation.ts b/packages/ui/src/c4/layout/edge-aggregation.ts
index 09c35e0a8..413825621 100644
--- a/packages/ui/src/c4/layout/edge-aggregation.ts
+++ b/packages/ui/src/c4/layout/edge-aggregation.ts
@@ -60,3 +60,24 @@ export function aggregateEdges(
result.sort((a, b) => b.count - a.count);
return result;
}
+
+/** Hard budget for aggregated arrows per viewport (viewer plan P2). */
+export const MAX_VISIBLE_AGGREGATED_EDGES = 24;
+
+export interface CappedEdges {
+ visible: AggregatedEdge[];
+ /** Number of aggregated arrows dropped (the "+N weaker links" affordance). */
+ hiddenCount: number;
+}
+
+/** Keep only the heaviest aggregated arrows at the visible tier.
+ * Input is already sorted by weight (count) descending. */
+export function capAggregatedEdges(
+ edges: AggregatedEdge[],
+ max: number = MAX_VISIBLE_AGGREGATED_EDGES,
+): CappedEdges {
+ if (edges.length <= max) {
+ return { visible: edges, hiddenCount: 0 };
+ }
+ return { visible: edges.slice(0, max), hiddenCount: edges.length - max };
+}
diff --git a/packages/ui/src/c4/layout/two-stage-layout.ts b/packages/ui/src/c4/layout/two-stage-layout.ts
index f319398c0..cc029780a 100644
--- a/packages/ui/src/c4/layout/two-stage-layout.ts
+++ b/packages/ui/src/c4/layout/two-stage-layout.ts
@@ -88,18 +88,56 @@ export function estimateContainerSize(childCount: number): { width: number; heig
return { width, height };
}
+/** Re-assign uniform card slots so reading order (top→bottom, left→right)
+ * follows the curated rank (position = meaning, viewer plan B-4).
+ *
+ * ELK's layered algorithm stacks by edge direction, which on real graphs can
+ * contradict the artifact's dependency order (and elkjs partitioning is
+ * unreliable once edges exist). Since the ranked cards are uniformly sized,
+ * permuting which card occupies which slot is safe and deterministic; edge
+ * paths follow automatically because the renderer draws from node positions.
+ * Unranked entries (portals, …) keep their slots. */
+export function assignSlotsByRank(
+ positions: Map<string, { x: number; y: number; width: number; height: number }>,
+ ranks: Map<string, number>,
+): Map<string, { x: number; y: number; width: number; height: number }> {
+ const rankedIds = [...positions.keys()].filter((id) => ranks.has(id));
+ if (rankedIds.length < 2) return positions;
+
+ const slots = rankedIds
+ .map((id) => positions.get(id)!)
+ .sort((a, b) => a.y - b.y || a.x - b.x);
+ const order = [...rankedIds].sort(
+ (a, b) => ranks.get(a)! - ranks.get(b)! || a.localeCompare(b),
+ );
+
+ const out = new Map(positions);
+ order.forEach((id, i) => out.set(id, slots[i]!));
+ return out;
+}
+
export async function computeStage1Layout(
containers: ContainerAtom[],
standaloneNodes: { id: string; width: number; height: number }[],
portalNodes: PortalSpec[],
edges: { id: string; source: string; target: string }[],
containerSizeMemory: Map<string, { width: number; height: number }>,
+ expandedContainerIds?: Set<string>,
): Promise<Stage1Result> {
const allNodes: { id: string; width: number; height: number }[] = [];
for (const container of containers) {
- const memorized = containerSizeMemory.get(container.id);
- const size = memorized ?? container.estimatedSize ?? estimateContainerSize(container.childNodeIds.length);
+ // A collapsed container renders as a small card; sizing it by its
+ // child-count estimate hands ELK an up-to-800×600 phantom box, which
+ // scatters the cards across acres of whitespace and anchors edge
+ // arrowheads at the phantom's midpoint — arrows pointing into empty
+ // canvas. Only an expanded container occupies its measured footprint.
+ const expanded = expandedContainerIds?.has(container.id) ?? false;
+ const size = expanded
+ ? containerSizeMemory.get(container.id)
+ ?? container.estimatedSize
+ ?? estimateContainerSize(container.childNodeIds.length)
+ : ARCH_NODE_SIZES.containerCollapsed;
allNodes.push({ id: container.id, width: size.width, height: size.height });
}
@@ -147,6 +185,45 @@ export async function computeStage1Layout(
return { positions, issues };
}
+/** Bubble priority nodes (curated entry points) to the top-left slots of
+ * their group (viewer plan C-3). Permutes slots only among children of the
+ * same size so the layout stays overlap-free; non-priority nodes keep their
+ * relative order. */
+export function hoistPrioritySlots(
+ positions: Map<string, { x: number; y: number }>,
+ children: { id: string; width: number; height: number }[],
+ isPriority: (id: string) => boolean,
+): Map<string, { x: number; y: number }> {
+ const bySize = new Map<string, string[]>();
+ for (const child of children) {
+ if (!positions.has(child.id)) continue;
+ const key = `${child.width}x${child.height}`;
+ const group = bySize.get(key);
+ if (group) {
+ group.push(child.id);
+ } else {
+ bySize.set(key, [child.id]);
+ }
+ }
+
+ const out = new Map(positions);
+ for (const ids of bySize.values()) {
+ if (ids.length < 2 || !ids.some(isPriority)) continue;
+ const slotOrder = [...ids].sort((a, b) => {
+ const pa = positions.get(a)!;
+ const pb = positions.get(b)!;
+ return pa.y - pb.y || pa.x - pb.x;
+ });
+ const slots = slotOrder.map((id) => positions.get(id)!);
+ const order = [
+ ...slotOrder.filter(isPriority),
+ ...slotOrder.filter((id) => !isPriority(id)),
+ ];
+ order.forEach((id, i) => out.set(id, slots[i]!));
+ }
+ return out;
+}
+
export async function computeStage2Layout(
children: { id: string; width: number; height: number }[],
internalEdges: { id: string; source: string; target: string }[],
diff --git a/packages/ui/src/c4/mobile/MobileBottomNav.tsx b/packages/ui/src/c4/mobile/MobileBottomNav.tsx
index 2413df190..b48f852d7 100644
--- a/packages/ui/src/c4/mobile/MobileBottomNav.tsx
+++ b/packages/ui/src/c4/mobile/MobileBottomNav.tsx
@@ -23,7 +23,7 @@ export function MobileBottomNav({ activeTab, onTabChange }: MobileBottomNavProps
style={{
display: "flex",
height: 56,
- borderTop: "1px solid var(--color-border-default, #334155)",
+ borderTop: "1px solid var(--color-border-default)",
background: "var(--color-bg-elevated, rgba(17,24,39,0.96))",
flexShrink: 0,
}}
@@ -51,15 +51,15 @@ export function MobileBottomNav({ activeTab, onTabChange }: MobileBottomNavProps
border: "none",
cursor: "pointer",
color: isActive
- ? "var(--color-accent-primary, #f59520)"
- : "var(--color-text-secondary, #94a3b8)",
+ ? "var(--color-accent-primary)"
+ : "var(--color-text-secondary)",
fontSize: 10,
fontWeight: 600,
letterSpacing: 0.3,
outline: "none",
}}
onFocus={(e) => {
- e.currentTarget.style.outline = "2px solid var(--color-accent-primary, #f59520)";
+ e.currentTarget.style.outline = "2px solid var(--color-accent-primary)";
e.currentTarget.style.outlineOffset = "-2px";
}}
onBlur={(e) => {
diff --git a/packages/ui/src/c4/mobile/MobileLayout.tsx b/packages/ui/src/c4/mobile/MobileLayout.tsx
index bd14148c6..cfcaabece 100644
--- a/packages/ui/src/c4/mobile/MobileLayout.tsx
+++ b/packages/ui/src/c4/mobile/MobileLayout.tsx
@@ -43,7 +43,7 @@ export function MobileLayout({
display: "flex",
flexDirection: "column",
overflow: "hidden",
- background: "var(--color-bg-canvas, #0f172a)",
+ background: "var(--color-bg-canvas)",
}}
>
<div
@@ -86,7 +86,7 @@ export function MobileLayout({
pointerEvents: activeTab === "info" ? "auto" : "none",
overflowY: "auto",
background: "var(--color-bg-elevated, rgba(17,24,39,0.96))",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
}}
>
{infoContent}
@@ -101,7 +101,7 @@ export function MobileLayout({
pointerEvents: activeTab === "files" ? "auto" : "none",
overflowY: "auto",
background: "var(--color-bg-elevated, rgba(17,24,39,0.96))",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
}}
>
{filesContent}
diff --git a/packages/ui/src/c4/nodes/ArchContainerNode.tsx b/packages/ui/src/c4/nodes/ArchContainerNode.tsx
index 28e545e85..71d4e301b 100644
--- a/packages/ui/src/c4/nodes/ArchContainerNode.tsx
+++ b/packages/ui/src/c4/nodes/ArchContainerNode.tsx
@@ -5,6 +5,7 @@ import { ChevronRight, ChevronDown } from "lucide-react";
import type { NodeProps } from "@xyflow/react";
import { Handle, Position } from "@xyflow/react";
import { useArchitectureStore } from "../store/use-architecture-store";
+import { THEME } from "../theme/theme-variables";
export interface ArchContainerNodeProps {
containerId: string;
@@ -12,42 +13,60 @@ export interface ArchContainerNodeProps {
childCount: number;
expanded: boolean;
searchHitCount?: number | undefined;
+ /** Unrelated to the current selection — fade, never vanish (plan D). */
+ dimmed?: boolean | undefined;
}
function ArchContainerNodeImpl(props: NodeProps) {
const { data, selected } = props as NodeProps & { data: ArchContainerNodeProps };
- const { containerId, label, childCount, expanded, searchHitCount } = data;
+ const { containerId, label, childCount, expanded, searchHitCount, dimmed } = data;
const [hovered, setHovered] = useState(false);
const ChevronIcon = expanded ? ChevronDown : ChevronRight;
- const handleClick = () => {
- useArchitectureStore.getState().toggleContainer(containerId);
+ // Unified click grammar (kg-ux plan B5): single click selects (page-level
+ // handler); double-click expands/collapses (page-level too). Keyboard
+ // Enter/Space mirrors single-click selection.
+ const handleSelect = () => {
+ useArchitectureStore.getState().selectNode(containerId);
};
+ // Diagram ink, not panel chrome: the panel border tokens sit at ~12% alpha
+ // and disappear into the paper canvas in light mode, leaving the (full-ink)
+ // edges pointing at boxes the eye can't see. Folder containers are
+ // supporting-cast boxes, so they take the faded-ink outline.
const borderColor = selected
- ? "#fbbf24"
- : "rgba(96, 165, 250, 0.2)";
+ ? THEME.selection.ring
+ : "var(--color-kg-node-border-2)";
return (
<div
- onClick={handleClick}
+ role="button"
+ tabIndex={0}
+ aria-label={`Inspect folder ${label}`}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleSelect();
+ }
+ }}
onMouseEnter={() => setHovered(true)}
onMouseLeave={() => setHovered(false)}
style={{
cursor: "pointer",
width: expanded ? 320 : 260,
minHeight: expanded ? undefined : 56,
- background: hovered ? "rgba(96, 165, 250, 0.07)" : "rgba(96, 165, 250, 0.04)",
+ background: hovered ? THEME.surface.washHover : THEME.surface.wash,
border: `1.5px solid ${borderColor}`,
- borderLeft: `3px solid ${selected ? "#fbbf24" : "rgba(96, 165, 250, 0.3)"}`,
+ borderLeft: `3px solid ${selected ? THEME.selection.ring : "var(--color-kg-node-border-2)"}`,
borderRadius: 12,
padding: "10px 14px",
display: "flex",
flexDirection: "column",
gap: 2,
- boxShadow: selected ? "0 0 0 2px rgba(251,191,36,0.3)" : "none",
- transition: "background 0.15s ease",
+ boxShadow: selected ? `0 0 0 2px ${THEME.selection.ringAlpha}` : "none",
+ opacity: dimmed && !hovered ? 0.45 : 1,
+ transition: "background 0.15s ease, opacity 0.2s ease",
}}
>
<Handle type="target" position={Position.Top} style={{ opacity: 0 }} />
@@ -55,7 +74,7 @@ function ArchContainerNodeImpl(props: NodeProps) {
<span style={{
fontSize: 13,
fontWeight: 600,
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
@@ -63,18 +82,18 @@ function ArchContainerNodeImpl(props: NodeProps) {
{label}
</span>
<div style={{ display: "flex", alignItems: "center", gap: 6 }}>
- <span style={{ fontSize: 11, color: "var(--color-text-secondary, #94a3b8)" }}>
+ <span style={{ fontSize: 11, color: "var(--color-text-secondary)" }}>
{childCount}
</span>
- <ChevronIcon size={12} color="var(--color-text-secondary, #94a3b8)" aria-hidden />
+ <ChevronIcon size={12} color="var(--color-text-secondary)" aria-hidden />
</div>
</div>
{searchHitCount != null && searchHitCount > 0 && (
<span style={{
fontSize: 10,
fontFamily: "var(--font-mono, ui-monospace, monospace)",
- color: "#f59520",
- background: "rgba(245, 149, 32, 0.12)",
+ color: THEME.accent.primary,
+ background: THEME.accent.muted,
padding: "1px 6px",
borderRadius: 4,
alignSelf: "flex-start",
diff --git a/packages/ui/src/c4/nodes/ArchFileNode.tsx b/packages/ui/src/c4/nodes/ArchFileNode.tsx
index 7bad5b056..200380688 100644
--- a/packages/ui/src/c4/nodes/ArchFileNode.tsx
+++ b/packages/ui/src/c4/nodes/ArchFileNode.tsx
@@ -3,7 +3,9 @@
import { memo } from "react";
import { Flame, Skull, Play } from "lucide-react";
import type { NodeProps } from "@xyflow/react";
-import { NodeShell } from "../../graph-primitives/node-shell";
+import { InkNodeShell, type InkRole } from "./ink-node-shell";
+import { getKindIcon } from "./kind-icons";
+import { EntityHoverCard } from "../../shared/entity";
import { THEME } from "../theme/theme-variables";
import type { ArchNode } from "../types";
@@ -12,33 +14,67 @@ export interface ArchFileNodeProps {
hasDocs?: boolean | undefined;
searchHighlight?: boolean | undefined;
tourHighlight?: boolean | undefined;
+ /** 1-based step number shown while the guided tour highlights this node. */
+ tourStepNumber?: number | undefined;
diffState?: "changed" | "affected" | "faded" | undefined;
dimmed?: boolean | undefined;
}
function ArchFileNodeImpl(props: NodeProps) {
const { data, selected } = props as NodeProps & { data: ArchFileNodeProps };
- const { node, hasDocs, searchHighlight, tourHighlight, diffState, dimmed } = data;
- const effectiveDiffState = dimmed && !diffState ? "faded" : diffState;
+ const { node, hasDocs, searchHighlight, tourHighlight, tourStepNumber, diffState, dimmed } = data;
- const kindLabel = node.node_type;
+ // Re-export barrels are de-emphasized with their honest summary (plan C-3):
+ // faded card, no entry-point badge — they are shells, not destinations.
+ const isBarrel = node.tags.includes("barrel");
+ const barrelFaded = isBarrel && !selected && !searchHighlight && !tourHighlight;
- const complexityColor = THEME.complexity[node.complexity] ?? "#94a3b8";
+ const kindLabel = isBarrel ? "barrel" : node.node_type;
+
+ // Role-based ink (plan §2.2): entry points are the orange "start here"
+ // blocks; barrels recede to secondary ink; everything else is primary.
+ const role: InkRole = node.is_entry_point && !isBarrel
+ ? "accent"
+ : isBarrel
+ ? "secondary"
+ : "primary";
+
+ const complexityColor = THEME.complexity[node.complexity] ?? THEME.text.muted;
const badges = (
<>
- {node.is_entry_point && (
- <span title="Entry point" aria-label="Entry point" style={{ display: "inline-flex", color: "#4ade80" }}>
+ {typeof tourStepNumber === "number" && (
+ <span
+ title={`Tour step ${tourStepNumber}`}
+ aria-label={`Tour step ${tourStepNumber}`}
+ style={{
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ width: 14,
+ height: 14,
+ borderRadius: "50%",
+ fontSize: 9,
+ fontWeight: 700,
+ color: "var(--color-text-on-accent)",
+ background: "var(--color-accent-fill)",
+ }}
+ >
+ {tourStepNumber}
+ </span>
+ )}
+ {node.is_entry_point && !isBarrel && (
+ <span title="Entry point" aria-label="Entry point" style={{ display: "inline-flex", color: "currentColor" }}>
<Play size={10} aria-hidden />
</span>
)}
{node.is_hotspot && (
- <span title="Hotspot" aria-label="Hotspot" style={{ display: "inline-flex", color: "#fca5a5" }}>
+ <span title="Hotspot" aria-label="Hotspot" style={{ display: "inline-flex", color: THEME.status.hotspot }}>
<Flame size={10} aria-hidden />
</span>
)}
{node.is_dead && (
- <span title="Dead code" aria-label="Dead code" style={{ display: "inline-flex", color: "#cbd5e1" }}>
+ <span title="Dead code" aria-label="Dead code" style={{ display: "inline-flex", color: THEME.status.dead }}>
<Skull size={10} aria-hidden />
</span>
)}
@@ -62,21 +98,52 @@ function ArchFileNodeImpl(props: NodeProps) {
);
return (
- <NodeShell
- tone={node.node_type}
- kindLabel={kindLabel}
- title={node.name}
- subtitle={node.summary}
- footer={footer}
- selected={selected}
- searchHighlight={searchHighlight}
- tourHighlight={tourHighlight}
- diffState={effectiveDiffState}
- hasDocs={hasDocs ?? node.has_doc}
- badges={badges}
- width={300}
- height={140}
- />
+ // Summary-rich hover (plan C-4): curated summary + tags + signals via the
+ // shared EntityHoverCard — no new card components.
+ <EntityHoverCard
+ entity={{ kind: "file", id: node.file_path ?? node.id }}
+ meta={{
+ kind: "file",
+ data: {
+ summary: node.summary,
+ tags: node.tags,
+ owner: node.primary_owner,
+ busFactor: node.bus_factor,
+ language: node.language,
+ hasDocs: hasDocs ?? node.has_doc,
+ hasDeadCode: node.is_dead,
+ },
+ }}
+ >
+ {/* Dimming discipline (plan D): unrelated cards fade, never vanish —
+ the diff overlay keeps its stronger "faded" treatment. */}
+ <div
+ style={
+ barrelFaded
+ ? { opacity: 0.55, transition: "opacity 0.2s ease" }
+ : dimmed && !diffState
+ ? { opacity: 0.45, transition: "opacity 0.2s ease" }
+ : { transition: "opacity 0.2s ease" }
+ }
+ >
+ <InkNodeShell
+ role={role}
+ icon={getKindIcon(node.node_type)}
+ kindLabel={kindLabel}
+ title={node.name}
+ subtitle={node.summary}
+ meta={footer}
+ selected={selected}
+ searchHighlight={searchHighlight}
+ tourHighlight={tourHighlight}
+ diffState={diffState}
+ hasDocs={hasDocs ?? node.has_doc}
+ badges={badges}
+ width={300}
+ height={140}
+ />
+ </div>
+ </EntityHoverCard>
);
}
diff --git a/packages/ui/src/c4/nodes/ContainerNode.tsx b/packages/ui/src/c4/nodes/ContainerNode.tsx
index 1ed073395..a34d0453c 100644
--- a/packages/ui/src/c4/nodes/ContainerNode.tsx
+++ b/packages/ui/src/c4/nodes/ContainerNode.tsx
@@ -4,6 +4,7 @@ import { memo, type ReactNode } from "react";
import { Files, Flame, Skull } from "lucide-react";
import type { NodeProps } from "@xyflow/react";
import { NodeShell } from "./node-shell";
+import { THEME } from "../theme/theme-variables";
import type { C4Container } from "../types";
export interface ContainerNodeProps {
@@ -21,14 +22,14 @@ function ContainerNodeImpl(props: NodeProps) {
];
if (container.hotspot_count > 0) {
chips.push(
- <span key="hot" style={{ display: "inline-flex", alignItems: "center", gap: 3, color: "#fca5a5" }}>
+ <span key="hot" style={{ display: "inline-flex", alignItems: "center", gap: 3, color: THEME.status.hotspot }}>
<Flame size={11} aria-hidden /> {container.hotspot_count}
</span>,
);
}
if (container.dead_count > 0) {
chips.push(
- <span key="dead" style={{ display: "inline-flex", alignItems: "center", gap: 3, color: "#cbd5e1" }}>
+ <span key="dead" style={{ display: "inline-flex", alignItems: "center", gap: 3, color: THEME.status.dead }}>
<Skull size={11} aria-hidden /> {container.dead_count}
</span>,
);
diff --git a/packages/ui/src/c4/nodes/LayerClusterNode.tsx b/packages/ui/src/c4/nodes/LayerClusterNode.tsx
index 0c64e8781..947812c3f 100644
--- a/packages/ui/src/c4/nodes/LayerClusterNode.tsx
+++ b/packages/ui/src/c4/nodes/LayerClusterNode.tsx
@@ -2,7 +2,8 @@
import { memo, useState } from "react";
import type { NodeProps } from "@xyflow/react";
-import { NodeShell } from "../../graph-primitives/node-shell";
+import { InkNodeShell, type InkRole } from "./ink-node-shell";
+import { getKindIcon } from "./kind-icons";
import { useArchitectureStore } from "../store/use-architecture-store";
import { THEME } from "../theme/theme-variables";
import type { ArchLayer } from "../types";
@@ -10,15 +11,33 @@ import type { ArchLayer } from "../types";
export interface LayerClusterNodeProps {
layer: ArchLayer;
searchHighlight?: boolean | undefined;
+ /** "layer" (default) drills into the layer; "subGroup" renders the same
+ * card as a curated sub-group and drills into it. Reuse, not a fork. */
+ kind?: "layer" | "subGroup" | undefined;
+ /** Visually de-emphasized (Test layer by default — decision 2). */
+ demoted?: boolean | undefined;
+ /** Collapsed sibling card in the detail tier — supporting cast, not the
+ * active scope, so it recedes to secondary ink (kg-ux plan §2.2). */
+ sibling?: boolean | undefined;
+ /** Unrelated to the current selection — fade, never vanish (plan D). */
+ dimmed?: boolean | undefined;
}
function LayerClusterNodeImpl(props: NodeProps) {
const { data, selected } = props as NodeProps & { data: LayerClusterNodeProps };
- const { layer, searchHighlight } = data;
+ const { layer, searchHighlight, demoted, sibling, dimmed } = data;
+ const kind = data.kind ?? "layer";
const [hovered, setHovered] = useState(false);
- const handleClick = () => {
- useArchitectureStore.getState().drillIntoLayer(layer.id);
+ // Active-scope cards are primary ink; demoted (Test) and collapsed
+ // siblings recede to secondary ink.
+ const role: InkRole = demoted || sibling ? "secondary" : "primary";
+
+ // Unified click grammar (kg-ux plan B5): single click / Enter = select +
+ // inspect (the page-level onNodeClick handles mouse; keyboard mirrors it
+ // here). Drilling moved to double-click, owned by the page handler.
+ const handleSelect = () => {
+ useArchitectureStore.getState().selectNode(layer.id);
};
const dominantComplexity = (["complex", "moderate", "simple"] as const)
@@ -53,7 +72,7 @@ function LayerClusterNodeImpl(props: NodeProps) {
style={{
fontSize: 12,
fontWeight: 600,
- color: layer.health_score >= 80 ? "#4ade80" : layer.health_score >= 60 ? "#fbbf24" : "#f87171",
+ color: layer.health_score >= 80 ? THEME.health.good : layer.health_score >= 60 ? THEME.health.fair : THEME.health.poor,
}}
>
{Math.round(layer.health_score)}
@@ -74,41 +93,52 @@ function LayerClusterNodeImpl(props: NodeProps) {
style={{
fontSize: 10,
opacity: hovered ? 0.9 : 0,
- color: "var(--color-accent-primary, #f59520)",
+ color: "currentColor",
transition: "opacity 0.2s ease",
textAlign: "right",
}}
>
- Click to explore →
+ Double-click to open →
</div>
</div>
);
return (
<div
- onClick={handleClick}
+ role="button"
+ tabIndex={0}
+ aria-label={`${kind === "subGroup" ? "Inspect group" : "Inspect layer"} ${layer.name}`}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") {
+ e.preventDefault();
+ handleSelect();
+ }
+ }}
onMouseEnter={() => setHovered(true)}
onMouseLeave={() => setHovered(false)}
style={{
cursor: "pointer",
boxShadow: hovered
- ? "0 4px 16px rgba(0,0,0,0.4)"
+ ? "0 4px 16px rgba(0,0,0,0.25)"
: "none",
- borderRadius: 8,
- transition: "box-shadow 0.2s ease",
+ borderRadius: 12,
+ opacity: (demoted || dimmed) && !hovered ? 0.45 : 1,
+ transition: "box-shadow 0.2s ease, opacity 0.2s ease",
}}
>
- <NodeShell
- tone="layerCluster"
- kindLabel="LAYER"
+ <InkNodeShell
+ role={role}
+ icon={getKindIcon(kind === "subGroup" ? "subGroup" : "layer")}
+ heroIcon
+ kindLabel={kind === "subGroup" ? "GROUP" : "LAYER"}
title={layer.name}
subtitle={layer.description}
- footer={footer}
+ meta={footer}
selected={selected}
searchHighlight={searchHighlight}
width={360}
height={220}
- titleFontSize={18}
+ titleFontSize={16}
subtitleLineClamp={2}
badges={
<span style={{
diff --git a/packages/ui/src/c4/nodes/PortalNode.tsx b/packages/ui/src/c4/nodes/PortalNode.tsx
index 45c43010c..e59c9f12f 100644
--- a/packages/ui/src/c4/nodes/PortalNode.tsx
+++ b/packages/ui/src/c4/nodes/PortalNode.tsx
@@ -5,6 +5,7 @@ import { ArrowRight } from "lucide-react";
import type { NodeProps } from "@xyflow/react";
import { Handle, Position } from "@xyflow/react";
import { useArchitectureStore } from "../store/use-architecture-store";
+import { THEME } from "../theme/theme-variables";
export interface PortalNodeProps {
targetLayerId: string;
@@ -20,9 +21,10 @@ function PortalNodeImpl(props: NodeProps) {
useArchitectureStore.getState().drillIntoLayer(targetLayerId);
};
+ // Ghost ink: portals are pointers out of the scope, not members of it.
const borderColor = selected
- ? "#fbbf24"
- : "rgba(148, 163, 184, 0.35)";
+ ? THEME.selection.ring
+ : "var(--color-diagram-cluster-border)";
return (
<div
@@ -30,14 +32,14 @@ function PortalNodeImpl(props: NodeProps) {
style={{
cursor: "pointer",
width: 220,
- background: "rgba(17, 24, 39, 0.6)",
+ background: THEME.surface.glass,
border: `2px dashed ${borderColor}`,
borderRadius: 8,
padding: "8px 12px",
display: "flex",
flexDirection: "column",
gap: 2,
- boxShadow: selected ? "0 0 0 2px rgba(251,191,36,0.3)" : "0 2px 8px rgba(0,0,0,0.2)",
+ boxShadow: selected ? `0 0 0 2px ${THEME.selection.ringAlpha}` : "0 2px 8px rgba(0,0,0,0.2)",
}}
>
<Handle type="target" position={Position.Top} style={{ opacity: 0 }} />
@@ -45,16 +47,16 @@ function PortalNodeImpl(props: NodeProps) {
<span style={{
fontSize: 13,
fontWeight: 500,
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
}}>
{targetLayerName}
</span>
- <ArrowRight size={12} color="var(--color-text-secondary, #94a3b8)" aria-hidden />
+ <ArrowRight size={12} color="var(--color-text-secondary)" aria-hidden />
</div>
- <span style={{ fontSize: 10, color: "var(--color-text-secondary, #94a3b8)" }}>
+ <span style={{ fontSize: 10, color: "var(--color-text-secondary)" }}>
{edgeCount} connections
</span>
<Handle type="source" position={Position.Bottom} style={{ opacity: 0 }} />
diff --git a/packages/ui/src/c4/nodes/ScopeFrameNode.tsx b/packages/ui/src/c4/nodes/ScopeFrameNode.tsx
new file mode 100644
index 000000000..2dce8e346
--- /dev/null
+++ b/packages/ui/src/c4/nodes/ScopeFrameNode.tsx
@@ -0,0 +1,70 @@
+"use client";
+
+/**
+ * "You are here" scope frame (kg-ux plan §2.4) — the dashed rounded
+ * boundary from the reference flowchart, drawn behind the drilled tier's
+ * nodes. Non-interactive underlay: clicks pass through to the pane, the
+ * name tab on the border says which scope you're inside.
+ */
+
+import { memo } from "react";
+import type { NodeProps } from "@xyflow/react";
+
+export interface ScopeFrameNodeProps {
+ label: string;
+ width: number;
+ height: number;
+}
+
+function ScopeFrameNodeImpl(props: NodeProps) {
+ const { data } = props as NodeProps & { data: ScopeFrameNodeProps };
+ const { label, width, height } = data;
+
+ return (
+ <div
+ aria-hidden
+ style={{
+ width,
+ height,
+ border: "1.5px dashed var(--color-diagram-cluster-border)",
+ borderRadius: 16,
+ pointerEvents: "none",
+ position: "relative",
+ }}
+ >
+ {/* Faint warm wash inside the boundary — garnish, sits behind cards. */}
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ borderRadius: 16,
+ backgroundImage: "var(--gradient-warm-wash)",
+ opacity: 0.4,
+ }}
+ />
+ {/* Name tab interrupting the dashed border */}
+ <span
+ style={{
+ position: "absolute",
+ top: -9,
+ left: 20,
+ padding: "1px 10px",
+ background: "var(--color-bg-canvas)",
+ border: "1px dashed var(--color-diagram-cluster-border)",
+ borderRadius: 6,
+ fontFamily: "var(--font-mono, ui-monospace, monospace)",
+ fontSize: 9,
+ fontWeight: 600,
+ letterSpacing: 1,
+ textTransform: "uppercase",
+ color: "var(--color-text-secondary)",
+ whiteSpace: "nowrap",
+ }}
+ >
+ {label}
+ </span>
+ </div>
+ );
+}
+
+export const ScopeFrameNode = memo(ScopeFrameNodeImpl);
diff --git a/packages/ui/src/c4/nodes/index.ts b/packages/ui/src/c4/nodes/index.ts
index 1099a7090..63987718a 100644
--- a/packages/ui/src/c4/nodes/index.ts
+++ b/packages/ui/src/c4/nodes/index.ts
@@ -8,6 +8,7 @@ import { ArchFileNode } from "./ArchFileNode";
import { ArchContainerNode } from "./ArchContainerNode";
import { LayerClusterNode } from "./LayerClusterNode";
import { PortalNode } from "./PortalNode";
+import { ScopeFrameNode } from "./ScopeFrameNode";
export const c4NodeTypes: NodeTypes = {
system: SystemNode,
@@ -22,8 +23,12 @@ export const archNodeTypes: NodeTypes = {
archFile: ArchFileNode,
archContainer: ArchContainerNode,
layerCluster: LayerClusterNode,
+ // Curated sub-group card — same component, "subGroup" kind via data.
+ subGroupCluster: LayerClusterNode,
portal: PortalNode,
+ // Dashed "you are here" boundary behind the drilled tier (kg-ux §2.4).
+ scopeFrame: ScopeFrameNode,
};
export { SystemNode, PersonNode, ExternalSystemNode, ContainerNode, ComponentNode };
-export { ArchFileNode, ArchContainerNode, LayerClusterNode, PortalNode };
+export { ArchFileNode, ArchContainerNode, LayerClusterNode, PortalNode, ScopeFrameNode };
diff --git a/packages/ui/src/c4/nodes/ink-node-shell.tsx b/packages/ui/src/c4/nodes/ink-node-shell.tsx
new file mode 100644
index 000000000..bcae1c42f
--- /dev/null
+++ b/packages/ui/src/c4/nodes/ink-node-shell.tsx
@@ -0,0 +1,232 @@
+"use client";
+
+/**
+ * Blueprint ink node face (kg-ux plan §2.2) — the KG canvas card.
+ *
+ * Color encodes ROLE, not type (the kind icon carries type):
+ * accent — ember-gradient "start here" block (entry points, repo core,
+ * current tour step); dark text per locked decision 1.
+ * primary — ink block: the nodes of the active scope.
+ * secondary — recessed gray-plum ink: supporting cast (collapsed siblings,
+ * barrels, demoted Test layer, "+N more").
+ * ghost — transparent face, dashed boundary (placeholders, portals).
+ */
+
+import * as React from "react";
+import { BookOpen, type LucideIcon } from "lucide-react";
+import { Handle, Position } from "@xyflow/react";
+
+export type InkRole = "accent" | "primary" | "secondary" | "ghost";
+
+export interface InkNodeShellProps {
+ role: InkRole;
+ kindLabel: string;
+ title: string;
+ /** Kind glyph (from getKindIcon) — renders beside the title, and as a
+ * large faint watermark when `heroIcon` is set (layer/group cards). */
+ icon?: LucideIcon | undefined;
+ subtitle?: string | undefined;
+ /** Bottom-right meta (degrees, complexity bars, counts). */
+ meta?: React.ReactNode | undefined;
+ /** Top-right signal glyphs (tour step, entry, hotspot, dead). */
+ badges?: React.ReactNode | undefined;
+ selected?: boolean | undefined;
+ focused?: boolean | undefined;
+ searchHighlight?: boolean | undefined;
+ tourHighlight?: boolean | undefined;
+ diffState?: "changed" | "affected" | "faded" | undefined;
+ width?: number | undefined;
+ height?: number | undefined;
+ hasDocs?: boolean | undefined;
+ titleFontSize?: number | undefined;
+ subtitleLineClamp?: number | undefined;
+ heroIcon?: boolean | undefined;
+}
+
+const FACES: Record<InkRole, { background: string; backgroundImage?: string; text: string; border: string }> = {
+ accent: {
+ background: "var(--color-accent-fill)",
+ backgroundImage: "var(--gradient-ember)",
+ text: "var(--color-text-on-accent)",
+ border: "transparent",
+ },
+ primary: {
+ background: "var(--color-kg-node-fill)",
+ // Ruled-paper texture in light mode (token resolves to none in dark).
+ backgroundImage: "var(--kg-card-texture)",
+ text: "var(--color-kg-node-text)",
+ border: "var(--color-kg-node-border)",
+ },
+ secondary: {
+ background: "var(--color-kg-node-fill-2)",
+ text: "var(--color-kg-node-text)",
+ border: "var(--color-kg-node-border-2)",
+ },
+ ghost: {
+ background: "transparent",
+ text: "var(--color-text-primary)",
+ border: "var(--color-diagram-cluster-border)",
+ },
+};
+
+function stateBorderColor(props: InkNodeShellProps, faceBorder: string): string {
+ if (props.selected) return "var(--color-viz-selection)";
+ if (props.diffState === "changed") return "var(--color-viz-diff-changed)";
+ if (props.diffState === "affected") return "var(--color-viz-diff-affected)";
+ if (props.tourHighlight) return "var(--color-accent-fill)";
+ if (props.searchHighlight) return "var(--color-accent-fill)";
+ if (props.focused) return "var(--color-accent-fill)";
+ return faceBorder;
+}
+
+function stateBoxShadow(props: InkNodeShellProps): string {
+ if (props.selected) {
+ return "0 0 0 2px color-mix(in srgb, var(--color-viz-selection) 35%, transparent)";
+ }
+ if (props.diffState === "changed") {
+ return "0 0 0 2px color-mix(in srgb, var(--color-viz-diff-changed) 40%, transparent)";
+ }
+ if (props.diffState === "affected") {
+ return "0 0 0 2px color-mix(in srgb, var(--color-viz-diff-affected) 35%, transparent)";
+ }
+ return "0 1px 2px rgba(0,0,0,0.15)";
+}
+
+export function InkNodeShell(props: InkNodeShellProps) {
+ const {
+ role,
+ kindLabel,
+ title,
+ icon: Icon,
+ subtitle,
+ meta,
+ badges,
+ selected,
+ searchHighlight,
+ tourHighlight,
+ diffState,
+ width,
+ height,
+ hasDocs,
+ titleFontSize = 12,
+ subtitleLineClamp = 2,
+ heroIcon,
+ } = props;
+
+ const face = FACES[role];
+ const opacity = diffState === "faded" ? 0.25 : 1;
+ const dashed = role === "ghost" || (searchHighlight && !selected);
+
+ return (
+ <div
+ data-ink-role={role}
+ style={{
+ width,
+ height,
+ background: face.background,
+ ...(face.backgroundImage
+ ? { backgroundImage: face.backgroundImage, backgroundSize: "cover", backgroundPosition: "center" }
+ : {}),
+ border: `1.5px ${dashed ? "dashed" : "solid"} ${stateBorderColor(props, face.border)}`,
+ borderRadius: 12,
+ color: face.text,
+ overflow: "hidden",
+ boxShadow: stateBoxShadow(props),
+ fontFamily: "var(--font-sans, system-ui, sans-serif)",
+ display: "flex",
+ flexDirection: "column",
+ padding: "10px 12px",
+ opacity,
+ animation: tourHighlight && !selected ? "accentPulse 2s ease-in-out infinite" : undefined,
+ }}
+ >
+ <Handle type="target" position={Position.Top} style={{ opacity: 0 }} />
+
+ {/* Title row: kind glyph + mono name + signal badges */}
+ <div style={{ display: "flex", alignItems: "flex-start", gap: 6 }}>
+ {Icon && !heroIcon && (
+ <Icon size={14} strokeWidth={2} aria-hidden style={{ flexShrink: 0, marginTop: 1, opacity: 0.9 }} />
+ )}
+ <div
+ style={{
+ flex: 1,
+ minWidth: 0,
+ fontFamily: "var(--font-mono, ui-monospace, monospace)",
+ fontSize: titleFontSize,
+ fontWeight: 600,
+ lineHeight: 1.3,
+ wordBreak: "break-word",
+ }}
+ >
+ {title}
+ </div>
+ <span style={{ display: "inline-flex", alignItems: "center", gap: 4, flexShrink: 0 }}>
+ {badges}
+ {hasDocs && (
+ <span
+ title="Documentation available"
+ aria-label="Documentation available"
+ style={{ display: "inline-flex", alignItems: "center", opacity: 0.9 }}
+ >
+ <BookOpen size={11} aria-hidden />
+ </span>
+ )}
+ </span>
+ </div>
+
+ {subtitle && (
+ <div
+ style={{
+ marginTop: 3,
+ fontSize: 10.5,
+ opacity: 0.72,
+ lineHeight: 1.35,
+ wordBreak: "break-word",
+ display: "-webkit-box",
+ WebkitLineClamp: subtitleLineClamp,
+ WebkitBoxOrient: "vertical",
+ overflow: "hidden",
+ }}
+ >
+ {subtitle}
+ </div>
+ )}
+
+ {/* Hero watermark glyph — layer/group cards have the room for it */}
+ {heroIcon && Icon && (
+ <div style={{ flex: 1, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 0 }}>
+ <Icon size={36} strokeWidth={1.25} aria-hidden style={{ opacity: 0.2 }} />
+ </div>
+ )}
+
+ {/* Footer: kind label left, meta right */}
+ <div
+ style={{
+ marginTop: "auto",
+ paddingTop: 6,
+ display: "flex",
+ alignItems: "flex-end",
+ justifyContent: "space-between",
+ gap: 8,
+ }}
+ >
+ <span
+ style={{
+ fontFamily: "var(--font-mono, ui-monospace, monospace)",
+ fontSize: 8.5,
+ fontWeight: 600,
+ letterSpacing: 0.8,
+ textTransform: "uppercase",
+ opacity: 0.6,
+ whiteSpace: "nowrap",
+ }}
+ >
+ {kindLabel}
+ </span>
+ {meta && <span style={{ fontSize: 10, opacity: 0.85 }}>{meta}</span>}
+ </div>
+
+ <Handle type="source" position={Position.Bottom} style={{ opacity: 0 }} />
+ </div>
+ );
+}
diff --git a/packages/ui/src/c4/nodes/kind-icons.ts b/packages/ui/src/c4/nodes/kind-icons.ts
new file mode 100644
index 000000000..e4fe4f51a
--- /dev/null
+++ b/packages/ui/src/c4/nodes/kind-icons.ts
@@ -0,0 +1,55 @@
+import {
+ ArrowRight,
+ Box,
+ Boxes,
+ Braces,
+ Cog,
+ Database,
+ ExternalLink,
+ FileCode,
+ FileJson,
+ FileText,
+ Folder,
+ Globe,
+ Layers,
+ Lightbulb,
+ Package,
+ Server,
+ Table,
+ User,
+ Workflow,
+ type LucideIcon,
+} from "lucide-react";
+
+/**
+ * Kind → glyph map for the blueprint ink nodes (kg-ux plan §2.2): with the
+ * tone-rainbow gone from card faces, the ICON carries the node's type.
+ * One map so cards, filters, and the legend can never disagree.
+ */
+const KIND_ICONS: Record<string, LucideIcon> = {
+ file: FileCode,
+ function: Braces,
+ class: Box,
+ module: Package,
+ config: Cog,
+ document: FileText,
+ concept: Lightbulb,
+ service: Server,
+ resource: Database,
+ pipeline: Workflow,
+ table: Table,
+ endpoint: Globe,
+ schema: FileJson,
+ system: Boxes,
+ person: User,
+ external: ExternalLink,
+ container: Folder,
+ component: Box,
+ layer: Layers,
+ subGroup: Folder,
+ portal: ArrowRight,
+};
+
+export function getKindIcon(kind: string): LucideIcon {
+ return KIND_ICONS[kind] ?? FileCode;
+}
diff --git a/packages/ui/src/c4/overlays/ExecutionFlowOverlay.tsx b/packages/ui/src/c4/overlays/ExecutionFlowOverlay.tsx
index 2f13a2c07..271dae9cf 100644
--- a/packages/ui/src/c4/overlays/ExecutionFlowOverlay.tsx
+++ b/packages/ui/src/c4/overlays/ExecutionFlowOverlay.tsx
@@ -2,6 +2,7 @@
import { useState } from "react";
import { Badge } from "../panels/panel-atoms";
+import { THEME } from "../theme/theme-variables";
export interface ExecutionFlowEntry {
id: string;
@@ -43,11 +44,11 @@ export function ExecutionFlowOverlay({ flows, visible }: ExecutionFlowOverlayPro
width: 340,
maxHeight: "70vh",
overflowY: "auto",
- background: "rgba(15, 23, 42, 0.95)",
- border: "1px solid rgba(148, 163, 184, 0.2)",
+ background: THEME.surface.elevated,
+ border: `1px solid ${THEME.border.default}`,
borderRadius: 8,
padding: 16,
- color: "#e2e8f0",
+ color: THEME.text.primary,
fontSize: 13,
zIndex: 500,
}}
@@ -66,11 +67,11 @@ export function ExecutionFlowOverlay({ flows, visible }: ExecutionFlowOverlayPro
width: 340,
maxHeight: "70vh",
overflowY: "auto",
- background: "rgba(15, 23, 42, 0.95)",
- border: "1px solid rgba(148, 163, 184, 0.2)",
+ background: THEME.surface.elevated,
+ border: `1px solid ${THEME.border.default}`,
borderRadius: 8,
padding: 16,
- color: "#e2e8f0",
+ color: THEME.text.primary,
fontSize: 13,
zIndex: 500,
}}
@@ -83,7 +84,7 @@ export function ExecutionFlowOverlay({ flows, visible }: ExecutionFlowOverlayPro
key={flow.id}
style={{
padding: "8px 0",
- borderBottom: "1px solid rgba(148, 163, 184, 0.12)",
+ borderBottom: `1px solid ${THEME.border.subtle}`,
}}
>
<div
@@ -100,7 +101,7 @@ export function ExecutionFlowOverlay({ flows, visible }: ExecutionFlowOverlayPro
<Badge label={flow.score.toFixed(2)} />
</div>
{flow.crosses_community && (
- <div style={{ color: "#fbbf24", fontSize: 11, marginTop: 4, marginLeft: 20 }}>
+ <div style={{ color: "var(--color-warning)", fontSize: 11, marginTop: 4, marginLeft: 20 }}>
⚠ Cross-boundary
</div>
)}
@@ -115,7 +116,7 @@ export function ExecutionFlowOverlay({ flows, visible }: ExecutionFlowOverlayPro
opacity: 0.85,
}}
>
- <span style={{ color: "#94a3b8", marginRight: 6 }}>{idx + 1}.</span>
+ <span style={{ color: THEME.text.secondary, marginRight: 6 }}>{idx + 1}.</span>
{nodeId}
</div>
))}
diff --git a/packages/ui/src/c4/panels/ArchBreadcrumb.tsx b/packages/ui/src/c4/panels/ArchBreadcrumb.tsx
new file mode 100644
index 000000000..e1b7d2638
--- /dev/null
+++ b/packages/ui/src/c4/panels/ArchBreadcrumb.tsx
@@ -0,0 +1,81 @@
+"use client";
+
+import { useArchitectureStore } from "../store/use-architecture-store";
+
+/** Tier breadcrumb for the architecture view: Overview → Layer → Group.
+ * Stays consistent whether or not a layer has a sub-group tier (decision 1).
+ */
+export function ArchBreadcrumb() {
+ const view = useArchitectureStore((s) => s.view);
+ const navigationLevel = useArchitectureStore((s) => s.navigationLevel);
+ const activeLayerId = useArchitectureStore((s) => s.activeLayerId);
+ const activeSubGroupId = useArchitectureStore((s) => s.activeSubGroupId);
+
+ if (!view || navigationLevel === "overview") return null;
+
+ const layer = view.layers.find((l) => l.id === activeLayerId);
+ const subGroup = layer?.sub_groups.find((g) => g.id === activeSubGroupId);
+
+ const crumbStyle: React.CSSProperties = {
+ background: "none",
+ border: "none",
+ padding: 0,
+ font: "inherit",
+ cursor: "pointer",
+ color: "var(--color-text-secondary)",
+ };
+ const sep = <span style={{ opacity: 0.5 }}>›</span>;
+ const current: React.CSSProperties = {
+ color: "var(--color-text-primary)",
+ fontWeight: 600,
+ };
+
+ const goOverview = () => {
+ const store = useArchitectureStore.getState();
+ // Two-stage drillOut: jump straight to the overview from any tier.
+ store.drillOut();
+ if (useArchitectureStore.getState().navigationLevel !== "overview") {
+ store.drillOut();
+ }
+ };
+
+ const goLayerGroups = () => {
+ if (activeLayerId) useArchitectureStore.getState().drillIntoLayer(activeLayerId);
+ };
+
+ return (
+ <nav
+ aria-label="Architecture navigation"
+ style={{
+ display: "flex",
+ alignItems: "center",
+ gap: 6,
+ fontSize: 12,
+ }}
+ >
+ <button type="button" style={crumbStyle} onClick={goOverview}>
+ Overview
+ </button>
+ {layer && (
+ <>
+ {sep}
+ {navigationLevel === "layer-detail" && activeSubGroupId ? (
+ <button type="button" style={crumbStyle} onClick={goLayerGroups}>
+ {layer.name}
+ </button>
+ ) : (
+ <span style={current}>{layer.name}</span>
+ )}
+ </>
+ )}
+ {activeSubGroupId && (
+ <>
+ {sep}
+ <span style={current}>
+ {subGroup?.name ?? activeSubGroupId.split(":").pop()}
+ </span>
+ </>
+ )}
+ </nav>
+ );
+}
diff --git a/packages/ui/src/c4/panels/ArchLegend.tsx b/packages/ui/src/c4/panels/ArchLegend.tsx
new file mode 100644
index 000000000..0c7d71ae4
--- /dev/null
+++ b/packages/ui/src/c4/panels/ArchLegend.tsx
@@ -0,0 +1,134 @@
+"use client";
+
+/**
+ * Decoder ring for the blueprint KG canvas (kg-ux plan B6) — what the ink
+ * weights, signal glyphs, edges, and gestures mean. Collapsible chip so it
+ * never competes with the canvas; rendered on every tier.
+ */
+
+import { useState } from "react";
+import { BookOpen, ChevronDown, ChevronUp, Flame, Play, Skull } from "lucide-react";
+
+const SWATCH_BASE: React.CSSProperties = {
+ width: 14,
+ height: 14,
+ borderRadius: 4,
+ flexShrink: 0,
+ display: "inline-block",
+};
+
+function Row({ swatch, children }: { swatch: React.ReactNode; children: React.ReactNode }) {
+ return (
+ <div style={{ display: "flex", alignItems: "center", gap: 8, fontSize: 10.5 }}>
+ {swatch}
+ <span style={{ color: "var(--color-text-secondary)" }}>{children}</span>
+ </div>
+ );
+}
+
+export function ArchLegend() {
+ const [open, setOpen] = useState(false);
+
+ return (
+ <div
+ style={{
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "flex-start",
+ gap: 6,
+ fontFamily: "var(--font-sans, system-ui, sans-serif)",
+ }}
+ >
+ {open && (
+ <div
+ style={{
+ display: "flex",
+ flexDirection: "column",
+ gap: 7,
+ padding: "10px 12px",
+ borderRadius: 10,
+ background: "var(--color-bg-elevated)",
+ border: "1px solid var(--color-border-default)",
+ boxShadow: "0 6px 20px rgba(0,0,0,0.18)",
+ maxWidth: 240,
+ }}
+ >
+ <Row swatch={<span style={{ ...SWATCH_BASE, backgroundImage: "var(--gradient-ember)" }} />}>
+ Start here — entry points
+ </Row>
+ <Row swatch={<span style={{ ...SWATCH_BASE, background: "var(--color-kg-node-fill)", border: "1px solid var(--color-kg-node-border)" }} />}>
+ This scope
+ </Row>
+ <Row swatch={<span style={{ ...SWATCH_BASE, background: "var(--color-kg-node-fill-2)", border: "1px solid var(--color-kg-node-border-2)" }} />}>
+ Supporting — siblings, tests, barrels
+ </Row>
+ <Row swatch={<span style={{ ...SWATCH_BASE, background: "transparent", border: "1.5px dashed var(--color-diagram-cluster-border)" }} />}>
+ Boundary / pointer out of scope
+ </Row>
+
+ <div style={{ height: 1, background: "var(--color-border-subtle)", margin: "2px 0" }} />
+
+ <Row
+ swatch={
+ <span style={{ display: "inline-flex", gap: 3, color: "var(--color-text-secondary)" }}>
+ <Play size={11} aria-hidden />
+ <Flame size={11} aria-hidden />
+ <Skull size={11} aria-hidden />
+ <BookOpen size={11} aria-hidden />
+ </span>
+ }
+ >
+ Entry · hotspot · dead code · has docs
+ </Row>
+ <Row
+ swatch={
+ <svg width="22" height="8" aria-hidden style={{ flexShrink: 0 }}>
+ <line x1="0" y1="4" x2="22" y2="4" stroke="var(--color-diagram-edge)" strokeWidth="1.5" strokeDasharray="5 3" />
+ </svg>
+ }
+ >
+ Relation — the chip glyph tells the kind
+ </Row>
+
+ <div style={{ height: 1, background: "var(--color-border-subtle)", margin: "2px 0" }} />
+
+ <div
+ style={{
+ fontFamily: "var(--font-mono, ui-monospace, monospace)",
+ fontSize: 9.5,
+ color: "var(--color-text-secondary)",
+ lineHeight: 1.6,
+ }}
+ >
+ Click = inspect · 2×click = open
+ <br />
+ Esc = back · F = filters · / = search
+ </div>
+ </div>
+ )}
+
+ <button
+ type="button"
+ onClick={() => setOpen((v) => !v)}
+ aria-expanded={open}
+ aria-label={open ? "Collapse legend" : "Expand legend"}
+ style={{
+ display: "inline-flex",
+ alignItems: "center",
+ gap: 5,
+ padding: "4px 10px",
+ borderRadius: 999,
+ fontSize: 10.5,
+ fontWeight: 600,
+ cursor: "pointer",
+ background: "var(--color-bg-elevated)",
+ border: "1px solid var(--color-border-default)",
+ color: "var(--color-text-secondary)",
+ }}
+ >
+ {open ? <ChevronDown size={11} aria-hidden /> : <ChevronUp size={11} aria-hidden />}
+ Legend
+ </button>
+ </div>
+ );
+}
diff --git a/packages/ui/src/c4/panels/ArchNodeInfo.tsx b/packages/ui/src/c4/panels/ArchNodeInfo.tsx
index 0baedb583..8ccb2797b 100644
--- a/packages/ui/src/c4/panels/ArchNodeInfo.tsx
+++ b/packages/ui/src/c4/panels/ArchNodeInfo.tsx
@@ -1,6 +1,6 @@
"use client";
-import { X, Code, MapPin, Layers, ExternalLink } from "lucide-react";
+import { X, Code, MapPin, Layers, ExternalLink, Folder, CornerDownRight } from "lucide-react";
import { useArchitectureStore } from "../store/use-architecture-store";
import { getTone } from "../../graph-primitives/tone-styles";
import { THEME } from "../theme/theme-variables";
@@ -33,11 +33,101 @@ export function ArchNodeInfo(props: ArchNodeInfoProps) {
const nodeIdToLayerId = useArchitectureStore((s) => s.nodeIdToLayerId);
const selectNode = useArchitectureStore((s) => s.selectNode);
const drillIntoLayer = useArchitectureStore((s) => s.drillIntoLayer);
+ const drillIntoSubGroup = useArchitectureStore((s) => s.drillIntoSubGroup);
const openCodeViewer = useArchitectureStore((s) => s.openCodeViewer);
const setFocusNode = useArchitectureStore((s) => s.setFocusNode);
const view = useArchitectureStore((s) => s.view);
const node = selectedNodeId ? nodesById.get(selectedNodeId) ?? null : null;
+
+ // Scope selection (kg-ux plan B5): single-clicking a layer/group card
+ // selects it — this panel is the "inspect" half of the grammar, with the
+ // explicit drill affordance ("Open on canvas") as the other half.
+ if (!node && selectedNodeId && view) {
+ const layerScope = view.layers.find((l) => l.id === selectedNodeId);
+ if (layerScope) {
+ return (
+ <ScopeInfo
+ kind="layer"
+ name={layerScope.name}
+ description={layerScope.description}
+ fileCount={layerScope.file_count}
+ groupCount={layerScope.sub_groups.length}
+ healthScore={layerScope.health_score}
+ onClose={() => selectNode(null)}
+ onOpen={() => drillIntoLayer(layerScope.id)}
+ />
+ );
+ }
+ for (const l of view.layers) {
+ const group = l.sub_groups.find((g) => g.id === selectedNodeId);
+ if (group) {
+ return (
+ <ScopeInfo
+ kind="group"
+ name={group.name}
+ description={`Sub-group of ${l.name}`}
+ fileCount={group.node_ids.length}
+ onClose={() => selectNode(null)}
+ onOpen={() => drillIntoSubGroup(group.id)}
+ />
+ );
+ }
+ }
+
+ // Folder containers (dir:<path>) — the boxes the detail canvas groups
+ // files into. They aren't ArchNodes, so without this branch selecting
+ // one left the inspector blank.
+ if (selectedNodeId.startsWith("dir:")) {
+ const path = selectedNodeId.slice(4);
+ const memberCount = view.nodes.filter((n) => n.id.startsWith(`${path}/`)).length;
+ return (
+ <ScopeInfo
+ kind="folder"
+ name={path.split("/").pop() ?? path}
+ description={path}
+ fileCount={memberCount}
+ onClose={() => selectNode(null)}
+ onOpen={() => useArchitectureStore.getState().toggleContainer(selectedNodeId)}
+ />
+ );
+ }
+
+ // The "+N more" card that absorbs files beyond the visible-box budget.
+ if (selectedNodeId === "container:__overflow") {
+ return (
+ <ScopeInfo
+ kind="folder"
+ name="More files"
+ description="Files beyond the visible-box budget for this scope. Expand the card to lay them out."
+ onClose={() => selectNode(null)}
+ onOpen={() => useArchitectureStore.getState().toggleContainer(selectedNodeId)}
+ />
+ );
+ }
+
+ // Portal chips (portal:layer:A→layer:B) — wayfinding to a neighbouring
+ // layer this scope exchanges imports with.
+ if (selectedNodeId.startsWith("portal:")) {
+ const targetLayerId = selectedNodeId.split("→")[1];
+ const targetLayer = targetLayerId
+ ? view.layers.find((l) => l.id === targetLayerId)
+ : undefined;
+ if (targetLayer) {
+ return (
+ <ScopeInfo
+ kind="portal"
+ name={targetLayer.name}
+ description={`Files in this scope exchange imports with the ${targetLayer.name} layer. Open it to follow them.`}
+ fileCount={targetLayer.file_count}
+ onClose={() => selectNode(null)}
+ onOpen={() => drillIntoLayer(targetLayer.id)}
+ />
+ );
+ }
+ }
+ }
+
if (!node) return null;
const tone = getTone(node.node_type);
@@ -90,7 +180,7 @@ export function ArchNodeInfo(props: ArchNodeInfoProps) {
{props.docContent && props.renderDoc ? (
<Section title="Wiki">
- <div style={{ fontSize: 12, lineHeight: 1.45, color: "var(--color-text-secondary, #cbd5e1)" }}>
+ <div style={{ fontSize: 12, lineHeight: 1.45, color: "var(--color-text-secondary)" }}>
{props.renderDoc(props.docContent)}
</div>
{props.onOpenDoc && (
@@ -103,7 +193,7 @@ export function ArchNodeInfo(props: ArchNodeInfoProps) {
</Section>
) : (
<Section title="Wiki">
- <div style={{ fontSize: 11, color: "var(--color-text-secondary, #94a3b8)", opacity: 0.7 }}>
+ <div style={{ fontSize: 11, color: "var(--color-text-secondary)", opacity: 0.7 }}>
Wiki not generated yet. Run docs generation to populate this section.
</div>
</Section>
@@ -132,7 +222,7 @@ export function ArchNodeInfo(props: ArchNodeInfoProps) {
display: "flex",
justifyContent: "space-between",
padding: "3px 0",
- borderTop: "1px solid rgba(148,163,184,0.12)",
+ borderTop: "1px solid var(--color-border-subtle)",
fontSize: 11,
}}
>
@@ -187,7 +277,7 @@ function HeaderSection({
tone: { band: string; text: string };
onClose: () => void;
}) {
- const dotColor = THEME.complexity[node.complexity] ?? "#94a3b8";
+ const dotColor = THEME.complexity[node.complexity] ?? "var(--color-text-muted)";
return (
<header
@@ -196,7 +286,7 @@ function HeaderSection({
alignItems: "center",
justifyContent: "space-between",
padding: "10px 12px",
- borderBottom: "1px solid var(--color-border-default, #334155)",
+ borderBottom: "1px solid var(--color-border-default)",
gap: 8,
}}
>
@@ -249,7 +339,7 @@ function HealthSection({
/>
</div>
{health.is_silo && (
- <div style={{ marginTop: 6, fontSize: 10, color: "#fbbf24", fontWeight: 600 }}>
+ <div style={{ marginTop: 6, fontSize: 10, color: "var(--color-warning)", fontWeight: 600 }}>
⚠ Knowledge silo detected
</div>
)}
@@ -355,11 +445,11 @@ function ConnectionList({
border: "none",
borderRadius: 4,
cursor: "pointer",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontSize: 11,
textAlign: "left",
}}
- onMouseEnter={(e) => { (e.currentTarget.style.background = "rgba(148,163,184,0.1)"); }}
+ onMouseEnter={(e) => { (e.currentTarget.style.background = "var(--color-bg-wash-hover)"); }}
onMouseLeave={(e) => { (e.currentTarget.style.background = "none"); }}
>
<span style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
@@ -375,3 +465,92 @@ function ConnectionList({
</div>
);
}
+
+/** Inspect card for a selected layer / sub-group (kg-ux plan B5): summary +
+ * stats + the explicit drill button mirroring double-click on the canvas. */
+function ScopeInfo({
+ kind,
+ name,
+ description,
+ fileCount,
+ groupCount,
+ healthScore,
+ onClose,
+ onOpen,
+}: {
+ kind: "layer" | "group" | "folder" | "portal";
+ name: string;
+ description?: string | undefined;
+ fileCount?: number | undefined;
+ groupCount?: number | undefined;
+ healthScore?: number | null | undefined;
+ onClose: () => void;
+ onOpen: () => void;
+}) {
+ const Icon = kind === "layer" ? Layers : kind === "portal" ? ExternalLink : Folder;
+ const rows: [string, string][] = fileCount != null ? [["Files", String(fileCount)]] : [];
+ if (kind === "layer" && groupCount && groupCount > 0) {
+ rows.push(["Groups", String(groupCount)]);
+ }
+ if (healthScore !== null && healthScore !== undefined) {
+ rows.push(["Health", String(Math.round(healthScore))]);
+ }
+
+ return (
+ <>
+ <Section>
+ <div style={{ display: "flex", alignItems: "flex-start", gap: 8 }}>
+ <Icon size={16} style={{ flexShrink: 0, marginTop: 2, color: "var(--color-accent-primary)" }} aria-hidden />
+ <div style={{ flex: 1, minWidth: 0 }}>
+ <Title>{name}</Title>
+ <Sub style={{ marginTop: 2 }}>
+ {kind === "layer"
+ ? "Layer"
+ : kind === "folder"
+ ? "Folder"
+ : kind === "portal"
+ ? "Connected layer"
+ : "Group"}
+ </Sub>
+ </div>
+ <button
+ type="button"
+ onClick={onClose}
+ aria-label="Close inspector"
+ style={{
+ background: "none",
+ border: "none",
+ color: "var(--color-text-secondary)",
+ cursor: "pointer",
+ padding: 2,
+ }}
+ >
+ <X size={14} aria-hidden />
+ </button>
+ </div>
+ {description && <Sub style={{ marginTop: 6 }}>{description}</Sub>}
+ </Section>
+
+ {rows.length > 0 && (
+ <Section>
+ <KVList rows={rows} />
+ </Section>
+ )}
+
+ <Section>
+ <ActionRow>
+ <ActionButton onClick={onOpen} icon={CornerDownRight} variant="primary">
+ {kind === "layer" || kind === "portal"
+ ? "Open layer"
+ : kind === "folder"
+ ? "Expand on canvas"
+ : "Open group"}
+ </ActionButton>
+ </ActionRow>
+ <Sub style={{ marginTop: 6, fontSize: 10 }}>
+ Double-clicking the card does the same. Esc deselects.
+ </Sub>
+ </Section>
+ </>
+ );
+}
diff --git a/packages/ui/src/c4/panels/C4Breadcrumb.tsx b/packages/ui/src/c4/panels/C4Breadcrumb.tsx
index 6fa73db32..8a1e837a4 100644
--- a/packages/ui/src/c4/panels/C4Breadcrumb.tsx
+++ b/packages/ui/src/c4/panels/C4Breadcrumb.tsx
@@ -45,8 +45,8 @@ export function C4Breadcrumb({
padding: 0,
cursor: seg.current ? "default" : "pointer",
color: seg.current
- ? "var(--color-text-primary, #f1f5f9)"
- : "var(--color-text-secondary, #94a3b8)",
+ ? "var(--color-text-primary)"
+ : "var(--color-text-secondary)",
fontWeight: seg.current ? 600 : 500,
}}
>
diff --git a/packages/ui/src/c4/panels/C4DetailPanel.tsx b/packages/ui/src/c4/panels/C4DetailPanel.tsx
index b8a109fd5..e7db07695 100644
--- a/packages/ui/src/c4/panels/C4DetailPanel.tsx
+++ b/packages/ui/src/c4/panels/C4DetailPanel.tsx
@@ -70,9 +70,9 @@ export function C4DetailPanel(props: C4DetailPanelProps) {
overflow: "auto",
padding: 0,
background: "var(--color-bg-elevated, rgba(17,24,39,0.96))",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 8,
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontSize: 12,
zIndex: 5,
display: "flex",
@@ -94,7 +94,7 @@ function Header({ data, onClose }: { data: C4NodeData; onClose: () => void }) {
alignItems: "center",
justifyContent: "space-between",
padding: "10px 12px",
- borderBottom: "1px solid var(--color-border-default, #334155)",
+ borderBottom: "1px solid var(--color-border-default)",
}}
>
<span style={{ textTransform: "uppercase", fontSize: 10, letterSpacing: 0.6, opacity: 0.65, fontWeight: 600 }}>
@@ -193,7 +193,7 @@ function ContainerOrComponentBody(props: C4DetailPanelProps) {
Primary owner: <strong>{health.primary_owner}</strong>{" "}
({Math.round(health.primary_owner_pct * 100)}%)
{health.is_silo && (
- <span style={{ marginLeft: 6, color: "#fbbf24" }}>· silo</span>
+ <span style={{ marginLeft: 6, color: "var(--color-warning)" }}>· silo</span>
)}
</Sub>
)}
@@ -210,7 +210,7 @@ function ContainerOrComponentBody(props: C4DetailPanelProps) {
display: "flex",
justifyContent: "space-between",
padding: "3px 0",
- borderTop: "1px solid rgba(148,163,184,0.12)",
+ borderTop: "1px solid var(--color-border-subtle)",
fontSize: 11,
}}
>
@@ -229,7 +229,7 @@ function ContainerOrComponentBody(props: C4DetailPanelProps) {
<Section title="Documentation">
<Title style={{ fontSize: 12 }}>{doc.title}</Title>
{docContent && renderDoc ? (
- <div style={{ marginTop: 6, fontSize: 12, lineHeight: 1.45, color: "var(--color-text-secondary, #cbd5e1)" }}>
+ <div style={{ marginTop: 6, fontSize: 12, lineHeight: 1.45, color: "var(--color-text-secondary)" }}>
{renderDoc(docContent)}
</div>
) : (
@@ -256,7 +256,7 @@ function ContainerOrComponentBody(props: C4DetailPanelProps) {
function Section({ title, children }: { title?: string; children: ReactNode }) {
return (
- <div style={{ padding: "10px 12px", borderBottom: "1px solid rgba(148,163,184,0.12)" }}>
+ <div style={{ padding: "10px 12px", borderBottom: "1px solid var(--color-border-subtle)" }}>
{title && (
<div
style={{
@@ -294,7 +294,7 @@ function KVList({ rows }: { rows: [string, string][] }) {
display: "flex",
justifyContent: "space-between",
padding: "3px 0",
- borderTop: "1px solid rgba(148,163,184,0.12)",
+ borderTop: "1px solid var(--color-border-subtle)",
fontSize: 11,
}}
>
@@ -330,9 +330,9 @@ function ActionButton({
padding: "5px 10px",
background: primary ? "var(--color-accent-muted, rgba(245,149,32,0.2))" : "transparent",
color: primary
- ? "var(--color-accent-primary, #f59520)"
- : "var(--color-text-secondary, #cbd5e1)",
- border: `1px solid ${primary ? "var(--color-accent-primary, #f59520)" : "var(--color-border-default, #334155)"}`,
+ ? "var(--color-accent-primary)"
+ : "var(--color-text-secondary)",
+ border: `1px solid ${primary ? "var(--color-accent-primary)" : "var(--color-border-default)"}`,
borderRadius: 4,
cursor: "pointer",
fontSize: 11,
diff --git a/packages/ui/src/c4/panels/C4Legend.tsx b/packages/ui/src/c4/panels/C4Legend.tsx
index 2c90c930b..4be570715 100644
--- a/packages/ui/src/c4/panels/C4Legend.tsx
+++ b/packages/ui/src/c4/panels/C4Legend.tsx
@@ -1,11 +1,15 @@
"use client";
+import { getTone } from "../../graph-primitives/tone-styles";
+
+// Swatches come from the same tone palette the nodes render with, so the
+// legend can never drift from the canvas.
const ITEMS: { label: string; color: string }[] = [
- { label: "System", color: "#1f3a8a" },
- { label: "Person", color: "#374151" },
- { label: "Container", color: "#0f3a5f" },
- { label: "Component", color: "#0d2a47" },
- { label: "External", color: "#1f2937" },
+ { label: "System", color: getTone("system").band },
+ { label: "Person", color: getTone("person").band },
+ { label: "Container", color: getTone("container").band },
+ { label: "Component", color: getTone("component").band },
+ { label: "External", color: getTone("external").band },
];
export function C4Legend() {
@@ -17,9 +21,9 @@ export function C4Legend() {
gap: 10,
padding: "6px 10px",
fontSize: 11,
- color: "var(--color-text-secondary, #94a3b8)",
+ color: "var(--color-text-secondary)",
background: "var(--color-bg-surface, rgba(15,23,42,0.7))",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 6,
}}
>
@@ -32,7 +36,7 @@ export function C4Legend() {
height: 10,
borderRadius: 2,
background: it.color,
- border: "1px solid rgba(148,163,184,0.4)",
+ border: "1px solid var(--color-border-default)",
}}
/>
{it.label}
diff --git a/packages/ui/src/c4/panels/C4LevelTabs.tsx b/packages/ui/src/c4/panels/C4LevelTabs.tsx
index 56344c6cc..b97bfa4bc 100644
--- a/packages/ui/src/c4/panels/C4LevelTabs.tsx
+++ b/packages/ui/src/c4/panels/C4LevelTabs.tsx
@@ -40,13 +40,13 @@ export function C4LevelTabs({ level, onLevelChange, l3Enabled }: C4LevelTabsProp
fontSize: 12,
fontWeight: 500,
borderRadius: 6,
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
background: active
? "var(--color-accent-muted, rgba(245,149,32,0.15))"
: "transparent",
color: active
- ? "var(--color-accent-primary, #f59520)"
- : "var(--color-text-secondary, #94a3b8)",
+ ? "var(--color-accent-primary)"
+ : "var(--color-text-secondary)",
cursor: disabled ? "not-allowed" : "pointer",
opacity: disabled ? 0.4 : 1,
}}
diff --git a/packages/ui/src/c4/panels/C4NodeInspector.tsx b/packages/ui/src/c4/panels/C4NodeInspector.tsx
index 140e12b52..68acbe8d3 100644
--- a/packages/ui/src/c4/panels/C4NodeInspector.tsx
+++ b/packages/ui/src/c4/panels/C4NodeInspector.tsx
@@ -23,9 +23,9 @@ export function C4NodeInspector({ data, onClose, onDrillIn }: C4NodeInspectorPro
overflow: "auto",
padding: 12,
background: "var(--color-bg-elevated, rgba(17,24,39,0.95))",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 8,
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontSize: 12,
zIndex: 5,
}}
@@ -96,8 +96,8 @@ function InspectorBody({
marginTop: 10,
padding: "5px 10px",
background: "var(--color-accent-muted, rgba(245,149,32,0.2))",
- color: "var(--color-accent-primary, #f59520)",
- border: "1px solid var(--color-accent-primary, #f59520)",
+ color: "var(--color-accent-primary)",
+ border: "1px solid var(--color-accent-primary)",
borderRadius: 4,
cursor: "pointer",
fontSize: 11,
@@ -135,7 +135,7 @@ function Row({ title, sub }: { title: string; sub?: string }) {
function KV({ k, v }: { k: string; v: string }) {
return (
- <div style={{ display: "flex", justifyContent: "space-between", padding: "3px 0", borderTop: "1px solid rgba(148,163,184,0.15)" }}>
+ <div style={{ display: "flex", justifyContent: "space-between", padding: "3px 0", borderTop: "1px solid var(--color-bg-wash-hover)" }}>
<span style={{ opacity: 0.6 }}>{k}</span>
<span style={{ fontFamily: "var(--font-mono, ui-monospace, monospace)" }}>{v}</span>
</div>
diff --git a/packages/ui/src/c4/panels/CodeViewer.tsx b/packages/ui/src/c4/panels/CodeViewer.tsx
index 4c2213de9..a30fe50bf 100644
--- a/packages/ui/src/c4/panels/CodeViewer.tsx
+++ b/packages/ui/src/c4/panels/CodeViewer.tsx
@@ -101,7 +101,7 @@ export function CodeViewer({ fetchContent }: CodeViewerProps): React.ReactElemen
background: "none",
border: "none",
cursor: "pointer",
- color: "var(--color-text-secondary, #cbd5e1)",
+ color: "var(--color-text-secondary)",
padding: 4,
display: "inline-flex",
alignItems: "center",
@@ -115,7 +115,7 @@ export function CodeViewer({ fetchContent }: CodeViewerProps): React.ReactElemen
alignItems: "center",
justifyContent: "space-between",
padding: "8px 12px",
- borderBottom: "1px solid var(--color-border-default, #334155)",
+ borderBottom: "1px solid var(--color-border-default)",
flexShrink: 0,
gap: 8,
}}
@@ -127,7 +127,7 @@ export function CodeViewer({ fetchContent }: CodeViewerProps): React.ReactElemen
width: 40,
height: 4,
borderRadius: 2,
- background: "var(--color-text-secondary, #94a3b8)",
+ background: "var(--color-text-secondary)",
opacity: 0.4,
marginRight: 8,
}}
@@ -179,7 +179,7 @@ export function CodeViewer({ fetchContent }: CodeViewerProps): React.ReactElemen
style={{
height: 14,
borderRadius: 4,
- background: "rgba(148,163,184,0.15)",
+ background: "var(--color-bg-wash-hover)",
width: `${60 + (i % 4) * 10}%`,
animation: "pulse 1.5s ease-in-out infinite",
}}
@@ -199,16 +199,16 @@ export function CodeViewer({ fetchContent }: CodeViewerProps): React.ReactElemen
flex: 1,
}}
>
- <AlertCircle size={32} style={{ color: "#ef4444" }} />
- <div style={{ fontSize: 13, color: "var(--color-text-secondary, #cbd5e1)" }}>{error}</div>
+ <AlertCircle size={32} style={{ color: "var(--color-error)" }} />
+ <div style={{ fontSize: 13, color: "var(--color-text-secondary)" }}>{error}</div>
<button
type="button"
onClick={doFetch}
style={{
padding: "6px 14px",
background: "var(--color-accent-muted, rgba(245,149,32,0.2))",
- color: "var(--color-accent-primary, #f59520)",
- border: "1px solid var(--color-accent-primary, #f59520)",
+ color: "var(--color-accent-primary)",
+ border: "1px solid var(--color-accent-primary)",
borderRadius: 4,
cursor: "pointer",
fontSize: 12,
@@ -248,7 +248,7 @@ export function CodeViewer({ fetchContent }: CodeViewerProps): React.ReactElemen
display: "flex",
background: inRange ? "rgba(245,149,32,0.1)" : "transparent",
borderLeft: inRange
- ? "3px solid var(--color-accent-primary, #f59520)"
+ ? "3px solid var(--color-accent-primary)"
: "3px solid transparent",
}}
>
@@ -258,7 +258,7 @@ export function CodeViewer({ fetchContent }: CodeViewerProps): React.ReactElemen
width: 50,
textAlign: "right",
paddingRight: 12,
- color: "var(--color-text-secondary, #94a3b8)",
+ color: "var(--color-text-secondary)",
opacity: 0.5,
userSelect: "none",
flexShrink: 0,
@@ -305,10 +305,10 @@ export function CodeViewer({ fetchContent }: CodeViewerProps): React.ReactElemen
display: "flex",
flexDirection: "column",
background: "var(--color-bg-elevated, rgba(17,24,39,0.98))",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 8,
boxShadow: "0 25px 50px rgba(0,0,0,0.5)",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontFamily: "var(--font-sans, system-ui, sans-serif)",
overflow: "hidden",
}}
@@ -331,9 +331,9 @@ export function CodeViewer({ fetchContent }: CodeViewerProps): React.ReactElemen
display: "flex",
flexDirection: "column",
background: "var(--color-bg-elevated, rgba(17,24,39,0.98))",
- borderTop: "1px solid var(--color-border-default, #334155)",
+ borderTop: "1px solid var(--color-border-default)",
boxShadow: "0 -10px 30px rgba(0,0,0,0.3)",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontFamily: "var(--font-sans, system-ui, sans-serif)",
}}
>
diff --git a/packages/ui/src/c4/panels/FileExplorer.tsx b/packages/ui/src/c4/panels/FileExplorer.tsx
index d373d6324..86a51455b 100644
--- a/packages/ui/src/c4/panels/FileExplorer.tsx
+++ b/packages/ui/src/c4/panels/FileExplorer.tsx
@@ -136,11 +136,11 @@ function TreeNodeRow({
background: "none",
border: "none",
cursor: "pointer",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontSize: 11,
textAlign: "left",
}}
- onMouseEnter={(e) => { (e.currentTarget.style.background = "rgba(148,163,184,0.08)"); }}
+ onMouseEnter={(e) => { (e.currentTarget.style.background = "var(--color-bg-wash)"); }}
onMouseLeave={(e) => { (e.currentTarget.style.background = "none"); }}
>
{isExpanded ? <ChevronDown size={12} /> : <ChevronRight size={12} />}
@@ -179,13 +179,13 @@ function TreeNodeRow({
border: "none",
cursor: "pointer",
color: isSelected
- ? "var(--color-accent-primary, #f59520)"
- : "var(--color-text-primary, #f1f5f9)",
+ ? "var(--color-accent-primary)"
+ : "var(--color-text-primary)",
fontSize: 11,
textAlign: "left",
}}
onMouseEnter={(e) => {
- if (!isSelected) e.currentTarget.style.background = "rgba(148,163,184,0.08)";
+ if (!isSelected) e.currentTarget.style.background = "var(--color-bg-wash)";
}}
onMouseLeave={(e) => {
if (!isSelected) e.currentTarget.style.background = "none";
diff --git a/packages/ui/src/c4/panels/FilterPanel.tsx b/packages/ui/src/c4/panels/FilterPanel.tsx
index e6cd39e59..2d0c7167f 100644
--- a/packages/ui/src/c4/panels/FilterPanel.tsx
+++ b/packages/ui/src/c4/panels/FilterPanel.tsx
@@ -23,14 +23,14 @@ function CheckboxRow({
padding: "4px 0",
fontSize: 11,
cursor: "pointer",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
}}
>
<input
type="checkbox"
checked={checked}
onChange={(e) => onChange(e.target.checked)}
- style={{ accentColor: "var(--color-accent-primary, #f59520)" }}
+ style={{ accentColor: "var(--color-accent-primary)" }}
/>
{label}
</label>
@@ -47,6 +47,11 @@ export function FilterPanel() {
const setEdgeCategoryFilter = useArchitectureStore((s) => s.setEdgeCategoryFilter);
const resetFilters = useArchitectureStore((s) => s.resetFilters);
const setFilterPanelOpen = useArchitectureStore((s) => s.setFilterPanelOpen);
+ const showTests = useArchitectureStore((s) => s.showTests);
+ const setShowTests = useArchitectureStore((s) => s.setShowTests);
+ const hasTestLayer = useArchitectureStore(
+ (s) => s.view?.layers.some((l) => l.id === "layer:test") ?? false,
+ );
const nodeTypes = useMemo(() => {
if (!view) return [];
@@ -76,7 +81,7 @@ export function FilterPanel() {
left: 12,
width: 280,
background: "var(--color-bg-elevated, rgba(17,24,39,0.96))",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 8,
boxShadow: "0 8px 24px rgba(0,0,0,0.4)",
zIndex: 8,
@@ -90,10 +95,10 @@ export function FilterPanel() {
alignItems: "center",
justifyContent: "space-between",
padding: "10px 12px",
- borderBottom: "1px solid rgba(148,163,184,0.12)",
+ borderBottom: "1px solid var(--color-border-subtle)",
}}
>
- <span style={{ fontSize: 12, fontWeight: 600, color: "var(--color-text-primary, #f1f5f9)" }}>
+ <span style={{ fontSize: 12, fontWeight: 600, color: "var(--color-text-primary)" }}>
Filters
</span>
<button
@@ -103,7 +108,7 @@ export function FilterPanel() {
background: "transparent",
border: "none",
cursor: "pointer",
- color: "var(--color-text-secondary, #94a3b8)",
+ color: "var(--color-text-secondary)",
padding: 2,
}}
>
@@ -133,6 +138,17 @@ export function FilterPanel() {
))}
</Section>
+ {hasTestLayer && (
+ <Section title="Display">
+ {/* Tests mirror the code — demoted by default (decision 2). */}
+ <CheckboxRow
+ label="Show tests"
+ checked={showTests}
+ onChange={setShowTests}
+ />
+ </Section>
+ )}
+
<Section title="Layers">
{view.layers.map((layer) => (
<CheckboxRow
diff --git a/packages/ui/src/c4/panels/LearnPanel.tsx b/packages/ui/src/c4/panels/LearnPanel.tsx
index caffafa87..62d7aba02 100644
--- a/packages/ui/src/c4/panels/LearnPanel.tsx
+++ b/packages/ui/src/c4/panels/LearnPanel.tsx
@@ -1,9 +1,19 @@
"use client";
-import { Compass } from "lucide-react";
+import { BookOpen, Compass, FileCode, Server } from "lucide-react";
import { useArchitectureStore } from "../store/use-architecture-store";
+import type { ArchTourStepKind } from "../types";
import { Section, ActionButton, Pill } from "./panel-atoms";
+/** Iconography per curated step kind (viewer plan C-2). */
+function KindIcon({ kind }: { kind: ArchTourStepKind }) {
+ const style = { flexShrink: 0, opacity: 0.8 } as const;
+ if (kind === "overview") return <BookOpen size={13} style={style} aria-label="Overview step" />;
+ if (kind === "infra") return <Server size={13} style={style} aria-label="Infrastructure step" />;
+ if (kind === "code") return <FileCode size={13} style={style} aria-label="Code step" />;
+ return null;
+}
+
export function LearnPanel() {
const view = useArchitectureStore((s) => s.view);
const tourActive = useArchitectureStore((s) => s.tourActive);
@@ -70,12 +80,13 @@ export function LearnPanel() {
justifyContent: "center",
fontSize: 9,
fontWeight: 600,
- background: "rgba(148,163,184,0.15)",
+ background: "var(--color-bg-wash-hover)",
flexShrink: 0,
}}
>
{i + 1}
</span>
+ <KindIcon kind={step.kind} />
<span>{step.title}</span>
</div>
))}
@@ -87,6 +98,12 @@ export function LearnPanel() {
const step = tour[currentTourStep];
const progress = ((currentTourStep + 1) / tour.length) * 100;
+ // Curated steps carry the "why this stop" prose in `reason` (plan C-2);
+ // legacy LLM tours keep their description.
+ const stepBody = step?.reason || step?.description || "";
+ const stepLayer = step?.layer_id
+ ? view?.layers.find((l) => l.id === step.layer_id)
+ : undefined;
return (
<Section>
@@ -96,7 +113,7 @@ export function LearnPanel() {
style={{
height: 3,
borderRadius: 2,
- background: "rgba(148,163,184,0.15)",
+ background: "var(--color-bg-wash-hover)",
marginBottom: 12,
overflow: "hidden",
}}
@@ -105,21 +122,29 @@ export function LearnPanel() {
style={{
width: `${progress}%`,
height: "100%",
- background: "var(--color-accent-primary, #f59520)",
+ background: "var(--color-accent-primary)",
borderRadius: 2,
transition: "width 0.3s ease",
}}
/>
</div>
- {/* Step title */}
- <div style={{ fontWeight: 600, fontSize: 14, marginBottom: 4 }}>
- {step?.title}
+ {/* Step title + kind icon */}
+ <div style={{ display: "flex", alignItems: "center", gap: 6, fontWeight: 600, fontSize: 14, marginBottom: 4 }}>
+ {step && <KindIcon kind={step.kind} />}
+ <span>{step?.title}</span>
</div>
- {/* Step description */}
+ {/* Layer the step belongs to (the canvas follows it) */}
+ {stepLayer && (
+ <div style={{ marginBottom: 6 }}>
+ <Pill label={stepLayer.name} />
+ </div>
+ )}
+
+ {/* Step body: curated reason, or legacy description */}
<div style={{ fontSize: 12, opacity: 0.8, lineHeight: 1.5, marginBottom: 10 }}>
- {step?.description}
+ {stepBody}
</div>
{/* Referenced nodes */}
@@ -172,8 +197,8 @@ export function LearnPanel() {
borderRadius: "50%",
background:
i === currentTourStep
- ? "var(--color-accent-primary, #f59520)"
- : "rgba(148,163,184,0.3)",
+ ? "var(--color-accent-primary)"
+ : "var(--color-border-default)",
border: "none",
cursor: "pointer",
padding: 0,
diff --git a/packages/ui/src/c4/panels/NodeTooltip.tsx b/packages/ui/src/c4/panels/NodeTooltip.tsx
index a664d37ef..c079f3cc4 100644
--- a/packages/ui/src/c4/panels/NodeTooltip.tsx
+++ b/packages/ui/src/c4/panels/NodeTooltip.tsx
@@ -17,7 +17,7 @@ export function NodeTooltip({ node, position }: NodeTooltipProps) {
if (!node || !position) return null;
const tone = getTone(node.node_type);
- const dotColor = THEME.complexity[node.complexity] ?? "#94a3b8";
+ const dotColor = THEME.complexity[node.complexity] ?? THEME.text.muted;
const truncatedSummary =
node.summary.length > MAX_SUMMARY_LEN
@@ -40,9 +40,9 @@ export function NodeTooltip({ node, position }: NodeTooltipProps) {
background: "var(--color-bg-glass, rgba(17,24,39,0.75))",
backdropFilter: "blur(8px)",
WebkitBackdropFilter: "blur(8px)",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 8,
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontSize: 11,
fontFamily: "var(--font-sans, system-ui, sans-serif)",
boxShadow: "0 8px 24px rgba(0,0,0,0.4)",
@@ -104,9 +104,9 @@ export function NodeTooltip({ node, position }: NodeTooltipProps) {
borderRadius: 10,
fontSize: 10,
fontWeight: 500,
- background: "rgba(148,163,184,0.15)",
- color: "var(--color-text-secondary, #94a3b8)",
- border: "1px solid rgba(148,163,184,0.2)",
+ background: "var(--color-bg-wash-hover)",
+ color: "var(--color-text-secondary)",
+ border: "1px solid var(--color-border-default)",
}}
>
{tag}
diff --git a/packages/ui/src/c4/panels/NodeTypeCategoryFilters.tsx b/packages/ui/src/c4/panels/NodeTypeCategoryFilters.tsx
index ff88bd852..8d6d92c19 100644
--- a/packages/ui/src/c4/panels/NodeTypeCategoryFilters.tsx
+++ b/packages/ui/src/c4/panels/NodeTypeCategoryFilters.tsx
@@ -2,6 +2,7 @@
import { useCallback } from "react";
import { useArchitectureStore } from "../store/use-architecture-store";
+import { getKindIcon } from "../nodes/kind-icons";
import type { ArchNodeType } from "../types";
const CATEGORY_NODE_TYPES: Record<string, ArchNodeType[]> = {
@@ -12,12 +13,14 @@ const CATEGORY_NODE_TYPES: Record<string, ArchNodeType[]> = {
data: ["table", "endpoint", "schema"],
};
-const CATEGORY_COLORS: Record<string, string> = {
- code: "#3b82f6",
- config: "#f59e0b",
- docs: "#67e8f9",
- infra: "#a78bfa",
- data: "#2dd4bf",
+// Each category pill carries its representative kind glyph (ink system —
+// icons encode type, not color; kg-ux plan §2.2).
+const CATEGORY_ICON_KIND: Record<string, string> = {
+ code: "file",
+ config: "config",
+ docs: "document",
+ infra: "service",
+ data: "table",
};
export function NodeTypeCategoryFilters() {
@@ -49,27 +52,32 @@ export function NodeTypeCategoryFilters() {
<div style={{ display: "flex", gap: 6, alignItems: "center" }}>
{Object.keys(CATEGORY_NODE_TYPES).map((category) => {
const active = nodeTypeFilters[category] !== false;
- const color = CATEGORY_COLORS[category] ?? "#94a3b8";
+ const Icon = getKindIcon(CATEGORY_ICON_KIND[category] ?? "file");
return (
<button
key={category}
type="button"
onClick={() => handleToggle(category)}
style={{
- display: "inline-block",
+ display: "inline-flex",
+ alignItems: "center",
+ gap: 4,
padding: "3px 10px",
borderRadius: 12,
fontSize: 10,
fontWeight: 600,
cursor: "pointer",
- border: `1px solid ${color}`,
- color: color,
- background: "transparent",
- opacity: active ? 1 : 0.35,
+ border: active
+ ? "1px solid var(--color-accent-primary)"
+ : "1px solid var(--color-border-default)",
+ color: active ? "var(--color-accent-primary)" : "var(--color-text-secondary)",
+ background: active ? "var(--color-accent-muted)" : "transparent",
+ opacity: active ? 1 : 0.55,
textDecoration: active ? "none" : "line-through",
transition: "opacity 0.15s",
}}
>
+ <Icon size={11} aria-hidden />
{category}
</button>
);
diff --git a/packages/ui/src/c4/panels/PathFinderModal.tsx b/packages/ui/src/c4/panels/PathFinderModal.tsx
index f83e23c3b..391f76b9e 100644
--- a/packages/ui/src/c4/panels/PathFinderModal.tsx
+++ b/packages/ui/src/c4/panels/PathFinderModal.tsx
@@ -40,9 +40,9 @@ export function PathFinderModal() {
const selectStyle: React.CSSProperties = {
width: "100%",
padding: "8px 12px",
- background: "#1e293b",
- color: "#e2e8f0",
- border: "1px solid rgba(148,163,184,0.3)",
+ background: "var(--color-bg-surface)",
+ color: "var(--color-text-primary)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 6,
fontSize: 13,
};
@@ -67,11 +67,11 @@ export function PathFinderModal() {
width: 500,
maxHeight: "80vh",
overflowY: "auto",
- background: "#0f172a",
- border: "1px solid rgba(148, 163, 184, 0.2)",
+ background: "var(--color-bg-elevated)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 12,
padding: 24,
- color: "#e2e8f0",
+ color: "var(--color-text-primary)",
}}
>
<div
@@ -90,7 +90,7 @@ export function PathFinderModal() {
style={{
background: "none",
border: "none",
- color: "#94a3b8",
+ color: "var(--color-text-secondary)",
cursor: "pointer",
fontSize: 18,
padding: 4,
@@ -145,8 +145,8 @@ export function PathFinderModal() {
style={{
width: "100%",
padding: "10px 0",
- background: fromId && toId ? "#f59520" : "rgba(148,163,184,0.2)",
- color: fromId && toId ? "#0f172a" : "#94a3b8",
+ background: fromId && toId ? "var(--color-accent-fill)" : "var(--color-bg-wash-hover)",
+ color: fromId && toId ? "var(--color-text-on-accent)" : "var(--color-text-secondary)",
border: "none",
borderRadius: 6,
fontSize: 13,
@@ -180,10 +180,10 @@ export function PathFinderModal() {
padding: "8px 10px",
borderRadius: 6,
cursor: "pointer",
- borderBottom: "1px solid rgba(148,163,184,0.12)",
+ borderBottom: "1px solid var(--color-border-subtle)",
}}
>
- <span style={{ fontSize: 12, color: "#94a3b8", minWidth: 20 }}>
+ <span style={{ fontSize: 12, color: "var(--color-text-secondary)", minWidth: 20 }}>
{idx + 1}.
</span>
<span style={{ flex: 1, fontSize: 13 }}>
diff --git a/packages/ui/src/c4/panels/PersonaSelector.tsx b/packages/ui/src/c4/panels/PersonaSelector.tsx
index 18c46d3a1..858d2fd0b 100644
--- a/packages/ui/src/c4/panels/PersonaSelector.tsx
+++ b/packages/ui/src/c4/panels/PersonaSelector.tsx
@@ -13,11 +13,11 @@ export function PersonaSelector() {
onChange={(e) => setPersona(e.target.value as Persona)}
style={{
background: "transparent",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 4,
padding: "4px 8px",
fontSize: 11,
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
cursor: "pointer",
outline: "none",
}}
diff --git a/packages/ui/src/c4/panels/ProjectOverview.tsx b/packages/ui/src/c4/panels/ProjectOverview.tsx
index c9d148b3e..577354ef6 100644
--- a/packages/ui/src/c4/panels/ProjectOverview.tsx
+++ b/packages/ui/src/c4/panels/ProjectOverview.tsx
@@ -1,9 +1,10 @@
"use client";
import { useMemo } from "react";
-import { Compass } from "lucide-react";
+import { Compass, LogIn } from "lucide-react";
import { useArchitectureStore } from "../store/use-architecture-store";
import { getTone } from "../../graph-primitives/tone-styles";
+import { THEME } from "../theme/theme-variables";
import { Section, Title, Sub, Pill, ActionButton } from "./panel-atoms";
export function ProjectOverview() {
@@ -11,6 +12,12 @@ export function ProjectOverview() {
const tourActive = useArchitectureStore((s) => s.tourActive);
const startTour = useArchitectureStore((s) => s.startTour);
const selectNode = useArchitectureStore((s) => s.selectNode);
+ const drillIntoLayer = useArchitectureStore((s) => s.drillIntoLayer);
+
+ const orderedLayers = useMemo(() => {
+ if (!view) return [];
+ return [...view.layers].sort((a, b) => a.display_order - b.display_order);
+ }, [view]);
const nodeTypeCounts = useMemo(() => {
if (!view) return [];
@@ -49,11 +56,98 @@ export function ProjectOverview() {
return (
<>
+ {/* Orientation first (viewer plan C-1): summary, tour CTA, entry
+ points, layer stack. Stats demoted below the fold. */}
<Section>
<Title style={{ fontSize: 15 }}>{view.project_name}</Title>
<Sub style={{ marginTop: 4 }}>{view.project_description}</Sub>
</Section>
+ {view.tour.length > 0 && !tourActive && (
+ <Section>
+ <ActionButton onClick={startTour} icon={Compass} variant="primary">
+ Start tour ({view.tour.length} steps)
+ </ActionButton>
+ </Section>
+ )}
+
+ {view.entry_points.length > 0 && (
+ <Section title="Entry points">
+ <div style={{ display: "flex", flexDirection: "column", gap: 2 }}>
+ {view.entry_points.slice(0, 8).map((path) => {
+ const name = path.split("/").pop() ?? path;
+ const dir = path.slice(0, path.length - name.length);
+ return (
+ <button
+ key={path}
+ type="button"
+ aria-label={`Open entry point ${path}`}
+ onClick={() => selectNode(path)}
+ style={{
+ display: "flex",
+ alignItems: "center",
+ gap: 6,
+ padding: "4px 6px",
+ background: "none",
+ border: "none",
+ borderRadius: 4,
+ cursor: "pointer",
+ color: "var(--color-text-primary)",
+ fontSize: 11,
+ textAlign: "left",
+ }}
+ onMouseEnter={(e) => { (e.currentTarget.style.background = "var(--color-bg-wash-hover)"); }}
+ onMouseLeave={(e) => { (e.currentTarget.style.background = "none"); }}
+ >
+ <LogIn size={11} style={{ flexShrink: 0, color: "var(--color-accent-primary)" }} />
+ <span style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
+ <span style={{ opacity: 0.5 }}>{dir}</span>
+ <span style={{ fontWeight: 600 }}>{name}</span>
+ </span>
+ </button>
+ );
+ })}
+ </div>
+ </Section>
+ )}
+
+ {orderedLayers.length > 0 && (
+ <Section title="Layer stack">
+ <div style={{ display: "flex", flexDirection: "column", gap: 3 }}>
+ {orderedLayers.map((layer) => (
+ <button
+ key={layer.id}
+ type="button"
+ aria-label={`Explore layer ${layer.name}`}
+ onClick={() => drillIntoLayer(layer.id)}
+ style={{
+ display: "flex",
+ justifyContent: "space-between",
+ alignItems: "center",
+ padding: "5px 8px",
+ background: "var(--color-bg-wash)",
+ border: "1px solid var(--color-border-subtle)",
+ borderRadius: 4,
+ cursor: "pointer",
+ color: "var(--color-text-primary)",
+ fontSize: 11,
+ textAlign: "left",
+ }}
+ onMouseEnter={(e) => { (e.currentTarget.style.background = "var(--color-bg-wash-hover)"); }}
+ onMouseLeave={(e) => { (e.currentTarget.style.background = "var(--color-bg-wash)"); }}
+ >
+ <span style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
+ {layer.name}
+ </span>
+ <span style={{ fontFamily: "var(--font-mono, ui-monospace, monospace)", opacity: 0.55, flexShrink: 0, marginLeft: 8 }}>
+ {layer.file_count}
+ </span>
+ </button>
+ ))}
+ </div>
+ </Section>
+ )}
+
<Section title="Stats">
<div style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: 8 }}>
<StatCell label="Nodes" value={String(view.total_files)} />
@@ -92,7 +186,7 @@ export function ProjectOverview() {
return (
<div key={type} style={{ display: "flex", alignItems: "center", gap: 8, fontSize: 11 }}>
<span style={{ width: 60, opacity: 0.7, flexShrink: 0 }}>{type}</span>
- <div style={{ flex: 1, height: 6, borderRadius: 3, background: "rgba(148,163,184,0.1)" }}>
+ <div style={{ flex: 1, height: 6, borderRadius: 3, background: "var(--color-bg-wash-hover)" }}>
<div style={{ width: `${pct}%`, height: "100%", borderRadius: 3, background: tone.band }} />
</div>
<span style={{ width: 28, textAlign: "right", fontFamily: "var(--font-mono, ui-monospace, monospace)", opacity: 0.7 }}>{count}</span>
@@ -109,19 +203,19 @@ export function ProjectOverview() {
{complexityCounts.simple > 0 && (
<div
aria-label={`${complexityCounts.simple} simple`}
- style={{ flex: complexityCounts.simple, background: "#22c55e" }}
+ style={{ flex: complexityCounts.simple, background: THEME.complexity.simple }}
/>
)}
{complexityCounts.moderate > 0 && (
<div
aria-label={`${complexityCounts.moderate} moderate`}
- style={{ flex: complexityCounts.moderate, background: "#f59e0b" }}
+ style={{ flex: complexityCounts.moderate, background: THEME.complexity.moderate }}
/>
)}
{complexityCounts.complex > 0 && (
<div
aria-label={`${complexityCounts.complex} complex`}
- style={{ flex: complexityCounts.complex, background: "#ef4444" }}
+ style={{ flex: complexityCounts.complex, background: THEME.complexity.complex }}
/>
)}
</div>
@@ -151,11 +245,11 @@ export function ProjectOverview() {
border: "none",
borderRadius: 4,
cursor: "pointer",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontSize: 11,
textAlign: "left",
}}
- onMouseEnter={(e) => { (e.currentTarget.style.background = "rgba(148,163,184,0.1)"); }}
+ onMouseEnter={(e) => { (e.currentTarget.style.background = "var(--color-bg-wash-hover)"); }}
onMouseLeave={(e) => { (e.currentTarget.style.background = "none"); }}
>
<span>{n.name}</span>
@@ -166,13 +260,6 @@ export function ProjectOverview() {
</Section>
)}
- {view.tour.length > 0 && !tourActive && (
- <Section>
- <ActionButton onClick={startTour} icon={Compass}>
- Start Guided Tour ({view.tour.length} steps)
- </ActionButton>
- </Section>
- )}
</>
);
}
@@ -182,7 +269,7 @@ function StatCell({ label, value }: { label: string; value: string }) {
<div
style={{
padding: "8px 10px",
- border: "1px solid rgba(148,163,184,0.12)",
+ border: "1px solid var(--color-border-subtle)",
borderRadius: 6,
textAlign: "center",
}}
diff --git a/packages/ui/src/c4/panels/SearchBar.tsx b/packages/ui/src/c4/panels/SearchBar.tsx
index 497cd8e58..3d461b50b 100644
--- a/packages/ui/src/c4/panels/SearchBar.tsx
+++ b/packages/ui/src/c4/panels/SearchBar.tsx
@@ -70,7 +70,7 @@ export function SearchBar() {
alignItems: "center",
gap: 8,
padding: "8px 12px",
- borderBottom: "1px solid var(--color-border-default, #334155)",
+ borderBottom: "1px solid var(--color-border-default)",
}}
>
<Search size={14} style={{ opacity: 0.5, flexShrink: 0 }} />
@@ -86,7 +86,7 @@ export function SearchBar() {
background: "transparent",
border: "none",
outline: "none",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontSize: 12,
fontFamily: "inherit",
}}
@@ -100,7 +100,7 @@ export function SearchBar() {
left: 0,
right: 0,
background: "var(--color-bg-elevated, rgba(17,24,39,0.96))",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 6,
maxHeight: 240,
overflowY: "auto",
@@ -123,10 +123,10 @@ export function SearchBar() {
padding: "8px 12px",
background: "transparent",
border: "none",
- borderBottom: "1px solid rgba(148,163,184,0.08)",
+ borderBottom: "1px solid var(--color-bg-wash)",
cursor: "pointer",
textAlign: "left",
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
}}
>
<Badge label={result.node_type} color={tone.text} bg={tone.bg} />
@@ -136,7 +136,7 @@ export function SearchBar() {
width: 40,
height: 4,
borderRadius: 2,
- background: "rgba(148,163,184,0.2)",
+ background: "var(--color-border-default)",
overflow: "hidden",
}}
>
@@ -144,7 +144,7 @@ export function SearchBar() {
style={{
width: `${result.score * 100}%`,
height: "100%",
- background: "var(--color-accent-primary, #f59520)",
+ background: "var(--color-accent-primary)",
borderRadius: 2,
}}
/>
diff --git a/packages/ui/src/c4/panels/Sidebar.tsx b/packages/ui/src/c4/panels/Sidebar.tsx
index 71ac6d690..f2ef40d5e 100644
--- a/packages/ui/src/c4/panels/Sidebar.tsx
+++ b/packages/ui/src/c4/panels/Sidebar.tsx
@@ -37,13 +37,13 @@ const TAB_STYLE_BASE: React.CSSProperties = {
borderBottomWidth: 2,
borderBottomStyle: "solid",
borderBottomColor: "transparent",
- color: "var(--color-text-secondary, #94a3b8)",
+ color: "var(--color-text-secondary)",
};
const TAB_STYLE_ACTIVE: React.CSSProperties = {
...TAB_STYLE_BASE,
- color: "var(--color-accent-primary, #f59520)",
- borderBottomColor: "var(--color-accent-primary, #f59520)",
+ color: "var(--color-accent-primary)",
+ borderBottomColor: "var(--color-accent-primary)",
};
export function Sidebar(props: SidebarProps) {
@@ -64,9 +64,9 @@ export function Sidebar(props: SidebarProps) {
width: 320,
maxHeight: "calc(100% - 24px)",
background: "var(--color-bg-elevated, rgba(17,24,39,0.96))",
- border: "1px solid var(--color-border-default, #334155)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 8,
- color: "var(--color-text-primary, #f1f5f9)",
+ color: "var(--color-text-primary)",
fontSize: 12,
zIndex: 5,
display: "flex",
@@ -79,7 +79,7 @@ export function Sidebar(props: SidebarProps) {
aria-label="Sidebar tabs"
style={{
display: "flex",
- borderBottom: "1px solid var(--color-border-default, #334155)",
+ borderBottom: "1px solid var(--color-border-default)",
flexShrink: 0,
}}
>
diff --git a/packages/ui/src/c4/panels/index.ts b/packages/ui/src/c4/panels/index.ts
index f4e26290f..2c7e6e756 100644
--- a/packages/ui/src/c4/panels/index.ts
+++ b/packages/ui/src/c4/panels/index.ts
@@ -16,6 +16,8 @@ export { Sidebar } from "./Sidebar";
export type { SidebarProps } from "./Sidebar";
export { ProjectOverview } from "./ProjectOverview";
export { ArchNodeInfo } from "./ArchNodeInfo";
+export { ArchBreadcrumb } from "./ArchBreadcrumb";
+export { ArchLegend } from "./ArchLegend";
export type { ArchNodeInfoProps, ArchNodeHealth } from "./ArchNodeInfo";
export { FileExplorer } from "./FileExplorer";
export { SearchBar } from "./SearchBar";
diff --git a/packages/ui/src/c4/panels/panel-atoms.tsx b/packages/ui/src/c4/panels/panel-atoms.tsx
index 943603afe..3107b54cb 100644
--- a/packages/ui/src/c4/panels/panel-atoms.tsx
+++ b/packages/ui/src/c4/panels/panel-atoms.tsx
@@ -4,7 +4,7 @@ import type { ReactNode } from "react";
export function Section({ title, children }: { title?: string; children: ReactNode }) {
return (
- <div style={{ padding: "10px 12px", borderBottom: "1px solid rgba(148,163,184,0.12)" }}>
+ <div style={{ padding: "10px 12px", borderBottom: "1px solid var(--color-border-subtle)" }}>
{title && (
<div
style={{
@@ -43,7 +43,7 @@ export function KVList({ rows }: { rows: [string, string][] }) {
justifyContent: "space-between",
gap: 8,
padding: "3px 0",
- borderTop: "1px solid rgba(148,163,184,0.12)",
+ borderTop: "1px solid var(--color-border-subtle)",
fontSize: 11,
}}
>
@@ -79,9 +79,9 @@ export function ActionButton({
padding: "5px 10px",
background: primary ? "var(--color-accent-muted, rgba(245,149,32,0.2))" : "transparent",
color: primary
- ? "var(--color-accent-primary, #f59520)"
- : "var(--color-text-secondary, #cbd5e1)",
- border: `1px solid ${primary ? "var(--color-accent-primary, #f59520)" : "var(--color-border-default, #334155)"}`,
+ ? "var(--color-accent-primary)"
+ : "var(--color-text-secondary)",
+ border: `1px solid ${primary ? "var(--color-accent-primary)" : "var(--color-border-default)"}`,
borderRadius: 4,
cursor: "pointer",
fontSize: 11,
@@ -115,8 +115,8 @@ export function Badge({
fontSize: 10,
fontWeight: 600,
letterSpacing: 0.4,
- color: color ?? "#ffffff",
- background: bg ?? "rgba(148,163,184,0.2)",
+ color: color ?? "var(--color-text-primary)",
+ background: bg ?? "var(--color-border-default)",
textTransform: "uppercase",
}}
>
@@ -134,9 +134,9 @@ export function Pill({ label }: { label: string }) {
borderRadius: 10,
fontSize: 10,
fontWeight: 500,
- background: "rgba(148,163,184,0.15)",
- color: "var(--color-text-secondary, #94a3b8)",
- border: "1px solid rgba(148,163,184,0.2)",
+ background: "var(--color-bg-wash-hover)",
+ color: "var(--color-text-secondary)",
+ border: "1px solid var(--color-border-default)",
}}
>
{label}
diff --git a/packages/ui/src/c4/store/use-architecture-store.ts b/packages/ui/src/c4/store/use-architecture-store.ts
index d1c43d1cf..b555c7b57 100644
--- a/packages/ui/src/c4/store/use-architecture-store.ts
+++ b/packages/ui/src/c4/store/use-architecture-store.ts
@@ -22,9 +22,11 @@ interface ArchitectureStoreState {
edgesBySource: Map<string, ArchEdge[]>;
edgesByTarget: Map<string, ArchEdge[]>;
nodeIdToLayerId: Map<string, string>;
+ nodeIdToSubGroupId: Map<string, string>;
navigationLevel: NavigationLevel;
activeLayerId: string | null;
+ activeSubGroupId: string | null;
selectedNodeId: string | null;
expandedContainers: Set<string>;
@@ -41,6 +43,8 @@ interface ArchitectureStoreState {
filters: ArchFilters;
nodeTypeFilters: Record<string, boolean>;
filterPanelOpen: boolean;
+ /** Test layer is demoted by default (locked decision 2); this restores it. */
+ showTests: boolean;
tourActive: boolean;
currentTourStep: number;
@@ -65,6 +69,7 @@ interface ArchitectureStoreActions {
clearView: () => void;
drillIntoLayer: (layerId: string) => void;
+ drillIntoSubGroup: (subGroupId: string) => void;
drillOut: () => void;
selectNode: (nodeId: string | null) => void;
@@ -87,6 +92,7 @@ interface ArchitectureStoreActions {
setEdgeCategoryFilter: (category: string, visible: boolean) => void;
resetFilters: () => void;
setFilterPanelOpen: (open: boolean) => void;
+ setShowTests: (show: boolean) => void;
startTour: () => void;
endTour: () => void;
@@ -135,6 +141,7 @@ function buildIndexes(view: ArchitectureView) {
const edgesBySource = new Map<string, ArchEdge[]>();
const edgesByTarget = new Map<string, ArchEdge[]>();
const nodeIdToLayerId = new Map<string, string>();
+ const nodeIdToSubGroupId = new Map<string, string>();
for (const node of view.nodes) {
nodesById.set(node.id, node);
@@ -159,9 +166,96 @@ function buildIndexes(view: ArchitectureView) {
for (const nodeId of layer.node_ids) {
nodeIdToLayerId.set(nodeId, layer.id);
}
+ for (const group of layer.sub_groups) {
+ for (const nodeId of group.node_ids) {
+ nodeIdToSubGroupId.set(nodeId, group.id);
+ }
+ }
}
- return { nodesById, edgesBySource, edgesByTarget, nodeIdToLayerId };
+ return { nodesById, edgesBySource, edgesByTarget, nodeIdToLayerId, nodeIdToSubGroupId };
+}
+
+/** Tolerate older / uncurated backend payloads (kg-ux hardening): the API
+ * response may predate the curated-KG schema (no sub_groups / entry_points /
+ * tour — e.g. a server running pre-curation code), and JSON from the wire is
+ * never as trustworthy as the TS types claim. Every field the viewer
+ * iterates gets a safe default so a stale backend degrades to the uncurated
+ * experience instead of crashing the page. */
+function normalizeView(view: ArchitectureView): ArchitectureView {
+ return {
+ ...view,
+ layers: (view.layers ?? []).map((l, i) => ({
+ ...l,
+ node_ids: l.node_ids ?? [],
+ sub_groups: l.sub_groups ?? [],
+ display_order: l.display_order ?? i,
+ health_score: l.health_score ?? null,
+ complexity_distribution: l.complexity_distribution ?? {},
+ })),
+ nodes: (view.nodes ?? []).map((n) => ({ ...n, tags: n.tags ?? [] })),
+ edges: view.edges ?? [],
+ tour: view.tour ?? [],
+ languages: view.languages ?? [],
+ frameworks: view.frameworks ?? [],
+ external_systems: view.external_systems ?? [],
+ entry_points: view.entry_points ?? [],
+ entry_candidates: view.entry_candidates ?? [],
+ };
+}
+
+/** Drill state that lands on *nodeId*'s file card: its layer, and — when the
+ * layer is curated into sub-groups — the sub-group that contains it.
+ * Returns {} when the node's layer is unknown or already active. */
+function drillStateForNode(
+ state: ArchitectureStoreState,
+ nodeId: string | null,
+): Partial<ArchitectureStoreState> {
+ if (!nodeId) return {};
+ const layerId = state.nodeIdToLayerId.get(nodeId) ?? null;
+ if (!layerId) return {};
+ const subGroupId = state.nodeIdToSubGroupId.get(nodeId) ?? null;
+ if (
+ state.navigationLevel === "layer-detail" &&
+ layerId === state.activeLayerId &&
+ subGroupId === state.activeSubGroupId
+ ) {
+ return {};
+ }
+ return {
+ navigationLevel: "layer-detail" as NavigationLevel,
+ activeLayerId: layerId,
+ activeSubGroupId: subGroupId,
+ expandedContainers: new Set<string>(),
+ containerLayoutCache: new Map<string, ContainerLayoutResult>(),
+ };
+}
+
+/** Drill state for a tour step: follow the step's node when it's in the
+ * graph, else fall back to the step's curated layer_id so the canvas still
+ * follows the walk (viewer plan C-2). */
+function drillStateForStep(
+ state: ArchitectureStoreState,
+ nodeId: string | null,
+ layerId: string | null | undefined,
+): Partial<ArchitectureStoreState> {
+ if (nodeId && state.nodeIdToLayerId.has(nodeId)) {
+ return drillStateForNode(state, nodeId);
+ }
+ if (
+ layerId &&
+ layerId !== state.activeLayerId &&
+ state.view?.layers.some((l: ArchLayer) => l.id === layerId)
+ ) {
+ return {
+ navigationLevel: "layer-detail" as NavigationLevel,
+ activeLayerId: layerId,
+ activeSubGroupId: null,
+ expandedContainers: new Set<string>(),
+ containerLayoutCache: new Map<string, ContainerLayoutResult>(),
+ };
+ }
+ return {};
}
const INITIAL_STATE: ArchitectureStoreState = {
@@ -170,9 +264,11 @@ const INITIAL_STATE: ArchitectureStoreState = {
edgesBySource: new Map(),
edgesByTarget: new Map(),
nodeIdToLayerId: new Map(),
+ nodeIdToSubGroupId: new Map(),
navigationLevel: "overview",
activeLayerId: null,
+ activeSubGroupId: null,
selectedNodeId: null,
expandedContainers: new Set(),
@@ -194,6 +290,7 @@ const INITIAL_STATE: ArchitectureStoreState = {
},
nodeTypeFilters: { ...DEFAULT_NODE_TYPE_FILTERS },
filterPanelOpen: false,
+ showTests: false,
tourActive: false,
currentTourStep: 0,
@@ -218,8 +315,10 @@ export const useArchitectureStore = create<ArchitectureStore>()(
(set, get) => ({
...INITIAL_STATE,
- setView: (view: ArchitectureView) => {
- const { nodesById, edgesBySource, edgesByTarget, nodeIdToLayerId } = buildIndexes(view);
+ setView: (rawView: ArchitectureView) => {
+ const view = normalizeView(rawView);
+ const { nodesById, edgesBySource, edgesByTarget, nodeIdToLayerId, nodeIdToSubGroupId } =
+ buildIndexes(view);
const filters = buildFiltersFromView(view);
set({
view,
@@ -227,9 +326,11 @@ export const useArchitectureStore = create<ArchitectureStore>()(
edgesBySource,
edgesByTarget,
nodeIdToLayerId,
+ nodeIdToSubGroupId,
filters,
navigationLevel: "overview",
activeLayerId: null,
+ activeSubGroupId: null,
selectedNodeId: null,
expandedContainers: new Set(),
containerLayoutCache: new Map(),
@@ -247,9 +348,26 @@ export const useArchitectureStore = create<ArchitectureStore>()(
},
drillIntoLayer: (layerId: string) => {
+ // Layers curated into sub-groups land on the intermediate
+ // "layer-groups" tier; small/uncurated layers drill straight to
+ // file cards (locked decision 1 — never synthesize a one-group tier).
+ const layer = get().view?.layers.find((l: ArchLayer) => l.id === layerId);
+ const hasSubGroups = (layer?.sub_groups.length ?? 0) > 0;
set({
- navigationLevel: "layer-detail",
+ navigationLevel: hasSubGroups ? "layer-groups" : "layer-detail",
activeLayerId: layerId,
+ activeSubGroupId: null,
+ selectedNodeId: null,
+ focusNodeId: null,
+ expandedContainers: new Set(),
+ containerLayoutCache: new Map(),
+ });
+ },
+
+ drillIntoSubGroup: (subGroupId: string) => {
+ set({
+ navigationLevel: "layer-detail",
+ activeSubGroupId: subGroupId,
selectedNodeId: null,
focusNodeId: null,
expandedContainers: new Set(),
@@ -258,9 +376,24 @@ export const useArchitectureStore = create<ArchitectureStore>()(
},
drillOut: () => {
+ const state = get();
+ // layer-detail inside a sub-group steps back up to the groups tier;
+ // everything else returns to the overview.
+ if (state.navigationLevel === "layer-detail" && state.activeSubGroupId) {
+ set({
+ navigationLevel: "layer-groups",
+ activeSubGroupId: null,
+ selectedNodeId: null,
+ focusNodeId: null,
+ expandedContainers: new Set(),
+ containerLayoutCache: new Map(),
+ });
+ return;
+ }
set({
navigationLevel: "overview",
activeLayerId: null,
+ activeSubGroupId: null,
selectedNodeId: null,
focusNodeId: null,
expandedContainers: new Set(),
@@ -270,23 +403,11 @@ export const useArchitectureStore = create<ArchitectureStore>()(
selectNode: (nodeId: string | null) => {
const state = get();
-
- if (nodeId !== null) {
- const nodeLayerId = state.nodeIdToLayerId.get(nodeId);
- if (nodeLayerId && nodeLayerId !== state.activeLayerId) {
- set({
- navigationLevel: "layer-detail",
- activeLayerId: nodeLayerId,
- selectedNodeId: nodeId,
- focusNodeId: null,
- expandedContainers: new Set(),
- containerLayoutCache: new Map(),
- });
- return;
- }
- }
-
- set({ selectedNodeId: nodeId, focusNodeId: null });
+ set({
+ ...drillStateForNode(state, nodeId),
+ selectedNodeId: nodeId,
+ focusNodeId: null,
+ });
},
toggleContainer: (containerId: string) => {
@@ -418,6 +539,10 @@ export const useArchitectureStore = create<ArchitectureStore>()(
set({ filterPanelOpen: open });
},
+ setShowTests: (show: boolean) => {
+ set({ showTests: show });
+ },
+
startTour: () => {
const state = get();
const tour = state.view?.tour;
@@ -425,19 +550,13 @@ export const useArchitectureStore = create<ArchitectureStore>()(
const firstStep = tour[0];
const nodeIds = firstStep?.node_ids ?? [];
const firstNodeId = nodeIds[0] ?? null;
- const layerId = firstNodeId ? state.nodeIdToLayerId.get(firstNodeId) ?? null : null;
set({
tourActive: true,
currentTourStep: 0,
tourHighlightedNodeIds: new Set(nodeIds),
selectedNodeId: firstNodeId,
focusNodeId: null,
- ...(layerId ? {
- navigationLevel: "layer-detail" as NavigationLevel,
- activeLayerId: layerId,
- expandedContainers: new Set<string>(),
- containerLayoutCache: new Map<string, ContainerLayoutResult>(),
- } : {}),
+ ...drillStateForStep(state, firstNodeId, firstStep?.layer_id),
});
},
@@ -455,23 +574,7 @@ export const useArchitectureStore = create<ArchitectureStore>()(
if (!tour || tour.length === 0) return;
const maxStep = tour.length - 1;
if (state.currentTourStep >= maxStep) return;
- const nextIdx = state.currentTourStep + 1;
- const step = tour[nextIdx];
- const nodeIds = step?.node_ids ?? [];
- const firstNodeId = nodeIds[0] ?? null;
- const layerId = firstNodeId ? state.nodeIdToLayerId.get(firstNodeId) ?? null : null;
- set({
- currentTourStep: nextIdx,
- tourHighlightedNodeIds: new Set(nodeIds),
- selectedNodeId: firstNodeId,
- focusNodeId: null,
- ...(layerId && layerId !== state.activeLayerId ? {
- navigationLevel: "layer-detail" as NavigationLevel,
- activeLayerId: layerId,
- expandedContainers: new Set<string>(),
- containerLayoutCache: new Map<string, ContainerLayoutResult>(),
- } : {}),
- });
+ get().goToTourStep(state.currentTourStep + 1);
},
prevTourStep: () => {
@@ -479,23 +582,7 @@ export const useArchitectureStore = create<ArchitectureStore>()(
const tour = state.view?.tour;
if (!tour || tour.length === 0) return;
if (state.currentTourStep <= 0) return;
- const prevIdx = state.currentTourStep - 1;
- const step = tour[prevIdx];
- const nodeIds = step?.node_ids ?? [];
- const firstNodeId = nodeIds[0] ?? null;
- const layerId = firstNodeId ? state.nodeIdToLayerId.get(firstNodeId) ?? null : null;
- set({
- currentTourStep: prevIdx,
- tourHighlightedNodeIds: new Set(nodeIds),
- selectedNodeId: firstNodeId,
- focusNodeId: null,
- ...(layerId && layerId !== state.activeLayerId ? {
- navigationLevel: "layer-detail" as NavigationLevel,
- activeLayerId: layerId,
- expandedContainers: new Set<string>(),
- containerLayoutCache: new Map<string, ContainerLayoutResult>(),
- } : {}),
- });
+ get().goToTourStep(state.currentTourStep - 1);
},
goToTourStep: (step: number) => {
@@ -506,18 +593,12 @@ export const useArchitectureStore = create<ArchitectureStore>()(
const tourStep = tour[clamped];
const nodeIds = tourStep?.node_ids ?? [];
const firstNodeId = nodeIds[0] ?? null;
- const layerId = firstNodeId ? state.nodeIdToLayerId.get(firstNodeId) ?? null : null;
set({
currentTourStep: clamped,
tourHighlightedNodeIds: new Set(nodeIds),
selectedNodeId: firstNodeId,
focusNodeId: null,
- ...(layerId && layerId !== state.activeLayerId ? {
- navigationLevel: "layer-detail" as NavigationLevel,
- activeLayerId: layerId,
- expandedContainers: new Set<string>(),
- containerLayoutCache: new Map<string, ContainerLayoutResult>(),
- } : {}),
+ ...drillStateForStep(state, firstNodeId, tourStep?.layer_id),
});
},
diff --git a/packages/ui/src/c4/theme/theme-variables.ts b/packages/ui/src/c4/theme/theme-variables.ts
index 65046edd2..433a997ea 100644
--- a/packages/ui/src/c4/theme/theme-variables.ts
+++ b/packages/ui/src/c4/theme/theme-variables.ts
@@ -1,6 +1,6 @@
export const THEME = {
canvas: {
- bg: "var(--color-bg-canvas, #0f172a)",
+ bg: "var(--color-bg-canvas)",
dot: "var(--color-canvas-dot, rgba(148,163,184,0.08))",
},
@@ -9,48 +9,64 @@ export const THEME = {
overlay: "var(--color-bg-overlay, rgba(15,23,42,0.92))",
glass: "var(--color-bg-glass, rgba(17,24,39,0.75))",
glassBlur: "blur(8px)",
+ wash: "var(--color-bg-wash)",
+ washHover: "var(--color-bg-wash-hover)",
},
border: {
- default: "var(--color-border-default, #334155)",
+ default: "var(--color-border-default)",
subtle: "var(--color-border-subtle, rgba(148,163,184,0.12))",
},
text: {
- primary: "var(--color-text-primary, #f1f5f9)",
- secondary: "var(--color-text-secondary, #94a3b8)",
- muted: "var(--color-text-muted, #64748b)",
+ primary: "var(--color-text-primary)",
+ secondary: "var(--color-text-secondary)",
+ muted: "var(--color-text-muted)",
},
accent: {
- primary: "var(--color-accent-primary, #f59520)",
+ primary: "var(--color-accent-primary)",
muted: "var(--color-accent-muted, rgba(245,149,32,0.2))",
hover: "var(--color-accent-hover, rgba(245,149,32,0.35))",
},
selection: {
- ring: "#fbbf24",
- ringAlpha: "rgba(251,191,36,0.4)",
+ ring: "var(--color-viz-selection)",
+ ringAlpha: "var(--color-accent-muted, rgba(245,149,32,0.16))",
},
complexity: {
- simple: "#22c55e",
- moderate: "#f59e0b",
- complex: "#ef4444",
+ simple: "var(--color-success)",
+ moderate: "var(--color-warning)",
+ complex: "var(--color-error)",
} as Record<string, string>,
+ /** Status badge glyphs (entry / hotspot / dead) — semantic tokens, both themes. */
+ status: {
+ entry: "var(--color-success)",
+ hotspot: "var(--color-error)",
+ dead: "var(--color-text-muted)",
+ },
+
+ /** Health-score buckets (≥80 / ≥60 / below). */
+ health: {
+ good: "var(--color-success)",
+ fair: "var(--color-warning)",
+ poor: "var(--color-error)",
+ },
+
edge: {
- imports: "#d4a754",
- depends_on: "#e8976b",
- contains: "#a78bfa",
- tested_by: "#6ee7b7",
- default: "#8b9dc3",
+ imports: "var(--color-edge-imports)",
+ depends_on: "var(--color-warning)",
+ contains: "var(--color-accent-secondary)",
+ tested_by: "var(--color-success)",
+ default: "var(--color-text-tertiary)",
} as Record<string, string>,
diff: {
- changed: "#fca5a5",
+ changed: "var(--color-viz-diff-changed)",
changedAlpha: "rgba(252,165,165,0.4)",
- affected: "#fbbf24",
+ affected: "var(--color-viz-diff-affected)",
affectedAlpha: "rgba(251,191,36,0.3)",
},
@@ -71,6 +87,11 @@ export const THEME = {
},
} as const;
+/** Edge color for a relation type, falling back to the muted default. */
+export function edgeColor(edgeType: string): string {
+ return THEME.edge[edgeType] ?? "var(--color-text-tertiary)";
+}
+
export const KEYFRAMES = {
accentPulse: `
@keyframes accentPulse {
diff --git a/packages/ui/src/c4/types.ts b/packages/ui/src/c4/types.ts
index 55f97ab28..41a222ee7 100644
--- a/packages/ui/src/c4/types.ts
+++ b/packages/ui/src/c4/types.ts
@@ -133,6 +133,12 @@ export interface ArchEdge {
confidence: number;
}
+export interface ArchSubGroup {
+ id: string;
+ name: string;
+ node_ids: string[];
+}
+
export interface ArchLayer {
id: string;
name: string;
@@ -141,13 +147,26 @@ export interface ArchLayer {
file_count: number;
complexity_distribution: Record<string, number>;
health_score: number | null;
+ /** Curated drill-down groups within the layer (empty when uncurated). */
+ sub_groups: ArchSubGroup[];
+ /** Dependency-ordered stacking position (0 = top of the stack). */
+ display_order: number;
}
+export type ArchTourStepKind = "overview" | "code" | "infra" | "";
+
export interface ArchTourStep {
order: number;
title: string;
description: string;
node_ids: string[];
+ /** Curated, layer-aware fields (null/empty for legacy LLM tours). */
+ target_path: string | null;
+ layer_id: string | null;
+ reason: string;
+ depth: number | null;
+ kind: ArchTourStepKind;
+ page_type: string | null;
}
export interface ArchitectureView {
@@ -163,13 +182,16 @@ export interface ArchitectureView {
languages: string[];
frameworks: string[];
external_systems: C4ExternalSystem[];
+ /** Curated, ranked entry points (repo-relative paths; empty when uncurated). */
+ entry_points: string[];
+ entry_candidates: string[];
}
// ---------------------------------------------------------------------------
// Architecture store types
// ---------------------------------------------------------------------------
-export type NavigationLevel = "overview" | "layer-detail";
+export type NavigationLevel = "overview" | "layer-groups" | "layer-detail";
export type Persona = "overview" | "learn" | "deep-dive";
export type DetailLevel = "file" | "class" | "symbol";
export type SearchMode = "fuzzy" | "semantic";
diff --git a/packages/ui/src/chat/chat-interface.tsx b/packages/ui/src/chat/chat-interface.tsx
index e0483681a..f903b24b9 100644
--- a/packages/ui/src/chat/chat-interface.tsx
+++ b/packages/ui/src/chat/chat-interface.tsx
@@ -24,6 +24,7 @@ import { Send, StopCircle, PanelRight } from "lucide-react";
import { Button } from "../ui/button";
import { ScrollArea } from "../ui/scroll-area";
import { cn } from "../lib/cn";
+import { BrandMark } from "../shared/brand-mark";
import { ChatMessage } from "./chat-message";
import { ArtifactPanel, type Artifact } from "./artifact-panel";
import type { ChatUIMessage } from "@repowise-dev/types/chat";
@@ -182,12 +183,9 @@ export function ChatInterface({
<div className="flex flex-col items-center justify-center h-full gap-10 px-4">
<div className="text-center space-y-3">
<div className="flex items-center justify-center mb-6">
- {/* eslint-disable-next-line @next/next/no-img-element */}
- <img
- src={emptyStateLogoSrc}
- alt="repowise"
- width={48}
- height={48}
+ <BrandMark
+ darkSrc={emptyStateLogoSrc}
+ size={48}
className="drop-shadow-[0_0_12px_rgba(245,149,32,0.35)]"
/>
</div>
diff --git a/packages/ui/src/chat/chat-message.tsx b/packages/ui/src/chat/chat-message.tsx
index 8f57aa746..f3fe77664 100644
--- a/packages/ui/src/chat/chat-message.tsx
+++ b/packages/ui/src/chat/chat-message.tsx
@@ -2,6 +2,7 @@
import { User } from "lucide-react";
import { cn } from "../lib/cn";
+import { BrandMark } from "../shared/brand-mark";
import { ToolCallBlock } from "./tool-call-block";
import { ChatMarkdown } from "./chat-markdown";
import { SourceCitations, type SourceReference } from "./source-citations";
@@ -42,12 +43,9 @@ export function ChatMessage({
{isUser ? (
<User className="h-4 w-4 text-white" />
) : (
- /* eslint-disable-next-line @next/next/no-img-element */
- <img
- src={assistantAvatarSrc}
- alt="repowise"
- width={22}
- height={22}
+ <BrandMark
+ darkSrc={assistantAvatarSrc}
+ size={22}
className="drop-shadow-[0_0_4px_rgba(245,149,32,0.25)]"
/>
)}
diff --git a/packages/ui/src/costs/provider-comparison.tsx b/packages/ui/src/costs/provider-comparison.tsx
index 79eafafef..a19e2987c 100644
--- a/packages/ui/src/costs/provider-comparison.tsx
+++ b/packages/ui/src/costs/provider-comparison.tsx
@@ -3,6 +3,7 @@
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
import { formatCost, formatTokens } from "../lib/format";
+// provider brand colors (allowlisted)
const PROVIDER_PATTERNS: Array<{ provider: string; match: RegExp; color: string }> = [
{ provider: "Anthropic", match: /^claude/i, color: "#d97757" },
{ provider: "OpenAI", match: /^(gpt|o\d|chatgpt)/i, color: "#10a37f" },
diff --git a/packages/ui/src/coverage/coverage-donut.tsx b/packages/ui/src/coverage/coverage-donut.tsx
index c773fa6a3..e78b1f263 100644
--- a/packages/ui/src/coverage/coverage-donut.tsx
+++ b/packages/ui/src/coverage/coverage-donut.tsx
@@ -9,11 +9,11 @@ interface CoverageDonutProps {
}
const COLORS: Record<string, string> = {
- Fresh: "#22c55e",
- Stale: "#eab308",
- Outdated: "#ef4444",
+ Fresh: "var(--color-success)",
+ Stale: "var(--color-warning)",
+ Outdated: "var(--color-error)",
};
-const FALLBACK_COLOR = "#22c55e";
+const FALLBACK_COLOR = "var(--color-success)";
export function CoverageDonut({ fresh, stale, outdated }: CoverageDonutProps) {
const total = fresh + stale + outdated;
diff --git a/packages/ui/src/dashboard/attention-panel.tsx b/packages/ui/src/dashboard/attention-panel.tsx
index 76f67f340..8d20d6a15 100644
--- a/packages/ui/src/dashboard/attention-panel.tsx
+++ b/packages/ui/src/dashboard/attention-panel.tsx
@@ -10,6 +10,7 @@ import {
} from "lucide-react";
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
import { Badge } from "../ui/badge";
+import { stripMarkdown } from "../lib/format";
export type AttentionItemType =
| "stale_decision"
@@ -124,7 +125,7 @@ export function AttentionPanel({
<div className="min-w-0 flex-1">
<div className="flex items-center gap-2">
<span className="text-xs font-medium text-[var(--color-text-primary)] truncate group-hover:text-[var(--color-accent-primary)] transition-colors">
- {item.title}
+ {stripMarkdown(item.title)}
</span>
<span className="text-[10px] text-[var(--color-text-tertiary)] shrink-0">
{TYPE_LABELS[item.type]}
diff --git a/packages/ui/src/dashboard/decisions-timeline.tsx b/packages/ui/src/dashboard/decisions-timeline.tsx
index 4985a71c7..838dc12a8 100644
--- a/packages/ui/src/dashboard/decisions-timeline.tsx
+++ b/packages/ui/src/dashboard/decisions-timeline.tsx
@@ -2,7 +2,7 @@ import { Landmark, Lightbulb } from "lucide-react";
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
import { Badge } from "../ui/badge";
import { EmptyState } from "../shared/empty-state";
-import { formatRelativeTime } from "../lib/format";
+import { formatRelativeTime, stripMarkdown } from "../lib/format";
import type { DecisionRecord } from "@repowise-dev/types/decisions";
interface DecisionsTimelineProps {
@@ -76,7 +76,7 @@ export function DecisionsTimeline({ decisions, repoId, linkPrefix }: DecisionsTi
<div className="min-w-0 flex-1">
<div className="flex items-center gap-2">
<span className="text-xs font-medium text-[var(--color-text-primary)] truncate group-hover:text-[var(--color-accent-primary)] transition-colors">
- {d.title}
+ {stripMarkdown(d.title)}
</span>
<Badge
variant="outline"
diff --git a/packages/ui/src/dashboard/hotspots-mini.tsx b/packages/ui/src/dashboard/hotspots-mini.tsx
index 0c45771bf..3e2391efc 100644
--- a/packages/ui/src/dashboard/hotspots-mini.tsx
+++ b/packages/ui/src/dashboard/hotspots-mini.tsx
@@ -58,7 +58,7 @@ export function HotspotsMini({
<CardHeader className="pb-2">
<CardTitle className="text-sm flex items-center justify-between">
<span className="flex items-center gap-2">
- <Flame className="h-4 w-4 text-red-500" />
+ <Flame className="h-4 w-4 text-[var(--color-error)]" />
Top Hotspots
<span className="text-[10px] font-normal text-[var(--color-text-tertiary)] tabular-nums">
{top.length} of {fullCount.toLocaleString()}
diff --git a/packages/ui/src/dashboard/language-donut.tsx b/packages/ui/src/dashboard/language-donut.tsx
index 327f4c867..a150fb477 100644
--- a/packages/ui/src/dashboard/language-donut.tsx
+++ b/packages/ui/src/dashboard/language-donut.tsx
@@ -23,9 +23,11 @@ function getLangColor(lang: string): string {
interface LanguageDonutProps {
/** Map of language → file count */
distribution: Record<string, number>;
+ /** Optional "View in Graph →" target, rendered in the card header. */
+ viewAllHref?: string;
}
-export function LanguageDonut({ distribution }: LanguageDonutProps) {
+export function LanguageDonut({ distribution, viewAllHref }: LanguageDonutProps) {
const entries = Object.entries(distribution)
.map(([name, value]) => ({ name, value }))
.sort((a, b) => b.value - a.value);
@@ -38,11 +40,21 @@ export function LanguageDonut({ distribution }: LanguageDonutProps) {
if (otherValue > 0) shown.push({ name: "other", value: otherValue });
return (
- <Card>
+ <Card className="h-full">
<CardHeader className="pb-2">
- <CardTitle className="text-sm flex items-center gap-2">
- <Code className="h-4 w-4 text-[var(--color-text-secondary)]" />
- Languages
+ <CardTitle className="text-sm flex items-center justify-between">
+ <span className="flex items-center gap-2">
+ <Code className="h-4 w-4 text-[var(--color-text-secondary)]" />
+ Languages
+ </span>
+ {viewAllHref && (
+ <a
+ href={viewAllHref}
+ className="text-[10px] text-[var(--color-accent-primary)] hover:underline font-normal"
+ >
+ View in Graph →
+ </a>
+ )}
</CardTitle>
</CardHeader>
<CardContent className="pt-0">
diff --git a/packages/ui/src/dashboard/module-overview-grid.tsx b/packages/ui/src/dashboard/module-overview-grid.tsx
index a98641273..c4043832f 100644
--- a/packages/ui/src/dashboard/module-overview-grid.tsx
+++ b/packages/ui/src/dashboard/module-overview-grid.tsx
@@ -64,10 +64,10 @@ export function ModuleOverviewGrid({ nodes, edges, repoId, linkPrefix, initialVi
{visibleModules.map((m) => {
const coverageColor =
m.doc_coverage_pct >= 70
- ? "bg-green-500"
+ ? "bg-[var(--color-success)]"
: m.doc_coverage_pct >= 30
- ? "bg-yellow-500"
- : "bg-red-500";
+ ? "bg-[var(--color-warning)]"
+ : "bg-[var(--color-text-tertiary)]/50";
return (
<a
@@ -92,10 +92,10 @@ export function ModuleOverviewGrid({ nodes, edges, repoId, linkPrefix, initialVi
<div className="flex items-center justify-between text-[10px]">
<span className={cn(
m.doc_coverage_pct >= 70
- ? "text-green-500"
+ ? "text-[var(--color-success)]"
: m.doc_coverage_pct >= 30
- ? "text-yellow-500"
- : "text-red-500",
+ ? "text-[var(--color-warning)]"
+ : "text-[var(--color-text-tertiary)]",
)}>
{Math.round(m.doc_coverage_pct)}% docs
</span>
diff --git a/packages/ui/src/dashboard/ownership-treemap.tsx b/packages/ui/src/dashboard/ownership-treemap.tsx
index 05d8bb598..eb6994a42 100644
--- a/packages/ui/src/dashboard/ownership-treemap.tsx
+++ b/packages/ui/src/dashboard/ownership-treemap.tsx
@@ -8,11 +8,11 @@ import { Users } from "lucide-react";
import type { OwnershipEntry } from "@repowise-dev/types/git";
const OWNER_COLORS = [
- "#3b82f6", "#8b5cf6", "#06b6d4", "#f59520", "#22c55e",
- "#ec4899", "#eab308", "#ef4444", "#14b8a6", "#a855f7",
- "#6366f1", "#f97316",
+ "var(--color-accent-fill)", "var(--color-accent-secondary)", "var(--color-success)", "var(--color-warning)", "var(--color-info)",
+ "var(--color-edge-co-change)", "var(--color-plum-400)", "var(--color-accent-fill)", "var(--color-accent-secondary)", "var(--color-success)",
+ "var(--color-warning)", "var(--color-info)",
];
-const OWNER_FALLBACK = "#6b7280";
+const OWNER_FALLBACK = "var(--color-text-tertiary)";
interface OwnershipTreemapProps {
entries: OwnershipEntry[];
@@ -126,7 +126,8 @@ export function OwnershipTreemap({ entries }: OwnershipTreemapProps) {
<text
x={(leaf.x0 ?? 0) + 4}
y={(leaf.y0 ?? 0) + 14}
- className="text-[10px] fill-white pointer-events-none"
+ className="text-[10px] pointer-events-none"
+ fill="var(--color-text-primary)"
opacity={0.9}
>
{d.name.length > w / 6 ? d.name.slice(0, Math.floor(w / 6)) + "…" : d.name}
diff --git a/packages/ui/src/decisions/decision-graph-view.tsx b/packages/ui/src/decisions/decision-graph-view.tsx
index 8e5407b7b..473796e8e 100644
--- a/packages/ui/src/decisions/decision-graph-view.tsx
+++ b/packages/ui/src/decisions/decision-graph-view.tsx
@@ -40,17 +40,17 @@ const DECISION_NODE_SIZE = { width: 200, height: 72 };
const CODE_NODE_SIZE = { width: 180, height: 44 };
const STATUS_DOT: Record<string, string> = {
- active: "#22c55e",
- proposed: "#3b82f6",
- deprecated: "#ef4444",
- superseded: "#64748b",
+ active: "var(--color-success)",
+ proposed: "var(--color-info)",
+ deprecated: "var(--color-error)",
+ superseded: "var(--color-text-tertiary)",
};
const EDGE_STYLE: Record<DecisionEdgeKind, { stroke: string; label: string; dashed?: boolean }> = {
- supersedes: { stroke: "#a78bfa", label: "supersedes" },
- refines: { stroke: "#38bdf8", label: "refines" },
- relates_to: { stroke: "#94a3b8", label: "relates to" },
- conflicts_with: { stroke: "#ef4444", label: "conflicts" },
+ supersedes: { stroke: "var(--color-accent-secondary)", label: "supersedes" },
+ refines: { stroke: "var(--color-edge-co-change)", label: "refines" },
+ relates_to: { stroke: "var(--color-text-tertiary)", label: "relates to" },
+ conflicts_with: { stroke: "var(--color-error)", label: "conflicts" },
};
// ---------------------------------------------------------------------------
@@ -86,9 +86,9 @@ const DecisionNode = memo(function DecisionNode({ data }: NodeProps) {
minHeight: DECISION_NODE_SIZE.height,
padding: "8px 10px",
borderRadius: 8,
- border: `1px solid ${stale ? "#f59e0b" : "var(--color-border-default, #334155)"}`,
- background: "var(--color-bg-surface, #0f172a)",
- color: "var(--color-text-primary, #e2e8f0)",
+ border: `1px solid ${stale ? "var(--color-warning)" : "var(--color-border-default)"}`,
+ background: "var(--color-bg-surface)",
+ color: "var(--color-text-primary)",
fontSize: 12,
cursor: "pointer",
}}
@@ -97,7 +97,7 @@ const DecisionNode = memo(function DecisionNode({ data }: NodeProps) {
<Handle type="target" position={Position.Top} style={{ opacity: 0 }} />
<div style={{ display: "flex", alignItems: "center", gap: 6, marginBottom: 4 }}>
<span style={{ width: 9, height: 9, borderRadius: 999, background: dot, flexShrink: 0 }} />
- <span style={{ fontSize: 10, textTransform: "capitalize", color: "var(--color-text-tertiary, #94a3b8)" }}>
+ <span style={{ fontSize: 10, textTransform: "capitalize", color: "var(--color-text-tertiary)" }}>
{decision.status}
{stale && " · stale"}
</span>
@@ -128,9 +128,9 @@ const CodeNode = memo(function CodeNode({ data }: NodeProps) {
minHeight: CODE_NODE_SIZE.height,
padding: "6px 8px",
borderRadius: 6,
- border: "1px dashed var(--color-border-default, #334155)",
- background: "var(--color-bg-elevated, rgba(148,163,184,0.08))",
- color: "var(--color-text-secondary, #94a3b8)",
+ border: "1px dashed var(--color-border-default)",
+ background: "var(--color-bg-elevated)",
+ color: "var(--color-text-secondary)",
fontSize: 10,
fontFamily: "var(--font-mono, ui-monospace, monospace)",
}}
@@ -168,7 +168,7 @@ const DecisionEdge = memo(function DecisionEdge(props: EdgeProps) {
<BaseEdge
id={id}
path={path}
- style={{ stroke: "#64748b", strokeWidth: 1, strokeDasharray: "4 3" }}
+ style={{ stroke: "var(--color-text-tertiary)", strokeWidth: 1, strokeDasharray: "4 3" }}
/>
);
}
@@ -193,14 +193,14 @@ const DecisionEdge = memo(function DecisionEdge(props: EdgeProps) {
style={{
position: "absolute",
transform: `translate(-50%, -50%) translate(${labelX}px, ${labelY}px)`,
- background: isConflict ? "rgba(239,68,68,0.95)" : "rgba(15, 23, 42, 0.92)",
- color: isConflict ? "#fff" : "#e2e8f0",
+ background: isConflict ? "var(--color-error)" : "var(--color-bg-overlay)",
+ color: isConflict ? "white" : "var(--color-text-primary)",
padding: "1px 6px",
borderRadius: 4,
fontSize: 9,
fontWeight: 600,
pointerEvents: "none",
- border: `1px solid ${isConflict ? "rgba(239,68,68,0.6)" : "rgba(148, 163, 184, 0.25)"}`,
+ border: `1px solid ${isConflict ? "var(--color-error)" : "var(--color-border-default)"}`,
whiteSpace: "nowrap",
}}
className="nodrag nopan"
@@ -364,8 +364,8 @@ function DecisionGraphViewInner({ graph, isLoading, onSelectDecision }: Decision
minHeight: 420,
display: "flex",
flexDirection: "column",
- background: "var(--color-bg-canvas, #0b1220)",
- border: "1px solid var(--color-border-default, #334155)",
+ background: "var(--color-bg-canvas)",
+ border: "1px solid var(--color-border-default)",
borderRadius: 8,
overflow: "hidden",
}}
@@ -376,15 +376,15 @@ function DecisionGraphViewInner({ graph, isLoading, onSelectDecision }: Decision
alignItems: "center",
gap: 12,
padding: "6px 10px",
- borderBottom: "1px solid var(--color-border-default, #334155)",
+ borderBottom: "1px solid var(--color-border-default)",
fontSize: 11,
- color: "var(--color-text-secondary, #94a3b8)",
+ color: "var(--color-text-secondary)",
}}
>
- <Legend color="#a78bfa" label="supersedes" />
- <Legend color="#38bdf8" label="refines" />
- <Legend color="#94a3b8" label="relates to" />
- <Legend color="#ef4444" label="conflicts" />
+ <Legend color={EDGE_STYLE.supersedes.stroke} label="supersedes" />
+ <Legend color={EDGE_STYLE.refines.stroke} label="refines" />
+ <Legend color={EDGE_STYLE.relates_to.stroke} label="relates to" />
+ <Legend color={EDGE_STYLE.conflicts_with.stroke} label="conflicts" />
<label style={{ marginLeft: "auto", display: "inline-flex", alignItems: "center", gap: 6, cursor: "pointer" }}>
<input type="checkbox" checked={showCode} onChange={(e) => setShowCode(e.target.checked)} />
Code links
@@ -408,7 +408,10 @@ function DecisionGraphViewInner({ graph, isLoading, onSelectDecision }: Decision
nodesDraggable={false}
nodesConnectable={false}
>
- <Background gap={28} size={1} color="rgba(148,163,184,0.18)" />
+ {/* Theme-neutral dot grid — React Flow renders this as an SVG fill
+ attribute, which can't resolve var(); a low-alpha gray reads on
+ both the warm-paper and charcoal canvases. */}
+ <Background gap={28} size={1} color="rgba(140,127,136,0.18)" />
<Controls showInteractive={false} />
</ReactFlow>
</div>
@@ -435,7 +438,7 @@ function Centered({ text }: { text: string }) {
display: "flex",
alignItems: "center",
justifyContent: "center",
- color: "var(--color-text-tertiary, #64748b)",
+ color: "var(--color-text-tertiary)",
fontSize: 13,
pointerEvents: "none",
zIndex: 3,
diff --git a/packages/ui/src/decisions/decisions-table.tsx b/packages/ui/src/decisions/decisions-table.tsx
index ca1383a52..9f6811e09 100644
--- a/packages/ui/src/decisions/decisions-table.tsx
+++ b/packages/ui/src/decisions/decisions-table.tsx
@@ -3,6 +3,7 @@
import * as React from "react";
import { Badge } from "../ui/badge";
import { VerificationBadge } from "./verification-badge";
+import { stripMarkdown } from "../lib/format";
import type {
DecisionRecord,
DecisionStatus,
@@ -116,17 +117,15 @@ export function DecisionsTable({
{decisions?.map((d) => (
<tr
key={d.id}
- className={`border-b border-[var(--color-border-default)] transition-colors hover:bg-[var(--color-bg-elevated)] ${
- d.status === "proposed" ? "border-l-2 border-l-amber-400" : ""
- }`}
+ className="border-b border-[var(--color-border-default)] transition-colors hover:bg-[var(--color-bg-elevated)]"
>
<td className="px-4 py-2.5 min-w-[240px] max-w-[520px]">
<Link
href={`${prefix}/decisions/${d.id}`}
- className="font-medium text-[var(--color-accent-primary)] hover:underline block truncate"
- title={d.title}
+ className="font-medium text-[var(--color-text-primary)] hover:text-[var(--color-accent-primary)] hover:underline block truncate"
+ title={stripMarkdown(d.title)}
>
- {d.title}
+ {stripMarkdown(d.title)}
</Link>
</td>
<td className="px-4 py-2.5">
diff --git a/packages/ui/src/docs/docs-tree.tsx b/packages/ui/src/docs/docs-tree.tsx
index 608490206..2a84ebed3 100644
--- a/packages/ui/src/docs/docs-tree.tsx
+++ b/packages/ui/src/docs/docs-tree.tsx
@@ -183,9 +183,12 @@ function buildTree(pages: DocPage[]): TreeNode[] {
if (!targetPath) continue;
if (page.page_type === "module_page") {
- // Module pages become directories with their page attached
+ // Module pages become directories with their page attached. Community
+ // modules have synthetic target_paths ("community-207") — show the
+ // derived module name instead of the raw graph id.
const dirNode = ensureDir(targetPath);
dirNode.page = page;
+ if (RAW_GRAPH_ID.test(dirNode.name)) dirNode.name = displayLabel(page);
} else {
// File pages go into their parent directory
const parts = targetPath.split("/");
@@ -264,11 +267,6 @@ const SECTION_KEYS = {
export const DOMAIN_SECTION_KEYS = Object.values(SECTION_KEYS);
-function parentDirOf(path: string): string {
- const i = path.lastIndexOf("/");
- return i === -1 ? "" : path.slice(0, i);
-}
-
// Layers ordered top→bottom by dependency direction, persisted on the repo
// overview page at generation time. Used to order the Architecture section and
// the Modules section so the tree reads as a dependency hierarchy rather than
@@ -301,6 +299,64 @@ function dominantLayer(files: DocPage[]): string {
return best;
}
+// ---------------------------------------------------------------------------
+// Display labels — replace raw graph ids with derived names
+// ---------------------------------------------------------------------------
+//
+// Generation titles carry raw graph ids ("Module: community-207",
+// "Circular Dependency: scc-103"). The human-readable names live on the page
+// itself — module titles already carry the derived path, and SCC members are
+// listed in the cycle description — so the tree derives display labels
+// client-side instead of leaking ids. metadata.derived_label, when present,
+// always wins (future-proofing for generation-side labels).
+
+const RAW_GRAPH_ID = /^(?:community|scc)[-_\s]?\d+$/i;
+
+function sccDisplayLabel(page: DocPage): string {
+ // Cycle members appear back-ticked in the generated description; prefer
+ // the "Files Involved" section when present so prose mentions don't leak in.
+ const involved = page.content.split(/^##\s+Files Involved\s*$/im)[1];
+ const section = involved ? involved.split(/^##\s/m)[0] ?? involved : page.content;
+ const paths = [...section.matchAll(/`([^`\s]+\/[^`\s]+)`/g)].map((m) => m[1]!);
+ if (paths.length === 0) return page.title;
+
+ // Common directory of the members, shown as its last two segments —
+ // "Cycle: generation/page_generator" reads better than "scc-103".
+ let common = (paths[0] ?? "").split("/").slice(0, -1);
+ for (const p of paths.slice(1)) {
+ const parts = p.split("/").slice(0, -1);
+ let i = 0;
+ while (i < common.length && i < parts.length && common[i] === parts[i]) i++;
+ common = common.slice(0, i);
+ }
+ const dir = common.slice(-2).join("/");
+ return dir ? `Cycle: ${dir}` : page.title;
+}
+
+function displayLabel(page: DocPage): string {
+ const metaLabel = page.metadata?.["derived_label"];
+ if (typeof metaLabel === "string" && metaLabel) return metaLabel;
+
+ if (page.page_type === "module_page") {
+ const name = page.title.replace(/^Module:\s*/i, "");
+ if (name && !RAW_GRAPH_ID.test(name)) return name;
+ const fallback = page.target_path.split("/").pop() ?? page.target_path;
+ return RAW_GRAPH_ID.test(fallback) ? page.title : fallback;
+ }
+ if (page.page_type === "scc_page") return sccDisplayLabel(page);
+ if (page.page_type === "layer_page") return page.title.replace(/^Layer:\s*/i, "");
+ return page.title;
+}
+
+// Collapsible sub-groups inside the Architecture section. Namespaced with
+// "@group:" so they never collide with target_paths or "@section:" keys —
+// and, unlike sections, they are NOT auto-expanded (40 layers / 38 cycles
+// would otherwise drown the spine).
+const GROUP_KEYS = {
+ layers: "@group:layers",
+ sccs: "@group:sccs",
+} as const;
+
function buildDomainTree(pages: DocPage[]): TreeNode[] {
const sections: TreeNode[] = [];
const rankOf = layerRankLookup(pages);
@@ -334,18 +390,54 @@ function buildDomainTree(pages: DocPage[]): TreeNode[] {
});
}
- // ---- Architecture (layers / knowledge graph / strongly-connected) ----
+ // ---- Architecture (diagrams up top; layers and cycles in collapsible
+ // sub-groups so 40 layers / 38 SCCs don't drown the spine) ----
const archTypes = new Set(["layer_page", "architecture_diagram", "scc_page"]);
- const archChildren: TreeNode[] = pages
- .filter((p) => archTypes.has(p.page_type) && !tourIds.has(p.id))
- // Order layer pages top→bottom by dependency direction; other arch pages
- // (knowledge graph, SCCs) fall after, alphabetically.
+ const archPages = pages.filter((p) => archTypes.has(p.page_type) && !tourIds.has(p.id));
+
+ const toLeaf = (p: DocPage): TreeNode => ({
+ name: displayLabel(p),
+ path: p.id,
+ isDir: false,
+ page: p,
+ children: [],
+ });
+
+ const diagramLeaves = archPages
+ .filter((p) => p.page_type === "architecture_diagram")
+ .sort((a, b) => a.title.localeCompare(b.title))
+ .map(toLeaf);
+ // Order layer pages top→bottom by dependency direction.
+ const layerLeaves = archPages
+ .filter((p) => p.page_type === "layer_page")
.sort((a, b) => {
- const ra = a.page_type === "layer_page" ? rankOf(a.title.replace(/^Layer:\s*/, "")) : Number.MAX_SAFE_INTEGER;
- const rb = b.page_type === "layer_page" ? rankOf(b.title.replace(/^Layer:\s*/, "")) : Number.MAX_SAFE_INTEGER;
+ const ra = rankOf(a.title.replace(/^Layer:\s*/, ""));
+ const rb = rankOf(b.title.replace(/^Layer:\s*/, ""));
return ra - rb || a.title.localeCompare(b.title);
})
- .map((p) => ({ name: p.title, path: p.id, isDir: false, page: p, children: [] }));
+ .map(toLeaf);
+ const sccLeaves = archPages
+ .filter((p) => p.page_type === "scc_page")
+ .map(toLeaf)
+ .sort((a, b) => a.name.localeCompare(b.name));
+
+ const archChildren: TreeNode[] = [...diagramLeaves];
+ if (layerLeaves.length > 0) {
+ archChildren.push({
+ name: `Layers (${layerLeaves.length})`,
+ path: GROUP_KEYS.layers,
+ isDir: true,
+ children: layerLeaves,
+ });
+ }
+ if (sccLeaves.length > 0) {
+ archChildren.push({
+ name: `Circular dependencies (${sccLeaves.length})`,
+ path: GROUP_KEYS.sccs,
+ isDir: true,
+ children: sccLeaves,
+ });
+ }
if (archChildren.length > 0) {
sections.push({
name: "Architecture",
@@ -362,23 +454,34 @@ function buildDomainTree(pages: DocPage[]): TreeNode[] {
const modulePaths = new Set(modulePages.map((p) => p.target_path));
const claimedFileIds = new Set<string>();
+ // Claim each file page by its NEAREST module ancestor, not just the direct
+ // parent dir — curated modules are directory subtrees whose files can sit
+ // several levels deep (e.g. module "core/ingestion" owning
+ // "core/ingestion/resolvers/dotnet/index.py").
+ const sortedModulePaths = [...modulePaths].sort((a, b) => b.length - a.length);
+ const fileToModule = new Map<string, string>();
+ for (const p of pages) {
+ if (p.page_type !== "file_page" || !p.target_path) continue;
+ const owner = sortedModulePaths.find((mp) => p.target_path.startsWith(mp + "/"));
+ if (owner) fileToModule.set(p.id, owner);
+ }
+
const moduleChildren: TreeNode[] = modulePages.map((mod) => {
const files = pages
- .filter(
- (p) =>
- p.page_type === "file_page" &&
- p.target_path &&
- parentDirOf(p.target_path) === mod.target_path,
- )
+ .filter((p) => fileToModule.get(p.id) === mod.target_path)
.sort((a, b) => a.target_path.localeCompare(b.target_path));
for (const f of files) claimedFileIds.add(f.id);
return {
- name: mod.title || mod.target_path.split("/").pop() || mod.target_path,
+ name: displayLabel(mod) || mod.target_path.split("/").pop() || mod.target_path,
path: mod.id,
isDir: true,
page: mod,
children: files.map((f) => ({
- name: f.target_path.split("/").pop() || f.target_path,
+ // Path relative to the module dir, so deep files stay unambiguous
+ // ("resolvers/dotnet/index.py", not three siblings named "index.py").
+ name: f.target_path.startsWith(mod.target_path + "/")
+ ? f.target_path.slice(mod.target_path.length + 1)
+ : f.target_path.split("/").pop() || f.target_path,
path: f.id,
isDir: false,
page: f,
@@ -473,6 +576,7 @@ function matchesFilters(
search: string,
typeFilter: TypeFilter,
freshnessFilter: FreshnessFilter,
+ displayName?: string,
): boolean {
if (!page) return true; // directories always pass (will be pruned if empty)
if (typeFilter !== "all" && page.page_type !== typeFilter) return false;
@@ -481,7 +585,10 @@ function matchesFilters(
const q = search.toLowerCase();
return (
page.title.toLowerCase().includes(q) ||
- page.target_path.toLowerCase().includes(q)
+ page.target_path.toLowerCase().includes(q) ||
+ // Derived tree labels (e.g. "Cycle: generation/page_generator") are
+ // what the user sees — make them searchable too.
+ (displayName ?? "").toLowerCase().includes(q)
);
}
return true;
@@ -498,13 +605,13 @@ function filterTree(
if (node.isDir) {
const filteredChildren = filterTree(node.children, search, typeFilter, freshnessFilter);
const dirPageMatches = node.page
- ? matchesFilters(node.page, search, typeFilter, freshnessFilter)
+ ? matchesFilters(node.page, search, typeFilter, freshnessFilter, node.name)
: false;
if (filteredChildren.length > 0 || dirPageMatches) {
result.push({ ...node, children: filteredChildren });
}
} else {
- if (matchesFilters(node.page, search, typeFilter, freshnessFilter)) {
+ if (matchesFilters(node.page, search, typeFilter, freshnessFilter, node.name)) {
result.push(node);
}
}
@@ -523,6 +630,7 @@ function TreeItem({
expandedDirs,
toggleDir,
onSelectPage,
+ forceExpand = false,
}: {
node: TreeNode;
depth: number;
@@ -530,8 +638,10 @@ function TreeItem({
expandedDirs: Set<string>;
toggleDir: (path: string) => void;
onSelectPage: (page: DocPage) => void;
+ /** Open every dir while a search is active so matches are never hidden. */
+ forceExpand?: boolean;
}) {
- const isExpanded = expandedDirs.has(node.path);
+ const isExpanded = forceExpand || expandedDirs.has(node.path);
const isSelected = node.page && node.page.id === selectedPageId;
const hasChildren = node.children.length > 0;
@@ -543,6 +653,7 @@ function TreeItem({
toggleDir(node.path);
if (node.page) onSelectPage(node.page);
}}
+ {...(node.page && node.page.title !== node.name ? { title: node.page.title } : {})}
className={cn(
"flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-xs transition-colors hover:bg-[var(--color-bg-elevated)]",
isSelected
@@ -609,6 +720,7 @@ function TreeItem({
expandedDirs={expandedDirs}
toggleDir={toggleDir}
onSelectPage={onSelectPage}
+ forceExpand={forceExpand}
/>
))}
</div>
@@ -621,6 +733,7 @@ function TreeItem({
return (
<button
onClick={() => node.page && onSelectPage(node.page)}
+ {...(node.page && node.page.title !== node.name ? { title: node.page.title } : {})}
className={cn(
"flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-xs transition-colors hover:bg-[var(--color-bg-elevated)]",
isSelected
@@ -645,12 +758,11 @@ function TreeItem({
}
function FreshnessDot({ status }: { status: FreshnessStatus }) {
+ // Fresh is the expected state — only flag pages that need attention, so a
+ // healthy tree stays visually quiet instead of showing hundreds of dots.
+ if (status === "fresh") return null;
const color =
- status === "fresh"
- ? "bg-green-500"
- : status === "stale"
- ? "bg-yellow-500"
- : "bg-red-500";
+ status === "stale" ? "bg-[var(--color-warning)]" : "bg-[var(--color-error)]";
return <span className={cn("ml-auto h-1.5 w-1.5 rounded-full shrink-0", color)} />;
}
@@ -678,7 +790,9 @@ export function DocsTree({ pages, selectedPageId, onSelectPage, className }: Doc
}
return dirs;
});
- const [showFilters, setShowFilters] = useState(true);
+ // Filters are a power-user affordance — start hidden so the panel opens
+ // calm; the funnel button shows a count when any filter is active.
+ const [showFilters, setShowFilters] = useState(false);
const tree = useMemo(
() => (viewMode === "domain" ? buildDomainTree(pages) : buildTree(pages)),
@@ -701,6 +815,9 @@ export function DocsTree({ pages, selectedPageId, onSelectPage, className }: Doc
// Stats
const totalPages = pages.length;
const freshCount = pages.filter((p) => p.freshness_status === "fresh").length;
+ const needAttention = totalPages - freshCount;
+ const activeFilterCount =
+ (typeFilter !== "all" ? 1 : 0) + (freshnessFilter !== "all" ? 1 : 0);
return (
<div className={cn("flex flex-col h-full", className)}>
@@ -740,14 +857,21 @@ export function DocsTree({ pages, selectedPageId, onSelectPage, className }: Doc
</div>
<button
onClick={() => setShowFilters((s) => !s)}
+ aria-label="Toggle filters"
+ aria-expanded={showFilters}
className={cn(
- "rounded-md p-1.5 transition-colors",
- showFilters
+ "relative rounded-md p-1.5 transition-colors",
+ showFilters || activeFilterCount > 0
? "bg-[var(--color-accent-muted)] text-[var(--color-accent-primary)]"
: "text-[var(--color-text-tertiary)] hover:bg-[var(--color-bg-elevated)] hover:text-[var(--color-text-secondary)]",
)}
>
<Filter className="h-3.5 w-3.5" />
+ {activeFilterCount > 0 && (
+ <span className="absolute -top-1 -right-1 flex h-3.5 w-3.5 items-center justify-center rounded-full bg-[var(--color-accent-fill)] text-[9px] font-semibold text-[var(--color-text-on-accent)]">
+ {activeFilterCount}
+ </span>
+ )}
</button>
</div>
@@ -792,10 +916,14 @@ export function DocsTree({ pages, selectedPageId, onSelectPage, className }: Doc
</div>
)}
- {/* Stats line */}
- <div className="flex items-center justify-between text-[10px] text-[var(--color-text-tertiary)]">
- <span>{totalPages} pages</span>
- <span>{freshCount} fresh · {totalPages - freshCount} need attention</span>
+ {/* Stats line — quiet when everything is fresh */}
+ <div className="text-[10px] text-[var(--color-text-tertiary)]">
+ {totalPages} pages
+ {needAttention === 0 ? (
+ <span> · all fresh</span>
+ ) : (
+ <span className="text-[var(--color-warning)]"> · {needAttention} need attention</span>
+ )}
</div>
</div>
@@ -816,6 +944,7 @@ export function DocsTree({ pages, selectedPageId, onSelectPage, className }: Doc
expandedDirs={expandedDirs}
toggleDir={toggleDir}
onSelectPage={onSelectPage}
+ forceExpand={search.trim().length > 0}
/>
))}
</div>
diff --git a/packages/ui/src/docs/reader-persona.ts b/packages/ui/src/docs/reader-persona.ts
index 34e34e8e0..6b4483f90 100644
--- a/packages/ui/src/docs/reader-persona.ts
+++ b/packages/ui/src/docs/reader-persona.ts
@@ -70,6 +70,20 @@ function headingHidden(headingText: string, hideList: string[]): boolean {
* always retained. Returns the original content unchanged for the `deep`
* persona (or when there is nothing to hide).
*/
+/**
+ * Whether persona filtering changes anything for this content — i.e. at least
+ * one H2 matches a hide-list. Curated pages (onboarding, overviews, diagrams)
+ * have none, so the reader-level control would be a no-op; callers use this
+ * to hide it. `deep` never filters, so only the two filtering personas count.
+ */
+export function personaFilteringApplies(content: string): boolean {
+ const base = content.trim();
+ return (
+ filterMarkdownByPersona(content, "overview") !== base ||
+ filterMarkdownByPersona(content, "contributor") !== base
+ );
+}
+
export function filterMarkdownByPersona(content: string, persona: ReaderPersona): string {
const hideList = HIDE_BY_PERSONA[persona];
if (!hideList || hideList.length === 0) return content;
diff --git a/packages/ui/src/git/bus-factor-panel.tsx b/packages/ui/src/git/bus-factor-panel.tsx
index 309bf5b9e..b7b75fe70 100644
--- a/packages/ui/src/git/bus-factor-panel.tsx
+++ b/packages/ui/src/git/bus-factor-panel.tsx
@@ -71,9 +71,9 @@ export function BusFactorPanel({ hotspots, riskPreviewCount = 5 }: BusFactorPane
return [`${n} files`, label];
}}
/>
- <Bar dataKey="high" stackId="a" fill="#22c55e" radius={[4, 0, 0, 4]} />
- <Bar dataKey="medium" stackId="a" fill="#eab308" />
- <Bar dataKey="low" stackId="a" fill="#ef4444" radius={[0, 4, 4, 0]} />
+ <Bar dataKey="high" stackId="a" fill="var(--color-success)" radius={[4, 0, 0, 4]} />
+ <Bar dataKey="medium" stackId="a" fill="var(--color-warning)" />
+ <Bar dataKey="low" stackId="a" fill="var(--color-error)" radius={[0, 4, 4, 0]} />
</BarChart>
</ResponsiveContainer>
<div className="flex items-center gap-4 mt-2 text-[10px] text-[var(--color-text-tertiary)]">
diff --git a/packages/ui/src/git/churn-histogram.tsx b/packages/ui/src/git/churn-histogram.tsx
index e2a9be7e1..084dca16f 100644
--- a/packages/ui/src/git/churn-histogram.tsx
+++ b/packages/ui/src/git/churn-histogram.tsx
@@ -18,11 +18,11 @@ interface ChurnHistogramProps {
}
const BUCKET_COLORS = [
- "#22c55e", "#22c55e", "#22c55e", "#22c55e", "#22c55e",
- "#eab308", "#eab308", "#f59520",
- "#ef4444", "#ef4444",
+ "var(--color-success)", "var(--color-success)", "var(--color-success)", "var(--color-success)", "var(--color-success)",
+ "var(--color-warning)", "var(--color-warning)", "var(--color-accent-fill)",
+ "var(--color-error)", "var(--color-error)",
];
-const BUCKET_FALLBACK = "#8b5cf6";
+const BUCKET_FALLBACK = "var(--color-accent-secondary)";
export function ChurnHistogram({ hotspots }: ChurnHistogramProps) {
if (!hotspots || hotspots.length === 0) {
diff --git a/packages/ui/src/git/commit-category-donut.tsx b/packages/ui/src/git/commit-category-donut.tsx
index 53c3cfda4..0f5219a1d 100644
--- a/packages/ui/src/git/commit-category-donut.tsx
+++ b/packages/ui/src/git/commit-category-donut.tsx
@@ -9,10 +9,10 @@ interface CommitCategoryDonutProps {
}
const CATEGORY_COLORS: Record<string, string> = {
- feature: "#5b9cf6",
- fix: "#ef4444",
- refactor: "#a855f7",
- dependency: "#f59520",
+ feature: "var(--color-info)",
+ fix: "var(--color-error)",
+ refactor: "var(--color-accent-secondary)",
+ dependency: "var(--color-accent-fill)",
};
const CATEGORY_ORDER = ["feature", "fix", "refactor", "dependency"];
@@ -55,7 +55,7 @@ export function CommitCategoryDonut({ categories }: CommitCategoryDonutProps) {
{data.map((entry) => (
<Cell
key={entry.key}
- fill={CATEGORY_COLORS[entry.key] || "#8b5cf6"}
+ fill={CATEGORY_COLORS[entry.key] || "var(--color-accent-secondary)"}
strokeWidth={0}
/>
))}
diff --git a/packages/ui/src/git/commit-category-sparkline.tsx b/packages/ui/src/git/commit-category-sparkline.tsx
index f7b6efccf..0d399b4c8 100644
--- a/packages/ui/src/git/commit-category-sparkline.tsx
+++ b/packages/ui/src/git/commit-category-sparkline.tsx
@@ -9,10 +9,10 @@ interface CommitCategorySparklineProps {
}
const CATEGORY_CONFIG: Record<string, { color: string; label: string }> = {
- feature: { color: "#5b9cf6", label: "Feature" },
- fix: { color: "#ef4444", label: "Fix" },
- refactor: { color: "#a855f7", label: "Refactor" },
- dependency: { color: "#f59520", label: "Dependency" },
+ feature: { color: "var(--color-info)", label: "Feature" },
+ fix: { color: "var(--color-error)", label: "Fix" },
+ refactor: { color: "var(--color-accent-secondary)", label: "Refactor" },
+ dependency: { color: "var(--color-accent-fill)", label: "Dependency" },
};
const CATEGORY_ORDER = ["feature", "fix", "refactor", "dependency"];
diff --git a/packages/ui/src/git/contributor-network.tsx b/packages/ui/src/git/contributor-network.tsx
index af1954b4c..efb9dae70 100644
--- a/packages/ui/src/git/contributor-network.tsx
+++ b/packages/ui/src/git/contributor-network.tsx
@@ -18,11 +18,15 @@ interface ContributorLink extends d3.SimulationLinkDatum<ContributorNode> {
sharedFiles: number;
}
+// Categorical contributor palette — token-driven so it themes (SVG fill
+// accepts var()). 12 distinct warm-palette hues; mirrors the viz tokens.
const PALETTE = [
- "#6366f1", "#ec4899", "#10b981", "#f59e0b", "#3b82f6", "#a855f7",
- "#14b8a6", "#f97316", "#84cc16", "#06b6d4", "#e11d48", "#8b5cf6",
+ "var(--color-accent-fill)", "var(--color-accent-secondary)", "var(--color-success)",
+ "var(--color-warning)", "var(--color-info)", "var(--color-edge-co-change)",
+ "var(--color-edge-implements)", "var(--color-plum-400)", "var(--color-sunset-300)",
+ "var(--color-edge-inherits)", "var(--color-plum-300)", "var(--color-amber)",
];
-const PALETTE_FALLBACK = "#6366f1";
+const PALETTE_FALLBACK = "var(--color-accent-secondary)";
export function ContributorNetwork({ hotspots }: ContributorNetworkProps) {
const svgRef = useRef<SVGSVGElement>(null);
diff --git a/packages/ui/src/git/ownership-treemap.tsx b/packages/ui/src/git/ownership-treemap.tsx
index 3a6baa7d0..84127bc42 100644
--- a/packages/ui/src/git/ownership-treemap.tsx
+++ b/packages/ui/src/git/ownership-treemap.tsx
@@ -22,18 +22,18 @@ function busFactorStroke(bf: number | undefined, isSilo: boolean): {
width: number;
dash: string;
} {
- if (isSilo) return { stroke: "#f59520", width: 2, dash: "4 2" };
+ if (isSilo) return { stroke: "var(--color-accent-primary)", width: 2, dash: "4 2" };
if (bf === undefined) return { stroke: "none", width: 0, dash: "none" };
- if (bf <= 1) return { stroke: "#ef4444", width: 2, dash: "none" };
- if (bf === 2) return { stroke: "#f59520", width: 1.5, dash: "none" };
- return { stroke: "#22c55e", width: 1, dash: "none" };
+ if (bf <= 1) return { stroke: "var(--color-risk-high)", width: 2, dash: "none" };
+ if (bf === 2) return { stroke: "var(--color-risk-medium)", width: 1.5, dash: "none" };
+ return { stroke: "var(--color-risk-low)", width: 1, dash: "none" };
}
const OWNER_COLORS = [
- "#5b9cf6", "#a855f7", "#22c55e", "#eab308",
- "#ec4899", "#6366f1", "#14b8a6", "#f59520",
+ "var(--color-accent-fill)", "var(--color-accent-secondary)", "var(--color-success)", "var(--color-warning)",
+ "var(--color-info)", "var(--color-edge-co-change)", "var(--color-plum-400)", "var(--color-accent-primary)",
];
-const OWNER_FALLBACK = "#4b5563";
+const OWNER_FALLBACK = "var(--color-text-tertiary)";
function ownerColor(name: string | null): string {
if (!name) return OWNER_FALLBACK;
@@ -171,7 +171,7 @@ export function OwnershipTreemap({ entries, busFactorByModule, onSelect }: Owner
<text
x={x0 + 6}
y={y0 + 14}
- fill="#fff"
+ fill="var(--color-text-primary)"
fontSize={11}
fontWeight={600}
fontFamily="var(--font-geist-mono)"
@@ -182,7 +182,7 @@ export function OwnershipTreemap({ entries, busFactorByModule, onSelect }: Owner
<text
x={x0 + 6}
y={y0 + 27}
- fill="rgba(255,255,255,0.7)"
+ fill="color-mix(in srgb, var(--color-text-primary) 70%, transparent)"
fontSize={10}
pointerEvents="none"
>
@@ -231,21 +231,21 @@ export function OwnershipTreemap({ entries, busFactorByModule, onSelect }: Owner
{busFactorByModule && (
<div className="mt-2 flex flex-wrap items-center gap-3 text-[10px] text-[var(--color-text-tertiary)]">
<span className="flex items-center gap-1">
- <span className="inline-block h-2 w-3 rounded-sm border-2" style={{ borderColor: "#ef4444" }} />
+ <span className="inline-block h-2 w-3 rounded-sm border-2" style={{ borderColor: "var(--color-risk-high)" }} />
bus ≤ 1
</span>
<span className="flex items-center gap-1">
- <span className="inline-block h-2 w-3 rounded-sm border-2" style={{ borderColor: "#f59520" }} />
+ <span className="inline-block h-2 w-3 rounded-sm border-2" style={{ borderColor: "var(--color-risk-medium)" }} />
bus = 2
</span>
<span className="flex items-center gap-1">
- <span className="inline-block h-2 w-3 rounded-sm border-2" style={{ borderColor: "#22c55e" }} />
+ <span className="inline-block h-2 w-3 rounded-sm border-2" style={{ borderColor: "var(--color-risk-low)" }} />
bus ≥ 3
</span>
<span className="flex items-center gap-1">
<span
className="inline-block h-2 w-3 rounded-sm border-2"
- style={{ borderColor: "#f59520", borderStyle: "dashed" }}
+ style={{ borderColor: "var(--color-accent-primary)", borderStyle: "dashed" }}
/>
silo (&gt;80% owner)
</span>
diff --git a/packages/ui/src/git/risk-distribution-chart.tsx b/packages/ui/src/git/risk-distribution-chart.tsx
index eabcdd5ee..9627e33fe 100644
--- a/packages/ui/src/git/risk-distribution-chart.tsx
+++ b/packages/ui/src/git/risk-distribution-chart.tsx
@@ -31,10 +31,10 @@ function computeRiskScore(h: Hotspot): number {
}
function riskColor(score: number): string {
- if (score >= 70) return "#ef4444";
- if (score >= 45) return "#f59520";
- if (score >= 25) return "#eab308";
- return "#22c55e";
+ if (score >= 70) return "var(--color-error)";
+ if (score >= 45) return "var(--color-accent-fill)";
+ if (score >= 25) return "var(--color-warning)";
+ return "var(--color-success)";
}
export function RiskDistributionChart({ hotspots, maxBars = 30 }: RiskDistributionChartProps) {
diff --git a/packages/ui/src/graph-primitives/edge-renderer.tsx b/packages/ui/src/graph-primitives/edge-renderer.tsx
index 9c3cec0aa..7adc0e148 100644
--- a/packages/ui/src/graph-primitives/edge-renderer.tsx
+++ b/packages/ui/src/graph-primitives/edge-renderer.tsx
@@ -4,9 +4,10 @@ import { memo } from "react";
import {
BaseEdge,
EdgeLabelRenderer,
- getBezierPath,
+ getSmoothStepPath,
type EdgeProps,
} from "@xyflow/react";
+import { ArrowRight, Check, Folder, Link2, Zap, type LucideIcon } from "lucide-react";
import { THEME } from "../c4/theme/theme-variables";
export interface ArchEdgeData {
@@ -18,24 +19,39 @@ export interface ArchEdgeData {
}
export const EDGE_CATEGORY_COLORS: Record<string, string> = {
- structural: "#60a5fa",
- behavioral: "#4ade80",
- "data-flow": "#c084fc",
- dependencies: "#fb923c",
- semantic: "#94a3b8",
+ structural: "var(--color-accent-secondary)",
+ behavioral: "var(--color-success)",
+ "data-flow": "var(--color-edge-co-change)",
+ dependencies: "var(--color-accent-fill)",
+ semantic: "var(--color-text-tertiary)",
};
-const EDGE_DEFAULT_COLOR = "#8b9dc3";
+const EDGE_DEFAULT_COLOR = "var(--color-text-tertiary)";
+/** Semantic tint — carried by the chip glyph, not the stroke (kg-ux §2.3). */
function getEdgeColor(edgeType: string | undefined): string {
if (!edgeType) return EDGE_DEFAULT_COLOR;
return THEME.edge[edgeType] ?? EDGE_CATEGORY_COLORS[edgeType] ?? EDGE_DEFAULT_COLOR;
}
+const EDGE_TYPE_ICONS: Record<string, LucideIcon> = {
+ imports: ArrowRight,
+ calls: Zap,
+ contains: Folder,
+ tested_by: Check,
+ depends_on: Link2,
+};
+
export function computeEdgeStrokeWidth(count: number): number {
- return Math.min(1.5 + Math.log2(count + 1), 5);
+ return Math.min(1 + Math.log2(count + 1) * 0.5, 2.5);
}
+/**
+ * Blueprint edge (kg-ux plan §2.3): orthogonal smooth-step path, thin dashed
+ * ink stroke (--color-diagram-edge), with a small paper CHIP riding the edge
+ * — relation glyph (semantic tint) + label in mono. Selected = solid orange
+ * with marching ants; everything else is calm and static.
+ */
function ArchEdgeRendererImpl(props: EdgeProps) {
const {
id,
@@ -56,22 +72,24 @@ function ArchEdgeRendererImpl(props: EdgeProps) {
const isPortal = edgeData?.isPortalEdge ?? false;
const dimmed = edgeData?.dimmed ?? false;
- const [edgePath, labelX, labelY] = getBezierPath({
+ const [edgePath, labelX, labelY] = getSmoothStepPath({
sourceX,
sourceY,
sourcePosition,
targetX,
targetY,
targetPosition,
+ borderRadius: 8,
});
- const baseColor = getEdgeColor(edgeType);
- const stroke = selected ? "#fbbf24" : baseColor;
- const strokeWidth = dimmed ? 1 : computeEdgeStrokeWidth(count);
- const strokeOpacity = selected ? 1.0 : dimmed ? 0.06 : 0.75;
+ const stroke = selected ? "var(--color-viz-selection)" : "var(--color-diagram-edge)";
+ const strokeWidth = dimmed ? 1 : selected ? 2 : computeEdgeStrokeWidth(count);
+ const strokeOpacity = selected ? 1.0 : dimmed ? 0.06 : 0.9;
const typeLabel = (edgeType ?? "").replace(/_/g, " ");
- const label = dimmed ? "" : count > 3 ? `${typeLabel} (${count})` : typeLabel || "";
+ const label = dimmed ? "" : count > 1 ? `${typeLabel} ×${count}` : typeLabel || "";
+ const ChipIcon = (edgeType && EDGE_TYPE_ICONS[edgeType]) || ArrowRight;
+ const chipTint = getEdgeColor(edgeType);
return (
<>
@@ -82,8 +100,8 @@ function ArchEdgeRendererImpl(props: EdgeProps) {
style={{
stroke,
strokeWidth,
- strokeDasharray: isPortal ? "6 3" : "8 4",
- animation: dimmed ? "none" : "edgeFlow 1.5s linear infinite",
+ strokeDasharray: selected ? "none" : isPortal ? "4 3" : "6 4",
+ animation: selected ? "edgeFlow 1.5s linear infinite" : "none",
opacity: strokeOpacity,
}}
/>
@@ -93,20 +111,28 @@ function ArchEdgeRendererImpl(props: EdgeProps) {
style={{
position: "absolute",
transform: `translate(-50%, -50%) translate(${labelX}px, ${labelY}px)`,
- background: "rgba(15, 23, 42, 0.88)",
- color: stroke,
- padding: "2px 6px",
- borderRadius: 4,
- fontSize: 10,
+ display: "inline-flex",
+ alignItems: "center",
+ gap: 4,
+ background: "var(--color-bg-surface)",
+ color: "var(--color-text-secondary)",
+ padding: "2px 7px",
+ borderRadius: 6,
+ fontFamily: "var(--font-mono, ui-monospace, monospace)",
+ fontSize: 9.5,
fontWeight: 500,
letterSpacing: 0.3,
pointerEvents: "none",
- border: `1px solid ${stroke}33`,
+ border: selected
+ ? "1px solid var(--color-viz-selection)"
+ : "1px solid var(--color-border-default)",
+ boxShadow: "0 1px 2px rgba(0,0,0,0.08)",
whiteSpace: "nowrap",
- opacity: selected ? 1 : 0.85,
+ opacity: selected ? 1 : 0.92,
}}
className="nodrag nopan"
>
+ <ChipIcon size={10} aria-hidden style={{ color: chipTint, flexShrink: 0 }} />
{label}
</div>
</EdgeLabelRenderer>
diff --git a/packages/ui/src/graph-primitives/node-shell.tsx b/packages/ui/src/graph-primitives/node-shell.tsx
index 8d2c2ba18..c015bd3b8 100644
--- a/packages/ui/src/graph-primitives/node-shell.tsx
+++ b/packages/ui/src/graph-primitives/node-shell.tsx
@@ -26,19 +26,19 @@ export interface NodeShellProps {
}
function getBorderColor(props: NodeShellProps, fallbackBorder: string): string {
- if (props.selected) return "#fbbf24";
- if (props.diffState === "changed") return "#fca5a5";
- if (props.diffState === "affected") return "#fbbf24";
- if (props.tourHighlight) return "#f59520";
- if (props.searchHighlight) return "#f59520";
- if (props.focused) return "#f59520";
+ if (props.selected) return "var(--color-viz-selection)";
+ if (props.diffState === "changed") return "var(--color-viz-diff-changed)";
+ if (props.diffState === "affected") return "var(--color-viz-diff-affected)";
+ if (props.tourHighlight) return "var(--color-accent-fill)";
+ if (props.searchHighlight) return "var(--color-accent-fill)";
+ if (props.focused) return "var(--color-accent-fill)";
return fallbackBorder;
}
function getBoxShadow(props: NodeShellProps): string {
- if (props.selected) return "0 0 0 2px rgba(251,191,36,0.4)";
- if (props.diffState === "changed") return "0 0 0 2px rgba(252,165,165,0.4)";
- if (props.diffState === "affected") return "0 0 0 2px rgba(251,191,36,0.3)";
+ if (props.selected) return "0 0 0 2px color-mix(in srgb, var(--color-viz-selection) 40%, transparent)";
+ if (props.diffState === "changed") return "0 0 0 2px color-mix(in srgb, var(--color-viz-diff-changed) 40%, transparent)";
+ if (props.diffState === "affected") return "0 0 0 2px color-mix(in srgb, var(--color-viz-diff-affected) 35%, transparent)";
return "0 1px 2px rgba(0,0,0,0.2)";
}
@@ -77,7 +77,7 @@ export function NodeShell(props: NodeShellProps) {
height,
background: s.bg,
border: `1.5px ${getBorderStyle(props)} ${getBorderColor(props, s.border)}`,
- borderLeft: `3px solid ${selected ? "#fbbf24" : s.band}`,
+ borderLeft: `3px solid ${selected ? "var(--color-viz-selection)" : s.band}`,
borderRadius: 8,
color: s.text,
overflow: "hidden",
diff --git a/packages/ui/src/graph-primitives/tone-styles.ts b/packages/ui/src/graph-primitives/tone-styles.ts
index f468894d7..f13d16a21 100644
--- a/packages/ui/src/graph-primitives/tone-styles.ts
+++ b/packages/ui/src/graph-primitives/tone-styles.ts
@@ -1,24 +1,33 @@
+/*
+ * Categorical node-tone palette (C4 / arch diagrams). These are
+ * the data-viz counterpart to LANGUAGE_COLORS — literal hex because they feed
+ * the static SVG exporter where a CSS var() string can't resolve. Retuned from
+ * the old cool navy/teal/purple set to the warm/plum families (mirrors the
+ * --color-community-* / --color-accent-secondary spine). Dark plum-tinted
+ * fills carry the C4 node body; the hub hue lines the border + kind band. Each
+ * pairing keeps light text >= AA on its fill.
+ */
export const TONE_STYLES = {
- system: { bg: "#1f3a8a", border: "#1e40af", band: "#1e40af", text: "#ffffff" },
- person: { bg: "#374151", border: "#4b5563", band: "#4b5563", text: "#ffffff" },
- external: { bg: "#1f2937", border: "#374151", band: "#374151", text: "#e5e7eb" },
- container: { bg: "#0f3a5f", border: "#1d4ed8", band: "#1d4ed8", text: "#ffffff" },
- component: { bg: "#0d2a47", border: "#1e3a8a", band: "#1e3a8a", text: "#e5e7eb" },
- file: { bg: "#0f3a5f", border: "#1a6b8a", band: "#1a6b8a", text: "#ffffff" },
- function: { bg: "#1a3d2e", border: "#2d7d5a", band: "#2d7d5a", text: "#ffffff" },
- class: { bg: "#2d1f4a", border: "#6b4fa0", band: "#6b4fa0", text: "#ffffff" },
- config: { bg: "#3d2f0a", border: "#8a6b1a", band: "#8a6b1a", text: "#ffffff" },
- document: { bg: "#1a3a5a", border: "#4a8ab0", band: "#4a8ab0", text: "#ffffff" },
- service: { bg: "#3d1a2f", border: "#8a4a6b", band: "#8a4a6b", text: "#ffffff" },
- pipeline: { bg: "#2d1f3d", border: "#6b5a8a", band: "#6b5a8a", text: "#ffffff" },
- module: { bg: "#1f2d1a", border: "#5a7a4a", band: "#5a7a4a", text: "#ffffff" },
- layerCluster: { bg: "#0d1a2d", border: "#1a3a5a", band: "#1a3a5a", text: "#f1f5f9" },
- portal: { bg: "transparent", border: "#475569", band: "#475569", text: "#94a3b8" },
- concept: { bg: "#1f2937", border: "#374151", band: "#374151", text: "#e5e7eb" },
- table: { bg: "#1a2d3d", border: "#3d6b8a", band: "#3d6b8a", text: "#ffffff" },
- endpoint: { bg: "#2d3d1a", border: "#6b8a3d", band: "#6b8a3d", text: "#ffffff" },
- schema: { bg: "#1a2d3d", border: "#3d6b8a", band: "#3d6b8a", text: "#ffffff" },
- resource: { bg: "#2d1f3d", border: "#6b5a8a", band: "#6b5a8a", text: "#ffffff" },
+ system: { bg: "#3a2417", border: "#f59520", band: "#f59520", text: "#ffffff" }, // brand orange
+ person: { bg: "#2c2530", border: "#84778a", band: "#84778a", text: "#ffffff" }, // charcoal mauve
+ external: { bg: "#251f2c", border: "#5e5360", band: "#5e5360", text: "#e7e1f0" }, // muted plum-gray
+ container: { bg: "#3a2417", border: "#d9825f", band: "#d9825f", text: "#ffffff" }, // peach
+ component: { bg: "#2d1f1a", border: "#cf6a55", band: "#cf6a55", text: "#f1ece9" }, // terracotta
+ file: { bg: "#2a1c33", border: "#826aa0", band: "#826aa0", text: "#ffffff" }, // plum
+ function: { bg: "#1f2a18", border: "#6b7a3d", band: "#6b7a3d", text: "#ffffff" }, // olive/sage
+ class: { bg: "#2a1c33", border: "#a98fc4", band: "#a98fc4", text: "#ffffff" }, // plum-300
+ config: { bg: "#33280a", border: "#a8821f", band: "#a8821f", text: "#ffffff" }, // gold
+ document: { bg: "#1a2c2a", border: "#558f89", band: "#558f89", text: "#ffffff" }, // deep teal
+ service: { bg: "#2d1620", border: "#9e5570", band: "#9e5570", text: "#ffffff" }, // wine
+ pipeline: { bg: "#251f2c", border: "#7d659c", band: "#7d659c", text: "#ffffff" }, // plum-soft
+ module: { bg: "#1f2a18", border: "#90a05e", band: "#90a05e", text: "#ffffff" }, // sage-soft
+ layerCluster: { bg: "#1a1320", border: "#58436c", band: "#58436c", text: "#f4f1f8" }, // deep plum
+ portal: { bg: "transparent", border: "#8c7f88", band: "#8c7f88", text: "#a79db3" }, // neutral
+ concept: { bg: "#251f2c", border: "#5e5360", band: "#5e5360", text: "#e7e1f0" }, // charcoal mauve
+ table: { bg: "#2d1f1c", border: "#b06a86", band: "#b06a86", text: "#ffffff" }, // dusty rose
+ endpoint: { bg: "#2a2417", border: "#c9a544", band: "#c9a544", text: "#ffffff" }, // gold-soft
+ schema: { bg: "#2d1f1c", border: "#cf93ab", band: "#cf93ab", text: "#ffffff" }, // dusty rose-soft
+ resource: { bg: "#251f2c", border: "#7d659c", band: "#7d659c", text: "#ffffff" }, // plum-soft
} as const;
export type ToneName = keyof typeof TONE_STYLES;
@@ -44,4 +53,6 @@ export const ARCH_NODE_SIZES = {
endpoint: { width: 260, height: 110 },
schema: { width: 260, height: 110 },
resource: { width: 260, height: 110 },
+ /** Collapsed folder container card (ArchContainerNode, chevron closed). */
+ containerCollapsed: { width: 260, height: 64 },
} as const;
diff --git a/packages/ui/src/graph/graph-community-panel.tsx b/packages/ui/src/graph/graph-community-panel.tsx
index 969488175..0ab4d6a14 100644
--- a/packages/ui/src/graph/graph-community-panel.tsx
+++ b/packages/ui/src/graph/graph-community-panel.tsx
@@ -1,6 +1,6 @@
"use client";
-import { X, ArrowRight } from "lucide-react";
+import { X, ArrowRight, Sparkles } from "lucide-react";
import { Badge } from "../ui/badge";
import { ScrollArea } from "../ui/scroll-area";
import { Skeleton } from "../ui/skeleton";
@@ -15,6 +15,10 @@ export interface GraphCommunityPanelProps {
/** Loading flag from the consumer's data hook. */
isLoading: boolean;
onClose: () => void;
+ /** Optional: blossom this community's files on the canvas. When provided, an
+ * "Expand on canvas" affordance is shown (the constellation single-click now
+ * opens this panel instead of expanding, so the panel offers the expand). */
+ onExpandOnCanvas?: (() => void) | undefined;
}
export function GraphCommunityPanel({
@@ -22,6 +26,7 @@ export function GraphCommunityPanel({
community,
isLoading,
onClose,
+ onExpandOnCanvas,
}: GraphCommunityPanelProps) {
return (
<div className="absolute right-0 top-0 bottom-0 w-full sm:w-[360px] border-l border-[var(--color-border-default)] bg-[var(--color-bg-surface)] z-20 flex flex-col shadow-lg shadow-black/20">
@@ -45,6 +50,19 @@ export function GraphCommunityPanel({
</button>
</div>
+ {/* Expand-on-canvas affordance — mirrors the double-click blossom. */}
+ {onExpandOnCanvas && (
+ <div className="px-4 py-2 border-b border-[var(--color-border-default)]">
+ <button
+ onClick={onExpandOnCanvas}
+ className="flex w-full items-center justify-center gap-1.5 rounded-md border border-[var(--color-border-default)] px-2 py-1.5 text-[11px] text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-elevated)] hover:text-[var(--color-text-primary)] transition-colors"
+ >
+ <Sparkles className="h-3 w-3" />
+ Expand on canvas
+ </button>
+ </div>
+ )}
+
{/* Content */}
{isLoading ? (
<div className="p-4 space-y-2">
diff --git a/packages/ui/src/graph/graph-flow.tsx b/packages/ui/src/graph/graph-flow.tsx
index 9fd6ae5fa..24df8243e 100644
--- a/packages/ui/src/graph/graph-flow.tsx
+++ b/packages/ui/src/graph/graph-flow.tsx
@@ -8,6 +8,7 @@ import {
useRef,
type ReactNode,
} from "react";
+import { useTheme } from "next-themes";
import { ChevronRight, Home } from "lucide-react";
import { Skeleton } from "../ui/skeleton";
import { EmptyState } from "../shared/empty-state";
@@ -15,7 +16,15 @@ import { GraphProvider, type GraphContextValue, type Signal } from "./context";
import { groupNodesAsModules, type FileNodeData, type ModuleNodeData } from "./elk-layout";
const EMPTY_STRING_SET = new Set<string>();
+// Resting zoom when easing the camera onto a constellation hub. Looser than the
+// default file-node focus (0.15) so the hub *and* its surrounding cluster stay
+// visible instead of the disc filling the whole viewport.
+const HUB_FOCUS_RATIO = 0.45;
+// Below this node count file graphs build synchronously; at or above it we
+// build in chunks off the critical path (see sigmaGraph below).
+const ASYNC_BUILD_THRESHOLD = 1000;
import { useExpandedModules } from "./use-expanded-modules";
+import { useExpandedHubs } from "./use-expanded-hubs";
import { traceToEdgeKeys } from "./graph-flow-helpers";
import { useGraphContextMenu } from "./use-graph-context-menu";
import { useGraphSearch } from "./use-graph-search";
@@ -30,13 +39,24 @@ import type {
ModuleGraph,
ExecutionFlows,
CommunitySummaryItem,
+ ArchitectureGraph,
+ CommunitySlice,
} from "@repowise-dev/types/graph";
import { SigmaCanvas, type SigmaCanvasHandle } from "./sigma/sigma-canvas";
import {
fileGraphToGraphology,
+ fileGraphToGraphologyAsync,
moduleGraphToGraphology,
groupFilesAsModules,
} from "./sigma/graphology-adapter";
+import {
+ architectureToGraphology,
+ hubNodeId,
+ mergeCommunitySlice,
+} from "./sigma/constellation-adapter";
+import { computeRadialLayout } from "./sigma/radial-layout";
+import type { SigmaNodeAttributes, SigmaEdgeAttributes } from "./sigma/types";
+import type GraphologyGraph from "graphology";
import { useEgoFilter } from "./sigma/use-ego-filter";
import {
NODE_BASE_SIZES,
@@ -53,6 +73,17 @@ export interface GraphFlowProps {
isLoadingFullGraph: boolean;
architectureGraph: GraphExport | undefined;
isLoadingArchitectureGraph: boolean;
+ /** Community super-graph for the constellation (radial Knowledge Graph) scope. */
+ constellationGraph?: ArchitectureGraph | undefined;
+ isLoadingConstellationGraph?: boolean;
+ /** Member slices for currently-expanded hubs, keyed by community_id. The host
+ * fetches these in response to {@link onExpandedHubsChange}. */
+ constellationSlices?: Map<number, CommunitySlice> | undefined;
+ /** Fired when the set of expanded constellation hubs changes, so the host can
+ * fetch the corresponding slices. */
+ onExpandedHubsChange?: (expanded: number[]) => void;
+ /** Repo name for the constellation core label. */
+ repoName?: string;
deadCodeGraph: GraphExport | undefined;
isLoadingDeadCodeGraph: boolean;
hotFilesGraph: GraphExport | undefined;
@@ -76,6 +107,8 @@ export interface GraphFlowProps {
renderCommunityPanel?: (props: {
communityId: number;
onClose: () => void;
+ /** Blossom this community's files on the canvas (expand affordance). */
+ onExpandOnCanvas: () => void;
}) => ReactNode;
/** Fired when the community detail panel transitions to open. Lets the
* hosting page dismiss any competing right-rail panel (doc panel etc.)
@@ -89,8 +122,11 @@ export function GraphFlow(props: GraphFlowProps) {
isLoadingModuleGraph,
fullGraph,
isLoadingFullGraph,
- architectureGraph,
- isLoadingArchitectureGraph,
+ constellationGraph,
+ isLoadingConstellationGraph,
+ constellationSlices,
+ onExpandedHubsChange,
+ repoName,
deadCodeGraph,
isLoadingDeadCodeGraph,
hotFilesGraph,
@@ -113,7 +149,8 @@ export function GraphFlow(props: GraphFlowProps) {
const focusTimerRef = useRef<ReturnType<typeof setTimeout>>(undefined);
// ---- Core state ----
- const [viewMode, setViewMode] = useState<ViewMode>(initialViewMode ?? "module");
+ // Default scope is the constellation (radial Knowledge Graph).
+ const [viewMode, setViewMode] = useState<ViewMode>(initialViewMode ?? "architecture");
const [colorMode, setColorMode] = useState<ColorMode>(() => {
if (typeof window !== "undefined") {
const params = new URLSearchParams(window.location.search);
@@ -125,8 +162,16 @@ export function GraphFlow(props: GraphFlowProps) {
const [highlightedPath, setHighlightedPath] = useState<Set<string>>(new Set());
const [highlightedEdges, setHighlightedEdges] = useState<Set<string>>(new Set());
const [showPathFinder, setShowPathFinder] = useState(false);
- const [layoutMode, setLayoutMode] = useState<LayoutMode>("force");
- const [graphTheme, setGraphTheme] = useState<GraphTheme>("light");
+ // Constellation is the default scope → its fixed radial layout.
+ const [layoutMode, setLayoutMode] = useState<LayoutMode>(
+ (initialViewMode ?? "architecture") === "architecture" ? "radial" : "force",
+ );
+
+ // The dependency graph follows the global app theme rather than a separate
+ // local toggle. Sigma needs a concrete "light"/"dark" (never "system"), so
+ // resolve it; the in-graph Sun/Moon control flips the global theme below.
+ const { resolvedTheme, setTheme } = useTheme();
+ const graphTheme: GraphTheme = resolvedTheme === "dark" ? "dark" : "light";
const [egoDepth, setEgoDepth] = useState(0);
@@ -151,6 +196,15 @@ export function GraphFlow(props: GraphFlowProps) {
const { expandedModules, toggleModule, collapseAll } = useExpandedModules();
const hasExpandedModules = expandedModules.size > 0;
+ // Expand/collapse constellation hubs (radial blossom). Esc collapses the most
+ // recently expanded hub; multiple hubs may be open at once.
+ const { expandedHubs, toggleHub, collapseLast, collapseAll: collapseAllHubs } =
+ useExpandedHubs();
+
+ useEffect(() => {
+ onExpandedHubsChange?.(expandedHubs);
+ }, [expandedHubs, onExpandedHubsChange]);
+
// Legacy drill-down (breadcrumb nav, kept for deep-dive via context menu)
const [modulePath, setModulePath] = useState<string[]>([]);
const currentPrefix = modulePath.length > 0 ? (modulePath[modulePath.length - 1] ?? "") : "";
@@ -193,9 +247,86 @@ export function GraphFlow(props: GraphFlowProps) {
[onCommunityPanelOpen],
);
+ // Legend click in the constellation: select the hub, ease the camera onto it,
+ // and surface the community in the detail panel — NO expand. This mirrors the
+ // unified single-click grammar (expansion is reserved for double-click).
+ const handleConstellationHubClick = useCallback(
+ (cid: number) => {
+ const nodeId = hubNodeId(cid);
+ setSelectedNodeId(nodeId);
+ sigmaRef.current?.focusNode(nodeId, HUB_FOCUS_RATIO);
+ openCommunityPanel(cid);
+ },
+ [openCommunityPanel],
+ );
+
+ // Hub double-click toggles the blossom: expand eases the camera to frame the
+ // cluster (and opens the panel); collapse just folds it back.
+ const handleConstellationHubToggle = useCallback(
+ (cid: number) => {
+ const willExpand = !expandedHubs.includes(cid);
+ toggleHub(cid);
+ if (willExpand) {
+ const nodeId = hubNodeId(cid);
+ setSelectedNodeId(nodeId);
+ sigmaRef.current?.focusNode(nodeId, HUB_FOCUS_RATIO);
+ openCommunityPanel(cid);
+ }
+ },
+ [expandedHubs, toggleHub, openCommunityPanel],
+ );
+
// ---- Derived state ----
const isModuleView = viewMode === "module";
const isUnified = viewMode === "unified";
+ // The "architecture" scope renders the radial community constellation.
+ const isConstellation = viewMode === "architecture";
+
+ // Constellation graph: one hub per community + repo-core, radial positions.
+ // When hubs are expanded, blossom each one's member slice as satellites
+ // (deterministic radial math, no FA2). Rebuilt fresh each time (the adapter
+ // is pure + the merge mutates only the new instance), so the memo stays pure.
+ const constellationSigmaGraph = useMemo(() => {
+ if (!isConstellation || !constellationGraph) return null;
+ const graph = architectureToGraphology(
+ constellationGraph,
+ repoName ? { repoName } : {},
+ );
+ if (constellationSlices) {
+ for (const cid of expandedHubs) {
+ const slice = constellationSlices.get(cid);
+ if (slice) mergeCommunitySlice(graph, cid, slice);
+ }
+ }
+ return graph;
+ }, [isConstellation, constellationGraph, repoName, expandedHubs, constellationSlices]);
+
+ // Nodes to dim while any hub is expanded: every hub disc NOT in the expanded
+ // set (and the repo-core), so the open cluster(s) read as foreground. Reuses
+ // the dimColor machinery via the dedicated expand-dim channel.
+ const expandDimmedNodes = useMemo(() => {
+ if (!isConstellation || expandedHubs.length === 0 || !constellationGraph) {
+ return null;
+ }
+ const expandedSet = new Set(expandedHubs);
+ const dimmed = new Set<string>();
+ for (const n of constellationGraph.nodes) {
+ if (!expandedSet.has(n.community_id)) dimmed.add(hubNodeId(n.community_id));
+ }
+ return dimmed;
+ }, [isConstellation, expandedHubs, constellationGraph]);
+
+ // Ring radii for the depth-ring underlay (graph coordinates).
+ const constellationRingRadii = useMemo(() => {
+ if (!isConstellation || !constellationGraph) return null;
+ return computeRadialLayout(
+ constellationGraph.nodes.map((n) => ({
+ community_id: n.community_id,
+ member_count: n.member_count,
+ avg_pagerank: n.avg_pagerank,
+ })),
+ ).ringRadii;
+ }, [isConstellation, constellationGraph]);
const communityLabels = useMemo(() => {
if (!communities) return undefined;
@@ -204,6 +335,19 @@ export function GraphFlow(props: GraphFlowProps) {
return m;
}, [communities]);
+ // Constellation legend data: label + member count per community, ranked by
+ // size, sourced from the architecture payload (independent of /communities).
+ const constellationLegend = useMemo(() => {
+ if (!constellationGraph) return undefined;
+ return [...constellationGraph.nodes]
+ .sort((a, b) => b.member_count - a.member_count)
+ .map((n) => ({
+ communityId: n.community_id,
+ label: (n.label || `Community ${n.community_id}`),
+ memberCount: n.member_count,
+ }));
+ }, [constellationGraph]);
+
// Drill-down data
const drillDownData = useMemo(() => {
if (!isDrilledDown || !fullGraph) return null;
@@ -216,10 +360,7 @@ export function GraphFlow(props: GraphFlowProps) {
case "full":
case "unified":
return fullGraph ? { nodes: fullGraph.nodes, links: fullGraph.links } : undefined;
- case "architecture":
- return architectureGraph
- ? { nodes: architectureGraph.nodes, links: architectureGraph.links }
- : undefined;
+ // "architecture" now renders the radial constellation, not a file graph.
case "dead":
return deadCodeGraph
? { nodes: deadCodeGraph.nodes, links: deadCodeGraph.links }
@@ -231,14 +372,14 @@ export function GraphFlow(props: GraphFlowProps) {
default:
return undefined;
}
- }, [viewMode, fullGraph, architectureGraph, deadCodeGraph, hotFilesGraph]);
+ }, [viewMode, fullGraph, deadCodeGraph, hotFilesGraph]);
// Loading state
const isLoading =
(isModuleView && !isDrilledDown) ? isLoadingModuleGraph :
isDrilledDown ? isLoadingFullGraph :
viewMode === "full" || viewMode === "unified" ? isLoadingFullGraph :
- viewMode === "architecture" ? isLoadingArchitectureGraph :
+ viewMode === "architecture" ? !!isLoadingConstellationGraph :
viewMode === "dead" ? isLoadingDeadCodeGraph :
viewMode === "hotfiles" ? isLoadingHotFilesGraph : false;
@@ -282,8 +423,13 @@ export function GraphFlow(props: GraphFlowProps) {
return { moduleChildIndex, nodeEdgeIndex };
}, [fullGraph]);
- // Build Graphology graph for Sigma rendering
- const sigmaGraph = useMemo(() => {
+ // Build Graphology graph for Sigma rendering.
+ //
+ // Module / drill-down / small file graphs build synchronously here. Large
+ // file graphs (>= ASYNC_BUILD_THRESHOLD) are deferred off the critical path:
+ // this memo returns null and the effect below constructs them in chunks,
+ // keeping the loading state up until the first frame is ready.
+ const syncSigmaGraph = useMemo(() => {
if (isModuleView) {
if (isDrilledDown && fullGraph) {
return groupFilesAsModules(fullGraph, { prefix: currentPrefix });
@@ -400,6 +546,9 @@ export function GraphFlow(props: GraphFlowProps) {
const graphData = fileGraphData;
if (!graphData) return null;
+ // Defer large file graphs to the async effect below.
+ if (graphData.nodes.length >= ASYNC_BUILD_THRESHOLD) return null;
+
const signals: { hotNodeIds?: Set<string>; deadNodeIds?: Set<string> } = {};
if (hasHotSignal || isUnified) signals.hotNodeIds = hotNodeIds;
if (hasDeadSignal || isUnified) signals.deadNodeIds = deadNodeIds;
@@ -410,6 +559,51 @@ export function GraphFlow(props: GraphFlowProps) {
);
}, [isModuleView, isDrilledDown, fullGraph, currentPrefix, moduleGraph, communities, expandedModules, fileGraphData, hasHotSignal, hasDeadSignal, isUnified, hotNodeIds, deadNodeIds, fullGraphIndexes]);
+ // Async-built file graph for large graphs (built in chunks off the main
+ // thread critical path). Null while building / when the sync path applies.
+ const [asyncSigmaGraph, setAsyncSigmaGraph] = useState<GraphologyGraph<
+ SigmaNodeAttributes,
+ SigmaEdgeAttributes
+ > | null>(null);
+ const [isBuildingGraph, setIsBuildingGraph] = useState(false);
+
+ const needsAsyncBuild =
+ !isModuleView &&
+ !!fileGraphData &&
+ fileGraphData.nodes.length >= ASYNC_BUILD_THRESHOLD;
+
+ useEffect(() => {
+ if (!needsAsyncBuild || !fileGraphData) {
+ setAsyncSigmaGraph(null);
+ setIsBuildingGraph(false);
+ return;
+ }
+
+ let cancelled = false;
+ setIsBuildingGraph(true);
+
+ const signals: { hotNodeIds?: Set<string>; deadNodeIds?: Set<string> } = {};
+ if (hasHotSignal || isUnified) signals.hotNodeIds = hotNodeIds;
+ if (hasDeadSignal || isUnified) signals.deadNodeIds = deadNodeIds;
+
+ void fileGraphToGraphologyAsync(
+ { nodes: fileGraphData.nodes, links: fileGraphData.links },
+ { signals },
+ ).then((graph) => {
+ if (cancelled) return;
+ setAsyncSigmaGraph(graph);
+ setIsBuildingGraph(false);
+ });
+
+ return () => {
+ cancelled = true;
+ };
+ }, [needsAsyncBuild, fileGraphData, hasHotSignal, hasDeadSignal, isUnified, hotNodeIds, deadNodeIds]);
+
+ const sigmaGraph = isConstellation
+ ? constellationSigmaGraph
+ : (syncSigmaGraph ?? asyncSigmaGraph);
+
const { hiddenNodes, isActive: isEgoActive, visibleCount: egoVisibleCount } = useEgoFilter({
graph: sigmaGraph,
selectedNodeId,
@@ -536,27 +730,57 @@ export function GraphFlow(props: GraphFlowProps) {
// ---- Handlers ----
+ // Unified grammar — DOUBLE CLICK = drill deeper (all views):
+ // module → expand/collapse the module's children
+ // hub → toggle the radial blossom (expand eases the camera onto it)
+ // file/sat. → open the doc panel
+ // core → no-op (Sigma's default camera zoom is allowed)
+ // Returns true when an action ran so the canvas suppresses Sigma's default
+ // double-click zoom; core returns void so the zoom-jump is kept.
const handleSigmaDoubleClick = useCallback(
- (nodeId: string, nodeType: string) => {
+ (nodeId: string, nodeType: string): boolean | void => {
if (nodeType === "module") {
toggleModule(nodeId);
- } else {
- onNodeViewDocs?.(nodeId);
+ return true;
}
+ if (nodeType === "hub" && sigmaGraph?.hasNode(nodeId)) {
+ const cid = sigmaGraph.getNodeAttribute(nodeId, "communityId");
+ if (typeof cid === "number" && cid >= 0) {
+ handleConstellationHubToggle(cid);
+ return true;
+ }
+ return;
+ }
+ if (nodeType === "core") return;
+ onNodeViewDocs?.(nodeId);
+ return true;
},
- [onNodeViewDocs, toggleModule],
+ [onNodeViewDocs, toggleModule, sigmaGraph, handleConstellationHubToggle],
);
+ // Unified grammar — SINGLE CLICK = select + inspect (never structural):
+ // file/module → select (no expansion; drill-down moved to double-click)
+ // hub → select + focus + open the community panel (NO expand)
+ // core → no-op
+ // Clicking an already-selected node is a no-op (keeps it selected); the two
+ // pre-clicks Sigma fires before a double-click therefore can't churn the
+ // selection. Deselection happens via stage click or Esc.
const handleSigmaNodeClick = useCallback(
- (nodeId: string, _nodeType: string) => {
- if (selectedNodeId === nodeId) {
- setSelectedNodeId(null);
- setEgoDepth(0);
- } else {
- setSelectedNodeId(nodeId);
+ (nodeId: string, nodeType: string) => {
+ if (nodeType === "core") return;
+ if (selectedNodeId === nodeId) return;
+ if (nodeType === "hub" && sigmaGraph?.hasNode(nodeId)) {
+ const cid = sigmaGraph.getNodeAttribute(nodeId, "communityId");
+ if (typeof cid === "number" && cid >= 0) {
+ setSelectedNodeId(nodeId);
+ sigmaRef.current?.focusNode(nodeId, HUB_FOCUS_RATIO);
+ openCommunityPanel(cid);
+ return;
+ }
}
+ setSelectedNodeId(nodeId);
},
- [selectedNodeId],
+ [selectedNodeId, sigmaGraph, openCommunityPanel],
);
const handleSigmaNodeContextMenu = useCallback(
@@ -571,6 +795,26 @@ export function GraphFlow(props: GraphFlowProps) {
[setCtxMenu],
);
+ // Esc dismisses the top UI layer first (unified grammar): clear an open
+ // selection/panel before collapsing a constellation hub. Each press peels one
+ // layer; the keyboard hook's default clear only runs once nothing is open.
+ // 1. node selected OR community panel open → clear selection + panel + ego
+ // 2. else any hub expanded → collapse the most recent
+ // 3. else → fall through to the default clear (search, ctx menu, …)
+ const handleEscapeCollapse = useCallback((): boolean => {
+ if (selectedNodeId !== null || communityPanelId !== null) {
+ setSelectedNodeId(null);
+ setCommunityPanelId(null);
+ setEgoDepth(0);
+ return true;
+ }
+ if (isConstellation && expandedHubs.length > 0) {
+ collapseLast();
+ return true;
+ }
+ return false;
+ }, [selectedNodeId, communityPanelId, isConstellation, expandedHubs.length, collapseLast]);
+
// Global keyboard shortcuts (f/Escape/1-3//, cmd+k)
useGraphKeyboardShortcuts({
sigmaRef,
@@ -580,6 +824,7 @@ export function GraphFlow(props: GraphFlowProps) {
setCtxMenu,
setCommunityPanelId,
setColorMode,
+ onEscape: handleEscapeCollapse,
});
const handlePathFound = useCallback(
@@ -608,21 +853,28 @@ export function GraphFlow(props: GraphFlowProps) {
const handleViewChange = useCallback((v: ViewMode) => {
setViewMode(v);
- setLayoutMode("force");
+ // Constellation is fixed-radial; other scopes default back to FA2.
+ setLayoutMode(v === "architecture" ? "radial" : "force");
setModulePath([]);
setHighlightedPath(new Set());
setHighlightedEdges(new Set());
setSelectedNodeId(null);
+ // Leaving the constellation collapses any open blossoms.
+ if (v !== "architecture") collapseAllHubs();
onViewModeChange?.(v);
- }, [onViewModeChange]);
+ }, [onViewModeChange, collapseAllHubs]);
const handleLayoutModeChange = useCallback((mode: LayoutMode) => {
setLayoutMode(mode);
}, []);
- const handleGraphThemeChange = useCallback((theme: GraphTheme) => {
- setGraphTheme(theme);
- }, []);
+ const handleGraphThemeChange = useCallback(
+ (theme: GraphTheme) => {
+ // Drive the global theme; the graph re-reads it via resolvedTheme.
+ setTheme(theme);
+ },
+ [setTheme],
+ );
const handleSignalToggle = useCallback((signal: Signal) => {
setActiveSignals((prev) => {
@@ -709,11 +961,12 @@ export function GraphFlow(props: GraphFlowProps) {
setCtxMenu(null);
}, [ctxMenu, setCtxMenu]);
- if (isLoading) return <Skeleton className="h-full w-full rounded-lg" />;
+ if (isLoading || (isBuildingGraph && !sigmaGraph))
+ return <Skeleton className="h-full w-full rounded-lg" />;
return (
<GraphProvider value={ctxValue}>
- <div className="relative w-full h-full" style={{ touchAction: "none", ...(graphTheme === "dark" ? { background: "#0f0f1a" } : {}) }} aria-label="Dependency graph">
+ <div className="relative w-full h-full" style={{ touchAction: "none", ...(graphTheme === "dark" ? { background: "var(--color-bg-inset)" } : {}) }} aria-label="Dependency graph">
{sigmaGraph ? (
<SigmaCanvas
ref={sigmaRef}
@@ -726,6 +979,7 @@ export function GraphFlow(props: GraphFlowProps) {
highlightedEdges={highlightedEdges}
searchDimmedNodes={searchDimmedNodes}
communityDimmedNodes={communityDimmedNodes}
+ expandDimmedNodes={isConstellation ? expandDimmedNodes : null}
colorMode={colorMode}
activeSignals={activeSignals}
graphTheme={graphTheme}
@@ -740,6 +994,7 @@ export function GraphFlow(props: GraphFlowProps) {
onStageClick={() => setSelectedNodeId(null)}
hiddenNodes={isEgoActive ? hiddenNodes : undefined}
visibleEdgeTypes={visibleEdgeTypes}
+ depthRingRadii={isConstellation ? constellationRingRadii : null}
/>
) : !isLoading ? (
<div className="flex items-center justify-center h-full">
@@ -895,8 +1150,11 @@ export function GraphFlow(props: GraphFlowProps) {
activeCommunities={activeCommunities ?? undefined}
onCommunityToggle={handleCommunityToggle}
onToggleAllCommunities={handleToggleAllCommunities}
- visibleEdgeTypes={visibleEdgeTypes}
- onEdgeTypeToggle={handleEdgeTypeToggle}
+ visibleEdgeTypes={isConstellation ? undefined : visibleEdgeTypes}
+ onEdgeTypeToggle={isConstellation ? undefined : handleEdgeTypeToggle}
+ graphTheme={graphTheme}
+ constellationEntries={isConstellation ? constellationLegend : undefined}
+ onConstellationHubClick={handleConstellationHubClick}
/>
</div>
@@ -919,6 +1177,7 @@ export function GraphFlow(props: GraphFlowProps) {
renderCommunityPanel({
communityId: communityPanelId,
onClose: () => setCommunityPanelId(null),
+ onExpandOnCanvas: () => handleConstellationHubToggle(communityPanelId),
})}
{/* Inspection panel — works for both file and module nodes */}
diff --git a/packages/ui/src/graph/graph-inspection-panel.tsx b/packages/ui/src/graph/graph-inspection-panel.tsx
index 5ad8ce505..f5a5698ea 100644
--- a/packages/ui/src/graph/graph-inspection-panel.tsx
+++ b/packages/ui/src/graph/graph-inspection-panel.tsx
@@ -20,7 +20,7 @@ import { formatNumber } from "../lib/format";
import type { FileNodeData, ModuleNodeData } from "./elk-layout";
import type Graph from "graphology";
import type { SigmaNodeAttributes, SigmaEdgeAttributes } from "./sigma/types";
-import { COMMUNITY_COLORS } from "./sigma/constants";
+import { useCommunityFamilies } from "../shared/use-theme-tokens";
interface NeighborInfo {
id: string;
@@ -78,6 +78,7 @@ export const GraphInspectionPanel = memo(function GraphInspectionPanel({
onEgoDepthChange,
egoVisibleCount,
}: GraphInspectionPanelProps) {
+ const communityFamily = useCommunityFamilies();
const neighbors = useMemo(() => {
if (!graph || !graph.hasNode(nodeId)) return [];
const result: NeighborInfo[] = [];
@@ -164,6 +165,7 @@ export const GraphInspectionPanel = memo(function GraphInspectionPanel({
inDegree={inDegree}
outDegree={outDegree}
communityLabel={communityLabel}
+ communityColor={communityFamily((data as FileNodeData).communityId).hub}
/>
)}
@@ -182,7 +184,7 @@ export const GraphInspectionPanel = memo(function GraphInspectionPanel({
>
<span
className="w-0.5 h-5 rounded-full shrink-0"
- style={{ background: COMMUNITY_COLORS[n.communityId % COMMUNITY_COLORS.length] }}
+ style={{ background: communityFamily(n.communityId).hub }}
/>
<div className="min-w-0 flex-1">
<p className="text-[11px] font-mono text-[var(--color-text-secondary)] group-hover:text-[var(--color-text-primary)] truncate">
@@ -289,6 +291,7 @@ function FileMetadata({
inDegree,
outDegree,
communityLabel,
+ communityColor,
}: {
data: FileNodeData;
pagerankPct: number;
@@ -296,6 +299,7 @@ function FileMetadata({
inDegree: number;
outDegree: number;
communityLabel?: string | undefined;
+ communityColor: string;
}) {
return (
<div className="space-y-2">
@@ -333,7 +337,7 @@ function FileMetadata({
<span className="flex items-center gap-1.5">
<span
className="w-2 h-2 rounded-full"
- style={{ background: COMMUNITY_COLORS[data.communityId % COMMUNITY_COLORS.length] }}
+ style={{ background: communityColor }}
/>
<span className="font-medium text-[var(--color-text-primary)]">
{communityLabel ?? `#${data.communityId}`}
@@ -388,7 +392,7 @@ function ModuleMetadata({
outDegree: number;
}) {
const docPct = Math.round((data.docCoveragePct ?? 0) * 100);
- const docColor = docPct >= 70 ? "#22c55e" : docPct >= 30 ? "#f59e0b" : "#ef4444";
+ const docColor = docPct >= 70 ? "var(--color-success)" : docPct >= 30 ? "var(--color-warning)" : "var(--color-error)";
return (
<div className="space-y-2">
diff --git a/packages/ui/src/graph/graph-legend.tsx b/packages/ui/src/graph/graph-legend.tsx
index 80377c228..12c69181c 100644
--- a/packages/ui/src/graph/graph-legend.tsx
+++ b/packages/ui/src/graph/graph-legend.tsx
@@ -3,7 +3,8 @@
import { useState, memo } from "react";
import { ChevronDown, ChevronUp } from "lucide-react";
import { LANGUAGE_COLORS } from "../lib/confidence";
-import { EDGE_COLORS, getCommunityColor } from "./sigma/constants";
+import { edgeColorsForTheme } from "./sigma/constants";
+import { useCommunityFamilies } from "../shared/use-theme-tokens";
import type { ColorMode, ViewMode } from "./graph-toolbar";
const LANGUAGE_LEGEND = [
@@ -28,6 +29,13 @@ interface GraphLegendProps {
onToggleAllCommunities?: (selectAll: boolean) => void;
visibleEdgeTypes?: Set<string> | undefined;
onEdgeTypeToggle?: ((edgeType: string) => void) | undefined;
+ graphTheme?: "light" | "dark" | undefined;
+ /** Constellation (Knowledge Graph) rows: family swatch + label + member count. */
+ constellationEntries?:
+ | { communityId: number; label: string; memberCount: number }[]
+ | undefined;
+ /** Click a constellation row → focus that hub's camera. */
+ onConstellationHubClick?: ((communityId: number) => void) | undefined;
}
export const GraphLegend = memo(function GraphLegend({
@@ -42,8 +50,68 @@ export const GraphLegend = memo(function GraphLegend({
onToggleAllCommunities,
visibleEdgeTypes,
onEdgeTypeToggle,
+ graphTheme = "dark",
+ constellationEntries,
+ onConstellationHubClick,
}: GraphLegendProps) {
const [expanded, setExpanded] = useState(false);
+ const communityFamily = useCommunityFamilies();
+ const edgeColors = edgeColorsForTheme(graphTheme);
+ const isConstellation = viewMode === "architecture";
+
+ // Constellation legend: families + member counts, click focuses the hub.
+ if (isConstellation) {
+ const entries = (constellationEntries ?? []).slice(0, 12);
+ return (
+ <div className="rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-overlay)]/80 backdrop-blur-sm text-xs shadow-lg shadow-black/20 min-w-[160px] max-w-[220px]">
+ <button
+ onClick={() => setExpanded((s) => !s)}
+ className="flex items-center justify-between w-full px-2.5 py-2 text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors"
+ >
+ <span className="font-medium tabular-nums">
+ {entries.length} communit{entries.length === 1 ? "y" : "ies"}
+ </span>
+ {expanded ? (
+ <ChevronDown className="w-3 h-3 shrink-0 ml-1.5" />
+ ) : (
+ <ChevronUp className="w-3 h-3 shrink-0 ml-1.5" />
+ )}
+ </button>
+ {expanded && (
+ <div className="px-2.5 pb-2.5 space-y-1 border-t border-[var(--color-border-default)] pt-2">
+ <p className="text-[9px] text-[var(--color-text-tertiary)] uppercase tracking-wider font-medium">
+ Knowledge Graph
+ </p>
+ {entries.length === 0 && (
+ <p className="text-[10px] text-[var(--color-text-tertiary)]">
+ No communities detected
+ </p>
+ )}
+ {entries.map((e) => {
+ const color = communityFamily(e.communityId).hub;
+ return (
+ <button
+ key={e.communityId}
+ onClick={() => onConstellationHubClick?.(e.communityId)}
+ className="flex items-center gap-2 w-full text-left text-[var(--color-text-tertiary)] rounded px-1 -mx-1 hover:bg-[var(--color-bg-elevated)] hover:text-[var(--color-text-primary)] transition-colors"
+ >
+ <span
+ className="w-2.5 h-2.5 rounded-full shrink-0"
+ style={{ background: color }}
+ />
+ <span className="truncate flex-1">{e.label}</span>
+ <span className="tabular-nums text-[9px] shrink-0">{e.memberCount}</span>
+ </button>
+ );
+ })}
+ <p className="text-[9px] text-[var(--color-text-tertiary)] pt-1.5 border-t border-[var(--color-border-default)]">
+ Inner ring = entry surface
+ </p>
+ </div>
+ )}
+ </div>
+ );
+ }
return (
<div className="rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-overlay)]/80 backdrop-blur-sm text-xs shadow-lg shadow-black/20 min-w-[120px] max-w-[150px]">
@@ -97,7 +165,7 @@ export const GraphLegend = memo(function GraphLegend({
)}
{entries
? entries.map(([cid, label], i) => {
- const color = getCommunityColor(cid);
+ const color = communityFamily(cid).hub;
const checked = !activeCommunities || activeCommunities.has(cid);
return (
<div
@@ -138,7 +206,7 @@ export const GraphLegend = memo(function GraphLegend({
<div key={i} className="flex items-center gap-2 text-[var(--color-text-tertiary)]">
<span
className="w-2 h-2 rounded-full shrink-0"
- style={{ background: getCommunityColor(i) }}
+ style={{ background: communityFamily(i).hub }}
/>
<span>Community {i + 1}</span>
</div>
@@ -150,15 +218,15 @@ export const GraphLegend = memo(function GraphLegend({
{colorMode === "risk" && (
<>
<div className="flex items-center gap-2 text-[var(--color-text-tertiary)]">
- <span className="w-2 h-2 rounded-full shrink-0 bg-[#22c55e]" />
+ <span className="w-2 h-2 rounded-full shrink-0 bg-[var(--color-risk-low)]" />
<span>Low risk</span>
</div>
<div className="flex items-center gap-2 text-[var(--color-text-tertiary)]">
- <span className="w-2 h-2 rounded-full shrink-0 bg-[#f59520]" />
+ <span className="w-2 h-2 rounded-full shrink-0 bg-[var(--color-risk-medium)]" />
<span>Medium risk</span>
</div>
<div className="flex items-center gap-2 text-[var(--color-text-tertiary)]">
- <span className="w-2 h-2 rounded-full shrink-0 bg-[#ef4444]" />
+ <span className="w-2 h-2 rounded-full shrink-0 bg-[var(--color-risk-high)]" />
<span>High risk</span>
</div>
</>
@@ -170,11 +238,11 @@ export const GraphLegend = memo(function GraphLegend({
Edges
</p>
{([
- { type: "import", label: "Imports", color: EDGE_COLORS.import },
- { type: "crossCommunity", label: "Cross-community", color: EDGE_COLORS.crossCommunity },
- { type: "internal", label: "Internal", color: EDGE_COLORS.internal },
- { type: "dynamic", label: "Dynamic", color: EDGE_COLORS.dynamic },
- { type: "lowConfidence", label: "Low confidence", color: EDGE_COLORS.lowConfidence },
+ { type: "import", label: "Imports", color: edgeColors.import },
+ { type: "crossCommunity", label: "Cross-community", color: edgeColors.crossCommunity },
+ { type: "internal", label: "Internal", color: edgeColors.internal },
+ { type: "dynamic", label: "Dynamic", color: edgeColors.dynamic },
+ { type: "lowConfidence", label: "Low confidence", color: edgeColors.lowConfidence },
] as const).map((et) => {
const checked = visibleEdgeTypes.has(et.type);
return (
@@ -201,7 +269,6 @@ export const GraphLegend = memo(function GraphLegend({
<p className="text-[9px] text-[var(--color-text-tertiary)] pt-1 border-t border-[var(--color-border-default)]">
{viewMode === "dead" && "Showing unreachable files"}
{viewMode === "hotfiles" && "Most-committed files (30d)"}
- {viewMode === "architecture" && "Entry-point reachable (3 hops)"}
{viewMode === "unified" && "Unified: community + risk signals"}
</p>
)}
diff --git a/packages/ui/src/graph/graph-toolbar.tsx b/packages/ui/src/graph/graph-toolbar.tsx
index 284e37546..ce05afcaf 100644
--- a/packages/ui/src/graph/graph-toolbar.tsx
+++ b/packages/ui/src/graph/graph-toolbar.tsx
@@ -25,7 +25,7 @@ import { Button } from "../ui/button";
export type ColorMode = "language" | "community" | "risk";
export type ViewMode = "module" | "full" | "architecture" | "dead" | "hotfiles" | "unified";
-export type LayoutMode = "hierarchical" | "force";
+export type LayoutMode = "hierarchical" | "force" | "radial";
export type GraphTheme = "light" | "dark";
/**
@@ -115,6 +115,14 @@ const LAYOUT_MODES: { id: LayoutMode; icon: typeof GitBranch; label: string }[]
{ id: "hierarchical", icon: GitBranch, label: "Hierarchical" },
];
+// The constellation (Knowledge Graph) scope is always radial — a single
+// disabled-looking indicator replaces the Force/Hierarchical toggle there.
+const RADIAL_LAYOUT: { id: LayoutMode; icon: typeof GitFork; label: string } = {
+ id: "radial",
+ icon: GitFork,
+ label: "Radial",
+};
+
export const GraphToolbar = memo(function GraphToolbar({
viewMode,
onViewChange,
@@ -142,6 +150,11 @@ export const GraphToolbar = memo(function GraphToolbar({
// wire-format ``viewMode`` value through query params without translation.
const { scope: activeScope, overlays: activeOverlays } = viewModeToScopeOverlays(viewMode);
+ // The Knowledge Graph (constellation) scope is a fixed radial composition:
+ // overlays / FA2 / hierarchical layout don't apply, so those controls are
+ // hidden here rather than shown in a half-working state.
+ const isConstellation = activeScope === "architecture";
+
const setScope = (next: Scope) => {
onViewChange(scopeOverlaysToViewMode(next, activeOverlays));
};
@@ -180,7 +193,8 @@ export const GraphToolbar = memo(function GraphToolbar({
})}
</div>
- {/* Overlays (additive signal chips) */}
+ {/* Overlays (additive signal chips) — not applicable in the constellation */}
+ {!isConstellation && (
<div className="flex gap-0.5 rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)]/90 backdrop-blur-sm p-1 shadow-lg shadow-black/20">
{OVERLAYS.map((o) => {
const Icon = o.icon;
@@ -204,29 +218,45 @@ export const GraphToolbar = memo(function GraphToolbar({
);
})}
</div>
+ )}
<div className="flex gap-1.5 items-center">
<div className="flex gap-0.5 rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)]/90 backdrop-blur-sm p-1 shadow-lg shadow-black/20">
- {LAYOUT_MODES.map((m) => {
- const Icon = m.icon;
- const isActive = layoutMode === m.id;
- return (
- <button
- key={m.id}
- onClick={() => onLayoutModeChange(m.id)}
- className={`flex items-center gap-1 px-2 py-1 rounded-md text-[10px] font-medium transition-all ${
- isActive
- ? "bg-[var(--color-accent-graph)]/15 text-[var(--color-accent-graph)]"
- : "text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-overlay)]"
- }`}
- title={m.label}
- aria-label={m.label}
- aria-pressed={isActive}
- >
- <Icon className="w-3 h-3" />
- </button>
- );
- })}
+ {isConstellation ? (
+ // Constellation is locked to the radial layout; show a single
+ // active indicator instead of the Force/Hierarchical toggle.
+ <button
+ key={RADIAL_LAYOUT.id}
+ disabled
+ className="flex items-center gap-1 px-2 py-1 rounded-md text-[10px] font-medium bg-[var(--color-accent-graph)]/15 text-[var(--color-accent-graph)] cursor-default"
+ title={`${RADIAL_LAYOUT.label} (fixed for Knowledge Graph)`}
+ aria-label={RADIAL_LAYOUT.label}
+ aria-pressed
+ >
+ <RADIAL_LAYOUT.icon className="w-3 h-3" />
+ </button>
+ ) : (
+ LAYOUT_MODES.map((m) => {
+ const Icon = m.icon;
+ const isActive = layoutMode === m.id;
+ return (
+ <button
+ key={m.id}
+ onClick={() => onLayoutModeChange(m.id)}
+ className={`flex items-center gap-1 px-2 py-1 rounded-md text-[10px] font-medium transition-all ${
+ isActive
+ ? "bg-[var(--color-accent-graph)]/15 text-[var(--color-accent-graph)]"
+ : "text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-overlay)]"
+ }`}
+ title={m.label}
+ aria-label={m.label}
+ aria-pressed={isActive}
+ >
+ <Icon className="w-3 h-3" />
+ </button>
+ );
+ })
+ )}
</div>
<div className="flex gap-0.5 rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)]/90 backdrop-blur-sm p-1 shadow-lg shadow-black/20">
@@ -264,6 +294,9 @@ export const GraphToolbar = memo(function GraphToolbar({
>
{graphTheme === "dark" ? <Sun className="w-3.5 h-3.5" /> : <Moon className="w-3.5 h-3.5" />}
</Button>
+ {/* Path finder / execution flows operate on file-level nodes and
+ don't apply to the community constellation — hidden there. */}
+ {!isConstellation && (
<Button
size="sm"
variant="ghost"
@@ -275,6 +308,8 @@ export const GraphToolbar = memo(function GraphToolbar({
>
<Route className="w-3.5 h-3.5" />
</Button>
+ )}
+ {!isConstellation && (
<Button
size="sm"
variant="ghost"
@@ -286,6 +321,8 @@ export const GraphToolbar = memo(function GraphToolbar({
>
<Workflow className="w-3.5 h-3.5" />
</Button>
+ )}
+ {!isConstellation && (
<Button
size="sm"
variant="ghost"
@@ -297,6 +334,7 @@ export const GraphToolbar = memo(function GraphToolbar({
>
<EyeOff className="w-3.5 h-3.5" />
</Button>
+ )}
<Button
size="sm"
variant="ghost"
diff --git a/packages/ui/src/graph/graph-tooltip.tsx b/packages/ui/src/graph/graph-tooltip.tsx
index 3f989c3e9..6a5df4d30 100644
--- a/packages/ui/src/graph/graph-tooltip.tsx
+++ b/packages/ui/src/graph/graph-tooltip.tsx
@@ -21,9 +21,9 @@ interface GraphTooltipProps {
}
function importanceLabel(pagerank: number): { label: string; color: string } {
- if (pagerank >= 0.01) return { label: "High", color: "#ef4444" };
- if (pagerank >= 0.003) return { label: "Medium", color: "#f59520" };
- return { label: "Low", color: "#22c55e" };
+ if (pagerank >= 0.01) return { label: "High", color: "var(--color-risk-high)" };
+ if (pagerank >= 0.003) return { label: "Medium", color: "var(--color-risk-medium)" };
+ return { label: "Low", color: "var(--color-risk-low)" };
}
export function GraphTooltip({
@@ -216,7 +216,7 @@ export function GraphTooltip({
className="h-full rounded-full transition-all duration-300"
style={{
width: `${Math.max(2, Math.round(docPct * 100))}%`,
- background: docPct >= 0.7 ? "#22c55e" : docPct >= 0.3 ? "#f59520" : "#ef4444",
+ background: docPct >= 0.7 ? "var(--color-success)" : docPct >= 0.3 ? "var(--color-warning)" : "var(--color-error)",
}}
/>
</div>
diff --git a/packages/ui/src/graph/graph-truncation-banner.tsx b/packages/ui/src/graph/graph-truncation-banner.tsx
index 4be37bbce..7ca9d6831 100644
--- a/packages/ui/src/graph/graph-truncation-banner.tsx
+++ b/packages/ui/src/graph/graph-truncation-banner.tsx
@@ -3,7 +3,7 @@
/**
* GraphTruncationBanner — shown when the server capped the full-graph
* response to top-N by PageRank. Communicates the cap to the user and offers
- * an escape hatch ("load all").
+ * a stepped "load more" escape hatch (one page of importance at a time).
*
* Lives in `packages/ui` so the hosted frontend can reuse it.
*/
@@ -13,10 +13,17 @@ import { Button } from "../ui/button";
import { cn } from "../lib/cn";
import { formatNumber } from "../lib/format";
+export const LOAD_MORE_STEP = 1500;
+export const LOAD_MORE_CEILING = 6000;
+const SLOW_HINT_THRESHOLD = 3000;
+
export interface GraphTruncationBannerProps {
shown: number;
total: number;
- onLoadAll?: () => void;
+ /** Current node cap in effect; drives the next stepped target. */
+ limit: number;
+ /** Step the cap up by LOAD_MORE_STEP (capped at LOAD_MORE_CEILING). */
+ onLoadMore?: (nextLimit: number) => void;
/** When known, suggests a healthier scope to switch to. */
onSwitchToArchitecture?: () => void;
className?: string;
@@ -25,24 +32,33 @@ export interface GraphTruncationBannerProps {
export function GraphTruncationBanner({
shown,
total,
- onLoadAll,
+ limit,
+ onLoadMore,
onSwitchToArchitecture,
className,
}: GraphTruncationBannerProps) {
+ const nextLimit = Math.min(limit + LOAD_MORE_STEP, LOAD_MORE_CEILING, total);
+ const canLoadMore = nextLimit > limit;
+ const slowHint = nextLimit > SLOW_HINT_THRESHOLD;
+
return (
<div
role="status"
aria-live="polite"
className={cn(
- "flex items-center gap-3 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-[12px] text-amber-300",
+ "flex items-center gap-3 rounded-lg border border-[var(--color-warning)]/40 bg-[var(--color-warning)]/10 px-3 py-2 text-[12px] text-[var(--color-text-primary)]",
className,
)}
>
- <AlertTriangle className="h-4 w-4 shrink-0" />
+ <AlertTriangle className="h-4 w-4 shrink-0 text-[var(--color-warning)]" />
<p className="min-w-0 flex-1">
Showing <span className="font-semibold tabular-nums">{formatNumber(shown)}</span> of{" "}
- <span className="font-semibold tabular-nums">{formatNumber(total)}</span> nodes — the
- full graph was capped for performance.
+ <span className="font-semibold tabular-nums">{formatNumber(total)}</span> by importance.
+ {slowHint && canLoadMore && (
+ <span className="ml-1 text-[var(--color-text-secondary)]">
+ Loading more may be slow.
+ </span>
+ )}
</p>
<div className="flex shrink-0 items-center gap-2">
{onSwitchToArchitecture && (
@@ -50,19 +66,19 @@ export function GraphTruncationBanner({
size="sm"
variant="ghost"
onClick={onSwitchToArchitecture}
- className="h-7 px-2 text-[11px] text-amber-200 hover:bg-amber-500/20 hover:text-amber-100"
+ className="h-7 px-2 text-[11px] font-medium text-[var(--color-warning)] hover:bg-[var(--color-warning)]/15 hover:text-[var(--color-warning)]"
>
Switch to Architecture
</Button>
)}
- {onLoadAll && (
+ {onLoadMore && canLoadMore && (
<Button
size="sm"
variant="ghost"
- onClick={onLoadAll}
- className="h-7 px-2 text-[11px] text-amber-200 hover:bg-amber-500/20 hover:text-amber-100"
+ onClick={() => onLoadMore(nextLimit)}
+ className="h-7 px-2 text-[11px] font-medium text-[var(--color-warning)] hover:bg-[var(--color-warning)]/15 hover:text-[var(--color-warning)]"
>
- Load all
+ Load {formatNumber(Math.min(LOAD_MORE_STEP, nextLimit - limit))} more
</Button>
)}
</div>
diff --git a/packages/ui/src/graph/node-badges.tsx b/packages/ui/src/graph/node-badges.tsx
index a4283bec9..829a4eff3 100644
--- a/packages/ui/src/graph/node-badges.tsx
+++ b/packages/ui/src/graph/node-badges.tsx
@@ -43,21 +43,21 @@ export const BADGE_DEFS: readonly BadgeDef[] = [
/** Hex colors mirrored on the Sigma canvas dot renderer (see sigma-canvas). */
export const BADGE_COLORS: Record<BadgeDef["tone"], string> = {
- danger: "#ef4444",
- warn: "#f59520",
- success: "#22c55e",
- info: "#a78bfa",
- accent: "#60a5fa",
- neutral: "#94a3b8",
+ danger: "var(--color-error)",
+ warn: "var(--color-accent-primary)",
+ success: "var(--color-success)",
+ info: "var(--color-plum-400)",
+ accent: "var(--color-info)",
+ neutral: "var(--color-text-tertiary)",
};
const TONE_CLASSES: Record<BadgeDef["tone"], string> = {
- danger: "bg-red-500/10 text-red-400",
- warn: "bg-amber-500/10 text-amber-400",
- success: "bg-green-500/10 text-green-400",
- info: "bg-purple-500/10 text-purple-400",
- accent: "bg-sky-500/10 text-sky-400",
- neutral: "bg-slate-500/10 text-slate-400",
+ danger: "bg-[var(--color-error)]/10 text-[var(--color-error)]",
+ warn: "bg-[var(--color-warning)]/10 text-[var(--color-warning)]",
+ success: "bg-[var(--color-success)]/10 text-[var(--color-success)]",
+ info: "bg-[var(--color-plum-400)]/10 text-[var(--color-plum-400)]",
+ accent: "bg-[var(--color-info)]/10 text-[var(--color-info)]",
+ neutral: "bg-[var(--color-text-tertiary)]/10 text-[var(--color-text-tertiary)]",
};
export interface NodeBadgesProps {
diff --git a/packages/ui/src/graph/path-finder-panel.tsx b/packages/ui/src/graph/path-finder-panel.tsx
index fd0c4fb7a..697c463b7 100644
--- a/packages/ui/src/graph/path-finder-panel.tsx
+++ b/packages/ui/src/graph/path-finder-panel.tsx
@@ -234,7 +234,7 @@ export function PathFinderPanel({
className="w-full h-7 text-xs font-medium gap-1.5"
style={{
background: "var(--color-accent-graph)",
- color: "#000",
+ color: "var(--color-text-on-accent)",
}}
>
{loading ? (
diff --git a/packages/ui/src/graph/sigma/constants.ts b/packages/ui/src/graph/sigma/constants.ts
index b3484bd9c..3dc717292 100644
--- a/packages/ui/src/graph/sigma/constants.ts
+++ b/packages/ui/src/graph/sigma/constants.ts
@@ -3,19 +3,10 @@ import { LANGUAGE_COLORS, languageColor } from "../../lib/confidence";
// Re-export for convenience
export { LANGUAGE_COLORS, languageColor };
-// ---- Community palette (24 perceptually-optimized colors for dark backgrounds) ----
-
-export const COMMUNITY_COLORS = [
- "#FF6B6B", "#4ECDC4", "#FFE66D", "#AA96DA", "#F38181",
- "#A8E6CF", "#87CEEB", "#F4A460", "#98FB98", "#FF69B4",
- "#20B2AA", "#FFA07A", "#9370DB", "#3CB371", "#FF7F50",
- "#6495ED", "#DAA520", "#00CED1", "#FF1493", "#32CD32",
- "#BA55D3", "#FF8C00", "#7B68EE", "#48D1CC",
-];
-
-export function getCommunityColor(communityId: number): string {
- return COMMUNITY_COLORS[communityId % COMMUNITY_COLORS.length] ?? "#6366f1";
-}
+// Community colors are no longer a static jewel-tone array. They live as the
+// warm `--color-community-*` token pairs in styles/globals.css and are resolved
+// at runtime (per theme) by getCommunityFamily in shared/use-theme-tokens.ts.
+// use-sigma's color effect applies them so they track light/dark.
// ---- Node base sizes ----
@@ -50,15 +41,52 @@ export function getNodeMass(
: 3 * baseMassMultiplier;
}
-// ---- Edge colors by semantic type ----
+// ---- Edge colors by semantic type (warm theme palette) ----
+//
+// Per-theme literal hex (canvas can't resolve var()); mirrors the semantic
+// edge palette in lib/confidence.ts EDGE_COLORS — import = brand orange,
+// crossCommunity = plum (--color-accent-secondary), internal = sage/green
+// (--color-success family). Dark variants are lifted to read on the near-black
+// plum canvas. Resolve via edgeColorsForTheme(); kept literal + allowlisted.
+
+export type EdgeKind =
+ | "import"
+ | "crossCommunity"
+ | "internal"
+ | "dynamic"
+ | "lowConfidence";
+
+export const EDGE_COLORS_BY_THEME: Record<
+ "light" | "dark",
+ Record<EdgeKind, string>
+> = {
+ light: {
+ import: "#f59520", // brand orange
+ crossCommunity: "#58436c", // plum (accent-secondary)
+ internal: "#1d8155", // sage/green (success)
+ dynamic: "#8c7f88", // muted text-tertiary
+ lowConfidence: "#b8aeb3", // faint plum-gray
+ },
+ dark: {
+ import: "#f59520", // brand orange
+ crossCommunity: "#a98fc4", // plum-300 (accent-secondary dark)
+ internal: "#34d399", // green (success dark)
+ dynamic: "#786f84", // muted text-tertiary dark
+ lowConfidence: "#544c5e", // faint plum-gray dark
+ },
+};
+
+export function edgeColorsForTheme(
+ theme: "light" | "dark",
+): Record<EdgeKind, string> {
+ return EDGE_COLORS_BY_THEME[theme] ?? EDGE_COLORS_BY_THEME.dark;
+}
-export const EDGE_COLORS = {
- import: "#1d4ed8",
- crossCommunity: "#7c3aed",
- internal: "#2d5a3d",
- dynamic: "#6b7280",
- lowConfidence: "#475569",
-} as const;
+/**
+ * Default edge palette for build-time adapter use before the theme-aware
+ * recolor effect runs. Dark is the product default theme.
+ */
+export const EDGE_COLORS = EDGE_COLORS_BY_THEME.dark;
export const EDGE_SIZE_MULTIPLIERS = {
import: 0.6,
@@ -93,12 +121,8 @@ export function getFA2Settings(nodeCount: number): Record<string, unknown> {
* How long FA2 should run before stopping (ms).
*/
export function getLayoutDuration(nodeCount: number): number {
- if (nodeCount > 10000) return 20000;
- if (nodeCount > 5000) return 15000;
if (nodeCount > 2000) return 12000;
- if (nodeCount > 1000) return 10000;
- if (nodeCount > 500) return 8000;
- return 5000;
+ return 8000;
}
// ---- Noverlap post-layout settings ----
@@ -122,12 +146,11 @@ export const LABEL_DENSITY = 0.15;
export const LABEL_GRID_CELL_SIZE = 80;
export const LABEL_RENDERED_SIZE_THRESHOLD = 6;
-// ---- Surface depth system (for panels, tooltips, controls) ----
+/** Sparser labels on large graphs to keep repaint cheap. */
+export function getLabelDensity(nodeCount: number): number {
+ return nodeCount > 2000 ? 0.07 : LABEL_DENSITY;
+}
-export const SURFACE_COLORS = {
- void: "#06060a",
- deep: "#0a0a10",
- surface: "#101018",
- elevated: "#16161f",
- hover: "#1c1c28",
-} as const;
+export function getLabelRenderedSizeThreshold(nodeCount: number): number {
+ return nodeCount > 2000 ? 8 : LABEL_RENDERED_SIZE_THRESHOLD;
+}
diff --git a/packages/ui/src/graph/sigma/constellation-adapter.ts b/packages/ui/src/graph/sigma/constellation-adapter.ts
new file mode 100644
index 000000000..4919ae24f
--- /dev/null
+++ b/packages/ui/src/graph/sigma/constellation-adapter.ts
@@ -0,0 +1,348 @@
+/**
+ * Constellation adapter — turns the /architecture community super-graph
+ * into a Graphology graph laid out radially (see radial-layout.ts).
+ *
+ * One node per community ("hub"), one dark repo-core at the origin, and
+ * aggregated cross-community edges. NO physics: positions come straight
+ * from the deterministic radial layout. Colors are placeholders here; the
+ * theme-aware recolor in use-sigma is the source of truth (canvas can't
+ * resolve var()), exactly like the file/module adapters.
+ */
+
+import Graph from "graphology";
+import type {
+ ArchitectureGraph,
+ ArchitectureNode,
+ CommunitySlice,
+} from "@repowise-dev/types/graph";
+import type { SigmaNodeAttributes, SigmaEdgeAttributes } from "./types";
+import { EDGE_COLORS } from "./constants";
+import { computeRadialLayout, hubSizeFromMembers } from "./radial-layout";
+
+/** Stable hub node id derived from the community id. */
+export function hubNodeId(communityId: number): string {
+ return `__community__${communityId}`;
+}
+
+/** The single repo-core node id. */
+export const CORE_NODE_ID = "__repo_core__";
+
+// Neutral build-time fills; recolored per theme by use-sigma's color effect.
+const PLACEHOLDER_HUB_COLOR = EDGE_COLORS.crossCommunity;
+const PLACEHOLDER_CORE_COLOR = "#1a1320";
+
+/** Uppercase, trimmed community label; falls back to dirname / "Community N". */
+function hubLabel(node: ArchitectureNode): string {
+ const raw = (node.label ?? "").trim();
+ if (raw) return raw.toUpperCase();
+ const fromFile = (node.top_file ?? "").split("/").slice(-2, -1)[0];
+ if (fromFile) return fromFile.toUpperCase();
+ return `COMMUNITY ${node.community_id}`;
+}
+
+/** Curvature mirrors the file/module adapters (deterministic per edge key). */
+function computeEdgeCurvature(edgeKey: string): number {
+ let hash = 5381;
+ for (let i = 0; i < edgeKey.length; i++) {
+ hash = ((hash << 5) + hash + (edgeKey.charCodeAt(i) ?? 0)) | 0;
+ }
+ return 0.12 + (Math.abs(hash) % 80) / 1000;
+}
+
+export interface ConstellationOptions {
+ /** Repo name for the core label. Falls back to "REPO". */
+ repoName?: string;
+ /** Add faint hub→core spokes. Off by default (can read as noise). */
+ includeCoreSpokes?: boolean;
+}
+
+/**
+ * Build the constellation graphology graph from the architecture payload.
+ * Pure + deterministic. Empty/one-community repos render what exists.
+ */
+export function architectureToGraphology(
+ arch: ArchitectureGraph,
+ options?: ConstellationOptions,
+): Graph<SigmaNodeAttributes, SigmaEdgeAttributes> {
+ const result = new Graph<SigmaNodeAttributes, SigmaEdgeAttributes>();
+
+ const layout = computeRadialLayout(
+ arch.nodes.map((n) => ({
+ community_id: n.community_id,
+ member_count: n.member_count,
+ avg_pagerank: n.avg_pagerank,
+ })),
+ );
+
+ // Repo-core: dark plum disc at the origin, largest size, fixed.
+ result.addNode(CORE_NODE_ID, {
+ x: layout.core.x,
+ y: layout.core.y,
+ size: 40,
+ color: PLACEHOLDER_CORE_COLOR,
+ label: (options?.repoName || "REPO").toUpperCase(),
+ nodeType: "core",
+ fullPath: "",
+ language: "",
+ communityId: -1,
+ pagerank: 0,
+ betweenness: 0,
+ isTest: false,
+ isEntryPoint: false,
+ hasDoc: false,
+ symbolCount: 0,
+ forceLabel: true,
+ zIndex: 3,
+ originalColor: PLACEHOLDER_CORE_COLOR,
+ });
+
+ // One hub disc per community.
+ for (const node of arch.nodes) {
+ const pos = layout.hubs.get(node.community_id);
+ if (!pos) continue;
+ const size = hubSizeFromMembers(node.member_count);
+ result.addNode(hubNodeId(node.community_id), {
+ x: pos.x,
+ y: pos.y,
+ size,
+ color: PLACEHOLDER_HUB_COLOR,
+ label: hubLabel(node),
+ nodeType: "hub",
+ fullPath: node.top_file ?? "",
+ language: node.languages?.[0] ?? "",
+ communityId: node.community_id,
+ pagerank: node.avg_pagerank,
+ betweenness: 0,
+ isTest: false,
+ isEntryPoint: false,
+ hasDoc: node.doc_coverage_pct > 0,
+ symbolCount: 0,
+ memberCount: node.member_count,
+ hotspotCount: node.hotspot_count,
+ deadCount: node.dead_count,
+ docCoveragePct: node.doc_coverage_pct,
+ languages: node.languages ?? [],
+ hasDecision: node.has_decision,
+ forceLabel: true,
+ zIndex: 2,
+ originalColor: PLACEHOLDER_HUB_COLOR,
+ });
+ }
+
+ // Aggregated cross-community edges: thin plum spokes beneath the hubs.
+ const maxEdgeCount = arch.edges.reduce((m, e) => Math.max(m, e.edge_count), 1);
+ for (const edge of arch.edges) {
+ const src = hubNodeId(edge.source);
+ const tgt = hubNodeId(edge.target);
+ if (!result.hasNode(src) || !result.hasNode(tgt)) continue;
+ const edgeKey = src + "→" + tgt;
+ if (result.hasEdge(edgeKey)) continue;
+ // 1.5–2.5px proportional to edge_count.
+ const size = 1.5 + (edge.edge_count / maxEdgeCount);
+ result.addEdgeWithKey(edgeKey, src, tgt, {
+ size,
+ color: EDGE_COLORS.crossCommunity,
+ type: "curved",
+ curvature: computeEdgeCurvature(edgeKey),
+ edgeKind: "crossCommunity",
+ importedNames: [],
+ edgeCount: edge.edge_count,
+ zIndex: 0,
+ });
+ }
+
+ // Optional faint hub→core spokes (composition aid; off by default).
+ if (options?.includeCoreSpokes) {
+ for (const node of arch.nodes) {
+ const src = hubNodeId(node.community_id);
+ if (!result.hasNode(src)) continue;
+ const edgeKey = src + "→" + CORE_NODE_ID;
+ if (result.hasEdge(edgeKey)) continue;
+ result.addEdgeWithKey(edgeKey, src, CORE_NODE_ID, {
+ size: 0.6,
+ color: EDGE_COLORS.lowConfidence,
+ type: "line",
+ curvature: 0,
+ edgeKind: "lowConfidence",
+ importedNames: [],
+ edgeCount: 1,
+ zIndex: 0,
+ });
+ }
+ }
+
+ return result;
+}
+
+/** Satellite (member file) node size in sigma units, ∝ pagerank, clamped 6-14
+ * to match the file-node sizing band used elsewhere in the graph. */
+export function satelliteSizeFromPagerank(pagerank: number): number {
+ return Math.max(6, Math.min(14, 6 + pagerank * 16));
+}
+
+/** Result of merging a slice into the constellation: the (mutated) graph plus
+ * the satellite node ids that were added, for camera framing + collapse. */
+export interface SliceMergeResult {
+ satelliteIds: string[];
+}
+
+/**
+ * Blossom a community's member files as satellites around its hub, using the
+ * SAME deterministic satellite math as the initial layout (golden-angle spiral,
+ * hash jitter, in-cluster noverlap) — no FA2. Mutates *graph* in place: adds
+ * file nodes for members, thin intra-community edges, faint membership spokes
+ * for members with no intra edge, plus minimal boundary stubs + cross-cluster
+ * edges to already-visible hubs.
+ *
+ * Idempotent per community: re-merging the same slice skips existing nodes.
+ * Colors are placeholders (recolored per theme by use-sigma); satellites are
+ * `nodeType:"file"` so the community-mode recolor paints them the family SOFT
+ * variant automatically.
+ */
+export function mergeCommunitySlice(
+ graph: Graph<SigmaNodeAttributes, SigmaEdgeAttributes>,
+ communityId: number,
+ slice: CommunitySlice,
+): SliceMergeResult {
+ const hubId = hubNodeId(communityId);
+ if (!graph.hasNode(hubId)) return { satelliteIds: [] };
+ const hub = graph.getNodeAttributes(hubId);
+
+ const members = slice.nodes.filter((n) => !n.is_boundary);
+ const boundary = slice.nodes.filter((n) => n.is_boundary);
+ const memberIds = new Set(members.map((m) => m.node_id));
+
+ // Deterministic satellite positions around the hub. We reuse computeRadialLayout
+ // with a single synthetic community sized to this slice, so the spiral/jitter/
+ // noverlap exactly mirror the layout module — then translate onto the hub.
+ const memberCount = hub.memberCount ?? members.length;
+ const layout = computeRadialLayout(
+ [{ community_id: communityId, member_count: memberCount, avg_pagerank: hub.pagerank ?? 0 }],
+ new Map([[communityId, members.map((m) => m.node_id)]]),
+ );
+ // The synthetic layout centers the hub at its own ring position; shift the
+ // satellites so they sit around THIS hub's actual position.
+ const synthHub = layout.hubs.get(communityId) ?? { x: 0, y: 0 };
+ const dx = hub.x - synthHub.x;
+ const dy = hub.y - synthHub.y;
+
+ const satelliteIds: string[] = [];
+
+ for (const m of members) {
+ if (graph.hasNode(m.node_id)) {
+ satelliteIds.push(m.node_id);
+ continue;
+ }
+ const pos = layout.satellites.get(m.node_id) ?? synthHub;
+ const baseSize = satelliteSizeFromPagerank(m.pagerank ?? 0);
+ graph.addNode(m.node_id, {
+ x: pos.x + dx,
+ y: pos.y + dy,
+ size: baseSize,
+ color: EDGE_COLORS.crossCommunity, // placeholder; recolored to family soft
+ label: m.node_id.split("/").pop() ?? m.node_id,
+ nodeType: "file",
+ fullPath: m.node_id,
+ language: m.language,
+ communityId,
+ pagerank: m.pagerank ?? 0,
+ betweenness: m.betweenness ?? 0,
+ isTest: m.is_test ?? false,
+ isEntryPoint: m.is_entry_point ?? false,
+ hasDoc: m.has_doc ?? false,
+ symbolCount: m.symbol_count ?? 0,
+ isHotspot: m.is_hotspot ?? false,
+ isDead: m.is_dead ?? false,
+ hasDecision: m.has_decision ?? false,
+ primaryOwner: m.primary_owner ?? null,
+ zIndex: 1,
+ originalColor: EDGE_COLORS.crossCommunity,
+ });
+ satelliteIds.push(m.node_id);
+ }
+
+ // Boundary stubs: tiny, rendered only so cross-cluster edges have an endpoint.
+ // We DROP visual prominence (size ~3) and only keep ones whose hub is already
+ // visible OR that bridge to another expanded member; otherwise the stub anchors
+ // near this hub. (Chosen: render tiny rather than omit, so the cross link is
+ // visibly anchored — documented in the report.)
+ for (const b of boundary) {
+ if (graph.hasNode(b.node_id)) continue;
+ graph.addNode(b.node_id, {
+ x: hub.x + (((b.node_id.length * 7) % 40) - 20),
+ y: hub.y + (((b.node_id.length * 13) % 40) - 20),
+ size: 3,
+ color: EDGE_COLORS.lowConfidence,
+ label: "",
+ nodeType: "file",
+ fullPath: b.node_id,
+ language: b.language,
+ communityId: b.community_id,
+ pagerank: 0,
+ betweenness: 0,
+ isTest: false,
+ isEntryPoint: false,
+ hasDoc: false,
+ symbolCount: 0,
+ zIndex: 0,
+ originalColor: EDGE_COLORS.lowConfidence,
+ });
+ }
+
+ // Edges among members (thin internal lines) + cross-cluster links to stubs.
+ // Track which members got at least one intra edge so the rest get a spoke.
+ const hasIntraEdge = new Set<string>();
+ for (const link of slice.links) {
+ const srcIn = memberIds.has(link.source);
+ const tgtIn = memberIds.has(link.target);
+ if (!graph.hasNode(link.source) || !graph.hasNode(link.target)) continue;
+ const key = `slice:${link.source}→${link.target}`;
+ if (graph.hasEdge(key)) continue;
+ if (srcIn && tgtIn) {
+ hasIntraEdge.add(link.source);
+ hasIntraEdge.add(link.target);
+ graph.addEdgeWithKey(key, link.source, link.target, {
+ size: 0.5,
+ color: EDGE_COLORS.internal,
+ type: "line",
+ curvature: 0,
+ edgeKind: "internal", // thin internal hue (theme recolor is source of truth)
+ importedNames: link.imported_names ?? [],
+ edgeCount: 1,
+ zIndex: 0,
+ });
+ } else {
+ // Cross-cluster: member <-> outside boundary stub.
+ graph.addEdgeWithKey(key, link.source, link.target, {
+ size: 0.6,
+ color: EDGE_COLORS.crossCommunity,
+ type: "line",
+ curvature: 0,
+ edgeKind: "crossCommunity",
+ importedNames: link.imported_names ?? [],
+ edgeCount: 1,
+ zIndex: 0,
+ });
+ }
+ }
+
+ // Synthetic membership spokes: members with no intra edge still tie to the hub
+ // so the cluster reads as a wheel, not dust (faint lowConfidence hue).
+ for (const m of members) {
+ if (hasIntraEdge.has(m.node_id)) continue;
+ const key = `spoke:${hubId}→${m.node_id}`;
+ if (graph.hasEdge(key)) continue;
+ graph.addEdgeWithKey(key, hubId, m.node_id, {
+ size: 0.4,
+ color: EDGE_COLORS.lowConfidence,
+ type: "line",
+ curvature: 0,
+ edgeKind: "lowConfidence",
+ importedNames: [],
+ edgeCount: 1,
+ zIndex: 0,
+ });
+ }
+
+ return { satelliteIds };
+}
diff --git a/packages/ui/src/graph/sigma/depth-rings.tsx b/packages/ui/src/graph/sigma/depth-rings.tsx
new file mode 100644
index 000000000..e4a090f9d
--- /dev/null
+++ b/packages/ui/src/graph/sigma/depth-rings.tsx
@@ -0,0 +1,77 @@
+"use client";
+
+import { useEffect, useRef } from "react";
+import type Sigma from "sigma";
+import { resolveToken, useThemeVersion } from "../../shared/use-theme-tokens";
+
+interface DepthRingsProps {
+ sigma: Sigma | null;
+ /** Ring radii in *graph* coordinates (from computeRadialLayout). */
+ ringRadii: readonly [number, number, number] | null;
+}
+
+/**
+ * Faint concentric "depth" rings drawn behind the constellation. An SVG
+ * underlay synced to the Sigma camera: we project the graph origin and a
+ * point one radius out into viewport pixels every frame, so the rings track
+ * zoom/pan smoothly with transform-only updates (no re-layout). Captioned
+ * only in the legend ("inner = entry surface"), never on-canvas.
+ */
+export function DepthRings({ sigma, ringRadii }: DepthRingsProps) {
+ const svgRef = useRef<SVGSVGElement>(null);
+ const circleRefs = useRef<(SVGCircleElement | null)[]>([]);
+ const themeVersion = useThemeVersion();
+
+ useEffect(() => {
+ if (!sigma || !ringRadii) return;
+ const svg = svgRef.current;
+ if (!svg) return;
+
+ const stroke = resolveToken("--color-canvas-dot", "rgba(128,128,128,0.08)");
+
+ const draw = () => {
+ const center = sigma.graphToViewport({ x: 0, y: 0 });
+ // Project a point one unit-radius along +x to get the pixel scale.
+ const edge = sigma.graphToViewport({ x: ringRadii[0], y: 0 });
+ const pxPerRing = Math.hypot(edge.x - center.x, edge.y - center.y);
+ ringRadii.forEach((_, i) => {
+ const c = circleRefs.current[i];
+ if (!c) return;
+ c.setAttribute("cx", String(center.x));
+ c.setAttribute("cy", String(center.y));
+ c.setAttribute("r", String(pxPerRing * (i + 1)));
+ c.setAttribute("stroke", stroke);
+ });
+ };
+
+ sigma.on("afterRender", draw);
+ draw();
+ return () => {
+ sigma.off("afterRender", draw);
+ };
+ }, [sigma, ringRadii, themeVersion]);
+
+ if (!ringRadii) return null;
+
+ return (
+ <svg
+ ref={svgRef}
+ className="absolute inset-0 w-full h-full pointer-events-none z-0"
+ aria-hidden="true"
+ >
+ {[0, 1, 2].map((i) => (
+ <circle
+ key={i}
+ ref={(el) => {
+ circleRefs.current[i] = el;
+ }}
+ cx={0}
+ cy={0}
+ r={0}
+ fill="none"
+ strokeWidth={1}
+ />
+ ))}
+ </svg>
+ );
+}
diff --git a/packages/ui/src/graph/sigma/graphology-adapter.ts b/packages/ui/src/graph/sigma/graphology-adapter.ts
index 4dea22acc..def7ec450 100644
--- a/packages/ui/src/graph/sigma/graphology-adapter.ts
+++ b/packages/ui/src/graph/sigma/graphology-adapter.ts
@@ -16,9 +16,13 @@ import {
CURVED_EDGE_THRESHOLD,
getScaledNodeSize,
getNodeMass,
- getCommunityColor,
languageColor,
} from "./constants";
+
+// Build-time placeholder for module/community node fills. The theme-aware
+// community palette is applied by use-sigma's color effect (per light/dark);
+// this neutral keeps modules visible for the one frame before that runs.
+const PLACEHOLDER_NODE_COLOR = EDGE_COLORS.dynamic;
import { groupNodesAsModules } from "../elk-layout";
function simpleHash(str: string): number {
@@ -83,13 +87,64 @@ function computeEdgeCurvature(edgeKey: string): number {
return 0.12 + (hash % 80) / 1000;
}
+// Yield to the event loop, preferring requestIdleCallback when available so we
+// don't starve interaction; falls back to a macrotask elsewhere (tests, SSR).
+function yieldToEventLoop(): Promise<void> {
+ return new Promise((resolve) => {
+ const ric = (globalThis as { requestIdleCallback?: (cb: () => void) => void })
+ .requestIdleCallback;
+ if (typeof ric === "function") {
+ ric(() => resolve());
+ } else {
+ setTimeout(resolve, 0);
+ }
+ });
+}
+
+const CHUNK_SIZE = 500;
+
+export type FileGraphAdapterOptions = {
+ signals?: { hotNodeIds?: Set<string>; deadNodeIds?: Set<string> };
+ nodeCount?: number;
+};
+
export function fileGraphToGraphology(
graph: GraphExport,
- options?: {
- signals?: { hotNodeIds?: Set<string>; deadNodeIds?: Set<string> };
- nodeCount?: number;
- },
+ options?: FileGraphAdapterOptions,
): Graph<SigmaNodeAttributes, SigmaEdgeAttributes> {
+ const it = buildFileGraph(graph, options);
+ // Sync path: drain the generator without ever yielding.
+ let next = it.next();
+ while (!next.done) next = it.next();
+ return next.value;
+}
+
+/**
+ * Async variant of {@link fileGraphToGraphology} that yields to the event loop
+ * every CHUNK_SIZE nodes/edges, keeping the main thread responsive while large
+ * graphs are constructed. Callers should keep their loading state up until this
+ * resolves.
+ */
+export async function fileGraphToGraphologyAsync(
+ graph: GraphExport,
+ options?: FileGraphAdapterOptions,
+): Promise<Graph<SigmaNodeAttributes, SigmaEdgeAttributes>> {
+ const it = buildFileGraph(graph, options);
+ let next = it.next();
+ while (!next.done) {
+ await yieldToEventLoop();
+ next = it.next();
+ }
+ return next.value;
+}
+
+// Generator that builds the file graph, yielding (an undefined) every CHUNK_SIZE
+// items so callers can choose to await between chunks (async) or drain inline
+// (sync). The single body keeps the two public entry points in lockstep.
+function* buildFileGraph(
+ graph: GraphExport,
+ options?: FileGraphAdapterOptions,
+): Generator<undefined, Graph<SigmaNodeAttributes, SigmaEdgeAttributes>, void> {
const result = new Graph<SigmaNodeAttributes, SigmaEdgeAttributes>();
const nodeCount = options?.nodeCount ?? graph.nodes.length;
@@ -112,6 +167,7 @@ export function fileGraphToGraphology(
const communityCount = sortedCommunities.length;
const jitter = Math.sqrt(nodeCount) * 3;
+ let processed = 0;
for (let i = 0; i < sortedCommunities.length; i++) {
const communityId = sortedCommunities[i]!;
const members = communityNodes.get(communityId)!;
@@ -180,6 +236,7 @@ export function fileGraphToGraphology(
attrs.primaryOwner = node.primary_owner ?? null;
result.addNode(node.node_id, attrs);
+ if (++processed % CHUNK_SIZE === 0) yield;
}
}
@@ -208,7 +265,9 @@ export function fileGraphToGraphology(
const maxEdgesPerNode = nodeCount > 1000 ? 25 : Infinity;
const edgesPerSource = new Map<string, number>();
+ let edgeProcessed = 0;
for (const link of orderedLinks) {
+ if (++edgeProcessed % CHUNK_SIZE === 0) yield;
if (!result.hasNode(link.source) || !result.hasNode(link.target)) continue;
const edgeKey = link.source + "→" + link.target;
if (result.hasEdge(edgeKey)) continue;
@@ -302,7 +361,9 @@ export function moduleGraphToGraphology(
const baseSize = getScaledNodeSize(NODE_BASE_SIZES.module, nodeCount);
const size = baseSize * (0.5 + Math.min(Math.log2(Math.max(mod.file_count, 1)) * 0.3, 1.5));
- const color = getCommunityColor(communityId);
+ // Theme-aware community hub color is applied later by use-sigma; this is a
+ // neutral placeholder for the initial (pre-effect) frame.
+ const color = PLACEHOLDER_NODE_COLOR;
result.addNode(mod.module_id, {
x,
diff --git a/packages/ui/src/graph/sigma/radial-layout.ts b/packages/ui/src/graph/sigma/radial-layout.ts
new file mode 100644
index 000000000..62a35a5f8
--- /dev/null
+++ b/packages/ui/src/graph/sigma/radial-layout.ts
@@ -0,0 +1,214 @@
+/**
+ * Deterministic radial ("constellation") layout for the community
+ * super-graph. NO physics simulation — given the same input it always
+ * produces the same positions, so loads are reproducible and snapshot-
+ * testable.
+ *
+ * The composition mirrors Michell Zappa's "Envisioning the near future
+ * of technology" infographic: a dark repo-core at the origin, large hub
+ * discs ranked onto three concentric rings (inner = most central), and
+ * satellites clustered tightly around their own hub in golden-angle
+ * spirals.
+ *
+ * Ranking choice (documented): the /architecture payload does not carry
+ * entry-point counts or betweenness, so we rank communities by
+ * (avg_pagerank desc, member_count desc)
+ * — avg_pagerank is the closest available proxy for "how central is this
+ * cluster to the repo", and member_count breaks ties toward bigger
+ * clusters. Ties beyond that are broken by community_id so the ranking
+ * (and therefore ring/angle assignment) is stable across loads.
+ */
+
+/** Golden angle in radians — the classic phyllotaxis spacing. */
+const GOLDEN_ANGLE = Math.PI * (3 - Math.sqrt(5));
+
+/** A single 2D position. */
+export interface RadialPosition {
+ x: number;
+ y: number;
+}
+
+/** Minimal community shape the layout needs. Matches ArchitectureNode. */
+export interface RadialCommunityInput {
+ community_id: number;
+ member_count: number;
+ avg_pagerank: number;
+}
+
+/** Optional per-community member ids, used to place satellites in G4. */
+export type RadialMembersInput = Map<number, string[]>;
+
+export interface RadialLayoutResult {
+ /** Hub disc center per community_id. */
+ hubs: Map<number, RadialPosition>;
+ /** Satellite positions keyed by member node id (empty unless members given). */
+ satellites: Map<string, RadialPosition>;
+ /** Which ring (1=inner, 2, 3) each community landed on. */
+ rings: Map<number, 1 | 2 | 3>;
+ /** Repo-core position (always the origin). */
+ core: RadialPosition;
+ /** Radius of each concentric ring, for the depth-ring underlay. */
+ ringRadii: [number, number, number];
+}
+
+/** Deterministic non-negative hash (djb2), mirrors graphology-adapter. */
+function hashString(str: string): number {
+ let hash = 5381;
+ for (let i = 0; i < str.length; i++) {
+ hash = ((hash << 5) + hash + (str.charCodeAt(i) ?? 0)) | 0;
+ }
+ return Math.abs(hash);
+}
+
+/**
+ * Hub disc radius in *sigma units* from member count. Sigma "size" is
+ * roughly a pixel radius; module nodes top out around 16–32, so hubs sit
+ * deliberately larger (14–32) to read as anchors. Clamped both ends.
+ */
+export function hubSizeFromMembers(memberCount: number): number {
+ const raw = 14 + Math.sqrt(Math.max(memberCount, 1)) * 3.2;
+ return Math.max(14, Math.min(32, raw));
+}
+
+/**
+ * Pure radial layout. Input is the community list (optionally with member
+ * ids per community); output is a positions map. Deterministic.
+ */
+export function computeRadialLayout(
+ communities: readonly RadialCommunityInput[],
+ members?: RadialMembersInput,
+): RadialLayoutResult {
+ const core: RadialPosition = { x: 0, y: 0 };
+ const hubs = new Map<number, RadialPosition>();
+ const satellites = new Map<string, RadialPosition>();
+ const rings = new Map<number, 1 | 2 | 3>();
+
+ const hubCount = communities.length;
+ // canvasUnit grows with the hub count so denser graphs spread further.
+ const canvasUnit = 90 * Math.sqrt(Math.max(hubCount, 1));
+ const ringRadii: [number, number, number] = [
+ 1 * canvasUnit,
+ 2 * canvasUnit,
+ 3 * canvasUnit,
+ ];
+
+ if (hubCount === 0) {
+ return { hubs, satellites, rings, core, ringRadii };
+ }
+
+ // 1. Rank: avg_pagerank desc, member_count desc, community_id asc (stable).
+ const ranked = [...communities].sort((a, b) => {
+ if (b.avg_pagerank !== a.avg_pagerank) return b.avg_pagerank - a.avg_pagerank;
+ if (b.member_count !== a.member_count) return b.member_count - a.member_count;
+ return a.community_id - b.community_id;
+ });
+
+ // 2. Ring assignment by tercile of rank: top → R1, middle → R2, rest → R3.
+ const tercile = Math.ceil(hubCount / 3);
+ const ringMembers: Record<1 | 2 | 3, RadialCommunityInput[]> = { 1: [], 2: [], 3: [] };
+ ranked.forEach((community, rank) => {
+ const ring: 1 | 2 | 3 = rank < tercile ? 1 : rank < tercile * 2 ? 2 : 3;
+ rings.set(community.community_id, ring);
+ ringMembers[ring].push(community);
+ });
+
+ // 3. Angular placement: golden-angle sequence within each ring, then one
+ // relaxation pass that nudges the largest hubs apart so the biggest
+ // anchors don't crowd. Stable-sort by community_id keeps it reproducible.
+ for (const ringKey of [1, 2, 3] as const) {
+ const ring = ringMembers[ringKey];
+ if (ring.length === 0) continue;
+ const radius = ringRadii[ringKey - 1]!;
+
+ // Stable order for the ring (by community_id) → reproducible angles.
+ const ordered = [...ring].sort((a, b) => a.community_id - b.community_id);
+ const n = ordered.length;
+
+ // Base golden-angle angles, offset per-ring so rings don't align spokes.
+ const angles = ordered.map(
+ (_, i) => (i * GOLDEN_ANGLE + ringKey * 0.7) % (2 * Math.PI),
+ );
+
+ // One relaxation pass: maximise angular separation of the largest hubs by
+ // re-seating ordered hubs onto evenly spaced slots, biggest-first. This is
+ // deterministic (input order is community_id-stable) and crosses no NaNs.
+ if (n > 1) {
+ const bySize = ordered
+ .map((c, i) => ({ i, member_count: c.member_count, community_id: c.community_id }))
+ .sort((a, b) =>
+ b.member_count !== a.member_count
+ ? b.member_count - a.member_count
+ : a.community_id - b.community_id,
+ );
+ const slot = (2 * Math.PI) / n;
+ bySize.forEach((entry, k) => {
+ angles[entry.i] = (k * slot + ringKey * 0.7) % (2 * Math.PI);
+ });
+ }
+
+ ordered.forEach((community, i) => {
+ const angle = angles[i] ?? 0;
+ hubs.set(community.community_id, {
+ x: radius * Math.cos(angle),
+ y: radius * Math.sin(angle),
+ });
+ });
+ }
+
+ // 4. Satellites: golden-angle spiral around their own hub, hash-jittered,
+ // with a cheap two-pass noverlap *within the cluster only*.
+ if (members) {
+ for (const community of communities) {
+ const hub = hubs.get(community.community_id);
+ const ids = members.get(community.community_id);
+ if (!hub || !ids || ids.length === 0) continue;
+
+ const hubRadius = hubSizeFromMembers(community.member_count);
+ const placed: RadialPosition[] = [];
+
+ ids.forEach((nodeId, i) => {
+ const angle = i * GOLDEN_ANGLE;
+ const r = hubRadius + 14 + 11 * Math.sqrt(i);
+ const h = hashString(nodeId);
+ const jx = ((h % 1000) / 1000 - 0.5) * 8;
+ const jy = (((h >> 10) % 1000) / 1000 - 0.5) * 8;
+ placed.push({
+ x: hub.x + r * Math.cos(angle) + jx,
+ y: hub.y + r * Math.sin(angle) + jy,
+ });
+ });
+
+ // Two-pass noverlap inside the cluster: push pairs that sit closer than
+ // minDist apart along their connecting line. Deterministic, O(k^2) but k
+ // is one community's satellite count (small in the G4 expansion case).
+ const minDist = 16;
+ for (let pass = 0; pass < 2; pass++) {
+ for (let a = 0; a < placed.length; a++) {
+ for (let b = a + 1; b < placed.length; b++) {
+ const pa = placed[a]!;
+ const pb = placed[b]!;
+ const dx = pb.x - pa.x;
+ const dy = pb.y - pa.y;
+ const dist = Math.hypot(dx, dy) || 0.0001;
+ if (dist < minDist) {
+ const push = (minDist - dist) / 2;
+ const ux = dx / dist;
+ const uy = dy / dist;
+ pa.x -= ux * push;
+ pa.y -= uy * push;
+ pb.x += ux * push;
+ pb.y += uy * push;
+ }
+ }
+ }
+ }
+
+ ids.forEach((nodeId, i) => {
+ const p = placed[i]!;
+ satellites.set(nodeId, { x: p.x, y: p.y });
+ });
+ }
+ }
+
+ return { hubs, satellites, rings, core, ringRadii };
+}
diff --git a/packages/ui/src/graph/sigma/sigma-canvas.tsx b/packages/ui/src/graph/sigma/sigma-canvas.tsx
index 71d2c9b14..d8443be18 100644
--- a/packages/ui/src/graph/sigma/sigma-canvas.tsx
+++ b/packages/ui/src/graph/sigma/sigma-canvas.tsx
@@ -9,6 +9,7 @@ import {
useEffect,
} from "react";
import type Graph from "graphology";
+import type { SigmaNodeEventPayload } from "sigma/types";
import type { SigmaNodeAttributes, SigmaEdgeAttributes } from "./types";
import type { ColorMode, ViewMode } from "../graph-toolbar";
import type { Signal } from "../context";
@@ -23,10 +24,12 @@ import { useFA2Layout } from "./use-fa2-layout";
import { useElkSigmaLayout } from "./use-elk-sigma-layout";
import { SigmaControls } from "./sigma-controls";
import { SigmaMinimap } from "./sigma-minimap";
+import { DepthRings } from "./depth-rings";
export interface SigmaCanvasProps {
graph: Graph<SigmaNodeAttributes, SigmaEdgeAttributes> | null;
- layoutMode: "force" | "hierarchical";
+ // "radial" = constellation: positions are pre-computed, no FA2/ELK runs.
+ layoutMode: "force" | "hierarchical" | "radial";
viewMode: ViewMode;
selectedNodeId: string | null;
hoveredNodeId: string | null;
@@ -34,6 +37,8 @@ export interface SigmaCanvasProps {
highlightedEdges: Set<string>;
searchDimmedNodes: Set<string> | null;
communityDimmedNodes: Set<string> | null;
+ /** Constellation blossom: clusters dimmed to ~35% while a hub is expanded. */
+ expandDimmedNodes?: Set<string> | null | undefined;
colorMode: ColorMode;
activeSignals: Set<Signal>;
graphTheme: "light" | "dark";
@@ -46,14 +51,21 @@ export interface SigmaCanvasProps {
onNodeContextMenu?:
| ((event: MouseEvent, nodeId: string, nodeType: string) => void)
| undefined;
- onNodeDoubleClick?: ((nodeId: string, nodeType: string) => void) | undefined;
+ /** Returns true when the double-click performed an action (drill/expand/docs)
+ * so the canvas suppresses Sigma's built-in camera zoom. Returning false (or
+ * void) leaves the default zoom intact (e.g. constellation core). */
+ onNodeDoubleClick?:
+ | ((nodeId: string, nodeType: string) => boolean | void)
+ | undefined;
onStageClick?: (() => void) | undefined;
hiddenNodes?: Set<string> | undefined;
visibleEdgeTypes?: Set<string> | undefined;
+ /** Concentric depth-ring radii (graph coords) for the constellation underlay. */
+ depthRingRadii?: readonly [number, number, number] | null | undefined;
}
export interface SigmaCanvasHandle {
- focusNode: (nodeId: string) => void;
+ focusNode: (nodeId: string, ratio?: number) => void;
fitView: () => void;
zoomIn: () => void;
zoomOut: () => void;
@@ -75,6 +87,7 @@ export const SigmaCanvas = forwardRef<SigmaCanvasHandle, SigmaCanvasProps>(
highlightedEdges: props.highlightedEdges,
searchDimmedNodes: props.searchDimmedNodes,
communityDimmedNodes: props.communityDimmedNodes,
+ expandDimmedNodes: props.expandDimmedNodes,
colorMode: props.colorMode,
activeSignals: props.activeSignals,
graphTheme: props.graphTheme,
@@ -153,10 +166,15 @@ export const SigmaCanvas = forwardRef<SigmaCanvasHandle, SigmaCanvasProps>(
}
};
- const handleDoubleClickNode = ({ node }: { node: string }) => {
+ const handleDoubleClickNode = (payload: SigmaNodeEventPayload) => {
+ const { node } = payload;
const graph = sigma.getGraph();
const attrs = graph.getNodeAttributes(node);
- onNodeDoubleClickRef.current?.(node, attrs.nodeType);
+ const handled = onNodeDoubleClickRef.current?.(node, attrs.nodeType);
+ // Suppress Sigma's built-in camera zoom for node types that performed an
+ // action (module/hub/file). Node types that no-op (constellation core)
+ // return false/void and keep the default zoom.
+ if (handled) payload.preventSigmaDefault();
};
sigma.on("clickNode", handleClickNode);
@@ -183,14 +201,29 @@ export const SigmaCanvas = forwardRef<SigmaCanvasHandle, SigmaCanvasProps>(
zoomOut,
}));
+ const hasDepthRings = !!props.depthRingRadii;
return (
- <div className="relative w-full h-full">
+ <div
+ className="relative w-full h-full"
+ style={
+ // For the constellation, paint the dark canvas on the wrapper and keep
+ // the sigma container transparent so the depth-ring underlay shows.
+ hasDepthRings && props.graphTheme === "dark"
+ ? { background: "var(--color-bg-canvas)" }
+ : undefined
+ }
+ >
+ {hasDepthRings && props.depthRingRadii && (
+ <DepthRings sigma={sigma} ringRadii={props.depthRingRadii} />
+ )}
<div
ref={containerCallback}
- className="w-full h-full"
+ className="w-full h-full relative z-[1]"
style={{
background:
- props.graphTheme === "dark" ? "#0f0f1a" : "transparent",
+ !hasDepthRings && props.graphTheme === "dark"
+ ? "var(--color-bg-canvas)"
+ : "transparent",
cursor: "grab",
}}
/>
diff --git a/packages/ui/src/graph/sigma/types.ts b/packages/ui/src/graph/sigma/types.ts
index 2010606e5..72db32f66 100644
--- a/packages/ui/src/graph/sigma/types.ts
+++ b/packages/ui/src/graph/sigma/types.ts
@@ -16,8 +16,9 @@ export interface SigmaNodeAttributes {
color: string;
label: string;
- // Identity
- nodeType: "file" | "module";
+ // Identity. "hub"/"core" are the constellation (radial) super-graph kinds:
+ // one hub disc per community, a single dark repo-core at the origin.
+ nodeType: "file" | "module" | "hub" | "core";
fullPath: string;
language: string;
@@ -36,6 +37,16 @@ export interface SigmaNodeAttributes {
docCoveragePct?: number | undefined;
dominantCommunityId?: number | undefined;
+ // Constellation hub-specific (only set when nodeType === "hub" / "core")
+ memberCount?: number | undefined;
+ hotspotCount?: number | undefined;
+ deadCount?: number | undefined;
+ languages?: string[] | undefined;
+ /** Family hub hue for the soft halo ring drawn around hub discs. */
+ haloColor?: string | undefined;
+ /** Render the label even when density culling would hide it (hubs/core). */
+ forceLabel?: boolean | undefined;
+
// Signal overlays (set by adapter based on signal data)
isHotspot?: boolean | undefined;
isDead?: boolean | undefined;
diff --git a/packages/ui/src/graph/sigma/use-fa2-layout.ts b/packages/ui/src/graph/sigma/use-fa2-layout.ts
index 0663c5d95..6d1d08519 100644
--- a/packages/ui/src/graph/sigma/use-fa2-layout.ts
+++ b/packages/ui/src/graph/sigma/use-fa2-layout.ts
@@ -92,9 +92,22 @@ export function useFA2Layout(
setIsRunning(false);
};
- // Convergence detection: sample 50 nodes every 500ms
- const sampleSize = Math.min(50, graph.order);
- const nodeIds = graph.nodes().slice(0, sampleSize);
+ // Convergence detection: sample 100 random nodes every 500ms
+ const sampleSize = Math.min(100, graph.order);
+ const allNodeIds = graph.nodes();
+ const nodeIds: string[] = [];
+ if (sampleSize >= allNodeIds.length) {
+ nodeIds.push(...allNodeIds);
+ } else {
+ const stride = allNodeIds.length / sampleSize;
+ for (let i = 0; i < sampleSize; i++) {
+ nodeIds.push(
+ allNodeIds[
+ Math.floor((i + Math.random()) * stride) % allNodeIds.length
+ ]!,
+ );
+ }
+ }
let prevPositions = nodeIds.map((id) => {
const a = graph.getNodeAttributes(id);
return { x: a.x, y: a.y };
diff --git a/packages/ui/src/graph/sigma/use-sigma.ts b/packages/ui/src/graph/sigma/use-sigma.ts
index 0145025e3..6aa14cf38 100644
--- a/packages/ui/src/graph/sigma/use-sigma.ts
+++ b/packages/ui/src/graph/sigma/use-sigma.ts
@@ -1,18 +1,21 @@
import { useRef, useEffect, useCallback, useState } from "react";
import type Sigma from "sigma";
import type Graph from "graphology";
+import type { NodeLabelDrawingFunction, drawDiscNodeLabel } from "sigma/rendering";
import type { SigmaNodeAttributes, SigmaEdgeAttributes } from "./types";
import type { ColorMode } from "../graph-toolbar";
import type { Signal } from "../context";
import {
LABEL_FONT,
LABEL_SIZE,
- LABEL_DENSITY,
LABEL_GRID_CELL_SIZE,
- LABEL_RENDERED_SIZE_THRESHOLD,
- getCommunityColor,
+ getLabelDensity,
+ getLabelRenderedSizeThreshold,
+ edgeColorsForTheme,
+ type EdgeKind,
languageColor,
} from "./constants";
+import { getCommunityFamily, resolveToken, useThemeVersion } from "../../shared/use-theme-tokens";
// ---- Color helpers (kept minimal — avoid regex in hot paths) ----
@@ -30,6 +33,225 @@ const THEME_COLORS = {
light: { bg: [250, 250, 252] as const, text: "#1a1a2e", subtitle: "#666666", tooltip: "#ffffff" },
};
+/**
+ * Hub/core disc-label drawer, built per theme. Hub/core labels render centered
+ * *inside* the disc (ROBOTICS-style) with a soft halo ring in the family hue;
+ * everything else falls through to Sigma's stock side-label drawer. Factored out
+ * of the init effect so the theme effect can re-set it on light/dark toggle
+ * (the closure must NOT capture stale theme colors). Closes over only its args +
+ * the stable THEME_COLORS import.
+ */
+function makeDrawNodeLabel(
+ graphTheme: "light" | "dark",
+ drawDisc: typeof drawDiscNodeLabel,
+): NodeLabelDrawingFunction {
+ return (context, data, settings) => {
+ const extra = data as unknown as Record<string, unknown>;
+ const kind = extra.nodeType as string | undefined;
+ if (kind !== "hub" && kind !== "core") {
+ drawDisc(context, data, settings);
+ return;
+ }
+
+ const theme = THEME_COLORS[graphTheme] ?? THEME_COLORS.dark;
+ const size = data.size || 20;
+
+ // Soft 2px halo ring in the family hue (emulated — NodeCircleProgram
+ // has no border and @sigma/node-border isn't a dependency).
+ const halo = (extra.haloColor as string) || data.color;
+ context.beginPath();
+ context.arc(data.x, data.y, size + 2.5, 0, Math.PI * 2);
+ context.lineWidth = 2;
+ context.strokeStyle = halo;
+ context.globalAlpha = 0.55;
+ context.stroke();
+ context.globalAlpha = 1;
+
+ const label = data.label;
+ if (!label) return;
+
+ // Fit the uppercase label inside the disc; shrink for long names.
+ const font = settings.labelFont || "JetBrains Mono, monospace";
+ let fontSize = Math.max(9, Math.min(13, size * 0.55));
+ context.font = `600 ${fontSize}px ${font}`;
+ const maxWidth = size * 1.9;
+ while (context.measureText(label).width > maxWidth && fontSize > 7) {
+ fontSize -= 1;
+ context.font = `600 ${fontSize}px ${font}`;
+ }
+ context.textAlign = "center";
+ context.textBaseline = "middle";
+ // Core is dark → light text; hubs are warm → dark text for contrast.
+ context.fillStyle = kind === "core" ? theme.text : "#1a1320";
+ context.fillText(label, data.x, data.y);
+ };
+}
+
+/**
+ * Hover tooltip drawer, built per theme. Hubs get a small surface card (member
+ * count, doc %, langs); other nodes get a label/path pill. Factored out of the
+ * init effect alongside makeDrawNodeLabel so the theme effect can re-set it on
+ * light/dark toggle. Closes over only its arg + the stable THEME_COLORS import.
+ */
+function makeDrawNodeHover(graphTheme: "light" | "dark"): NodeLabelDrawingFunction {
+ return (context, data, settings) => {
+ const label = data.label;
+ if (!label) return;
+
+ const theme = THEME_COLORS[graphTheme] ?? THEME_COLORS.dark;
+ const extra = data as Record<string, unknown>;
+ const fullPath = (extra.fullPath as string) ?? undefined;
+
+ // Hub tooltip: a small surface card with member count, doc %, langs.
+ if (extra.nodeType === "hub") {
+ const font = settings.labelFont || "JetBrains Mono, monospace";
+ const members = (extra.memberCount as number) ?? 0;
+ const docPct = Math.round(((extra.docCoveragePct as number) ?? 0) * 100);
+ const langs = ((extra.languages as string[]) ?? []).slice(0, 3).join(", ");
+ const lines: string[] = [
+ `${members} file${members === 1 ? "" : "s"} · ${docPct}% documented`,
+ ];
+ if (langs) lines.push(langs);
+
+ const titleSize = (settings.labelSize || 11) + 1;
+ const lineSize = 9;
+ context.font = `600 ${titleSize}px ${font}`;
+ let maxW = context.measureText(label).width;
+ context.font = `400 ${lineSize}px ${font}`;
+ for (const l of lines) maxW = Math.max(maxW, context.measureText(l).width);
+
+ const padX = 12;
+ const padY = 8;
+ const gap = 4;
+ const w = maxW + padX * 2;
+ const h = titleSize + lines.length * (lineSize + gap) + padY * 2;
+ const nodeSize = data.size || 20;
+ const cx = data.x;
+ const cy = data.y - nodeSize - 14 - h / 2;
+
+ context.fillStyle = theme.tooltip;
+ context.beginPath();
+ context.roundRect(cx - w / 2, cy - h / 2, w, h, 6);
+ context.fill();
+ context.lineWidth = 1.5;
+ context.strokeStyle = data.color || "#6366f1";
+ context.stroke();
+
+ context.textAlign = "center";
+ context.textBaseline = "top";
+ let ty = cy - h / 2 + padY;
+ context.fillStyle = theme.text;
+ context.font = `600 ${titleSize}px ${font}`;
+ context.fillText(label, cx, ty);
+ ty += titleSize + gap;
+ context.fillStyle = theme.subtitle;
+ context.font = `400 ${lineSize}px ${font}`;
+ for (const l of lines) {
+ context.fillText(l, cx, ty);
+ ty += lineSize + gap;
+ }
+
+ // Halo emphasis on hover.
+ context.beginPath();
+ context.arc(data.x, data.y, nodeSize + 4, 0, Math.PI * 2);
+ context.strokeStyle = (extra.haloColor as string) || data.color || "#6366f1";
+ context.lineWidth = 2.5;
+ context.globalAlpha = 0.6;
+ context.stroke();
+ context.globalAlpha = 1;
+ return;
+ }
+
+ const primarySize = settings.labelSize || 11;
+ const secondarySize = 9;
+ const font = settings.labelFont || "JetBrains Mono, monospace";
+ context.font = `500 ${primarySize}px ${font}`;
+ const labelWidth = context.measureText(label).width;
+
+ let showPath = false;
+ let pathWidth = 0;
+ if (fullPath && fullPath !== label) {
+ context.font = `400 ${secondarySize}px ${font}`;
+ pathWidth = context.measureText(fullPath).width;
+ showPath = true;
+ }
+
+ const nodeSize = data.size || 8;
+ const paddingX = 10;
+ const paddingY = 5;
+ const lineGap = showPath ? 3 : 0;
+ const width = Math.max(labelWidth, pathWidth) + paddingX * 2;
+ const height =
+ primarySize + (showPath ? lineGap + secondarySize : 0) + paddingY * 2;
+ const radius = 5;
+ const x = data.x;
+ const y = data.y - nodeSize - 12 - height / 2;
+
+ context.fillStyle = theme.tooltip;
+ context.beginPath();
+ context.roundRect(x - width / 2, y - height / 2, width, height, radius);
+ context.fill();
+ context.lineWidth = 2;
+ context.strokeStyle = data.color || "#6366f1";
+ context.stroke();
+
+ context.textAlign = "center";
+ context.textBaseline = "middle";
+
+ const labelY = showPath ? y - (lineGap + secondarySize) / 2 : y;
+ context.fillStyle = theme.text;
+ context.font = `500 ${primarySize}px ${font}`;
+ context.fillText(label, x, labelY);
+
+ if (showPath) {
+ context.fillStyle = theme.subtitle;
+ context.font = `400 ${secondarySize}px ${font}`;
+ context.fillText(
+ fullPath!,
+ x,
+ labelY + primarySize / 2 + lineGap + secondarySize / 2,
+ );
+ }
+
+ context.beginPath();
+ context.arc(data.x, data.y, nodeSize + 4, 0, Math.PI * 2);
+ context.strokeStyle = data.color || "#6366f1";
+ context.lineWidth = 2;
+ context.globalAlpha = 0.5;
+ context.stroke();
+ context.globalAlpha = 1;
+ };
+}
+
+/**
+ * Theme-aware viz colors resolved from the live design tokens. Read on the
+ * React side (where getComputedStyle works) and keyed to the theme version, so
+ * canvas painting tracks light/dark. Mirrors the per-theme THEME_COLORS shape.
+ */
+interface VizPalette {
+ risk: { high: string; medium: string; low: string };
+ hotspot: string;
+ decision: string;
+ label: string;
+ pathHighlight: string;
+ edge: Record<EdgeKind, string>;
+}
+
+function resolveVizPalette(theme: "light" | "dark"): VizPalette {
+ return {
+ risk: {
+ high: resolveToken("--color-risk-high", "#b23a2e"),
+ medium: resolveToken("--color-risk-medium", "#9a6614"),
+ low: resolveToken("--color-risk-low", "#1d8155"),
+ },
+ hotspot: resolveToken("--color-warning", "#9a6614"),
+ decision: resolveToken("--color-warning", "#9a6614"),
+ label: resolveToken("--color-text-secondary", theme === "dark" ? "#a79db3" : "#5e5360"),
+ pathHighlight: resolveToken("--color-accent-fill", "#f59520"),
+ edge: edgeColorsForTheme(theme),
+ };
+}
+
let activeBg: readonly [number, number, number] = THEME_COLORS.dark.bg;
const dimColorCache = new Map<string, string>();
@@ -97,6 +319,9 @@ export interface UseSigmaOptions {
highlightedEdges: Set<string>;
searchDimmedNodes: Set<string> | null;
communityDimmedNodes: Set<string> | null;
+ /** Constellation blossom: non-expanded clusters dimmed to ~35% while a hub
+ * is expanded, so the open cluster reads as foreground. */
+ expandDimmedNodes?: Set<string> | null | undefined;
colorMode: ColorMode;
activeSignals: Set<Signal>;
graphTheme: "light" | "dark";
@@ -106,7 +331,10 @@ export interface UseSigmaOptions {
export interface UseSigmaReturn {
sigma: Sigma | null;
- focusNode: (nodeId: string) => void;
+ /** Ease the camera onto a node. `ratio` controls the resting zoom (smaller =
+ * closer); defaults to 0.15 (tight, for small file nodes). Pass a larger
+ * ratio for big constellation hubs so the surrounding cluster stays visible. */
+ focusNode: (nodeId: string, ratio?: number) => void;
fitView: () => void;
zoomIn: () => void;
zoomOut: () => void;
@@ -119,13 +347,22 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
clearColorCaches();
}
+ // Re-resolve theme tokens (risk / hotspot / community / edge / label) when the
+ // theme flips so the canvas repaints in the active palette.
+ const themeVersion = useThemeVersion();
+ const vizRef = useRef<VizPalette>(resolveVizPalette(options.graphTheme));
+
const sigmaRef = useRef<Sigma | null>(null);
+ // Sigma's stock disc-label drawer, captured from the dynamic import in the
+ // init effect so the theme effect can rebuild the label drawer factory.
+ const drawDiscRef = useRef<typeof drawDiscNodeLabel | null>(null);
const [sigmaReady, setSigmaReady] = useState<Sigma | null>(null);
const selectedRef = useRef<string | null>(null);
const highlightedPathRef = useRef<Set<string>>(new Set());
const highlightedEdgesRef = useRef<Set<string>>(new Set());
const searchDimmedRef = useRef<Set<string> | null>(null);
const communityDimmedRef = useRef<Set<string> | null>(null);
+ const expandDimmedRef = useRef<Set<string> | null>(null);
const hiddenNodesRef = useRef<Set<string> | undefined>(undefined);
const graphRef = useRef<Graph<
SigmaNodeAttributes,
@@ -139,6 +376,7 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
highlightedEdgesRef.current = options.highlightedEdges;
searchDimmedRef.current = options.searchDimmedNodes;
communityDimmedRef.current = options.communityDimmedNodes;
+ expandDimmedRef.current = options.expandDimmedNodes ?? null;
hiddenNodesRef.current = options.hiddenNodes;
sigmaRef.current?.refresh();
}, [
@@ -147,6 +385,7 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
options.highlightedEdges,
options.searchDimmedNodes,
options.communityDimmedNodes,
+ options.expandDimmedNodes,
options.hiddenNodes,
]);
@@ -169,29 +408,85 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
useEffect(() => {
const graph = options.graph;
if (!graph || graph.order === 0) return;
+ const viz = (vizRef.current = resolveVizPalette(options.graphTheme));
const cm = options.colorMode;
+ const coreColor = resolveToken("--color-bg-inset", "#110d17");
graph.updateEachNodeAttributes(
(_node, attrs) => {
let color: string;
+ // Constellation kinds are always family-colored (hub hue) regardless of
+ // the active colorMode — the radial view *is* the community view. The
+ // repo-core is a dark plum disc; its halo borrows the soft canvas dot.
+ if (attrs.nodeType === "hub") {
+ const family = getCommunityFamily(attrs.communityId);
+ color = family.hub;
+ const next = { ...attrs, color, haloColor: family.satellite || family.hub };
+ if (attrs.color === color && attrs.haloColor === next.haloColor) return attrs;
+ return next;
+ }
+ if (attrs.nodeType === "core") {
+ color = coreColor;
+ if (attrs.color === color) return attrs;
+ return { ...attrs, color };
+ }
if (cm === "language") {
color = languageColor(attrs.language || "other");
} else if (cm === "community") {
- color = getCommunityColor(attrs.communityId);
+ // Modules (centroids) get the hub hue; files use the softer satellite
+ // tint so leaves recede behind their community's anchor.
+ const family = getCommunityFamily(attrs.communityId);
+ color = attrs.nodeType === "module" ? family.hub : family.satellite;
} else {
const risk = attrs.pagerank * 3;
- color = risk > 0.7 ? "#ef4444" : risk > 0.3 ? "#f59e0b" : "#22c55e";
+ color = risk > 0.7 ? viz.risk.high : risk > 0.3 ? viz.risk.medium : viz.risk.low;
}
if (attrs.isDead) color = desaturateColor(color, 0.6);
- if (attrs.isHotspot) color = tintColor(color, "#f97316", 0.4);
- // Decision-anchored files get a subtle amber tint so they're
+ if (attrs.isHotspot) color = tintColor(color, viz.hotspot, 0.4);
+ // Decision-anchored files get a subtle warm tint so they're
// discoverable on the canvas without dominating it.
- if (attrs.hasDecision) color = tintColor(color, "#f59e0b", 0.25);
+ if (attrs.hasDecision) color = tintColor(color, viz.decision, 0.25);
if (attrs.color === color) return attrs;
return { ...attrs, color };
},
{ attributes: ["color"] },
);
- }, [options.colorMode, options.graph]);
+ }, [options.colorMode, options.graph, options.graphTheme, themeVersion]);
+
+ // Re-color edges by semantic kind for the active theme (canvas can't resolve
+ // var()). Build-time colors are placeholders; this is the source of truth.
+ useEffect(() => {
+ const graph = options.graph;
+ if (!graph || graph.size === 0) return;
+ const edge = (vizRef.current = resolveVizPalette(options.graphTheme)).edge;
+ graph.updateEachEdgeAttributes(
+ (_edgeKey, attrs) => {
+ const color = edge[attrs.edgeKind] ?? edge.import;
+ if (attrs.color === color) return attrs;
+ return { ...attrs, color };
+ },
+ { attributes: ["color"] },
+ );
+ }, [options.graph, options.graphTheme, themeVersion]);
+
+ // Keep the label color in the active text token when the theme flips, and
+ // rebuild the hub/core disc-label + hover drawers so their theme-dependent
+ // text/tooltip colors track the toggle (the init-effect closures would
+ // otherwise stay pinned to the mount-time theme until remount).
+ useEffect(() => {
+ const sigma = sigmaRef.current;
+ if (!sigma) return;
+ const label = (vizRef.current = resolveVizPalette(options.graphTheme)).label;
+ sigma.setSetting("labelColor", { color: label });
+ const drawDisc = drawDiscRef.current;
+ if (drawDisc) {
+ sigma.setSetting(
+ "defaultDrawNodeLabel",
+ makeDrawNodeLabel(options.graphTheme, drawDisc),
+ );
+ }
+ sigma.setSetting("defaultDrawNodeHover", makeDrawNodeHover(options.graphTheme));
+ sigma.refresh();
+ }, [options.graphTheme, themeVersion]);
// Initialize Sigma (dynamic import to avoid SSR WebGL crash)
useEffect(() => {
@@ -210,6 +505,8 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
import("graphology"),
]);
const EdgeLineProgram = sigmaRendering.EdgeLineProgram;
+ const drawDiscNodeLabel = sigmaRendering.drawDiscNodeLabel;
+ drawDiscRef.current = drawDiscNodeLabel;
if (cancelled) return;
@@ -221,10 +518,10 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
renderLabels: true,
labelFont: LABEL_FONT,
labelSize: LABEL_SIZE,
- labelDensity: LABEL_DENSITY,
+ labelDensity: getLabelDensity(graph.order),
labelGridCellSize: LABEL_GRID_CELL_SIZE,
- labelRenderedSizeThreshold: LABEL_RENDERED_SIZE_THRESHOLD,
- labelColor: { color: "#e4e4ed" },
+ labelRenderedSizeThreshold: getLabelRenderedSizeThreshold(graph.order),
+ labelColor: { color: vizRef.current.label },
defaultNodeColor: "#6b7280",
defaultEdgeColor: "#2a2a3a",
defaultEdgeType: "curved",
@@ -237,73 +534,11 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
hideEdgesOnMove: true,
zIndex: true,
- defaultDrawNodeHover: (context, data, settings) => {
- const label = data.label;
- if (!label) return;
-
- const theme = THEME_COLORS[options.graphTheme] ?? THEME_COLORS.dark;
- const extra = data as Record<string, unknown>;
- const fullPath = (extra.fullPath as string) ?? undefined;
-
- const primarySize = settings.labelSize || 11;
- const secondarySize = 9;
- const font = settings.labelFont || "JetBrains Mono, monospace";
- context.font = `500 ${primarySize}px ${font}`;
- const labelWidth = context.measureText(label).width;
-
- let showPath = false;
- let pathWidth = 0;
- if (fullPath && fullPath !== label) {
- context.font = `400 ${secondarySize}px ${font}`;
- pathWidth = context.measureText(fullPath).width;
- showPath = true;
- }
-
- const nodeSize = data.size || 8;
- const paddingX = 10;
- const paddingY = 5;
- const lineGap = showPath ? 3 : 0;
- const width = Math.max(labelWidth, pathWidth) + paddingX * 2;
- const height =
- primarySize + (showPath ? lineGap + secondarySize : 0) + paddingY * 2;
- const radius = 5;
- const x = data.x;
- const y = data.y - nodeSize - 12 - height / 2;
-
- context.fillStyle = theme.tooltip;
- context.beginPath();
- context.roundRect(x - width / 2, y - height / 2, width, height, radius);
- context.fill();
- context.lineWidth = 2;
- context.strokeStyle = data.color || "#6366f1";
- context.stroke();
-
- context.textAlign = "center";
- context.textBaseline = "middle";
-
- const labelY = showPath ? y - (lineGap + secondarySize) / 2 : y;
- context.fillStyle = theme.text;
- context.font = `500 ${primarySize}px ${font}`;
- context.fillText(label, x, labelY);
-
- if (showPath) {
- context.fillStyle = theme.subtitle;
- context.font = `400 ${secondarySize}px ${font}`;
- context.fillText(
- fullPath!,
- x,
- labelY + primarySize / 2 + lineGap + secondarySize / 2,
- );
- }
-
- context.beginPath();
- context.arc(data.x, data.y, nodeSize + 4, 0, Math.PI * 2);
- context.strokeStyle = data.color || "#6366f1";
- context.lineWidth = 2;
- context.globalAlpha = 0.5;
- context.stroke();
- context.globalAlpha = 1;
- },
+ // Hub/core disc labels + hover tooltips. Built per theme via module-level
+ // factories so the theme effect can re-set them on light/dark toggle
+ // without remount (single source of truth — no duplicated drawer logic).
+ defaultDrawNodeLabel: makeDrawNodeLabel(options.graphTheme, drawDiscNodeLabel),
+ defaultDrawNodeHover: makeDrawNodeHover(options.graphTheme),
// --- nodeReducer: ONLY handles interaction state (selection, search, path) ---
// Colors and sizes are pre-set on the graphology graph by the effect above.
@@ -317,9 +552,16 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
const pathNodes = highlightedPathRef.current;
const searchDimmed = searchDimmedRef.current;
const communityDimmed = communityDimmedRef.current;
+ const expandDimmed = expandDimmedRef.current;
// Fast path: nothing active — return data unchanged, zero allocation
- if (!selected && pathNodes.size === 0 && !searchDimmed && !communityDimmed) {
+ if (
+ !selected &&
+ pathNodes.size === 0 &&
+ !searchDimmed &&
+ !communityDimmed &&
+ !expandDimmed
+ ) {
return data;
}
@@ -327,6 +569,12 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
return { ...data, color: dimColor(data.color, 0.12), size: (data.size || 6) * 0.5, zIndex: 0 };
}
+ // Blossom dim: other clusters recede to ~35% (size unchanged so the
+ // unexpanded constellation stays legible underneath).
+ if (expandDimmed?.has(node)) {
+ return { ...data, color: dimColor(data.color, 0.35), zIndex: 0 };
+ }
+
if (communityDimmed?.has(node)) {
return { ...data, color: dimColor(data.color, 0.1), size: (data.size || 6) * 0.5, zIndex: 0 };
}
@@ -370,7 +618,7 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
if (pathEdges.size > 0) {
if (pathEdges.has(edge)) {
- return { ...data, color: "#f59e0b", size: Math.max(3, (data.size || 1) * 3), zIndex: 2 };
+ return { ...data, color: vizRef.current.pathHighlight, size: Math.max(3, (data.size || 1) * 3), zIndex: 2 };
}
if (pathNodes.size > 0 && graph) {
const [source, target] = graph.extremities(edge);
@@ -419,13 +667,18 @@ export function useSigmaRenderer(options: UseSigmaOptions): UseSigmaReturn {
sigma.getCamera().animatedReset({ duration: 500 });
}, [options.graph]);
- const focusNode = useCallback((nodeId: string) => {
+ const focusNode = useCallback((nodeId: string, ratio = 0.15) => {
const sigma = sigmaRef.current;
const graph = graphRef.current;
if (!sigma || !graph || !graph.hasNode(nodeId)) return;
- const attrs = graph.getNodeAttributes(nodeId);
+ // Camera state lives in Sigma's *framed* (normalized) coordinate space, NOT
+ // raw graph coords. Raw graph x/y (radial hubs sit hundreds of units from
+ // the origin) would fly the camera off into blank canvas. getNodeDisplayData
+ // returns the node's position already in the camera's coordinate system.
+ const display = sigma.getNodeDisplayData(nodeId);
+ if (!display) return;
sigma.getCamera().animate(
- { x: attrs.x, y: attrs.y, ratio: 0.15 },
+ { x: display.x, y: display.y, ratio },
{ duration: 400 },
);
}, []);
diff --git a/packages/ui/src/graph/use-expanded-hubs.ts b/packages/ui/src/graph/use-expanded-hubs.ts
new file mode 100644
index 000000000..fceffe2e7
--- /dev/null
+++ b/packages/ui/src/graph/use-expanded-hubs.ts
@@ -0,0 +1,59 @@
+"use client";
+
+import { useState, useCallback } from "react";
+
+/**
+ * Expand/collapse state for constellation hubs (the radial Knowledge Graph
+ * blossom). Multiple hubs may be expanded at once; the order is tracked
+ * most-recent-LAST so Esc / {@link collapseLast} closes the most recently
+ * opened cluster (documented behavior). {@link collapseAll} closes everything.
+ *
+ * Pure client state — the actual member slices are fetched separately
+ * (see useCommunitySlices) and merged into the sigma graph by the shell.
+ */
+export function useExpandedHubs() {
+ // Insertion-ordered list of expanded community ids (oldest → newest).
+ const [expandedHubs, setExpandedHubs] = useState<number[]>([]);
+
+ const toggleHub = useCallback((communityId: number) => {
+ setExpandedHubs((prev) =>
+ prev.includes(communityId)
+ ? prev.filter((id) => id !== communityId)
+ : [...prev, communityId],
+ );
+ }, []);
+
+ const expandHub = useCallback((communityId: number) => {
+ setExpandedHubs((prev) =>
+ prev.includes(communityId) ? prev : [...prev, communityId],
+ );
+ }, []);
+
+ const collapseHub = useCallback((communityId: number) => {
+ setExpandedHubs((prev) => prev.filter((id) => id !== communityId));
+ }, []);
+
+ // Esc semantics: collapse the most recently expanded hub. Returns true when
+ // something was collapsed, so callers can decide whether to also clear other
+ // state (selection, ego, etc.).
+ const collapseLast = useCallback((): boolean => {
+ let collapsed = false;
+ setExpandedHubs((prev) => {
+ if (prev.length === 0) return prev;
+ collapsed = true;
+ return prev.slice(0, -1);
+ });
+ return collapsed;
+ }, []);
+
+ const collapseAll = useCallback(() => setExpandedHubs([]), []);
+
+ return {
+ expandedHubs,
+ toggleHub,
+ expandHub,
+ collapseHub,
+ collapseLast,
+ collapseAll,
+ };
+}
diff --git a/packages/ui/src/graph/use-graph-keyboard-shortcuts.ts b/packages/ui/src/graph/use-graph-keyboard-shortcuts.ts
index 59df07eeb..019d62757 100644
--- a/packages/ui/src/graph/use-graph-keyboard-shortcuts.ts
+++ b/packages/ui/src/graph/use-graph-keyboard-shortcuts.ts
@@ -11,6 +11,10 @@ interface GraphKeyboardShortcutOptions {
setCtxMenu: Dispatch<SetStateAction<GraphCtxMenu | null>>;
setCommunityPanelId: Dispatch<SetStateAction<number | null>>;
setColorMode: Dispatch<SetStateAction<ColorMode>>;
+ /** Optional Escape pre-handler. Return true to consume the keystroke and skip
+ * the default clear. Used to dismiss the top UI layer first: clear an open
+ * selection/panel, else collapse the most recent constellation hub. */
+ onEscape?: (() => boolean) | undefined;
}
/**
@@ -27,6 +31,7 @@ export function useGraphKeyboardShortcuts(opts: GraphKeyboardShortcutOptions): v
setCtxMenu,
setCommunityPanelId,
setColorMode,
+ onEscape,
} = opts;
useEffect(() => {
@@ -41,6 +46,12 @@ export function useGraphKeyboardShortcuts(opts: GraphKeyboardShortcutOptions): v
sigmaRef.current?.fitView();
break;
case "Escape":
+ // Let the host peel the top UI layer first (selection/panel, then
+ // hub); only fall through to the blanket clear if nothing was open.
+ if (onEscape?.()) {
+ e.preventDefault();
+ break;
+ }
setSelectedNodeId(null);
setEgoDepth(0);
setSearchQuery("");
@@ -83,5 +94,6 @@ export function useGraphKeyboardShortcuts(opts: GraphKeyboardShortcutOptions): v
setCtxMenu,
setCommunityPanelId,
setColorMode,
+ onEscape,
]);
}
diff --git a/packages/ui/src/graph/use-graph-search.ts b/packages/ui/src/graph/use-graph-search.ts
index 0f12028ed..40f520b83 100644
--- a/packages/ui/src/graph/use-graph-search.ts
+++ b/packages/ui/src/graph/use-graph-search.ts
@@ -35,6 +35,13 @@ export function useGraphSearch(opts: GraphSearchOptions) {
const [searchResults, setSearchResults] = useState<string[]>([]);
const [searchResultIndex, setSearchResultIndex] = useState(0);
+ // The index is built over the *rendered* sigma graph. In the constellation
+ // scope this means hub labels plus, once a hub is expanded, its satellite
+ // (member file) nodes — the memo re-runs whenever the merged graph changes, so
+ // expanding a hub makes its members searchable automatically. LIMITATION:
+ // member file names are NOT indexed before their hub is expanded (full member
+ // lists aren't fetched until expansion), so a pre-expansion search matches hub
+ // labels only.
const fuseIndex = useMemo(() => {
if (!sigmaGraph)
return new Fuse<{ id: string; label: string }>([], {
diff --git a/packages/ui/src/health/trend-chart.tsx b/packages/ui/src/health/trend-chart.tsx
index 934c995db..6506c4430 100644
--- a/packages/ui/src/health/trend-chart.tsx
+++ b/packages/ui/src/health/trend-chart.tsx
@@ -68,15 +68,15 @@ export function TrendChart({ history, height = 220 }: TrendChartProps) {
</text>
</g>
))}
- <path d={path("average_health")} stroke="#10b981" strokeWidth={1.8} fill="none" />
- <path d={path("hotspot_health")} stroke="#f59e0b" strokeWidth={1.8} fill="none" />
- <path d={path("worst_performer_score")} stroke="#ef4444" strokeWidth={1.4} fill="none" strokeDasharray="3 3" />
+ <path d={path("average_health")} stroke="var(--color-success)" strokeWidth={1.8} fill="none" />
+ <path d={path("hotspot_health")} stroke="var(--color-warning)" strokeWidth={1.8} fill="none" />
+ <path d={path("worst_performer_score")} stroke="var(--color-error)" strokeWidth={1.4} fill="none" strokeDasharray="3 3" />
{history.map((p, i) => (
<g key={i}>
- <circle cx={xScale(i)} cy={yScale(p.average_health)} r={2.5} fill="#10b981" />
- <circle cx={xScale(i)} cy={yScale(p.hotspot_health)} r={2.5} fill="#f59e0b" />
+ <circle cx={xScale(i)} cy={yScale(p.average_health)} r={2.5} fill="var(--color-success)" />
+ <circle cx={xScale(i)} cy={yScale(p.hotspot_health)} r={2.5} fill="var(--color-warning)" />
{p.worst_performer_score != null ? (
- <circle cx={xScale(i)} cy={yScale(p.worst_performer_score)} r={2} fill="#ef4444" />
+ <circle cx={xScale(i)} cy={yScale(p.worst_performer_score)} r={2} fill="var(--color-error)" />
) : null}
</g>
))}
diff --git a/packages/ui/src/health/untested-hotspot-warning.tsx b/packages/ui/src/health/untested-hotspot-warning.tsx
index 6a1166eb6..09dd91534 100644
--- a/packages/ui/src/health/untested-hotspot-warning.tsx
+++ b/packages/ui/src/health/untested-hotspot-warning.tsx
@@ -20,9 +20,9 @@ export function UntestedHotspotWarning({
if (entries.length === 0) return null;
const shown = entries.slice(0, limit);
return (
- <div className="rounded-lg border border-amber-500/40 bg-amber-500/5 p-4">
+ <div className="rounded-lg border border-[var(--color-warning)]/40 bg-[var(--color-warning)]/5 p-4">
<div className="flex items-start gap-2 mb-2">
- <AlertTriangle className="h-4 w-4 text-amber-500 mt-0.5" />
+ <AlertTriangle className="h-4 w-4 text-[var(--color-warning)] mt-0.5" />
<div>
<h3 className="text-sm font-semibold text-[var(--color-text-primary)]">
Untested hotspots
diff --git a/packages/ui/src/jobs/generation-progress.tsx b/packages/ui/src/jobs/generation-progress.tsx
index f87bd6a96..afeff64e3 100644
--- a/packages/ui/src/jobs/generation-progress.tsx
+++ b/packages/ui/src/jobs/generation-progress.tsx
@@ -89,11 +89,11 @@ export function GenerationProgress({
</div>
{stuckPending && (
- <div className="flex items-start gap-2 rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-200">
- <AlertTriangle className="h-4 w-4 shrink-0 mt-0.5" />
+ <div className="flex items-start gap-2 rounded-md border border-[var(--color-warning)]/40 bg-[var(--color-warning)]/10 px-3 py-2 text-xs text-[var(--color-text-primary)]">
+ <AlertTriangle className="h-4 w-4 shrink-0 mt-0.5 text-[var(--color-warning)]" />
<div className="flex-1">
<p className="font-medium">Job hasn&apos;t started after {Math.round(elapsed / 1000)}s.</p>
- <p className="mt-0.5 opacity-80">
+ <p className="mt-0.5 text-[var(--color-text-secondary)]">
The server may have crashed before the worker could pick it up. Cancel
this job and try again — if it keeps happening, check the server logs.
</p>
diff --git a/packages/ui/src/lib/confidence.ts b/packages/ui/src/lib/confidence.ts
index 0df325de0..2890d33e0 100644
--- a/packages/ui/src/lib/confidence.ts
+++ b/packages/ui/src/lib/confidence.ts
@@ -26,29 +26,29 @@ export function statusColor(status: FreshnessStatus): string {
}
}
-/** Tailwind text color class for a given freshness status */
+/** Tailwind text color class for a given freshness status (theme-aware) */
export function statusTextClass(status: FreshnessStatus): string {
switch (status) {
case "fresh":
- return "text-green-500";
+ return "text-[var(--color-confidence-fresh)]";
case "stale":
- return "text-yellow-500";
+ return "text-[var(--color-confidence-stale)]";
case "outdated":
default:
- return "text-red-500";
+ return "text-[var(--color-confidence-outdated)]";
}
}
-/** Tailwind bg + text badge classes for a given freshness status */
+/** Tailwind bg + text badge classes for a given freshness status (theme-aware) */
export function statusBadgeClasses(status: FreshnessStatus): string {
switch (status) {
case "fresh":
- return "bg-green-500/10 text-green-500 border-green-500/20";
+ return "bg-[color-mix(in_srgb,var(--color-confidence-fresh)_12%,transparent)] text-[var(--color-confidence-fresh)] border-[color-mix(in_srgb,var(--color-confidence-fresh)_28%,transparent)]";
case "stale":
- return "bg-yellow-500/10 text-yellow-500 border-yellow-500/20";
+ return "bg-[color-mix(in_srgb,var(--color-confidence-stale)_12%,transparent)] text-[var(--color-confidence-stale)] border-[color-mix(in_srgb,var(--color-confidence-stale)_28%,transparent)]";
case "outdated":
default:
- return "bg-red-500/10 text-red-500 border-red-500/20";
+ return "bg-[color-mix(in_srgb,var(--color-confidence-outdated)_12%,transparent)] text-[var(--color-confidence-outdated)] border-[color-mix(in_srgb,var(--color-confidence-outdated)_28%,transparent)]";
}
}
@@ -65,7 +65,16 @@ export function statusLabel(status: FreshnessStatus): string {
}
}
-/** Color hex for a graph language node */
+/*
+ * ALLOWLISTED raw hex (no-raw-hex gate): LANGUAGE_COLORS are canonical
+ * language brand colors and EDGE_COLORS feed <canvas>/SVG viz where a CSS
+ * var() string cannot resolve — both must be literal hex. Values mirror the
+ * --color-lang-* / --color-edge-* tokens in styles/globals.css; keep in sync.
+ * Theme-aware canvas tinting (resolving these from CSS vars at runtime) is
+ * tracked as follow-up viz work.
+ */
+
+/** Color hex for a graph language node (canonical brand hues) */
export const LANGUAGE_COLORS: Record<string, string> = {
python: "#3776AB",
typescript: "#3178C6",
@@ -86,16 +95,16 @@ export function languageColor(lang: string): string {
return LANGUAGE_COLORS[lang.toLowerCase()] ?? LANGUAGE_COLORS.other ?? "#8B5CF6";
}
-/** Color hex for a graph edge type */
+/** Color hex for a graph edge type (warm theme palette; mirrors --color-edge-*) */
export const EDGE_COLORS: Record<string, string> = {
- imports: "#5B9CF6",
- calls: "#22c55e",
- inherits: "#a855f7",
- implements: "#ec4899",
- co_change: "#8b5cf6",
- co_changes: "#8b5cf6",
+ imports: "#F59520",
+ calls: "#34D399",
+ inherits: "#A98FC4",
+ implements: "#C85AA0",
+ co_change: "#7C5CC4",
+ co_changes: "#7C5CC4",
};
export function edgeColor(edgeType: string): string {
- return EDGE_COLORS[edgeType.toLowerCase()] ?? "#5B9CF6";
+ return EDGE_COLORS[edgeType.toLowerCase()] ?? EDGE_COLORS.imports ?? "#F27F3D";
}
diff --git a/packages/ui/src/lib/format.ts b/packages/ui/src/lib/format.ts
index 965e1572e..dfe0ecc25 100644
--- a/packages/ui/src/lib/format.ts
+++ b/packages/ui/src/lib/format.ts
@@ -103,6 +103,12 @@ export function formatAgeDays(n: number): string {
return `${years} year${years !== 1 ? "s" : ""}`;
}
+/** Strip inline markdown emphasis/code markers for plain-text display:
+ * "**`litellm` API-key resolution** in CLI" → "litellm API-key resolution in CLI" */
+export function stripMarkdown(text: string): string {
+ return text.replace(/\*\*|__|`/g, "");
+}
+
/** Format a confidence score as a percentage string: 0.87 → "87%" */
export function formatConfidence(score: number): string {
return `${Math.round(score * 100)}%`;
diff --git a/packages/ui/src/security/findings-by-directory.tsx b/packages/ui/src/security/findings-by-directory.tsx
index 48600940c..ce060e3db 100644
--- a/packages/ui/src/security/findings-by-directory.tsx
+++ b/packages/ui/src/security/findings-by-directory.tsx
@@ -43,13 +43,13 @@ export function FindingsByDirectory({ findings, depth = 2 }: FindingsByDirectory
</div>
<div className="flex h-2 w-full overflow-hidden rounded-full bg-[var(--color-bg-inset)]">
{r.high > 0 && (
- <div style={{ width: `${(r.high / max) * 100}%`, backgroundColor: "#ef4444" }} />
+ <div style={{ width: `${(r.high / max) * 100}%`, backgroundColor: "var(--color-error)" }} />
)}
{r.med > 0 && (
- <div style={{ width: `${(r.med / max) * 100}%`, backgroundColor: "#f59e0b" }} />
+ <div style={{ width: `${(r.med / max) * 100}%`, backgroundColor: "var(--color-warning)" }} />
)}
{r.low > 0 && (
- <div style={{ width: `${(r.low / max) * 100}%`, backgroundColor: "#10b981" }} />
+ <div style={{ width: `${(r.low / max) * 100}%`, backgroundColor: "var(--color-success)" }} />
)}
</div>
</div>
diff --git a/packages/ui/src/security/severity-distribution.tsx b/packages/ui/src/security/severity-distribution.tsx
index 641570a8d..5eef1d1e3 100644
--- a/packages/ui/src/security/severity-distribution.tsx
+++ b/packages/ui/src/security/severity-distribution.tsx
@@ -10,9 +10,9 @@ const SEVERITY_LABELS: Record<string, string> = {
low: "Low",
};
const SEVERITY_COLORS: Record<string, string> = {
- high: "#ef4444",
- med: "#f59e0b",
- low: "#10b981",
+ high: "var(--color-error)",
+ med: "var(--color-warning)",
+ low: "var(--color-success)",
};
export interface SeverityDistributionProps {
diff --git a/packages/ui/src/shared/brand-mark.tsx b/packages/ui/src/shared/brand-mark.tsx
new file mode 100644
index 000000000..0b671023c
--- /dev/null
+++ b/packages/ui/src/shared/brand-mark.tsx
@@ -0,0 +1,47 @@
+import { cn } from "../lib/cn";
+
+export interface BrandMarkProps {
+ /** Canonical owl — cream strokes, drawn for dark surfaces. */
+ darkSrc?: string;
+ /** Plum-stroke variant for light surfaces. */
+ lightSrc?: string;
+ size?: number;
+ alt?: string;
+ className?: string;
+}
+
+/**
+ * Theme-aware brand mark for packages/ui surfaces. Mirrors the web app's
+ * BrandLogo: the canonical owl asset has cream strokes (drawn for dark
+ * surfaces), so light mode swaps in the plum-stroke variant. Both render so
+ * the theme flip is instant — visibility is CSS-only via the `.dark` class.
+ */
+export function BrandMark({
+ darkSrc = "/repowise-logo.png",
+ lightSrc = "/repowise-logo-light.png",
+ size = 28,
+ alt = "repowise",
+ className,
+}: BrandMarkProps) {
+ return (
+ <>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={lightSrc}
+ alt={alt}
+ width={size}
+ height={size}
+ className={cn("shrink-0 dark:hidden", className)}
+ />
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={darkSrc}
+ alt=""
+ aria-hidden
+ width={size}
+ height={size}
+ className={cn("shrink-0 hidden dark:block", className)}
+ />
+ </>
+ );
+}
diff --git a/packages/ui/src/shared/empty-state.tsx b/packages/ui/src/shared/empty-state.tsx
index 8607594f6..31a57b653 100644
--- a/packages/ui/src/shared/empty-state.tsx
+++ b/packages/ui/src/shared/empty-state.tsx
@@ -17,12 +17,14 @@ export function EmptyState({ icon, title, description, action, className }: Empt
return (
<div
className={cn(
- "flex flex-col items-center justify-center gap-4 rounded-lg border border-dashed border-[var(--color-border-default)] p-12 text-center",
+ "flex flex-col items-center justify-center gap-4 rounded-lg border border-dashed border-[var(--color-border-default)] p-12 text-center [background-image:var(--gradient-warm-wash)]",
className,
)}
>
{icon && (
- <div className="text-[var(--color-text-tertiary)]">{icon}</div>
+ <div className="flex h-14 w-14 items-center justify-center rounded-2xl text-[var(--color-text-on-accent)] shadow-[var(--shadow-md)] [background-image:var(--gradient-warm)]">
+ {icon}
+ </div>
)}
<div className="space-y-1">
<h3 className="text-sm font-semibold text-[var(--color-text-primary)]">{title}</h3>
diff --git a/packages/ui/src/shared/entity/entity-hover-card.tsx b/packages/ui/src/shared/entity/entity-hover-card.tsx
index 9c4e20cf3..8e8e3a1c4 100644
--- a/packages/ui/src/shared/entity/entity-hover-card.tsx
+++ b/packages/ui/src/shared/entity/entity-hover-card.tsx
@@ -10,6 +10,8 @@ interface EntityHoverCardProps {
entity: EntityRef;
meta?: EntityMeta | undefined;
children: React.ReactNode;
+ /** Render the card open immediately (tests / previews). */
+ defaultOpen?: boolean | undefined;
}
/**
@@ -17,9 +19,9 @@ interface EntityHoverCardProps {
* Card content is purely presentational — the caller supplies whatever
* metadata is already in scope. Missing fields gracefully degrade.
*/
-export function EntityHoverCard({ entity, meta, children }: EntityHoverCardProps) {
+export function EntityHoverCard({ entity, meta, children, defaultOpen }: EntityHoverCardProps) {
return (
- <HoverCardPrimitive.Root openDelay={250} closeDelay={120}>
+ <HoverCardPrimitive.Root openDelay={250} closeDelay={120} defaultOpen={defaultOpen ?? false}>
<HoverCardPrimitive.Trigger asChild>{children}</HoverCardPrimitive.Trigger>
<HoverCardPrimitive.Portal>
<HoverCardPrimitive.Content
@@ -83,6 +85,20 @@ function FileMeta({ data }: { data?: import("./types").FileEntityMeta | undefine
if (!data) return null;
return (
<div className="space-y-1">
+ {data.summary && (
+ <p className="text-[11px] leading-snug text-[var(--color-text-secondary)] line-clamp-3">
+ {data.summary}
+ </p>
+ )}
+ {data.tags && data.tags.length > 0 && (
+ <div className="flex flex-wrap gap-1 pb-1">
+ {data.tags.slice(0, 6).map((tag) => (
+ <Pill key={tag} tone="info">
+ {tag}
+ </Pill>
+ ))}
+ </div>
+ )}
<Row label="Owner" value={data.owner ?? null} />
<Row
label="Churn"
@@ -193,10 +209,10 @@ function Pill({
}) {
const cls =
tone === "error"
- ? "border-red-500/40 bg-red-500/10 text-red-400"
+ ? "border-[var(--color-error)]/40 bg-[var(--color-error)]/10 text-[var(--color-error)]"
: tone === "warn"
- ? "border-amber-500/40 bg-amber-500/10 text-amber-400"
- : "border-sky-500/40 bg-sky-500/10 text-sky-400";
+ ? "border-[var(--color-warning)]/40 bg-[var(--color-warning)]/10 text-[var(--color-warning)]"
+ : "border-[var(--color-info)]/40 bg-[var(--color-info)]/10 text-[var(--color-info)]";
return (
<span
className={cn(
diff --git a/packages/ui/src/shared/entity/types.ts b/packages/ui/src/shared/entity/types.ts
index c0d1c62d9..132960cdd 100644
--- a/packages/ui/src/shared/entity/types.ts
+++ b/packages/ui/src/shared/entity/types.ts
@@ -29,6 +29,10 @@ export interface FileEntityMeta {
hasDocs?: boolean;
hasDeadCode?: boolean;
language?: string | null;
+ /** Curated one-line summary from the knowledge graph (never-empty floor). */
+ summary?: string | null;
+ /** Curated tags (entry_point, barrel, ci, …). */
+ tags?: string[];
}
export interface SymbolEntityMeta {
diff --git a/packages/ui/src/shared/index.ts b/packages/ui/src/shared/index.ts
index a7eb4bc8e..9a4dfaed3 100644
--- a/packages/ui/src/shared/index.ts
+++ b/packages/ui/src/shared/index.ts
@@ -1,7 +1,10 @@
export * from "./api-error";
+export { BrandMark, type BrandMarkProps } from "./brand-mark";
export * from "./breadcrumb";
export * from "./empty-state";
export * from "./stat-card";
export * from "./results-footer";
export { RowActions, type RowAction } from "./row-actions";
export * from "./entity";
+export { ThemeToggle, type ThemeToggleProps } from "./theme-toggle";
+export { resolveToken, resolveTokens, useThemeVersion } from "./use-theme-tokens";
diff --git a/packages/ui/src/shared/stat-card.tsx b/packages/ui/src/shared/stat-card.tsx
index c0f93bb9e..e6ebbcffd 100644
--- a/packages/ui/src/shared/stat-card.tsx
+++ b/packages/ui/src/shared/stat-card.tsx
@@ -10,6 +10,8 @@ interface StatCardProps {
icon?: React.ReactNode;
className?: string;
href?: string;
+ /** Tighter padding for dense stat strips. */
+ dense?: boolean;
}
export function StatCard({
@@ -20,10 +22,11 @@ export function StatCard({
icon,
className,
href,
+ dense,
}: StatCardProps) {
const card = (
- <Card className={cn("transition-colors hover:border-[var(--color-border-hover)]", href && "cursor-pointer", className)}>
- <CardContent className="p-4">
+ <Card className={cn("h-full transition-colors hover:border-[var(--color-border-hover)]", href && "cursor-pointer", className)}>
+ <CardContent className={dense ? "p-3" : "p-4"}>
<div className="flex items-start justify-between">
<div className="space-y-1">
<p className="text-xs font-medium text-[var(--color-text-tertiary)] uppercase tracking-wider">
@@ -62,7 +65,7 @@ export function StatCard({
if (href) {
return (
- <a href={href} className="block no-underline">
+ <a href={href} className="block h-full no-underline">
{card}
</a>
);
diff --git a/packages/ui/src/shared/theme-toggle.tsx b/packages/ui/src/shared/theme-toggle.tsx
new file mode 100644
index 000000000..8ea7c6098
--- /dev/null
+++ b/packages/ui/src/shared/theme-toggle.tsx
@@ -0,0 +1,90 @@
+"use client";
+
+/**
+ * ThemeToggle — shared segmented Light / Dark control.
+ *
+ * Canonical implementation consumed by both `packages/web` and the hosted
+ * frontend so the toggle UX stays identical across surfaces. Relies on
+ * `next-themes` (a peer dependency of consumers) for state + persistence;
+ * this component just calls `setTheme()`.
+ *
+ * Deliberately two-state — no "System" option (product decision: keep the
+ * choice explicit). Consumers set `enableSystem={false}` on their provider;
+ * the mount effect below migrates any stale persisted "system" value to the
+ * light default so pre-simplification visitors don't keep an unknown theme.
+ * The migration only fires for non light/dark values, so an explicit Light or
+ * Dark choice is never rewritten.
+ *
+ * Renders nothing theme-dependent until mounted so the control doesn't flash
+ * the wrong selection during hydration (next-themes returns `undefined` on
+ * the server).
+ */
+
+import { useEffect, useState } from "react";
+import { useTheme } from "next-themes";
+import { Sun, Moon } from "lucide-react";
+import { cn } from "../lib/cn";
+
+const OPTIONS = [
+ { value: "light" as const, label: "Light", icon: Sun },
+ { value: "dark" as const, label: "Dark", icon: Moon },
+];
+
+export interface ThemeToggleProps {
+ /** Hide the text labels and render an icon-only compact control. */
+ compact?: boolean;
+ className?: string;
+}
+
+export function ThemeToggle({ compact = false, className }: ThemeToggleProps) {
+ const { theme, setTheme } = useTheme();
+ const [mounted, setMounted] = useState(false);
+
+ useEffect(() => {
+ setMounted(true);
+ }, []);
+
+ // Migrate a persisted "system" (or any unknown) theme from before the
+ // simplification to the explicit light default. Only fires for non
+ // light/dark values, so an explicit user choice is never clobbered.
+ useEffect(() => {
+ if (mounted && theme !== "light" && theme !== "dark") setTheme("light");
+ }, [mounted, theme, setTheme]);
+
+ return (
+ <div
+ role="radiogroup"
+ aria-label="Theme preference"
+ className={cn(
+ "inline-flex items-center gap-1 rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)] p-1",
+ className,
+ )}
+ >
+ {OPTIONS.map((opt) => {
+ const Icon = opt.icon;
+ const selected = mounted && theme === opt.value;
+ return (
+ <button
+ key={opt.value}
+ type="button"
+ role="radio"
+ aria-checked={selected}
+ aria-label={opt.label}
+ title={opt.label}
+ onClick={() => setTheme(opt.value)}
+ className={cn(
+ "inline-flex items-center justify-center gap-1.5 rounded-md text-xs font-medium transition-colors",
+ compact ? "px-2 py-1.5" : "px-3 py-1.5",
+ selected
+ ? "bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] shadow-[var(--shadow-sm)]"
+ : "text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)]",
+ )}
+ >
+ <Icon className="h-3.5 w-3.5 shrink-0" />
+ {!compact && opt.label}
+ </button>
+ );
+ })}
+ </div>
+ );
+}
diff --git a/packages/ui/src/shared/use-theme-tokens.ts b/packages/ui/src/shared/use-theme-tokens.ts
new file mode 100644
index 000000000..19a15a0dd
--- /dev/null
+++ b/packages/ui/src/shared/use-theme-tokens.ts
@@ -0,0 +1,106 @@
+"use client";
+
+/**
+ * Runtime design-token resolution for canvas / library renderers.
+ *
+ * Most components consume `var(--color-*)` directly and inherit light/dark for
+ * free. But renderers that paint to a `<canvas>` or hand colors to a library
+ * (Mermaid, Sigma, exported SVG strings) can't use `var()` — they need the
+ * *computed* color, read from the live `:root` style, and must re-read +
+ * re-render when the user flips the theme.
+ *
+ * `useThemeVersion()` returns a counter that bumps whenever the `.dark` class
+ * (or inline style) on <html> changes — put it in a dependency array to force a
+ * re-render on theme switch. `resolveToken()` reads one computed custom
+ * property; `resolveTokens()` reads a map of them. Read inside an effect/memo
+ * keyed on the theme version so the values track the active theme.
+ */
+
+import { useEffect, useMemo, useState } from "react";
+
+/** Read a single CSS custom property off <html>, resolved to its computed value. */
+export function resolveToken(name: string, fallback = ""): string {
+ if (typeof window === "undefined") return fallback;
+ const value = getComputedStyle(document.documentElement).getPropertyValue(name).trim();
+ return value || fallback;
+}
+
+/** Resolve a `{ key: "--color-var" }` spec to `{ key: "#computed" }`. */
+export function resolveTokens<K extends string>(spec: Record<K, string>): Record<K, string> {
+ const out = {} as Record<K, string>;
+ for (const key in spec) out[key] = resolveToken(spec[key]);
+ return out;
+}
+
+/**
+ * A counter that increments whenever the document theme changes (the `.dark`
+ * class or inline `style` on <html> mutates). Use as a dependency so canvas
+ * renderers re-resolve tokens and repaint on light/dark switch.
+ */
+export function useThemeVersion(): number {
+ const [version, setVersion] = useState(0);
+ useEffect(() => {
+ const root = document.documentElement;
+ const observer = new MutationObserver(() => setVersion((v) => v + 1));
+ observer.observe(root, { attributes: true, attributeFilter: ["class", "style", "data-theme"] });
+ return () => observer.disconnect();
+ }, []);
+ return version;
+}
+
+// --------------------------------------------------------------------------
+// Community families (graph clustering palette)
+// --------------------------------------------------------------------------
+
+/** Number of community families defined in globals.css (`--color-community-1..N`). */
+export const COMMUNITY_FAMILY_COUNT = 12;
+
+/** A resolved community color pair: `hub` for centroids, `satellite` for leaves. */
+export interface CommunityFamily {
+ hub: string;
+ satellite: string;
+}
+
+/**
+ * Resolve the warm community family for a given community id, cycling through
+ * the 12 `--color-community-*` token pairs. Reads the *computed* tokens so the
+ * canvas gets theme-correct hex. Call inside an effect/memo keyed on
+ * {@link useThemeVersion} so values track the active theme. On SSR (no window)
+ * the token resolves to "" and the satellite falls back to the hub.
+ */
+export function getCommunityFamily(communityId: number): CommunityFamily {
+ const n = (((communityId % COMMUNITY_FAMILY_COUNT) + COMMUNITY_FAMILY_COUNT) %
+ COMMUNITY_FAMILY_COUNT) + 1;
+ const resolved = resolveTokens({
+ hub: `--color-community-${n}`,
+ satellite: `--color-community-${n}-soft`,
+ });
+ return {
+ hub: resolved.hub,
+ satellite: resolved.satellite || resolved.hub,
+ };
+}
+
+/**
+ * Hook variant: returns a stable `getCommunityFamily`-style resolver that
+ * re-reads the computed tokens whenever the theme flips. Use in renderers that
+ * paint community colors to a canvas/library so they repaint on light/dark
+ * switch (mirrors the Mermaid/C4 token-resolution pattern).
+ */
+export function useCommunityFamilies(): (communityId: number) => CommunityFamily {
+ const version = useThemeVersion();
+ return useMemo(() => {
+ // Pre-resolve all 12 families once per theme version; the returned closure
+ // is a cheap cyclic lookup with no per-call getComputedStyle cost.
+ void version;
+ const families: CommunityFamily[] = [];
+ for (let i = 0; i < COMMUNITY_FAMILY_COUNT; i++) {
+ families.push(getCommunityFamily(i));
+ }
+ return (communityId: number) => {
+ const idx = (((communityId % COMMUNITY_FAMILY_COUNT) + COMMUNITY_FAMILY_COUNT) %
+ COMMUNITY_FAMILY_COUNT);
+ return families[idx] ?? families[0] ?? { hub: "", satellite: "" };
+ };
+ }, [version]);
+}
diff --git a/packages/ui/src/ui/badge.tsx b/packages/ui/src/ui/badge.tsx
index d8e7218cc..7627a7013 100644
--- a/packages/ui/src/ui/badge.tsx
+++ b/packages/ui/src/ui/badge.tsx
@@ -10,11 +10,11 @@ const badgeVariants = cva(
default:
"border-[var(--color-border-default)] bg-[var(--color-bg-elevated)] text-[var(--color-text-secondary)]",
fresh:
- "border-green-500/20 bg-green-500/10 text-green-500",
+ "border-[color-mix(in_srgb,var(--color-confidence-fresh)_28%,transparent)] bg-[color-mix(in_srgb,var(--color-confidence-fresh)_12%,transparent)] text-[var(--color-confidence-fresh)]",
stale:
- "border-yellow-500/20 bg-yellow-500/10 text-yellow-500",
+ "border-[color-mix(in_srgb,var(--color-confidence-stale)_28%,transparent)] bg-[color-mix(in_srgb,var(--color-confidence-stale)_12%,transparent)] text-[var(--color-confidence-stale)]",
outdated:
- "border-red-500/20 bg-red-500/10 text-red-500",
+ "border-[color-mix(in_srgb,var(--color-confidence-outdated)_28%,transparent)] bg-[color-mix(in_srgb,var(--color-confidence-outdated)_12%,transparent)] text-[var(--color-confidence-outdated)]",
accent:
"border-[var(--color-accent-muted)] bg-[var(--color-accent-muted)] text-[var(--color-accent-primary)]",
outline:
diff --git a/packages/ui/src/ui/button.tsx b/packages/ui/src/ui/button.tsx
index a2279b17c..e01f8614b 100644
--- a/packages/ui/src/ui/button.tsx
+++ b/packages/ui/src/ui/button.tsx
@@ -9,9 +9,9 @@ const buttonVariants = cva(
variants: {
variant: {
default:
- "bg-[var(--color-accent-primary)] text-[var(--color-text-inverse)] hover:bg-[var(--color-accent-hover)]",
+ "bg-[var(--color-accent-fill)] [background-image:var(--gradient-ember)] text-[var(--color-text-on-accent)] shadow-[var(--shadow-button)] transition-[filter,box-shadow] hover:brightness-[1.06]",
destructive:
- "bg-[var(--color-error)] text-white hover:bg-red-600",
+ "bg-[var(--color-error)] text-[var(--color-text-inverse)] hover:opacity-90",
outline:
"border border-[var(--color-border-default)] bg-transparent text-[var(--color-text-primary)] hover:bg-[var(--color-bg-elevated)] hover:border-[var(--color-border-hover)]",
secondary:
diff --git a/packages/ui/src/wiki/mermaid-diagram.tsx b/packages/ui/src/wiki/mermaid-diagram.tsx
index 0303b4516..af8bd56a8 100644
--- a/packages/ui/src/wiki/mermaid-diagram.tsx
+++ b/packages/ui/src/wiki/mermaid-diagram.tsx
@@ -2,43 +2,125 @@
import { useEffect, useRef, useState } from "react";
import { Maximize2, X, ZoomIn, ZoomOut, RotateCcw } from "lucide-react";
+import { resolveToken, useThemeVersion } from "../shared/use-theme-tokens";
interface MermaidDiagramProps {
chart: string;
}
-let mermaidInitialized = false;
+/**
+ * Derive Mermaid's `themeVariables` from the live design tokens. Mermaid bakes
+ * concrete colors into the SVG it renders, so it can't consume `var()` — we
+ * read the computed token values and rebuild on each theme switch. `theme:
+ * "base"` is the only built-in theme that honors a full custom palette.
+ *
+ * The look is the brand "blueprint" aesthetic: ink-filled rounded nodes on a
+ * faint grid (grid lives on the container, see MermaidDiagram), dashed
+ * connectors, and the entry node highlighted in brand orange.
+ */
+function mermaidThemeConfig() {
+ // Rendered only client-side (dynamic import inside an effect), so the live
+ // computed tokens always resolve — no SSR fallback needed.
+ const elevated = resolveToken("--color-bg-elevated");
+ const inset = resolveToken("--color-bg-inset");
+ const text = resolveToken("--color-text-primary");
+ const nodeFill = resolveToken("--color-diagram-node-fill");
+ const nodeText = resolveToken("--color-diagram-node-text");
+ const nodeBorder = resolveToken("--color-diagram-node-border");
+ const edge = resolveToken("--color-diagram-edge");
+ const clusterBorder = resolveToken("--color-diagram-cluster-border");
+ const accentFill = resolveToken("--color-accent-fill");
+ const textOnAccent = resolveToken("--color-text-on-accent");
+ const fontMono = resolveToken("--font-mono") || "ui-monospace, Menlo, monospace";
+
+ return {
+ theme: "base" as const,
+ themeVariables: {
+ background: elevated,
+ fontFamily: fontMono,
+ fontSize: "14px",
+ primaryColor: nodeFill,
+ primaryBorderColor: nodeBorder,
+ primaryTextColor: nodeText,
+ secondaryColor: inset,
+ tertiaryColor: inset,
+ lineColor: edge,
+ textColor: text,
+ nodeBorder: nodeBorder,
+ clusterBkg: "transparent",
+ clusterBorder: clusterBorder,
+ edgeLabelBackground: elevated,
+ },
+ // Flowchart-specific polish themeVariables can't express: rounded ink
+ // blocks, dashed connectors, dashed cluster frames, orange entry node.
+ themeCSS: `
+ .node rect, .node polygon, .node circle {
+ rx: 8px; ry: 8px;
+ stroke-width: 1.25px;
+ }
+ .nodeLabel { font-weight: 600; }
+ .edgePaths path, .flowchart-link {
+ stroke-dasharray: 6 4;
+ stroke-width: 1.5px;
+ }
+ .cluster rect { stroke-dasharray: 8 5; rx: 12px; ry: 12px; }
+ .nodes .node:first-of-type rect,
+ .nodes .node:first-of-type polygon,
+ .nodes .node:first-of-type circle {
+ fill: ${accentFill};
+ stroke: ${accentFill};
+ }
+ .nodes .node:first-of-type .nodeLabel,
+ .nodes .node:first-of-type .nodeLabel * {
+ color: ${textOnAccent} !important;
+ fill: ${textOnAccent} !important;
+ }
+ `,
+ };
+}
+
+let mermaidSignature = "";
async function ensureMermaid() {
const { default: mermaid } = await import("mermaid");
- if (!mermaidInitialized) {
+ const config = mermaidThemeConfig();
+ const signature = JSON.stringify([config.themeVariables, config.themeCSS]);
+ // Re-initialize when the resolved palette changes (i.e. on theme switch);
+ // mermaid.initialize is global, so a new signature reconfigures it in place.
+ if (signature !== mermaidSignature) {
mermaid.initialize({
startOnLoad: false,
- theme: "dark",
- themeVariables: {
- background: "#141414",
- primaryColor: "#1c1c1c",
- primaryBorderColor: "#3f3f46",
- primaryTextColor: "#e4e4e7",
- secondaryColor: "#1c1c1c",
- tertiaryColor: "#0a0a0a",
- lineColor: "#52525b",
- textColor: "#e4e4e7",
- nodeBorder: "#3f3f46",
- clusterBkg: "#0a0a0a",
- clusterBorder: "#3f3f46",
- edgeLabelBackground: "#1c1c1c",
+ theme: config.theme,
+ themeVariables: config.themeVariables,
+ themeCSS: config.themeCSS,
+ // useMaxWidth would scale wide diagrams down to the prose column,
+ // shrinking node text to unreadable sizes. Render at natural size
+ // instead — the inline wrapper scrolls and the dialog pans/zooms.
+ flowchart: {
+ htmlLabels: true,
+ curve: "linear",
+ padding: 16,
+ nodeSpacing: 50,
+ rankSpacing: 60,
+ useMaxWidth: false,
},
- flowchart: { htmlLabels: true, curve: "basis", padding: 12 },
+ sequence: { useMaxWidth: false },
+ state: { useMaxWidth: false },
+ class: { useMaxWidth: false },
+ er: { useMaxWidth: false },
securityLevel: "loose",
});
- mermaidInitialized = true;
+ mermaidSignature = signature;
}
return mermaid;
}
function useMermaidRender(chart: string, target: HTMLDivElement | null) {
const [error, setError] = useState<string | null>(null);
+ // Bumped after every successful render so consumers (fit-to-viewport in the
+ // dialog) can react once the SVG actually exists.
+ const [renderTick, setRenderTick] = useState(0);
+ const themeVersion = useThemeVersion();
useEffect(() => {
if (!target) return;
@@ -53,12 +135,12 @@ function useMermaidRender(chart: string, target: HTMLDivElement | null) {
target.innerHTML = svg;
const svgEl = target.querySelector("svg");
if (svgEl) {
- svgEl.removeAttribute("width");
- svgEl.removeAttribute("height");
- svgEl.style.maxWidth = "100%";
- svgEl.style.height = "auto";
+ // Keep the natural width/height mermaid computed (useMaxWidth:
+ // false). Stripping them collapses the SVG to zero width inside
+ // content-sized containers — the old "blank maximize dialog" bug.
svgEl.style.display = "block";
}
+ setRenderTick((t) => t + 1);
})
.catch((e: unknown) => {
if (!cancelled) setError(e instanceof Error ? e.message : "Diagram render failed");
@@ -67,17 +149,37 @@ function useMermaidRender(chart: string, target: HTMLDivElement | null) {
return () => {
cancelled = true;
};
- }, [chart, target]);
+ }, [chart, target, themeVersion]);
- return error;
+ return { error, renderTick };
}
+/** Natural SVG size as rendered by mermaid (transform-independent). */
+function svgNaturalSize(container: HTMLDivElement | null): { w: number; h: number } | null {
+ const svg = container?.querySelector("svg");
+ if (!svg) return null;
+ const w = parseFloat(svg.getAttribute("width") ?? "");
+ const h = parseFloat(svg.getAttribute("height") ?? "");
+ if (Number.isFinite(w) && Number.isFinite(h) && w > 0 && h > 0) return { w, h };
+ const vb = svg.viewBox?.baseVal;
+ if (vb && vb.width > 0 && vb.height > 0) return { w: vb.width, h: vb.height };
+ return null;
+}
+
+const GRID_BACKGROUND: React.CSSProperties = {
+ backgroundImage:
+ "linear-gradient(var(--color-diagram-grid) 1px, transparent 1px), " +
+ "linear-gradient(90deg, var(--color-diagram-grid) 1px, transparent 1px)",
+ backgroundSize: "24px 24px",
+};
+
function MaximizedDialog({ chart, onClose }: { chart: string; onClose: () => void }) {
const [container, setContainer] = useState<HTMLDivElement | null>(null);
const [zoom, setZoom] = useState(1);
const [pan, setPan] = useState({ x: 0, y: 0 });
+ const viewportRef = useRef<HTMLDivElement | null>(null);
const dragRef = useRef<{ startX: number; startY: number; panX: number; panY: number } | null>(null);
- const error = useMermaidRender(chart, container);
+ const { error, renderTick } = useMermaidRender(chart, container);
useEffect(() => {
const onKey = (e: KeyboardEvent) => {
@@ -87,6 +189,41 @@ function MaximizedDialog({ chart, onClose }: { chart: string; onClose: () => voi
return () => document.removeEventListener("keydown", onKey);
}, [onClose]);
+ // Lock page scroll while the dialog is open so nothing behind it moves.
+ useEffect(() => {
+ const prev = document.body.style.overflow;
+ document.body.style.overflow = "hidden";
+ return () => {
+ document.body.style.overflow = prev;
+ };
+ }, []);
+
+ // Pinch/scroll zooms the *diagram*, never the page. Must be a non-passive
+ // native listener — React's onWheel can't preventDefault, which is how
+ // trackpad pinches used to fall through and zoom the whole browser view.
+ useEffect(() => {
+ const el = viewportRef.current;
+ if (!el) return;
+ const onWheel = (e: WheelEvent) => {
+ e.preventDefault();
+ const factor = Math.exp(-e.deltaY * 0.002);
+ setZoom((z) => Math.min(4, Math.max(0.1, z * factor)));
+ };
+ el.addEventListener("wheel", onWheel, { passive: false });
+ return () => el.removeEventListener("wheel", onWheel);
+ }, []);
+
+ // Fit-to-viewport once the SVG exists (and again after theme re-renders).
+ useEffect(() => {
+ if (renderTick === 0) return;
+ const size = svgNaturalSize(container);
+ const vp = viewportRef.current;
+ if (!size || !vp) return;
+ const fit = Math.min(1, (vp.clientWidth - 64) / size.w, (vp.clientHeight - 64) / size.h);
+ setZoom(fit > 0 ? fit : 1);
+ setPan({ x: 0, y: 0 });
+ }, [renderTick, container]);
+
const onMouseDown = (e: React.MouseEvent) => {
dragRef.current = { startX: e.clientX, startY: e.clientY, panX: pan.x, panY: pan.y };
};
@@ -102,7 +239,14 @@ function MaximizedDialog({ chart, onClose }: { chart: string; onClose: () => voi
};
const reset = () => {
- setZoom(1);
+ const size = svgNaturalSize(container);
+ const vp = viewportRef.current;
+ if (size && vp) {
+ const fit = Math.min(1, (vp.clientWidth - 64) / size.w, (vp.clientHeight - 64) / size.h);
+ setZoom(fit > 0 ? fit : 1);
+ } else {
+ setZoom(1);
+ }
setPan({ x: 0, y: 0 });
};
@@ -120,7 +264,7 @@ function MaximizedDialog({ chart, onClose }: { chart: string; onClose: () => voi
<div className="flex items-center gap-1">
<button
type="button"
- onClick={() => setZoom((z) => Math.max(0.25, z - 0.25))}
+ onClick={() => setZoom((z) => Math.max(0.1, z - 0.25))}
className="p-1.5 rounded hover:bg-[var(--color-bg-elevated)] text-[var(--color-text-secondary)]"
aria-label="Zoom out"
>
@@ -156,14 +300,16 @@ function MaximizedDialog({ chart, onClose }: { chart: string; onClose: () => voi
</div>
</div>
<div
+ ref={viewportRef}
className="flex-1 overflow-hidden cursor-grab active:cursor-grabbing"
+ style={GRID_BACKGROUND}
onMouseDown={onMouseDown}
onMouseMove={onMouseMove}
onMouseUp={onMouseUp}
onMouseLeave={onMouseUp}
>
{error ? (
- <p className="p-6 text-sm text-red-400">Mermaid error: {error}</p>
+ <p className="p-6 text-sm text-[var(--color-error)]">Mermaid error: {error}</p>
) : (
<div
className="w-full h-full flex items-center justify-center"
@@ -173,7 +319,7 @@ function MaximizedDialog({ chart, onClose }: { chart: string; onClose: () => voi
transition: dragRef.current ? "none" : "transform 0.12s ease-out",
}}
>
- <div ref={setContainer} className="max-w-none [&_svg]:!max-w-none [&_svg]:!h-auto" />
+ <div ref={setContainer} className="w-max" />
</div>
)}
</div>
@@ -184,11 +330,11 @@ function MaximizedDialog({ chart, onClose }: { chart: string; onClose: () => voi
export function MermaidDiagram({ chart }: MermaidDiagramProps) {
const [container, setContainer] = useState<HTMLDivElement | null>(null);
const [maximized, setMaximized] = useState(false);
- const error = useMermaidRender(chart, container);
+ const { error } = useMermaidRender(chart, container);
if (error) {
return (
- <div className="rounded border border-[var(--color-border-default)] p-3 text-xs text-red-400">
+ <div className="rounded border border-[var(--color-border-default)] p-3 text-xs text-[var(--color-error)]">
Mermaid error: {error}
</div>
);
@@ -199,7 +345,8 @@ export function MermaidDiagram({ chart }: MermaidDiagramProps) {
<figure
role="img"
aria-label="Mermaid diagram"
- className="group relative my-4 overflow-x-auto rounded border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)]"
+ className="group relative my-4 rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)]"
+ style={GRID_BACKGROUND}
>
<button
type="button"
@@ -210,8 +357,10 @@ export function MermaidDiagram({ chart }: MermaidDiagramProps) {
>
<Maximize2 className="h-3.5 w-3.5" />
</button>
- <div className="flex justify-center p-4">
- <div ref={setContainer} className="w-full" />
+ {/* Natural size, centered when narrow, scrollable when wide/tall —
+ never scaled down (that's what made dense diagrams unreadable). */}
+ <div className="overflow-auto max-h-[75vh] p-4">
+ <div ref={setContainer} className="w-max mx-auto" />
</div>
</figure>
diff --git a/packages/ui/src/wiki/table-of-contents.tsx b/packages/ui/src/wiki/table-of-contents.tsx
index 091cd0ab6..65fbdcde9 100644
--- a/packages/ui/src/wiki/table-of-contents.tsx
+++ b/packages/ui/src/wiki/table-of-contents.tsx
@@ -54,20 +54,21 @@ export function TableOfContents({ content }: { content: string }) {
return (
<nav aria-label="Table of contents">
- <p className="text-xs font-medium text-[var(--color-text-tertiary)] uppercase tracking-wider mb-2">
- Contents
+ <p className="text-xs font-semibold text-[var(--color-text-primary)] mb-2">
+ On this page
</p>
- <ul className="space-y-1">
+ {/* Left rail: a hairline the active item's accent bar sits on. */}
+ <ul className="border-l border-[var(--color-border-default)]">
{headings.map(({ id, text, level }) => (
<li key={id}>
<a
href={`#${id}`}
className={cn(
- "block text-xs leading-snug transition-colors hover:text-[var(--color-text-primary)]",
- level === 1 ? "pl-0" : level === 2 ? "pl-2" : "pl-4",
+ "block -ml-px border-l-2 py-1 text-[13px] leading-snug transition-colors hover:text-[var(--color-text-primary)]",
+ level === 1 ? "pl-3" : level === 2 ? "pl-3" : "pl-6",
activeId === id
- ? "text-[var(--color-accent-primary)]"
- : "text-[var(--color-text-tertiary)]",
+ ? "border-[var(--color-accent-primary)] font-medium text-[var(--color-accent-primary)]"
+ : "border-transparent text-[var(--color-text-tertiary)]",
)}
>
{text}
diff --git a/packages/ui/src/wiki/wiki-markdown.tsx b/packages/ui/src/wiki/wiki-markdown.tsx
index 66ad9e22e..c3bb16755 100644
--- a/packages/ui/src/wiki/wiki-markdown.tsx
+++ b/packages/ui/src/wiki/wiki-markdown.tsx
@@ -41,7 +41,13 @@ function ClientCodeBlock({ code, language }: { code: string; language: string })
let cancelled = false;
import("shiki")
.then(({ codeToHtml }) =>
- codeToHtml(code, { lang: language as never, theme: "vesper" }),
+ // Dual themes: tokens carry --shiki-light/--shiki-dark CSS vars and
+ // globals.css picks one per theme (see ".shiki span" rules there).
+ codeToHtml(code, {
+ lang: language as never,
+ themes: { light: "github-light", dark: "vesper" },
+ defaultColor: false,
+ }),
)
.then((result) => {
if (!cancelled) setHtml(result);
@@ -113,7 +119,7 @@ function buildComponents(
const text = typeof children === "string" ? children : extractText(children);
const id = slugify(text);
return (
- <h1 id={id} className="mt-8 mb-4 text-xl font-semibold text-[var(--color-text-primary)] first:mt-0 scroll-mt-16">
+ <h1 id={id} className="mt-10 mb-4 font-serif text-3xl font-semibold tracking-tight text-[var(--color-text-primary)] first:mt-0 scroll-mt-16">
{children}
</h1>
);
@@ -122,7 +128,7 @@ function buildComponents(
const text = typeof children === "string" ? children : extractText(children);
const id = slugify(text);
return (
- <h2 id={id} className="mt-6 mb-3 text-lg font-semibold text-[var(--color-text-primary)] scroll-mt-16">
+ <h2 id={id} className="mt-9 mb-3 font-serif text-2xl font-semibold tracking-tight text-[var(--color-text-primary)] scroll-mt-16">
{children}
</h2>
);
@@ -131,27 +137,27 @@ function buildComponents(
const text = typeof children === "string" ? children : extractText(children);
const id = slugify(text);
return (
- <h3 id={id} className="mt-5 mb-2 text-base font-semibold text-[var(--color-text-primary)] scroll-mt-16">
+ <h3 id={id} className="mt-7 mb-2 font-serif text-xl font-semibold text-[var(--color-text-primary)] scroll-mt-16">
{children}
</h3>
);
},
p: ({ children }) => (
- <p className="mb-4 text-sm leading-7 text-[var(--color-text-secondary)]">
+ <p className="mb-4 text-base leading-[1.75] text-[var(--color-text-secondary)]">
{children}
</p>
),
ul: ({ children }) => (
- <ul className="mb-4 ml-4 space-y-1 list-disc text-sm text-[var(--color-text-secondary)]">
+ <ul className="mb-4 ml-4 space-y-1.5 list-disc text-base text-[var(--color-text-secondary)]">
{children}
</ul>
),
ol: ({ children }) => (
- <ol className="mb-4 ml-4 space-y-1 list-decimal text-sm text-[var(--color-text-secondary)]">
+ <ol className="mb-4 ml-4 space-y-1.5 list-decimal text-base text-[var(--color-text-secondary)]">
{children}
</ol>
),
- li: ({ children }) => <li className="leading-6">{children}</li>,
+ li: ({ children }) => <li className="leading-7">{children}</li>,
code: ({ className, children, ...props }) => {
const langMatch = className?.match(/language-(\w+)/);
const lang = langMatch?.[1];
@@ -178,7 +184,7 @@ function buildComponents(
<Link
href={resolved.href}
title={`Go to ${text.trim()}`}
- className="rounded bg-[var(--color-accent-muted)] px-1.5 py-0.5 text-xs font-mono text-[var(--color-accent-primary)] underline decoration-dotted underline-offset-2 hover:bg-[var(--color-accent-primary)] hover:text-white transition-colors"
+ className="rounded bg-[var(--color-accent-muted)] px-1.5 py-0.5 text-[0.85em] font-mono text-[var(--color-accent-primary)] underline decoration-dotted underline-offset-2 hover:bg-[var(--color-accent-primary)] hover:text-white transition-colors"
>
{children}
</Link>
@@ -187,7 +193,7 @@ function buildComponents(
return (
<code
- className="rounded bg-[var(--color-bg-elevated)] px-1.5 py-0.5 text-xs font-mono text-[var(--color-accent-primary)]"
+ className="rounded bg-[var(--color-bg-elevated)] px-1.5 py-0.5 text-[0.85em] font-mono text-[var(--color-accent-primary)]"
{...props}
>
{children}
diff --git a/packages/ui/src/wiki/wiki-mdx-components.tsx b/packages/ui/src/wiki/wiki-mdx-components.tsx
index 57039fc41..5cbd3ddfb 100644
--- a/packages/ui/src/wiki/wiki-mdx-components.tsx
+++ b/packages/ui/src/wiki/wiki-mdx-components.tsx
@@ -23,7 +23,7 @@ export const wikiMdxComponents = {
return (
<h2
id={id}
- className="mt-8 mb-4 text-xl font-semibold text-[var(--color-text-primary)] first:mt-0 scroll-mt-16"
+ className="mt-10 mb-4 font-serif text-3xl font-semibold tracking-tight text-[var(--color-text-primary)] first:mt-0 scroll-mt-16"
{...props}
/>
);
@@ -33,7 +33,7 @@ export const wikiMdxComponents = {
return (
<h2
id={id}
- className="mt-6 mb-3 text-lg font-semibold text-[var(--color-text-primary)] scroll-mt-16"
+ className="mt-9 mb-3 font-serif text-2xl font-semibold tracking-tight text-[var(--color-text-primary)] scroll-mt-16"
{...props}
/>
);
@@ -43,22 +43,22 @@ export const wikiMdxComponents = {
return (
<h3
id={id}
- className="mt-5 mb-2 text-base font-semibold text-[var(--color-text-primary)] scroll-mt-16"
+ className="mt-7 mb-2 font-serif text-xl font-semibold text-[var(--color-text-primary)] scroll-mt-16"
{...props}
/>
);
},
p: (props: React.HTMLAttributes<HTMLParagraphElement>) => (
- <p className="mb-4 text-sm leading-7 text-[var(--color-text-secondary)]" {...props} />
+ <p className="mb-4 text-base leading-[1.75] text-[var(--color-text-secondary)]" {...props} />
),
ul: (props: React.HTMLAttributes<HTMLUListElement>) => (
- <ul className="mb-4 ml-4 space-y-1 list-disc text-sm text-[var(--color-text-secondary)]" {...props} />
+ <ul className="mb-4 ml-4 space-y-1.5 list-disc text-base text-[var(--color-text-secondary)]" {...props} />
),
ol: (props: React.HTMLAttributes<HTMLOListElement>) => (
- <ol className="mb-4 ml-4 space-y-1 list-decimal text-sm text-[var(--color-text-secondary)]" {...props} />
+ <ol className="mb-4 ml-4 space-y-1.5 list-decimal text-base text-[var(--color-text-secondary)]" {...props} />
),
li: (props: React.HTMLAttributes<HTMLLIElement>) => (
- <li className="leading-6" {...props} />
+ <li className="leading-7" {...props} />
),
blockquote: (props: React.HTMLAttributes<HTMLQuoteElement>) => (
<blockquote
@@ -98,7 +98,7 @@ export const wikiMdxComponents = {
),
code: (props: React.HTMLAttributes<HTMLElement>) => (
<code
- className="rounded bg-[var(--color-bg-elevated)] px-1.5 py-0.5 text-xs font-mono text-[var(--color-accent-primary)]"
+ className="rounded bg-[var(--color-bg-elevated)] px-1.5 py-0.5 text-[0.85em] font-mono text-[var(--color-accent-primary)]"
{...props}
/>
),
diff --git a/packages/ui/src/workspace/workspace-graph-node.tsx b/packages/ui/src/workspace/workspace-graph-node.tsx
index ba485d31f..1df6094ca 100644
--- a/packages/ui/src/workspace/workspace-graph-node.tsx
+++ b/packages/ui/src/workspace/workspace-graph-node.tsx
@@ -15,9 +15,9 @@ export interface WorkspaceGraphNodeData {
}
function healthColor(score: number): string {
- if (score >= 70) return "#22c55e";
- if (score >= 40) return "#f59e0b";
- return "#ef4444";
+ if (score >= 70) return "var(--color-risk-low)";
+ if (score >= 40) return "var(--color-risk-medium)";
+ return "var(--color-risk-high)";
}
function HealthRing({ score, size = 36 }: { score: number; size?: number }) {
@@ -33,7 +33,7 @@ function HealthRing({ score, size = 36 }: { score: number; size?: number }) {
cy={size / 2}
r={r}
fill="none"
- stroke="rgba(255,255,255,0.1)"
+ stroke="color-mix(in srgb, var(--color-border-default) 10%, transparent)"
strokeWidth={3}
/>
<circle
@@ -73,7 +73,7 @@ function WorkspaceGraphNodeInner({ data }: NodeProps) {
style={{
width: 160,
minHeight: 100,
- background: `linear-gradient(135deg, ${langColor}25 0%, rgba(30,41,59,0.95) 60%)`,
+ background: `linear-gradient(135deg, ${langColor}25 0%, color-mix(in srgb, var(--color-bg-surface) 95%, transparent) 60%)`,
border: `2px solid ${langColor}60`,
boxShadow: `0 2px 12px rgba(0,0,0,0.3), 0 0 0 1px ${langColor}20`,
padding: "10px 12px",
diff --git a/packages/ui/src/workspace/workspace-graph.tsx b/packages/ui/src/workspace/workspace-graph.tsx
index 710658001..0dba8a04e 100644
--- a/packages/ui/src/workspace/workspace-graph.tsx
+++ b/packages/ui/src/workspace/workspace-graph.tsx
@@ -104,7 +104,7 @@ function computeLayout(data: WorkspaceGraphData): { nodes: Node[]; edges: Edge[]
label: e.label ?? undefined,
style: {
strokeWidth: 1 + e.strength * 4,
- stroke: e.type === "contract" ? "#3b82f6" : "#8b5cf6",
+ stroke: e.type === "contract" ? "var(--color-accent-secondary)" : "var(--color-edge-co-change)",
strokeDasharray: e.type === "co_change" ? "6 3" : undefined,
},
labelStyle: { fontSize: 10, fill: "var(--color-text-tertiary)" },
diff --git a/packages/ui/styles/globals.css b/packages/ui/styles/globals.css
index da949778f..6280a8f90 100644
--- a/packages/ui/styles/globals.css
+++ b/packages/ui/styles/globals.css
@@ -1,73 +1,111 @@
@import "tailwindcss";
@plugin "@tailwindcss/typography";
+/* Bind Tailwind's `dark:` variant to next-themes' `.dark` class. Without
+ this, Tailwind v4 defaults `dark:` to prefers-color-scheme — utilities
+ would follow the OS appearance instead of the in-app Light/Dark toggle. */
+@custom-variant dark (&:is(.dark *));
+
/*
- * @repowise-dev/ui — canonical design tokens.
+ * @repowise-dev/ui — canonical design tokens (design tokens).
+ *
+ * Three-tier token model:
+ * 1. Primitives — raw brand ramps (theme-independent), in @theme.
+ * 2. Semantic — purpose-named tokens; registered in @theme at their
+ * LIGHT values (so Tailwind v4 generates utilities and
+ * :root defaults to light) and overridden under `.dark`.
+ * 3. Component — graph / React Flow / data-viz tokens, mostly derived
+ * from semantic tokens via var() so they auto-theme.
*
- * Imported by every consumer that wants the standard Repowise look.
- * Tailwind v4 `@theme` block defines CSS custom properties; base styles,
- * scrollbar, focus, prose overrides, and React Flow theming follow.
+ * Theme contract: `:root` = light (default), `.dark` (class on <html>,
+ * managed by next-themes) = dark overrides. Every theme-switched token has
+ * an explicit value in @theme (light) and a matching override in `.dark`.
+ * Derived tokens reference others via var() and need no override.
*
- * The `@source` directive below tells Tailwind v4 to scan component
- * source under `packages/ui/src/**` for utility classes — required so
- * consumers that import this file pick up classes used by shared
- * components without each consumer re-declaring the source path.
+ * Backward-compat: every token name that existed before the redesign is
+ * preserved (parity-gated). Consumers can still override individual tokens
+ * by declaring their own @theme block after importing this file.
*
- * Consumers can override individual tokens (accent, surface) by
- * declaring a `@theme` block of their own after importing this file.
+ * @source tells Tailwind v4 to scan component source for utility classes
+ * so consumers pick them up without re-declaring the path.
*/
@source "../src/**/*.{ts,tsx}";
@theme {
- /* ------------------------------------------------------------------ */
- /* Core Surfaces */
- /* ------------------------------------------------------------------ */
- --color-bg-root: #0d0d0d;
- --color-bg-surface: #141414;
- --color-bg-elevated: #1c1c1c;
- --color-bg-overlay: #202020;
- --color-bg-inset: #0a0a0a;
-
- /* ------------------------------------------------------------------ */
- /* Borders */
- /* ------------------------------------------------------------------ */
- --color-border-default: rgba(255, 255, 255, 0.06);
- --color-border-hover: rgba(255, 255, 255, 0.12);
- --color-border-active: rgba(255, 255, 255, 0.20);
-
- /* ------------------------------------------------------------------ */
- /* Text */
- /* ------------------------------------------------------------------ */
- --color-text-primary: #ececec;
- --color-text-secondary: #999999;
- --color-text-tertiary: #5c5c5c;
- --color-text-inverse: #0d0d0d;
-
- /* ------------------------------------------------------------------ */
- /* Accent — repowise Orange */
- /* ------------------------------------------------------------------ */
- --color-accent-primary: #f59520;
- --color-accent-hover: #f7a94d;
- --color-accent-muted: rgba(245, 149, 32, 0.15);
-
- /* ------------------------------------------------------------------ */
- /* Confidence System */
- /* ------------------------------------------------------------------ */
- --color-confidence-fresh: #22c55e;
- --color-confidence-stale: #eab308;
- --color-confidence-outdated: #ef4444;
-
- /* ------------------------------------------------------------------ */
- /* Semantic */
- /* ------------------------------------------------------------------ */
- --color-success: #22c55e;
- --color-warning: #eab308;
- --color-error: #ef4444;
- --color-info: #f59520;
-
- /* Aliases — short names used in component class strings. */
- /* Keep these in sync with the canonical confidence/accent tokens. */
+ /* ================================================================== */
+ /* TIER 1 — Primitive ramps (theme-independent; never used directly) */
+ /* ================================================================== */
+ --color-sunset-50: #fff4ed;
+ --color-sunset-100: #ffe6d5;
+ --color-sunset-200: #ffc4b1;
+ --color-sunset-300: #f7a56e;
+ --color-sunset-400: #f2a03d;
+ --color-sunset-500: #f27f3d;
+ --color-sunset-600: #e0651f;
+ --color-sunset-700: #c04e14;
+ --color-sunset-800: #8c3d35;
+ --color-sunset-900: #5e2a22;
+
+ --color-plum-50: #f4f1f8;
+ --color-plum-100: #e7e1f0;
+ --color-plum-200: #cfc3df;
+ --color-plum-300: #a98fc4;
+ --color-plum-400: #826aa0;
+ --color-plum-500: #58436c;
+ --color-plum-600: #473659;
+ --color-plum-700: #362945;
+ --color-plum-800: #261c32;
+ --color-plum-900: #1a1320;
+
+ --color-clay: #8c3d35;
+ --color-peach: #ffc4b1;
+ --color-cream: #fce9dd;
+ --color-amber: #f2a03d;
+
+ /* ================================================================== */
+ /* TIER 2 — Semantic tokens (LIGHT defaults; `.dark` overrides below) */
+ /* ================================================================== */
+
+ /* Core surfaces — warm paper / pure-white cards */
+ --color-bg-root: #fbf6f1;
+ --color-bg-surface: #ffffff;
+ --color-bg-elevated: #fbf4ee;
+ --color-bg-overlay: #ffffff;
+ --color-bg-inset: #f4eae1;
+
+ /* Borders — plum-tinted hairlines */
+ --color-border-default: rgba(88, 67, 108, 0.12);
+ --color-border-hover: rgba(88, 67, 108, 0.22);
+ --color-border-active: rgba(176, 107, 18, 0.9);
+
+ /* Text — plum-near-black on warm paper */
+ --color-text-primary: #241b2c;
+ --color-text-secondary: #5e5360;
+ --color-text-tertiary: #8c7f88;
+ --color-text-inverse: #ffffff;
+ --color-text-on-accent: #241b2c;
+
+ /* Accent — warm orange */
+ --color-accent-primary: #a16215;
+ --color-accent-fill: #f59520;
+ --color-accent-fill-hover: #e0850f;
+ --color-accent-hover: #824f10;
+ --color-accent-muted: rgba(245, 149, 32, 0.12);
+ --color-accent-secondary: #58436c;
+
+ /* Confidence system */
+ --color-confidence-fresh: #1d8155;
+ --color-confidence-stale: #9a6614;
+ --color-confidence-outdated: #b23a2e;
+
+ /* Semantic status */
+ --color-success: #1d8155;
+ --color-warning: #9a6614;
+ --color-error: #b23a2e;
+ --color-info: #58436c;
+
+ /* Aliases — short names used in component class strings. Keep in sync. */
--color-fresh: var(--color-confidence-fresh);
--color-stale: var(--color-confidence-stale);
--color-outdated: var(--color-confidence-outdated);
@@ -75,19 +113,38 @@
--color-accent-blue: var(--color-accent-primary);
--color-border-accent: var(--color-accent-primary);
- /* ------------------------------------------------------------------ */
- /* Graph — React Flow */
- /* ------------------------------------------------------------------ */
- --color-accent-graph: #f59520;
- --color-risk-low: #22c55e;
- --color-risk-medium: #f59520;
- --color-risk-high: #ef4444;
- --color-node-documented: #22c55e;
- --color-node-undocumented: #64748b;
-
- /* ------------------------------------------------------------------ */
- /* Language Colors (graph nodes) */
- /* ------------------------------------------------------------------ */
+ /* ================================================================== */
+ /* TIER 3 — Graph / data-viz (derived; auto-theme via var()) */
+ /* ================================================================== */
+ --color-accent-graph: var(--color-accent-fill);
+ --color-risk-low: var(--color-success);
+ --color-risk-medium: var(--color-warning);
+ --color-risk-high: var(--color-error);
+ --color-node-documented: var(--color-success);
+ --color-node-undocumented: #9a8da0; /* light; overridden in .dark */
+ --viz-node-stroke: rgba(36, 27, 44, 0.25); /* halo so nodes read on bg */
+
+ /* Mermaid / generated diagrams — blueprint look: ink blocks on a faint
+ grid, dashed connectors, brand-orange entry node. */
+ --color-diagram-node-fill: #241b2c; /* ink plum block */
+ --color-diagram-node-fill-2: #4a4152; /* recessed gray-plum ink (supporting cast) */
+ --color-diagram-node-text: #fbf6f1; /* warm paper on ink */
+ --color-diagram-node-border: #241b2c;
+ --color-diagram-edge: #4a3d59; /* plum line, dashed */
+
+ /* KG canvas node faces — light mode is "blueprint drawn ON the paper":
+ warm-white cards with a crisp ink outline (user pick, 2026-06-05);
+ dark mode aliases back to the solid ink blocks. Mermaid keeps using
+ the diagram-node tokens above. */
+ --color-kg-node-fill: #fffdf8; /* warm white card */
+ --color-kg-node-fill-2: #f3ece2; /* cream-taupe supporting card */
+ --color-kg-node-text: #241b2c; /* dark plum ink text */
+ --color-kg-node-border: #241b2c; /* ink outline */
+ --color-kg-node-border-2: #8c7f88; /* faded ink outline (supporting) */
+ --color-diagram-cluster-border: #826aa0; /* plum-400 */
+ --color-diagram-grid: rgba(245, 149, 32, 0.10); /* faint orange grid */
+
+ /* Language colors (canonical brand hues — theme-independent) */
--color-lang-python: #3776ab;
--color-lang-typescript: #3178c6;
--color-lang-go: #00add8;
@@ -97,20 +154,73 @@
--color-lang-config: #6b7280;
--color-lang-other: #8b5cf6;
- /* ------------------------------------------------------------------ */
- /* Edge Colors (graph edges) */
- /* ------------------------------------------------------------------ */
- --color-edge-imports: #f59520;
- --color-edge-calls: #22c55e;
- --color-edge-inherits: #a855f7;
- --color-edge-implements: #ec4899;
- --color-edge-co-change: #8b5cf6;
-
- /* ------------------------------------------------------------------ */
- /* Typography */
- /* ------------------------------------------------------------------ */
+ /* Edge colors (graph edges) — remapped to the new palette */
+ --color-edge-imports: var(--color-accent-fill);
+ --color-edge-calls: var(--color-success);
+ --color-edge-inherits: #826aa0; /* plum-400 */
+ --color-edge-implements: #c85aa0; /* warm magenta */
+ --color-edge-co-change: #7c5cc4;
+
+ /* Community families — 12 warm/plum-anchored hues for graph clustering.
+ LIGHT values are declared in a plain `:root {}` block below (NOT here in
+ @theme) because they are referenced *only* dynamically — getCommunityFamily
+ in shared/use-theme-tokens.ts builds `--color-community-${n}` strings at
+ runtime, so Tailwind v4 (which tree-shakes @theme vars with no static
+ reference) would prune communities 2–12 from the emitted light CSS. The
+ `.dark` overrides live in plain CSS already, which is why dark never broke. */
+
+ /* C4 / graph canvas surfaces — consumed via the `THEME` object in
+ c4/graph-primitives, which can't see component classes. Previously these
+ names were undefined, so the canvas fell back to hardcoded dark navy in
+ BOTH themes; aliasing them to theme-aware surfaces fixes light mode. */
+ --color-bg-canvas: var(--color-bg-inset);
+ --color-canvas-dot: rgba(36, 27, 44, 0.08);
+ --color-bg-glass: rgba(255, 255, 255, 0.72);
+ /* Neutral hover washes for canvas-adjacent chrome (rows, chips, stubs) —
+ plum-alpha on paper, lavender-alpha on dark (same idiom as canvas-dot). */
+ --color-bg-wash: rgba(36, 27, 44, 0.05);
+ --color-bg-wash-hover: rgba(36, 27, 44, 0.1);
+ --color-border-subtle: var(--color-border-default);
+ --color-text-muted: var(--color-text-tertiary);
+
+ /* Viz state colors (selection / diff) — brand-aligned + theme-aware */
+ --color-viz-selection: var(--color-accent-fill);
+ --color-viz-diff-changed: var(--color-error);
+ --color-viz-diff-affected: var(--color-warning);
+
+ /* ================================================================== */
+ /* Signature gradients (theme-independent) */
+ /* ================================================================== */
+ --gradient-sunset: linear-gradient(135deg, #58436c 0%, #f59520 55%, #f7a94d 100%);
+ --gradient-ember: linear-gradient(135deg, #f59520 0%, #f7a94d 100%);
+ --gradient-peach: linear-gradient(160deg, #ffc4b1 0%, #f59520 100%);
+ --gradient-plum: linear-gradient(135deg, #362945 0%, #58436c 100%);
+
+ /* Soft saturated -> pale warm gradient (the "smooth two-tone" style):
+ brand orange melting into a warm peach. For brand chips, icon blobs,
+ small accent panels, avatars, selected/active art. Dark text reads on
+ the whole sweep. `--gradient-warm-wash` is the ultra-subtle background
+ version (theme-aware) for empty-states, hero washes, and section bands. */
+ --gradient-warm: linear-gradient(135deg, #f59520 0%, #ffd9b0 100%);
+ --gradient-warm-wash: linear-gradient(160deg, #fff4ea 0%, #ffe6cf 55%, #ffd9bd 100%);
+
+ /* ================================================================== */
+ /* Elevation — warm/plum-tinted shadows (LIGHT; `.dark` overrides) */
+ /* ================================================================== */
+ --shadow-sm: 0 1px 2px rgba(36, 27, 44, 0.06);
+ --shadow-md: 0 2px 8px rgba(36, 27, 44, 0.08), 0 1px 2px rgba(36, 27, 44, 0.06);
+ --shadow-lg: 0 8px 24px rgba(36, 27, 44, 0.1), 0 2px 6px rgba(36, 27, 44, 0.06);
+ --shadow-xl: 0 16px 48px rgba(36, 27, 44, 0.14), 0 4px 12px rgba(36, 27, 44, 0.08);
+ --shadow-button: 0 1px 2px rgba(214, 127, 16, 0.22);
+
+ /* ================================================================== */
+ /* Non-color tokens (theme-independent) */
+ /* ================================================================== */
--font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
--font-mono: "Geist Mono", "JetBrains Mono", "Fira Code", monospace;
+ /* Serif display face for docs/wiki headings (loaded via next/font as
+ --font-lora; Georgia fallback keeps SSR/storybook surfaces sane). */
+ --font-serif: var(--font-lora), "Lora", Georgia, serif;
--text-xs: 0.8125rem;
--text-sm: 0.875rem;
@@ -124,9 +234,6 @@
--leading-normal: 1.5;
--leading-relaxed: 1.75;
- /* ------------------------------------------------------------------ */
- /* Spacing (4px base grid) */
- /* ------------------------------------------------------------------ */
--spacing-1: 0.25rem;
--spacing-2: 0.5rem;
--spacing-3: 0.75rem;
@@ -138,17 +245,11 @@
--spacing-12: 3rem;
--spacing-16: 4rem;
- /* ------------------------------------------------------------------ */
- /* Radii */
- /* ------------------------------------------------------------------ */
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 10px;
--radius-xl: 14px;
- /* ------------------------------------------------------------------ */
- /* Z-Index Scale */
- /* ------------------------------------------------------------------ */
--z-base: 0;
--z-elevated: 10;
--z-dropdown: 20;
@@ -157,16 +258,10 @@
--z-command: 50;
--z-toast: 60;
- /* ------------------------------------------------------------------ */
- /* Layout */
- /* ------------------------------------------------------------------ */
--sidebar-width: 260px;
--context-panel-width: 280px;
--content-max-width: 768px;
- /* ------------------------------------------------------------------ */
- /* Animation */
- /* ------------------------------------------------------------------ */
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--ease-in: cubic-bezier(0.7, 0, 0.84, 0);
--ease-inout: cubic-bezier(0.87, 0, 0.13, 1);
@@ -176,13 +271,166 @@
}
/* -------------------------------------------------------------------- */
-/* Base Styles */
+/* DARK overrides — only the theme-switched tokens */
/* -------------------------------------------------------------------- */
-html {
+.dark {
+ /* Plum-tinted charcoal base — the theme's own dark identity.
+ A restrained violet cast (hue ~270, low sat) differentiates the product
+ from the many neutral-charcoal + orange UIs while keeping the brand
+ orange accent popping. Verified in docs/design/contrast_check.py. */
+ --color-bg-root: #17131d;
+ --color-bg-surface: #211b29;
+ --color-bg-elevated: #2a2335;
+ --color-bg-overlay: #322a3e;
+ --color-bg-inset: #110d17;
+
+ --color-border-default: rgba(213, 197, 232, 0.1);
+ --color-border-hover: rgba(213, 197, 232, 0.18);
+ --color-border-active: rgba(245, 149, 32, 0.55);
+
+ --color-text-primary: #eeeaf4;
+ --color-text-secondary: #a79db3;
+ --color-text-tertiary: #786f84;
+ --color-text-inverse: #17131d;
+ --color-text-on-accent: #17131d;
+
+ --color-accent-primary: #f59520;
+ --color-accent-fill: #f59520;
+ --color-accent-fill-hover: #f7a94d;
+ --color-accent-hover: #f7a94d;
+ --color-accent-muted: rgba(245, 149, 32, 0.16);
+ --color-accent-secondary: #a98fc4;
+
+ --color-confidence-fresh: #34d399;
+ --color-confidence-stale: #f2a03d;
+ --color-confidence-outdated: #e06a5a;
+
+ --color-success: #34d399;
+ --color-warning: #f2a03d;
+ --color-error: #e06a5a;
+ --color-info: #a98fc4;
+
+ --color-node-undocumented: #6f6678;
+ --viz-node-stroke: rgba(222, 210, 235, 0.22);
+
+ /* Mermaid / generated diagrams — dark: raised plum blocks on subtle grid.
+ Border alpha 0.45: the boundary (not the fill) carries the 3:1 non-text
+ separation on the near-black canvas — see contrast_check.py. */
+ --color-diagram-node-fill: #322a3e;
+ --color-diagram-node-fill-2: #261f30; /* recessed ink (supporting cast) */
+ --color-diagram-node-text: #eeeaf4;
+ --color-diagram-node-border: rgba(222, 210, 235, 0.45);
+
+ /* KG node faces — dark keeps the solid ink blocks (alias the ink tokens) */
+ --color-kg-node-fill: var(--color-diagram-node-fill);
+ --color-kg-node-fill-2: var(--color-diagram-node-fill-2);
+ --color-kg-node-text: var(--color-diagram-node-text);
+ --color-kg-node-border: var(--color-diagram-node-border);
+ --color-kg-node-border-2: var(--color-diagram-node-border);
+ --color-diagram-edge: #b3a6c4; /* lavender line, dashed */
+ --color-diagram-cluster-border: #a98fc4;
+ --color-diagram-grid: rgba(222, 210, 235, 0.05);
+
+ /* C4 / graph canvas surfaces — dark variants (the var()-derived aliases
+ flip on their own; only the explicit rgbas need a dark override). */
+ --color-canvas-dot: rgba(222, 210, 235, 0.06);
+ --color-bg-glass: rgba(33, 27, 41, 0.72);
+ --color-bg-wash: rgba(222, 210, 235, 0.05);
+ --color-bg-wash-hover: rgba(222, 210, 235, 0.1);
+
+ /* Edge hue that isn't a pure var() derivation gets a dark-legible tweak */
+ --color-edge-inherits: #a98fc4; /* plum-300 reads better on dark */
+
+ /* Community families — dark variants (lifted/desaturated to read on the
+ near-black plum canvas; soft = a deeper in-family tint for satellites). */
+ --color-community-1: #f59520; --color-community-1-soft: #c97a1a; /* brand orange */
+ --color-community-2: #a98fc4; --color-community-2-soft: #7d659c; /* plum */
+ --color-community-3: #e06a5a; --color-community-3-soft: #b04c3e; /* terracotta */
+ --color-community-4: #a9bb6f; --color-community-4-soft: #7e8f4e; /* olive/sage */
+ --color-community-5: #d795b1; --color-community-5-soft: #a86a87; /* dusty rose */
+ --color-community-6: #8fa3c0; --color-community-6-soft: #66799a; /* slate blue */
+ --color-community-7: #d9b04a; --color-community-7-soft: #a8821f; /* gold */
+ --color-community-8: #b8a68e; --color-community-8-soft: #8a7a66; /* taupe */
+ --color-community-9: #c4708f; --color-community-9-soft: #94506a; /* wine */
+ --color-community-10: #eba585; --color-community-10-soft: #c4734f; /* peach */
+ --color-community-11: #6fb3ab; --color-community-11-soft: #4a8780; /* deep teal */
+ --color-community-12: #a79db3; --color-community-12-soft: #786f84; /* charcoal mauve */
+
+ /* Deep shadows with a neutral inset hairline for premium depth */
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
+ --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(222, 210, 235, 0.05);
+ --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(222, 210, 235, 0.06);
+ --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(222, 210, 235, 0.07);
+ --shadow-button: 0 1px 2px rgba(0, 0, 0, 0.4);
+
+ /* Dark soft wash — plum charcoal with a faint warm lift at the end */
+ --gradient-warm-wash: linear-gradient(160deg, #1b1622 0%, #241d2e 55%, #2e2629 100%);
+}
+
+/* -------------------------------------------------------------------- */
+/* Community families (LIGHT) — plain CSS, NOT @theme */
+/* -------------------------------------------------------------------- */
+/* These 12 warm/plum-anchored hues are resolved *only* at runtime by
+ getCommunityFamily (shared/use-theme-tokens.ts builds the var names
+ dynamically), so they MUST NOT live in @theme — Tailwind v4 tree-shakes
+ @theme vars that have no static reference, which previously pruned
+ communities 2–12 from light mode. Declaring them in a plain `:root {}`
+ keeps them in the emitted CSS, mirroring how `.dark` declares them.
+ `hub` colors community centroids; `-soft` tints satellites. One cool
+ counterpoint (slate blue / deep teal) is deliberate for 12-way
+ distinguishability. Verified against --color-bg-canvas in
+ docs/design/contrast_check.py. `.dark` overrides above. */
+:root {
+ --color-community-1: #c0641a; --color-community-1-soft: #f7a94d; /* brand orange (deepened for 3:1 on warm canvas) */
+ --color-community-2: #58436c; --color-community-2-soft: #826aa0; /* plum */
+ --color-community-3: #b23a2e; --color-community-3-soft: #cf6a55; /* terracotta */
+ --color-community-4: #6b7a3d; --color-community-4-soft: #90a05e; /* olive/sage */
+ --color-community-5: #b06a86; --color-community-5-soft: #cf93ab; /* dusty rose */
+ --color-community-6: #4a5d7a; --color-community-6-soft: #71849f; /* slate blue */
+ --color-community-7: #a8821f; --color-community-7-soft: #c9a544; /* gold */
+ --color-community-8: #8a7a66; --color-community-8-soft: #a89882; /* taupe */
+ --color-community-9: #7a2f4a; --color-community-9-soft: #9e5570; /* wine */
+ --color-community-10: #b85a38; --color-community-10-soft: #eba585; /* peach (deepened for 3:1 on warm canvas) */
+ --color-community-11: #2f6b66; --color-community-11-soft: #558f89; /* deep teal */
+ --color-community-12: #5e5360; --color-community-12-soft: #84778a; /* charcoal mauve */
+
+ /* KG card texture — ruled-paper photo under a warm translucent wash
+ (keeps text contrast); asset in packages/web/public. Light only; the
+ .dark override resolves to none (solid ink blocks). Plain :root, not
+ @theme: referenced only from inline styles, so Tailwind would
+ tree-shake it out of @theme (same lesson as the community tokens). */
+ --kg-card-texture: linear-gradient(rgba(255, 253, 248, 0.78), rgba(255, 253, 248, 0.78)),
+ url("/kg-card-paper.jpg");
+}
+
+.dark {
+ /* Dark mode keeps the texture too (user pick, 2026-06-05): the same
+ photo under a heavy plum-ink wash — 0.85 alpha of the ink fill
+ (#322a3e), so the crumple/ruled lines read as subtle relief while
+ --color-kg-node-text stays ≥4.5:1 (composite ≈ #4D4658, pair in
+ contrast_check.py). Declared AFTER the :root block so the cascade is
+ unambiguous (same pattern as color-scheme below). */
+ --kg-card-texture: linear-gradient(rgba(50, 42, 62, 0.85), rgba(50, 42, 62, 0.85)),
+ url("/kg-card-paper.jpg");
+}
+
+/* -------------------------------------------------------------------- */
+/* Color-scheme — dynamic, fixes native controls & scrollbars */
+/* -------------------------------------------------------------------- */
+
+:root {
+ color-scheme: light;
+}
+
+.dark {
color-scheme: dark;
}
+/* -------------------------------------------------------------------- */
+/* Base Styles */
+/* -------------------------------------------------------------------- */
+
body {
background-color: var(--color-bg-root);
color: var(--color-text-primary);
@@ -194,7 +442,7 @@ body {
}
/* -------------------------------------------------------------------- */
-/* Scrollbar */
+/* Scrollbar — plum-tinted thumb (light) / warm-white (dark) */
/* -------------------------------------------------------------------- */
::-webkit-scrollbar {
@@ -207,12 +455,20 @@ body {
}
::-webkit-scrollbar-thumb {
- background: rgba(255, 255, 255, 0.1);
+ background: rgba(88, 67, 108, 0.25);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
- background: rgba(255, 255, 255, 0.2);
+ background: rgba(88, 67, 108, 0.4);
+}
+
+.dark ::-webkit-scrollbar-thumb {
+ background: rgba(222, 210, 235, 0.12);
+}
+
+.dark ::-webkit-scrollbar-thumb:hover {
+ background: rgba(222, 210, 235, 0.22);
}
/* -------------------------------------------------------------------- */
@@ -220,7 +476,7 @@ body {
/* -------------------------------------------------------------------- */
:focus-visible {
- outline: 2px solid var(--color-accent-primary);
+ outline: 2px solid var(--color-accent-fill);
outline-offset: 2px;
}
@@ -249,7 +505,7 @@ body {
}
/* -------------------------------------------------------------------- */
-/* Typography: prose overrides for wiki content */
+/* Typography: prose overrides for wiki content (token-driven) */
/* -------------------------------------------------------------------- */
.prose {
@@ -289,6 +545,29 @@ body {
border-bottom-color: var(--color-accent-primary);
}
+/* -------------------------------------------------------------------- */
+/* Shiki dual themes (light: github-light · dark: vesper) */
+/* Tokens are emitted as --shiki-light/--shiki-dark CSS vars */
+/* (defaultColor: false); pick one per theme so code stays readable on */
+/* warm paper. Backgrounds stay token-driven via the pre wrappers. */
+/* -------------------------------------------------------------------- */
+
+.shiki,
+.shiki span {
+ color: var(--shiki-light);
+ font-style: var(--shiki-light-font-style, inherit);
+ font-weight: var(--shiki-light-font-weight, inherit);
+ text-decoration: var(--shiki-light-text-decoration, inherit);
+}
+
+.dark .shiki,
+.dark .shiki span {
+ color: var(--shiki-dark);
+ font-style: var(--shiki-dark-font-style, inherit);
+ font-weight: var(--shiki-dark-font-weight, inherit);
+ text-decoration: var(--shiki-dark-text-decoration, inherit);
+}
+
/* -------------------------------------------------------------------- */
/* Tabular numbers for data tables */
/* -------------------------------------------------------------------- */
@@ -298,29 +577,41 @@ body {
}
/* -------------------------------------------------------------------- */
-/* React Flow Dark Theme */
+/* React Flow theme (token-driven; light default + dark overrides) */
/* -------------------------------------------------------------------- */
.react-flow {
--xy-background-color: transparent;
--xy-minimap-background-color: var(--color-bg-surface);
- --xy-minimap-mask-background: rgba(0, 0, 0, 0.6);
+ --xy-minimap-mask-background: rgba(36, 27, 44, 0.4);
--xy-minimap-mask-stroke: none;
--xy-controls-button-background-color: var(--color-bg-elevated);
--xy-controls-button-background-color-hover: var(--color-bg-overlay);
--xy-controls-button-border-color: var(--color-border-default);
--xy-controls-button-color: var(--color-text-secondary);
--xy-controls-button-color-hover: var(--color-text-primary);
- --xy-edge-stroke: rgba(245, 149, 32, 0.3);
+ --xy-edge-stroke: rgba(214, 127, 16, 0.35);
--xy-edge-stroke-selected: var(--color-accent-graph);
--xy-node-border-radius: var(--radius-lg);
}
+.dark .react-flow {
+ --xy-minimap-mask-background: rgba(0, 0, 0, 0.6);
+ --xy-edge-stroke: rgba(245, 149, 32, 0.3);
+}
+
@keyframes graph-path-pulse {
- 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 149, 32, 0.4); }
- 50% { box-shadow: 0 0 12px 4px rgba(245, 149, 32, 0.2); }
+ 0%,
+ 100% {
+ box-shadow: 0 0 0 0 rgba(245, 149, 32, 0.4);
+ }
+ 50% {
+ box-shadow: 0 0 12px 4px rgba(245, 149, 32, 0.2);
+ }
}
@keyframes graph-marching-ants {
- to { stroke-dashoffset: -20; }
+ to {
+ stroke-dashoffset: -20;
+ }
}
diff --git a/packages/web/package.json b/packages/web/package.json
index 5d07f9536..55395dede 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -11,6 +11,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
+ "@lottiefiles/dotlottie-react": "^0.19.4",
"@repowise-dev/types": "*",
"@repowise-dev/ui": "*",
"clsx": "^2.1.1",
@@ -20,6 +21,7 @@
"lucide-react": "^0.460.0",
"next": "~15.5.18",
"next-mdx-remote": "^6.0.0",
+ "next-themes": "^0.4.6",
"nuqs": "^2.2.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
diff --git a/packages/web/public/kg-card-paper.jpg b/packages/web/public/kg-card-paper.jpg
new file mode 100644
index 000000000..d6bb1d71e
Binary files /dev/null and b/packages/web/public/kg-card-paper.jpg differ
diff --git a/packages/web/public/owl-loading.json b/packages/web/public/owl-loading.json
new file mode 100644
index 000000000..c9fe5b759
--- /dev/null
+++ b/packages/web/public/owl-loading.json
@@ -0,0 +1 @@
+{"v":"5.9.6","fr":29.97,"ip":0,"op":87,"w":1080,"h":1080,"nm":"o","assets":[{"id":"comp_0","nm":"e","fr":29.97,"layers":[{"ind":1,"ty":4,"nm":"l","td":1,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[665.253,309.67,0],"l":2},"a":{"a":0,"k":[77.179,74.215,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.888,-0.984],[0,-2.592],[-42.413,0],[0,42.413],[27.771,11.617],[2.04,-0.12],[0,-32.908],[41.093,0],[0,41.093],[-0.504,3.456]],"o":[[-0.264,2.52],[0,42.413],[42.413,0],[0,-31.924],[-2.065,0.048],[29.643,9.841],[0,41.093],[-41.093,0],[0,-3.6],[-0.984,0.96]],"v":[[-76.545,-10.646],[-76.929,-2.965],[0,73.965],[76.929,-2.965],[29.596,-73.965],[23.427,-73.725],[74.529,-2.965],[0,71.564],[-74.529,-2.965],[-73.761,-13.574]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,74.215]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.056,-1.08],[0,-5.233],[-38.044,0],[0,38.044],[34.66,3.6],[2.208,-0.816],[0,-36.7],[36.724,0],[0,36.724],[-1.704,5.832]],"o":[[-1.128,4.897],[0,38.044],[38.044,0],[0,-35.644],[-2.52,0.552],[36.676,0.048],[0,36.724],[-36.724,0],[0,-6.361],[-1.128,1.008]],"v":[[-67.304,-15.41],[-69.008,-0.192],[0,68.816],[69.008,-0.192],[7.201,-68.816],[0.096,-66.8],[66.608,-0.192],[0,66.416],[-66.608,-0.192],[-64.016,-18.53]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.283,71.442]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.29,0],[0,21.266],[-21.291,0],[0,-21.291]],"o":[[-21.291,0],[0,-21.291],[21.29,0],[0,21.266]],"v":[[0,38.596],[-38.597,0.001],[0,-38.597],[38.596,0.001]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,-22.611],[-22.611,0],[0,22.61]],"o":[[-22.611,0],[0,22.61],[22.611,0],[0,-22.611]],"v":[[0,-40.996],[-40.997,0.001],[0,40.996],[40.997,0.001]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.283,71.25]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-2.494],[2.494,0],[0,2.494],[-2.494,0]],"o":[[0,2.494],[-2.494,0],[0,-2.494],[2.494,0]],"v":[[4.516,0],[0,4.516],[-4.516,0],[0,-4.516]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[74.208,71.519]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-5.972],[5.972,0],[0,5.972],[-5.972,0]],"o":[[0,5.972],[-5.972,0],[0,-5.972],[5.972,0]],"v":[[10.813,0],[0,10.813],[-10.813,0],[0,-10.813]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[59.187,50.805]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.093,23.33],[13.247,6.308]],"o":[[1.816,18.071],[0,0]],"v":[[15.967,-15.618],[-17.783,9.31]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[88.52,91.653]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.29,0],[0,-21.291],[-21.291,0],[0,21.266]],"o":[[-21.291,0],[0,21.266],[21.29,0],[0,-21.291]],"v":[[0.001,-38.597],[-38.596,0.001],[0.001,38.597],[38.596,0.001]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.282,71.25]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.44,-1.536],[0,-3.6],[-41.093,0],[0,41.093],[29.643,9.841],[5.521,-1.176],[0,-35.644],[38.044,0],[0,38.045],[-1.129,4.897]],"o":[[-0.504,3.456],[0,41.093],[41.093,0],[0,-32.908],[-6.409,0.336],[34.66,3.601],[0,38.045],[-38.045,0],[0,-5.232],[-1.584,1.513]],"v":[[-73.76,-12.493],[-74.529,-1.884],[0,72.645],[74.529,-1.884],[23.427,-72.645],[5.305,-70.508],[67.111,-1.884],[-1.896,67.124],[-70.904,-1.884],[-69.2,-17.102]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,73.134]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,22.611],[-22.611,0],[0,-22.61]],"o":[[-22.611,0],[0,-22.61],[22.611,0],[0,22.611]],"v":[[0,40.997],[-40.997,0],[0,-40.996],[40.997,0]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[36.676,0.048],[1.464,-0.792],[-0.913,0],[-7.273,-4.825],[0.12,-0.505],[0.528,-0.048],[20.091,-18.602],[0,-6.36],[-36.724,0],[0,36.725]],"o":[[-1.704,0.625],[0.768,-0.048],[5.136,0],[0.432,0.263],[-0.144,0.48],[-34.06,2.88],[-1.704,5.833],[0,36.725],[36.724,0],[0,-36.7]],"v":[[0.096,-66.608],[-4.657,-64.471],[-2.136,-64.543],[17.954,-58.71],[18.458,-57.414],[17.378,-56.526],[-64.016,-18.338],[-66.608,0],[0,66.608],[66.608,0]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[1,0.89,0.239,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.283,71.25]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0},{"ind":2,"ty":4,"nm":"S","tt":1,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[675.258,235.608,0],"l":2},"a":{"a":0,"k":[135.258,-304.392,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":7,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[63,-452],[-10,-266],[210,-345]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[93,-405],[20,-219],[240,-298]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":34,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[93,-405],[20,-219],[240,-298]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":55,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[63,-452],[-10,-266],[210,-345]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":65,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[102,-381.5],[29,-195.5],[249,-274.5]],"c":true}]},{"t":75,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[63,-452],[-10,-266],[210,-345]],"c":true}]}]},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"S"}],"ip":0,"op":300,"st":0},{"ind":3,"ty":4,"nm":"l","td":1,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[665.253,309.67,0],"l":2},"a":{"a":0,"k":[77.179,74.215,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.888,-0.984],[0,-2.592],[-42.413,0],[0,42.413],[27.771,11.617],[2.04,-0.12],[0,-32.908],[41.093,0],[0,41.093],[-0.504,3.456]],"o":[[-0.264,2.52],[0,42.413],[42.413,0],[0,-31.924],[-2.065,0.048],[29.643,9.841],[0,41.093],[-41.093,0],[0,-3.6],[-0.984,0.96]],"v":[[-76.545,-10.646],[-76.929,-2.965],[0,73.965],[76.929,-2.965],[29.596,-73.965],[23.427,-73.725],[74.529,-2.965],[0,71.564],[-74.529,-2.965],[-73.761,-13.574]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,74.215]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.056,-1.08],[0,-5.233],[-38.044,0],[0,38.044],[34.66,3.6],[2.208,-0.816],[0,-36.7],[36.724,0],[0,36.724],[-1.704,5.832]],"o":[[-1.128,4.897],[0,38.044],[38.044,0],[0,-35.644],[-2.52,0.552],[36.676,0.048],[0,36.724],[-36.724,0],[0,-6.361],[-1.128,1.008]],"v":[[-67.304,-15.41],[-69.008,-0.192],[0,68.816],[69.008,-0.192],[7.201,-68.816],[0.096,-66.8],[66.608,-0.192],[0,66.416],[-66.608,-0.192],[-64.016,-18.53]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.283,71.442]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.29,0],[0,21.266],[-21.291,0],[0,-21.291]],"o":[[-21.291,0],[0,-21.291],[21.29,0],[0,21.266]],"v":[[0,38.596],[-38.597,0.001],[0,-38.597],[38.596,0.001]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,-22.611],[-22.611,0],[0,22.61]],"o":[[-22.611,0],[0,22.61],[22.611,0],[0,-22.611]],"v":[[0,-40.996],[-40.997,0.001],[0,40.996],[40.997,0.001]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.283,71.25]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-2.494],[2.494,0],[0,2.494],[-2.494,0]],"o":[[0,2.494],[-2.494,0],[0,-2.494],[2.494,0]],"v":[[4.516,0],[0,4.516],[-4.516,0],[0,-4.516]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[74.208,71.519]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-5.972],[5.972,0],[0,5.972],[-5.972,0]],"o":[[0,5.972],[-5.972,0],[0,-5.972],[5.972,0]],"v":[[10.813,0],[0,10.813],[-10.813,0],[0,-10.813]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[59.187,50.805]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.093,23.33],[13.247,6.308]],"o":[[1.816,18.071],[0,0]],"v":[[15.967,-15.618],[-17.783,9.31]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[88.52,91.653]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.29,0],[0,-21.291],[-21.291,0],[0,21.266]],"o":[[-21.291,0],[0,21.266],[21.29,0],[0,-21.291]],"v":[[0.001,-38.597],[-38.596,0.001],[0.001,38.597],[38.596,0.001]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.282,71.25]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.44,-1.536],[0,-3.6],[-41.093,0],[0,41.093],[29.643,9.841],[5.521,-1.176],[0,-35.644],[38.044,0],[0,38.045],[-1.129,4.897]],"o":[[-0.504,3.456],[0,41.093],[41.093,0],[0,-32.908],[-6.409,0.336],[34.66,3.601],[0,38.045],[-38.045,0],[0,-5.232],[-1.584,1.513]],"v":[[-73.76,-12.493],[-74.529,-1.884],[0,72.645],[74.529,-1.884],[23.427,-72.645],[5.305,-70.508],[67.111,-1.884],[-1.896,67.124],[-70.904,-1.884],[-69.2,-17.102]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,73.134]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,22.611],[-22.611,0],[0,-22.61]],"o":[[-22.611,0],[0,-22.61],[22.611,0],[0,22.611]],"v":[[0,40.997],[-40.997,0],[0,-40.996],[40.997,0]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[36.676,0.048],[1.464,-0.792],[-0.913,0],[-7.273,-4.825],[0.12,-0.505],[0.528,-0.048],[20.091,-18.602],[0,-6.36],[-36.724,0],[0,36.725]],"o":[[-1.704,0.625],[0.768,-0.048],[5.136,0],[0.432,0.263],[-0.144,0.48],[-34.06,2.88],[-1.704,5.833],[0,36.725],[36.724,0],[0,-36.7]],"v":[[0.096,-66.608],[-4.657,-64.471],[-2.136,-64.543],[17.954,-58.71],[18.458,-57.414],[17.378,-56.526],[-64.016,-18.338],[-66.608,0],[0,66.608],[66.608,0]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[1,0.89,0.239,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.283,71.25]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0},{"ind":4,"ty":4,"nm":"S","tt":1,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[683.258,345.608,0],"l":2},"a":{"a":0,"k":[135.258,-304.392,0],"l":2},"s":{"a":0,"k":[-100,-100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":7,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[76,-489],[3,-303],[223,-382]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[90,-426],[17,-240],[237,-319]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":34,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[90,-426],[17,-240],[237,-319]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":55,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[76,-489],[3,-303],[223,-382]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":65,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[100,-406.5],[27,-220.5],[247,-299.5]],"c":true}]},{"t":75,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[76,-489],[3,-303],[223,-382]],"c":true}]}]},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"S"}],"ip":0,"op":300,"st":0},{"ind":5,"ty":4,"nm":"l","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[665.253,309.67,0],"l":2},"a":{"a":0,"k":[77.179,74.215,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.888,-0.984],[0,-2.592],[-42.413,0],[0,42.413],[27.771,11.617],[2.04,-0.12],[0,-32.908],[41.093,0],[0,41.093],[-0.504,3.456]],"o":[[-0.264,2.52],[0,42.413],[42.413,0],[0,-31.924],[-2.065,0.048],[29.643,9.841],[0,41.093],[-41.093,0],[0,-3.6],[-0.984,0.96]],"v":[[-76.545,-10.646],[-76.929,-2.965],[0,73.965],[76.929,-2.965],[29.596,-73.965],[23.427,-73.725],[74.529,-2.965],[0,71.564],[-74.529,-2.965],[-73.761,-13.574]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,74.215]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.056,-1.08],[0,-5.233],[-38.044,0],[0,38.044],[34.66,3.6],[2.208,-0.816],[0,-36.7],[36.724,0],[0,36.724],[-1.704,5.832]],"o":[[-1.128,4.897],[0,38.044],[38.044,0],[0,-35.644],[-2.52,0.552],[36.676,0.048],[0,36.724],[-36.724,0],[0,-6.361],[-1.128,1.008]],"v":[[-67.304,-15.41],[-69.008,-0.192],[0,68.816],[69.008,-0.192],[7.201,-68.816],[0.096,-66.8],[66.608,-0.192],[0,66.416],[-66.608,-0.192],[-64.016,-18.53]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.283,71.442]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.29,0],[0,21.266],[-21.291,0],[0,-21.291]],"o":[[-21.291,0],[0,-21.291],[21.29,0],[0,21.266]],"v":[[0,38.596],[-38.597,0.001],[0,-38.597],[38.596,0.001]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,-22.611],[-22.611,0],[0,22.61]],"o":[[-22.611,0],[0,22.61],[22.611,0],[0,-22.611]],"v":[[0,-40.996],[-40.997,0.001],[0,40.996],[40.997,0.001]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.283,71.25]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-2.494],[2.494,0],[0,2.494],[-2.494,0]],"o":[[0,2.494],[-2.494,0],[0,-2.494],[2.494,0]],"v":[[4.516,0],[0,4.516],[-4.516,0],[0,-4.516]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[74.208,71.519]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-5.972],[5.972,0],[0,5.972],[-5.972,0]],"o":[[0,5.972],[-5.972,0],[0,-5.972],[5.972,0]],"v":[[10.813,0],[0,10.813],[-10.813,0],[0,-10.813]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[59.187,50.805]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.093,23.33],[13.247,6.308]],"o":[[1.816,18.071],[0,0]],"v":[[15.967,-15.618],[-17.783,9.31]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[88.52,91.653]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.29,0],[0,-21.291],[-21.291,0],[0,21.266]],"o":[[-21.291,0],[0,21.266],[21.29,0],[0,-21.291]],"v":[[0.001,-38.597],[-38.596,0.001],[0.001,38.597],[38.596,0.001]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.282,71.25]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.44,-1.536],[0,-3.6],[-41.093,0],[0,41.093],[29.643,9.841],[5.521,-1.176],[0,-35.644],[38.044,0],[0,38.045],[-1.129,4.897]],"o":[[-0.504,3.456],[0,41.093],[41.093,0],[0,-32.908],[-6.409,0.336],[34.66,3.601],[0,38.045],[-38.045,0],[0,-5.232],[-1.584,1.513]],"v":[[-73.76,-12.493],[-74.529,-1.884],[0,72.645],[74.529,-1.884],[23.427,-72.645],[5.305,-70.508],[67.111,-1.884],[-1.896,67.124],[-70.904,-1.884],[-69.2,-17.102]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,73.134]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,22.611],[-22.611,0],[0,-22.61]],"o":[[-22.611,0],[0,-22.61],[22.611,0],[0,22.611]],"v":[[0,40.997],[-40.997,0],[0,-40.996],[40.997,0]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[36.676,0.048],[1.464,-0.792],[-0.913,0],[-7.273,-4.825],[0.12,-0.505],[0.528,-0.048],[20.091,-18.602],[0,-6.36],[-36.724,0],[0,36.725]],"o":[[-1.704,0.625],[0.768,-0.048],[5.136,0],[0.432,0.263],[-0.144,0.48],[-34.06,2.88],[-1.704,5.833],[0,36.725],[36.724,0],[0,-36.7]],"v":[[0.096,-66.608],[-4.657,-64.471],[-2.136,-64.543],[17.954,-58.71],[18.458,-57.414],[17.378,-56.526],[-64.016,-18.338],[-66.608,0],[0,66.608],[66.608,0]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[1,0.89,0.239,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[75.283,71.25]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0},{"ind":6,"ty":4,"nm":"r","td":1,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[424.481,309.67,0],"l":2},"a":{"a":0,"k":[77.179,74.215,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-31.924],[-42.413,0],[0,42.413],[0.264,2.52],[0.936,0.96],[0,-3.624],[41.093,0],[0,41.093],[-29.643,9.841],[2.088,0.048]],"o":[[0,42.413],[42.413,0],[0,-2.592],[-0.912,-0.984],[0.504,3.48],[0,41.093],[-41.093,0],[0,-32.908],[-2.04,-0.12],[-27.772,11.618]],"v":[[-76.929,-2.964],[0,73.965],[76.929,-2.964],[76.545,-10.669],[73.761,-13.621],[74.529,-2.964],[0,71.565],[-74.529,-2.964],[-23.427,-73.724],[-29.595,-73.965]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,74.215]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-36.676,0.048],[2.52,0.552],[0,-35.644],[-38.044,0],[0,38.044],[1.128,4.897],[1.104,1.032],[0,-6.385],[36.724,0],[0,36.724]],"o":[[-2.184,-0.792],[-34.684,3.6],[0,38.044],[38.044,0],[0,-5.257],[-1.08,-1.056],[1.68,5.832],[0,36.724],[-36.724,0],[0,-36.7]],"v":[[-0.096,-66.8],[-7.177,-68.816],[-69.008,-0.192],[0,68.816],[69.008,-0.192],[67.28,-15.458],[64.016,-18.578],[66.608,-0.192],[0,66.416],[-66.608,-0.192]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.075,71.443]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.291,0],[0,21.266],[-21.29,0],[0,-21.291]],"o":[[-21.29,0],[0,-21.291],[21.291,0],[0,21.266]],"v":[[0,38.596],[-38.596,0.001],[0,-38.597],[38.597,0.001]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,-22.611],[-22.611,0],[0,22.61]],"o":[[-22.611,0],[0,22.61],[22.611,0],[0,-22.611]],"v":[[0,-40.996],[-40.997,0.001],[0,40.996],[40.997,0.001]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.075,71.251]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-2.494],[2.494,0],[0,2.494],[-2.495,0]],"o":[[0,2.494],[-2.495,0],[0,-2.494],[2.494,0]],"v":[[4.516,0],[0,4.516],[-4.516,0],[0,-4.516]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[78.527,71.52]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-5.972],[5.972,0],[0,5.972],[-5.972,0]],"o":[[0,5.972],[-5.972,0],[0,-5.972],[5.972,0]],"v":[[10.813,0],[0,10.813],[-10.813,0],[0,-10.813]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[63.506,50.806]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.093,23.33],[13.247,6.308]],"o":[[1.816,18.071],[0,0]],"v":[[15.967,-15.618],[-17.783,9.31]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[92.369,91.654]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.291,0],[0,-21.291],[-21.29,0],[0,21.266]],"o":[[-21.29,0],[0,21.266],[21.291,0],[0,-21.291]],"v":[[0,-38.597],[-38.596,0.001],[0,38.597],[38.596,0.001]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.076,71.251]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-34.684,3.6],[6.409,0.336],[0,-32.908],[-41.092,0],[0,41.093],[0.504,3.48],[1.584,1.512],[0,-5.257],[38.044,0],[0,38.044]],"o":[[-5.545,-1.176],[-29.644,9.841],[0,41.093],[41.093,0],[0,-3.624],[-1.488,-1.537],[1.128,4.897],[0,38.044],[-38.045,0],[0,-35.644]],"v":[[-5.28,-70.509],[-23.427,-72.645],[-74.529,-1.884],[0,72.645],[74.529,-1.884],[73.76,-12.541],[69.177,-17.15],[70.905,-1.884],[1.896,67.124],[-67.112,-1.884]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,73.135]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,22.611],[-22.611,0],[0,-22.61]],"o":[[-22.611,0],[0,-22.61],[22.611,0],[0,22.611]],"v":[[0,40.997],[-40.997,0],[0,-40.996],[40.997,0]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[34.036,2.88],[0.12,0.48],[-0.408,0.263],[-5.16,0],[-0.768,-0.048],[1.704,0.625],[0,-36.7],[-36.724,0],[0,36.725],[1.68,5.833]],"o":[[-0.504,-0.048],[-0.144,-0.505],[7.273,-4.825],[0.889,0],[-1.464,-0.792],[-36.676,0.048],[0,36.725],[36.724,0],[0,-6.384],[-20.091,-18.578]],"v":[[-17.378,-56.526],[-18.434,-57.414],[-17.954,-58.71],[2.16,-64.543],[4.657,-64.471],[-0.096,-66.608],[-66.608,0],[0,66.608],[66.608,0],[64.016,-18.386]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[1,0.89,0.239,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.075,71.251]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0},{"ind":7,"ty":4,"nm":"S","tt":1,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[427.258,234.608,0],"l":2},"a":{"a":0,"k":[135.258,-304.392,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":7,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[63,-452],[-10,-266],[210,-345]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[93,-405],[20,-219],[240,-298]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":34,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[93,-405],[20,-219],[240,-298]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":55,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[63,-452],[-10,-266],[210,-345]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":65,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[102,-381.5],[29,-195.5],[249,-274.5]],"c":true}]},{"t":75,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[63,-452],[-10,-266],[210,-345]],"c":true}]}]},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"S"}],"ip":0,"op":300,"st":0},{"ind":8,"ty":4,"nm":"r","td":1,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[424.481,309.67,0],"l":2},"a":{"a":0,"k":[77.179,74.215,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-31.924],[-42.413,0],[0,42.413],[0.264,2.52],[0.936,0.96],[0,-3.624],[41.093,0],[0,41.093],[-29.643,9.841],[2.088,0.048]],"o":[[0,42.413],[42.413,0],[0,-2.592],[-0.912,-0.984],[0.504,3.48],[0,41.093],[-41.093,0],[0,-32.908],[-2.04,-0.12],[-27.772,11.618]],"v":[[-76.929,-2.964],[0,73.965],[76.929,-2.964],[76.545,-10.669],[73.761,-13.621],[74.529,-2.964],[0,71.565],[-74.529,-2.964],[-23.427,-73.724],[-29.595,-73.965]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,74.215]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-36.676,0.048],[2.52,0.552],[0,-35.644],[-38.044,0],[0,38.044],[1.128,4.897],[1.104,1.032],[0,-6.385],[36.724,0],[0,36.724]],"o":[[-2.184,-0.792],[-34.684,3.6],[0,38.044],[38.044,0],[0,-5.257],[-1.08,-1.056],[1.68,5.832],[0,36.724],[-36.724,0],[0,-36.7]],"v":[[-0.096,-66.8],[-7.177,-68.816],[-69.008,-0.192],[0,68.816],[69.008,-0.192],[67.28,-15.458],[64.016,-18.578],[66.608,-0.192],[0,66.416],[-66.608,-0.192]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.075,71.443]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.291,0],[0,21.266],[-21.29,0],[0,-21.291]],"o":[[-21.29,0],[0,-21.291],[21.291,0],[0,21.266]],"v":[[0,38.596],[-38.596,0.001],[0,-38.597],[38.597,0.001]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,-22.611],[-22.611,0],[0,22.61]],"o":[[-22.611,0],[0,22.61],[22.611,0],[0,-22.611]],"v":[[0,-40.996],[-40.997,0.001],[0,40.996],[40.997,0.001]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.075,71.251]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-2.494],[2.494,0],[0,2.494],[-2.495,0]],"o":[[0,2.494],[-2.495,0],[0,-2.494],[2.494,0]],"v":[[4.516,0],[0,4.516],[-4.516,0],[0,-4.516]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[78.527,71.52]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-5.972],[5.972,0],[0,5.972],[-5.972,0]],"o":[[0,5.972],[-5.972,0],[0,-5.972],[5.972,0]],"v":[[10.813,0],[0,10.813],[-10.813,0],[0,-10.813]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[63.506,50.806]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.093,23.33],[13.247,6.308]],"o":[[1.816,18.071],[0,0]],"v":[[15.967,-15.618],[-17.783,9.31]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[92.369,91.654]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.291,0],[0,-21.291],[-21.29,0],[0,21.266]],"o":[[-21.29,0],[0,21.266],[21.291,0],[0,-21.291]],"v":[[0,-38.597],[-38.596,0.001],[0,38.597],[38.596,0.001]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.076,71.251]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-34.684,3.6],[6.409,0.336],[0,-32.908],[-41.092,0],[0,41.093],[0.504,3.48],[1.584,1.512],[0,-5.257],[38.044,0],[0,38.044]],"o":[[-5.545,-1.176],[-29.644,9.841],[0,41.093],[41.093,0],[0,-3.624],[-1.488,-1.537],[1.128,4.897],[0,38.044],[-38.045,0],[0,-35.644]],"v":[[-5.28,-70.509],[-23.427,-72.645],[-74.529,-1.884],[0,72.645],[74.529,-1.884],[73.76,-12.541],[69.177,-17.15],[70.905,-1.884],[1.896,67.124],[-67.112,-1.884]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,73.135]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,22.611],[-22.611,0],[0,-22.61]],"o":[[-22.611,0],[0,-22.61],[22.611,0],[0,22.611]],"v":[[0,40.997],[-40.997,0],[0,-40.996],[40.997,0]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[34.036,2.88],[0.12,0.48],[-0.408,0.263],[-5.16,0],[-0.768,-0.048],[1.704,0.625],[0,-36.7],[-36.724,0],[0,36.725],[1.68,5.833]],"o":[[-0.504,-0.048],[-0.144,-0.505],[7.273,-4.825],[0.889,0],[-1.464,-0.792],[-36.676,0.048],[0,36.725],[36.724,0],[0,-6.384],[-20.091,-18.578]],"v":[[-17.378,-56.526],[-18.434,-57.414],[-17.954,-58.71],[2.16,-64.543],[4.657,-64.471],[-0.096,-66.608],[-66.608,0],[0,66.608],[66.608,0],[64.016,-18.386]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[1,0.89,0.239,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.075,71.251]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0},{"ind":9,"ty":4,"nm":"S","tt":1,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[435.258,344.608,0],"l":2},"a":{"a":0,"k":[135.258,-304.392,0],"l":2},"s":{"a":0,"k":[-100,-100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":7,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[76,-489],[3,-303],[223,-382]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[90,-426],[17,-240],[237,-319]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":34,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[90,-426],[17,-240],[237,-319]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":55,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[76,-489],[3,-303],[223,-382]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":65,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[100,-406.5],[27,-220.5],[247,-299.5]],"c":true}]},{"t":75,"s":[{"i":[[115,-32],[0,0],[0,0]],"o":[[-115,32],[0,0],[0,0]],"v":[[76,-489],[3,-303],[223,-382]],"c":true}]}]},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"S"}],"ip":0,"op":300,"st":0},{"ind":10,"ty":4,"nm":"r","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[424.481,309.67,0],"l":2},"a":{"a":0,"k":[77.179,74.215,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-31.924],[-42.413,0],[0,42.413],[0.264,2.52],[0.936,0.96],[0,-3.624],[41.093,0],[0,41.093],[-29.643,9.841],[2.088,0.048]],"o":[[0,42.413],[42.413,0],[0,-2.592],[-0.912,-0.984],[0.504,3.48],[0,41.093],[-41.093,0],[0,-32.908],[-2.04,-0.12],[-27.772,11.618]],"v":[[-76.929,-2.964],[0,73.965],[76.929,-2.964],[76.545,-10.669],[73.761,-13.621],[74.529,-2.964],[0,71.565],[-74.529,-2.964],[-23.427,-73.724],[-29.595,-73.965]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,74.215]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-36.676,0.048],[2.52,0.552],[0,-35.644],[-38.044,0],[0,38.044],[1.128,4.897],[1.104,1.032],[0,-6.385],[36.724,0],[0,36.724]],"o":[[-2.184,-0.792],[-34.684,3.6],[0,38.044],[38.044,0],[0,-5.257],[-1.08,-1.056],[1.68,5.832],[0,36.724],[-36.724,0],[0,-36.7]],"v":[[-0.096,-66.8],[-7.177,-68.816],[-69.008,-0.192],[0,68.816],[69.008,-0.192],[67.28,-15.458],[64.016,-18.578],[66.608,-0.192],[0,66.416],[-66.608,-0.192]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.075,71.443]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.291,0],[0,21.266],[-21.29,0],[0,-21.291]],"o":[[-21.29,0],[0,-21.291],[21.291,0],[0,21.266]],"v":[[0,38.596],[-38.596,0.001],[0,-38.597],[38.597,0.001]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,-22.611],[-22.611,0],[0,22.61]],"o":[[-22.611,0],[0,22.61],[22.611,0],[0,-22.611]],"v":[[0,-40.996],[-40.997,0.001],[0,40.996],[40.997,0.001]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.075,71.251]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-2.494],[2.494,0],[0,2.494],[-2.495,0]],"o":[[0,2.494],[-2.495,0],[0,-2.494],[2.494,0]],"v":[[4.516,0],[0,4.516],[-4.516,0],[0,-4.516]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[78.527,71.52]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-5.972],[5.972,0],[0,5.972],[-5.972,0]],"o":[[0,5.972],[-5.972,0],[0,-5.972],[5.972,0]],"v":[[10.813,0],[0,10.813],[-10.813,0],[0,-10.813]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[63.506,50.806]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.093,23.33],[13.247,6.308]],"o":[[1.816,18.071],[0,0]],"v":[[15.967,-15.618],[-17.783,9.31]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[92.369,91.654]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[21.291,0],[0,-21.291],[-21.29,0],[0,21.266]],"o":[[-21.29,0],[0,21.266],[21.291,0],[0,-21.291]],"v":[[0,-38.597],[-38.596,0.001],[0,38.597],[38.596,0.001]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.076,71.251]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-34.684,3.6],[6.409,0.336],[0,-32.908],[-41.092,0],[0,41.093],[0.504,3.48],[1.584,1.512],[0,-5.257],[38.044,0],[0,38.044]],"o":[[-5.545,-1.176],[-29.644,9.841],[0,41.093],[41.093,0],[0,-3.624],[-1.488,-1.537],[1.128,4.897],[0,38.044],[-38.045,0],[0,-35.644]],"v":[[-5.28,-70.509],[-23.427,-72.645],[-74.529,-1.884],[0,72.645],[74.529,-1.884],[73.76,-12.541],[69.177,-17.15],[70.905,-1.884],[1.896,67.124],[-67.112,-1.884]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[77.179,73.135]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[22.611,0],[0,22.611],[-22.611,0],[0,-22.61]],"o":[[-22.611,0],[0,-22.61],[22.611,0],[0,22.611]],"v":[[0,40.997],[-40.997,0],[0,-40.996],[40.997,0]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[34.036,2.88],[0.12,0.48],[-0.408,0.263],[-5.16,0],[-0.768,-0.048],[1.704,0.625],[0,-36.7],[-36.724,0],[0,36.725],[1.68,5.833]],"o":[[-0.504,-0.048],[-0.144,-0.505],[7.273,-4.825],[0.889,0],[-1.464,-0.792],[-36.676,0.048],[0,36.725],[36.724,0],[0,-6.384],[-20.091,-18.578]],"v":[[-17.378,-56.526],[-18.434,-57.414],[-17.954,-58.71],[2.16,-64.543],[4.657,-64.471],[-0.096,-66.608],[-66.608,0],[0,66.608],[66.608,0],[64.016,-18.386]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[1,0.89,0.239,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.075,71.251]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0}]}],"layers":[{"ind":1,"ty":4,"nm":"l","parent":4,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[473.189,229.044,0],"to":[0,2,0],"ti":[0,-2,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":19,"s":[473.189,241.044,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":34,"s":[473.189,241.044,0],"to":[0,-2,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":55,"s":[473.189,229.044,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":65,"s":[473.189,241.044,0],"to":[0,0,0],"ti":[0,2,0]},{"t":75,"s":[473.189,229.044,0]}],"l":2},"a":{"a":0,"k":[140.079,84.236,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[32.152,1.737],[0,0],[0,0],[0,0],[0,0],[13.869,-29.012],[0.546,-2.326],[0.552,-3.072],[-0.936,1.584],[-0.72,1.176],[-10.897,11.281],[-1.008,1.008],[-1.704,1.56],[-1.224,1.056],[0,0],[-30.724,3.553],[4.08,0],[0.024,-0.024],[0.264,0.504],[-0.408,0.36],[-1.488,0.84],[-2.16,0.768],[-6.817,0.648],[-2.448,0.12],[-6.72,0],[-6.793,3.169],[0.072,0.145],[-0.336,0.384],[-0.48,-0.216],[-15.698,0],[-0.6,0.024],[-0.792,0.048],[-1.488,0.168],[1.32,0.552],[0.72,0.408],[0.096,0.096],[-0.192,0.432],[-0.48,0],[-0.408,0.024],[-0.887,0.072],[-9.313,3.048],[-0.84,0.288],[-10.849,7.777],[-0.984,0.746]],"o":[[-27.962,-1.511],[10.594,-0.474],[-64.953,-1.497],[3.794,-3.32],[-31.336,8.658],[-0.601,2.239],[-0.648,2.929],[0.72,-1.392],[0.624,-1.08],[5.665,-9.097],[0.96,-0.984],[1.608,-1.584],[1.2,-1.104],[0,0],[19.658,-17.138],[-5.785,-2.928],[-4.201,0],[-0.528,0.12],[-0.24,-0.48],[1.224,-1.032],[1.801,-1.032],[5.449,-1.92],[2.377,-0.216],[6.817,-0.336],[14.114,-0.024],[-15.578,-1.512],[-0.216,-0.456],[0.36,-0.36],[6.409,2.737],[0.6,0],[0.792,-0.024],[1.536,-0.072],[-1.848,-0.408],[-1.008,-0.384],[-2.064,-1.152],[-0.336,-0.361],[0.192,-0.456],[0.36,0],[0.768,0],[5.449,-0.288],[0.792,-0.24],[8.906,-3.145],[0.974,-0.697],[-16.829,10.863]],"v":[[48.206,-56.337],[-0.955,-49.698],[18.329,-41.635],[-77.468,-8.438],[-55.179,-12.232],[-126.088,56.259],[-127.809,63.095],[-129.634,72.096],[-127.137,67.608],[-125.122,64.224],[-100.182,32.492],[-97.205,29.491],[-92.237,24.763],[-88.612,21.499],[-88.612,21.475],[-12.572,-14.194],[-28.197,-17.794],[-35.278,-17.074],[-36.647,-17.698],[-36.359,-19.161],[-32.303,-21.971],[-26.35,-24.659],[-7.7,-28.331],[-0.426,-28.835],[20.144,-29.195],[54.516,-32.411],[32.17,-46.934],[32.361,-48.302],[33.73,-48.565],[68.941,-41.221],[70.766,-41.245],[73.167,-41.341],[77.702,-41.724],[72.975,-43.189],[70.381,-44.413],[67.261,-46.645],[67.045,-47.942],[68.149,-48.686],[69.326,-48.71],[71.798,-48.806],[94.313,-53.198],[96.736,-54.013],[126.693,-69.904],[129.633,-72.096]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[133.892,84.988]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.032,-0.36],[13.034,-0.96],[0.984,-0.048],[3.817,0],[3.433,0.168],[1.296,0.096],[1.992,0.192],[0.048,0.6],[-0.552,0.144],[-0.792,0.312],[-1.008,0.6],[-1.584,1.8],[2.64,-0.769],[1.248,-0.313],[7.345,-1.176],[12.769,-10.873],[0.432,0.24],[-0.024,0.48],[-6.913,6.072],[26.715,-45.965],[1.224,-2.376],[3.505,-12.505],[0.744,-3.168],[0.553,-3.072],[-0.936,1.584],[-0.72,1.177],[-10.897,11.281],[-1.008,1.008],[-1.704,1.56],[-1.224,1.056],[0,0],[-30.723,3.553],[4.081,0],[0.024,-0.024],[0.264,0.504],[-0.408,0.361],[-1.488,0.84],[-2.161,0.768],[-6.817,0.647],[-2.449,0.12],[-6.721,0],[-6.793,3.168],[0.072,0.144],[-0.336,0.384],[-0.48,-0.216],[-15.698,0],[-0.6,0.024],[-0.792,0.048],[-1.488,0.168],[1.321,0.552],[0.72,0.408],[0.096,0.096],[-0.192,0.432],[-0.48,0],[-0.408,0.024],[-0.888,0.072],[-9.313,3.048],[-0.84,0.287],[-10.85,7.776],[-1.368,1.056],[-1.801,1.536],[1.44,-0.6]],"o":[[-13.586,5.281],[-1.008,0.096],[-4.321,0.288],[-3.432,0],[-1.272,-0.048],[-1.969,-0.12],[-0.6,-0.048],[-0.048,-0.576],[0.072,-0.024],[0.672,-0.264],[1.489,-0.841],[-1.968,1.008],[-1.128,0.336],[-5.857,1.416],[-19.634,3.096],[-0.384,0.312],[-0.432,-0.216],[0.048,-0.36],[-21.243,8.377],[-1.296,2.233],[-5.281,10.153],[-0.864,3.001],[-0.648,2.929],[0.721,-1.392],[0.624,-1.08],[5.665,-9.097],[0.96,-0.984],[1.609,-1.584],[1.2,-1.104],[0,0],[19.659,-17.138],[-5.784,-2.928],[-4.2,0],[-0.528,0.12],[-0.24,-0.48],[1.225,-1.032],[1.8,-1.032],[5.448,-1.92],[2.376,-0.217],[6.816,-0.336],[14.114,-0.024],[-15.578,-1.512],[-0.216,-0.456],[0.36,-0.36],[6.408,2.736],[0.6,0],[0.792,-0.024],[1.537,-0.072],[-1.848,-0.408],[-1.008,-0.384],[-2.064,-1.153],[-0.336,-0.36],[0.192,-0.456],[0.36,0],[0.768,0],[5.449,-0.288],[0.792,-0.24],[8.905,-3.145],[1.344,-0.96],[1.776,-1.368],[-1.416,0.672],[-1.008,0.432]],"v":[[125.559,-71.541],[84.37,-62.852],[81.394,-62.659],[69.128,-62.276],[58.855,-62.516],[54.991,-62.732],[49.062,-63.188],[47.958,-64.292],[48.87,-65.539],[50.262,-65.995],[52.854,-67.268],[57.655,-71.18],[50.694,-68.516],[47.118,-67.555],[26.979,-63.883],[-27.675,-46.409],[-29.019,-46.266],[-29.667,-47.417],[-22.106,-60.138],[-111.541,15.589],[-115.333,22.503],[-128.679,56.419],[-131.055,65.683],[-132.88,74.685],[-130.383,70.196],[-128.367,66.812],[-103.428,35.081],[-100.452,32.08],[-95.483,27.352],[-91.859,24.086],[-91.859,24.062],[-15.818,-11.605],[-31.444,-15.206],[-38.524,-14.485],[-39.893,-15.109],[-39.605,-16.575],[-35.548,-19.383],[-29.595,-22.07],[-10.945,-25.742],[-3.672,-26.247],[16.898,-26.607],[51.27,-29.823],[28.924,-44.346],[29.116,-45.714],[30.484,-45.977],[65.696,-38.633],[67.52,-38.656],[69.92,-38.753],[74.457,-39.136],[69.728,-40.601],[67.136,-41.825],[64.016,-44.057],[63.8,-45.354],[64.904,-46.097],[66.08,-46.122],[68.552,-46.217],[91.067,-50.609],[93.491,-51.425],[123.447,-67.315],[127.503,-70.341],[132.88,-74.685],[128.607,-72.765]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[137.138,82.4]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.416,0.672],[1.776,-1.369],[1.344,-0.96],[8.906,-3.144],[0.792,-0.24],[5.449,-0.288],[0.768,0],[0.36,0],[0.192,-0.457],[-0.336,-0.36],[-2.064,-1.152],[-1.008,-0.384],[-1.848,-0.408],[1.536,-0.072],[0.792,-0.024],[0.6,0],[6.409,2.737],[0.36,-0.36],[-0.216,-0.456],[-15.578,-1.512],[14.114,-0.024],[6.817,-0.336],[2.377,-0.216],[5.449,-1.92],[1.801,-1.032],[1.224,-1.032],[-0.24,-0.48],[-0.528,0.12],[-4.201,0],[-5.785,-2.929],[19.658,-17.138],[0,0],[1.2,-1.104],[1.608,-1.585],[0.96,-0.984],[5.665,-9.097],[0.624,-1.08],[0.72,-1.393],[-0.648,2.928],[-0.864,3],[-5.281,10.154],[-1.296,2.232],[-21.243,8.377],[0.048,-0.36],[-0.432,-0.216],[-0.384,0.312],[-19.635,3.097],[-5.857,1.416],[-1.128,0.336],[-1.968,1.008],[1.488,-0.84],[0.673,-0.264],[0.072,-0.024],[-0.048,-0.576],[-0.6,-0.048],[-1.968,-0.12],[-1.272,-0.048],[-3.433,0],[-4.32,0.288],[-1.008,0.096],[-13.585,5.281],[-1.008,0.432]],"o":[[-1.8,1.536],[-1.369,1.056],[-10.849,7.777],[-0.84,0.288],[-9.313,3.048],[-0.888,0.072],[-0.408,0.024],[-0.48,0],[-0.192,0.432],[0.096,0.096],[0.721,0.408],[1.32,0.552],[-1.488,0.168],[-0.792,0.048],[-0.6,0.024],[-15.698,0],[-0.48,-0.216],[-0.336,0.385],[0.072,0.144],[-6.793,3.169],[-6.72,0],[-2.448,0.12],[-6.817,0.648],[-2.16,0.768],[-1.488,0.841],[-0.408,0.36],[0.264,0.504],[0.024,-0.024],[4.08,0],[-30.724,3.552],[0,0],[-1.224,1.056],[-1.704,1.56],[-1.008,1.008],[-10.897,11.281],[-0.72,1.176],[-0.936,1.584],[0.552,-3.073],[0.744,-3.169],[3.505,-12.506],[1.224,-2.376],[26.716,-45.966],[-6.913,6.072],[-0.024,0.48],[0.432,0.24],[12.77,-10.873],[7.345,-1.176],[1.248,-0.312],[2.641,-0.768],[-1.584,1.8],[-1.008,0.6],[-0.792,0.312],[-0.552,0.144],[0.048,0.6],[1.993,0.193],[1.296,0.096],[3.433,0.168],[3.816,0],[0.984,-0.048],[13.034,-0.96],[1.032,-0.36],[1.44,-0.6]],"v":[[129.939,-76.521],[124.563,-72.176],[120.506,-69.152],[90.55,-53.262],[88.126,-52.446],[65.611,-48.054],[63.139,-47.958],[61.963,-47.934],[60.859,-47.189],[61.075,-45.893],[64.195,-43.661],[66.788,-42.437],[71.516,-40.973],[66.98,-40.589],[64.579,-40.493],[62.755,-40.469],[27.543,-47.814],[26.175,-47.55],[25.983,-46.181],[48.33,-31.66],[13.957,-28.443],[-6.613,-28.083],[-13.886,-27.579],[-32.536,-23.907],[-38.489,-21.219],[-42.545,-18.41],[-42.833,-16.946],[-41.465,-16.322],[-34.383,-17.042],[-18.758,-13.441],[-94.799,22.227],[-94.799,22.251],[-98.424,25.515],[-103.391,30.244],[-106.369,33.244],[-131.308,64.976],[-133.324,68.36],[-135.82,72.849],[-133.995,63.848],[-131.62,54.583],[-118.274,20.666],[-114.482,13.754],[-25.047,-61.975],[-32.607,-49.254],[-31.96,-48.102],[-30.615,-48.246],[24.039,-65.72],[44.177,-69.392],[47.753,-70.352],[54.714,-73.016],[49.914,-69.104],[47.321,-67.832],[45.929,-67.376],[45.018,-66.128],[46.121,-65.024],[52.05,-64.568],[55.914,-64.352],[66.188,-64.112],[78.453,-64.496],[81.429,-64.688],[122.618,-73.377],[125.667,-74.601]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-4.272,1.032],[0.072,0.6],[0.6,0],[2.712,1.32],[0.217,0.12],[-0.216,0.024],[-9.601,3.217],[-0.816,0.288],[-9.194,6.097],[0,0],[-5.833,5.641],[0.384,0.48],[0.504,-0.312],[3.744,-1.704],[0,0],[13.994,-0.912],[0.984,-0.072],[3.24,0],[4.441,0.288],[0.624,0.048],[-0.312,0.216],[-2.04,5.232],[0.312,0.336],[0.144,0.072],[0.072,0],[0,0.024],[0.264,-0.456],[6.841,-1.705],[1.584,-0.312],[5.832,-0.912],[13.537,-9.577],[-9.601,4.177],[0.216,0.6],[0.624,-0.192],[32.164,-61.639],[0.024,-0.024],[3.601,-13.082],[1.297,-9.745],[0,-0.12],[-0.647,-0.048],[-0.049,0],[-0.072,0.6],[0,0],[-18.71,18.545],[-0.985,0.96],[-1.584,1.513],[-1.129,1.008],[-34.06,2.88],[-0.144,0.48],[0.432,0.263],[5.136,0],[0.767,-0.048],[-1.704,0.625],[-2.52,0.552],[-6.409,0.336],[-2.065,0.048],[-4.824,0],[-5.761,5.785],[0.192,0.456],[0.48,0],[0,0],[3.097,3.96],[-13.609,0],[-0.648,0.025]],"o":[[4.536,-0.24],[0.576,-0.12],[-0.072,-0.6],[-6.577,-0.096],[-0.264,-0.12],[0.193,0],[5.712,-0.336],[0.792,-0.264],[7.777,-2.808],[0,0],[5.593,-4.056],[0.456,-0.432],[-0.384,-0.504],[-3.48,2.233],[0,0],[-14.569,6.073],[-1.032,0.072],[-3.601,0.168],[-4.393,0],[-0.6,-0.024],[0.312,-0.168],[2.928,-1.92],[0.168,-0.432],[-0.096,-0.096],[-0.072,-0.024],[-0.024,0],[-0.48,-0.096],[-1.969,3.24],[-1.416,0.36],[-4.897,1.008],[-18.554,2.928],[1.463,-3.529],[0.6,-0.264],[-0.216,-0.6],[-14.162,4.345],[0,0.024],[-5.545,10.585],[-2.376,8.568],[-0.024,0.144],[-0.048,0.648],[0.024,0.024],[0.6,0],[0,0],[0,0],[0.942,-0.933],[1.44,-1.536],[1.056,-1.08],[20.09,-18.602],[0.528,-0.048],[0.12,-0.505],[-7.273,-4.825],[-0.912,0],[1.464,-0.792],[2.208,-0.816],[5.521,-1.176],[2.04,-0.12],[4.944,-0.12],[17.787,-0.024],[0.36,-0.336],[-0.192,-0.432],[0,0],[-11.377,0],[7.297,2.76],[0.648,0],[0,0]],"v":[[67.1,-38.188],[80.325,-40.085],[81.237,-41.381],[80.061,-42.437],[66.332,-45.269],[65.611,-45.629],[66.236,-45.677],[89.638,-50.406],[92.039,-51.246],[117.698,-64.304],[122.138,-67.328],[139.324,-81.778],[139.444,-83.386],[137.86,-83.674],[126.987,-77.793],[124.034,-76.521],[79.509,-66.944],[76.485,-66.752],[66.188,-66.512],[53.01,-66.92],[51.162,-67.016],[52.098,-67.592],[60.451,-77.961],[60.211,-79.209],[59.851,-79.473],[59.635,-79.545],[59.611,-79.569],[58.315,-79.017],[44.441,-71.912],[39.929,-70.904],[23.656,-68.096],[-29.295,-52.302],[-14.486,-65.72],[-13.862,-67.232],[-15.374,-67.952],[-120.266,19.322],[-120.314,19.394],[-134.188,54.823],[-139.732,82.282],[-139.781,82.69],[-138.701,83.962],[-138.58,83.986],[-137.404,82.93],[-137.356,82.666],[-106.896,37.42],[-104.112,34.492],[-99.552,29.883],[-96.263,26.763],[-14.87,-11.425],[-13.79,-12.313],[-14.294,-13.609],[-34.383,-19.442],[-36.904,-19.37],[-32.152,-21.507],[-25.047,-23.523],[-6.925,-25.659],[-0.756,-25.899],[13.957,-26.043],[52.867,-31.876],[53.13,-33.196],[52.003,-33.916],[51.33,-33.916],[30.159,-44.189],[62.755,-38.068],[64.699,-38.093]],"c":false}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[140.078,84.236]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0},{"ind":2,"ty":4,"nm":"r","parent":4,"sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[171.714,229.044,0],"to":[0,2,0],"ti":[0,-2,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":19,"s":[171.714,241.044,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":34,"s":[171.714,241.044,0],"to":[0,-2,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":55,"s":[171.714,229.044,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":65,"s":[171.714,241.044,0],"to":[0,0,0],"ti":[0,2,0]},{"t":75,"s":[171.714,229.044,0]}],"l":2},"a":{"a":0,"k":[140.078,84.236,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.488,0.168],[-1.321,0.552],[-0.72,0.384],[-0.096,0.095],[0.192,0.432],[0.456,0],[0.432,0.024],[0.888,0.072],[9.289,3.048],[0.816,0.288],[10.849,7.777],[1.368,1.057],[1.801,1.536],[-1.44,-0.6],[-1.032,-0.36],[-13.034,-0.96],[-0.984,-0.024],[-3.817,0],[-3.433,0.168],[-1.296,0.096],[-1.992,0.192],[-0.048,0.6],[0.552,0.144],[0.84,0.312],[1.009,0.6],[1.584,1.777],[-2.64,-0.768],[-1.248,-0.288],[-7.345,-1.176],[-12.793,-10.873],[-0.432,0.24],[0.048,0.48],[6.937,6.072],[-26.715,-46.013],[-1.224,-2.376],[-0.024,0],[-3.481,-12.409],[-0.72,-3.192],[-0.552,-3.072],[0.936,1.608],[0.72,1.176],[10.897,11.257],[1.008,1.009],[1.704,1.56],[1.224,1.056],[0,0],[30.723,3.553],[-4.105,0],[-0.024,-0.024],[-0.264,0.504],[0.408,0.36],[1.464,0.816],[2.137,0.744],[6.793,0.624],[2.449,0.12],[6.721,0],[6.768,3.169],[-0.288,0.575],[0.336,0.384],[0.456,-0.216],[15.698,0],[0.6,0.024],[0.792,0.048]],"o":[[1.848,-0.408],[1.008,-0.384],[2.064,-1.152],[0.336,-0.36],[-0.192,-0.456],[-0.384,0],[-0.768,0],[-5.473,-0.288],[-0.792,-0.24],[-8.929,-3.145],[-1.344,-0.96],[-1.776,-1.368],[1.416,0.672],[1.008,0.432],[13.586,5.281],[1.008,0.096],[4.321,0.288],[3.432,0],[1.272,-0.048],[1.969,-0.12],[0.6,-0.048],[0.048,-0.576],[-0.024,0],[-0.672,-0.264],[-1.488,-0.864],[1.968,1.008],[1.128,0.336],[5.857,1.44],[19.634,3.097],[0.36,0.312],[0.432,-0.216],[-0.024,-0.36],[21.219,8.377],[1.32,2.257],[0.024,0.024],[5.233,10.105],[0.888,3.049],[0.672,2.953],[-0.744,-1.416],[-0.624,-1.08],[-5.665,-9.098],[-0.96,-0.984],[-1.609,-1.608],[-1.176,-1.104],[0,0],[-19.659,-17.137],[5.784,-2.928],[4.176,0],[0.552,0.12],[0.239,-0.48],[-1.225,-1.056],[-1.824,-1.056],[-5.472,-1.92],[-2.376,-0.216],[-6.816,-0.36],[-14.114,-0.024],[15.554,-1.464],[0.216,-0.457],[-0.36,-0.36],[-6.432,2.737],[-0.6,0],[-0.792,-0.024],[-1.537,-0.072]],"v":[[-71.516,-40.973],[-66.788,-42.437],[-64.195,-43.637],[-61.076,-45.893],[-60.859,-47.19],[-61.939,-47.934],[-63.139,-47.958],[-65.611,-48.054],[-88.126,-52.446],[-90.526,-53.262],[-120.507,-69.152],[-124.562,-72.177],[-129.939,-76.521],[-125.667,-74.601],[-122.618,-73.377],[-81.43,-64.688],[-78.43,-64.496],[-66.188,-64.112],[-55.914,-64.352],[-52.051,-64.568],[-46.121,-65.024],[-45.017,-66.128],[-45.93,-67.376],[-47.297,-67.832],[-49.891,-69.104],[-54.667,-72.993],[-47.729,-70.352],[-44.154,-69.416],[-24.038,-65.72],[30.639,-48.246],[31.96,-48.102],[32.608,-49.254],[25.023,-61.975],[114.482,13.777],[118.297,20.714],[118.346,20.762],[131.596,54.462],[133.995,63.799],[135.844,72.848],[133.323,68.312],[131.307,64.952],[106.368,33.244],[103.393,30.243],[98.4,25.491],[94.799,22.251],[94.799,22.226],[18.759,-13.442],[34.409,-17.042],[41.465,-16.322],[42.833,-16.946],[42.546,-18.41],[38.488,-21.219],[32.536,-23.907],[13.885,-27.579],[6.613,-28.083],[-13.957,-28.443],[-48.305,-31.66],[-25.983,-46.181],[-26.176,-47.55],[-27.52,-47.814],[-62.755,-40.469],[-64.579,-40.493],[-66.979,-40.589]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0],[-7.273,2.76],[11.234,0],[0,0],[0.192,-0.432],[-0.36,-0.336],[-17.786,-0.024],[-4.921,-0.144],[-2.04,-0.12],[-5.544,-1.176],[-2.184,-0.792],[-1.464,-0.792],[0.888,0],[7.273,-4.824],[-0.144,-0.504],[-0.504,-0.048],[-20.091,-18.578],[-1.08,-1.056],[-1.488,-1.536],[-0.912,-0.984],[-5.089,-8.545],[0,0],[-0.239,-1.273],[0,0],[-0.6,0],[-0.048,0.024],[0.048,0.648],[0.024,0.145],[2.376,8.569],[5.544,10.585],[0,0.024],[14.21,4.368],[0.216,-0.6],[-0.576,-0.264],[-1.44,-3.529],[18.554,2.928],[4.896,1.032],[1.44,0.36],[1.968,3.24],[0.481,-0.096],[0,0],[0.072,-0.024],[0.096,-0.096],[-0.168,-0.432],[-2.928,-1.92],[-0.312,-0.168],[0.6,-0.024],[4.392,0],[3.601,0.168],[1.032,0.072],[14.57,6.073],[0,0],[3.481,2.232],[0.384,-0.504],[-0.456,-0.432],[-5.617,-4.032],[0,0],[-7.777,-2.809],[-0.792,-0.264],[-5.737,-0.335],[-0.192,0],[0.264,-0.097],[6.601,-0.096],[0.072,-0.6],[-0.576,-0.12],[-7.321,-0.672]],"o":[[0,0],[13.562,0],[-3.12,3.96],[0,0],[-0.48,0],[-0.192,0.456],[5.761,5.785],[4.824,0],[2.088,0.048],[6.409,0.336],[2.521,0.552],[1.704,0.624],[-0.768,-0.048],[-5.161,0],[-0.408,0.264],[0.12,0.48],[34.036,2.88],[1.104,1.032],[1.584,1.513],[0.936,0.96],[10.657,11.594],[0,0],[3.072,5.473],[0,0],[0.071,0.6],[0.048,0],[0.624,-0.048],[0,-0.12],[-1.296,-9.745],[-3.6,-13.081],[-0.024,-0.024],[-32.164,-61.639],[-0.624,-0.168],[-0.216,0.6],[9.601,4.201],[-13.514,-9.577],[-5.809,-0.912],[-1.585,-0.312],[-6.841,-1.704],[-0.264,-0.456],[0,0],[-0.096,0.024],[-0.143,0.072],[-0.312,0.336],[2.041,5.232],[0.312,0.216],[-0.624,0.048],[-4.44,0.288],[-3.241,0],[-0.984,-0.072],[-13.993,-0.912],[0,0],[-3.769,-1.704],[-0.504,-0.312],[-0.384,0.48],[5.833,5.641],[0,0],[9.193,6.121],[0.816,0.288],[9.625,3.216],[0.216,0.024],[-0.216,0.12],[-2.713,1.344],[-0.6,0],[-0.048,0.6],[2.904,0.696],[0,0]],"v":[[-64.699,-38.093],[-62.755,-38.069],[-30.232,-44.165],[-51.331,-33.916],[-52.003,-33.916],[-53.13,-33.196],[-52.866,-31.876],[-13.957,-26.043],[0.757,-25.899],[6.925,-25.659],[25.07,-23.523],[32.152,-21.507],[36.905,-19.37],[34.409,-19.442],[14.294,-13.61],[13.814,-12.314],[14.87,-11.425],[96.264,26.715],[99.528,29.835],[104.113,34.444],[106.897,37.396],[130.588,69.008],[132.388,72.08],[137.355,82.666],[137.404,82.93],[138.581,83.986],[138.725,83.962],[139.781,82.69],[139.732,82.281],[134.188,54.822],[120.315,19.394],[120.266,19.322],[15.326,-67.976],[13.837,-67.232],[14.486,-65.72],[29.296,-52.302],[-23.654,-68.096],[-39.904,-70.904],[-44.441,-71.913],[-58.314,-79.017],[-59.587,-79.569],[-59.611,-79.569],[-59.852,-79.473],[-60.211,-79.209],[-60.452,-77.961],[-52.098,-67.592],[-51.163,-67.016],[-53.01,-66.92],[-66.188,-66.512],[-76.486,-66.752],[-79.509,-66.944],[-124.034,-76.521],[-126.986,-77.793],[-137.861,-83.674],[-139.444,-83.386],[-139.324,-81.778],[-122.115,-67.352],[-117.697,-64.304],[-92.038,-51.246],[-89.638,-50.406],[-66.211,-45.678],[-65.611,-45.63],[-66.307,-45.293],[-80.061,-42.437],[-81.237,-41.381],[-80.326,-40.085],[-67.099,-38.189]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[140.078,84.236]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0],[21.677,-1.885],[0,0],[18.224,8.395],[-0.91,-0.65],[-8.929,-3.144],[-0.792,-0.24],[-5.473,-0.288],[-0.768,0],[-0.384,0],[-0.192,-0.456],[0.336,-0.36],[2.064,-1.152],[1.008,-0.384],[1.848,-0.408],[-1.536,-0.072],[-0.792,-0.024],[-0.6,0],[-6.433,2.736],[-0.36,-0.36],[0.216,-0.456],[15.554,-1.464],[-14.114,-0.024],[-6.816,-0.36],[-2.376,-0.216],[-5.472,-1.92],[-1.824,-1.056],[-1.225,-1.056],[0.24,-0.48],[0.552,0.12],[4.176,0],[5.784,-2.928],[-19.659,-17.138],[0,0],[-1.176,-1.104],[-1.609,-1.608],[-0.96,-0.984],[-5.665,-9.097],[-0.624,-1.08],[-0.745,-1.416],[0.155,0.802]],"o":[[12.571,-0.288],[-37.517,-41.394],[7.097,-1.262],[-45.585,2.486],[0.918,0.694],[10.85,7.777],[0.816,0.288],[9.289,3.048],[0.888,0.073],[0.432,0.024],[0.456,0],[0.192,0.432],[-0.096,0.096],[-0.72,0.384],[-1.32,0.552],[1.488,0.168],[0.792,0.049],[0.6,0.024],[15.698,0],[0.456,-0.217],[0.336,0.384],[-0.288,0.576],[6.769,3.169],[6.721,0],[2.448,0.12],[6.793,0.624],[2.137,0.744],[1.464,0.816],[0.408,0.36],[-0.264,0.504],[-0.024,-0.024],[-4.105,0],[30.723,3.553],[0,0],[1.224,1.056],[1.704,1.56],[1.008,1.008],[10.897,11.257],[0.72,1.176],[0.936,1.608],[-0.146,-0.809],[-37.27,-76.29]],"v":[[48.446,-23.405],[70.631,-14.978],[-59.97,-53.148],[-46.897,-60.231],[-129.549,-72.025],[-126.802,-69.976],[-96.822,-54.086],[-94.422,-53.27],[-71.907,-48.879],[-69.435,-48.781],[-68.235,-48.757],[-67.155,-48.013],[-67.371,-46.717],[-70.491,-44.461],[-73.083,-43.262],[-77.812,-41.797],[-73.275,-41.413],[-70.875,-41.316],[-69.051,-41.293],[-33.815,-48.637],[-32.471,-48.374],[-32.279,-47.005],[-54.601,-32.484],[-20.253,-29.267],[0.317,-28.908],[7.59,-28.403],[26.24,-24.731],[32.193,-22.042],[36.25,-19.234],[36.538,-17.77],[35.169,-17.146],[28.113,-17.866],[12.463,-14.267],[88.504,21.402],[88.504,21.427],[92.104,24.667],[97.097,29.42],[100.073,32.42],[125.012,64.128],[127.028,67.488],[129.549,72.025],[129.062,69.642]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[146.374,85.06]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[15.554,-1.464],[-14.114,-0.023],[-6.816,-0.36],[-2.376,-0.217],[-5.473,-1.92],[-1.824,-1.056],[-1.225,-1.057],[0.24,-0.48],[0.553,0.12],[4.176,0],[5.785,-2.928],[-19.659,-17.138],[0,0],[-1.176,-1.104],[-1.608,-1.608],[-0.96,-0.984],[-5.664,-9.097],[-0.624,-1.08],[-0.744,-1.416],[0.671,2.953],[0.888,3.049],[5.232,10.105],[0.024,0.024],[1.32,2.257],[21.218,8.377],[-0.024,-0.36],[0.433,-0.216],[0.36,0.312],[19.634,3.096],[5.856,1.44],[1.128,0.336],[1.968,1.008],[-1.488,-0.864],[-0.672,-0.264],[-0.024,0],[0.047,-0.576],[0.6,-0.048],[1.968,-0.12],[1.272,-0.048],[3.432,0],[4.32,0.288],[1.008,0.096],[13.586,5.281],[1.008,0.432],[1.416,0.672],[-1.776,-1.368],[-1.345,-0.96],[-8.929,-3.145],[-0.792,-0.24],[-5.473,-0.288],[-0.768,0],[-0.385,0],[-0.193,-0.456],[0.337,-0.36],[2.064,-1.153],[1.008,-0.384],[1.848,-0.408],[-1.536,-0.072],[-0.792,-0.024],[-0.6,0],[-6.432,2.737],[-0.361,-0.36],[0.216,-0.456]],"o":[[6.769,3.169],[6.721,0],[2.449,0.12],[6.793,0.624],[2.136,0.744],[1.464,0.816],[0.408,0.36],[-0.264,0.504],[-0.024,-0.024],[-4.105,0],[30.724,3.553],[0,0],[1.224,1.056],[1.704,1.56],[1.008,1.008],[10.898,11.257],[0.72,1.177],[0.936,1.608],[-0.552,-3.072],[-0.721,-3.192],[-3.48,-12.409],[-0.024,0],[-1.225,-2.376],[-26.715,-46.013],[6.936,6.072],[0.048,0.48],[-0.432,0.24],[-12.793,-10.873],[-7.345,-1.176],[-1.249,-0.288],[-2.64,-0.769],[1.584,1.776],[1.008,0.6],[0.84,0.312],[0.552,0.144],[-0.048,0.6],[-1.992,0.192],[-1.296,0.096],[-3.432,0.168],[-3.816,0],[-0.985,-0.024],[-13.033,-0.96],[-1.032,-0.36],[-1.44,-0.6],[1.8,1.536],[1.368,1.056],[10.849,7.776],[0.816,0.287],[9.289,3.048],[0.888,0.072],[0.432,0.024],[0.455,0],[0.192,0.432],[-0.096,0.096],[-0.72,0.384],[-1.32,0.552],[1.489,0.168],[0.792,0.048],[0.6,0.024],[15.698,0],[0.457,-0.216],[0.336,0.384],[-0.288,0.576]],"v":[[-51.258,-29.824],[-16.91,-26.608],[3.66,-26.247],[10.932,-25.742],[29.583,-22.07],[35.535,-19.383],[39.592,-16.574],[39.88,-15.109],[38.512,-14.486],[31.456,-15.206],[15.806,-11.606],[91.846,24.062],[91.846,24.086],[95.447,27.327],[100.44,32.079],[103.415,35.081],[128.355,66.787],[130.371,70.148],[132.892,74.685],[131.043,65.635],[128.642,56.298],[115.393,22.599],[115.345,22.55],[111.529,15.613],[22.07,-60.138],[29.656,-47.418],[29.007,-46.266],[27.686,-46.41],[-26.991,-63.884],[-47.105,-67.58],[-50.682,-68.516],[-57.62,-71.156],[-52.842,-67.268],[-50.25,-65.996],[-48.883,-65.539],[-47.97,-64.292],[-49.074,-63.188],[-55.003,-62.732],[-58.867,-62.516],[-69.141,-62.276],[-81.382,-62.66],[-84.383,-62.852],[-125.572,-71.541],[-128.62,-72.765],[-132.892,-74.685],[-127.516,-70.341],[-123.458,-67.315],[-93.479,-51.426],[-91.079,-50.609],[-68.564,-46.218],[-66.092,-46.122],[-64.892,-46.098],[-63.811,-45.354],[-64.029,-44.057],[-67.148,-41.801],[-69.741,-40.601],[-74.47,-39.137],[-69.932,-38.753],[-67.533,-38.656],[-65.708,-38.633],[-30.473,-45.978],[-29.128,-45.714],[-28.935,-44.346]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[143.031,82.4]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0},{"ind":3,"ty":0,"nm":"e","parent":4,"refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[317.585,507.44,0],"l":2},"a":{"a":0,"k":[540,540,0],"l":2},"s":{"a":0,"k":[100,100,100],"l":2}},"ao":0,"w":1080,"h":1080,"ip":0,"op":300,"st":0},{"ind":4,"ty":4,"nm":"o","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":19,"s":[51]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":34,"s":[51]},{"t":55,"s":[0]}]},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":55,"s":[543.845,507.73,0],"to":[0,3.555,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":65,"s":[543.845,529.06,0],"to":[0,0,0],"ti":[0,3.555,0]},{"t":75,"s":[543.845,507.73,0]}],"l":2},"a":{"a":0,"k":[322.451,466.592,0],"l":2},"s":{"a":0,"k":[79,79,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0.504,4.993],[-0.384,0.048],[-0.12,0.528],[0.456,0.264],[2.472,13.226],[15.962,13.01],[-0.24,-0.457],[-0.576,0.264],[0.216,0.576],[15.938,10.73],[2.425,0.336],[0.12,0.072],[-0.048,-0.024],[-7.201,-16.922],[7.945,-0.768],[0.12,-0.48],[-0.409,-0.288],[-3.24,-17.402],[-5.521,-5.976],[3.649,7.441],[0.504,-0.048],[0.096,-0.48],[-5.041,-12.77],[0,0],[-10.321,-7.393],[-0.456,0.648],[4.776,7.73]],"o":[[-3.936,-9.241],[7.057,10.898],[0.528,-0.048],[0.096,-0.504],[-7.825,-4.392],[-2.977,-16.082],[11.137,0.72],[0.312,0.552],[0.576,-0.263],[-5.832,-15.169],[-2.328,-0.456],[-0.144,-0.024],[0.048,0.048],[16.105,6.145],[-3.745,-3.361],[-0.504,0.048],[-0.144,0.504],[17.546,12.338],[2.113,11.401],[-3.217,-1.368],[-0.216,-0.456],[-0.504,0.072],[-0.6,2.568],[0,0],[5.113,9.481],[0.456,-0.672],[-8.521,-6.097],[0,0]],"v":[[10.345,49.662],[4.128,27.051],[20.042,37.373],[21.122,36.412],[20.522,35.116],[8.089,6.073],[-14.546,-42.821],[2.304,-31.971],[3.864,-31.468],[4.488,-32.98],[-28.876,-83.962],[-36.029,-85.138],[-36.412,-85.282],[-36.292,-85.21],[-0.6,-39.148],[-18.146,-45.149],[-19.179,-44.261],[-18.722,-42.965],[5.736,6.505],[15.266,33.988],[4.032,21.987],[2.832,21.315],[1.8,22.227],[7.393,48.39],[12.265,58.831],[35.068,85.282],[36.412,83.314],[16.682,61.879]],"c":false}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[37.334,102.861]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[2.161,-3.216],[2.28,2.737],[0.504,-0.432],[-0.433,-0.505],[-1.344,-3.697],[-0.24,-0.888],[4.609,-10.441],[12.673,-3.721],[0.696,9.097],[0.672,-0.072],[-0.048,-0.648],[3.865,-7.777],[0.528,-0.888],[5.641,-3.889],[15.386,5.833],[-3.336,10.489],[0.624,0.192],[0.192,-0.625],[8.089,-5.064],[0.864,-0.432],[8.137,0.384],[4.872,12.722],[-6.456,5.905],[0.456,0.48],[0.504,-0.456],[7.777,-1.008],[0.817,-0.024],[7.656,4.585],[-2.472,21.483],[-6.745,0],[-6.72,3.793],[0.313,0.576],[0.552,-0.336],[9.193,6.457],[0.672,0.576],[1.968,3.096],[-18.194,17.162],[-9.026,-0.792],[0,0],[-0.048,0.625],[0.672,0.072],[4.969,5.857],[0.432,0.648],[1.105,5.305],[-18.986,10.681],[-11.018,-6.937],[-0.216,0],[-0.216,0.36],[0.576,0.36],[0.459,19.712],[0,0],[0,0],[0.096,-0.049],[-3.36,-16.226],[-3.072,-4.128],[-9.962,-15.65],[-3.553,-2.712],[-16.658,-10.01],[-7.705,0],[-1.081,0.072],[-18.506,-0.84],[-0.816,0],[-6.433,3.768],[-6.888,0],[-8.377,5.761],[-3.6,6.841],[-6.505,12.41],[0,0.024],[-0.48,1.08],[3.48,10.657],[-1.296,4.513]],"o":[[-1.008,4.609],[-1.392,-3.384],[-0.408,-0.504],[-0.529,0.408],[2.4,2.904],[0.312,0.84],[2.833,9.817],[-5.665,12.793],[3.432,-7.729],[-0.048,-0.672],[-0.648,0.048],[0.72,9.409],[-0.432,0.936],[-3.336,5.761],[-13.009,8.953],[7.849,-5.376],[0.216,-0.624],[-0.624,-0.216],[-3.36,10.537],[-0.84,0.504],[-6.361,3.337],[-17.282,-0.792],[8.065,-1.152],[0.48,-0.456],[-0.456,-0.48],[-6.192,5.665],[-0.816,0.096],[-8.041,0.528],[-12.002,-7.201],[5.161,3.384],[5.977,0],[0.577,-0.336],[-0.336,-0.576],[-13.777,7.777],[-0.72,-0.528],[-2.881,-2.353],[-9.145,-14.33],[5.353,6.313],[0,0],[0.6,0],[0.072,-0.671],[-8.377,-0.72],[-0.552,-0.6],[-2.808,-3.84],[-3.144,-15.169],[0.84,9.769],[0.192,0.12],[0.384,0],[0.36,-0.552],[0,0],[0,0],[0,0],[-0.096,0.024],[-20.643,11.161],[1.2,5.737],[-18.458,17.522],[2.376,3.696],[-2.689,19.562],[7.249,4.344],[1.08,0],[4.992,13.898],[0.816,0.048],[8.329,0],[6.793,2.832],[9.985,0],[6.529,-4.489],[13.202,-3.264],[0,-0.024],[0.528,-1.032],[5.065,-11.498],[2.4,-3.097],[0,0]],"v":[[115.898,1.428],[111.073,13.333],[105.577,4.068],[103.897,3.925],[103.729,5.605],[109.369,15.591],[110.209,18.206],[107.665,50.01],[79.318,75.406],[83.566,49.842],[82.27,48.739],[81.166,50.01],[76.269,76.174],[74.805,78.909],[61.243,93.576],[16.334,98.424],[33.472,74.373],[32.704,72.885],[31.192,73.654],[13.622,97.32],[11.054,98.76],[-10.885,103.32],[-47.969,80.373],[-25.719,69.764],[-25.647,68.06],[-27.351,67.988],[-48.737,78.021],[-51.186,78.237],[-75.212,72.188],[-96.647,27.927],[-78.621,33.401],[-59.467,27.976],[-59.011,26.344],[-60.643,25.888],[-96.263,25.263],[-98.375,23.607],[-105.696,15.302],[-97.199,-38.057],[-75.236,-27.062],[-75.116,-27.062],[-73.94,-28.143],[-75.02,-29.464],[-95.399,-39.664],[-96.887,-41.536],[-102.816,-55.314],[-81.645,-102.239],[-64.771,-75.716],[-64.123,-75.525],[-63.115,-76.101],[-63.499,-77.757],[-80.125,-105.768],[-81.789,-105.768],[-81.789,-104.856],[-82.101,-104.736],[-105.168,-54.81],[-98.711,-39.929],[-107.736,16.599],[-98.807,26.367],[-76.461,74.253],[-53.658,80.758],[-50.441,80.638],[-10.981,105.721],[-8.533,105.768],[13.814,100.008],[34.528,104.232],[62.612,95.544],[77.925,78.261],[108.313,54.187],[108.337,54.138],[109.849,50.971],[112.082,16.047],[117.698,4.5]],"c":false}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[186.403,296.624]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-4.546,-4.431],[0,0],[1.01,5.235]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-2.135,-6.268],[3.697,4.431],[2.731,6.268],[-3.697,-5.212]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[344.618,304.147]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[11.474,-7.225],[-0.36,-0.553],[-0.384,0],[-0.192,0.12],[-0.84,9.77],[3.144,-15.17],[2.808,-3.841],[0.552,-0.6],[8.377,-0.72],[-0.072,-0.672],[-0.6,0],[0,0],[-5.376,6.313],[9.121,-14.305],[2.881,-2.376],[0.744,-0.529],[13.777,7.777],[0.312,-0.577],[-0.576,-0.336],[-6.001,0],[-5.161,3.408],[11.977,-7.201],[8.065,0.552],[0.815,0.096],[6.193,5.665],[0.456,-0.481],[-0.48,-0.456],[-8.09,-1.152],[17.306,-0.792],[6.361,3.312],[0.84,0.528],[3.361,10.537],[0.624,-0.216],[-0.216,-0.624],[-7.849,-5.377],[13.009,8.954],[3.361,5.784],[0.456,0.912],[-0.72,9.409],[0.648,0.048],[0.048,-0.672],[-3.456,-7.729],[5.665,12.818],[-2.832,9.793],[-0.312,0.84],[-2.425,2.905],[0.528,0.408],[0.433,-0.504],[1.392,-3.384],[0,0],[-5.065,-11.497],[-0.552,-1.032],[-0.024,0],[-13.226,-3.241],[-6.528,-4.489],[-9.985,0],[-6.769,2.833],[-8.329,0],[-0.816,0.048],[-4.969,13.898],[-1.08,0],[-7.249,4.345],[2.665,19.562],[-2.352,3.721],[18.459,17.498],[-1.176,5.761],[20.643,11.161],[0.12,0.024],[0,0]],"o":[[0.072,10.129],[-0.576,0.361],[0.24,0.36],[0.216,0],[11.018,-6.937],[18.987,10.682],[-1.104,5.305],[-0.432,0.648],[-4.969,5.856],[-0.648,0.072],[0.048,0.624],[0,0],[9.025,-0.792],[18.17,17.186],[-1.992,3.097],[-0.696,0.576],[-9.193,6.456],[-0.576,-0.335],[-0.336,0.576],[6.721,3.792],[6.721,0],[2.473,21.506],[-7.657,4.609],[-0.816,-0.024],[-7.777,-1.009],[-0.504,-0.456],[-0.456,0.48],[6.457,5.904],[-4.873,12.721],[-8.137,0.36],[-0.864,-0.456],[-8.113,-5.041],[-0.192,-0.624],[-0.624,0.192],[3.336,10.49],[-15.41,5.833],[-5.641,-3.888],[-0.504,-0.888],[-3.889,-7.8],[0.048,-0.648],[-0.6,-0.048],[-0.696,9.097],[-12.673,-3.72],[-4.632,-10.441],[0.24,-0.889],[1.344,-3.696],[0.432,-0.504],[-0.505,-0.432],[-2.28,2.736],[0,0],[-3.481,10.658],[0.48,1.081],[0,0],[6.481,12.409],[3.6,6.865],[8.377,5.76],[6.913,0],[6.433,3.769],[0.816,0],[18.53,-0.84],[1.08,0.096],[7.681,0],[16.658,-10.009],[3.529,-2.713],[9.962,-15.625],[3.073,-4.129],[3.361,-16.226],[-0.096,-0.048],[0,0],[0,0]],"v":[[78.321,-105.673],[62.431,-77.757],[62.047,-76.101],[63.055,-75.525],[63.703,-75.716],[80.577,-102.241],[101.748,-55.314],[95.819,-41.536],[94.331,-39.664],[73.953,-29.464],[72.873,-28.143],[74.049,-27.064],[74.169,-27.064],[96.155,-38.057],[104.652,15.301],[97.331,23.607],[95.195,25.263],[59.599,25.886],[57.967,26.344],[58.399,27.975],[77.577,33.399],[95.579,27.927],[74.169,72.188],[50.118,78.237],[47.67,78.021],[26.283,67.987],[24.579,68.06],[24.651,69.764],[46.902,80.373],[9.817,103.32],[-12.122,98.783],[-14.666,97.319],[-32.26,73.652],[-33.772,72.884],[-34.54,74.372],[-17.402,98.423],[-62.311,93.574],[-75.873,78.909],[-77.313,76.196],[-82.234,50.009],[-83.338,48.737],[-84.634,49.841],[-80.338,75.404],[-108.709,50.009],[-111.277,18.206],[-110.437,15.589],[-104.796,5.604],[-104.964,3.925],[-106.645,4.068],[-112.141,13.333],[-113.149,16.045],[-110.917,50.969],[-109.381,54.138],[-109.357,54.162],[-78.969,78.261],[-63.68,95.543],[-35.596,104.232],[-14.882,100.007],[7.465,105.768],[9.913,105.72],[49.374,80.613],[52.614,80.757],[75.393,74.253],[97.787,26.367],[106.668,16.597],[97.643,-39.905],[104.1,-54.811],[81.033,-104.736],[80.721,-104.856],[80.721,-105.768]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[459.568,296.624]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[8.521,-6.097],[-0.456,-0.672],[-5.137,9.457],[0,0],[0.6,2.569],[0.504,0.072],[0.216,-0.456],[3.217,-1.32],[-2.112,11.425],[-17.546,12.337],[0.144,0.504],[0.504,0.049],[3.745,-3.36],[-16.082,6.193],[0.072,0],[2.329,-0.456],[5.833,-15.17],[-0.577,-0.264],[-0.312,0.552],[-11.138,0.72],[2.976,-16.081],[7.849,-4.393],[-0.097,-0.504],[-0.528,-0.048],[-7.057,10.921],[3.936,-9.241]],"o":[[-4.777,7.729],[0.456,0.648],[10.321,-7.393],[0,0],[5.041,-12.77],[-0.12,-0.48],[-0.504,-0.048],[-3.673,7.513],[5.569,-5.953],[3.241,-17.402],[0.408,-0.288],[-0.12,-0.48],[-7.945,-0.768],[7.201,-16.898],[-0.072,0.024],[-2.424,0.336],[-15.937,10.729],[-0.216,0.576],[0.576,0.264],[0.24,-0.456],[-15.962,13.009],[-2.472,13.226],[-0.456,0.264],[0.12,0.528],[0.408,0.024],[-0.505,4.993],[0,0]],"v":[[-16.586,61.831],[-36.316,83.266],[-34.972,85.234],[-12.145,58.807],[-7.297,48.342],[-1.68,22.178],[-2.712,21.266],[-3.936,21.938],[-15.218,33.964],[-5.641,6.457],[18.818,-43.013],[19.274,-44.309],[18.242,-45.198],[0.696,-39.197],[36.316,-85.234],[36.124,-85.186],[28.971,-84.01],[-4.393,-33.028],[-3.768,-31.516],[-2.208,-32.02],[14.642,-42.869],[-7.993,6.024],[-20.426,35.068],[-21.026,36.364],[-19.946,37.324],[-4.032,27.003],[-10.249,49.614]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[607.473,102.91]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-5.377,8.269],[7.777,-8.077],[4.752,-8.269],[-7.777,7.429]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[87.452,170.369]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[9.32,10.146]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-10.376,-12.27],[8.8,12.461],[10.376,10.545],[-7.352,-12.461]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[560.05,174.562]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0],[-1.705,0],[-31.923,34.204],[0.384,0.793],[48.534,1.464],[0,0],[0.792,0.048],[14.353,20.354],[0.48,-0.12],[0.072,-0.48],[-4.057,-7.56],[6.169,6.097],[0.576,0.6],[-14.858,35.476],[0.336,0.336],[0.456,-0.192],[2.497,-3.913],[-20.235,30.243],[-0.432,0.648],[-2.16,2.904],[0.816,0.289],[1.945,-2.856],[0.456,-0.672],[8.161,-47.814],[-0.576,-0.192],[-0.264,0.552],[-4.92,4.441],[-50.31,-51.534],[0,0],[-10.273,-6.937],[-0.384,0.456],[0.408,0.456],[0.216,3.433],[-34.492,-1.56]],"o":[[0,0],[1.68,0.072],[47.141,0],[-0.384,-0.744],[-32.62,35.333],[0,0],[-0.816,-0.024],[-35.38,-1.608],[-0.289,-0.408],[-0.456,0.096],[-0.072,0.312],[-7.681,-5.568],[-0.6,-0.576],[-51.63,-52.47],[0.192,-0.432],[-0.36,-0.36],[-3.769,1.632],[8.473,-44.237],[0.432,-0.672],[2.088,-3.049],[-0.792,-0.264],[-2.016,2.737],[-0.456,0.649],[-21.458,32.091],[-0.096,0.6],[0.576,0.168],[0.048,-0.096],[-13.609,36.868],[0,0],[7.849,7.824],[0.504,0.336],[0.408,-0.456],[-4.968,-5.617],[15.457,19.37],[0,0]],"v":[[13.634,156.295],[13.898,156.295],[18.962,156.391],[143.465,102.361],[142.312,100.08],[13.97,153.895],[13.729,153.895],[11.329,153.775],[-67.927,118.827],[-69.176,118.347],[-70.089,119.307],[-67.184,133.588],[-87.922,116.042],[-89.674,114.29],[-126.23,-42.089],[-126.495,-43.384],[-127.814,-43.648],[-137.632,-33.519],[-93.227,-144.652],[-91.906,-146.644],[-85.547,-155.549],[-87.947,-156.39],[-93.875,-148.013],[-95.219,-146.044],[-141.28,-26.846],[-140.44,-25.478],[-139,-26.126],[-129.855,-39.424],[-91.835,115.538],[-90.082,117.291],[-62.935,139.493],[-61.375,139.277],[-61.375,137.693],[-67.807,122.979],[11.233,156.175]],"c":false}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[167.621,334.188]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-15.433,19.37],[4.992,-5.617],[-0.408,-0.456],[-0.48,0.336],[-7.849,7.824],[0,0],[13.609,36.868],[-0.048,-0.096],[-0.576,0.168],[0.096,0.6],[21.458,32.091],[0.457,0.649],[2.016,2.737],[-2.064,-3.049],[-0.432,-0.672],[-8.473,-44.237],[3.769,1.632],[0.36,-0.36],[-0.192,-0.432],[51.63,-52.47],[0.6,-0.576],[7.681,-5.568],[0.072,0.312],[0.48,0.096],[0.288,-0.408],[35.38,-1.608],[0.816,-0.024],[0,0],[32.644,35.548],[0.385,-0.744],[-47.309,0],[-1.68,0.048],[0,0]],"o":[[34.492,-1.56],[-0.216,3.433],[-0.408,0.456],[0.384,0.456],[10.273,-6.937],[0,0],[50.31,-51.534],[4.92,4.441],[0.264,0.552],[0.552,-0.192],[-8.161,-47.814],[-0.456,-0.672],[-1.944,-2.856],[-0.816,0.289],[0.432,0.648],[20.211,30.243],[-2.497,-3.913],[-0.456,-0.192],[-0.336,0.336],[14.858,35.476],[-0.576,0.6],[-6.169,6.097],[4.081,-7.56],[-0.072,-0.48],[-0.481,-0.096],[-14.353,20.354],[-0.792,0.048],[0,0],[-48.678,1.488],[-0.384,0.792],[31.924,34.42],[1.704,0],[0,0],[0,0]],"v":[[-11.065,156.175],[67.976,122.979],[61.544,137.693],[61.544,139.277],[63.104,139.493],[90.251,117.291],[92.003,115.538],[130.024,-39.424],[139.169,-26.126],[140.633,-25.478],[141.449,-26.846],[95.388,-146.044],[94.043,-148.013],[88.115,-156.39],[92.075,-146.644],[93.395,-144.676],[137.801,-33.519],[127.983,-43.648],[126.663,-43.384],[126.399,-42.089],[89.843,114.29],[88.091,116.042],[67.352,133.588],[70.257,119.307],[69.345,118.347],[68.096,118.827],[-11.161,153.775],[-13.561,153.895],[-13.801,153.895],[-142.48,99.721],[-143.633,102.001],[-18.794,156.391],[-13.729,156.295],[-13.465,156.295]],"c":false}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[477.113,334.188]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[22.803,-21.482],[15.698,10.513],[-0.24,-0.264],[-0.456,0.192],[0,0.48],[13.538,4.849],[-0.12,-0.072],[-0.408,0.336],[0.24,0.504],[68.168,12.29],[-9.529,-10.105],[-0.48,0.288],[0.143,0.552],[4.105,3.601],[-7.009,-17.594]],"o":[[-1.416,-11.089],[9.625,-0.192],[0.336,0.336],[0.432,-0.192],[0,-6.601],[12.098,-2.496],[0.432,0.336],[0.408,-0.36],[-0.264,-0.504],[71.792,-12.049],[0.384,0.408],[0.481,-0.264],[-2.929,-10.441],[30.7,8.329],[-25.587,12.481]],"v":[[-210.468,60.066],[-232.792,18.541],[-217.405,23.966],[-216.085,24.23],[-215.34,23.126],[-241.744,-4.598],[-219.229,0.107],[-217.766,0.059],[-217.477,-1.405],[-314.089,-64.844],[-182.673,-18.375],[-181.21,-18.159],[-180.632,-19.527],[-193.283,-40.074],[-136.803,9.564]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[-30.603,8.065],[2.952,-10.441],[-0.48,-0.264],[-0.384,0.408],[-71.792,-12.049],[0.264,-0.504],[-0.408,-0.36],[-0.456,0.336],[-12.073,-2.496],[0,-6.601],[-0.456,-0.192],[-0.336,0.336],[-9.697,-0.24],[1.417,-11.089],[25.683,12.482]],"o":[[-4.128,3.625],[-0.144,0.552],[0.48,0.288],[9.529,-10.105],[-68.192,12.29],[-0.24,0.504],[0.432,0.36],[0.096,-0.072],[-13.514,4.849],[0,0.48],[0.432,0.192],[0.264,-0.264],[-15.698,10.513],[-22.874,-21.555],[6.768,-19.658]],"v":[[193.307,-40.098],[180.633,-19.527],[181.21,-18.159],[182.674,-18.375],[314.089,-64.844],[217.478,-1.405],[217.766,0.059],[219.253,0.107],[241.745,-4.598],[215.341,23.126],[216.109,24.23],[217.406,23.966],[232.792,18.541],[210.469,60.066],[136.516,9.42]],"c":true}},"nm":"P"},{"ind":2,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.721,-0.384],[-22.946,-21.938],[-0.745,-0.744],[-4.776,-5.497],[-1.032,0.072],[6.072,5.857],[-18.099,9.769],[0.096,0.504],[0.505,0.072],[3.385,-2.16],[-12.074,1.968],[-0.048,0.552],[0.504,0.216],[5.16,-2.448],[-55.662,10.225],[-2.424,0.336],[-0.072,0.024],[-0.024,0.024],[0,0],[-0.024,0.024],[0,0],[-0.073,0.096],[-0.024,0.072],[-0.024,0.097],[0.024,0.168],[0,0],[0.047,0.072],[0.025,0.024],[0,0],[0.024,0.048],[0.049,0.072],[0.048,0.048],[0.096,0.048],[0.048,0],[0.024,0],[16.082,-15.577],[-0.096,0.048],[0.216,0.576],[0.576,-0.12],[7.512,-21.482],[35.548,0],[49.062,-23.451],[37.229,7.321],[0.192,-0.552],[-0.528,-0.264],[-5.281,-12.745],[69.752,-15.097],[0.024,0],[0.072,-0.048],[0.048,-0.096],[0.024,-0.048],[0.024,-0.048],[0,-0.12],[0,-0.072],[-0.048,-0.143],[-0.048,-0.047],[-0.072,-0.072],[-0.12,-0.048],[-0.024,0],[-0.144,-0.024],[-2.329,-0.456],[-7.993,-11.953],[10.081,-3.912],[-0.048,-0.529],[-0.552,-0.072],[-3.288,-7.465],[8.569,-1.392],[0.072,-0.528],[-0.432,-0.24],[-1.152,-10.657],[5.64,-6.6],[-0.984,-0.072],[-5.113,4.968],[-0.744,0.696],[-25.827,12.602],[-0.72,0.312],[-35.38,0],[-48.677,-23.307]],"o":[[25.875,12.602],[0.745,0.72],[5.088,4.968],[0.984,-0.072],[-5.641,-6.576],[1.128,-10.633],[0.455,-0.24],[-0.072,-0.528],[-8.569,-1.392],[3.313,-7.465],[0.552,-0.072],[0.048,-0.529],[-10.082,-3.912],[7.993,-11.953],[2.329,-0.456],[0.072,0],[0.024,0],[0,0],[0.048,-0.024],[0.024,0],[0.096,-0.048],[0.048,-0.048],[0.071,-0.096],[0.047,-0.143],[0,0],[0,-0.072],[0.024,-0.072],[0,-0.024],[-0.023,-0.048],[-0.049,-0.072],[-0.048,-0.024],[-0.072,-0.048],[-0.024,0],[-0.024,-0.024],[-69.728,-15.097],[5.281,-12.697],[0.528,-0.264],[-0.192,-0.552],[-34.756,6.841],[-48.942,-23.355],[-35.621,0],[-7.081,-17.642],[-0.6,-0.12],[-0.192,0.576],[0.096,0.048],[-16.082,-15.577],[-0.024,0],[-0.072,0.024],[-0.12,0.048],[-0.024,0.024],[-0.024,0.024],[-0.072,0.096],[-0.048,0.072],[-0.024,0.168],[0.024,0.072],[0.024,0.096],[0.072,0.096],[0.024,0.024],[0.12,0.073],[2.424,0.336],[55.638,10.201],[-5.161,-2.448],[-0.504,0.216],[0.048,0.552],[12.073,1.968],[-3.36,-2.16],[-0.504,0.072],[-0.096,0.504],[18.098,9.769],[-6.073,5.857],[1.032,0.072],[4.777,-5.497],[0.744,-0.744],[22.899,-21.914],[0.72,-0.36],[48.726,-23.379],[35.332,0],[0.745,0.312]],"v":[[135.797,11.748],[210.156,63.114],[212.414,65.299],[227.223,81.021],[230.247,80.828],[212.654,62.178],[237.112,18.757],[237.711,17.509],[236.728,16.525],[218.581,20.029],[246.378,-3.349],[247.385,-4.405],[246.617,-5.654],[222.039,-4.19],[313.992,-62.372],[321.146,-63.547],[321.338,-63.596],[321.385,-63.619],[321.409,-63.619],[321.529,-63.692],[321.578,-63.717],[321.842,-63.909],[321.987,-64.101],[322.13,-64.389],[322.177,-64.844],[322.177,-64.868],[322.107,-65.085],[322.081,-65.228],[322.057,-65.276],[321.987,-65.396],[321.818,-65.613],[321.698,-65.708],[321.433,-65.853],[321.338,-65.877],[321.242,-65.925],[184.641,-23.776],[199.427,-41.538],[200.003,-43.002],[198.659,-43.77],[134.357,8.364],[0.013,-23.56],[-134.667,8.508],[-198.635,-43.77],[-200.003,-43.002],[-199.427,-41.538],[-184.641,-23.776],[-321.241,-65.925],[-321.313,-65.9],[-321.529,-65.805],[-321.817,-65.588],[-321.913,-65.493],[-321.985,-65.396],[-322.105,-65.085],[-322.177,-64.844],[-322.129,-64.389],[-322.033,-64.197],[-321.889,-63.957],[-321.577,-63.717],[-321.529,-63.692],[-321.145,-63.547],[-313.992,-62.372],[-222.037,-4.19],[-246.616,-5.654],[-247.384,-4.405],[-246.376,-3.349],[-218.581,20.029],[-236.727,16.525],[-237.711,17.509],[-237.111,18.757],[-212.628,62.154],[-230.246,80.828],[-227.223,81.021],[-212.388,65.299],[-210.156,63.138],[-135.939,11.82],[-133.779,10.788],[0.013,-21.16],[133.588,10.692]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[322.451,81.272]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[7.153,-14.834],[0.384,-0.744],[1.512,0],[3.96,7.801],[0.385,0.792],[0,19.01],[-10.922,0],[0,-30.363]],"o":[[-0.384,0.816],[-4.009,7.993],[-1.848,0],[-0.384,-0.744],[-7.128,-14.762],[0,-30.363],[10.897,0],[0,18.65]],"v":[[10.285,37.396],[9.133,39.724],[0.012,52.854],[-9.445,40.06],[-10.598,37.757],[-25.431,-18.987],[0.012,-52.854],[25.431,-18.987]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[0.193,0.359],[11.113,0],[4.44,-8.521],[0.168,-0.36],[0,-9.289],[-7.801,-15.914],[-0.384,-0.745],[-3.073,0],[-4.224,8.161],[-0.384,0.792],[0,18.002],[2.665,5.688]],"o":[[-4.44,-8.521],[-11.138,0],[-0.192,0.359],[-2.664,5.688],[0,17.954],[0.384,0.792],[4.177,7.944],[2.688,0],[0.384,-0.744],[7.801,-15.866],[0,-9.289],[-0.191,-0.36]],"v":[[23.294,-42.557],[0.012,-55.255],[-23.295,-42.557],[-23.847,-41.453],[-27.831,-18.987],[-12.518,39.845],[-11.366,42.125],[0.012,55.255],[11.029,41.765],[12.181,39.484],[27.831,-18.987],[23.846,-41.453]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.839,0.514,0.047,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[322.452,394.424]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.209,-1.118],[-2.045,-0.056],[1.999,1.125]],"o":[[1.94,0.189],[-1.702,-1.336],[-0.097,1.121]],"v":[[-2.99,1.497],[2.99,1.862],[-2.526,-1.862]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[542.672,196.246]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[7.297,2.76],[-7.018,-1.915],[0.51,0.651],[-3.721,-0.976],[0,0],[-0.203,-0.135],[-4.113,-0.513],[0.016,2.171],[0.648,0]],"o":[[2.359,3.018],[-0.708,-0.74],[2.668,1.009],[0,0],[0.25,0],[3.448,0.871],[0.428,-2.173],[-0.648,0.024],[-13.61,0]],"v":[[-17.278,-6.316],[-3.442,2.993],[-5.277,0.886],[4.379,3.957],[4.565,3.957],[5.255,4.176],[16.641,6.316],[17.262,-0.218],[15.318,-0.194]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[520.627,191.171]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[13.546,-0.058],[0,0],[1.65,-0.002],[4.944,-0.12],[-1.412,-0.696],[-0.604,-0.321],[-0.643,-0.363],[-1.677,-1.129],[0,-26.559],[42.413,0],[0,42.413],[-0.264,2.52],[1.53,-1.79],[0.227,-0.27],[1.326,-1.677],[0,0],[0,0],[3.414,-5.732],[-0.377,-1.19],[-4.626,4.963],[-43.423,0],[0,47.576],[17.273,15.79],[-7.11,2.886],[-0.61,1.644],[3.259,1.811]],"o":[[0,0],[-1.603,0.007],[-4.825,0],[1.458,0.61],[0.614,0.306],[0.655,0.345],[1.762,1.003],[20.541,13.827],[0,42.413],[-42.413,0],[0,-2.593],[-1.665,1.807],[-0.231,0.271],[-1.451,1.715],[-0.001,0.001],[0,0],[-5.94,7.513],[0.28,1.279],[4.145,-4.956],[5.959,41.803],[47.576,0],[0,-25.184],[13.545,-0.024],[0.92,-1.573],[-5.056,-0.1],[-6.285,3.493]],"v":[[53.14,-76.604],[53.139,-76.605],[48.265,-76.592],[33.551,-76.448],[37.843,-74.464],[39.671,-73.526],[41.609,-72.451],[46.779,-69.266],[80.884,-5.447],[3.955,71.482],[-72.974,-5.447],[-72.59,-13.128],[-77.359,-7.733],[-78.04,-6.925],[-82.207,-1.837],[-82.208,-1.835],[-82.209,-1.835],[-97.043,19.102],[-95.726,22.408],[-78.706,9.949],[3.979,80.542],[90.266,-5.745],[62.112,-69.396],[94.738,-72.454],[97.043,-77.285],[84.621,-80.542]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[438.882,278.777]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.091,0.216],[-0.48,0],[0,0],[-3.121,3.96],[13.561,0],[0,0],[-0.492,-2.324],[-3.361,0.648]],"o":[[0.192,-0.432],[0,0],[11.234,0],[-7.273,2.76],[0,0],[-0.017,2.324],[3.819,-0.271],[-0.036,-0.22]],"v":[[-5.656,4.437],[-4.528,3.717],[-3.856,3.717],[17.243,-6.532],[-15.281,-0.436],[-17.225,-0.46],[-16.514,6.532],[-5.727,5.105]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[124.24,191.412]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.71,-1.345],[0,0],[0,0],[-1.165,0.049],[0.106,1.23]],"o":[[0,0],[0,0],[1.196,0],[-0.242,-1.226],[-2.01,1.13]],"v":[[-3.032,1.848],[-2.433,1.872],[-0.489,1.896],[3.032,1.791],[2.511,-1.896]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[102.246,196.281]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-6.705,40.946],[-4.533,-4.864],[-0.233,1.068],[7.934,9.395],[0.232,0.272],[1.667,1.813],[0,-2.592],[0.05,-1.136],[0.094,-1.084],[40.157,0],[0,42.413],[-20.613,13.816],[-1.744,0.992],[-0.631,0.332],[-0.616,0.306],[-1.453,0.608],[4.825,0],[1.596,0.007],[0,0],[6.623,2.46],[4.177,0],[0,0],[0.192,-0.432],[-0.36,-0.336],[-14.906,-0.101],[0,-25.193],[-47.576,0]],"o":[[4.538,3.822],[0.301,-1.007],[-4.172,-7.006],[-0.229,-0.272],[-1.533,-1.796],[0.264,2.521],[0,1.148],[-0.054,1.095],[-3.406,39.289],[-42.413,0],[0,-26.613],[1.662,-1.114],[0.62,-0.349],[0.606,-0.323],[1.406,-0.693],[-4.921,-0.144],[-1.642,-0.002],[0,0],[-11.936,-0.053],[-2.98,1.295],[0,0],[-0.48,0],[-0.192,0.456],[5.033,5.054],[-17.284,15.79],[0,47.576],[42.813,0]],"v":[[80.438,7.682],[94.744,21.012],[95.555,17.903],[77.325,-7.48],[76.64,-8.295],[71.864,-13.709],[72.248,-6.004],[72.162,-2.579],[71.939,0.689],[-4.681,70.926],[-81.61,-6.004],[-47.375,-69.907],[-42.255,-73.051],[-40.387,-74.087],[-38.552,-75.027],[-34.276,-77.003],[-48.99,-77.147],[-53.841,-77.16],[-53.841,-77.16],[-82.853,-79.986],[-93.563,-77.819],[-94.235,-77.819],[-95.363,-77.1],[-95.099,-75.779],[-62.796,-69.967],[-90.968,-6.301],[-4.681,79.986]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[206.746,280.149]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.264,-0.504],[0.408,-0.36],[0.432,0.336],[12.098,-2.497],[0,-6.601],[0.432,-0.192],[0.336,0.336],[9.626,-0.192],[-1.416,-11.089],[-14.889,9.478],[18.115,1.189]],"o":[[0.24,0.504],[-0.408,0.336],[-0.12,-0.072],[13.538,4.848],[0,0.48],[-0.456,0.192],[-0.24,-0.264],[15.698,10.514],[13.589,-12.803],[-36.526,-72.901],[68.168,12.29]],"v":[[23.323,0.984],[23.035,2.448],[21.571,2.496],[-0.944,-2.208],[25.459,25.515],[24.715,26.619],[23.395,26.355],[8.009,20.93],[30.332,62.455],[73.288,29.165],[-73.288,-62.455]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[81.651,78.882]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-19.514,-18.388],[-15.698,10.513],[0.264,-0.264],[0.432,0.192],[0,0.48],[-13.514,4.849],[0.096,-0.072],[0.432,0.36],[-0.24,0.504],[-68.192,12.29],[0,0],[0,0],[1.9,-6.154],[0,0]],"o":[[1.416,-11.089],[-9.698,-0.24],[-0.336,0.336],[-0.456,-0.192],[0,-6.601],[-12.074,-2.496],[-0.456,0.336],[-0.408,-0.36],[0.264,-0.504],[-86.866,-1.913],[-7.122,-10.724],[-17.532,8.492],[0,0],[21.797,11.698]],"v":[[-20.474,63.412],[1.849,21.887],[-13.538,27.312],[-14.833,27.576],[-15.602,26.472],[10.801,-1.252],[-11.69,3.453],[-13.177,3.405],[-13.466,1.941],[83.146,-61.499],[-56.375,12.574],[-55.005,-12.943],[-83.146,18.54],[-83.14,18.565]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[553.395,77.926]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.961,0.587],[6.841,12.244],[-6.52,-4.051],[-0.864,-0.456],[-8.137,0.36],[-4.872,12.722]],"o":[[-21.924,30.79],[3.548,7.677],[0.84,0.528],[6.361,3.313],[17.306,-0.792],[-2.022,-0.288]],"v":[[32.438,-15.395],[-38.419,-14.913],[-23.148,2.864],[-20.604,4.328],[1.335,8.865],[38.419,-14.082]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[468.05,391.079]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0.261,6.055],[-3.453,-6.926],[-0.504,-0.888],[-5.64,-3.889],[-15.41,5.833],[1.976,2.077]],"o":[[-49.507,2.443],[-0.15,8.259],[0.456,0.912],[3.36,5.785],[13.01,8.953],[-2.33,-1.595],[0,0]],"v":[[26.054,14.151],[-32.411,-25.549],[-27.351,-2.51],[-25.911,0.202],[-12.349,14.868],[32.56,19.716],[26.115,14.172]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[409.606,375.331]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.158,7.67],[0.672,-1.848],[0.24,-0.888],[-4.633,-10.441],[-12.673,-3.72],[0.72,4.407]],"o":[[-0.939,1.671],[-0.312,0.841],[-2.833,9.793],[5.665,12.818],[-1.772,-3.963],[-27.294,-10.514]],"v":[[-10.798,-32.552],[-13.213,-27.263],[-14.053,-24.646],[-11.485,7.157],[16.886,32.552],[13.135,19.951]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[362.344,339.477]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-4.23,14.82],[3.225,2.114],[-12.001,-7.201],[-8.041,0.528],[-0.815,0.096],[-4.805,3.009]],"o":[[-3.893,-0.91],[-2.472,21.482],[7.657,4.584],[0.816,-0.024],[5.459,-0.707],[-33.876,14.675]],"v":[[-19.767,-24.947],[-30.486,-29.58],[-9.052,14.681],[14.975,20.729],[17.423,20.513],[32.958,14.905]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[120.242,354.132]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-8.831,1.519],[-13.43,10.101],[2.007,2.367],[-9.145,-14.329],[-2.881,-2.352],[-0.72,-0.528]],"o":[[-38.649,-3.332],[-2.593,-1.65],[-18.194,17.162],[1.968,3.096],[0.672,0.576],[6.32,4.439]],"v":[[21.118,33.513],[3.998,-28.988],[-2.924,-35.032],[-11.421,18.326],[-4.1,26.631],[-1.988,28.287]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[92.128,293.6]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-2.808,-3.84],[-0.552,-0.6],[-7.649,-1.031],[-7.031,2.176],[0.262,3.052],[-3.144,-15.169]],"o":[[0.432,0.648],[4.638,5.467],[-32.245,-22.214],[-1.134,-2.973],[-18.986,10.681],[1.104,5.305]],"v":[[-4.104,24.422],[-2.617,26.294],[16.122,36.28],[13.204,-27.198],[11.137,-36.28],[-10.034,10.645]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[93.621,230.665]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[7.993,-11.953],[-10.081,-3.913],[0.048,-0.528],[0.552,-0.072],[3.312,-7.465],[-8.569,-1.392],[-0.072,-0.527],[0.456,-0.24],[1.128,-10.633],[-3.522,-3.806],[0,0],[0,0],[-36.289,17.392]],"o":[[5.16,-2.448],[0.504,0.216],[-0.048,0.552],[-12.074,1.968],[3.384,-2.161],[0.504,0.073],[0.096,0.505],[-18.099,9.769],[3.672,3.542],[32.814,-18.664],[-10.242,6.532],[10.619,-36.694],[-55.663,10.225]],"v":[[-41.285,-9.626],[-16.706,-11.09],[-15.938,-9.841],[-16.946,-8.785],[-44.741,14.594],[-26.595,11.089],[-25.611,12.073],[-26.211,13.322],[-50.67,56.743],[-39.901,67.809],[7.687,-8.781],[-4.701,3.793],[50.67,-67.809]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[585.775,86.708]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[5.252,1.364],[-20.184,-14.086],[10.486,12.766],[-10.017,-10.803],[-0.935,1.146],[-6.073,5.856],[18.098,9.769],[-0.096,0.504],[-0.504,0.072],[-3.36,-2.161],[12.074,1.968],[0.048,0.552],[-0.504,0.216],[-5.161,-2.448],[41.732,14.091],[-6.122,-37.33]],"o":[[0,0],[0,0],[0,0],[0.443,-0.359],[5.64,-6.601],[-1.152,-10.658],[-0.432,-0.241],[0.072,-0.528],[8.569,-1.392],[-3.288,-7.465],[-0.552,-0.072],[-0.048,-0.528],[10.081,-3.913],[-6.903,-10.324],[12.867,7.028],[0,0]],"v":[[-10.617,-23.158],[23.692,53.467],[3.124,43.438],[16.103,72.995],[22.506,64.737],[40.065,46.032],[15.582,2.635],[14.982,1.386],[15.966,0.403],[34.112,3.907],[6.317,-19.471],[5.309,-20.528],[6.077,-21.776],[30.656,-20.312],[-40.065,-72.995],[2.459,-11.174]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[69.758,97.394]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.825,-0.047],[0.032,-0.002],[0.086,-0.005],[0,0],[0,0],[1.058,0]],"o":[[-0.032,0.002],[-0.086,0.005],[0,0],[0,0],[-1.111,-0.088],[-0.795,0]],"v":[[-2.676,-46.245],[-2.773,-46.239],[-3.033,-46.215],[-0.737,46.313],[3.033,-46.162],[-0.242,-46.313]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[322.706,387.882]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[5.94,4.25],[0,0],[11.174,-9.328],[-7.681,24.225],[0,0],[0,-11.188],[-7.129,-14.762],[-0.384,-0.744],[-1.848,0],[-4.008,7.993],[-0.384,0.816],[0,18.651]],"o":[[0,0],[8.929,7.402],[-4.576,3.82],[0,0],[-3.037,5.063],[0,19.011],[0.384,0.792],[3.961,7.801],[1.513,0],[0.385,-0.744],[7.152,-14.834],[0,-17.039]],"v":[[16.118,-50.855],[16.118,-50.855],[1.2,37.605],[-18.95,-45.212],[-19.218,-44.77],[-24.231,-20.986],[-9.397,35.757],[-8.245,38.061],[1.212,50.855],[10.333,37.725],[11.486,35.397],[26.631,-20.986]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.922,0.639,0.231,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[321.251,396.423]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-5.545,10.585],[0,0.024]],"o":[[3.6,-13.082],[0.024,-0.024],[0,0]],"v":[[-6.961,17.75],[6.913,-17.678],[6.961,-17.75]],"c":false}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[345.962,266.117]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[5.089,4.969],[0.744,0.72],[25.875,12.601],[0.744,0.312],[35.332,0],[48.725,-23.379],[0.721,-0.36],[22.898,-21.915],[0.744,-0.744],[4.776,-5.497],[-3.241,0],[-4.44,0.288],[-0.624,0.048],[0.312,0.216],[2.04,5.232],[-0.312,0.337],[-0.144,0.072],[-0.096,0.024],[0,0],[-0.264,-0.456],[-6.84,-1.704],[-1.584,-0.312],[-5.809,-0.912],[-13.513,-9.578],[9.602,4.2],[-0.216,0.6],[-0.623,-0.168],[-32.164,-61.639],[-0.024,-0.024],[-3.6,-13.081],[-1.296,-9.745],[0,-0.119],[0.624,-0.048],[0.048,0],[0.072,0.601],[0,0],[3.073,5.473],[2.4,-3.097],[5.065,-11.498],[0.528,-1.032],[0,-0.024],[13.201,-3.265],[6.529,-4.489],[9.985,0],[6.793,2.833],[8.328,0],[0.816,0.048],[4.992,13.898],[1.08,0],[7.248,4.345],[-2.688,19.562],[2.376,3.696],[-18.458,17.522],[1.2,5.737],[-20.642,11.162],[-0.096,0.024],[0,0],[2.905,0.696],[-0.048,0.6],[-0.6,0],[-2.712,1.345],[-0.216,0.12],[0.216,0.024],[9.625,3.216],[2.089,-3.049],[0.432,-0.672],[8.473,-44.237],[-3.768,1.632],[-0.36,-0.36],[0.192,-0.432],[-51.63,-52.47],[-0.6,-0.576],[-7.681,-5.569],[-0.072,0.312],[-0.456,0.096],[-0.288,-0.408],[-35.381,-1.608],[-0.816,-0.024],[0,0],[-32.62,35.332],[0,17.954],[-2.665,5.689],[-0.192,0.36],[-11.137,0],[-4.44,-8.521],[-0.192,-0.36],[0,-9.289],[7.801,-15.866],[-48.678,1.488],[0,0],[-0.792,0.048],[-14.353,20.354],[-0.48,-0.096],[-0.072,-0.48],[4.081,-7.561],[-6.169,6.096],[-0.576,0.601],[14.858,35.476],[-0.336,0.336],[-0.456,-0.192],[-2.497,-3.912],[20.211,30.244],[0.432,0.648],[2.184,2.904],[5.712,-0.336],[0.192,0],[-0.264,-0.121],[-6.576,-0.096],[-0.072,-0.6],[0.577,-0.12],[4.536,-0.24],[0,0],[-0.096,-0.048],[3.36,-16.226],[3.072,-4.129],[9.961,-15.626],[3.528,-2.713],[16.658,-10.009],[7.681,0],[1.08,0.096],[18.53,-0.84],[0.816,0],[6.432,3.769],[6.913,0],[8.377,5.76],[3.601,6.865],[6.48,12.41],[0,0],[0.479,1.08],[-3.48,10.657],[1.297,4.465]],"o":[[-4.776,-5.497],[-0.744,-0.744],[-22.947,-21.939],[-0.72,-0.384],[-48.678,-23.307],[-35.38,0],[-0.72,0.312],[-25.827,12.601],[-0.744,0.696],[-5.113,4.969],[3.6,0.168],[4.393,0],[0.601,-0.024],[-0.312,-0.168],[-2.929,-1.92],[-0.168,-0.432],[0.096,-0.096],[0.072,-0.024],[0,0],[0.48,-0.096],[1.968,3.241],[1.441,0.36],[4.897,1.033],[18.554,2.928],[-1.44,-3.529],[-0.576,-0.264],[0.216,-0.6],[14.21,4.368],[0,0.024],[5.544,10.585],[2.377,8.569],[0.024,0.145],[0.048,0.648],[-0.048,0.024],[-0.6,0],[0,0],[-0.24,-1.272],[-1.296,4.513],[3.48,10.657],[-0.48,1.08],[0,0.024],[-6.505,12.409],[-3.601,6.841],[-8.377,5.76],[-6.889,0],[-6.433,3.769],[-0.817,0],[-18.506,-0.84],[-1.081,0.072],[-7.705,0],[-16.658,-10.009],[-3.553,-2.713],[-9.961,-15.65],[-3.072,-4.129],[-3.36,-16.226],[0.096,-0.048],[0,0],[-7.321,-0.672],[-0.576,-0.12],[0.072,-0.6],[6.601,-0.096],[0.264,-0.096],[-0.192,0],[-5.737,-0.336],[-2.16,2.904],[-0.432,0.648],[-20.234,30.244],[2.496,-3.912],[0.456,-0.192],[0.336,0.336],[-14.857,35.476],[0.576,0.601],[6.169,6.096],[-4.056,-7.561],[0.072,-0.48],[0.48,-0.12],[14.354,20.354],[0.792,0.048],[0,0],[48.534,1.464],[-7.801,-15.914],[0,-9.289],[0.168,-0.36],[4.44,-8.521],[11.114,0],[0.192,0.36],[2.665,5.689],[0,18.002],[32.644,35.548],[0,0],[0.816,-0.024],[35.38,-1.608],[0.289,-0.408],[0.48,0.096],[0.072,0.312],[7.681,-5.569],[0.6,-0.576],[51.63,-52.47],[-0.192,-0.432],[0.36,-0.36],[3.769,1.632],[-8.473,-44.237],[-0.432,-0.672],[-2.064,-3.049],[-9.602,3.216],[-0.216,0.024],[0.216,0.12],[2.712,1.32],[0.601,0],[0.072,0.6],[-4.272,1.032],[0,0],[0.12,0.024],[20.642,11.162],[-1.176,5.761],[18.458,17.498],[-2.352,3.72],[2.664,19.562],[-7.248,4.345],[-1.08,0],[-4.968,13.898],[-0.817,0.048],[-8.329,0],[-6.769,2.833],[-9.985,0],[-6.529,-4.489],[-13.225,-3.241],[-0.024,0],[-0.552,-1.032],[-5.065,-11.498],[-2.376,-3.097],[0,0]],"v":[[227.223,-112.549],[212.412,-128.271],[210.156,-130.455],[135.796,-181.821],[133.587,-182.877],[0.012,-214.729],[-133.78,-182.781],[-135.94,-181.749],[-210.156,-130.431],[-212.388,-128.271],[-227.223,-112.549],[-216.926,-112.309],[-203.749,-112.717],[-201.9,-112.813],[-202.836,-113.389],[-211.189,-123.758],[-210.948,-125.007],[-210.589,-125.271],[-210.349,-125.367],[-210.324,-125.367],[-209.052,-124.815],[-195.18,-117.71],[-190.642,-116.702],[-174.392,-113.893],[-121.443,-98.099],[-136.253,-111.517],[-136.9,-113.029],[-135.413,-113.773],[-30.472,-26.475],[-30.423,-26.403],[-16.551,9.025],[-11.006,36.484],[-10.957,36.892],[-12.014,38.165],[-12.158,38.189],[-13.334,37.132],[-13.382,36.868],[-18.35,26.283],[-23.967,37.829],[-26.199,72.753],[-27.712,75.921],[-27.736,75.969],[-58.122,100.044],[-73.436,117.326],[-101.52,126.015],[-122.234,121.79],[-144.581,127.551],[-147.03,127.503],[-186.49,102.42],[-189.706,102.54],[-212.508,96.035],[-234.855,48.15],[-243.784,38.381],[-234.759,-18.146],[-241.216,-33.028],[-218.15,-82.954],[-217.837,-83.074],[-217.837,-83.986],[-231.064,-85.882],[-231.975,-87.178],[-230.799,-88.234],[-217.046,-91.091],[-216.349,-91.427],[-216.949,-91.475],[-240.376,-96.203],[-246.737,-87.298],[-248.057,-85.306],[-292.462,25.827],[-282.646,15.698],[-281.326,15.962],[-281.061,17.258],[-244.504,173.636],[-242.753,175.389],[-222.014,192.935],[-224.918,178.653],[-224.007,177.693],[-222.758,178.173],[-143.5,213.121],[-141.1,213.241],[-140.861,213.241],[-12.518,159.427],[-27.832,100.596],[-23.847,78.129],[-23.295,77.025],[0.012,64.328],[23.294,77.025],[23.846,78.129],[27.831,100.596],[12.181,159.067],[140.86,213.241],[141.1,213.241],[143.5,213.121],[222.757,178.173],[224.007,177.693],[224.918,178.653],[222.013,192.935],[242.752,175.389],[244.504,173.636],[281.06,17.258],[281.324,15.962],[282.645,15.698],[292.462,25.827],[248.056,-85.33],[246.736,-87.298],[240.376,-96.203],[216.973,-91.475],[216.349,-91.427],[217.069,-91.066],[230.798,-88.234],[231.975,-87.178],[231.062,-85.882],[217.837,-83.986],[217.837,-83.074],[218.149,-82.954],[241.216,-33.028],[234.759,-18.122],[243.784,38.381],[234.903,48.15],[212.508,96.035],[189.73,102.54],[186.489,102.396],[147.029,127.503],[144.58,127.551],[122.234,121.79],[101.52,126.015],[73.436,117.326],[58.146,100.044],[27.759,75.945],[27.736,75.921],[26.199,72.753],[23.966,37.829],[18.374,26.331]],"c":false}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[322.452,274.842]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-15.698,10.513],[0.264,-0.264],[0.432,0.192],[0,0.479],[-13.514,4.849],[0.096,-0.072],[0.432,0.36],[-0.24,0.504],[-68.191,12.289],[9.529,-10.106],[0.48,0.289],[-0.144,0.552],[-4.128,3.625],[6.769,-19.658],[-22.874,-21.555]],"o":[[-9.697,-0.24],[-0.336,0.337],[-0.456,-0.192],[0,-6.601],[-12.073,-2.496],[-0.457,0.336],[-0.408,-0.36],[0.264,-0.504],[-71.792,-12.049],[-0.384,0.408],[-0.48,-0.263],[2.952,-10.441],[-30.603,8.065],[25.683,12.481],[1.417,-11.09]],"v":[[7.489,26.955],[-7.897,32.379],[-9.193,32.644],[-9.961,31.54],[16.442,3.816],[-6.048,8.521],[-7.537,8.473],[-7.825,7.009],[88.786,-56.431],[-42.629,-9.961],[-44.093,-9.746],[-44.669,-11.114],[-31.996,-31.684],[-88.786,17.834],[-14.834,68.48]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[547.754,72.858]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.264,-0.504],[0.408,-0.36],[0.432,0.336],[12.098,-2.497],[0,-6.601],[0.432,-0.192],[0.336,0.336],[9.625,-0.192],[-1.416,-11.089],[-25.588,12.482],[30.699,8.329],[-2.928,-10.441],[0.48,-0.264],[0.384,0.408],[71.792,-12.049]],"o":[[0.24,0.504],[-0.408,0.336],[-0.12,-0.072],[13.538,4.848],[0,0.48],[-0.456,0.192],[-0.24,-0.264],[15.698,10.514],[22.802,-21.482],[-7.009,-17.594],[4.104,3.6],[0.144,0.552],[-0.48,0.288],[-9.529,-10.105],[68.168,12.29]],"v":[[7.969,7.009],[7.68,8.473],[6.217,8.521],[-16.299,3.817],[10.105,31.54],[9.361,32.644],[8.04,32.38],[-7.346,26.955],[14.977,68.48],[88.643,17.978],[32.163,-31.659],[44.813,-11.113],[44.236,-9.745],[42.773,-9.961],[-88.643,-56.431]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[97.006,72.858]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-6.361,3.336],[-0.84,0.504],[-3.36,10.537],[-0.624,-0.216],[0.216,-0.624],[7.85,-5.377],[-13.01,8.953],[-3.336,5.76],[-0.431,0.937],[0.72,9.409],[-0.648,0.048],[-0.048,-0.672],[3.432,-7.729],[-5.664,12.794],[2.832,9.817],[0.312,0.84],[2.4,2.905],[-0.528,0.408],[-0.408,-0.504],[-1.393,-3.384],[-1.008,4.608],[10.657,11.593],[0,-2.592],[42.413,0],[0,42.413],[-27.771,11.618],[4.825,0],[5.76,5.785],[-0.192,0.456],[-0.48,0],[0,0],[-3.12,3.961],[13.561,0],[0,0],[-11.473,-7.225],[0.36,-0.553],[0.384,0],[0.192,0.12],[0.84,9.769],[-3.144,-15.17],[-2.808,-3.841],[-0.552,-0.6],[-8.377,-0.72],[0.072,-0.672],[0.6,0],[0,0],[5.353,6.313],[-9.145,-14.329],[-2.88,-2.352],[-0.72,-0.529],[-13.778,7.777],[-0.336,-0.576],[0.576,-0.336],[5.977,0],[5.161,3.384],[-12.002,-7.201],[-8.041,0.528],[-0.816,0.096],[-6.192,5.665],[-0.456,-0.481],[0.48,-0.456],[8.065,-1.152],[-17.282,-0.792]],"o":[[0.864,-0.432],[8.089,-5.065],[0.192,-0.624],[0.624,0.192],[-3.337,10.49],[15.386,5.833],[5.64,-3.889],[0.528,-0.888],[3.865,-7.776],[-0.048,-0.648],[0.672,-0.072],[0.696,9.098],[12.673,-3.72],[4.609,-10.441],[-0.24,-0.888],[-1.344,-3.696],[-0.432,-0.504],[0.504,-0.432],[2.28,2.736],[2.16,-3.216],[-5.089,-8.545],[0.263,2.52],[0,42.413],[-42.413,0],[0,-31.924],[-4.921,-0.144],[-17.786,-0.023],[-0.36,-0.336],[0.192,-0.432],[0,0],[11.233,0],[-7.272,2.761],[0,0],[-0.072,10.129],[0.576,0.361],[-0.216,0.36],[-0.216,0],[-11.017,-6.937],[-18.986,10.681],[1.105,5.305],[0.432,0.648],[4.969,5.856],[0.672,0.072],[-0.048,0.624],[0,0],[-9.025,-0.792],[-18.194,17.162],[1.968,3.097],[0.672,0.576],[9.193,6.456],[0.551,-0.336],[0.312,0.576],[-6.721,3.792],[-6.744,0],[-2.472,21.482],[7.657,4.585],[0.816,-0.024],[7.777,-1.008],[0.504,-0.456],[0.456,0.48],[-6.457,5.904],[4.872,12.721],[8.137,0.384]],"v":[[10.802,102.504],[13.37,101.064],[30.94,77.397],[32.452,76.629],[33.22,78.117],[16.082,102.168],[60.991,97.32],[74.552,82.654],[76.017,79.917],[80.914,53.754],[82.018,52.482],[83.314,53.586],[79.065,79.149],[107.412,53.754],[109.957,21.951],[109.117,19.334],[103.477,9.349],[103.644,7.669],[105.324,7.813],[110.821,17.078],[115.646,5.173],[91.956,-26.439],[92.339,-18.734],[15.409,58.195],[-61.52,-18.734],[-14.185,-89.735],[-28.9,-89.879],[-67.807,-95.711],[-68.072,-97.031],[-66.944,-97.751],[-66.271,-97.751],[-45.173,-108.001],[-77.697,-101.904],[-79.642,-101.928],[-63.751,-74.013],[-63.367,-72.356],[-64.375,-71.78],[-65.023,-71.972],[-81.897,-98.495],[-103.069,-51.57],[-97.139,-37.792],[-95.651,-35.92],[-75.272,-25.719],[-74.193,-24.399],[-75.368,-23.319],[-75.488,-23.319],[-97.452,-34.312],[-105.948,19.046],[-98.628,27.351],[-96.516,29.008],[-60.895,29.632],[-59.263,30.088],[-59.719,31.72],[-78.874,37.144],[-96.9,31.672],[-75.465,75.933],[-51.438,81.982],[-48.99,81.766],[-27.603,71.732],[-25.898,71.805],[-25.97,73.509],[-48.221,84.118],[-11.138,107.065]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.992,0.922,0.859,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[186.656,292.88]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[18.17,17.186],[9.025,-0.792],[0,0],[0.048,0.624],[-0.648,0.072],[-4.969,5.856],[-0.432,0.648],[-1.105,5.305],[18.986,10.682],[11.017,-6.936],[0.216,0],[0.24,0.36],[-0.576,0.36],[0.072,10.129],[0.649,0],[7.297,2.761],[-11.377,0],[0,0],[-0.192,-0.432],[0.359,-0.336],[17.786,-0.024],[4.945,-0.12],[0,-31.924],[42.413,0],[0,42.413],[-0.264,2.52],[5.089,-8.545],[-2.16,-3.217],[-2.28,2.736],[-0.504,-0.432],[0.432,-0.504],[1.344,-3.696],[0.24,-0.889],[-4.633,-10.441],[-12.673,-3.72],[-0.696,9.097],[-0.6,-0.048],[0.048,-0.648],[-3.889,-7.801],[-0.504,-0.888],[-5.64,-3.888],[-15.41,5.833],[3.336,10.489],[-0.624,0.192],[-0.192,-0.624],[-8.113,-5.041],[-0.864,-0.456],[-8.137,0.361],[-4.872,12.721],[6.456,5.905],[-0.457,0.479],[-0.504,-0.456],[-7.777,-1.009],[-0.816,-0.024],[-7.656,4.608],[2.472,21.506],[6.721,0],[6.721,3.792],[-0.337,0.575],[-0.576,-0.336],[-9.193,6.457],[-0.696,0.576],[-1.992,3.096]],"o":[[-5.377,6.313],[0,0],[-0.6,0],[-0.072,-0.672],[8.377,-0.72],[0.552,-0.6],[2.808,-3.841],[3.144,-15.17],[-0.84,9.769],[-0.192,0.121],[-0.384,0],[-0.36,-0.552],[11.473,-7.225],[-0.648,0.024],[-13.609,0],[3.096,3.961],[0,0],[0.48,0],[0.192,0.456],[-5.761,5.784],[-4.825,0],[27.771,11.618],[0,42.413],[-42.413,0],[0,-2.592],[-10.682,11.593],[1.008,4.608],[1.393,-3.385],[0.432,-0.504],[0.529,0.408],[-2.424,2.904],[-0.312,0.84],[-2.833,9.793],[5.665,12.818],[-3.456,-7.729],[0.048,-0.672],[0.648,0.048],[-0.72,9.409],[0.456,0.912],[3.36,5.784],[13.01,8.954],[-7.849,-5.377],[-0.216,-0.624],[0.624,-0.216],[3.36,10.537],[0.84,0.528],[6.361,3.312],[17.306,-0.791],[-8.089,-1.152],[-0.481,-0.455],[0.456,-0.481],[6.192,5.665],[0.816,0.095],[8.065,0.553],[11.978,-7.201],[-5.161,3.408],[-6.001,0],[-0.576,-0.336],[0.311,-0.577],[13.777,7.777],[0.744,-0.528],[2.88,-2.376],[9.121,-14.305]],"v":[[97.476,-34.3],[75.489,-23.307],[75.368,-23.307],[74.193,-24.387],[75.273,-25.707],[95.651,-35.908],[97.139,-37.78],[103.068,-51.558],[81.898,-98.484],[65.023,-71.961],[64.375,-71.768],[63.367,-72.345],[63.752,-74.001],[79.641,-101.916],[77.696,-101.892],[45.102,-108.013],[66.271,-97.739],[66.943,-97.739],[68.071,-97.019],[67.808,-95.699],[28.899,-89.867],[14.185,-89.723],[61.519,-18.722],[-15.409,58.207],[-92.339,-18.722],[-91.954,-26.403],[-115.646,5.185],[-110.821,17.09],[-105.325,7.825],[-103.644,7.681],[-103.477,9.361],[-109.117,19.346],[-109.956,21.963],[-107.388,53.766],[-79.018,79.161],[-83.313,53.598],[-82.018,52.494],[-80.914,53.766],[-75.992,79.953],[-74.552,82.666],[-60.992,97.331],[-16.081,102.18],[-33.219,78.129],[-32.451,76.641],[-30.94,77.409],[-13.346,101.076],[-10.802,102.54],[11.138,107.076],[48.221,84.13],[25.971,73.52],[25.899,71.817],[27.604,71.744],[48.99,81.778],[51.438,81.993],[75.489,75.945],[96.899,31.684],[78.898,37.156],[59.719,31.732],[59.287,30.1],[60.919,29.643],[96.516,29.019],[98.651,27.363],[105.972,19.058]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.992,0.922,0.859,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[458.248,292.868]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.528,-0.048],[7.057,10.897],[-3.936,-9.241],[-13.993,-0.912],[-6.072,5.857],[18.099,9.769],[-0.096,0.504],[-0.504,0.072],[-3.36,-2.16],[12.074,1.968],[0.048,0.552],[-0.504,0.216],[-5.16,-2.449],[55.639,10.201],[-5.833,-15.17],[0.576,-0.264],[0.312,0.552],[11.137,0.72],[-2.977,-16.082],[-7.825,-4.393],[0.096,-0.504]],"o":[[-0.384,0.048],[0.504,4.992],[14.57,6.073],[5.641,-6.6],[-1.152,-10.657],[-0.432,-0.24],[0.072,-0.528],[8.569,-1.392],[-3.288,-7.465],[-0.552,-0.072],[-0.048,-0.529],[10.081,-3.912],[-7.993,-11.954],[15.938,10.729],[0.216,0.576],[-0.576,0.264],[-0.24,-0.456],[15.962,13.009],[2.472,13.226],[0.456,0.264],[-0.12,0.528]],"v":[[-1.764,49.734],[-17.678,39.413],[-11.461,62.023],[33.064,71.6],[50.682,52.926],[26.199,9.529],[25.599,8.281],[26.583,7.297],[44.729,10.801],[16.934,-12.577],[15.926,-13.633],[16.694,-14.882],[41.273,-13.417],[-50.682,-71.6],[-17.318,-20.618],[-17.942,-19.106],[-19.502,-19.61],[-36.352,-30.459],[-13.717,18.434],[-1.284,47.478],[-0.684,48.774]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[59.14,90.5]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-15.938,10.729],[7.993,-11.954],[-10.081,-3.913],[0.048,-0.528],[0.552,-0.072],[3.312,-7.465],[-8.569,-1.392],[-0.072,-0.528],[0.456,-0.24],[1.128,-10.633],[-5.641,-6.577],[-14.569,6.072],[-0.504,4.993],[0.408,0.024],[0.12,0.528],[-0.456,0.264],[-2.473,13.226],[-15.961,13.009],[0.24,-0.456],[0.576,0.264],[-0.216,0.576]],"o":[[-55.663,10.225],[5.161,-2.448],[0.504,0.216],[-0.048,0.552],[-12.073,1.968],[3.384,-2.161],[0.504,0.072],[0.096,0.504],[-18.098,9.769],[6.073,5.857],[13.994,-0.912],[3.937,-9.241],[-7.057,10.921],[-0.528,-0.048],[-0.096,-0.504],[7.849,-4.393],[2.976,-16.081],[-11.137,0.72],[-0.312,0.552],[-0.576,-0.264],[5.833,-15.17]],"v":[[50.67,-71.601],[-41.285,-13.417],[-16.706,-14.881],[-15.938,-13.633],[-16.946,-12.578],[-44.741,10.802],[-26.595,7.297],[-25.611,8.281],[-26.211,9.529],[-50.67,52.95],[-33.076,71.601],[11.449,62.023],[17.666,39.412],[1.752,49.734],[0.672,48.773],[1.272,47.477],[13.706,18.433],[36.34,-30.459],[19.49,-19.61],[17.93,-19.107],[17.306,-20.618]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[585.775,90.5]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.944,-2.856],[-4.776,7.729],[7.777,-2.808]],"o":[[8.521,-6.097],[-9.721,4.57],[2.016,2.736]],"v":[[-3.611,16.826],[22.456,-16.826],[-22.456,-7.699]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[574.768,169.349]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-8.521,-6.097],[-2.016,2.736],[10.415,2.978]],"o":[[1.944,-2.856],[-7.777,-2.808],[4.776,7.729]],"v":[[3.473,16.826],[22.594,-8.021],[-22.594,-16.826]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[70.273,169.349]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0],[105.161,222.752]],"o":[[0,0],[0,0],[-110.633,-234.347]],"v":[[142.111,-207.595],[155.264,-191.249],[-44.632,5.797]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[407.564,369.887]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.384,-0.744],[1.512,0],[3.96,7.801],[0.384,0.792],[0,19.01],[-10.921,0],[0,-30.363],[7.153,-14.834]],"o":[[-4.008,7.993],[-1.848,0],[-0.384,-0.744],[-7.129,-14.762],[0,-30.363],[10.897,0],[0,18.65],[-0.384,0.816]],"v":[[9.133,39.724],[0.012,52.854],[-9.445,40.061],[-10.597,37.757],[-25.431,-18.987],[0.012,-52.854],[25.431,-18.987],[10.285,37.397]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.988,0.773,0.224,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[322.452,394.424]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[24.825,-86.694],[0,0],[-11.755,66.218],[24.95,105.795]],"o":[[0,0],[-30.784,107.505],[0,0],[11.755,-66.217],[-24.95,-105.796]],"v":[[-49.186,-148.503],[-129.236,-61.074],[-9.078,151.163],[88.814,102.857],[135.069,-63.278]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[190.669,285.025]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0},{"ind":5,"ty":4,"nm":"b","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[543.864,603.925,0],"l":2},"a":{"a":0,"k":[345.35,405.433,0],"l":2},"s":{"a":0,"k":[79,79,100],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.12,-0.288],[0.48,-1.009],[0.721,-1.2],[6.529,2.112],[1.656,2.833],[0.36,1.056],[0.24,1.128],[-3.409,5.04],[0.552,0.36],[0.384,-0.551],[3.793,-0.577],[0.792,0.072],[0.6,0.193],[-0.408,7.584],[0.648,0.049],[0.048,-0.648],[-6.169,-1.992],[-0.984,-0.048],[-0.888,-1.8],[9.073,-1.608],[0.24,-0.024],[0.576,0],[0.24,0],[1.513,0.48],[-1.08,15.506],[-2.689,2.04],[-2.088,6.433],[0.624,0.192],[0.192,-0.624],[4.272,-3.265],[2.208,-0.456],[0.816,0],[0,0],[0.792,0.168],[0.336,0.096],[-0.816,9.505],[-2.736,4.152],[-1.417,-0.456],[-1.032,0],[-3.361,6.169],[0.601,0.336],[0.336,-0.576],[4.752,1.536],[0.936,1.009],[-0.457,1.104],[0.625,0.264],[0.264,-0.624],[0.312,-0.624],[0.48,-0.768],[2.905,-1.824],[0.888,-0.361],[2.712,0.864],[1.32,1.345],[0.552,0.888],[-0.024,4.728],[0.649,0],[0,0],[0,-0.672],[-2.928,-3.648],[4.825,-2.136],[1.681,0.504],[0.168,0.072],[0.504,0.456],[0.648,1.272],[0.264,0.816],[0.072,2.352],[-37.324,21.891],[-10.273,-6.937],[-0.385,0.456],[0.408,0.456],[0.216,3.432],[-34.492,-1.56]],"o":[[-0.36,1.104],[-0.576,1.368],[-4.824,7.969],[-2.832,-0.912],[-0.505,-0.888],[-0.361,-1.008],[4.465,-0.672],[0.384,-0.552],[-0.552,-0.383],[-3.001,4.441],[-0.816,0.12],[-0.624,-0.072],[-5.041,-1.608],[0.048,-0.673],[-0.672,-0.096],[-0.457,8.833],[0.936,0.312],[0.384,2.208],[-6.265,12.866],[-0.24,0.048],[-0.576,0.096],[-0.24,0.024],[-1.584,0],[-9.577,-3.096],[2.784,-0.456],[4.656,-3.576],[0.192,-0.648],[-0.624,-0.216],[-1.944,6.001],[-2.161,1.656],[-0.816,0.192],[0,0],[-0.817,0],[-0.336,-0.072],[-6.457,-2.064],[3.648,-1.849],[1.128,1.08],[1.008,0.312],[5.089,0],[0.312,-0.576],[-0.575,-0.312],[-3.48,6.409],[-1.272,-0.408],[0.553,-1.008],[0.264,-0.624],[-0.6,-0.24],[-0.264,0.648],[-0.408,0.84],[-2.16,3.553],[-0.864,0.553],[-2.832,1.2],[-1.728,-0.552],[-0.672,-0.672],[-1.968,-3.12],[0,-0.648],[0,0],[-0.647,0],[-0.048,6],[-2.952,8.161],[-2.664,1.176],[-0.168,-0.048],[-0.576,-0.264],[-0.888,-0.768],[-0.336,-0.672],[-0.576,-1.825],[-0.504,-13.874],[7.849,7.825],[0.505,0.336],[0.408,-0.456],[-4.969,-5.617],[15.458,19.37],[-1.272,27.147]],"v":[[90.37,-159.691],[89.146,-156.522],[87.177,-152.634],[68.263,-142.361],[61.471,-148.122],[60.151,-151.05],[59.262,-154.266],[71.648,-163.075],[71.336,-164.732],[69.656,-164.42],[58.95,-156.642],[56.55,-156.57],[54.726,-156.955],[46.973,-172.34],[45.845,-173.613],[44.573,-172.484],[53.982,-154.674],[56.887,-154.146],[58.806,-148.098],[34.012,-124.959],[33.315,-124.839],[31.612,-124.695],[30.891,-124.671],[26.258,-125.391],[12.385,-156.811],[20.69,-160.579],[31.131,-176.109],[30.363,-177.621],[28.851,-176.853],[19.226,-162.499],[12.601,-159.307],[10.153,-159.019],[10.105,-159.019],[7.704,-159.283],[6.72,-159.547],[-2.617,-179.253],[7.2,-188.446],[11.041,-186.142],[14.089,-185.686],[27.891,-195.575],[27.41,-197.207],[25.778,-196.727],[11.785,-188.446],[8.449,-190.583],[9.985,-193.727],[9.337,-195.311],[7.776,-194.663],[6.888,-192.767],[5.544,-190.367],[-2.209,-182.206],[-4.849,-180.813],[-13.274,-180.237],[-17.835,-183.118],[-19.683,-185.47],[-22.731,-197.495],[-23.908,-198.695],[-23.932,-198.695],[-25.132,-197.495],[-20.571,-182.614],[-34.901,-166.988],[-41.693,-165.98],[-42.197,-166.172],[-43.83,-167.252],[-46.133,-170.324],[-47.021,-172.556],[-48.029,-178.869],[-1.945,-243.437],[25.202,-221.234],[26.763,-221.45],[26.763,-223.034],[20.33,-237.748],[99.371,-204.552]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[1.992,-6.217],[1.296,-2.712],[0.528,-0.912],[1.297,-1.801],[0.72,-0.864],[1.969,-1.681],[6.169,1.992],[0.768,12.386],[-6.673,12.889],[-2.952,-0.96],[-1.368,0],[-4.321,5.665]],"o":[[-0.96,2.976],[-0.456,0.961],[-1.08,2.04],[-0.648,0.936],[-1.728,2.136],[-6.768,5.808],[-7.945,-2.568],[9.578,-1.584],[1.848,2.664],[1.32,0.432],[5.593,0],[-0.048,6.025]],"v":[[84.129,-129.927],[80.721,-121.383],[79.257,-118.574],[75.68,-112.789],[73.64,-110.077],[68.095,-104.316],[48.029,-98.364],[34.107,-122.559],[60.247,-145.625],[67.519,-140.081],[71.552,-139.457],[87.25,-148.554]],"c":true}},"nm":"P"},{"ind":2,"ty":"sh","ks":{"a":0,"k":{"i":[[0.288,-4.009],[6.336,-8.833],[2.904,-2.065],[0.721,-0.408],[3.865,0.288],[3.312,2.712],[0.696,0.744],[1.104,13.657],[-1.201,1.368],[-2.4,10.801],[-7.969,-2.569],[-1.849,0],[-5.545,4.776],[-1.368,1.537]],"o":[[-0.96,13.129],[-2.521,3.504],[-0.672,0.48],[-3.648,2.112],[-3.96,-0.288],[-0.744,-0.601],[-6.745,-6.865],[1.248,-1.105],[6.144,-7.009],[1.68,11.281],[1.752,0.552],[5.52,0],[1.488,-1.296],[0.312,3.865]],"v":[[73.976,-94.931],[62.647,-60.895],[54.486,-52.494],[52.397,-51.15],[41.044,-48.366],[30.051,-52.998],[27.867,-55.015],[15.313,-87.106],[18.986,-90.803],[32.139,-118.238],[47.309,-96.083],[52.734,-95.243],[69.656,-102.492],[73.952,-106.741]],"c":true}},"nm":"P"},{"ind":3,"ty":"sh","ks":{"a":0,"k":{"i":[[0,-6.672],[1.512,-5.88],[0.721,-1.968],[10.634,0],[0,0],[0.792,0.144],[4.489,15.506],[-3.433,22.539],[-4.032,-0.288],[-0.504,0],[-3.433,1.896]],"o":[[0,6.793],[-0.553,2.161],[-5.184,14.09],[0,0],[-0.792,-0.024],[-10.369,-1.488],[14.306,-2.089],[3.408,2.424],[0.504,0.024],[3.649,0],[1.584,6.073]],"v":[[55.47,-29.476],[53.118,-10.346],[51.197,-4.129],[26.042,19.37],[25.802,19.37],[23.426,19.154],[-0.481,-8.305],[29.667,-50.166],[40.852,-45.966],[42.364,-45.918],[53.07,-48.798]],"c":true}},"nm":"P"},{"ind":4,"ty":"sh","ks":{"a":0,"k":{"i":[[12.265,0],[0.552,0.072],[0.793,0.192],[4.512,12.506],[0.312,1.032],[0.529,3.744],[-5.424,14.113],[-1.152,-0.072],[-0.432,0],[-0.168,0.024],[-11.353,-1.728]],"o":[[-0.552,0],[-0.817,-0.072],[-8.905,-2.112],[-0.336,-0.96],[-1.032,-3.336],[10.37,-1.032],[1.129,0.264],[0.456,0.024],[0.168,0],[4.681,16.586],[-4.32,18.747]],"v":[[-4.585,52.95],[-6.265,52.854],[-8.689,52.47],[-29.86,29.043],[-30.844,26.067],[-33.197,15.41],[-8.138,-8.665],[-4.729,-8.137],[-3.385,-8.089],[-2.905,-8.113],[22.923,21.506]],"c":true}},"nm":"P"},{"ind":5,"ty":"sh","ks":{"a":0,"k":{"i":[[-25.107,-35.86],[1.416,-1.153],[4.921,2.112],[15.29,24.843],[0.504,0.816],[8.689,47.597],[-2.976,0],[-5.641,7.681],[-9.601,-1.92]],"o":[[-0.744,1.416],[-2.953,2.4],[-12.193,-5.209],[-0.504,-0.792],[-20.546,-34.012],[2.737,1.248],[7.609,0],[5.016,12.77],[6.025,64.28]],"v":[[48.005,215.689],[44.765,219.506],[32.907,219.962],[-10.346,172.388],[-11.834,169.964],[-60.559,41.453],[-51.943,43.373],[-31.516,31.419],[-8.474,54.966]],"c":true}},"nm":"P"},{"ind":6,"ty":"sh","ks":{"a":0,"k":{"i":[[1.585,-0.984],[4.632,3.072],[-12.049,106.981],[-3.241,-6.217],[-1.776,-2.112],[0,-9.817],[-12.002,-7.321],[-21.267,-34.828]],"o":[[-3.168,1.993],[-29.739,-19.682],[0.936,7.897],[1.44,2.76],[-3.192,8.161],[0,21.891],[8.665,48.941],[-0.936,1.344]],"v":[[-16.827,175.676],[-28.588,174.044],[-90.059,-63.968],[-83.721,-42.509],[-78.898,-35.188],[-83.77,-7.873],[-63.2,40.061],[-13.082,172.22]],"c":true}},"nm":"P"},{"ind":7,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.864,13.057],[0,0],[0,0],[0,0],[0,0],[-7.056,8.737],[-12.289,-2.136],[-1.056,0],[-7.825,-5.713],[10.057,0.721],[0.768,0.168],[0.793,0.289],[2.809,3.096],[0.552,0.72],[1.128,2.184]],"o":[[0,0],[0,0],[0,0],[0,0],[0.984,-14.33],[1.153,18.171],[1.056,0.192],[1.297,14.305],[-6.313,13.49],[-0.792,-0.048],[-0.84,-0.144],[-3.384,-1.152],[-0.6,-0.648],[-1.344,-1.752],[-5.017,-9.577]],"v":[[-88.042,-78.729],[-88.042,-78.801],[-88.042,-78.921],[-88.042,-79.017],[-88.042,-79.041],[-75.394,-115.07],[-53.575,-80.53],[-50.406,-80.265],[-35.837,-48.798],[-61.952,-28.204],[-64.303,-28.54],[-66.753,-29.212],[-76.113,-35.668],[-77.842,-37.733],[-81.585,-43.637]],"c":true}},"nm":"P"},{"ind":8,"ty":"sh","ks":{"a":0,"k":{"i":[[2.232,17.21],[-1.416,-0.144],[-0.649,0],[-4.272,21.483],[-2.016,1.488],[-7.633,-6.769],[13.61,-1.705],[0.816,0],[0.336,0.024],[0.913,0.216],[0.744,0.264]],"o":[[1.344,0.457],[0.648,0.072],[13.897,0],[2.089,-0.84],[1.464,14.594],[-3.001,22.37],[-0.816,0.096],[-0.336,0],[-0.936,-0.072],[-0.768,-0.168],[-10.321,-3.864]],"v":[[-30.172,-45.846],[-26.044,-44.934],[-24.123,-44.838],[6.864,-81.754],[13.057,-85.258],[27.507,-51.918],[-1.105,-10.633],[-3.553,-10.489],[-4.561,-10.537],[-7.322,-10.945],[-9.626,-11.618]],"c":true}},"nm":"P"},{"ind":9,"ty":"sh","ks":{"a":0,"k":{"i":[[0.576,0.456],[1.248,13.13],[-6.241,12.265],[-8.929,-1.536],[-1.08,0],[-1.656,0.432],[13.106,1.32],[1.512,0.624],[0.744,0.48],[0.072,0.048]],"o":[[-6.985,-5.449],[9.313,-1.128],[3.504,11.449],[1.08,0.168],[1.657,0],[-4.441,20.571],[-1.608,-0.168],[-0.792,-0.336],[-0.072,-0.024],[-0.625,-0.384]],"v":[[-34.805,-51.102],[-48.006,-80.41],[-23.379,-101.604],[-3.961,-80.53],[-0.745,-80.265],[4.224,-80.914],[-25.804,-47.334],[-30.484,-48.534],[-32.788,-49.734],[-33.004,-49.854]],"c":true}},"nm":"P"},{"ind":10,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.393,-4.08],[7.225,0],[2.857,1.585],[0.864,0.648],[0,19.946],[-2.808,7.609],[-3.841,-1.104],[-15.314,-0.288]],"o":[[-5.353,7.849],[-3.192,0],[-0.936,-0.48],[-10.369,-7.585],[0,-9.073],[3.169,3.24],[2.664,23.811],[0.648,4.704]],"v":[[-32.5,28.731],[-51.943,40.973],[-61.064,38.548],[-63.775,36.844],[-81.37,-7.873],[-77.098,-33.196],[-66.512,-26.595],[-35.62,15.482]],"c":true}},"nm":"P"},{"ind":11,"ty":"sh","ks":{"a":0,"k":{"i":[[0.576,0],[0.24,0.024],[2.712,22.034],[-0.648,-0.048],[-0.456,0],[-6.456,13.634],[-0.36,-0.168],[-11.425,-4.273],[9.458,-0.888]],"o":[[-0.24,0],[-13.777,-0.528],[0.648,0.096],[0.456,0.048],[10.489,0],[0.36,0.216],[2.136,18.746],[-5.112,13.201],[-0.575,0.048]],"v":[[-35.213,13.105],[-35.909,13.081],[-64.04,-26.019],[-62.12,-25.803],[-60.751,-25.755],[-33.821,-47.502],[-32.74,-46.926],[-10.442,-9.385],[-33.508,13.033]],"c":true}},"nm":"P"},{"ind":12,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.729,-3.48],[-1.704,-0.024],[6.553,-7.489],[0.696,-0.672],[0.768,-0.624],[1.848,-0.864],[0.888,-0.288],[2.736,0.48],[2.952,11.954],[0.24,1.44],[-0.144,4.224],[-5.113,4.416],[-3.529,10.969],[-0.144,0.551],[-0.168,0]],"o":[[1.633,0.504],[-2.064,11.834],[-0.672,0.768],[-0.768,0.744],[-1.776,1.465],[-0.864,0.432],[-2.784,0.888],[-8.689,-1.488],[-0.336,-1.368],[-0.6,-3.768],[5.136,-0.337],[7.272,-6.241],[0.167,-0.528],[0.168,0.024],[-1.128,16.609]],"v":[[25.514,-123.111],[30.531,-122.295],[17.186,-92.363],[15.121,-90.179],[12.817,-88.115],[7.368,-84.61],[4.752,-83.554],[-3.553,-82.906],[-21.843,-104.869],[-22.707,-109.069],[-23.451,-121.142],[-7.801,-128.343],[8.953,-155.034],[9.432,-156.642],[9.962,-156.618]],"c":true}},"nm":"P"},{"ind":13,"ty":"sh","ks":{"a":0,"k":{"i":[[-7.369,-2.376],[-0.36,-0.072],[0.12,-0.409],[6.937,-5.953],[4.536,-0.384],[0.792,0.072],[1.2,0.384],[-3.864,18.89],[-0.816,0],[-2.184,0.937],[-3.408,8.257],[-1.753,-0.576],[-1.368,0],[-1.632,0.552]],"o":[[0.336,0.096],[-0.12,0.409],[-3.408,10.537],[-4.632,4.008],[-0.816,0.072],[-1.248,-0.048],[-11.377,-3.672],[0.673,0.216],[1.8,0],[5.041,-2.208],[1.392,1.224],[1.32,0.408],[1.632,0],[-0.528,10.153]],"v":[[6,-157.243],[7.056,-156.979],[6.673,-155.754],[-9.362,-130.167],[-23.355,-123.543],[-25.756,-123.543],[-29.428,-124.215],[-42.197,-163.651],[-39.965,-163.363],[-33.941,-164.78],[-18.723,-180.669],[-14.018,-177.957],[-9.986,-177.333],[-5.089,-178.173]],"c":true}},"nm":"P"},{"ind":14,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.048,1.152],[-0.624,3.553],[-11.066,4.944],[-1.632,-1.081],[-12.674,-4.081],[-1.464,-0.072],[-1.129,-4.897],[9.001,-1.224],[0.793,0],[0.84,0.144],[0.408,18.218]],"o":[[0.072,-3.385],[3.12,-18.074],[1.008,2.064],[-4.32,20.33],[1.392,0.455],[-0.168,5.688],[-5.809,12.721],[-0.792,0.096],[-0.864,-0.024],[-11.737,-2.016],[-0.024,-1.104]],"v":[[-73.064,-121.046],[-72.033,-131.488],[-48.389,-169.46],[-44.43,-164.707],[-30.148,-121.934],[-25.852,-121.142],[-24.339,-105.156],[-48.197,-82.81],[-50.598,-82.666],[-53.167,-82.906],[-73.089,-117.662]],"c":true}},"nm":"P"},{"ind":15,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-0.696,-19.155],[-0.672,-2.065],[3.264,-18.89],[-0.024,-4.273],[1.08,-15.986],[0,0],[-15.698,-54.247],[-16.442,-10.897],[-2.424,0],[-1.321,0.84],[-1.032,1.248],[-12.313,-5.281],[-2.208,0],[-2.017,1.68],[-0.816,1.296],[-8.689,-4.417],[0.144,1.009],[9.53,13.418],[0.576,0.816],[6.048,63.08],[-0.48,0],[-4.512,20.019],[-0.24,0],[-5.808,12.601],[-10.561,-35.548],[-0.888,-2.832],[0,0],[-1.752,-5.28],[-0.672,0.528],[1.248,3.888],[0,0],[0.672,2.16],[7.104,93.227],[0,9.313],[1.776,6.457],[-2.856,3.984],[-1.008,13.537],[0.528,4.752],[-1.368,2.329],[-0.432,0.864],[-1.225,3.792],[0.408,7.249],[-0.792,2.449],[-1.32,27.627],[0,0],[0,0],[0,0],[0.792,0.048],[14.353,20.355],[0.48,-0.12],[0.072,-0.481],[-4.057,-7.561],[6.169,6.097],[0.576,0.6]],"o":[[-33.172,19.706],[0.096,2.64],[-11.834,5.256],[-0.793,4.561],[-8.353,9.097],[0,0],[-8.257,50.741],[12.818,44.309],[3.6,2.353],[2.256,0],[1.512,-0.96],[15.458,24.891],[2.64,1.128],[2.688,0],[1.32,-1.08],[10.225,14.186],[-0.216,-0.984],[-8.257,-4.752],[-0.576,-0.768],[-24.435,-35.428],[0.48,0.024],[13.466,0],[0.24,0.024],[10.466,0],[6.649,83.506],[0.912,3.121],[0,0],[2.089,6.721],[0.648,-0.6],[-1.104,-3.336],[0,-0.024],[-0.624,-2.016],[-11.114,-35.692],[2.712,-7.537],[0,-7.129],[3.384,-2.256],[6.601,-9.169],[0.36,-4.969],[1.56,-2.04],[0.48,-0.84],[1.752,-3.36],[2.472,-7.657],[1.224,-2.064],[0.072,-0.192],[0,0],[0,0],[0,0],[-0.816,-0.024],[-35.38,-1.609],[-0.288,-0.408],[-0.456,0.096],[-0.072,0.312],[-7.681,-5.568],[-0.6,-0.576],[0,0]],"v":[[-3.697,-245.189],[-50.43,-178.773],[-49.253,-171.692],[-74.409,-131.896],[-75.512,-118.598],[-90.443,-79.065],[-90.443,-79.017],[-78.874,83.77],[-29.932,176.06],[-20.907,179.253],[-15.554,177.717],[-11.738,174.428],[31.947,222.17],[39.196,223.85],[46.277,221.354],[49.493,217.825],[78.513,246.437],[77.961,243.436],[50.717,215.569],[49.013,213.193],[-6.049,55.302],[-4.585,55.35],[25.298,21.746],[26.042,21.77],[51.605,1.008],[81.657,174.308],[84.369,183.237],[84.369,183.261],[90.178,201.215],[92.146,199.511],[88.594,188.686],[88.57,188.662],[86.626,182.421],[53.598,-3.865],[57.87,-29.476],[55.182,-50.094],[64.591,-59.503],[76.376,-94.739],[76.136,-109.333],[80.529,-115.862],[81.921,-118.43],[86.41,-129.183],[89.578,-152.01],[92.626,-158.827],[101.771,-204.432],[102.035,-204.432],[102.107,-206.832],[101.867,-206.832],[99.467,-206.952],[20.21,-241.901],[18.962,-242.381],[18.049,-241.42],[20.954,-227.139],[0.215,-244.685],[-1.537,-246.437]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[102.358,511.991]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[29.739,-19.682],[3.168,1.992],[0.936,1.32],[-8.665,48.942],[0,21.866],[3.192,8.161],[-1.44,2.76],[-0.936,7.945]],"o":[[-4.633,3.072],[-1.561,-0.984],[21.267,-34.852],[12.002,-7.32],[0,-9.817],[1.776,-2.113],[3.265,-6.241],[12.073,107.029]],"v":[[28.564,174.044],[16.802,175.676],[13.057,172.244],[63.2,40.036],[83.745,-7.873],[78.874,-35.188],[83.698,-42.509],[90.059,-64.088]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[0.504,-0.792],[12.193,-5.232],[2.953,2.401],[0.744,1.416],[-6.025,64.28],[-5.016,12.746],[-7.585,0],[-2.737,1.249],[20.546,-34.013]],"o":[[-15.29,24.819],[-4.921,2.113],[-1.416,-1.152],[25.107,-35.86],[9.601,-1.896],[5.665,7.681],[3,0],[-8.713,47.598],[-0.48,0.816]],"v":[[10.322,172.388],[-32.932,219.961],[-44.789,219.505],[-48.029,215.689],[8.45,54.966],[31.468,31.443],[51.919,43.373],[60.56,41.452],[11.81,169.964]],"c":true}},"nm":"P"},{"ind":2,"ty":"sh","ks":{"a":0,"k":{"i":[[0.552,0],[4.296,18.746],[-4.705,16.586],[-0.144,0],[-0.456,0.024],[-1.129,0.288],[-10.394,-1.032],[1.032,-3.337],[0.336,-0.984],[8.905,-2.112],[0.817,-0.072]],"o":[[-12.265,0],[11.329,-1.752],[0.144,0.024],[0.432,0],[1.152,-0.072],[5.4,14.137],[-0.529,3.745],[-0.312,1.032],[-4.488,12.481],[-0.793,0.192],[-0.552,0.072]],"v":[[4.56,52.95],[-22.922,21.506],[2.904,-8.113],[3.361,-8.089],[4.705,-8.137],[8.138,-8.689],[33.172,15.409],[30.82,26.067],[29.836,29.067],[8.666,52.47],[6.24,52.854]],"c":true}},"nm":"P"},{"ind":3,"ty":"sh","ks":{"a":0,"k":{"i":[[0.793,-0.024],[0,0],[5.16,14.09],[0.552,2.185],[0,6.769],[-1.584,6.073],[-3.649,0],[-0.504,0.024],[-3.384,2.448],[-14.306,-2.065],[10.369,-1.488]],"o":[[0,0],[-10.634,0],[-0.745,-1.992],[-1.512,-5.856],[0,-6.673],[3.433,1.896],[0.504,0],[4.032,-0.288],[3.457,22.562],[-4.489,15.505],[-0.792,0.144]],"v":[[-25.828,19.37],[-26.066,19.37],[-51.198,-4.129],[-53.143,-10.418],[-55.495,-29.476],[-53.094,-48.798],[-42.388,-45.918],[-40.876,-45.966],[-29.716,-50.19],[0.456,-8.305],[-23.451,19.154]],"c":true}},"nm":"P"},{"ind":4,"ty":"sh","ks":{"a":0,"k":{"i":[[2.521,3.505],[0.984,13.129],[-0.312,3.864],[-7.224,0],[-1.752,0.552],[-1.704,11.233],[-6.12,-6.985],[-1.248,-1.104],[6.745,-6.865],[0.744,-0.624],[3.96,-0.288],[3.625,2.136],[0.696,0.505]],"o":[[-6.337,-8.833],[-0.288,-4.009],[6.457,7.249],[1.825,0],[7.945,-2.568],[2.424,10.753],[1.201,1.368],[-1.08,13.682],[-0.696,0.72],[-3.312,2.689],[-3.865,0.288],[-0.72,-0.385],[-2.904,-2.064]],"v":[[-62.672,-60.896],[-74,-94.931],[-73.977,-106.789],[-52.662,-95.268],[-47.31,-96.084],[-32.164,-118.142],[-19.01,-90.803],[-15.337,-87.107],[-27.891,-54.991],[-30.076,-52.975],[-41.068,-48.366],[-52.398,-51.174],[-54.51,-52.519]],"c":true}},"nm":"P"},{"ind":5,"ty":"sh","ks":{"a":0,"k":{"i":[[2.088,6.505],[0.529,3.409],[0.024,2.76],[-5.593,0],[-1.321,0.432],[-1.872,2.665],[-9.578,-1.584],[7.945,-2.568],[7.681,9.529],[0.648,0.937]],"o":[[-1.08,-3.384],[-0.432,-2.856],[4.321,5.689],[1.368,0],[2.952,-0.96],[6.649,12.89],[-0.768,12.386],[-8.305,2.664],[-0.696,-0.864],[-3.457,-4.848]],"v":[[-84.154,-129.928],[-86.578,-140.153],[-87.274,-148.578],[-71.576,-139.457],[-67.544,-140.081],[-60.247,-145.626],[-34.131,-122.559],[-48.053,-98.364],[-73.664,-110.077],[-75.68,-112.766]],"c":true}},"nm":"P"},{"ind":6,"ty":"sh","ks":{"a":0,"k":{"i":[[0.6,1.368],[0.36,1.152],[1.272,27.171],[-15.434,19.37],[4.993,-5.616],[-0.408,-0.456],[-0.481,0.336],[-7.849,7.825],[0.504,-13.874],[0.576,-1.824],[0.336,-0.672],[0.888,-0.768],[0.577,-0.264],[0.191,-0.048],[0,0],[2.64,1.176],[2.952,8.161],[0.048,6.001],[0.6,0.024],[0,-0.648],[1.992,-3.121],[0.696,-0.696],[1.728,-0.552],[2.832,1.201],[0.864,0.552],[2.16,3.553],[0.408,0.84],[0.264,0.648],[0.6,-0.264],[-0.264,-0.624],[-0.553,-1.008],[1.272,-0.409],[3.505,6.408],[0.576,-0.312],[-0.312,-0.576],[-5.065,0],[-0.984,0.312],[-1.128,1.056],[-3.672,-1.848],[6.457,-2.064],[0.336,-0.072],[0.816,0],[0,0],[0.816,0.192],[2.161,1.657],[1.944,6],[0.648,-0.216],[-0.192,-0.648],[-4.656,-3.577],[-2.784,-0.456],[9.577,-3.096],[1.584,0],[0.264,0.024],[0.6,0.072],[0.24,0.048],[6.264,12.842],[-0.384,2.233],[-0.936,0.311],[0.456,8.833],[0.672,-0.048],[-0.024,-0.672],[5.041,-1.608],[0.6,-0.072],[0.816,0.12],[3.001,4.441],[0.552,-0.384],[-0.36,-0.553],[-4.465,-0.672],[0.361,-1.008],[0.504,-0.888],[2.832,-0.912],[4.849,7.993]],"o":[[-0.456,-1.056],[-0.096,-0.168],[34.492,-1.56],[-0.216,3.432],[-0.408,0.457],[0.385,0.456],[10.273,-6.937],[37.324,21.891],[-0.072,2.352],[-0.264,0.816],[-0.648,1.272],[-0.504,0.456],[-0.167,0.072],[0,0],[-1.705,0.48],[-4.849,-2.136],[2.928,-3.648],[0,-0.672],[-0.672,0],[0.024,4.729],[-0.528,0.864],[-1.296,1.344],[-2.712,0.864],[-0.888,-0.36],[-2.905,-1.824],[-0.48,-0.768],[-0.312,-0.624],[-0.264,-0.624],[-0.625,0.264],[0.456,1.104],[-0.937,1.008],[-4.752,1.536],[-0.336,-0.577],[-0.576,0.337],[3.385,6.169],[1.032,0],[1.441,-0.456],[2.712,4.152],[0.816,9.506],[-0.312,0.12],[-0.792,0.168],[0,0],[-0.816,0],[-2.208,-0.456],[-4.272,-3.264],[-0.192,-0.624],[-0.624,0.192],[2.088,6.433],[2.689,2.04],[1.08,15.506],[-1.513,0.48],[-0.216,0],[-0.552,0],[-0.216,-0.024],[-9.049,-1.608],[0.864,-1.824],[0.96,-0.048],[6.193,-1.993],[-0.048,-0.648],[-0.648,0.048],[0.408,7.585],[-0.6,0.192],[-0.792,0.072],[-3.793,-0.576],[-0.384,-0.552],[-0.528,0.36],[3.409,5.04],[-0.24,1.129],[-0.36,1.056],[-1.656,2.833],[-6.505,2.088],[-0.744,-1.2]],"v":[[-89.195,-156.523],[-90.443,-159.811],[-99.396,-204.552],[-20.354,-237.748],[-26.787,-223.035],[-26.787,-221.45],[-25.227,-221.234],[1.921,-243.437],[48.005,-178.869],[46.997,-172.557],[46.109,-170.324],[43.805,-167.252],[42.197,-166.172],[41.669,-165.98],[41.669,-165.956],[34.901,-166.988],[20.547,-182.614],[25.107,-197.496],[23.906,-198.696],[22.706,-197.496],[19.635,-185.47],[17.81,-183.118],[13.25,-180.238],[4.825,-180.814],[2.185,-182.206],[-5.568,-190.367],[-6.912,-192.767],[-7.8,-194.663],[-9.36,-195.311],[-10.01,-193.727],[-8.472,-190.583],[-11.81,-188.446],[-25.803,-196.727],[-27.435,-197.208],[-27.915,-195.575],[-14.113,-185.686],[-11.065,-186.142],[-7.201,-188.446],[2.593,-179.254],[-6.745,-159.547],[-7.729,-159.283],[-10.13,-159.019],[-10.177,-159.019],[-12.625,-159.307],[-19.25,-162.5],[-28.875,-176.853],[-30.388,-177.621],[-31.156,-176.109],[-20.714,-160.579],[-12.409,-156.811],[-26.282,-125.391],[-30.915,-124.671],[-31.635,-124.695],[-33.363,-124.839],[-34.035,-124.959],[-58.807,-148.074],[-56.886,-154.147],[-54.006,-154.674],[-44.597,-172.485],[-45.87,-173.613],[-46.997,-172.341],[-54.75,-156.955],[-56.55,-156.571],[-58.974,-156.643],[-69.68,-164.42],[-71.36,-164.732],[-71.672,-163.075],[-59.286,-154.267],[-60.175,-151.05],[-61.495,-148.122],[-68.287,-142.361],[-87.178,-152.658]],"c":true}},"nm":"P"},{"ind":7,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.12,-18.074],[-0.072,-3.384],[0.024,-1.104],[11.737,-2.04],[0.865,0],[0.792,0.096],[5.809,12.722],[0.192,5.689],[-1.416,0.456],[4.32,20.331],[-0.984,2.064]],"o":[[0.624,3.553],[0.048,1.129],[-0.384,18.242],[-0.84,0.144],[-0.792,0],[-9.001,-1.2],[1.129,-4.896],[1.464,-0.072],[12.674,-4.08],[1.632,-1.08],[11.066,4.944]],"v":[[72.008,-131.488],[73.041,-121.047],[73.065,-117.686],[53.143,-82.906],[50.573,-82.666],[48.174,-82.81],[24.315,-105.157],[25.804,-121.143],[30.124,-121.935],[44.406,-164.684],[48.365,-169.46]],"c":true}},"nm":"P"},{"ind":8,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.648,4.705],[-2.688,23.811],[-3.193,3.24],[0,-9.049],[10.345,-7.561],[0.936,-0.48],[3.192,0],[5.353,7.849]],"o":[[15.314,-0.288],[3.817,-1.104],[2.808,7.609],[0,19.946],[-0.864,0.648],[-2.881,1.584],[-7.225,0],[1.393,-4.08]],"v":[[35.596,15.481],[66.512,-26.596],[77.073,-33.172],[81.346,-7.873],[63.752,36.844],[61.064,38.548],[51.919,40.972],[32.476,28.731]],"c":true}},"nm":"P"},{"ind":9,"ty":"sh","ks":{"a":0,"k":{"i":[[-2.112,18.77],[-0.359,0.216],[-10.49,0],[-0.456,0.048],[-0.648,0.12],[13.777,-0.528],[0.24,0],[0.551,0.072],[5.089,13.201]],"o":[[0.36,-0.168],[6.457,13.634],[0.456,0],[0.648,-0.048],[-2.688,22.034],[-0.24,0.024],[-0.576,0],[-9.458,-0.888],[11.425,-4.249]],"v":[[32.716,-46.926],[33.796,-47.502],[60.728,-25.755],[62.096,-25.803],[64.039,-26.043],[35.885,13.081],[35.189,13.105],[33.484,13.009],[10.417,-9.385]],"c":true}},"nm":"P"},{"ind":10,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.44,14.593],[-2.089,-0.84],[-13.897,0],[-0.648,0.072],[-1.32,0.456],[10.321,-3.864],[0.769,-0.168],[0.936,-0.072],[0.336,0],[0.816,0.096],[2.977,22.37]],"o":[[2.016,1.512],[4.272,21.483],[0.649,0],[1.416,-0.144],[-2.232,17.21],[-0.744,0.264],[-0.912,0.216],[-0.336,0.024],[-0.816,0],[-13.73,-1.656],[7.633,-6.769]],"v":[[-13.081,-85.282],[-6.888,-81.754],[24.099,-44.838],[26.02,-44.934],[30.148,-45.846],[9.602,-11.618],[7.297,-10.946],[4.536,-10.538],[3.529,-10.49],[1.081,-10.634],[-27.531,-51.918]],"c":true}},"nm":"P"},{"ind":11,"ty":"sh","ks":{"a":0,"k":{"i":[[-9.313,-1.104],[6.985,-5.425],[0.625,-0.384],[0.072,-0.024],[0.816,-0.336],[1.608,-0.168],[4.465,20.283],[-1.657,0],[-1.08,0.168],[-3.504,11.449]],"o":[[-1.224,13.13],[-0.576,0.48],[-0.072,0.048],[-0.744,0.48],[-1.488,0.648],[-12.842,1.344],[1.656,0.432],[1.08,0],[8.929,-1.536],[6.265,12.265]],"v":[[47.982,-80.41],[34.781,-51.126],[32.979,-49.854],[32.788,-49.758],[30.46,-48.558],[25.779,-47.334],[-4.224,-80.914],[0.721,-80.266],[3.937,-80.53],[23.354,-101.58]],"c":true}},"nm":"P"},{"ind":12,"ty":"sh","ks":{"a":0,"k":{"i":[[0.528,10.153],[-1.608,0],[-1.32,0.408],[-1.392,1.225],[-5.04,-2.208],[-1.8,0],[-0.696,0.192],[11.377,-3.672],[1.272,-0.048],[0.816,0.072],[4.632,4.009],[3.408,10.538],[0.12,0.408],[-0.36,0.12]],"o":[[1.608,0.552],[1.368,0],[1.752,-0.576],[3.408,8.257],[2.185,0.936],[0.816,0],[3.841,18.915],[-1.2,0.384],[-0.768,0.072],[-4.536,-0.384],[-6.937,-5.952],[-0.12,-0.408],[0.36,-0.048],[7.369,-2.376]],"v":[[5.089,-178.173],[9.961,-177.333],[13.994,-177.957],[18.698,-180.67],[33.916,-164.78],[39.94,-163.364],[42.197,-163.652],[29.404,-124.215],[25.708,-123.543],[23.331,-123.543],[9.338,-130.168],[-6.696,-155.755],[-7.081,-156.979],[-6,-157.243]],"c":true}},"nm":"P"},{"ind":13,"ty":"sh","ks":{"a":0,"k":{"i":[[1.128,16.61],[-0.167,0.024],[-0.168,-0.528],[-7.272,-6.241],[-5.136,-0.336],[0.6,-3.769],[0.336,-1.368],[8.689,-1.488],[2.76,0.912],[0.864,0.432],[1.8,1.465],[0.744,0.744],[0.672,0.768],[2.088,11.834],[-1.633,0.504]],"o":[[0.168,0],[0.144,0.552],[3.529,10.97],[5.113,4.416],[0.144,4.225],[-0.24,1.44],[-2.952,11.954],[-2.712,0.48],[-0.888,-0.288],[-1.849,-0.864],[-0.768,-0.648],[-0.696,-0.696],[-6.553,-7.489],[1.704,-0.024],[10.729,-3.48]],"v":[[-9.985,-156.619],[-9.458,-156.643],[-8.977,-155.035],[7.776,-128.343],[23.427,-121.143],[22.682,-109.069],[21.818,-104.869],[3.529,-82.906],[-4.753,-83.554],[-7.393,-84.61],[-12.865,-88.115],[-15.146,-90.179],[-17.209,-92.363],[-30.555,-122.295],[-25.539,-123.111]],"c":true}},"nm":"P"},{"ind":14,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.152,18.17],[-0.984,-14.329],[0,0],[5.041,-9.626],[1.368,-1.752],[0.6,-0.648],[3.361,-1.176],[0.84,-0.144],[0.792,-0.048],[6.312,13.49],[-1.296,14.306],[-1.056,0.192]],"o":[[7.057,8.737],[0,0],[0.888,13.13],[-1.152,2.184],[-0.552,0.72],[-2.809,3.073],[-0.816,0.288],[-0.768,0.168],[-10.057,0.72],[7.825,-5.713],[1.057,0],[12.289,-2.136]],"v":[[75.369,-115.07],[88.018,-79.018],[88.018,-78.922],[81.586,-43.637],[77.818,-37.709],[76.09,-35.645],[66.752,-29.212],[64.279,-28.54],[61.927,-28.204],[35.812,-48.798],[50.382,-80.266],[53.551,-80.53]],"c":true}},"nm":"P"},{"ind":15,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0.6,-0.576],[7.681,-5.569],[0.072,0.312],[0.48,0.096],[0.288,-0.408],[35.38,-1.608],[0.816,-0.024],[0,0],[0,0],[0,0],[-0.048,-0.096],[-1.224,-2.113],[-0.6,-4.056],[-0.84,-2.904],[0,0],[-0.24,-0.72],[-4.249,-5.425],[-0.36,-4.968],[-6.601,-9.169],[-3.384,-2.257],[0,-7.129],[-2.688,-7.513],[11.113,-33.508],[-0.624,-0.6],[-8.642,108.181],[-10.442,0],[-0.24,0.024],[-13.466,0],[-0.48,0.024],[24.459,-35.429],[0.552,-0.792],[8.257,-4.752],[0.192,-0.985],[-10.177,14.186],[-1.32,-1.08],[-2.688,0],[-2.616,1.128],[-15.482,24.891],[-1.512,-0.96],[-2.256,0],[-3.576,2.353],[-12.818,44.31],[8.257,50.742],[0,0],[8.353,9.097],[0.792,4.561],[11.834,5.281],[-0.095,2.64],[33.172,19.706]],"o":[[-0.576,0.6],[-6.169,6.097],[4.081,-7.561],[-0.072,-0.48],[-0.48,-0.096],[-14.353,20.355],[-0.792,0.048],[0,0],[0,0],[0,0],[1.32,27.603],[0.792,2.472],[-0.192,3.816],[0.432,2.928],[0,0],[0.216,0.744],[2.449,7.633],[-0.552,4.752],[1.008,13.538],[2.856,3.984],[-1.776,6.457],[0,9.313],[-8.329,109.861],[0.672,0.528],[10.921,-32.932],[5.784,12.577],[0.239,0],[4.512,20.018],[0.48,0],[-6.024,63.079],[-0.552,0.816],[-9.554,13.417],[-0.144,1.008],[8.689,-4.417],[0.84,1.296],[2.016,1.68],[2.208,0],[12.313,-5.281],[1.008,1.248],[1.321,0.841],[2.448,0],[16.442,-10.897],[15.698,-54.246],[0,0],[-1.08,-15.985],[0.024,-4.273],[-3.24,-18.89],[0.697,-2.04],[0.697,-19.155],[0,0]],"v":[[1.513,-246.437],[-0.24,-244.685],[-20.979,-227.139],[-18.073,-241.421],[-18.987,-242.381],[-20.234,-241.901],[-99.491,-206.953],[-101.891,-206.833],[-102.131,-206.833],[-102.06,-204.432],[-101.795,-204.432],[-92.674,-158.947],[-89.626,-152.058],[-89.003,-140.177],[-87.107,-131.392],[-87.107,-131.368],[-86.435,-129.184],[-76.136,-109.381],[-76.401,-94.74],[-64.615,-59.503],[-55.206,-50.094],[-57.894,-29.476],[-53.646,-3.913],[-92.17,199.511],[-90.203,201.215],[-51.605,1.032],[-26.066,21.77],[-25.323,21.746],[4.561,55.35],[6.025,55.302],[-49.037,213.193],[-50.717,215.593],[-77.985,243.436],[-78.513,246.437],[-49.542,217.801],[-46.302,221.354],[-39.22,223.85],[-31.971,222.17],[11.738,174.428],[15.529,177.716],[20.883,179.253],[29.908,176.06],[78.849,83.769],[90.419,-79.018],[90.419,-79.066],[75.489,-118.598],[74.385,-131.896],[49.229,-171.717],[50.406,-178.773],[3.672,-245.189]],"c":false}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.267,0.133,0.09,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[588.319,511.991]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.6,-3.144],[0.24,-0.936],[5.857,-4.561],[6.193,0],[0,-8.641],[-0.024,-0.456],[2.328,2.112],[0,11.905],[6.145,8.377],[-5.785,0],[-4.08,-3.481],[-0.624,-0.648],[0,-12.842]],"o":[[-0.168,0.96],[-2.233,9.025],[-0.504,-7.249],[-6.745,0],[0,0.408],[-2.664,-1.032],[5.377,-8.185],[0,-12.818],[4.632,-4.704],[5.136,0],[0.673,0.576],[6.841,7.009],[0,3.408]],"v":[[162.344,2.4],[161.719,5.256],[149.094,26.355],[139.012,15.434],[128.835,28.443],[128.883,29.739],[121.37,25.011],[130.011,-5.953],[120.074,-38.765],[136.012,-46.038],[150.029,-40.541],[151.951,-38.717],[163.255,-7.465]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[0.072,-0.768],[1.944,-1.44],[1.368,8.233],[0.072,0.84],[0,0.672],[-3.624,0],[-0.12,-8.953],[0,-0.168]],"o":[[-0.768,8.809],[-1.632,-1.44],[-0.168,-0.864],[-0.072,-0.696],[0,-9.409],[3.552,0],[0.024,0.168],[0,0.744]],"v":[[146.669,30.723],[139.06,44.597],[131.667,33.052],[131.331,30.507],[131.235,28.443],[139.012,17.834],[146.766,27.939],[146.789,28.443]],"c":true}},"nm":"P"},{"ind":2,"ty":"sh","ks":{"a":0,"k":{"i":[[4.968,-7.776],[0.48,-0.672],[3.048,-2.089],[0,1.056],[7.561,0],[0,-9.721],[-0.384,-2.112],[3.216,3.649],[0,12.146],[7.848,7.368],[-8.593,0],[-5.449,-6.745],[-0.48,-0.672],[0,-12.097]],"o":[[-0.432,0.696],[-2.4,3.312],[0.12,-1.177],[0,-9.721],[-7.585,0],[0,1.849],[-3.912,-1.584],[6.097,-7.513],[0,-14.065],[5.856,-8.666],[7.825,0],[0.528,0.624],[5.616,7.945],[0,11.233]],"v":[[119.642,23.33],[118.274,25.371],[110.065,33.532],[110.258,30.171],[98.855,15.506],[87.43,30.171],[88.03,36.172],[77.206,28.251],[87.142,-2.329],[74.133,-36.196],[96.576,-49.758],[116.978,-38.909],[118.49,-36.965],[127.611,-5.953]],"c":true}},"nm":"P"},{"ind":3,"ty":"sh","ks":{"a":0,"k":{"i":[[0.264,-1.68],[0.216,-0.96],[1.824,-1.08],[2.137,8.257],[0.168,0.888],[0,2.184],[-4.2,0],[0,-10.873]],"o":[[-0.12,0.96],[-1.896,8.929],[-1.561,-1.152],[-0.215,-0.888],[-0.481,-2.352],[0,-10.873],[4.201,0],[0,1.584]],"v":[[107.449,35.092],[106.944,37.996],[98.904,49.71],[91.198,39.676],[90.599,37.036],[89.831,30.171],[98.855,17.906],[107.857,30.171]],"c":true}},"nm":"P"},{"ind":4,"ty":"sh","ks":{"a":0,"k":{"i":[[0.552,-0.6],[2.016,-1.249],[0,1.656],[7.56,0],[0,-9.721],[-0.336,-1.921],[0,15.77],[-0.024,0.552],[-0.072,0.816],[-14.042,0],[-3.984,-3.264],[-0.576,-0.6],[0,-13.177],[5.568,-7.057]],"o":[[-1.729,1.896],[0.312,-1.921],[0,-9.721],[-7.585,0],[0,1.68],[-9.601,-5.953],[0,-0.552],[0.024,-0.816],[1.441,-19.322],[4.92,0],[0.624,0.505],[7.177,6.936],[0,11.378],[-0.504,0.648]],"v":[[74.085,28.251],[68.42,33.004],[68.9,27.579],[57.499,12.937],[46.073,27.579],[46.577,33.004],[30.232,-2.329],[30.255,-3.985],[30.399,-6.457],[57.499,-40.877],[71.036,-35.765],[72.86,-34.132],[84.742,-2.329],[75.669,26.379]],"c":true}},"nm":"P"},{"ind":5,"ty":"sh","ks":{"a":0,"k":{"i":[[0.456,-2.352],[0.265,-0.936],[1.704,-1.008],[2.136,8.209],[0.168,0.936],[0,2.16],[-4.201,0],[0,-10.849]],"o":[[-0.168,0.936],[-2.016,8.281],[-1.536,-1.152],[-0.24,-0.96],[-0.48,-2.352],[0,-10.849],[4.176,0],[0,2.16]],"v":[[65.78,34.42],[65.131,37.252],[57.547,47.117],[49.891,37.276],[49.242,34.42],[48.473,27.579],[57.499,15.338],[66.5,27.579]],"c":true}},"nm":"P"},{"ind":6,"ty":"sh","ks":{"a":0,"k":{"i":[[9.626,-5.953],[0,1.68],[7.585,0],[0,-9.721],[-0.312,-1.921],[1.728,1.896],[0.528,0.648],[0,11.402],[-7.176,6.936],[-0.623,0.505],[-4.92,0],[-4.417,-12.841],[-0.336,-1.32],[0,-4.56]],"o":[[0.336,-1.921],[0,-9.721],[-7.561,0],[0,1.656],[-2.04,-1.273],[-0.552,-0.6],[-5.569,-7.057],[0,-13.177],[0.576,-0.6],[3.985,-3.264],[10.777,0],[0.432,1.249],[1.032,4.056],[0,15.77]],"v":[[-46.578,33.004],[-46.073,27.579],[-57.498,12.937],[-68.899,27.579],[-68.419,33.004],[-74.084,28.251],[-75.668,26.403],[-84.742,-2.329],[-72.86,-34.132],[-71.036,-35.765],[-57.498,-40.877],[-32.967,-19.155],[-31.815,-15.314],[-30.232,-2.329]],"c":true}},"nm":"P"},{"ind":7,"ty":"sh","ks":{"a":0,"k":{"i":[[0.48,-2.352],[0.24,-0.96],[1.536,-1.152],[2.04,8.281],[0.192,0.936],[0,2.16],[-4.176,0],[0,-10.849]],"o":[[-0.168,0.936],[-2.136,8.209],[-1.68,-1.008],[-0.264,-0.936],[-0.456,-2.352],[0,-10.849],[4.201,0],[0,2.16]],"v":[[-49.242,34.42],[-49.889,37.276],[-57.547,47.117],[-65.131,37.252],[-65.779,34.42],[-66.5,27.579],[-57.498,15.338],[-48.474,27.579]],"c":true}},"nm":"P"},{"ind":8,"ty":"sh","ks":{"a":0,"k":{"i":[[3.913,-1.584],[0,1.849],[7.585,0],[0,-9.721],[-0.12,-1.177],[2.376,3.312],[0.408,0.696],[0,11.233],[-5.641,7.945],[-0.528,0.648],[-7.825,0],[-5.808,-8.69],[0,-14.041],[-6.121,-7.513]],"o":[[0.385,-2.112],[0,-9.721],[-7.561,0],[0,1.056],[-3.048,-2.113],[-0.48,-0.648],[-4.969,-7.776],[0,-12.097],[0.456,-0.672],[5.449,-6.745],[8.592,0],[-7.825,7.368],[0,12.146],[-3.241,3.649]],"v":[[-88.03,36.172],[-87.43,30.171],[-98.855,15.506],[-110.256,30.171],[-110.064,33.532],[-118.249,25.347],[-119.617,23.33],[-127.586,-5.953],[-118.465,-36.941],[-116.977,-38.909],[-96.574,-49.758],[-74.156,-36.172],[-87.141,-2.329],[-77.18,28.251]],"c":true}},"nm":"P"},{"ind":9,"ty":"sh","ks":{"a":0,"k":{"i":[[0.48,-2.352],[0.216,-0.888],[1.56,-1.152],[1.873,8.929],[0.12,0.96],[0,1.584],[-4.2,0],[0,-10.873]],"o":[[-0.168,0.888],[-2.136,8.257],[-1.824,-1.08],[-0.216,-0.96],[-0.264,-1.68],[0,-10.873],[4.201,0],[0,2.184]],"v":[[-90.598,37.036],[-91.199,39.676],[-98.903,49.71],[-106.92,37.996],[-107.448,35.092],[-107.856,30.171],[-98.855,17.906],[-89.83,30.171]],"c":true}},"nm":"P"},{"ind":10,"ty":"sh","ks":{"a":0,"k":{"i":[[2.64,-1.032],[0,0.432],[6.769,0],[0.504,-7.249],[2.232,9.025],[0.168,0.96],[0,3.408],[-6.841,7.009],[-0.672,0.576],[-2.184,0.912],[-0.96,0.24],[-1.704,0],[-4.609,-4.728],[0,-12.818],[-5.353,-8.185]],"o":[[0.024,-0.456],[0,-8.641],[-6.192,0],[-5.856,-4.561],[-0.24,-0.96],[-0.6,-3.144],[0,-12.842],[0.624,-0.648],[1.897,-1.608],[0.936,-0.409],[1.632,-0.456],[5.785,0],[-6.121,8.377],[0,11.905],[-2.329,2.136]],"v":[[-128.882,29.763],[-128.834,28.443],[-139.012,15.434],[-149.093,26.355],[-161.718,5.256],[-162.342,2.376],[-163.254,-7.465],[-151.949,-38.717],[-150.029,-40.541],[-143.884,-44.381],[-141.028,-45.366],[-136.011,-46.038],[-120.073,-38.741],[-129.986,-5.953],[-121.369,25.011]],"c":true}},"nm":"P"},{"ind":11,"ty":"sh","ks":{"a":0,"k":{"i":[[0.071,-0.696],[0.169,-0.864],[1.633,-1.44],[0.768,8.809],[0,0.744],[-0.024,0.168],[-3.552,0],[0,-9.409]],"o":[[-0.072,0.84],[-1.368,8.233],[-1.944,-1.44],[-0.072,-0.768],[0,-0.168],[0.12,-8.977],[3.625,0],[0,0.672]],"v":[[-131.33,30.507],[-131.667,33.052],[-139.06,44.597],[-146.668,30.723],[-146.788,28.443],[-146.764,27.963],[-139.012,17.834],[-131.235,28.443]],"c":true}},"nm":"P"},{"ind":12,"ty":"sh","ks":{"a":0,"k":{"i":[[0.672,0.528],[5.4,0],[5.016,-5.041],[8.425,0],[6.265,-9.193],[5.4,0],[1.44,-20.738],[3.72,1.056],[0.84,0.336],[2.832,5.88],[0.6,-0.288],[-0.288,-0.6],[-8.161,-4.273],[9.217,6],[12.649,0],[4.369,-3.48],[9.337,0],[5.881,-7.153],[6.361,0],[2.424,-0.912],[0.816,-0.408],[1.488,-1.224],[0.648,-0.6],[0,-13.994],[-0.433,-2.736],[-0.216,-0.984],[-7.344,-5.065],[-3.72,0],[-1.344,9.338],[0,0],[-2.809,2.52],[-3.888,-2.28],[-3.48,0],[-2.281,9.913],[-3.817,4.297],[-2.808,-1.464],[-3.264,0],[-2.232,10.009],[0,17.571],[0.744,3.553],[-11.641,0],[-3.216,0.552],[-5.113,0],[-0.912,0.072],[0,-0.504],[-11.281,-5.809],[-2.881,0],[-2.136,9.961],[-2.305,2.52],[-4.728,-1.608],[-2.856,0],[-1.825,10.441],[-2.976,4.056],[-3.265,-1.08],[0,0],[-3.144,0],[-0.312,9.745],[-2.352,11.042],[-0.144,1.008],[0,2.904],[7.777,7.393]],"o":[[-4.345,-3.529],[-6.361,0],[-5.881,-7.153],[-9.313,0],[-4.368,-3.48],[-15.41,0],[-4.944,0.264],[-0.936,-0.24],[-9.817,-3.673],[-0.288,-0.6],[-0.576,0.288],[2.664,5.52],[-14.882,1.488],[-4.248,-15.41],[-5.401,0],[-6.264,-9.193],[-8.425,0],[-5.041,-5.041],[-2.64,0],[-0.84,0.288],[-1.632,0.84],[-0.672,0.528],[-7.777,7.393],[0,2.904],[0.144,1.008],[2.328,11.042],[0.312,9.745],[3.145,0],[0,0],[3.264,-1.08],[2.976,4.056],[1.824,10.441],[2.857,0],[4.728,-1.608],[2.304,2.52],[2.136,9.961],[2.88,0],[11.282,-5.809],[0,-3.864],[8.594,5.017],[3.144,0],[3.793,1.368],[0.864,0],[-0.024,0.504],[0,17.571],[2.233,10.009],[3.264,0],[2.808,-1.464],[3.816,4.297],[2.281,9.913],[3.505,0],[3.888,-2.28],[2.808,2.52],[0,0],[1.344,9.338],[3.721,0],[7.345,-5.065],[0.192,-0.984],[0.432,-2.736],[0,-13.994],[-0.624,-0.6]],"v":[[150.822,-42.917],[136.012,-48.438],[118.586,-40.661],[96.575,-52.158],[72.332,-37.781],[57.499,-43.277],[27.975,-6.265],[14.99,-7.561],[12.325,-8.425],[-5.701,-25.539],[-7.309,-26.091],[-7.861,-24.483],[7.717,-7.777],[-29.776,-16.898],[-57.498,-43.277],[-72.332,-37.781],[-96.574,-52.158],[-118.585,-40.685],[-136.011,-48.438],[-143.62,-47.046],[-146.116,-45.99],[-150.821,-42.917],[-152.789,-41.213],[-165.655,-7.465],[-165.006,1.008],[-164.454,4.008],[-149.165,29.235],[-139.012,47.093],[-129.17,32.403],[-129.146,32.403],[-119.977,27.003],[-109.608,36.604],[-98.855,52.158],[-88.581,38.956],[-75.596,30.051],[-67.867,36.052],[-57.498,49.59],[-47.154,36.076],[-27.831,-2.329],[-28.96,-13.514],[2.365,-5.137],[11.917,-5.929],[25.215,-3.745],[27.855,-3.841],[27.831,-2.329],[47.154,36.076],[57.499,49.59],[67.868,36.052],[75.597,30.051],[88.582,38.956],[98.855,52.158],[109.609,36.604],[119.978,27.003],[129.147,32.403],[129.171,32.403],[139.012,47.093],[149.165,29.235],[164.479,4.008],[165.007,1.008],[165.655,-7.465],[152.79,-41.213]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[345.326,754.419]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.24,-0.48],[-0.432,-0.36],[-1.632,-13.106],[10.777,4.968],[7.849,20.979],[0.553,-0.024],[0.072,-0.552],[-3.168,-4.056],[1.872,10.513],[0.168,0.744],[0.456,0.096],[0.288,-0.384],[-1.704,-4.633],[2.544,9.314],[0.217,1.104],[0.096,0.456],[0,0],[0.648,-0.144],[-0.144,-0.648],[0,0],[-0.552,-2.04],[-1.608,-3.84],[1.729,3.768],[0.48,-0.84],[-6.865,-4.969],[-0.24,0],[-0.24,0.24],[0.36,0.48],[0.168,7.321],[-22.587,-10.465],[-0.36,0.384],[0.24,0.456],[-3.721,8.473],[-43.013,-13.634],[-0.24,0.552],[0.528,0.312],[-0.432,15.362],[-15.097,-6.961],[-4.105,-10.177],[-0.552,0.072],[-0.048,0.553],[4.585,5.592],[1.56,-14.354],[-0.432,-0.216],[-0.192,0],[-0.24,0.216],[-1.176,1.368],[-6.865,13.129],[-2.041,2.377],[6.361,-6.193],[-0.264,-0.48],[-0.432,0],[-0.072,0.024],[-5.977,7.656],[-5.256,2.28],[2.568,-3.216],[-0.36,-0.456],[-0.36,0],[-0.168,0.072],[-10.561,24.699],[4.512,-6.288],[-0.384,-0.432],[-0.504,0.264],[-7.369,23.714],[3.265,-6.193],[-0.408,-0.361],[-0.455,0.311],[-2.857,25.803],[0,0],[0.432,2.928],[0,-0.096],[5.784,-6.193],[0.144,0.312],[0.504,-0.048],[0.096,-0.528],[8.209,-6.481],[0.072,0.408],[0.553,0.048],[0.192,-0.505],[6.408,-4.681],[-0.72,1.896],[-0.192,0.744],[0,0.528],[0.648,0],[0,-0.672],[0.48,-1.464],[5.184,-6.625],[7.657,-3.12],[2.16,4.273],[-0.648,0.024],[0.024,0.648],[0.72,0.048],[1.272,-1.08],[0,0],[0.072,-0.072],[2.76,-5.256],[18.386,-1.416],[0.36,3.288],[0.624,-0.072],[-0.072,-0.648],[12.242,-14.402],[0.048,-0.072],[0.624,-0.648],[6.529,1.416]],"o":[[-0.24,0.504],[0.144,0.12],[-5.545,-8.185],[-15.842,-7.321],[-0.192,-0.527],[-0.551,0.072],[-1.68,12.506],[-37.492,-13.777],[-0.192,-1.057],[-0.096,-0.456],[-0.456,-0.096],[-5.305,7.273],[-23.138,-11.69],[-0.432,-1.488],[-0.12,-0.6],[0,0],[-0.12,-0.648],[-0.648,0.119],[0,0],[0.24,1.272],[-1.56,5.521],[-4.272,-4.152],[-0.432,0.864],[2.521,5.017],[0.216,0.168],[0.312,0],[0.408,-0.432],[-0.048,-0.096],[3.816,10.201],[0.456,0.216],[0.36,-0.384],[-0.072,-0.096],[2.064,11.689],[0.577,0.192],[0.264,-0.552],[-0.384,-0.216],[8.929,18.602],[12.698,5.881],[0.216,0.505],[0.528,-0.072],[0.96,-9.673],[7.345,6.312],[-0.048,0.504],[0.192,0.096],[0.288,0],[1.416,-1.321],[21.243,-0.312],[2.256,-4.297],[1.872,4.441],[-0.384,0.384],[0.216,0.384],[0.072,0],[10.585,-2.304],[4.416,-5.641],[-1.128,2.616],[-0.36,0.432],[0.24,0.288],[0.168,0],[3.072,-1.536],[-0.216,4.273],[-0.336,0.432],[0.36,0.408],[3.36,-1.776],[0.24,3.456],[-0.264,0.504],[0.408,0.36],[0.168,-0.12],[0,0],[-0.84,-2.904],[-0.024,0.096],[0,20.187],[3.48,-9.889],[-0.216,-0.48],[-0.504,0.048],[-4.225,20.162],[4.921,-9.937],[-0.12,-0.529],[-0.504,-0.047],[-7.561,20.498],[1.464,-2.425],[0.336,-0.96],[0.288,-1.128],[0,-0.672],[-0.672,0],[0,0.504],[-6.793,1.92],[-5.185,6.648],[4.801,-7.128],[0.624,-0.408],[0.672,0],[0,-0.672],[-1.488,0.024],[0,0.024],[-0.097,0.072],[-2.688,2.448],[-6.361,12.17],[11.209,-14.57],[-0.072,-0.672],[-0.648,0.072],[0.337,3.264],[-0.048,0.048],[-0.576,0.672],[0.312,-20.378],[-0.552,-0.12]],"v":[[-16.706,25.659],[-16.37,27.123],[-1.92,50.766],[-28.539,32.86],[-70.184,-3.721],[-71.457,-4.513],[-72.513,-3.457],[-67.496,20.618],[-111.133,-27.699],[-111.661,-30.412],[-112.573,-31.324],[-113.797,-30.868],[-115.214,-9.961],[-147.953,-46.662],[-148.89,-50.574],[-149.202,-52.158],[-149.37,-53.07],[-150.786,-54.006],[-151.722,-52.59],[-151.554,-51.726],[-150.45,-46.71],[-149.058,-31.996],[-157.771,-44.333],[-159.163,-41.765],[-145.601,-25.971],[-144.905,-25.731],[-144.041,-26.091],[-143.945,-27.651],[-148.697,-41.213],[-113.317,-6.385],[-111.949,-6.649],[-111.757,-8.041],[-113.389,-26.763],[-63.056,24.675],[-61.615,24.027],[-62.095,22.491],[-70.52,1.632],[-29.548,35.02],[-1.776,56.142],[-0.48,56.863],[0.528,55.806],[-8.281,31.948],[6.145,64.736],[6.793,65.936],[7.345,66.08],[8.161,65.744],[12.073,61.711],[49.59,30.316],[55.951,19.682],[51.15,39.989],[50.934,41.429],[51.99,42.053],[52.23,42.029],[75.585,23.379],[89.482,10.033],[84.034,19.058],[84.034,20.57],[84.97,21.002],[85.498,20.882],[114.205,-13.922],[108.277,2.928],[108.349,4.416],[109.813,4.68],[142.697,-37.252],[139.144,-22.443],[139.408,-20.978],[140.872,-20.882],[159.163,-57.271],[159.163,-57.295],[157.266,-66.08],[157.218,-65.792],[143.465,-26.379],[143.921,-43.013],[142.697,-43.709],[141.665,-42.749],[113.197,-0.624],[116.294,-19.682],[115.189,-20.643],[113.989,-19.85],[89.243,15.722],[92.459,9.097],[93.251,6.553],[93.659,4.032],[92.459,2.832],[91.259,4.032],[90.587,7.057],[73.689,21.915],[55.494,38.524],[57.799,18.002],[59.695,17.354],[60.871,16.154],[59.647,14.954],[55.543,16.706],[55.519,16.73],[55.278,16.946],[47.454,29.187],[14.09,59.239],[24.027,26.067],[22.707,24.987],[21.65,26.307],[10.657,59.695],[10.513,59.863],[8.737,61.831],[-15.362,25.011]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[342.05,437.894]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[4.369,16.178],[0.648,-0.168],[-0.168,-0.648],[-7.657,-3.073],[-0.144,0],[-0.192,0.481],[0.624,0.24]],"o":[[-0.168,-0.648],[-0.648,0.168],[4.608,17.09],[0.144,0.048],[0.48,0],[0.24,-0.624],[-7.009,-2.808]],"v":[[-11.305,-19.13],[-12.77,-19.97],[-13.609,-18.506],[11.978,20.067],[12.41,20.139],[13.538,19.394],[12.866,17.834]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[228.733,355.924]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.648,-0.072],[-0.048,-0.648],[-0.264,-0.24],[-0.264,0],[-0.24,0.24],[0.385,0.481],[-1.152,3.409],[0.625,0.216],[0.216,-0.624],[-4.801,-12.074],[1.488,26.907]],"o":[[-0.672,0.048],[2.304,41.837],[0.216,0.192],[0.313,0],[0.432,-0.432],[-10.465,-12.409],[0.216,-0.624],[-0.623,-0.216],[-1.104,3.289],[-7.969,-9.866],[-0.024,-0.672]],"v":[[-14.594,-33.412],[-15.722,-32.14],[13.681,33.196],[14.449,33.484],[15.314,33.124],[15.385,31.491],[7.753,-4.681],[7.008,-6.217],[5.472,-5.449],[7.945,23.499],[-13.346,-32.26]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[251.392,374.839]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.648,-0.096],[-0.12,-0.648],[-14.09,-12.602],[-0.288,0],[-0.216,0.168],[0.24,0.529],[-3.456,10.009],[0.624,0.216],[0.216,-0.624],[-4.321,-17.042],[0.048,0.216]],"o":[[-0.672,0.12],[0.144,1.008],[0.216,0.192],[0.264,0],[0.456,-0.337],[-6.552,-13.081],[0.216,-0.648],[-0.624,-0.216],[-3.264,9.433],[-10.441,-12.602],[-0.096,-0.672]],"v":[[-9.181,-5.353],[-10.165,-3.961],[8.149,33.388],[8.941,33.7],[9.661,33.436],[10.021,31.947],[10.069,-31.948],[9.325,-33.484],[7.813,-32.74],[5.965,27.651],[-7.813,-4.345]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[309.586,348.052]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.584,5.208],[0.624,-0.192],[-0.192,-0.624],[1.729,-12.674],[-0.433,-0.24],[-0.168,0],[-0.24,0.216],[-1.056,8.617],[3.576,22.371],[0.649,-0.12],[-0.12,-0.648],[6.577,-15.962],[0,0.12],[0.744,-0.072],[-0.048,-0.672],[0.984,-7.873],[0,-0.072],[2.688,-4.416]],"o":[[-0.192,-0.624],[-0.624,0.192],[1.704,5.641],[-0.072,0.504],[0.192,0.072],[0.312,0],[4.704,-4.441],[9.169,-18.722],[-0.096,-0.648],[-0.648,0.096],[3.073,19.299],[0.408,-7.249],[-0.024,-0.648],[-0.672,0.024],[0.217,3.888],[-0.024,0.096],[-0.841,6.673],[0.36,-14.449]],"v":[[-11.617,-9.529],[-13.105,-10.321],[-13.897,-8.833],[-7.561,39.725],[-6.936,40.949],[-6.384,41.069],[-5.544,40.757],[2.496,18.674],[10.514,-39.965],[9.145,-40.949],[8.16,-39.581],[3.193,11.305],[3.337,-1.704],[2.089,-2.832],[0.96,-1.56],[0.193,18.002],[0.168,18.266],[-4.897,36.076]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[371.309,397.497]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.456,-0.456],[-0.312,0],[-0.216,0.192],[-2.329,41.837],[0.673,0.048],[0.024,-0.648],[7.969,-9.889],[1.104,3.264],[0.624,-0.216],[-0.216,-0.623],[10.441,-12.41]],"o":[[0.216,0.216],[0.264,0],[0.264,-0.216],[0.024,-0.672],[-0.624,-0.048],[-1.488,26.86],[4.8,-12.073],[-0.216,-0.649],[-0.648,0.216],[1.152,3.433],[-0.408,0.48]],"v":[[-15.29,33.124],[-14.45,33.46],[-13.682,33.172],[15.746,-32.14],[14.593,-33.412],[13.345,-32.284],[-7.945,23.475],[-5.473,-5.448],[-6.985,-6.217],[-7.753,-4.705],[-15.362,31.492]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.6,0.4,0.212,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[448.863,363.557]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.757,9.316],[7.94,-8.981],[0,0]],"o":[[-1.702,30.589],[-2.183,9.838],[32.618,-32.794]],"v":[[12.74,-38.453],[-11.696,21.759],[-16.309,38.452]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[451.868,369.87]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[9.169,-18.722],[4.705,-4.441],[0.312,0],[0.192,0.072],[-0.072,0.505],[2.17,8.507],[6.467,-16.873],[-5.342,24.145],[15.434,35.357]],"o":[[-1.056,8.617],[-0.24,0.216],[-0.168,0],[-0.432,-0.241],[1.593,-11.683],[1.624,7.155],[0,0],[0,0],[3.576,22.371]],"v":[[-3.769,13.193],[-11.81,35.276],[-12.651,35.588],[-13.203,35.468],[-13.826,34.243],[-19.682,-12.546],[-18.216,45.446],[2.31,16.45],[4.247,-45.446]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[377.575,402.978]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[5.5,8.707],[0,0],[0.127,-0.044],[0.134,0],[0.216,0.192],[8.694,21.374],[0.186,-0.192],[0.48,0],[0.144,0.048],[4.609,17.091],[-15.747,-12.837],[-24.16,-5.205]],"o":[[0,0],[-0.11,0.087],[-0.126,0.049],[-0.264,0],[-0.186,-0.169],[-0.22,0.077],[-0.192,0.48],[-0.144,0],[-7.657,-3.072],[-0.867,5.586],[0,0],[0,0]],"v":[[20.406,28.195],[20.406,28.195],[20.055,28.398],[19.662,28.476],[18.894,28.188],[-3.294,-4.913],[-3.908,-4.529],[-5.037,-3.784],[-5.468,-3.856],[-31.055,-42.43],[-7.96,5.092],[31.922,42.43]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[246.179,379.847]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.141,0.988],[-11.113,-7.267],[1.501,7.88]],"o":[[-0.055,14.984],[0,0],[-13.422,-12.772]],"v":[[-10.21,-24.879],[10.264,24.879],[7.301,11.679]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[309.63,368.97]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0]],"o":[[0,0]],"v":[[317.399,327.475]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.672,0.576],[0.26,0.206],[0,0],[0.429,11.24],[1.563,2.472],[0.855,-0.869],[0,-12.818],[5.376,-8.185],[-2.665,-1.032],[0,0.408],[-6.745,0],[-0.504,-7.249],[-2.233,9.025],[-0.169,0.96],[0,3.408],[6.841,7.009]],"o":[[-0.255,-0.217],[0,0],[23.545,51.991],[-1.496,-39.14],[-0.913,0.72],[6.144,8.377],[0,11.905],[2.328,2.112],[-0.024,-0.456],[0,-8.641],[6.192,0],[5.857,-4.561],[0.239,-0.936],[0.6,-3.144],[0,-12.842],[-0.624,-0.648]],"v":[[3.625,-34.832],[2.845,-35.448],[2.785,-35.417],[-11.118,12.734],[-23.667,-35.414],[-26.33,-33.056],[-16.393,-0.244],[-25.034,30.72],[-17.521,35.448],[-17.569,34.152],[-7.392,21.143],[2.689,32.065],[15.315,10.966],[15.939,8.109],[16.851,-1.755],[5.545,-33.008]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[491.731,748.71]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[26.753,29.399],[0.732,-1.084],[0,-14.066],[6.097,-7.513],[-3.912,-1.584],[0,1.849],[-3.809,2.037],[0.704,0.596]],"o":[[-0.796,0.963],[7.849,7.369],[0,12.145],[3.217,3.649],[-0.384,-2.112],[0,-6.875],[-0.779,-0.411],[-4.535,-3.845]],"v":[[-12.23,-37.719],[-14.523,-34.648],[-1.514,-0.78],[-11.451,29.799],[-0.626,37.72],[-1.226,31.719],[4.544,18.372],[2.307,16.886]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[433.982,752.871]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[5.617,7.945],[0.528,0.624],[3.112,1.841],[0,0],[12.551,-5.412],[0,-6.705],[0.12,-1.176],[-2.4,3.313],[-0.432,0.696],[0,11.233]],"o":[[-0.48,-0.672],[-2.5,-3.095],[0,0],[19.862,34.97],[3.615,2.105],[0,1.056],[3.048,-2.088],[0.48,-0.672],[4.969,-7.777],[0,-12.098]],"v":[[2.245,-30.555],[0.733,-32.499],[-7.746,-39.94],[-8.388,-39.628],[-11.474,23.395],[-5.988,36.581],[-6.18,39.94],[2.029,31.78],[3.397,29.74],[11.366,0.457]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[461.571,748.01]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[7.177,6.937],[0.624,0.504],[0.728,0.478],[9.452,-11.159],[0,-5.248],[0.312,-1.92],[-1.728,1.897],[-0.504,0.648],[0,11.377]],"o":[[-0.576,-0.6],[-0.691,-0.566],[10.836,22.043],[2.22,2.431],[0,1.656],[2.017,-1.248],[0.552,-0.6],[5.569,-7.057],[0,-13.178]],"v":[[-2.271,-31.977],[-4.096,-33.608],[-6.231,-35.159],[-9.609,18.257],[-6.233,29.734],[-6.713,35.159],[-1.047,30.406],[0.536,28.534],[9.609,-0.172]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[420.458,752.263]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.074,0.861],[3.384,9.136],[-6.943,-4.305],[0,1.68]],"o":[[-5.783,-1.04],[2.485,10.234],[-0.336,-1.92],[0,-0.954]],"v":[[7.068,3.32],[-7.431,-11.43],[7.431,11.43],[6.926,6.006]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[384.473,775.993]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.193,1.3],[3.276,6.215],[-2.906,-3.681],[-0.552,-0.601],[-2.04,-1.272],[0,1.657]],"o":[[-5.522,-0.788],[1.577,5.136],[0.528,0.648],[1.728,1.896],[-0.312,-1.92],[0,-1.542]],"v":[[6.873,0.352],[-7.027,-9.995],[-0.22,3.394],[1.363,5.243],[7.027,9.995],[6.548,4.57]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[269.878,777.428]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.432,1.248],[6.557,3.486],[9.135,-9.787],[0,-5.406],[0.336,-1.92],[0,15.77],[1.032,4.057]],"o":[[-3.036,-8.829],[11.684,25.742],[2.359,2.416],[0,1.681],[9.625,-5.953],[0,-4.561],[-0.336,-1.32]],"v":[[6.98,-16.443],[-7.975,-35.714],[-9.716,18.603],[-6.126,30.29],[-6.629,35.715],[9.716,0.383],[8.132,-12.603]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[305.378,751.708]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-7.825,7.369],[2.504,2.065],[-0.466,-13.983],[0.697,-2.061],[-1.318,-2.14],[-0.116,-0.215],[-0.171,-0.43],[-0.118,-0.374],[-0.099,-0.425],[-0.085,-0.567],[-0.038,-0.376],[0,-1.115],[0.385,-2.112],[-3.241,3.648],[0,12.145]],"o":[[-2.034,-3.042],[-11.526,14.075],[0.087,2.61],[2.474,0.647],[0.126,0.202],[0.205,0.388],[0.14,0.346],[0.123,0.394],[0.121,0.52],[0.053,0.358],[0.103,0.988],[0,1.848],[3.913,-1.584],[-6.121,-7.513],[0,-14.042]],"v":[[10.618,-32.345],[3.764,-39.998],[-9.644,12.783],[-10.618,19.802],[-4.933,23.993],[-4.562,24.606],[-4.002,25.839],[-3.618,26.922],[-3.277,28.14],[-2.978,29.785],[-2.821,30.859],[-2.655,33.999],[-3.256,39.999],[7.595,32.079],[-2.368,1.499]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[260.551,750.592]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[4.019,7.837],[-2.011,-3.148],[-0.48,-0.648],[-3.048,-2.112],[0,1.056],[-0.27,1.486]],"o":[[1.298,3.864],[0.408,0.696],[2.376,3.312],[-0.12,-1.176],[0,-1.824],[-5.235,-0.786]],"v":[[-7.394,-10.393],[-2.417,0.191],[-1.049,2.208],[7.136,10.393],[6.944,7.032],[7.394,2.122]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[228.125,777.558]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-6.121,8.377],[3.097,1.217],[-0.884,-32.082],[4.947,9.482],[-4.803,-3.739],[-6.193,0],[0,-8.641],[0.024,-0.456],[-2.328,2.137],[0,11.905]],"o":[[-2.62,-2.688],[5.988,3.469],[0.4,14.496],[2.485,6.915],[0.504,-7.249],[6.769,0],[0,0.432],[2.64,-1.032],[-5.353,-8.185],[0,-12.818]],"v":[[20.098,-31.318],[11.453,-37.185],[3.888,8.43],[-20.098,17.378],[-8.921,33.778],[1.16,22.856],[11.337,35.865],[11.289,37.185],[18.802,32.432],[10.185,1.469]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.91,0.784,0.663,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[205.154,746.997]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.776,6.457],[2.856,3.984],[1.009,13.537],[-0.552,4.752],[1.658,3.086],[0.788,1.83],[0.025,0.057],[0.647,2.017],[0.216,0.744],[0.168,-0.12],[0.408,0.36],[-0.264,0.504],[0.24,3.456],[0.514,-1.311],[0.168,-0.404],[0.416,-0.882],[0.211,-0.423],[0.471,-0.856],[0.199,-0.346],[1.529,-2.132],[0.223,-0.303],[0.568,-0.721],[0.263,-0.324],[0.566,-0.659],[0.24,-0.273],[0.747,-0.794],[0.068,-0.073],[0.727,-0.722],[0.3,-0.29],[0.433,-0.405],[0.335,-0.303],[0.349,-0.309],[0.337,-0.288],[0.24,-0.201],[0.777,-0.598],[0.67,-0.354],[0.36,0.408],[-0.336,0.433],[-0.216,4.272],[3.072,-1.537],[0.168,0],[0.24,0.287],[-0.36,0.431],[-1.128,2.617],[4.417,-5.641],[8.019,-3.467],[4.819,-4.692],[-0.265,-0.48],[-0.432,0],[-0.072,0.024],[-5.976,7.657],[-5.257,2.281],[2.569,-3.216],[-0.36,-0.456],[-0.359,0],[-0.169,0.072],[-10.537,23.964],[0,0],[3.256,-4.537],[-0.384,-0.432],[-0.504,0.264],[-1.763,1.343],[0,0],[86.589,-30.363],[19.329,-9.646],[-35.052,80.876],[-1.482,-1.073],[-0.241,0],[-0.24,0.24],[0.36,0.48],[0.168,7.321],[-22.586,-10.465],[-0.36,0.384],[0.24,0.456],[-1.572,7.673],[3.756,10.04],[-0.048,-0.096],[0.408,-0.432],[0.312,0],[0.216,0.168],[1.472,1.418],[0.808,0.925],[0.099,0.115],[1.095,1.784],[0.113,0.191],[0.413,0.822],[1.56,-2.04],[-0.075,-1.133],[-0.024,-1.14],[0,0],[0.191,-2.631],[6.601,-9.169],[3.384,-2.256],[0,-7.128],[2.712,-7.537],[-11.114,-35.692],[-0.624,-2.016],[0,-0.024],[-1.104,-3.336],[-1.632,0.84],[-0.84,0.288],[-2.64,0],[-5.041,-5.041],[-8.425,0],[-6.264,-9.193],[-5.4,0],[-4.249,-15.409],[-14.882,1.489],[2.664,5.521],[-0.576,0.288],[-0.288,-0.6],[-9.817,-3.672],[-0.936,-0.24],[-4.944,0.264],[-15.41,0],[-4.368,-3.481],[-9.313,0],[-5.881,-7.153],[-6.361,0],[-4.345,-3.528],[-8.329,109.861],[0,9.314]],"o":[[-3.384,-2.256],[-6.601,-9.169],[-0.36,-4.969],[-1.995,-2.548],[-0.91,-1.695],[-0.024,-0.057],[-0.802,-1.88],[-0.24,-0.72],[-2.856,25.802],[-0.456,0.312],[-0.408,-0.36],[3.264,-6.193],[-0.423,1.36],[-0.16,0.41],[-0.379,0.908],[-0.202,0.43],[-0.439,0.884],[-0.194,0.351],[-1.359,2.373],[-0.221,0.308],[-0.557,0.756],[-0.261,0.332],[-0.562,0.694],[-0.239,0.279],[-0.752,0.856],[-0.068,0.073],[-0.745,0.787],[-0.304,0.302],[-0.445,0.43],[-0.342,0.32],[-0.361,0.328],[-0.352,0.309],[-0.249,0.213],[-0.92,0.769],[-1.895,1.46],[-0.504,0.264],[-0.384,-0.432],[4.513,-6.288],[-10.561,24.699],[-0.169,0.072],[-0.359,0],[-0.36,-0.456],[2.569,-3.217],[-5.257,2.281],[-5.052,6.473],[0.445,4.898],[-0.385,0.384],[0.216,0.384],[0.072,0],[10.585,-2.304],[4.417,-5.641],[-1.128,2.617],[-0.36,0.432],[0.24,0.288],[0.168,0],[3.032,-1.516],[0,0],[-0.681,3.781],[-0.336,0.433],[0.36,0.408],[0.638,-0.337],[0,0],[58.783,-44.375],[-50.26,17.624],[-148.744,74.235],[1.721,1.695],[0.216,0.168],[0.312,0],[0.408,-0.432],[-0.048,-0.096],[3.817,10.202],[0.456,0.217],[0.36,-0.384],[-0.063,-0.084],[-21.808,-10.413],[0.168,7.321],[0.36,0.48],[-0.24,0.24],[-0.241,0],[-1.837,-1.329],[-0.944,-0.91],[-0.1,-0.115],[-1.563,-1.828],[-0.118,-0.193],[-0.508,-0.858],[-1.368,2.329],[0.125,1.121],[0.071,1.129],[0,0],[0.056,2.573],[-1.008,13.537],[-2.856,3.984],[1.776,6.457],[0,9.314],[7.105,93.227],[0.672,2.16],[0,0],[1.248,3.888],[1.488,-1.224],[0.816,-0.408],[2.424,-0.912],[6.361,0],[5.881,-7.153],[9.337,0],[4.369,-3.481],[12.65,0],[9.216,6.001],[-8.161,-4.272],[-0.288,-0.6],[0.6,-0.288],[2.832,5.881],[0.841,0.336],[3.72,1.056],[1.44,-20.739],[5.4,0],[6.265,-9.193],[8.425,0],[5.016,-5.041],[5.4,0],[11.113,-33.508],[-2.688,-7.513],[0,-7.128]],"v":[[187.798,-102.625],[178.389,-112.034],[166.603,-147.27],[166.867,-161.912],[161.378,-170.409],[158.83,-175.703],[158.752,-175.869],[156.57,-181.714],[155.898,-183.898],[137.608,-147.51],[136.144,-147.606],[135.88,-149.07],[139.432,-163.88],[138.012,-159.878],[137.508,-158.665],[136.32,-155.975],[135.701,-154.695],[134.333,-152.087],[133.753,-151.033],[129.398,-144.269],[128.728,-143.36],[127.041,-141.141],[126.256,-140.156],[124.564,-138.128],[123.846,-137.289],[121.596,-134.807],[121.391,-134.588],[119.183,-132.331],[118.282,-131.454],[116.963,-130.197],[115.947,-129.261],[114.884,-128.311],[113.841,-127.399],[113.12,-126.795],[110.549,-124.72],[106.548,-121.947],[105.084,-122.211],[105.012,-123.7],[110.941,-140.549],[82.234,-105.745],[81.705,-105.625],[80.769,-106.057],[80.769,-107.569],[86.218,-116.595],[72.32,-103.249],[53.603,-86.113],[47.886,-69.837],[47.67,-68.397],[48.726,-67.773],[48.966,-67.797],[72.32,-86.447],[86.218,-99.793],[80.769,-90.768],[80.769,-89.255],[81.705,-88.823],[82.234,-88.943],[110.518,-122.821],[110.467,-119.741],[105.012,-106.898],[105.084,-105.409],[106.548,-105.145],[110.269,-107.697],[110.269,-107.696],[96.755,100.655],[-10.942,81.622],[-153.736,-140.054],[-148.866,-135.797],[-148.169,-135.557],[-147.305,-135.917],[-147.209,-137.477],[-151.962,-151.039],[-116.582,-116.211],[-115.214,-116.475],[-115.022,-117.867],[-117.614,-133.52],[-151.962,-167.841],[-147.209,-154.279],[-147.305,-152.719],[-148.169,-152.359],[-148.866,-152.599],[-153.805,-156.738],[-156.417,-159.496],[-156.719,-159.841],[-160.682,-165.287],[-161.031,-165.864],[-162.427,-168.393],[-166.82,-161.864],[-166.526,-158.482],[-166.384,-155.077],[-166.384,-155.076],[-166.58,-147.27],[-178.365,-112.034],[-187.774,-102.625],[-185.086,-82.007],[-189.358,-56.396],[-156.33,129.89],[-154.386,136.131],[-154.362,136.155],[-150.81,146.98],[-146.105,143.908],[-143.609,142.852],[-136,141.46],[-118.574,149.213],[-96.563,137.739],[-72.321,152.117],[-57.487,146.62],[-29.763,172.999],[7.729,182.12],[-7.849,165.414],[-7.297,163.806],[-5.689,164.358],[12.337,181.472],[15.002,182.336],[27.987,183.633],[57.511,146.62],[72.344,152.117],[96.587,137.739],[118.598,149.237],[136.024,141.46],[150.834,146.98],[189.358,-56.444],[185.11,-82.007]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[345.314,564.521]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[8.929,18.602],[-0.384,-0.216],[0.264,-0.553],[0.576,0.192],[1.606,0.585],[-13.8,-6.363],[-4.104,-10.177],[-0.552,0.072],[-0.048,0.552],[4.585,5.593],[-1.955,-2.5],[12.258,5.677]],"o":[[-0.432,15.362],[0.528,0.313],[-0.24,0.552],[-1.725,-0.547],[9.355,15.377],[12.697,5.881],[0.216,0.504],[0.528,-0.072],[0.96,-9.673],[1.995,1.714],[-4.416,-9.49],[-15.098,-6.961]],"v":[[-35.788,-36.052],[-27.363,-15.194],[-26.883,-13.657],[-28.323,-13.009],[-33.296,-14.714],[5.184,14.138],[32.955,35.26],[34.251,35.98],[35.26,34.924],[26.45,11.065],[32.486,17.434],[5.184,-2.664]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[307.318,475.578]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[7.345,6.313],[0.96,-9.673],[0.528,-0.072],[0.174,0.056],[1.046,-9.625],[-0.432,-0.216],[-0.192,0],[-0.24,0.216],[-1.176,1.369],[-6.865,13.129],[-0.889,1.588],[0.035,-0.007],[0.072,0],[0.216,0.384],[-0.384,0.384],[1.872,4.44],[2.256,-4.297],[21.243,-0.312],[1.416,-1.32],[0.288,0],[0.192,0.096],[-0.048,0.504]],"o":[[4.585,5.593],[-0.048,0.552],[-0.192,0.025],[4.661,6.539],[-0.048,0.504],[0.192,0.096],[0.288,0],[1.416,-1.32],[21.243,-0.311],[0.944,-1.798],[-0.035,0.008],[-0.072,0.024],[-0.432,0],[-0.264,-0.48],[6.361,-6.193],[-2.041,2.376],[-6.865,13.129],[-1.176,1.368],[-0.24,0.216],[-0.192,0],[-0.432,-0.216],[1.56,-14.354]],"v":[[-33.052,-19.335],[-24.243,4.525],[-25.251,5.581],[-25.788,5.48],[-18.626,30.255],[-17.978,31.456],[-17.426,31.599],[-16.61,31.264],[-12.698,27.23],[24.819,-4.164],[27.561,-9.279],[27.459,-9.253],[27.219,-9.229],[26.163,-9.853],[26.379,-11.293],[31.18,-31.599],[24.819,-20.966],[-12.698,10.43],[-16.61,14.462],[-17.426,14.798],[-17.978,14.654],[-18.626,13.454]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[366.821,489.176]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.94,10.984],[-0.072,-0.096],[0.36,-0.383],[0.275,-0.028],[-38.97,-12.352],[-0.24,0.552],[0.528,0.312],[0.867,12.549]],"o":[[-3.72,8.473],[0.24,0.456],[-0.204,0.218],[2.69,12.832],[0.576,0.192],[0.264,-0.552],[-0.352,-0.198],[-36.253,-14.134]],"v":[[-24.159,-34.216],[-22.527,-15.494],[-22.719,-14.102],[-23.463,-13.757],[26.175,34.024],[27.615,33.376],[27.135,31.84],[18.799,14.621]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[252.82,445.346]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[3.162,0.343],[9.229,14.632],[-1.378,-1.215],[-0.768,8.81],[0,0.744],[0.024,0.168]],"o":[[6.429,3.673],[1.833,5.391],[1.944,-1.44],[0.072,-0.768],[0,-0.168],[-0.106,-7.834]],"v":[[0.709,-16.591],[-7.137,1.959],[-0.592,10.104],[7.017,-3.77],[7.137,-6.049],[7.113,-6.554]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[484.978,788.911]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[3.285,0.778],[6.502,19.161],[-0.216,-0.888],[-1.561,-1.152],[-1.897,8.929],[-0.12,0.96],[0,1.584]],"o":[[7.686,13.608],[0.168,0.889],[2.136,8.257],[1.824,-1.08],[0.215,-0.961],[0.264,-1.68],[0,-8.495]],"v":[[1.678,-18.999],[-9.363,-0.162],[-8.764,2.479],[-1.059,12.511],[6.983,0.799],[7.486,-2.107],[7.895,-7.026]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[445.289,791.617]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[3.515,0.589],[10.533,17.727],[-1.536,-1.152],[-2.016,8.281],[-0.168,0.936],[0,2.161]],"o":[[6.36,6.915],[2.136,8.209],[1.704,-1.008],[0.264,-0.936],[0.456,-2.352],[0,-8.997]],"v":[[1.472,-19.749],[-8.305,2.021],[-0.648,11.863],[6.937,1.997],[7.585,-0.835],[8.305,-7.676]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[403.521,789.673]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[2.962,1.021],[9.484,15.664],[-1.605,-0.963],[-2.137,8.209],[-0.168,0.936],[0,2.16]],"o":[[7.719,8.766],[2.098,7.26],[1.536,-1.152],[0.24,-0.96],[0.48,-2.353],[0,-7.798]],"v":[[1.596,-19.057],[-9.315,3.393],[-2.02,12.202],[5.637,2.361],[6.285,-0.495],[7.053,-7.336]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[289.8,789.334]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[2.617,1.255],[7.943,12.956],[-1.619,-0.958],[-2.136,8.257],[-0.168,0.888],[0,2.184]],"o":[[6.281,13.448],[2.095,6.555],[1.56,-1.152],[0.216,-0.888],[0.48,-2.352],[0,-7.137]],"v":[[2.694,-17.475],[-8.975,4.519],[-1.68,13.495],[6.025,3.462],[6.625,0.822],[7.393,-6.043]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[248.103,790.633]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[2.837,0.672],[7.573,14.829],[-1.458,-1.08],[-1.368,8.233],[-0.072,0.84],[0,0.673]],"o":[[6.616,7.529],[1.792,4.803],[1.632,-1.44],[0.168,-0.864],[0.072,-0.696],[0,-7.35]],"v":[[1.103,-16.573],[-7.719,1.744],[-1.35,9.936],[6.043,-1.609],[6.379,-4.153],[6.475,-6.218]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.714,0.522,0.337,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[207.615,789.08]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-4.851,87.324],[-2.178,5.543],[-7.609,0],[-2.28,0.841],[-0.476,2.607],[2.977,0],[5.64,7.68],[3.779,-4.007],[1.649,-1.171],[0.016,-0.011],[0.529,-0.321],[0.044,-0.026],[0.505,-0.257],[0.08,-0.04],[0.481,-0.199],[0.114,-0.045],[0.472,-0.15],[0.131,-0.039],[0.611,-0.122],[0.283,-2.43],[24.153,-34.498],[-1.416,-1.152],[-4.92,2.112],[-2.531,1.829]],"o":[[3.28,-3.822],[5.64,7.68],[2.428,0],[0.539,-2.601],[-2.736,1.248],[-7.609,0],[-2.432,6.189],[-1.494,1.584],[-0.016,0.011],[-0.516,0.364],[-0.043,0.026],[-0.494,0.296],[-0.08,0.041],[-0.473,0.234],[-0.113,0.047],[-0.464,0.183],[-0.131,0.042],[-0.601,0.179],[-0.229,2.442],[-7.181,61.539],[0.743,1.416],[2.952,2.4],[2.304,-0.984],[-9.991,2.765]],"v":[[16.959,-73.958],[25.239,-88.126],[45.665,-76.173],[52.746,-77.483],[54.282,-85.294],[45.665,-83.374],[25.239,-95.327],[15.791,-79.873],[11.068,-75.731],[11.021,-75.696],[9.453,-74.673],[9.323,-74.59],[7.823,-73.768],[7.584,-73.64],[6.151,-73.001],[5.813,-72.853],[4.406,-72.366],[4.015,-72.233],[2.196,-71.781],[1.418,-64.475],[-54.282,88.942],[-51.042,92.759],[-39.185,93.215],[-31.918,88.975]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[594.596,638.737]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0.912,3.12],[6.649,83.505],[0.602,-1.097],[0.11,-0.195],[0.648,-0.971],[0.103,-0.153],[1.593,-1.607],[0.083,-0.082],[0.857,-0.685],[0.044,-0.035],[1.947,-0.855],[0.035,-0.015],[1.02,-0.274],[1.793,0],[0.24,0.024],[13.465,0],[0.48,0.024],[-0.285,-2.404],[-0.223,0],[-4.512,20.018],[-0.24,0],[-0.939,0.134],[-29.911,-55.138],[-4.564,4.338],[2.088,6.721]],"o":[[-0.888,-2.832],[-10.561,-35.548],[-0.543,1.178],[-0.109,0.199],[-0.597,1.054],[-0.103,0.154],[-1.388,2.021],[-0.082,0.083],[-0.811,0.802],[-0.044,0.035],[-1.78,1.405],[-0.035,0.015],[-0.985,0.426],[-1.712,0.46],[-0.24,0],[-4.512,20.018],[-0.48,0],[0.231,2.415],[0.229,0.008],[13.465,0],[0.24,0.024],[0.961,0],[4.779,60.8],[2.228,-7.086],[-1.752,-5.28],[0,0]],"v":[[42.305,73.374],[39.592,64.445],[9.54,-108.855],[7.812,-105.455],[7.486,-104.86],[5.619,-101.821],[5.306,-101.366],[0.831,-95.907],[0.583,-95.657],[-1.919,-93.42],[-2.052,-93.319],[-7.652,-89.912],[-7.757,-89.866],[-10.764,-88.81],[-16.023,-88.094],[-16.767,-88.117],[-46.65,-54.513],[-48.113,-54.561],[-47.329,-47.334],[-46.65,-47.312],[-16.767,-80.917],[-16.023,-80.892],[-13.176,-81.118],[37.724,108.856],[48.113,91.352],[42.305,73.398]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[144.423,621.854]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.74,0.562],[0.108,0.084],[0.61,0.559],[0.732,17.614],[0,-1.258],[-8.057,-9.301],[2.981,-4.879],[-1.498,0.941],[-0.936,1.344],[8.665,48.941]],"o":[[-0.109,-0.082],[-0.633,-0.495],[-9.022,-8.282],[-0.055,1.241],[0,17.16],[9.49,71.818],[1.839,0.192],[1.584,-0.985],[-21.266,-34.828],[-0.77,-0.47]],"v":[[-17.038,-47.772],[-17.358,-48.033],[-19.224,-49.61],[-35.26,-90.695],[-35.344,-86.947],[-22.009,-45.302],[26.583,90.504],[31.6,89.401],[35.344,85.945],[-14.774,-46.214]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[53.932,598.266]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,13.517],[0,0],[5.125,-1.655],[0.984,-0.048],[0.862,-1.775]],"o":[[0,0],[-0.749,6.743],[-0.936,0.312],[-0.377,2.167],[7.395,1.688]],"v":[[7.036,-10.845],[6.996,-10.837],[-2.255,2.688],[-5.159,3.216],[-7.036,9.157]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[536.591,354.629]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.768,-1.875],[-0.244,0.717],[-0.24,1.128],[3.408,5.041]],"o":[[0.318,-0.644],[0.36,-1.008],[-4.464,-0.672],[3.068,7.691]],"v":[[4.443,7.028],[5.305,4.998],[6.193,1.781],[-6.193,-7.028]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[522.863,355.943]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.002,0],[-0.523,-1.839],[-4.657,-3.577],[-2.784,-0.456],[-0.003,-0.044],[0.176,2.53],[2.688,2.04],[2.088,6.433],[-0.202,0.295]],"o":[[-0.624,0.192],[2.027,7.128],[2.688,2.04],[0.003,0.045],[0.158,-2.356],[-2.784,-0.456],[-4.657,-3.576],[-0.113,-0.38],[-0.002,0]],"v":[[-9.068,-13.844],[-8.631,-5.584],[1.21,9.943],[9.515,13.711],[9.521,13.844],[9.515,6.51],[1.21,2.742],[-9.231,-12.788],[-9.057,-13.839]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[566.418,348.67]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.552,-1.867],[0.212,2.47],[2.737,4.152],[1.416,-0.456],[1.032,0],[3.361,6.169],[-0.02,0.229],[-1.105,-2.832],[-5.089,0],[-1.008,0.312],[-1.128,1.08]],"o":[[0.367,-2.203],[-3.649,-1.848],[-1.128,1.08],[-1.008,0.312],[-5.089,0],[-0.117,-0.216],[-0.6,0.337],[2.247,5.758],[1.032,0],[1.416,-0.456],[2.673,4.054]],"v":[[15.255,12.023],[15.508,4.977],[5.69,-4.216],[1.85,-1.912],[-1.198,-1.456],[-15,-11.345],[-15.12,-12.023],[-12.77,-3.274],[-1.198,5.745],[1.85,5.289],[5.69,2.985]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[575.427,327.761]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.356,0.207],[1.867,-2.326],[-0.745,-1.297],[0.036,4.485]],"o":[[-0.728,3.403],[0.538,1.487],[1.694,-3.286],[0,-0.448]],"v":[[1.65,-6.424],[-2.298,2.28],[-0.327,6.424],[2.262,-5.401]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[611.187,327.097]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[3.409,8.257],[1.753,-0.576],[1.368,0],[1.633,0.552],[7.369,-2.377],[0.36,-0.072],[-0.12,-0.408],[-0.707,-1.7],[0.497,9.549],[-1.632,0],[-1.32,0.408],[-1.392,1.224],[-5.041,-2.209],[-1.801,0],[-1.101,0.669],[0.081,0.651],[0.04,0.282],[0.266,1.301],[0.816,0],[2.184,0.936]],"o":[[-1.392,1.224],[-1.32,0.408],[-1.632,0],[0.528,10.153],[-0.336,0.096],[0.12,0.408],[0.579,1.791],[6.574,-2.896],[1.633,0.552],[1.368,0],[1.753,-0.576],[3.409,8.257],[2.184,0.936],[0.749,0],[-0.059,-0.644],[-0.036,-0.282],[-0.179,-1.277],[-0.672,0.216],[-1.801,0],[-5.041,-2.208]],"v":[[0.673,-15.069],[-4.032,-12.356],[-8.065,-11.732],[-12.961,-12.572],[-24.05,8.358],[-25.107,8.622],[-24.722,9.846],[-22.768,15.069],[-12.961,-5.371],[-8.065,-4.531],[-4.032,-5.155],[0.673,-7.867],[15.891,8.022],[21.916,9.439],[25.107,8.595],[24.908,6.659],[24.807,5.818],[24.148,1.949],[21.916,2.238],[15.891,0.822]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[606.368,346.39]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.13,-0.258],[0.233,-0.409],[0.216,-0.342],[0.334,-0.455],[0.306,-0.367],[0.212,-0.232],[0.365,-0.346],[0.177,-0.157],[0.581,-0.405],[0.163,-0.106],[0.499,-0.26],[0.194,-0.092],[0.706,-0.228],[1.464,-0.072],[0.184,-2.325],[-1.293,0.423],[1.024,16.394],[0.776,-2.822],[0.025,-0.089],[0.781,-1.658]],"o":[[-0.217,0.429],[-0.204,0.358],[-0.31,0.489],[-0.288,0.393],[-0.203,0.244],[-0.343,0.378],[-0.173,0.164],[-0.539,0.476],[-0.16,0.112],[-0.473,0.308],[-0.19,0.099],[-0.664,0.314],[-1.392,0.456],[0.072,2.448],[1.422,-0.09],[10.7,-3.445],[-0.213,3.234],[-0.024,0.09],[-0.538,1.902],[-0.124,0.265]],"v":[[5.579,-1.599],[4.909,-0.338],[4.271,0.703],[3.307,2.121],[2.421,3.268],[1.797,3.979],[0.733,5.063],[0.216,5.557],[-1.465,6.878],[-1.956,7.193],[-3.413,8.045],[-3.986,8.335],[-6.034,9.164],[-10.331,9.956],[-10.529,17.111],[-6.034,16.365],[9.505,-17.111],[8.014,-7.997],[7.938,-7.73],[5.958,-2.383]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[624.501,380.892]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.789,1.616],[0,0],[-0.203,1.456],[0.587,0.262],[1.632,-1.081],[-0.232,-2.108]],"o":[[0,0],[0.404,-1.241],[-0.578,-0.318],[-1.008,2.064],[0.46,2.167],[1.172,-1.023]],"v":[[1.108,1.618],[1.972,-0.614],[2.852,-4.698],[1.108,-5.583],[-2.852,-0.83],[-1.84,5.582]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[635.601,348.113]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[5.113,4.417],[3.528,10.969],[0.144,0.552],[0.168,0],[0.14,-2.318],[-0.162,0.024],[-0.168,-0.528],[-7.273,-6.241],[-5.084,-0.38],[0.084,2.456]],"o":[[-7.273,-6.241],[-0.168,-0.528],[-0.168,0.024],[0.168,2.483],[0.164,0],[0.144,0.553],[3.528,10.969],[5.054,4.366],[0.184,-2.326],[-5.137,-0.336]],"v":[[1.014,6.959],[-15.74,-19.732],[-16.22,-21.34],[-16.748,-21.316],[-16.728,-14.116],[-16.22,-14.14],[-15.74,-12.531],[1.014,14.16],[16.486,21.34],[16.664,14.16]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[595.106,376.688]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[9.082,-2.946],[1.704,-0.024],[-0.636,-2.295],[-1.112,0.343],[1.071,16.523]],"o":[[-1.632,0.504],[0.421,2.414],[1.149,-0.127],[10.689,-3.468],[-0.839,13.096]],"v":[[-5.807,9.125],[-10.824,9.941],[-9.208,16.996],[-5.807,16.326],[9.754,-16.996]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[568.611,379.755]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[4.321,5.665],[-0.399,-2.705],[-5.315,0],[-1.321,0.432],[-1.848,2.665],[-9.267,-1.989],[-0.153,2.468],[6.673,12.89],[2.952,-0.96],[1.368,0]],"o":[[0.021,2.613],[4.24,5.169],[1.368,0],[2.952,-0.96],[6.446,12.45],[0.493,-2.19],[-9.577,-1.584],[-1.848,2.665],[-1.321,0.432],[-5.593,0]],"v":[[-26.571,-16.495],[-25.9,-8.49],[-10.873,-0.197],[-6.84,-0.82],[0.432,-6.365],[25.589,16.495],[26.571,9.501],[0.432,-13.566],[-6.84,-8.021],[-10.873,-7.397]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[527.639,379.931]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.488,-1.296],[-5.521,0],[-1.753,0.552],[-1.681,11.282],[-6.145,-7.008],[-0.957,-0.897],[-0.123,0.863],[-0.106,1.305],[1.2,1.368],[2.4,10.802],[7.969,-2.568],[1.848,0],[5.545,4.777],[1.368,1.536],[-0.033,-2.38],[-0.063,-0.041]],"o":[[5.545,4.777],[1.848,0],[7.969,-2.568],[2.4,10.801],[0.928,1.058],[0.146,-0.848],[0.17,-1.265],[-1.249,-1.104],[-6.145,-7.009],[-1.681,11.282],[-1.753,0.552],[-5.521,0],[-1.488,-1.296],[-0.188,2.327],[0.064,0.043],[1.368,1.536]],"v":[[-24.91,4.177],[-7.988,11.426],[-2.563,10.586],[12.607,-11.569],[25.76,15.866],[28.592,18.77],[28.989,16.199],[29.433,12.362],[25.76,8.666],[12.607,-18.77],[-2.563,3.385],[-7.988,4.225],[-24.91,-3.024],[-29.206,-7.272],[-29.4,-0.202],[-29.206,-0.071]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[543.573,412.522]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-8.92,-1.59],[-0.232,2.44],[6.241,12.265],[8.929,-1.536],[1.081,0],[1.656,0.432],[-0.823,-2.422],[-0.954,0],[-1.08,0.168],[-3.504,11.45]],"o":[[0.478,-2.255],[-9.313,-1.128],[-3.504,11.449],[-1.08,0.168],[-1.656,0],[0.572,2.65],[0.954,0.143],[1.081,0],[8.929,-1.536],[5.992,11.777]],"v":[[25.005,13.941],[26.115,6.924],[1.488,-14.27],[-17.93,6.805],[-21.147,7.069],[-26.115,6.421],[-24.01,14.034],[-21.147,14.27],[-17.93,14.006],[1.488,-7.069]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[610.209,424.656]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[7.825,-5.713],[-0.439,-0.824],[-0.013,-0.024],[-0.451,-0.756],[0,0],[-1.145,12.639],[-1.056,0.192],[-0.09,26.153],[0.43,0.535],[0.016,0.021],[12.29,-2.136],[1.056,0]],"o":[[0.409,0.874],[0.012,0.025],[0.427,0.802],[0,0],[6.402,-6.194],[1.056,0],[11.934,-2.074],[-0.412,-0.565],[-0.017,-0.021],[-1.152,18.17],[-1.056,0.192],[-1.296,14.306]],"v":[[-20.42,30.657],[-19.148,33.205],[-19.109,33.276],[-17.792,35.614],[-17.791,35.615],[-5.85,6.39],[-2.682,6.126],[20.42,-33.855],[19.184,-35.55],[19.137,-35.615],[-2.682,-1.075],[-5.85,-0.811]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[644.575,432.536]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.431,-1.988],[-1.391,13.869],[-2.089,-0.84],[-13.897,0],[-0.649,0.072],[-0.883,0.227],[-0.342,2.642],[1.416,-0.144],[0.648,0],[4.272,21.483],[2.016,1.488],[7.633,-6.769]],"o":[[7.035,-6.918],[2.016,1.488],[4.272,21.483],[0.648,0],[0.916,-0.093],[0.602,-2.432],[-1.344,0.457],[-0.649,0.071],[-13.897,0],[-2.089,-0.84],[-1.464,14.594],[0.28,2.086]],"v":[[-27.746,15.628],[-14.389,-16.609],[-8.196,-13.105],[22.791,23.811],[24.711,23.715],[27.401,23.208],[28.84,15.602],[24.711,16.515],[22.791,16.611],[-8.196,-20.306],[-14.389,-23.81],[-28.839,9.53]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[589.651,450.543]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.504,0.024],[-3.408,2.424],[-13.291,-3.534],[-0.376,1.051],[-0.031,0.088],[-0.333,1.151],[3.433,22.538],[4.033,-0.288],[0.504,0],[3.432,1.896],[0.366,-2.261],[-3.508,0]],"o":[[4.033,-0.288],[3.242,21.285],[0.417,-0.998],[0.032,-0.088],[0.385,-1.09],[-14.306,-2.089],[-3.408,2.424],[-0.504,0.024],[-3.648,0],[-0.562,2.152],[3.44,1.81],[0.504,0]],"v":[[-13.879,-12.878],[-2.694,-17.077],[25.089,24.279],[26.276,21.201],[26.372,20.941],[27.453,17.583],[-2.694,-24.278],[-13.879,-20.078],[-15.391,-20.03],[-26.096,-22.91],[-27.453,-16.265],[-15.391,-12.829]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[561.345,486.103]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.489,0],[-0.456,0.048],[-0.209,0.021],[-0.312,2.53],[0.648,-0.048],[0.456,0],[6.457,13.633],[0.36,-0.168],[11.425,-4.272],[-0.981,-1.853],[-1.963,17.228],[-0.36,0.216]],"o":[[0.456,0],[0.213,-0.016],[0.537,-2.369],[-0.649,0.096],[-0.456,0.048],[-10.489,0],[-0.36,0.216],[-2.136,18.746],[0.819,2.113],[10.076,-5.416],[0.36,-0.168],[6.457,13.634]],"v":[[23.511,6.919],[24.879,6.871],[25.509,6.8],[26.799,-0.546],[24.879,-0.33],[23.511,-0.282],[-3.42,-22.028],[-4.5,-21.452],[-26.799,16.088],[-24.085,22.028],[-4.5,-14.252],[-3.42,-14.828]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[625.559,486.517]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-4.411,15.63],[-0.168,0],[-0.456,0.024],[-1.128,0.264],[-9.804,-1.658],[-0.342,2.42],[5.424,14.114],[1.152,-0.072],[0.432,0],[0.168,0.024],[11.353,-1.729],[-0.746,-2.161]],"o":[[0.168,0.024],[0.432,0],[1.152,-0.072],[5.181,13.48],[0.555,-2.261],[-10.37,-1.032],[-1.128,0.264],[-0.456,0.024],[-0.168,0],[-4.681,16.586],[0.546,2.368],[10.519,-2.655]],"v":[[-2.232,-10.733],[-1.753,-10.708],[-0.409,-10.757],[3,-11.284],[26.672,12.586],[28.06,5.589],[3,-18.486],[-0.409,-17.957],[-1.753,-17.909],[-2.232,-17.934],[-28.06,11.687],[-26.116,18.485]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[593.456,521.811]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-2.602,23.251],[-3.356,3.118],[0.704,1.907],[3.84,-1.104],[15.314,-0.288],[0.502,-2.148]],"o":[[3.511,-1.009],[-0.533,-2.026],[-3.168,3.241],[-2.664,23.811],[-0.313,2.277],[16.542,0.041]],"v":[[9.843,-13.879],[22.284,-21.777],[20.428,-27.681],[9.843,-21.08],[-21.049,20.997],[-22.284,27.64]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[644.988,506.475]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.961,0],[-0.24,0.024],[-13.466,0],[-0.229,0.008],[-0.232,2.416],[0.48,0],[4.513,20.018],[0.24,0],[1.712,0.46],[0.985,0.427],[0.035,0.015],[1.781,1.405],[0.043,0.035],[0.812,0.802],[0.082,0.083],[1.387,2.022],[0.103,0.154],[0.596,1.054],[0.109,0.199],[0.543,1.178],[10.562,-35.548],[0.888,-2.832],[0,0],[1.753,-5.28],[-2.227,-7.086],[-4.779,60.8]],"o":[[0.24,0],[4.513,20.018],[0.222,0],[0.285,-2.404],[-0.48,0.024],[-13.466,0],[-0.24,0.024],[-1.792,0],[-1.02,-0.274],[-0.035,-0.015],[-1.947,-0.855],[-0.043,-0.035],[-0.858,-0.685],[-0.083,-0.082],[-1.592,-1.607],[-0.104,-0.153],[-0.648,-0.971],[-0.111,-0.195],[-0.602,-1.097],[-6.649,83.505],[-0.912,3.12],[0,0],[-2.088,6.721],[4.564,4.338],[29.911,-55.138],[0.939,0.134]],"v":[[16.022,-80.892],[16.766,-80.917],[46.65,-47.312],[47.33,-47.334],[48.114,-54.561],[46.65,-54.513],[16.766,-88.117],[16.022,-88.094],[10.763,-88.81],[7.756,-89.866],[7.651,-89.912],[2.051,-93.319],[1.92,-93.42],[-0.584,-95.657],[-0.831,-95.907],[-5.306,-101.366],[-5.62,-101.821],[-7.486,-104.86],[-7.813,-105.455],[-9.541,-108.855],[-39.593,64.445],[-42.305,73.374],[-42.305,73.398],[-48.114,91.352],[-37.725,108.856],[13.175,-81.118]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[546.254,621.854]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,17.16],[0.055,1.241],[9.022,-8.282],[0.633,-0.495],[0.108,-0.082],[0.77,-0.47],[21.266,-34.828],[-1.584,-0.984],[-1.839,0.192],[-9.491,71.818]],"o":[[0,-1.258],[-0.733,17.614],[-0.609,0.559],[-0.108,0.084],[-0.741,0.562],[-8.666,48.941],[0.936,1.344],[1.498,0.941],[-2.982,-4.879],[8.056,-9.301]],"v":[[35.344,-86.948],[35.26,-90.696],[19.223,-49.611],[17.358,-48.034],[17.038,-47.773],[14.774,-46.215],[-35.344,85.944],[-31.6,89.401],[-26.583,90.503],[22.009,-45.303]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[636.745,598.266]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.136,1.209],[3.241,-6.217],[1.776,-2.112],[-0.508,-1.683],[-0.963,1.846],[-0.936,7.897],[-0.089,1.202]],"o":[[-0.936,7.897],[-1.44,2.76],[0.625,1.598],[1.113,-1.559],[3.241,-6.216],[0.146,-1.178],[-0.122,-1.209]],"v":[[5.406,-16.858],[-0.932,4.602],[-5.755,11.922],[-4.073,16.858],[-0.932,11.802],[5.406,-9.656],[5.755,-13.228]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[672.972,464.88]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-7.396,1.688],[0.377,2.167],[0.937,0.312],[0.749,6.743],[0,0]],"o":[[-0.863,-1.775],[-0.984,-0.048],[-5.124,-1.655],[0,0],[0,13.517]],"v":[[7.036,9.157],[5.159,3.216],[2.254,2.688],[-6.996,-10.837],[-7.036,-10.845]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[154.086,354.628]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.068,7.691],[4.464,-0.672],[-0.36,-1.008],[-0.318,-0.644]],"o":[[-3.408,5.041],[0.24,1.128],[0.244,0.718],[3.768,-1.875]],"v":[[6.193,-7.028],[-6.193,1.781],[-5.305,4.997],[-4.443,7.028]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[167.814,355.943]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[4.657,-3.576],[2.784,-0.455],[-0.157,-2.357],[-0.003,0.045],[-2.688,2.04],[-2.027,7.128],[0.624,0.192],[0.002,0],[0.113,-0.38]],"o":[[-2.688,2.04],[-0.176,2.53],[0.003,-0.045],[2.784,-0.456],[4.657,-3.577],[0.523,-1.84],[-0.002,0],[0.202,0.295],[-2.088,6.433]],"v":[[-1.21,2.741],[-9.516,6.509],[-9.521,13.845],[-9.516,13.711],[-1.21,9.943],[8.63,-5.583],[9.068,-13.845],[9.057,-13.84],[9.23,-12.788]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[124.259,348.67]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.117,-0.216],[5.089,0],[1.008,0.312],[1.128,1.08],[3.649,-1.848],[-0.367,-2.203],[-2.672,4.054],[-1.416,-0.456],[-1.032,0],[-2.247,5.758],[0.6,0.337]],"o":[[-3.36,6.169],[-1.032,0],[-1.416,-0.456],[-2.737,4.152],[-0.211,2.47],[3.552,-1.867],[1.128,1.08],[1.008,0.312],[5.089,0],[1.105,-2.832],[0.02,0.228]],"v":[[14.999,-11.346],[1.197,-1.456],[-1.851,-1.912],[-5.691,-4.216],[-15.509,4.977],[-15.255,12.023],[-5.691,2.984],[-1.851,5.289],[1.197,5.745],[12.769,-3.274],[15.12,-12.023]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[115.25,327.761]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.728,3.403],[0,-0.448],[-1.695,-3.286],[-0.538,1.487]],"o":[[-0.356,0.207],[-0.036,4.485],[0.745,-1.297],[-1.867,-2.326]],"v":[[-1.65,-6.424],[-2.262,-5.401],[0.327,6.424],[2.298,2.28]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.489,327.097]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-2.184,0.936],[-3.409,8.257],[-1.752,-0.576],[-1.368,0],[-1.632,0.552],[-6.575,-2.895],[-0.58,1.792],[-0.12,0.408],[0.337,0.096],[-0.528,10.153],[1.632,0],[1.32,0.408],[1.392,1.224],[5.04,-2.208],[1.8,0],[0.672,0.216],[0.178,-1.277],[0.036,-0.281],[0.059,-0.643],[-0.749,0]],"o":[[5.04,-2.208],[1.392,1.224],[1.32,0.408],[1.632,0],[-0.496,9.549],[0.706,-1.7],[0.12,-0.408],[-0.36,-0.072],[-7.368,-2.376],[-1.632,0.552],[-1.368,0],[-1.752,-0.577],[-3.409,8.257],[-2.184,0.936],[-0.816,0],[-0.266,1.302],[-0.04,0.283],[-0.081,0.651],[1.1,0.669],[1.8,0]],"v":[[-15.89,8.022],[-0.673,-7.867],[4.032,-5.156],[8.064,-4.531],[12.96,-5.372],[22.769,15.068],[24.722,9.846],[25.106,8.622],[24.049,8.358],[12.96,-12.572],[8.064,-11.732],[4.032,-12.356],[-0.673,-15.068],[-15.89,0.821],[-21.916,2.237],[-24.148,1.949],[-24.808,5.818],[-24.908,6.658],[-25.106,8.595],[-21.916,9.438]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[84.308,346.39]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.7,-3.445],[-1.422,-0.09],[-0.072,2.449],[1.392,0.456],[0.664,0.314],[0.19,0.099],[0.473,0.308],[0.16,0.111],[0.539,0.476],[0.173,0.164],[0.344,0.379],[0.204,0.245],[0.288,0.394],[0.31,0.488],[0.204,0.359],[0.217,0.429],[0.124,0.265],[0.538,1.902],[0.024,0.09],[0.213,3.234]],"o":[[1.292,0.423],[-0.183,-2.325],[-1.464,-0.072],[-0.706,-0.228],[-0.194,-0.091],[-0.499,-0.26],[-0.163,-0.106],[-0.581,-0.406],[-0.178,-0.157],[-0.364,-0.346],[-0.211,-0.232],[-0.306,-0.367],[-0.334,-0.455],[-0.216,-0.343],[-0.233,-0.409],[-0.13,-0.257],[-0.781,-1.657],[-0.025,-0.089],[-0.777,-2.822],[-1.024,16.394]],"v":[[6.035,16.365],[10.528,17.111],[10.331,9.956],[6.035,9.164],[3.987,8.335],[3.414,8.045],[1.956,7.193],[1.466,6.879],[-0.215,5.557],[-0.733,5.063],[-1.797,3.979],[-2.421,3.268],[-3.307,2.121],[-4.27,0.704],[-4.908,-0.338],[-5.578,-1.599],[-5.958,-2.383],[-7.937,-7.73],[-8.013,-7.997],[-9.504,-17.11]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[66.175,380.893]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-1.172,-1.023],[-0.46,2.167],[1.008,2.064],[0.578,-0.318],[-0.404,-1.241]],"o":[[0.789,1.616],[0.232,-2.108],[-1.632,-1.081],[-0.587,0.262],[0.203,1.456],[0,0]],"v":[[-1.108,1.618],[1.84,5.582],[2.852,-0.83],[-1.108,-5.583],[-2.852,-4.698],[-1.972,-0.614]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[55.076,348.113]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.168,-0.528],[7.273,-6.241],[5.137,-0.336],[-0.185,-2.326],[-5.054,4.366],[-3.528,10.969],[-0.144,0.552],[-0.164,0],[-0.169,2.483],[0.168,0.024]],"o":[[-3.528,10.969],[-5.113,4.417],[-0.084,2.456],[5.084,-0.38],[7.273,-6.241],[0.168,-0.528],[0.162,0.023],[-0.14,-2.318],[-0.168,0],[-0.144,0.552]],"v":[[15.74,-19.732],[-1.014,6.959],[-16.664,14.16],[-16.486,21.34],[-1.014,14.16],[15.74,-12.531],[16.22,-14.139],[16.728,-14.116],[16.748,-21.316],[16.22,-21.34]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[95.571,376.688]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-10.689,-3.467],[-1.148,-0.128],[-0.421,2.414],[1.632,0.504],[0.839,13.096]],"o":[[1.112,0.343],[0.636,-2.296],[-1.704,-0.024],[-9.082,-2.946],[-1.071,16.523]],"v":[[5.808,16.325],[9.208,16.996],[10.825,9.94],[5.808,9.124],[-9.753,-16.997]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[122.065,379.755]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.492,-2.191],[-6.445,12.45],[-2.952,-0.96],[-1.369,0],[-4.24,5.169],[-0.021,2.612],[5.592,0],[1.32,0.432],[1.848,2.664],[9.577,-1.585]],"o":[[9.267,-1.989],[1.848,2.664],[1.32,0.433],[5.314,0],[0.4,-2.705],[-4.32,5.664],[-1.369,0],[-2.952,-0.961],[-6.673,12.889],[0.153,2.467]],"v":[[-25.589,16.494],[-0.432,-6.366],[6.841,-0.822],[10.874,-0.197],[25.9,-8.492],[26.571,-16.495],[10.874,-7.398],[6.841,-8.022],[-0.432,-13.566],[-26.571,9.5]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[163.037,379.932]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[6.145,-7.009],[1.248,-1.104],[-0.17,-1.264],[-0.146,-0.847],[0,0],[-0.928,1.058],[-2.401,10.801],[-7.969,-2.568],[-1.848,0],[-5.545,4.777],[-1.368,1.536],[-0.064,0.043],[0.189,2.328],[1.488,-1.297],[5.521,0],[1.753,0.551],[1.68,11.281]],"o":[[-1.2,1.368],[0.105,1.306],[0.123,0.864],[0,0],[0.957,-0.898],[6.145,-7.009],[1.68,11.281],[1.753,0.552],[5.521,0],[1.488,-1.296],[0.063,-0.041],[0.033,-2.38],[-1.368,1.536],[-5.545,4.776],[-1.848,0],[-7.969,-2.569],[-2.401,10.801]],"v":[[-25.76,8.665],[-29.433,12.361],[-28.989,16.198],[-28.592,18.769],[-28.592,18.77],[-25.76,15.866],[-12.606,-11.569],[2.563,10.585],[7.988,11.425],[24.91,4.176],[29.205,-0.072],[29.399,-0.202],[29.205,-7.273],[24.91,-3.024],[7.988,4.224],[2.563,3.385],[-12.606,-18.77]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[147.104,412.523]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[9.313,-1.128],[-0.478,-2.256],[-5.993,11.777],[-8.929,-1.536],[-1.08,0],[-0.954,0.143],[-0.572,2.65],[1.657,0],[1.08,0.168],[3.504,11.449]],"o":[[0.232,2.439],[8.92,-1.59],[3.504,11.45],[1.08,0.168],[0.955,0],[0.823,-2.423],[-1.656,0.432],[-1.08,0],[-8.929,-1.536],[-6.241,12.265]],"v":[[-26.115,6.924],[-25.005,13.942],[-1.488,-7.069],[17.93,14.006],[21.146,14.27],[24.01,14.034],[26.115,6.421],[21.146,7.069],[17.93,6.805],[-1.488,-14.27]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[80.467,424.656]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-11.934,-2.074],[-1.056,0],[-6.402,-6.194],[0,0],[-0.427,0.802],[-0.012,0.025],[-0.409,0.874],[1.296,14.306],[1.056,0.192],[1.152,18.17],[0.017,-0.021],[0.412,-0.566]],"o":[[1.056,0.192],[1.145,12.638],[0,0],[0.452,-0.756],[0.013,-0.024],[0.439,-0.825],[-7.825,-5.713],[-1.056,0],[-12.29,-2.136],[-0.016,0.02],[-0.43,0.535],[0.09,26.153]],"v":[[2.682,6.126],[5.85,6.39],[17.791,35.615],[17.791,35.614],[19.109,33.276],[19.148,33.205],[20.42,30.657],[5.85,-0.811],[2.682,-1.075],[-19.137,-35.615],[-19.184,-35.55],[-20.42,-33.855]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[46.102,432.536]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[13.898,0],[0.648,0.072],[1.344,0.456],[-0.601,-2.431],[-0.917,-0.093],[-0.648,0],[-4.273,21.482],[-2.016,1.488],[-7.036,-6.918],[-0.28,2.087],[1.465,14.594],[2.088,-0.84]],"o":[[-0.648,0],[-1.416,-0.144],[0.343,2.642],[0.883,0.227],[0.648,0.072],[13.898,0],[2.088,-0.84],[1.392,13.87],[0.43,-1.988],[-7.633,-6.768],[-2.016,1.489],[-4.273,21.482]],"v":[[-22.79,16.61],[-24.71,16.514],[-28.839,15.602],[-27.402,23.207],[-24.71,23.715],[-22.79,23.811],[8.197,-13.105],[14.39,-16.61],[27.748,15.627],[28.839,9.529],[14.39,-23.811],[8.197,-20.306]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[101.025,450.543]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-4.032,-0.288],[-0.504,0],[-3.44,1.81],[0.562,2.152],[3.648,0],[0.504,0.024],[3.408,2.424],[14.306,-2.089],[-0.385,-1.09],[-0.032,-0.088],[-0.418,-0.998],[-3.242,21.285]],"o":[[0.504,0.024],[3.508,0],[-0.366,-2.261],[-3.432,1.896],[-0.504,0],[-4.032,-0.288],[-3.433,22.538],[0.333,1.151],[0.031,0.088],[0.376,1.051],[13.29,-3.534],[3.408,2.424]],"v":[[13.88,-12.878],[15.392,-12.829],[27.453,-16.265],[26.096,-22.91],[15.392,-20.03],[13.88,-20.078],[2.694,-24.278],[-27.453,17.583],[-26.372,20.941],[-26.276,21.201],[-25.087,24.279],[2.694,-17.077]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[129.331,486.103]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[10.489,0],[0.456,0.048],[0.648,0.096],[-0.537,-2.369],[-0.213,-0.016],[-0.456,0],[-6.457,13.634],[-0.36,-0.168],[-10.075,-5.416],[-0.819,2.113],[2.136,18.747],[0.36,0.216]],"o":[[-0.456,0],[-0.648,-0.048],[0.311,2.53],[0.209,0.021],[0.456,0.048],[10.489,0],[0.36,0.216],[1.963,17.228],[0.982,-1.853],[-11.425,-4.273],[-0.36,-0.168],[-6.457,13.633]],"v":[[-23.511,-0.282],[-24.879,-0.33],[-26.799,-0.546],[-25.509,6.8],[-24.879,6.871],[-23.511,6.919],[3.42,-14.828],[4.5,-14.252],[24.084,22.028],[26.799,16.088],[4.5,-21.453],[3.42,-22.028]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[65.118,486.517]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-5.181,13.48],[-1.152,-0.072],[-0.432,0],[-0.168,0.024],[-10.52,-2.655],[-0.546,2.368],[4.68,16.586],[0.168,0],[0.456,0.024],[1.128,0.264],[10.369,-1.032],[-0.556,-2.26]],"o":[[1.128,0.264],[0.456,0.024],[0.168,0],[4.411,15.631],[0.745,-2.161],[-11.354,-1.728],[-0.168,0.024],[-0.432,0],[-1.152,-0.072],[-5.424,14.114],[0.341,2.42],[9.803,-1.658]],"v":[[-3,-11.285],[0.408,-10.757],[1.753,-10.708],[2.232,-10.733],[26.116,18.485],[28.06,11.687],[2.232,-17.934],[1.753,-17.91],[0.408,-17.957],[-3,-18.486],[-28.06,5.589],[-26.673,12.586]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[97.221,521.811]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.511,-1.009],[-16.541,0.041],[0.313,2.277],[2.664,23.811],[3.168,3.241],[0.533,-2.026]],"o":[[2.602,23.251],[-0.502,-2.148],[-15.314,-0.288],[-3.84,-1.104],[-0.704,1.907],[3.356,3.118]],"v":[[-9.843,-13.879],[22.284,27.64],[21.049,20.997],[-9.843,-21.08],[-20.428,-27.681],[-22.284,-21.777]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[45.689,506.475]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.113,-1.559],[-0.625,1.598],[1.44,2.761],[0.936,7.897],[0.122,-1.209],[-0.146,-1.178],[-3.24,-6.217]],"o":[[0.508,-1.683],[-1.776,-2.112],[-3.24,-6.217],[-0.136,1.209],[0.089,1.201],[0.936,7.897],[0.963,1.846]],"v":[[4.074,16.858],[5.756,11.922],[0.931,4.601],[-5.406,-16.857],[-5.756,-13.227],[-5.406,-9.656],[0.931,11.802]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[17.705,464.881]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.229,2.442],[0.601,0.178],[0.131,0.041],[0.465,0.184],[0.113,0.046],[0.473,0.234],[0.08,0.041],[0.494,0.296],[0.044,0.026],[0.516,0.364],[0.016,0.012],[1.494,1.585],[2.432,6.189],[7.609,0],[2.736,1.248],[-0.539,-2.6],[-2.427,0],[-5.64,7.681],[-3.28,-3.822],[9.991,2.765],[-2.304,-0.984],[-2.952,2.401],[-0.744,1.416],[7.181,61.538]],"o":[[-0.611,-0.122],[-0.131,-0.039],[-0.472,-0.15],[-0.113,-0.045],[-0.481,-0.199],[-0.08,-0.04],[-0.505,-0.256],[-0.044,-0.027],[-0.529,-0.321],[-0.015,-0.011],[-1.649,-1.17],[-3.779,-4.006],[-5.64,7.681],[-2.976,0],[0.476,2.607],[2.28,0.842],[7.609,0],[2.178,5.544],[4.851,87.324],[2.531,1.829],[4.921,2.113],[1.417,-1.152],[-24.154,-34.498],[-0.283,-2.43]],"v":[[-2.196,-71.781],[-4.015,-72.233],[-4.407,-72.365],[-5.814,-72.854],[-6.152,-73],[-7.584,-73.64],[-7.824,-73.768],[-9.324,-74.589],[-9.454,-74.672],[-11.021,-75.697],[-11.068,-75.732],[-15.791,-79.874],[-25.239,-95.328],[-45.665,-83.374],[-54.282,-85.293],[-52.746,-77.484],[-45.665,-76.172],[-25.239,-88.126],[-16.959,-73.958],[31.917,88.975],[39.184,93.214],[51.041,92.758],[54.282,88.943],[-1.419,-64.474]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.361,0.173,0.075,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[96.081,638.737]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-6.529,2.112],[-1.656,2.833],[13.223,20.038],[-0.48,-1.008],[-0.72,-1.2]],"o":[[2.832,-0.912],[-1.775,2.432],[0.36,1.104],[0.577,1.368],[4.824,7.969]],"v":[[7.657,7.311],[14.45,1.55],[-14.45,-10.019],[-13.226,-6.851],[-11.257,-2.962]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[512.398,362.319]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.792,-0.576],[-0.792,0.072],[-0.6,0.192],[0.408,7.585],[15.362,11.485]],"o":[[0.816,0.12],[0.624,-0.072],[5.041,-1.608],[-0.009,2.773],[3,4.441]],"v":[[-0.84,5.995],[1.56,6.067],[3.384,5.683],[11.137,-9.703],[-11.545,-1.782]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[530.208,349.353]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.618,-1.603],[-1.68,0.504],[-0.168,0.072],[-0.504,0.456],[-0.648,1.272],[-0.264,0.816],[-0.072,2.352],[0.951,4.086],[19.042,15.464]],"o":[[2.664,1.176],[0.168,-0.048],[0.576,-0.264],[0.888,-0.768],[0.337,-0.673],[0.577,-1.824],[0.107,-2.948],[1.055,10.413],[3.314,5.042]],"v":[[-0.857,8.56],[5.936,9.568],[6.44,9.376],[8.072,8.296],[10.376,5.224],[11.264,2.991],[12.273,-3.321],[11.089,-13.982],[-12.38,-1.482]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[624.076,336.443]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-4.753,1.536],[-0.936,1.008],[0.403,0.914],[7.5,6.541]],"o":[[1.272,-0.408],[-0.466,-0.851],[-2.827,1.561],[3.481,6.409]],"v":[[5.329,3.372],[8.665,1.236],[7.369,-1.418],[-8.665,-4.908]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[571.204,320.172]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.48,-0.768],[-2.904,-1.824],[-0.888,-0.36],[-2.712,0.864],[-1.32,1.344],[-0.552,0.888],[0.024,4.729],[18.786,22.215],[-0.312,-0.624]],"o":[[2.16,3.552],[0.864,0.552],[2.833,1.2],[1.728,-0.552],[0.672,-0.672],[1.968,-3.121],[-0.312,4.248],[0.264,0.648],[0.408,0.84]],"v":[[-13.033,-5.395],[-5.28,2.766],[-2.641,4.158],[5.785,4.734],[10.346,1.854],[12.194,-0.498],[15.242,-12.524],[-15.266,-9.691],[-14.378,-7.795]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[595.808,327.019]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-4.272,-3.264],[-2.208,-0.457],[-0.816,0],[0,0],[-0.793,0.167],[-0.337,0.096],[-1.044,6.273],[17.396,22.043]],"o":[[2.16,1.656],[0.816,0.191],[0,0],[0.816,0],[0.335,-0.072],[4.778,-1.528],[-0.639,2.821],[1.944,6.001]],"v":[[-5.982,3.332],[0.643,6.525],[3.091,6.812],[3.139,6.812],[5.54,6.549],[6.524,6.285],[15.607,-6.375],[-15.607,-11.021]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[575.074,346.159]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[28.991,32.237],[-8.881,-1.574],[-0.24,-0.023],[-0.576,0],[-0.24,0],[-1.513,0.481],[-0.809,12.085]],"o":[[6.263,12.416],[0.24,0.048],[0.576,0.096],[0.24,0.024],[1.584,0],[8.014,-2.591],[-0.496,4.438]],"v":[[-23.007,-15.027],[1.376,7.308],[2.072,7.427],[3.776,7.571],[4.496,7.595],[9.129,6.875],[23.008,-17.21]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[552.932,379.724]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.968,-1.68],[-6.168,1.992],[-1.978,8.802],[22.15,38.839],[-0.143,-0.446],[-1.296,-2.712],[-0.529,-0.912],[-1.296,-1.8],[-0.72,-0.864]],"o":[[6.769,5.809],[6.362,-2.057],[-2.917,8.086],[0.133,0.447],[0.96,2.976],[0.457,0.96],[1.08,2.041],[0.648,0.936],[1.729,2.137]],"v":[[-8.297,7.534],[11.769,13.487],[24.709,-3.714],[-24.71,-19.419],[-24.331,-18.077],[-20.923,-9.531],[-19.458,-6.724],[-15.882,-0.939],[-13.842,1.773]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[528.519,400.14]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[12.582,25.349],[-10.649,1.073],[-1.512,0.624],[-0.744,0.48],[-0.072,0.048],[-0.575,0.456],[-2.314,8.193]],"o":[[5.846,14.543],[1.608,-0.168],[0.792,-0.336],[0.072,-0.024],[0.624,-0.384],[4.973,-3.879],[-6.317,17.238]],"v":[[-23.468,-12.674],[3.263,10.055],[7.943,8.855],[10.247,7.655],[10.463,7.535],[12.263,6.287],[23.469,-12.373]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[610.86,454.602]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[13.183,26.572],[-4.915,-5.617],[-0.696,-0.672],[-0.769,-0.624],[-1.848,-0.864],[-0.888,-0.288],[-2.737,0.48],[-2.953,11.954],[-0.24,1.44],[-0.11,0.978]],"o":[[2.508,8.327],[0.672,0.768],[0.769,0.744],[1.776,1.465],[0.864,0.432],[2.784,0.888],[8.689,-1.488],[0.336,-1.368],[0.15,-0.942],[-9.439,32.933]],"v":[[-25.797,-17.331],[-14.486,3.986],[-12.422,6.169],[-10.117,8.234],[-4.669,11.738],[-2.052,12.794],[6.253,13.443],[24.543,-8.52],[25.407,-12.72],[25.797,-15.602]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[585.619,415.642]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-4.71,-4.042],[-4.537,-0.384],[-0.792,0.072],[-1.2,0.384],[-0.061,13.512],[16.886,26.418]],"o":[[4.633,4.008],[0.816,0.072],[1.248,-0.048],[8.824,-2.849],[-0.882,19.404],[3.236,6.408]],"v":[[-11.005,5.378],[2.989,12.003],[5.389,12.003],[9.061,11.331],[23.065,-15.831],[-23.064,-10.587]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[608.685,376.445]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[37.094,40.538],[-9.001,-1.225],[-0.792,0],[-0.84,0.144],[-0.408,18.219],[0.048,1.152],[0.624,3.552],[0.679,2.404]],"o":[[5.809,12.721],[0.792,0.096],[0.864,-0.024],[11.738,-2.017],[0.024,-1.104],[-0.072,-3.384],[-0.44,-2.548],[4.611,17.282]],"v":[[-25.304,-3.39],[-1.445,18.957],[0.955,19.102],[3.523,18.861],[23.446,-15.896],[23.422,-19.28],[22.39,-29.721],[20.693,-37.148]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[637.962,410.224]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[10.518,30.599],[-11.704,-1.466],[-0.816,0],[-0.336,0.024],[-0.912,0.216],[-0.744,0.264],[-3.471,12.598]],"o":[[4.623,17.823],[0.816,0.096],[0.336,0],[0.936,-0.072],[0.768,-0.168],[8.386,-3.14],[-7.749,23.227]],"v":[[-27.026,-16.191],[-0.201,16.047],[2.248,16.191],[3.256,16.143],[6.016,15.735],[8.32,15.063],[27.026,-9.947]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[589.623,485.31]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.72,-0.408],[-3.864,0.288],[-3.313,2.712],[-0.696,0.743],[-2.106,9.338],[6.202,31.048],[-5.668,-7.901],[-2.905,-2.064]],"o":[[3.648,2.112],[3.961,-0.288],[0.744,-0.6],[5.058,-5.149],[-18.841,36.244],[1.431,11.522],[2.52,3.504],[0.672,0.48]],"v":[[-7.226,14.784],[4.127,17.569],[15.121,12.936],[17.305,10.921],[28.38,-11.362],[-28.38,-24.883],[-17.475,5.039],[-9.314,13.44]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[543.147,446.056]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-4.937,11.287],[11.458,38.156],[-0.826,-3.211],[-0.72,-1.968],[-10.633,0],[0,0],[-0.792,0.144]],"o":[[-13.06,17.422],[0.397,3.516],[0.552,2.16],[5.185,14.089],[0,0],[0.792,-0.024],[8.577,-1.231]],"v":[[26.349,-0.2],[-26.349,-19.919],[-24.522,-9.797],[-22.602,-3.58],[2.553,19.919],[2.793,19.919],[5.169,19.703]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[559.722,511.442]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-7.684,-0.722],[-0.576,0],[-0.24,0.024],[-4.69,16.118],[18.117,18.698]],"o":[[0.576,0.048],[0.24,0],[11.277,-0.432],[-4.603,13.966],[5.116,9.168]],"v":[[-4.177,12.246],[-2.474,12.318],[-1.778,12.294],[24.027,-15.421],[-24.028,-3.277]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[626.004,512.778]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.864,13.058],[0,0],[0,0],[0,0],[0,0],[0.044,0.503],[41.136,17.741],[-8.527,0.61],[-0.768,0.168],[-0.792,0.288],[-2.809,3.097],[-0.552,0.72],[-1.128,2.184]],"o":[[0,0],[0,0],[0,0],[0,0],[-0.035,-0.506],[0.113,9.516],[6.177,9.919],[0.792,-0.048],[0.84,-0.144],[3.384,-1.152],[0.6,-0.648],[1.344,-1.752],[5.017,-9.577]],"v":[[24.113,-25.799],[24.113,-25.871],[24.113,-25.991],[24.113,-26.087],[24.113,-26.111],[23.961,-27.61],[-24.977,9.869],[-1.978,24.727],[0.374,24.391],[2.823,23.719],[12.184,17.262],[13.911,15.198],[17.656,9.293]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[652.249,459.06]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[19.6,28.134],[-10.716,0],[-0.552,0.072],[-0.793,0.192],[-4.512,12.506],[-0.312,1.032],[-0.111,0.384]],"o":[[5.158,14.95],[0.552,0],[0.817,-0.072],[8.905,-2.112],[0.336,-0.96],[0.117,-0.378],[-5.529,13.025]],"v":[[-26.065,-12.361],[-0.503,12.283],[1.177,12.187],[3.602,11.802],[24.772,-11.624],[25.756,-14.6],[26.065,-15.772]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[593.406,552.658]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[38.75,19.785],[0,0],[0.473,-1.386],[-7.225,0],[-2.856,1.585],[-0.864,0.648],[0,19.946],[0.556,3.772]],"o":[[0,0],[-0.397,1.469],[5.353,7.849],[3.193,0],[0.936,-0.48],[10.369,-7.585],[0,-3.99],[0.849,11.703]],"v":[[-23.135,12.088],[-23.144,12.093],[-24.435,16.392],[-4.993,28.634],[4.128,26.209],[6.841,24.505],[24.435,-20.212],[23.579,-31.873]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[645.254,524.33]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.775,2.432],[-2.833,-0.912],[-4.825,7.969],[-0.576,1.368],[-0.36,1.104]],"o":[[1.656,2.832],[6.529,2.112],[0.72,-1.2],[0.48,-1.008],[-13.223,20.038]],"v":[[-14.449,1.55],[-7.656,7.311],[11.258,-2.963],[13.225,-6.851],[14.449,-10.019]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[178.279,362.319]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-5.041,-1.608],[-0.624,-0.072],[-0.816,0.12],[-3.001,4.441],[0.009,2.773]],"o":[[0.6,0.192],[0.792,0.072],[3.793,-0.576],[-15.363,11.486],[-0.408,7.585]],"v":[[-3.384,5.682],[-1.561,6.066],[0.84,5.994],[11.546,-1.783],[-11.138,-9.703]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[160.469,349.354]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.336,-0.672],[-0.888,-0.768],[-0.576,-0.264],[-0.168,-0.048],[-2.664,1.177],[-3.315,5.041],[-1.054,10.414],[-0.107,-2.948],[-0.576,-1.824]],"o":[[0.648,1.272],[0.504,0.457],[0.168,0.073],[1.681,0.504],[3.619,-1.602],[-19.042,15.464],[-0.95,4.086],[0.072,2.352],[0.264,0.816]],"v":[[-10.377,5.223],[-8.073,8.296],[-6.441,9.376],[-5.937,9.569],[0.856,8.56],[12.38,-1.481],[-11.09,-13.983],[-12.273,-3.322],[-11.265,2.991]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[66.601,336.443]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.48,6.409],[2.827,1.561],[0.466,-0.851],[-1.272,-0.408]],"o":[[-7.5,6.541],[-0.404,0.914],[0.936,1.008],[4.753,1.536]],"v":[[8.665,-4.909],[-7.368,-1.417],[-8.665,1.237],[-5.329,3.372]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[119.472,320.172]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.672,-0.672],[-1.729,-0.552],[-2.833,1.201],[-0.864,0.552],[-2.16,3.553],[-0.408,0.84],[-0.264,0.648],[0.313,4.248],[-1.968,-3.121]],"o":[[1.32,1.344],[2.712,0.864],[0.888,-0.36],[2.904,-1.824],[0.48,-0.768],[0.312,-0.624],[-18.786,22.215],[-0.024,4.729],[0.552,0.888]],"v":[[-10.345,1.854],[-5.784,4.734],[2.641,4.158],[5.281,2.766],[13.034,-5.395],[14.378,-7.795],[15.266,-9.691],[-15.242,-12.524],[-12.193,-0.498]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[94.869,327.019]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.64,2.821],[-4.778,-1.527],[-0.336,-0.072],[-0.816,0],[0,0],[-0.816,0.192],[-2.16,1.656],[-1.944,6.001]],"o":[[1.044,6.273],[0.337,0.096],[0.792,0.168],[0,0],[0.816,0],[2.208,-0.456],[4.272,-3.264],[-17.396,22.043]],"v":[[-15.607,-6.375],[-6.524,6.285],[-5.539,6.548],[-3.139,6.812],[-3.091,6.812],[-0.643,6.525],[5.982,3.333],[15.607,-11.021]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[115.602,346.159]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.495,4.439],[-8.014,-2.591],[-1.584,0],[-0.24,0.024],[-0.576,0.096],[-0.24,0.048],[-6.263,12.416]],"o":[[0.809,12.085],[1.513,0.48],[0.24,0],[0.576,0],[0.24,-0.024],[8.88,-1.574],[-28.991,32.238]],"v":[[-23.007,-17.211],[-9.128,6.876],[-4.495,7.595],[-3.775,7.572],[-2.072,7.427],[-1.376,7.307],[23.007,-15.027]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[137.745,379.725]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[2.917,8.086],[-6.362,-2.057],[-6.769,5.809],[-1.729,2.136],[-0.648,0.936],[-1.08,2.041],[-0.457,0.96],[-0.96,2.976],[-0.133,0.448]],"o":[[1.978,8.802],[6.168,1.992],[1.968,-1.68],[0.72,-0.864],[1.296,-1.8],[0.529,-0.912],[1.296,-2.712],[0.143,-0.446],[-22.15,38.84]],"v":[[-24.709,-3.713],[-11.77,13.488],[8.296,7.535],[13.842,1.774],[15.881,-0.938],[19.458,-6.723],[20.923,-9.531],[24.33,-18.076],[24.709,-19.42]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[162.157,400.139]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[6.317,17.238],[-4.973,-3.879],[-0.624,-0.384],[-0.072,-0.024],[-0.792,-0.337],[-1.608,-0.168],[-5.846,14.544]],"o":[[2.314,8.193],[0.576,0.456],[0.072,0.048],[0.744,0.48],[1.513,0.624],[10.648,1.072],[-12.581,25.349]],"v":[[-23.469,-12.374],[-12.263,6.286],[-10.463,7.535],[-10.247,7.655],[-7.943,8.855],[-3.262,10.056],[23.469,-12.674]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[79.816,454.602]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-2.508,8.327],[9.439,32.933],[-0.15,-0.942],[-0.336,-1.368],[-8.689,-1.488],[-2.784,0.888],[-0.864,0.432],[-1.776,1.465],[-0.769,0.744],[-0.672,0.768]],"o":[[-13.183,26.572],[0.11,0.978],[0.24,1.44],[2.953,11.954],[2.737,0.48],[0.888,-0.288],[1.848,-0.864],[0.769,-0.624],[0.696,-0.672],[4.914,-5.617]],"v":[[25.797,-17.331],[-25.797,-15.602],[-25.407,-12.72],[-24.543,-8.52],[-6.253,13.443],[2.052,12.794],[4.669,11.738],[10.117,8.234],[12.422,6.169],[14.486,3.986]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[105.058,415.642]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.236,6.408],[0.883,19.403],[-8.823,-2.848],[-1.248,-0.048],[-0.816,0.072],[-4.633,4.009]],"o":[[-16.886,26.418],[0.061,13.511],[1.201,0.384],[0.792,0.072],[4.537,-0.384],[4.71,-4.042]],"v":[[23.065,-10.587],[-23.065,-15.83],[-9.061,11.331],[-5.388,12.003],[-2.988,12.003],[11.005,5.378]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[81.991,376.445]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-11.737,-2.016],[-0.864,-0.024],[-0.792,0.096],[-5.808,12.722],[-4.611,17.283],[0.44,-2.547],[0.072,-3.384],[-0.024,-1.104]],"o":[[0.84,0.144],[0.792,0],[9.001,-1.224],[-37.094,40.539],[-0.678,2.405],[-0.624,3.553],[-0.048,1.153],[0.408,18.218]],"v":[[-3.523,18.861],[-0.955,19.101],[1.446,18.957],[25.304,-3.39],[-20.693,-37.149],[-22.389,-29.721],[-23.421,-19.28],[-23.445,-15.895]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[52.715,410.224]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.768,-0.168],[-0.936,-0.072],[-0.336,0],[-0.816,0.096],[-4.623,17.823],[7.749,23.227],[-8.386,-3.14]],"o":[[0.912,0.216],[0.337,0.024],[0.817,0],[11.705,-1.466],[-10.518,30.599],[3.471,12.598],[0.744,0.264]],"v":[[-6.016,15.735],[-3.257,16.143],[-2.249,16.191],[0.2,16.047],[27.027,-16.191],[-27.027,-9.947],[-8.321,15.063]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[101.053,485.31]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[18.841,36.244],[-5.059,-5.148],[-0.744,-0.6],[-3.96,-0.288],[-3.649,2.112],[-0.672,0.481],[-2.521,3.505],[-1.431,11.522]],"o":[[2.105,9.338],[0.696,0.744],[3.312,2.713],[3.865,0.288],[0.72,-0.408],[2.904,-2.064],[5.667,-7.9],[-6.202,31.048]],"v":[[-28.379,-11.361],[-17.305,10.92],[-15.121,12.936],[-4.128,17.569],[7.227,14.785],[9.315,13.44],[17.475,5.039],[28.379,-24.883]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[147.53,446.056]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[13.06,17.422],[-8.577,-1.231],[-0.792,-0.024],[0,0],[-5.185,14.089],[-0.552,2.16],[-0.397,3.516]],"o":[[4.937,11.287],[0.792,0.144],[0,0],[10.633,0],[0.72,-1.968],[0.826,-3.211],[-11.458,38.156]],"v":[[-26.348,-0.2],[-5.17,19.703],[-2.794,19.919],[-2.554,19.919],[22.601,-3.58],[24.521,-9.797],[26.348,-19.919]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[130.954,511.442]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[4.603,13.966],[-11.276,-0.432],[-0.24,0],[-0.576,0.048],[-5.115,9.169]],"o":[[4.69,16.118],[0.24,0.024],[0.577,0],[7.683,-0.722],[-18.116,18.698]],"v":[[-24.027,-15.42],[1.777,12.295],[2.473,12.319],[4.178,12.247],[24.027,-3.277]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[64.672,512.777]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.6,-0.648],[-3.384,-1.152],[-0.84,-0.144],[-0.792,-0.048],[-6.176,9.919],[-0.112,9.516],[0.035,-0.506],[0,0],[0,0],[0,0],[0,0],[-5.017,-9.577],[-1.344,-1.752]],"o":[[2.808,3.097],[0.792,0.288],[0.769,0.168],[8.527,0.61],[-41.135,17.741],[-0.044,0.503],[0,0],[0,0],[0,0],[0,0],[-0.864,13.058],[1.128,2.184],[0.552,0.72]],"v":[[-12.183,17.262],[-2.822,23.719],[-0.374,24.391],[1.979,24.727],[24.976,9.869],[-23.961,-27.61],[-24.112,-26.111],[-24.112,-26.087],[-24.112,-25.991],[-24.112,-25.871],[-24.112,-25.799],[-17.655,9.293],[-13.911,15.198]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[38.428,459.06]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[5.529,13.025],[-0.117,-0.378],[-0.336,-0.96],[-8.905,-2.112],[-0.816,-0.072],[-0.552,0],[-5.158,14.95]],"o":[[0.111,0.384],[0.312,1.032],[4.513,12.505],[0.792,0.192],[0.552,0.072],[10.716,0],[-19.6,28.134]],"v":[[-26.065,-15.773],[-25.757,-14.6],[-24.772,-11.624],[-3.602,11.803],[-1.177,12.187],[0.503,12.283],[26.065,-12.362]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[97.271,552.658]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-0.849,11.703],[0,-3.99],[-10.369,-7.585],[-0.936,-0.48],[-3.193,0],[-5.353,7.849],[0.396,1.469]],"o":[[-38.75,19.785],[-0.556,3.772],[0,19.946],[0.865,0.648],[2.856,1.585],[7.225,0],[-0.473,-1.386],[0,0]],"v":[[23.135,12.088],[-23.579,-31.873],[-24.435,-20.212],[-6.841,24.505],[-4.128,26.209],[4.993,28.634],[24.435,16.392],[23.145,12.093]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[45.423,524.33]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.744,-1.2],[-6.505,2.088],[-1.656,2.832],[-0.36,1.056],[-0.24,1.128],[3.408,5.04],[-0.528,0.36],[-0.384,-0.552],[-3.792,-0.577],[-0.792,0.072],[-0.6,0.193],[0.408,7.585],[-0.648,0.049],[-0.048,-0.648],[6.193,-1.992],[0.961,-0.048],[0.864,-1.825],[-9.049,-1.608],[-0.216,-0.024],[-0.552,0],[-0.216,0],[-1.512,0.48],[1.08,15.506],[2.688,2.04],[2.088,6.433],[-0.623,0.192],[-0.192,-0.624],[-4.273,-3.265],[-2.208,-0.456],[-0.816,0],[0,0],[-0.792,0.168],[-0.312,0.12],[0.817,9.505],[2.713,4.152],[1.44,-0.456],[1.033,0],[3.384,6.169],[-0.576,0.336],[-0.336,-0.576],[-4.753,1.536],[-0.936,1.009],[0.456,1.104],[-0.624,0.264],[-0.264,-0.624],[-0.312,-0.624],[-0.479,-0.767],[-2.904,-1.824],[-0.888,-0.36],[-2.713,0.864],[-1.296,1.345],[-0.528,0.864],[0.024,4.728],[-0.672,0],[0,-0.672],[2.929,-3.649],[-4.848,-2.136],[-1.704,0.48],[0,0],[-0.168,0.073],[-0.504,0.456],[-0.648,1.272],[-0.264,0.816],[-0.072,2.352],[37.325,21.891],[10.273,-6.937],[0.384,0.456],[-0.408,0.456],[-0.216,3.432],[34.492,-1.56],[-0.096,-0.168],[-0.456,-1.057]],"o":[[4.849,7.993],[2.832,-0.912],[0.504,-0.889],[0.36,-1.008],[-4.464,-0.672],[-0.36,-0.552],[0.552,-0.384],[3,4.44],[0.816,0.12],[0.601,-0.072],[5.04,-1.608],[-0.024,-0.672],[0.672,-0.048],[0.456,8.833],[-0.936,0.312],[-0.384,2.232],[6.265,12.841],[0.24,0.048],[0.6,0.072],[0.264,0.024],[1.584,0],[9.577,-3.096],[-2.785,-0.456],[-4.657,-3.576],[-0.193,-0.648],[0.649,-0.216],[1.944,6.001],[2.16,1.656],[0.817,0.192],[0,0],[0.816,0],[0.336,-0.072],[6.457,-2.064],[-3.672,-1.848],[-1.128,1.056],[-0.984,0.312],[-5.064,0],[-0.312,-0.576],[0.576,-0.312],[3.504,6.409],[1.272,-0.408],[-0.552,-1.008],[-0.264,-0.624],[0.6,-0.264],[0.264,0.648],[0.408,0.84],[2.161,3.553],[0.864,0.553],[2.832,1.2],[1.728,-0.552],[0.696,-0.696],[1.993,-3.12],[0,-0.648],[0.6,0.024],[0.048,6],[2.953,8.161],[2.64,1.176],[0,0],[0.192,-0.047],[0.576,-0.264],[0.888,-0.768],[0.337,-0.672],[0.576,-1.825],[0.504,-13.874],[-7.849,7.825],[-0.48,0.336],[-0.408,-0.456],[4.993,-5.617],[-15.434,19.37],[1.273,27.171],[0.36,1.152],[0.6,1.368]],"v":[[-61.735,31.396],[-42.845,41.693],[-36.052,35.933],[-34.732,33.004],[-33.844,29.788],[-46.229,20.979],[-45.917,19.323],[-44.237,19.635],[-33.532,27.412],[-31.108,27.484],[-29.307,27.099],[-21.554,11.714],[-20.426,10.441],[-19.154,11.57],[-28.563,29.38],[-31.444,29.908],[-33.364,35.981],[-8.593,59.095],[-7.921,59.215],[-6.193,59.359],[-5.472,59.383],[-0.84,58.663],[13.034,27.243],[4.729,23.475],[-5.712,7.945],[-4.945,6.433],[-3.432,7.201],[6.193,21.555],[12.817,24.747],[15.266,25.035],[15.314,25.035],[17.714,24.771],[18.698,24.507],[28.035,4.801],[18.242,-4.392],[14.378,-2.088],[11.329,-1.632],[-2.472,-11.521],[-1.992,-13.153],[-0.36,-12.673],[13.634,-4.392],[16.97,-6.529],[15.434,-9.673],[16.082,-11.257],[17.642,-10.609],[18.53,-8.713],[19.874,-6.313],[27.627,1.848],[30.268,3.241],[38.693,3.817],[43.253,0.936],[45.077,-1.416],[48.15,-13.441],[49.35,-14.641],[50.55,-13.441],[45.989,1.441],[60.343,17.066],[67.112,18.098],[67.112,18.074],[67.64,17.882],[69.248,16.802],[71.552,13.73],[72.441,11.498],[73.449,5.185],[27.363,-59.383],[0.216,-37.18],[-1.344,-37.396],[-1.344,-38.98],[5.089,-53.694],[-73.953,-20.498],[-65,24.243],[-63.751,27.532]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[562.876,327.937]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[15.458,19.37],[-4.969,-5.617],[0.408,-0.456],[0.504,0.336],[7.849,7.825],[-0.504,-13.874],[-0.576,-1.825],[-0.336,-0.672],[-0.888,-0.768],[-0.576,-0.264],[-0.168,-0.048],[-2.665,1.176],[-2.952,8.161],[-0.048,6],[-0.648,0],[0,0],[0,-0.648],[-1.968,-3.12],[-0.673,-0.672],[-1.728,-0.552],[-2.832,1.2],[-0.864,0.553],[-2.16,3.553],[-0.408,0.84],[-0.264,0.648],[-0.6,-0.24],[0.264,-0.624],[0.552,-1.008],[-1.272,-0.408],[-3.481,6.409],[-0.576,-0.312],[0.312,-0.576],[5.089,0],[1.008,0.312],[1.129,1.08],[3.649,-1.849],[-6.456,-2.064],[-0.336,-0.072],[-0.816,0],[0,0],[-0.816,0.192],[-2.16,1.656],[-1.944,6.001],[-0.624,-0.216],[0.192,-0.648],[4.657,-3.576],[2.784,-0.456],[-9.577,-3.096],[-1.584,0],[-0.24,0.024],[-0.577,0.096],[-0.24,0.048],[-6.264,12.866],[0.384,2.208],[0.936,0.312],[-0.456,8.833],[-0.672,-0.096],[0.048,-0.673],[-5.041,-1.608],[-0.624,-0.072],[-0.816,0.12],[-3.001,4.441],[-0.552,-0.383],[0.384,-0.552],[4.464,-0.672],[-0.36,-1.008],[-0.504,-0.888],[-2.833,-0.912],[-4.825,7.969],[-0.576,1.368],[-0.36,1.104],[-1.272,27.147]],"o":[[0.216,3.432],[0.408,0.456],[-0.384,0.456],[-10.274,-6.937],[-37.324,21.891],[0.072,2.352],[0.264,0.816],[0.648,1.272],[0.505,0.456],[0.168,0.072],[1.68,0.504],[4.824,-2.136],[-2.928,-3.648],[0,-0.672],[0,0],[0.648,0],[-0.024,4.728],[0.552,0.888],[1.32,1.345],[2.712,0.864],[0.888,-0.361],[2.905,-1.824],[0.48,-0.768],[0.312,-0.624],[0.265,-0.624],[0.624,0.264],[-0.456,1.104],[0.936,1.009],[4.753,1.536],[0.336,-0.576],[0.6,0.336],[-3.361,6.169],[-1.032,0],[-1.416,-0.456],[-2.736,4.152],[-0.816,9.505],[0.337,0.096],[0.793,0.168],[0,0],[0.816,0],[2.208,-0.456],[4.272,-3.265],[0.192,-0.624],[0.624,0.192],[-2.088,6.433],[-2.688,2.04],[-1.08,15.506],[1.512,0.48],[0.24,0],[0.576,0],[0.24,-0.024],[9.074,-1.608],[-0.888,-1.8],[-0.984,-0.048],[-6.169,-1.992],[0.048,-0.648],[0.648,0.049],[-0.408,7.584],[0.6,0.193],[0.792,0.072],[3.793,-0.577],[0.384,-0.551],[0.552,0.36],[-3.408,5.04],[0.24,1.128],[0.36,1.056],[1.656,2.833],[6.528,2.112],[0.72,-1.2],[0.48,-1.009],[0.12,-0.288],[-34.492,-1.56]],"v":[[-5.089,-53.694],[1.344,-38.98],[1.344,-37.396],[-0.216,-37.18],[-27.364,-59.383],[-73.449,5.185],[-72.441,11.498],[-71.553,13.73],[-69.249,16.802],[-67.616,17.882],[-67.112,18.074],[-60.319,17.066],[-45.99,1.44],[-50.549,-13.441],[-49.35,-14.641],[-49.326,-14.641],[-48.15,-13.441],[-45.102,-1.416],[-43.253,0.936],[-38.693,3.817],[-30.268,3.241],[-27.628,1.848],[-19.875,-6.313],[-18.531,-8.713],[-17.643,-10.609],[-16.082,-11.257],[-15.434,-9.673],[-16.97,-6.529],[-13.634,-4.392],[0.36,-12.673],[1.993,-13.153],[2.472,-11.521],[-11.33,-1.632],[-14.378,-2.088],[-18.219,-4.392],[-28.036,4.801],[-18.699,24.507],[-17.715,24.771],[-15.314,25.035],[-15.266,25.035],[-12.818,24.747],[-6.193,21.555],[3.433,7.201],[4.945,6.433],[5.713,7.945],[-4.729,23.475],[-13.034,27.243],[0.84,58.663],[5.472,59.383],[6.192,59.359],[7.898,59.215],[8.593,59.095],[33.387,35.956],[31.468,29.908],[28.563,29.38],[19.154,11.57],[20.426,10.441],[21.554,11.714],[29.308,27.099],[31.132,27.484],[33.531,27.412],[44.238,19.634],[45.917,19.322],[46.23,20.979],[33.844,29.788],[34.732,33.004],[36.053,35.932],[42.846,41.693],[61.76,31.42],[63.727,27.532],[64.951,24.363],[73.952,-20.498]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[127.777,327.937]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.168,0.024],[0.168,-0.528],[7.273,-6.241],[5.137,-0.336],[-0.6,-3.769],[-0.336,-1.368],[-8.688,-1.489],[-2.784,0.888],[-0.864,0.432],[-1.776,1.464],[-0.768,0.744],[-0.672,0.767],[-2.065,11.833],[1.632,0.504],[-1.128,16.61]],"o":[[-0.144,0.552],[-3.528,10.969],[-5.113,4.417],[-0.144,4.225],[0.24,1.44],[2.953,11.953],[2.737,0.48],[0.889,-0.288],[1.848,-0.864],[0.769,-0.624],[0.696,-0.672],[6.553,-7.489],[-1.705,-0.024],[-10.729,-3.481],[-0.168,0]],"v":[[5.965,-37.108],[5.484,-35.5],[-11.27,-8.809],[-26.919,-1.608],[-26.176,10.466],[-25.311,14.666],[-7.022,36.629],[1.283,35.981],[3.9,34.924],[9.348,31.42],[11.654,29.356],[13.717,27.172],[27.064,-2.76],[22.047,-3.576],[6.492,-37.084]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[105.826,392.457]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.632,0],[1.32,0.408],[1.392,1.224],[5.041,-2.209],[1.8,0],[0.672,0.216],[-11.378,-3.672],[-1.248,-0.048],[-0.817,0.072],[-4.632,4.008],[-3.408,10.537],[-0.12,0.409],[0.336,0.096],[-0.528,10.153]],"o":[[-1.368,0],[-1.753,-0.576],[-3.408,8.257],[-2.184,0.936],[-0.817,0],[-3.864,18.89],[1.2,0.384],[0.792,0.072],[4.536,-0.384],[6.937,-5.953],[0.12,-0.408],[-0.36,-0.072],[-7.369,-2.376],[-1.633,0.552]],"v":[[9.517,-25.263],[5.485,-25.887],[0.78,-28.599],[-14.438,-12.709],[-20.462,-11.293],[-22.695,-11.581],[-9.925,27.855],[-6.253,28.527],[-3.852,28.527],[10.141,21.903],[26.175,-3.684],[26.559,-4.909],[25.503,-5.173],[14.414,-26.103]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[82.856,359.92]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-11.737,-2.016],[-0.864,-0.024],[-0.792,0.096],[-5.808,12.722],[-0.168,5.688],[1.392,0.456],[-4.32,20.331],[1.008,2.064],[3.12,-18.074],[0.072,-3.384],[-0.024,-1.104]],"o":[[0.84,0.144],[0.792,0],[9.001,-1.224],[-1.128,-4.896],[-1.464,-0.072],[-12.674,-4.08],[-1.632,-1.08],[-11.066,4.944],[-0.624,3.553],[-0.048,1.153],[0.408,18.218]],"v":[[-4.441,43.157],[-1.873,43.397],[0.529,43.253],[24.387,20.906],[22.874,4.921],[18.578,4.128],[4.297,-38.645],[0.337,-43.397],[-23.307,-5.425],[-24.339,5.016],[-24.363,8.401]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[53.632,385.928]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.344,-1.752],[-0.6,-0.648],[-3.384,-1.152],[-0.84,-0.144],[-0.792,-0.048],[-6.313,13.489],[1.296,14.306],[1.056,0.192],[1.152,18.17],[0.984,-14.33],[0,0],[0,0],[0,0],[0,0],[-5.017,-9.577]],"o":[[0.552,0.72],[2.808,3.097],[0.792,0.288],[0.769,0.168],[10.057,0.72],[-7.825,-5.713],[-1.056,0],[-12.29,-2.136],[-7.057,8.737],[0,0],[0,0],[0,0],[0,0],[-0.864,13.058],[1.128,2.185]],"v":[[-15.47,33.544],[-13.742,35.608],[-4.381,42.065],[-1.933,42.737],[0.42,43.073],[26.535,22.479],[11.965,-8.989],[8.797,-9.253],[-13.022,-43.793],[-25.671,-7.765],[-25.671,-7.741],[-25.671,-7.645],[-25.671,-7.525],[-25.671,-7.453],[-19.214,27.639]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[39.987,440.714]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[3.169,3.24],[0,-9.073],[-10.369,-7.585],[-0.936,-0.48],[-3.192,0],[-5.352,7.849],[0.648,4.704],[2.665,23.811]],"o":[[-2.808,7.609],[0,19.946],[0.864,0.648],[2.856,1.585],[7.225,0],[-1.392,-4.08],[-15.314,-0.288],[-3.84,-1.104]],"v":[[-20.163,-37.085],[-24.435,-11.761],[-6.841,32.956],[-4.129,34.659],[4.993,37.085],[24.435,24.842],[21.314,11.594],[-9.578,-30.483]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[45.423,515.879]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[10.489,0],[0.456,0.048],[0.648,0.096],[-13.778,-0.528],[-0.24,0],[-0.576,0.048],[-5.113,13.202],[2.136,18.747],[0.36,0.216]],"o":[[-0.456,0],[-0.648,-0.048],[2.712,22.034],[0.24,0.024],[0.576,0],[9.457,-0.888],[-11.425,-4.273],[-0.36,-0.168],[-6.457,13.633]],"v":[[-23.511,-8.558],[-24.879,-8.605],[-26.799,-8.822],[1.332,30.279],[2.028,30.304],[3.732,30.232],[26.799,7.812],[4.5,-29.729],[3.42,-30.303]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[65.118,494.793]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.336,-0.96],[-8.906,-2.112],[-0.816,-0.072],[-0.552,0],[-4.32,18.746],[4.681,16.586],[0.168,0],[0.456,0.024],[1.128,0.265],[10.369,-1.032],[-1.032,-3.337]],"o":[[4.513,12.505],[0.792,0.192],[0.552,0.072],[12.265,0],[-11.353,-1.728],[-0.168,0.024],[-0.432,0],[-1.152,-0.072],[-5.425,14.114],[0.528,3.745],[0.312,1.032]],"v":[[-24.723,6.901],[-3.552,30.328],[-1.128,30.712],[0.552,30.808],[28.059,-0.636],[2.232,-30.255],[1.752,-30.231],[0.408,-30.279],[-3,-30.808],[-28.059,-6.733],[-25.707,3.925]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[97.221,534.133]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.792,-0.024],[0,0],[-5.185,14.09],[-0.552,2.161],[0,6.793],[1.584,6.073],[3.648,0],[0.504,0.024],[3.409,2.424],[14.306,-2.089],[-10.37,-1.488]],"o":[[0,0],[10.633,0],[0.72,-1.968],[1.512,-5.88],[0,-6.672],[-3.432,1.896],[-0.504,0],[-4.033,-0.288],[-3.432,22.539],[4.488,15.506],[0.792,0.144]],"v":[[-1.692,34.768],[-1.452,34.768],[23.702,11.269],[25.622,5.052],[27.976,-14.078],[25.575,-33.4],[14.869,-30.52],[13.357,-30.568],[2.171,-34.768],[-27.976,7.093],[-4.068,34.552]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[129.853,496.593]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.648,0.072],[1.344,0.456],[-10.321,-3.864],[-0.768,-0.168],[-0.937,-0.072],[-0.336,0],[-0.816,0.096],[-3,22.371],[1.464,14.594],[2.088,-0.84],[13.898,0]],"o":[[-1.416,-0.144],[2.232,17.21],[0.744,0.264],[0.912,0.216],[0.336,0.024],[0.816,0],[13.609,-1.704],[-7.633,-6.768],[-2.017,1.489],[-4.273,21.482],[-0.648,0]],"v":[[-24.711,2.94],[-28.839,2.029],[-8.293,36.257],[-5.989,36.928],[-3.228,37.337],[-2.22,37.384],[0.228,37.241],[28.839,-4.044],[14.39,-37.384],[8.197,-33.879],[-22.791,3.036]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[101.026,464.117]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.08,0.168],[3.504,11.449],[9.313,-1.128],[-6.985,-5.449],[-0.625,-0.384],[-0.072,-0.024],[-0.792,-0.336],[-1.608,-0.168],[-4.441,20.57],[1.657,0]],"o":[[-8.929,-1.536],[-6.241,12.265],[1.248,13.13],[0.576,0.455],[0.072,0.048],[0.744,0.48],[1.512,0.624],[13.106,1.32],[-1.656,0.432],[-1.08,0]],"v":[[17.93,-6.721],[-1.488,-27.795],[-26.115,-6.601],[-12.914,22.707],[-11.113,23.955],[-10.897,24.075],[-8.593,25.275],[-3.913,26.475],[26.115,-7.105],[21.146,-6.457]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[80.467,438.182]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[6.145,-7.009],[1.248,-1.104],[-6.745,-6.865],[-0.744,-0.601],[-3.961,-0.288],[-3.648,2.112],[-0.672,0.481],[-2.52,3.505],[-0.96,13.129],[0.313,3.865],[1.488,-1.297],[5.521,0],[1.753,0.551],[1.68,11.281]],"o":[[-1.2,1.368],[1.104,13.658],[0.696,0.744],[3.313,2.712],[3.864,0.288],[0.72,-0.408],[2.905,-2.064],[6.337,-8.832],[0.289,-4.009],[-1.368,1.536],[-5.545,4.776],[-1.848,0],[-7.969,-2.569],[-2.401,10.801]],"v":[[-25.803,-7.645],[-29.476,-3.949],[-16.923,28.143],[-14.739,30.16],[-3.744,34.792],[7.609,32.008],[9.697,30.663],[17.857,22.262],[29.187,-11.773],[29.162,-23.583],[24.867,-19.334],[7.945,-12.086],[2.52,-12.925],[-12.649,-35.08]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[147.147,428.833]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-7.945,-2.568],[-6.768,5.809],[-1.728,2.136],[-0.648,0.937],[-1.081,2.04],[-0.456,0.96],[-0.96,2.977],[-0.048,6.025],[5.592,0],[1.32,0.432],[1.849,2.665],[9.577,-1.584]],"o":[[6.169,1.992],[1.968,-1.68],[0.72,-0.864],[1.296,-1.8],[0.528,-0.913],[1.296,-2.712],[1.992,-6.216],[-4.321,5.665],[-1.369,0],[-2.952,-0.96],[-6.673,12.89],[0.768,12.386]],"v":[[-12.649,24.099],[7.417,18.146],[12.962,12.386],[15.001,9.673],[18.579,3.889],[20.043,1.08],[23.451,-7.465],[26.572,-26.091],[10.874,-16.994],[6.841,-17.618],[-0.432,-23.163],[-26.572,-0.096]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[163.037,389.528]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-8.305,2.664],[-0.768,12.386],[6.649,12.89],[2.952,-0.96],[1.369,0],[4.321,5.689],[-0.432,-2.856],[-1.08,-3.384],[-3.457,-4.848],[-0.696,-0.864]],"o":[[7.945,-2.568],[-9.577,-1.584],[-1.873,2.665],[-1.32,0.432],[-5.592,0],[0.024,2.76],[0.528,3.409],[2.088,6.505],[0.648,0.937],[7.681,9.529]],"v":[[12.649,23.775],[26.571,-0.42],[0.456,-23.487],[-6.841,-17.942],[-10.874,-17.318],[-26.572,-26.439],[-25.875,-18.014],[-23.451,-7.789],[-14.978,9.373],[-12.962,12.062]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[527.616,389.852]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-6.337,-8.833],[-2.905,-2.064],[-0.72,-0.384],[-3.864,0.288],[-3.313,2.688],[-0.696,0.72],[-1.081,13.682],[1.2,1.368],[2.424,10.754],[7.945,-2.568],[1.824,0],[6.456,7.249],[-0.288,-4.008]],"o":[[2.52,3.504],[0.696,0.504],[3.625,2.136],[3.961,-0.289],[0.744,-0.624],[6.745,-6.865],[-1.249,-1.104],[-6.121,-6.985],[-1.705,11.234],[-1.753,0.552],[-7.225,0],[-0.312,3.864],[0.984,13.13]],"v":[[-17.859,22.214],[-9.698,30.591],[-7.586,31.935],[3.743,34.745],[14.737,30.135],[16.921,28.12],[29.475,-3.997],[25.802,-7.693],[12.649,-35.033],[-2.497,-12.974],[-7.85,-12.158],[-29.164,-23.678],[-29.188,-11.822]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[543.506,428.881]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.744,-1.992],[-10.633,0],[0,0],[-0.792,0.144],[-4.488,15.505],[3.456,22.562],[4.033,-0.288],[0.504,0],[3.432,1.896],[0,-6.673],[-1.512,-5.856]],"o":[[5.161,14.09],[0,0],[0.792,-0.024],[10.37,-1.488],[-14.306,-2.065],[-3.385,2.448],[-0.504,0.024],[-3.648,0],[-1.584,6.073],[0,6.769],[0.552,2.185]],"v":[[-23.678,11.281],[1.453,34.78],[1.693,34.78],[4.068,34.564],[27.976,7.105],[-2.195,-34.78],[-13.357,-30.556],[-14.87,-30.508],[-25.575,-33.388],[-27.976,-14.066],[-25.622,4.992]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[560.799,496.581]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-12.265,0],[-0.552,0.072],[-0.792,0.192],[-4.489,12.482],[-0.312,1.032],[-0.528,3.744],[5.401,14.137],[1.152,-0.072],[0.432,0],[0.144,0.024],[11.329,-1.752]],"o":[[0.552,0],[0.816,-0.072],[8.906,-2.112],[0.336,-0.984],[1.032,-3.336],[-10.393,-1.032],[-1.128,0.288],[-0.456,0.024],[-0.144,0],[-4.705,16.586],[4.296,18.747]],"v":[[-0.564,30.819],[1.116,30.724],[3.54,30.339],[24.711,6.937],[25.695,3.937],[28.047,-6.72],[3.012,-30.819],[-0.42,-30.267],[-1.764,-30.22],[-2.22,-30.243],[-28.047,-0.625]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[593.443,534.121]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-7.225,0],[-2.88,1.584],[-0.864,0.648],[0,19.947],[2.808,7.609],[3.816,-1.104],[15.314,-0.288],[1.392,-4.081]],"o":[[3.192,0],[0.936,-0.48],[10.345,-7.561],[0,-9.049],[-3.193,3.241],[-2.689,23.811],[-0.648,4.705],[5.352,7.849]],"v":[[-4.992,37.073],[4.152,34.648],[6.84,32.945],[24.434,-11.773],[20.162,-37.072],[9.602,-30.495],[-21.315,11.581],[-24.435,24.831]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[645.229,515.891]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-9.457,-0.888],[-0.576,0],[-0.24,0.024],[-2.689,22.035],[0.648,-0.048],[0.456,0],[6.457,13.633],[0.36,-0.168],[11.426,-4.248]],"o":[[0.552,0.072],[0.24,0],[13.778,-0.528],[-0.649,0.12],[-0.456,0.048],[-10.489,0],[-0.36,0.216],[-2.112,18.77],[5.089,13.202]],"v":[[-3.744,30.208],[-2.04,30.303],[-1.344,30.28],[26.812,-8.845],[24.867,-8.605],[23.499,-8.557],[-3.432,-30.303],[-4.512,-29.728],[-26.811,7.812]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[625.547,494.793]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[12.29,-2.136],[1.056,0],[7.825,-5.713],[-10.057,0.72],[-0.768,0.168],[-0.816,0.288],[-2.808,3.073],[-0.552,0.72],[-1.152,2.185],[0.888,13.13],[0,0],[7.056,8.737]],"o":[[-1.056,0.192],[-1.296,14.306],[6.313,13.489],[0.792,-0.048],[0.841,-0.144],[3.36,-1.176],[0.6,-0.648],[1.368,-1.752],[5.041,-9.625],[0,0],[-0.984,-14.33],[-1.152,18.17]],"v":[[-8.809,-9.253],[-11.977,-8.989],[-26.547,22.479],[-0.432,43.073],[1.92,42.737],[4.393,42.065],[13.73,35.632],[15.458,33.568],[19.226,27.639],[25.659,-7.645],[25.659,-7.741],[13.01,-43.793]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[650.678,440.714]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.416,-0.144],[0.648,0],[4.273,21.482],[2.017,1.513],[7.633,-6.768],[-13.73,-1.656],[-0.816,0],[-0.337,0.024],[-0.912,0.216],[-0.744,0.264],[-2.232,17.21]],"o":[[-0.648,0.072],[-13.898,0],[-2.088,-0.84],[-1.44,14.594],[2.976,22.371],[0.816,0.096],[0.336,0],[0.936,-0.072],[0.768,-0.168],[10.321,-3.864],[-1.32,0.456]],"v":[[24.711,2.952],[22.791,3.048],[-8.197,-33.867],[-14.39,-37.397],[-28.839,-4.033],[-0.228,37.253],[2.22,37.396],[3.229,37.349],[5.989,36.94],[8.293,36.268],[28.839,2.04]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[589.627,464.105]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[11.065,4.945],[1.632,-1.081],[12.673,-4.081],[1.464,-0.072],[1.128,-4.897],[-9.001,-1.2],[-0.792,0],[-0.84,0.144],[-0.384,18.242],[0.048,1.128],[0.624,3.552]],"o":[[-0.984,2.064],[4.32,20.33],[-1.416,0.456],[0.192,5.688],[5.809,12.721],[0.792,0.096],[0.864,0],[11.738,-2.04],[0.024,-1.104],[-0.072,-3.385],[-3.121,-18.075]],"v":[[-0.336,-43.397],[-4.296,-38.62],[-18.578,4.129],[-22.899,4.921],[-24.387,20.907],[-0.528,43.253],[1.872,43.397],[4.44,43.157],[24.363,8.377],[24.339,5.017],[23.307,-5.424]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[637.021,385.928]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.224,13.13],[6.265,12.265],[8.929,-1.536],[1.08,0],[1.656,0.432],[-12.842,1.344],[-1.488,0.648],[-0.744,0.48],[-0.072,0.048],[-0.576,0.479]],"o":[[-9.313,-1.104],[-3.504,11.449],[-1.08,0.168],[-1.657,0],[4.464,20.283],[1.608,-0.168],[0.816,-0.336],[0.072,-0.024],[0.624,-0.384],[6.984,-5.425]],"v":[[26.103,-6.625],[1.476,-27.795],[-17.942,-6.745],[-21.158,-6.481],[-26.103,-7.129],[3.901,26.451],[8.581,25.227],[10.909,24.027],[11.101,23.931],[12.902,22.659]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[610.197,438.206]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[10.729,-3.48],[1.705,-0.024],[-6.553,-7.489],[-0.696,-0.696],[-0.768,-0.648],[-1.848,-0.864],[-0.888,-0.288],[-2.712,0.48],[-2.952,11.953],[-0.239,1.44],[0.144,4.225],[5.112,4.417],[3.528,10.969],[0.144,0.552],[0.168,0]],"o":[[-1.632,0.504],[2.088,11.833],[0.672,0.768],[0.744,0.744],[1.801,1.464],[0.864,0.432],[2.761,0.912],[8.689,-1.489],[0.337,-1.368],[0.601,-3.769],[-5.137,-0.336],[-7.273,-6.241],[-0.168,-0.528],[-0.168,0.024],[1.128,16.61]],"v":[[-22.047,-3.577],[-27.064,-2.76],[-13.718,27.172],[-11.654,29.355],[-9.374,31.419],[-3.901,34.923],[-1.261,35.98],[7.02,36.629],[25.31,14.665],[26.174,10.466],[26.919,-1.608],[11.269,-8.809],[-5.485,-35.5],[-5.965,-37.108],[-6.493,-37.085]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[584.826,392.457]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[7.369,-2.376],[0.36,-0.048],[-0.12,-0.408],[-6.937,-5.952],[-4.536,-0.384],[-0.768,0.072],[-1.2,0.384],[3.84,18.914],[0.816,0],[2.184,0.936],[3.408,8.257],[1.752,-0.577],[1.368,0],[1.608,0.552]],"o":[[-0.36,0.12],[0.12,0.408],[3.408,10.537],[4.632,4.009],[0.816,0.072],[1.272,-0.048],[11.377,-3.673],[-0.697,0.192],[-1.8,0],[-5.041,-2.208],[-1.392,1.224],[-1.32,0.408],[-1.608,0],[0.528,10.153]],"v":[[-25.479,-5.173],[-26.559,-4.909],[-26.175,-3.685],[-10.141,21.902],[3.852,28.527],[6.229,28.527],[9.925,27.855],[22.719,-11.582],[20.462,-11.294],[14.438,-12.71],[-0.78,-28.599],[-5.485,-25.887],[-9.517,-25.263],[-14.39,-26.103]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[607.797,359.921]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.48,0],[4.512,20.018],[0.24,0],[5.785,12.577],[10.921,-32.932],[0,-13.994],[0.432,-2.736],[-9.554,13.417],[-0.552,0.817],[-6.025,63.079]],"o":[[-13.466,0],[-0.24,0.024],[-10.441,0],[-8.641,108.18],[7.777,7.393],[0,2.904],[8.257,-4.753],[0.551,-0.792],[24.459,-35.428],[-0.48,0.024]],"v":[[46.65,-66.884],[16.766,-100.488],[16.021,-100.464],[-9.518,-121.202],[-48.113,78.981],[-35.248,112.729],[-35.896,121.202],[-8.628,93.359],[-6.948,90.958],[48.114,-66.932]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[546.23,634.225]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[3,0],[5.664,7.681],[9.601,-1.896],[25.107,-35.86],[-1.417,-1.152],[-4.921,2.112],[-15.29,24.819],[-0.48,0.816],[-8.713,47.597]],"o":[[-7.585,0],[-5.017,12.745],[-6.025,64.28],[0.744,1.416],[2.952,2.4],[12.193,-5.233],[0.504,-0.792],[20.547,-34.012],[-2.736,1.248]],"v":[[45.654,-83.386],[25.203,-95.315],[2.184,-71.793],[-54.294,88.93],[-51.054,92.747],[-39.197,93.203],[4.056,45.629],[5.544,43.205],[54.294,-85.306]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[594.583,638.75]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[12.073,107.029],[3.265,-6.24],[1.776,-2.112],[0,-9.818],[12.001,-7.321],[21.266,-34.852],[-1.56,-0.984],[-4.633,3.072]],"o":[[-0.936,7.945],[-1.44,2.761],[3.192,8.161],[0,21.866],[-8.665,48.942],[0.936,1.32],[3.169,1.992],[29.739,-19.682]],"v":[[32.464,-120.878],[26.103,-99.3],[21.279,-91.979],[26.151,-64.663],[5.605,-16.754],[-44.537,115.454],[-40.793,118.886],[-29.031,117.254]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[645.913,568.781]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[2.088,6.721],[0,0],[0.912,3.12],[6.649,83.505],[10.465,0],[0.24,0.024],[13.465,0],[0.48,0.024],[-24.435,-35.429],[-0.576,-0.768],[-8.257,-4.753],[0,2.905],[-7.777,7.393]],"o":[[0,0],[-0.888,-2.832],[-10.561,-35.548],[-5.808,12.601],[-0.24,0],[-4.512,20.018],[-0.48,0],[6.048,63.079],[0.576,0.816],[9.529,13.417],[-0.432,-2.736],[0,-13.994],[-1.752,-5.28]],"v":[[42.305,61.039],[42.305,61.015],[39.592,52.086],[9.54,-121.214],[-16.023,-100.452],[-16.767,-100.476],[-46.65,-66.872],[-48.113,-66.92],[6.948,90.971],[8.652,93.347],[35.895,121.214],[35.247,112.741],[48.113,78.993]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[144.423,634.213]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[5.017,12.77],[7.609,0],[2.736,1.248],[-20.546,-34.012],[-0.505,-0.792],[-12.194,-5.208],[-2.952,2.4],[-0.745,1.416],[6.024,64.279]],"o":[[-5.641,7.681],[-2.977,0],[8.689,47.598],[0.504,0.816],[15.289,24.843],[4.92,2.113],[1.416,-1.152],[-25.107,-35.861],[-9.601,-1.921]],"v":[[-25.24,-95.327],[-45.666,-83.374],[-54.283,-85.294],[-5.558,43.217],[-4.069,45.642],[39.184,93.215],[51.041,92.759],[54.283,88.943],[-2.197,-71.78]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[96.082,638.738]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,21.891],[-3.193,8.161],[1.44,2.76],[0.936,7.897],[-29.739,-19.682],[-3.168,1.992],[-0.936,1.344],[8.666,48.941]],"o":[[0,-9.817],[-1.776,-2.112],[-3.24,-6.217],[-12.049,106.981],[4.633,3.073],[1.584,-0.985],[-21.266,-34.828],[-12.001,-7.321]],"v":[[-26.175,-64.724],[-21.302,-92.038],[-26.127,-99.359],[-32.464,-120.819],[29.007,117.193],[40.769,118.826],[44.513,115.37],[-5.605,-16.789]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[44.763,568.841]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[7.177,6.937],[0.624,0.504],[4.921,0],[1.44,-19.322],[0.024,-0.816],[0,-0.552],[-9.601,-5.953],[0,1.68],[-7.585,0],[0,-9.721],[0.312,-1.92],[-1.728,1.897],[-0.504,0.648],[0,11.377]],"o":[[-0.576,-0.6],[-3.985,-3.265],[-14.042,0],[-0.072,0.816],[-0.024,0.553],[0,15.77],[-0.336,-1.92],[0,-9.721],[7.561,0],[0,1.656],[2.017,-1.248],[0.552,-0.6],[5.569,-7.057],[0,-13.178]],"v":[[15.374,-30.195],[13.55,-31.827],[0.012,-36.94],[-27.087,-2.52],[-27.231,-0.048],[-27.255,1.609],[-10.909,36.94],[-11.413,31.516],[0.012,16.874],[11.413,31.516],[10.933,36.94],[16.598,32.188],[18.182,30.315],[27.255,1.609]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.992,0.922,0.859,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[402.813,750.482]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[5.617,7.945],[0.528,0.624],[7.825,0],[5.856,-8.665],[0,-14.066],[6.097,-7.513],[-3.912,-1.584],[0,1.848],[-7.584,0],[0,-9.721],[0.12,-1.176],[-2.4,3.313],[-0.432,0.696],[0,11.233]],"o":[[-0.48,-0.672],[-5.449,-6.745],[-8.593,0],[7.849,7.369],[0,12.145],[3.217,3.648],[-0.384,-2.112],[0,-9.721],[7.562,0],[0,1.056],[3.048,-2.088],[0.48,-0.672],[4.969,-7.777],[0,-12.098]],"v":[[17.618,-30.171],[16.106,-32.115],[-4.297,-42.965],[-26.739,-29.403],[-13.73,4.465],[-23.667,35.045],[-12.842,42.965],[-13.442,36.965],[-2.017,22.299],[9.385,36.965],[9.193,40.325],[17.402,32.164],[18.77,30.124],[26.739,0.841]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.992,0.922,0.859,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[446.198,747.626]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.672,0.576],[5.137,0],[4.632,-4.704],[0,-12.818],[5.376,-8.185],[-2.665,-1.032],[0,0.408],[-6.745,0],[-0.504,-7.249],[-2.233,9.025],[-0.169,0.96],[0,3.408],[6.841,7.009]],"o":[[-4.08,-3.48],[-5.784,0],[6.144,8.377],[0,11.905],[2.328,2.112],[-0.024,-0.456],[0,-8.641],[6.192,0],[5.857,-4.561],[0.239,-0.936],[0.6,-3.144],[0,-12.842],[-0.624,-0.648]],"v":[[8.365,-32.392],[-5.653,-37.888],[-21.59,-30.616],[-11.653,2.196],[-20.295,33.16],[-12.782,37.888],[-12.829,36.592],[-2.652,23.583],[7.428,34.505],[20.054,13.406],[20.678,10.549],[21.59,0.685],[10.285,-30.568]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.992,0.922,0.859,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[486.991,746.27]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.432,1.248],[10.777,0],[3.985,-3.264],[0.576,-0.6],[0,-13.178],[-5.569,-7.057],[-0.552,-0.601],[-2.04,-1.272],[0,1.657],[-7.561,0],[0,-9.721],[0.336,-1.92],[0,15.77],[1.032,4.057]],"o":[[-4.417,-12.842],[-4.92,0],[-0.623,0.504],[-7.176,6.937],[0,11.401],[0.528,0.648],[1.728,1.896],[-0.312,-1.92],[0,-9.721],[7.585,0],[0,1.681],[9.625,-5.953],[0,-4.561],[-0.336,-1.32]],"v":[[24.519,-15.218],[-0.012,-36.94],[-13.55,-31.828],[-15.374,-30.196],[-27.255,1.608],[-18.182,30.339],[-16.598,32.188],[-10.933,36.94],[-11.413,31.515],[-0.012,16.874],[11.413,31.515],[10.91,36.94],[27.255,1.608],[25.671,-11.378]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.992,0.922,0.859,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[287.839,750.483]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-7.825,7.369],[8.593,0],[5.449,-6.745],[0.456,-0.672],[0,-12.097],[-4.969,-7.777],[-0.48,-0.648],[-3.049,-2.112],[0,1.056],[-7.561,0],[0,-9.722],[0.385,-2.112],[-3.241,3.648],[0,12.145]],"o":[[-5.809,-8.689],[-7.824,0],[-0.528,0.648],[-5.641,7.945],[0,11.234],[0.408,0.696],[2.376,3.312],[-0.12,-1.176],[0,-9.722],[7.585,0],[0,1.848],[3.913,-1.584],[-6.121,-7.513],[0,-14.042]],"v":[[26.715,-29.379],[4.296,-42.965],[-16.106,-32.115],[-17.594,-30.147],[-26.715,0.84],[-18.746,30.124],[-17.378,32.14],[-9.193,40.325],[-9.385,36.965],[2.016,22.299],[13.442,36.965],[12.841,42.965],[23.691,35.045],[13.729,4.465]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.992,0.922,0.859,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[244.455,747.626]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-6.121,8.377],[5.785,0],[1.633,-0.456],[0.936,-0.408],[1.897,-1.608],[0.624,-0.648],[0,-12.842],[-0.6,-3.144],[-0.24,-0.96],[-5.857,-4.561],[-6.193,0],[0,-8.641],[0.024,-0.456],[-2.328,2.137],[0,11.905]],"o":[[-4.609,-4.729],[-1.704,0],[-0.96,0.24],[-2.184,0.912],[-0.672,0.576],[-6.841,7.009],[0,3.408],[0.168,0.96],[2.232,9.025],[0.504,-7.249],[6.769,0],[0,0.432],[2.64,-1.032],[-5.353,-8.185],[0,-12.818]],"v":[[21.59,-30.603],[5.652,-37.9],[0.635,-37.228],[-2.221,-36.244],[-8.366,-32.403],[-10.286,-30.579],[-21.59,0.673],[-20.679,10.514],[-20.055,13.394],[-7.429,34.493],[2.652,23.571],[12.829,36.581],[12.781,37.901],[20.294,33.148],[11.677,2.185]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.992,0.922,0.859,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[203.662,746.282]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[9.169,-18.722],[4.705,-4.441],[0.312,0],[0.192,0.072],[-0.072,0.505],[1.704,5.64],[-0.624,0.192],[-0.192,-0.624],[0.36,-14.45],[-0.84,6.673],[-0.024,0.096],[0.216,3.888],[-0.672,0.024],[-0.024,-0.649],[0.408,-7.249],[3.072,19.298],[-0.648,0.096],[-0.096,-0.648]],"o":[[-1.056,8.617],[-0.24,0.216],[-0.168,0],[-0.432,-0.241],[1.728,-12.673],[-0.192,-0.624],[0.624,-0.192],[1.585,5.208],[2.688,-4.416],[0,-0.072],[0.984,-7.873],[-0.048,-0.673],[0.744,-0.071],[0,0.12],[6.577,-15.962],[-0.12,-0.648],[0.648,-0.12],[3.576,22.371]],"v":[[32.008,39.676],[23.966,61.759],[23.126,62.072],[22.574,61.952],[21.951,60.727],[15.613,12.169],[16.405,10.681],[17.893,11.474],[24.615,57.078],[29.68,39.268],[29.703,39.004],[30.471,19.443],[31.599,18.169],[32.847,19.298],[32.703,32.307],[37.672,-18.578],[38.656,-19.947],[40.024,-18.962]],"c":true}},"nm":"P"},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[-6.553,-13.082],[0.456,-0.336],[0.264,0],[0.216,0.192],[0.144,1.008],[-0.672,0.12],[-0.096,-0.672],[-10.441,-12.601],[-3.265,9.433],[-0.624,-0.216],[0.216,-0.648]],"o":[[0.24,0.528],[-0.216,0.168],[-0.289,0],[-14.089,-12.602],[-0.12,-0.649],[0.648,-0.096],[0.048,0.216],[-4.32,-17.042],[0.215,-0.624],[0.624,0.216],[-3.457,10.009]],"v":[[-22.191,3.504],[-22.551,4.992],[-23.271,5.257],[-24.064,4.944],[-42.378,-32.404],[-41.393,-33.797],[-40.024,-32.789],[-26.247,-0.793],[-24.398,-61.183],[-22.887,-61.927],[-22.143,-60.391]],"c":true}},"nm":"P"},{"ind":2,"ty":"sh","ks":{"a":0,"k":{"i":[[0.433,-0.432],[0.312,0],[0.216,0.192],[2.304,41.837],[-0.672,0.048],[-0.024,-0.672],[-7.969,-9.865],[-1.104,3.288],[-0.624,-0.216],[0.216,-0.624],[-10.465,-12.41]],"o":[[-0.24,0.24],[-0.264,0],[-0.264,-0.24],[-0.048,-0.648],[0.648,-0.072],[1.488,26.908],[-4.801,-12.074],[0.216,-0.625],[0.625,0.216],[-1.153,3.408],[0.385,0.48]],"v":[[-75.094,31.467],[-75.957,31.827],[-76.725,31.539],[-106.128,-33.797],[-105,-35.068],[-103.752,-33.917],[-82.461,21.842],[-84.935,-7.104],[-83.398,-7.874],[-82.654,-6.337],[-75.021,29.836]],"c":true}},"nm":"P"},{"ind":3,"ty":"sh","ks":{"a":0,"k":{"i":[[0.24,-0.624],[0.48,0],[0.145,0.048],[4.609,17.09],[-0.649,0.168],[-0.168,-0.648],[-7.008,-2.808]],"o":[[-0.192,0.48],[-0.143,0],[-7.657,-3.072],[-0.168,-0.648],[0.648,-0.168],[4.368,16.178],[0.625,0.24]],"v":[[-99.527,-1.177],[-100.656,-0.432],[-101.088,-0.505],[-126.675,-39.076],[-125.834,-40.54],[-124.37,-39.701],[-100.2,-2.737]],"c":true}},"nm":"P"},{"ind":4,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.408,0.481],[1.152,3.433],[-0.648,0.216],[-0.216,-0.648],[4.8,-12.074],[-1.488,26.859],[-0.625,-0.048],[0.024,-0.672],[0.264,-0.216],[0.264,0],[0.216,0.216]],"o":[[10.441,-12.409],[-0.216,-0.624],[0.624,-0.216],[1.104,3.265],[7.969,-9.89],[0.024,-0.648],[0.672,0.048],[-2.329,41.837],[-0.216,0.192],[-0.312,0],[-0.456,-0.456]],"v":[[91.702,18.553],[99.311,-17.643],[100.079,-19.155],[101.591,-18.387],[99.12,10.538],[120.409,-45.221],[121.659,-46.349],[122.81,-45.078],[93.383,20.234],[92.615,20.522],[91.774,20.186]],"c":true}},"nm":"P"},{"ind":5,"ty":"sh","ks":{"a":0,"k":{"i":[[-2.689,2.449],[-0.096,0.072],[0,0.024],[-1.488,0.024],[0,-0.672],[0.672,0],[0.624,-0.408],[4.8,-7.129],[-5.185,6.649],[-6.793,1.921],[0,0.504],[-0.672,0],[0,-0.672],[0.288,-1.128],[0.336,-0.961],[1.464,-2.424],[-7.561,20.499],[-0.504,-0.048],[-0.12,-0.528],[4.921,-9.937],[-4.225,20.163],[-0.504,0.048],[-0.216,-0.479],[3.481,-9.889],[0,20.186],[-0.024,0.096],[-0.192,3.817],[0.792,2.472],[1.32,27.603],[0,0],[1.704,0],[31.924,34.42],[2.688,0],[4.177,7.945],[47.141,0],[1.68,0.072],[0,0],[0.072,-0.191],[1.224,-2.064],[2.473,-7.657],[1.752,-3.36],[-4.273,-4.153],[-1.561,5.521],[0.24,1.272],[0,0],[-0.648,0.12],[-0.12,-0.648],[0,0],[-0.12,-0.601],[-0.432,-1.488],[-23.139,-11.689],[-5.305,7.273],[-0.456,-0.096],[-0.096,-0.456],[-0.192,-1.056],[-37.492,-13.778],[-1.681,12.506],[-0.552,0.072],[-0.192,-0.528],[-15.842,-7.32],[-5.545,-8.185],[0.144,0.12],[-0.24,0.504],[-0.553,-0.12],[0.312,-20.379],[-0.575,0.673],[-0.048,0.048],[0.336,3.264],[-0.648,0.072],[-0.072,-0.673],[11.209,-14.57],[-6.361,12.169]],"o":[[0.072,-0.072],[0,0],[1.272,-1.08],[0.72,0.048],[0.024,0.648],[-0.648,0.024],[2.16,4.272],[7.657,-3.12],[5.185,-6.625],[0.48,-1.464],[0,-0.672],[0.648,0],[0,0.528],[-0.192,0.744],[-0.72,1.896],[6.409,-4.68],[0.192,-0.504],[0.552,0.048],[0.072,0.408],[8.21,-6.48],[0.096,-0.528],[0.504,-0.048],[0.144,0.312],[5.785,-6.192],[0,-0.096],[-0.6,-4.057],[-1.224,-2.112],[-0.048,-0.096],[0,0],[-1.68,0.048],[-47.31,0],[-4.224,8.161],[-3.073,0],[-31.923,34.204],[-1.704,0],[0,0],[-1.32,27.627],[-0.792,2.449],[0.408,7.249],[-1.224,3.792],[1.728,3.769],[-1.608,-3.841],[-0.552,-2.04],[0,0],[-0.144,-0.648],[0.648,-0.144],[0,0],[0.096,0.457],[0.216,1.104],[2.544,9.313],[-1.704,-4.632],[0.288,-0.384],[0.456,0.096],[0.168,0.744],[1.873,10.514],[-3.168,-4.057],[0.072,-0.552],[0.552,-0.024],[7.849,20.979],[10.777,4.969],[-1.632,-13.106],[-0.432,-0.36],[0.24,-0.481],[6.528,1.417],[0.624,-0.648],[0.048,-0.072],[12.242,-14.401],[-0.072,-0.648],[0.624,-0.072],[0.36,3.288],[18.386,-1.417],[2.76,-5.257]],"v":[[55.53,78.344],[55.771,78.129],[55.794,78.104],[59.898,76.353],[61.123,77.552],[59.946,78.754],[58.05,79.401],[55.746,99.923],[73.941,83.314],[90.839,68.456],[91.51,65.431],[92.71,64.232],[93.91,65.431],[93.503,67.952],[92.71,70.496],[89.495,77.12],[114.241,41.548],[115.441,40.757],[116.545,41.716],[113.449,60.775],[141.917,18.65],[142.949,17.689],[144.173,18.385],[143.717,35.02],[157.47,-4.393],[157.519,-4.681],[156.894,-16.562],[153.845,-23.451],[144.725,-68.936],[144.461,-68.936],[139.396,-68.841],[14.557,-123.23],[3.54,-109.742],[-7.838,-122.87],[-132.339,-68.841],[-137.404,-68.936],[-137.668,-68.936],[-146.813,-23.332],[-149.861,-16.514],[-153.03,6.312],[-157.518,17.065],[-148.805,29.404],[-150.197,14.689],[-151.301,9.673],[-151.47,8.809],[-150.533,7.392],[-149.117,8.328],[-148.949,9.241],[-148.637,10.826],[-147.701,14.737],[-114.961,51.438],[-113.545,30.531],[-112.321,30.076],[-111.41,30.987],[-110.881,33.699],[-67.245,82.017],[-72.26,57.943],[-71.204,56.887],[-69.932,57.678],[-28.288,94.258],[-1.669,112.165],[-16.119,88.522],[-16.455,87.059],[-15.109,86.409],[8.988,123.23],[10.764,121.262],[10.908,121.094],[21.902,87.706],[22.958,86.385],[24.279,87.466],[14.341,120.638],[47.706,90.586]],"c":true}},"nm":"P"},{"ty":"mm","mm":1,"nm":"M"},{"ty":"fl","c":{"a":0,"k":[0.992,0.922,0.859,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[341.798,376.495]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.776,6.457],[2.856,3.984],[1.009,13.537],[-0.552,4.752],[2.449,7.633],[0.216,0.744],[0.168,-0.12],[0.408,0.36],[-0.264,0.504],[0.24,3.456],[3.361,-1.777],[0.36,0.408],[-0.336,0.433],[-0.216,4.272],[3.072,-1.537],[0.168,0],[0.24,0.287],[-0.36,0.431],[-1.128,2.617],[4.417,-5.641],[10.585,-2.304],[0.072,0],[0.216,0.384],[-0.385,0.384],[1.872,4.441],[2.257,-4.297],[21.243,-0.312],[1.416,-1.32],[0.288,0],[0.192,0.096],[-0.048,0.504],[7.344,6.313],[0.96,-9.673],[0.529,-0.072],[0.216,0.504],[12.698,5.881],[8.929,18.603],[-0.384,-0.216],[0.264,-0.552],[0.576,0.192],[2.065,11.689],[-0.072,-0.096],[0.36,-0.384],[0.456,0.217],[3.817,10.202],[-0.048,-0.096],[0.408,-0.432],[0.312,0],[0.216,0.168],[2.52,5.017],[1.56,-2.04],[0.36,-4.969],[6.601,-9.169],[3.384,-2.256],[0,-7.128],[2.712,-7.537],[-11.114,-35.692],[-0.624,-2.016],[0,-0.024],[-1.104,-3.336],[-1.632,0.84],[-0.84,0.288],[-2.64,0],[-5.041,-5.041],[-8.425,0],[-6.264,-9.193],[-5.4,0],[-4.249,-15.409],[-14.882,1.489],[2.664,5.521],[-0.576,0.288],[-0.288,-0.6],[-9.817,-3.672],[-0.936,-0.24],[-4.944,0.264],[-15.41,0],[-4.368,-3.481],[-9.313,0],[-5.881,-7.153],[-6.361,0],[-4.345,-3.528],[-8.329,109.861],[0,9.314]],"o":[[-3.384,-2.256],[-6.601,-9.169],[-0.36,-4.969],[-4.248,-5.425],[-0.24,-0.72],[-2.856,25.802],[-0.456,0.312],[-0.408,-0.36],[3.264,-6.193],[-7.369,23.715],[-0.504,0.264],[-0.384,-0.432],[4.513,-6.288],[-10.561,24.699],[-0.169,0.072],[-0.359,0],[-0.36,-0.456],[2.569,-3.217],[-5.257,2.281],[-5.976,7.657],[-0.072,0.024],[-0.432,0],[-0.265,-0.48],[6.36,-6.193],[-2.04,2.377],[-6.864,13.129],[-1.176,1.369],[-0.241,0.216],[-0.192,0],[-0.432,-0.216],[1.56,-14.354],[4.584,5.592],[-0.048,0.552],[-0.552,0.072],[-4.104,-10.178],[-15.098,-6.961],[-0.432,15.362],[0.528,0.312],[-0.24,0.552],[-43.013,-13.634],[-3.72,8.473],[0.24,0.456],[-0.36,0.384],[-22.586,-10.465],[0.168,7.321],[0.36,0.48],[-0.24,0.24],[-0.241,0],[-6.864,-4.968],[-1.368,2.329],[0.528,4.752],[-1.008,13.537],[-2.856,3.984],[1.776,6.457],[0,9.314],[7.105,93.227],[0.672,2.16],[0,0],[1.248,3.888],[1.488,-1.224],[0.816,-0.408],[2.424,-0.912],[6.361,0],[5.881,-7.153],[9.337,0],[4.369,-3.481],[12.65,0],[9.216,6.001],[-8.161,-4.272],[-0.288,-0.6],[0.6,-0.288],[2.832,5.881],[0.841,0.336],[3.72,1.056],[1.44,-20.739],[5.4,0],[6.265,-9.193],[8.425,0],[5.016,-5.041],[5.4,0],[11.113,-33.508],[-2.688,-7.513],[0,-7.128]],"v":[[187.798,-102.625],[178.389,-112.034],[166.603,-147.27],[166.867,-161.912],[156.57,-181.714],[155.898,-183.898],[137.608,-147.51],[136.144,-147.606],[135.88,-149.07],[139.432,-163.88],[106.548,-121.947],[105.084,-122.211],[105.012,-123.7],[110.941,-140.549],[82.234,-105.745],[81.705,-105.625],[80.769,-106.057],[80.769,-107.569],[86.218,-116.595],[72.32,-103.249],[48.966,-84.599],[48.726,-84.575],[47.67,-85.199],[47.886,-86.639],[52.686,-106.946],[46.325,-96.312],[8.809,-64.917],[4.897,-60.884],[4.08,-60.548],[3.528,-60.692],[2.88,-61.892],[-11.545,-94.68],[-2.736,-70.821],[-3.745,-69.765],[-5.041,-70.485],[-32.812,-91.608],[-73.785,-124.996],[-65.36,-104.137],[-64.88,-102.601],[-66.32,-101.953],[-116.654,-153.391],[-115.022,-134.669],[-115.214,-133.277],[-116.582,-133.013],[-151.962,-167.841],[-147.209,-154.279],[-147.305,-152.719],[-148.169,-152.359],[-148.866,-152.599],[-162.427,-168.393],[-166.82,-161.864],[-166.58,-147.27],[-178.365,-112.034],[-187.774,-102.625],[-185.086,-82.007],[-189.358,-56.396],[-156.33,129.89],[-154.386,136.131],[-154.362,136.155],[-150.81,146.98],[-146.105,143.908],[-143.609,142.852],[-136,141.46],[-118.574,149.213],[-96.563,137.739],[-72.321,152.117],[-57.487,146.62],[-29.763,172.999],[7.729,182.12],[-7.849,165.414],[-7.297,163.806],[-5.689,164.358],[12.337,181.472],[15.002,182.336],[27.987,183.633],[57.511,146.62],[72.344,152.117],[96.587,137.739],[118.598,149.237],[136.024,141.46],[150.834,146.98],[189.358,-56.444],[185.11,-82.007]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[345.314,564.521]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[3.552,0],[0,-9.409],[-0.072,-0.696],[-0.168,-0.864],[-1.632,-1.44],[-0.768,8.809],[0,0.744],[0.024,0.168]],"o":[[-3.624,0],[0,0.672],[0.072,0.84],[1.368,8.233],[1.944,-1.44],[0.072,-0.768],[0,-0.168],[-0.12,-8.953]],"v":[[0,-13.382],[-7.777,-2.773],[-7.681,-0.708],[-7.345,1.836],[0.048,13.382],[7.657,-0.492],[7.777,-2.773],[7.753,-3.276]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[484.339,785.635]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[4.201,0],[0,-10.873],[-0.48,-2.352],[-0.216,-0.888],[-1.56,-1.152],[-1.896,8.929],[-0.12,0.96],[0,1.584]],"o":[[-4.2,0],[0,2.185],[0.168,0.888],[2.137,8.257],[1.824,-1.08],[0.216,-0.96],[0.264,-1.68],[0,-10.873]],"v":[[0.012,-15.902],[-9.013,-3.637],[-8.245,3.228],[-7.645,5.868],[0.06,15.902],[8.101,4.188],[8.605,1.284],[9.013,-3.637]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[444.17,788.227]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[4.177,0],[0,-10.849],[-0.48,-2.352],[-0.24,-0.96],[-1.536,-1.152],[-2.016,8.281],[-0.168,0.936],[0,2.161]],"o":[[-4.2,0],[0,2.161],[0.168,0.936],[2.136,8.209],[1.704,-1.008],[0.264,-0.936],[0.456,-2.352],[0,-10.849]],"v":[[0.012,-15.89],[-9.013,-3.649],[-8.245,3.192],[-7.597,6.048],[0.06,15.89],[7.645,6.024],[8.293,3.192],[9.013,-3.649]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[402.813,785.647]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[4.2,0],[0,-10.849],[-0.456,-2.352],[-0.264,-0.936],[-1.68,-1.008],[-2.136,8.209],[-0.168,0.936],[0,2.161]],"o":[[-4.177,0],[0,2.161],[0.192,0.936],[2.04,8.281],[1.536,-1.152],[0.24,-0.96],[0.48,-2.352],[0,-10.849]],"v":[[-0.012,-15.89],[-9.013,-3.649],[-8.293,3.192],[-7.645,6.024],[-0.06,15.89],[7.597,6.048],[8.245,3.192],[9.013,-3.649]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[287.84,785.647]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[4.2,0],[0,-10.873],[-0.264,-1.68],[-0.216,-0.96],[-1.824,-1.08],[-2.137,8.257],[-0.168,0.888],[0,2.185]],"o":[[-4.201,0],[0,1.584],[0.12,0.96],[1.872,8.929],[1.56,-1.152],[0.216,-0.888],[0.48,-2.352],[0,-10.873]],"v":[[-0.012,-15.902],[-9.013,-3.637],[-8.605,1.284],[-8.077,4.188],[-0.06,15.902],[7.645,5.868],[8.245,3.228],[9.013,-3.637]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[246.483,788.227]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[3.624,0],[0.12,-8.977],[0,-0.168],[-0.072,-0.768],[-1.944,-1.44],[-1.368,8.233],[-0.072,0.84],[0,0.672]],"o":[[-3.552,0],[-0.024,0.168],[0,0.744],[0.768,8.809],[1.632,-1.44],[0.168,-0.864],[0.072,-0.696],[0,-9.409]],"v":[[0,-13.382],[-7.753,-3.253],[-7.777,-2.773],[-7.657,-0.492],[-0.048,13.382],[7.345,1.836],[7.681,-0.708],[7.777,-2.773]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.863,0.671,0.482,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[206.314,785.635]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[96.81,102.227],[0,0]],"o":[[125.535,126.594],[-254.085,-268.304],[0,0]],"v":[[-293.318,70.855],[196.507,70.855],[-292.909,67.855]],"c":true}},"nm":"P"},{"ty":"fl","c":{"a":0,"k":[0.451,0.208,0.059,1]},"o":{"a":0,"k":100},"r":1,"nm":"F"},{"ty":"tr","p":{"a":0,"k":[393.731,197.699]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"G"}],"ip":0,"op":300,"st":0},{"ind":6,"ty":4,"nm":"S","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[559.572,890.089,0],"l":2},"a":{"a":0,"k":[19.572,378.089,0],"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":55,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":65,"s":[119,100,100]},{"t":75,"s":[100,100,100]}],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-292.685,378.089],[331.829,378.089]],"c":false}},"nm":"P"},{"ty":"st","c":{"a":0,"k":[0,0,0,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":15},"lc":2,"lj":1,"ml":4,"nm":"S"},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"S"}],"ip":55,"op":300,"st":0},{"ind":7,"ty":4,"nm":"S","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[247.315,890.089,0],"l":2},"a":{"a":0,"k":[-292.685,378.089,0],"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":19,"s":[118,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":34,"s":[118,100,100]},{"t":55,"s":[100,100,100]}],"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-292.685,378.089],[331.829,378.089]],"c":false}},"nm":"P"},{"ty":"st","c":{"a":0,"k":[0,0,0,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":15},"lc":2,"lj":1,"ml":4,"nm":"S"},{"ty":"tr","p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"T"}],"nm":"S"}],"ip":0,"op":55,"st":0}],"markers":[]}
\ No newline at end of file
diff --git a/packages/web/public/repowise-logo-light.png b/packages/web/public/repowise-logo-light.png
new file mode 100644
index 000000000..09c1ce9c0
Binary files /dev/null and b/packages/web/public/repowise-logo-light.png differ
diff --git a/packages/web/src/app/layout.tsx b/packages/web/src/app/layout.tsx
index 1f72d8184..90fe06c1f 100644
--- a/packages/web/src/app/layout.tsx
+++ b/packages/web/src/app/layout.tsx
@@ -2,9 +2,11 @@ import type { Metadata } from "next";
import { Suspense } from "react";
import { GeistSans } from "geist/font/sans";
import { GeistMono } from "geist/font/mono";
+import { Lora } from "next/font/google";
import { NuqsAdapter } from "nuqs/adapters/next/app";
-import { Toaster } from "sonner";
import { TooltipProvider } from "@repowise-dev/ui/ui/tooltip";
+import { ThemeProvider } from "@/components/layout/theme-provider";
+import { ThemedToaster } from "@/components/layout/themed-toaster";
import { Sidebar } from "@/components/layout/sidebar";
import { MobileNav } from "@/components/layout/mobile-nav";
import { CommandPalette } from "@/components/search/command-palette";
@@ -15,6 +17,9 @@ import { getWorkspace } from "@/lib/api/workspace";
import type { WorkspaceResponse } from "@/lib/api/types";
import "@/styles/globals.css";
+// Serif display face for the docs/wiki reading surfaces (--font-serif token).
+const lora = Lora({ subsets: ["latin"], variable: "--font-lora", display: "swap" });
+
export const metadata: Metadata = {
title: {
default: "repowise",
@@ -46,9 +51,11 @@ export default async function RootLayout({
return (
<html
lang="en"
- className={`${GeistSans.variable} ${GeistMono.variable} dark`}
+ suppressHydrationWarning
+ className={`${GeistSans.variable} ${GeistMono.variable} ${lora.variable}`}
>
<body className="bg-[var(--color-bg-root)] text-[var(--color-text-primary)] antialiased">
+ <ThemeProvider>
<a
href="#main-content"
className="sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[100] focus:rounded-md focus:bg-[var(--color-bg-elevated)] focus:px-3 focus:py-2 focus:text-sm focus:text-[var(--color-text-primary)] focus:outline focus:outline-2 focus:outline-[var(--color-accent-primary)]"
@@ -75,17 +82,8 @@ export default async function RootLayout({
</TooltipProvider>
</SWRProvider>
</NuqsAdapter>
- <Toaster
- theme="dark"
- position="bottom-right"
- toastOptions={{
- style: {
- background: "var(--color-bg-elevated)",
- border: "1px solid var(--color-border-default)",
- color: "var(--color-text-primary)",
- },
- }}
- />
+ <ThemedToaster />
+ </ThemeProvider>
</body>
</html>
);
diff --git a/packages/web/src/app/loading.tsx b/packages/web/src/app/loading.tsx
index 4376d01c9..ecae44f94 100644
--- a/packages/web/src/app/loading.tsx
+++ b/packages/web/src/app/loading.tsx
@@ -1,21 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function DashboardLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1200px]">
- <div>
- <Skeleton className="h-7 w-32" />
- <Skeleton className="h-4 w-48 mt-1.5" />
- </div>
- <div className="grid grid-cols-2 gap-4 lg:grid-cols-4">
- {Array.from({ length: 4 }).map((_, i) => (
- <Skeleton key={i} className="h-24 rounded-lg" />
- ))}
- </div>
- <div className="grid gap-4 lg:grid-cols-2">
- <Skeleton className="h-64 rounded-lg" />
- <Skeleton className="h-64 rounded-lg" />
- </div>
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/c4/loading.tsx b/packages/web/src/app/repos/[id]/c4/loading.tsx
index 84ed7261c..1db2391ef 100644
--- a/packages/web/src/app/repos/[id]/c4/loading.tsx
+++ b/packages/web/src/app/repos/[id]/c4/loading.tsx
@@ -1,15 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function Loading() {
- return (
- <div className="flex flex-col h-full">
- <div className="shrink-0 px-4 sm:px-6 py-3 border-b border-[var(--color-border-default)]">
- <Skeleton className="h-5 w-40" />
- <Skeleton className="mt-2 h-3 w-72" />
- </div>
- <div className="flex-1 p-6">
- <Skeleton className="h-full w-full rounded-lg" />
- </div>
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/c4/page.tsx b/packages/web/src/app/repos/[id]/c4/page.tsx
index c95177bca..f6aa0d74f 100644
--- a/packages/web/src/app/repos/[id]/c4/page.tsx
+++ b/packages/web/src/app/repos/[id]/c4/page.tsx
@@ -22,6 +22,8 @@ import {
archNodeTypes,
archEdgeTypes,
SearchBar,
+ ArchBreadcrumb,
+ ArchLegend,
PersonaSelector,
NodeTypeCategoryFilters,
FilterPanel,
@@ -32,6 +34,7 @@ import {
} from "@repowise-dev/ui/c4";
import {
Background,
+ BackgroundVariant,
Controls,
MiniMap,
ReactFlow,
@@ -46,11 +49,17 @@ import { useRepo } from "@/lib/hooks/use-repo";
import { getC4Mermaid } from "@/lib/api/c4";
import { C4DetailPanelHost } from "@/components/c4/c4-detail-panel-host";
import { ArchDetailPanelHost } from "@/components/c4/arch-detail-panel-host";
+import { EmptyState } from "@repowise-dev/ui/shared/empty-state";
+import { OwlLoader } from "@/components/shared/owl-loader";
+import { AlertTriangle } from "lucide-react";
const MODE_VALUES = ["c4", "architecture"] as const;
-const VIEW_VALUES = ["overview", "detail"] as const;
+const VIEW_VALUES = ["overview", "groups", "detail"] as const;
const PERSONA_VALUES = ["overview", "learn", "deep-dive"] as const;
-const SYNTHETIC_NODE_TYPES = new Set(["layerCluster", "archContainer", "portal"]);
+// Unified click grammar (kg-ux plan B5): single click = select + inspect on
+// every node kind. Only true non-entities stay unselectable — portals are
+// navigation stubs, the scope frame is a pointer-events-none underlay.
+const SYNTHETIC_NODE_TYPES = new Set(["portal", "scopeFrame"]);
function clampLevel(n: number | null): C4Level {
return n === 1 ? 1 : n === 3 ? 3 : 2;
@@ -97,6 +106,7 @@ function ArchitectureViewInner({ repoId, repoName }: { repoId: string; repoName:
parseAsStringLiteral(VIEW_VALUES).withDefault("overview"),
);
const [layerParam, setLayerParam] = useQueryState("layer", parseAsString);
+ const [groupParam, setGroupParam] = useQueryState("group", parseAsString);
const [nodeParam, setNodeParam] = useQueryState("node", parseAsString);
const [personaParam, setPersonaParam] = useQueryState(
"persona",
@@ -106,9 +116,11 @@ function ArchitectureViewInner({ repoId, repoName }: { repoId: string; repoName:
const setView = useArchitectureStore((s) => s.setView);
const navigationLevel = useArchitectureStore((s) => s.navigationLevel);
const activeLayerId = useArchitectureStore((s) => s.activeLayerId);
+ const activeSubGroupId = useArchitectureStore((s) => s.activeSubGroupId);
const selectedNodeId = useArchitectureStore((s) => s.selectedNodeId);
const persona = useArchitectureStore((s) => s.persona);
const drillIntoLayer = useArchitectureStore((s) => s.drillIntoLayer);
+ const drillIntoSubGroup = useArchitectureStore((s) => s.drillIntoSubGroup);
const selectNode = useArchitectureStore((s) => s.selectNode);
const setPersona = useArchitectureStore((s) => s.setPersona);
const setReactFlowInstance = useArchitectureStore((s) => s.setReactFlowInstance);
@@ -129,26 +141,42 @@ function ArchitectureViewInner({ repoId, repoName }: { repoId: string; repoName:
if (layerParam) {
drillIntoLayer(layerParam);
}
+ if (groupParam) {
+ drillIntoSubGroup(groupParam);
+ }
if (nodeParam) {
selectNode(nodeParam);
}
- }, [view, layerParam, nodeParam, personaParam, drillIntoLayer, selectNode, setPersona]);
+ }, [view, layerParam, groupParam, nodeParam, personaParam,
+ drillIntoLayer, drillIntoSubGroup, selectNode, setPersona]);
const syncingRef = useRef(false);
useEffect(() => {
+ // Until the deep-link restore above has run, the store still holds its
+ // default overview state — syncing that to the URL would null out the
+ // very params the restore is about to read, so every shared link
+ // snapped back to the overview.
+ if (!initializedRef.current) return;
if (syncingRef.current) return;
syncingRef.current = true;
- void setViewParam(navigationLevel === "layer-detail" ? "detail" : "overview");
+ void setViewParam(
+ navigationLevel === "layer-detail"
+ ? "detail"
+ : navigationLevel === "layer-groups"
+ ? "groups"
+ : "overview",
+ );
void setLayerParam(activeLayerId);
+ void setGroupParam(activeSubGroupId);
void setNodeParam(selectedNodeId);
void setPersonaParam(persona);
syncingRef.current = false;
- }, [navigationLevel, activeLayerId, selectedNodeId, persona,
- setViewParam, setLayerParam, setNodeParam, setPersonaParam]);
+ }, [navigationLevel, activeLayerId, activeSubGroupId, selectedNodeId, persona,
+ setViewParam, setLayerParam, setGroupParam, setNodeParam, setPersonaParam]);
useArchitectureNavigation();
- const { nodes, edges, loading: layoutLoading } = useArchitectureLayout();
+ const { nodes, edges, loading: layoutLoading, hiddenEdgeCount } = useArchitectureLayout();
const pendingFitRef = useRef(false);
const prevNavRef = useRef({ navigationLevel, activeLayerId });
@@ -171,6 +199,24 @@ function ArchitectureViewInner({ repoId, repoName }: { repoId: string; repoName:
return () => cancelAnimationFrame(raf);
}, [nodes, fitView]);
+ // Camera ease on select (kg-ux plan B5): frame the selected node without
+ // drilling. Eases once per selection — layout refreshes (dimming etc.)
+ // never re-center a camera the user has panned away.
+ const lastEasedRef = useRef<string | null>(null);
+ useEffect(() => {
+ if (!selectedNodeId) {
+ lastEasedRef.current = null;
+ return;
+ }
+ if (lastEasedRef.current === selectedNodeId) return;
+ if (!nodes.some((n) => n.id === selectedNodeId)) return;
+ lastEasedRef.current = selectedNodeId;
+ const raf = requestAnimationFrame(() => {
+ fitView({ nodes: [{ id: selectedNodeId }], duration: 250, padding: 0.4, maxZoom: 1.15 });
+ });
+ return () => cancelAnimationFrame(raf);
+ }, [selectedNodeId, nodes, fitView]);
+
const handleNodeClick = useCallback(
(_: React.MouseEvent, node: { id: string; type?: string }) => {
if (SYNTHETIC_NODE_TYPES.has(node.type ?? "")) return;
@@ -179,10 +225,14 @@ function ArchitectureViewInner({ repoId, repoName }: { repoId: string; repoName:
[selectNode],
);
+ // Double click = drill (grammar): layer → groups/detail, group → detail,
+ // folder → expand/collapse. (Drilling clears selection in the store.)
const handleNodeDoubleClick = useCallback(
(_: React.MouseEvent, node: { id: string; type?: string }) => {
if (node.type === "layerCluster") {
drillIntoLayer(node.id);
+ } else if (node.type === "subGroupCluster") {
+ useArchitectureStore.getState().drillIntoSubGroup(node.id);
} else if (node.type === "archContainer") {
useArchitectureStore.getState().toggleContainer(node.id);
}
@@ -236,21 +286,39 @@ function ArchitectureViewInner({ repoId, repoName }: { repoId: string; repoName:
<NodeTypeCategoryFilters />
</div>
</div>
- <div className="mt-2">
+ <div className="mt-2 flex items-center gap-4">
<SearchBar />
+ <ArchBreadcrumb />
</div>
</div>
- <style>{KEYFRAMES.accentPulse}{KEYFRAMES.edgeFlow}</style>
- <div className="flex-1 min-h-0 relative">
+ <style>{KEYFRAMES.accentPulse}{KEYFRAMES.edgeFlow}{`
+ /* Zoom-into-tier feel: nodes glide to their next slot (plan D). */
+ @media (prefers-reduced-motion: no-preference) {
+ .react-flow__node { transition: transform 180ms ease; }
+ }
+ `}</style>
+ <div className="flex-1 min-h-0 relative bg-[var(--color-bg-canvas)]">
{error && (
- <div className="absolute inset-0 flex items-center justify-center text-red-300 text-sm z-10 pointer-events-none">
- {error.message}
+ <div className="absolute inset-0 flex items-center justify-center z-10">
+ <EmptyState
+ icon={<AlertTriangle className="h-5 w-5" aria-hidden />}
+ title="Couldn't load the knowledge graph"
+ description={error.message}
+ className="max-w-md p-8"
+ />
</div>
)}
{anyLoading && nodes.length === 0 && !error && (
- <div className="absolute inset-0 flex items-center justify-center text-[var(--color-text-secondary)] text-sm z-10 pointer-events-none">
- Loading knowledge graph…
+ <div className="absolute inset-0 flex items-center justify-center z-10 pointer-events-none">
+ <OwlLoader size={120} label="Loading knowledge graph…" className="min-h-0" />
+ </div>
+ )}
+ {/* Re-layout feedback (B6): ELK stage-2 on big layers used to freeze
+ silently — a small owl chip says the canvas is thinking. */}
+ {anyLoading && nodes.length > 0 && !error && (
+ <div className="absolute top-3 left-1/2 -translate-x-1/2 z-10 pointer-events-none rounded-full border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)]/95 px-3 py-1 shadow-sm">
+ <OwlLoader size={28} label="Laying out…" className="min-h-0 flex-row gap-2 text-[10px]" />
</div>
)}
@@ -271,11 +339,32 @@ function ArchitectureViewInner({ repoId, repoName }: { repoId: string; repoName:
nodesDraggable={false}
nodesConnectable={false}
>
- <Background gap={28} size={1} color="rgba(148,163,184,0.18)" />
+ {/* Blueprint graph paper: 24px line grid on the warm canvas, matching
+ the mermaid container (kg-ux plan §2.1). */}
+ <Background variant={BackgroundVariant.Lines} gap={24} size={1} color="var(--color-diagram-grid)" />
<Controls showInteractive={false} />
- <MiniMap pannable zoomable maskColor="rgba(11,18,32,0.85)" />
+ {/* maskColor comes from --xy-minimap-mask-background (theme-aware). */}
+ <MiniMap pannable zoomable />
</ReactFlow>
+ {/* Orientation (plan C-1) and the tour player (C-2) render in the
+ right Sidebar only — the floating left asides duplicated them
+ (user feedback 2026-06-05: one place). */}
+
+ {hiddenEdgeCount > 0 && (
+ <div
+ className="absolute bottom-4 left-14 z-10 rounded-full border border-[var(--color-border-default)] bg-[var(--color-bg-secondary)]/90 px-3 py-1 text-xs text-[var(--color-text-secondary)]"
+ title="Weakest aggregated connections are hidden to keep the view legible. Drill in to see them."
+ >
+ +{hiddenEdgeCount} weaker link{hiddenEdgeCount === 1 ? "" : "s"} hidden
+ </div>
+ )}
+
+ {/* Decoder ring — collapsible, every tier (B6). */}
+ <div className="absolute bottom-4 right-[224px] z-10">
+ <ArchLegend />
+ </div>
+
<ArchDetailPanelHost repoId={repoId} />
<FilterPanel />
@@ -350,12 +439,23 @@ function LegacyC4View({ repoId, repoName }: { repoId: string; repoName: string }
return (
<>
<div className="shrink-0 px-4 sm:px-6 py-3 border-b border-[var(--color-border-default)]">
- <h1 className="text-lg font-semibold text-[var(--color-text-primary)]">
- Knowledge Graph
- </h1>
- <p className="text-xs text-[var(--color-text-secondary)] mt-0.5">
- System context, containers, and components — drill in to navigate.
- </p>
+ <div className="flex items-center justify-between gap-4">
+ <div>
+ <h1 className="text-lg font-semibold text-[var(--color-text-primary)]">
+ Knowledge Graph
+ </h1>
+ <p className="text-xs text-[var(--color-text-secondary)] mt-0.5">
+ System context, containers, and components — drill in to navigate.
+ </p>
+ </div>
+ {/* Legacy mode is frozen (locked decision 4) — point at the new view. */}
+ <a
+ href="?mode=architecture"
+ className="shrink-0 rounded-full border border-[var(--color-accent-primary,#f59520)]/50 bg-[var(--color-accent-primary,#f59520)]/10 px-3 py-1 text-xs text-[var(--color-accent-primary,#f59520)] hover:bg-[var(--color-accent-primary,#f59520)]/20"
+ >
+ Try the new architecture view →
+ </a>
+ </div>
</div>
<div className="flex-1 min-h-0">
<C4Diagram
diff --git a/packages/web/src/app/repos/[id]/commits/loading.tsx b/packages/web/src/app/repos/[id]/commits/loading.tsx
index 4946a1025..ba429ae31 100644
--- a/packages/web/src/app/repos/[id]/commits/loading.tsx
+++ b/packages/web/src/app/repos/[id]/commits/loading.tsx
@@ -1,19 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function CommitsLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1600px]">
- <div>
- <Skeleton className="h-7 w-32" />
- <Skeleton className="h-4 w-72 mt-1.5" />
- </div>
- <Skeleton className="h-14 w-full rounded-lg" />
- <div className="grid grid-cols-2 gap-3 sm:grid-cols-4">
- {Array.from({ length: 4 }).map((_, i) => (
- <Skeleton key={i} className="h-20 rounded-lg" />
- ))}
- </div>
- <Skeleton className="h-[400px] w-full rounded-lg" />
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/coverage/loading.tsx b/packages/web/src/app/repos/[id]/coverage/loading.tsx
index 0f5bde30c..ab2171edb 100644
--- a/packages/web/src/app/repos/[id]/coverage/loading.tsx
+++ b/packages/web/src/app/repos/[id]/coverage/loading.tsx
@@ -1,3 +1,5 @@
+import { OwlLoader } from "@/components/shared/owl-loader";
+
export default function CoverageRedirectLoading() {
- return null;
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/dead-code/loading.tsx b/packages/web/src/app/repos/[id]/dead-code/loading.tsx
index fef87a65f..d9589e644 100644
--- a/packages/web/src/app/repos/[id]/dead-code/loading.tsx
+++ b/packages/web/src/app/repos/[id]/dead-code/loading.tsx
@@ -1,28 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function DeadCodeLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1600px]">
- <div className="flex flex-wrap items-start justify-between gap-4">
- <div>
- <Skeleton className="h-7 w-32" />
- <Skeleton className="h-4 w-52 mt-1.5" />
- </div>
- <Skeleton className="h-9 w-28" />
- </div>
- <Skeleton className="h-20 rounded-lg" />
- <div className="flex gap-2">
- {Array.from({ length: 3 }).map((_, i) => (
- <Skeleton key={i} className="h-9 w-28" />
- ))}
- </div>
- <div className="space-y-px">
- <Skeleton className="h-10 rounded-t-lg" />
- {Array.from({ length: 6 }).map((_, i) => (
- <Skeleton key={i} className="h-14 rounded-none" />
- ))}
- <Skeleton className="h-14 rounded-b-lg" />
- </div>
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/docs/coverage/loading.tsx b/packages/web/src/app/repos/[id]/docs/coverage/loading.tsx
index ca45f6c5e..72d500be7 100644
--- a/packages/web/src/app/repos/[id]/docs/coverage/loading.tsx
+++ b/packages/web/src/app/repos/[id]/docs/coverage/loading.tsx
@@ -1,23 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function CoverageLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1600px]">
- <div>
- <Skeleton className="h-7 w-36" />
- <Skeleton className="h-4 w-52 mt-1.5" />
- </div>
- <div className="grid grid-cols-1 gap-6 md:grid-cols-3">
- <div className="flex items-center justify-center">
- <Skeleton className="h-44 w-44 rounded-full" />
- </div>
- <div className="md:col-span-2 grid grid-cols-3 gap-3 content-center">
- {Array.from({ length: 3 }).map((_, i) => (
- <Skeleton key={i} className="h-20 rounded-lg" />
- ))}
- </div>
- </div>
- <Skeleton className="h-[350px] rounded-lg" />
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/docs/coverage/page.tsx b/packages/web/src/app/repos/[id]/docs/coverage/page.tsx
index 48aad40fd..3a6111115 100644
--- a/packages/web/src/app/repos/[id]/docs/coverage/page.tsx
+++ b/packages/web/src/app/repos/[id]/docs/coverage/page.tsx
@@ -1,5 +1,5 @@
import type { Metadata } from "next";
-import { FileCheck } from "lucide-react";
+import { DocsHeader } from "@/components/docs/docs-header";
import { CoverageDonut } from "@repowise-dev/ui/coverage/coverage-donut";
import { DriftBanner } from "@repowise-dev/ui/coverage/drift-banner";
import { ConfidenceVsFreshnessMatrix } from "@repowise-dev/ui/coverage/confidence-vs-freshness-matrix";
@@ -34,17 +34,14 @@ export default async function CoveragePage({
const freshPct = pages.length > 0 ? Math.round((fresh / pages.length) * 100) : 0;
return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1600px]">
- <div>
- <h1 className="text-xl font-semibold text-[var(--color-text-primary)] mb-1 flex items-center gap-2">
- <FileCheck className="h-5 w-5 text-[var(--color-accent-primary)]" />
- Documentation Coverage
- </h1>
- <p className="text-sm text-[var(--color-text-secondary)]">
- Freshness breakdown across {formatNumber(total)} wiki pages.
- </p>
- </div>
+ <div className="flex flex-col h-full">
+ <DocsHeader>
+ <span className="text-xs text-[var(--color-text-tertiary)]">
+ Freshness across {formatNumber(total)} pages
+ </span>
+ </DocsHeader>
+ <div className="flex-1 overflow-y-auto p-4 sm:p-6 space-y-6 max-w-[1600px]">
<div className="flex flex-col gap-6 lg:flex-row lg:items-start">
{/* Donut */}
<div className="flex flex-col items-center gap-4 lg:w-56 shrink-0">
@@ -79,19 +76,19 @@ export default async function CoveragePage({
<div>
<p className="text-xs text-[var(--color-text-tertiary)] mb-1.5">Distribution</p>
<div className="h-3 rounded-full overflow-hidden flex">
- <div className="bg-green-500" style={{ width: `${(fresh / pages.length) * 100}%` }} />
- <div className="bg-yellow-500" style={{ width: `${(stale / pages.length) * 100}%` }} />
- <div className="bg-red-500" style={{ width: `${(outdated / pages.length) * 100}%` }} />
+ <div className="bg-[var(--color-fresh)]" style={{ width: `${(fresh / pages.length) * 100}%` }} />
+ <div className="bg-[var(--color-stale)]" style={{ width: `${(stale / pages.length) * 100}%` }} />
+ <div className="bg-[var(--color-outdated)]" style={{ width: `${(outdated / pages.length) * 100}%` }} />
</div>
<div className="flex gap-4 mt-1.5 text-xs text-[var(--color-text-tertiary)]">
<span className="flex items-center gap-1">
- <span className="h-2 w-2 rounded-full bg-green-500" /> Fresh
+ <span className="h-2 w-2 rounded-full bg-[var(--color-fresh)]" /> Fresh
</span>
<span className="flex items-center gap-1">
- <span className="h-2 w-2 rounded-full bg-yellow-500" /> Stale
+ <span className="h-2 w-2 rounded-full bg-[var(--color-stale)]" /> Stale
</span>
<span className="flex items-center gap-1">
- <span className="h-2 w-2 rounded-full bg-red-500" /> Outdated
+ <span className="h-2 w-2 rounded-full bg-[var(--color-outdated)]" /> Outdated
</span>
</div>
</div>
@@ -104,6 +101,7 @@ export default async function CoveragePage({
)}
<FreshnessTableWithRegenerate pages={pages} />
+ </div>
</div>
);
}
diff --git a/packages/web/src/app/repos/[id]/docs/layout.tsx b/packages/web/src/app/repos/[id]/docs/layout.tsx
deleted file mode 100644
index 1cb0d4d9a..000000000
--- a/packages/web/src/app/repos/[id]/docs/layout.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-"use client";
-
-import Link from "next/link";
-import { usePathname, useParams } from "next/navigation";
-import { BookOpen, BarChart3 } from "lucide-react";
-import { cn } from "@/lib/utils/cn";
-
-const tabs = [
- { label: "Explorer", segment: "", icon: BookOpen },
- { label: "Coverage", segment: "/coverage", icon: BarChart3 },
-] as const;
-
-export default function DocsLayout({ children }: { children: React.ReactNode }) {
- const pathname = usePathname();
- const { id } = useParams<{ id: string }>();
- const basePath = `/repos/${id}/docs`;
-
- return (
- <div className="flex flex-col h-full">
- <div className="shrink-0 border-b border-[var(--color-border-default)] px-4 sm:px-6">
- <nav className="flex gap-1 -mb-px" aria-label="Docs tabs">
- {tabs.map((tab) => {
- const href = `${basePath}${tab.segment}`;
- const isActive =
- tab.segment === ""
- ? pathname === basePath
- : pathname.startsWith(href);
- const Icon = tab.icon;
- return (
- <Link
- key={tab.segment}
- href={href}
- className={cn(
- "inline-flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium border-b-2 transition-colors",
- isActive
- ? "border-[var(--color-accent-primary)] text-[var(--color-accent-primary)]"
- : "border-transparent text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] hover:border-[var(--color-border-default)]",
- )}
- >
- <Icon className="h-4 w-4" />
- {tab.label}
- </Link>
- );
- })}
- </nav>
- </div>
- <div className="flex-1 min-h-0">{children}</div>
- </div>
- );
-}
diff --git a/packages/web/src/app/repos/[id]/docs/page.tsx b/packages/web/src/app/repos/[id]/docs/page.tsx
index 0b0bd7186..7b11af817 100644
--- a/packages/web/src/app/repos/[id]/docs/page.tsx
+++ b/packages/web/src/app/repos/[id]/docs/page.tsx
@@ -1,185 +1,21 @@
"use client";
-import { use, useCallback, useMemo, useState } from "react";
-import { useRouter, useSearchParams } from "next/navigation";
-import useSWR from "swr";
-import { Download, FolderArchive, Loader2, Search } from "lucide-react";
-import { Button } from "@repowise-dev/ui/ui/button";
-import { FirstFiveFiles, type FirstFiveFile } from "@repowise-dev/ui/onboarding/first-five-files";
-import { DocsCommandPalette } from "@repowise-dev/ui/docs/command-palette";
+import { use } from "react";
import { DocsExplorer } from "@/components/docs/docs-explorer";
-import { listAllPages } from "@/lib/api/pages";
-import { search as searchPages } from "@/lib/api/search";
-import { getGraph } from "@/lib/api/graph";
-import type { DocPage } from "@repowise-dev/types/docs";
-import { downloadTextFile } from "@/lib/utils/download";
-import type { GraphExportResponse } from "@/lib/api/types";
+// Thin shell — the DocsHeader, search palette, export menu, and per-page
+// controls all live in DocsExplorer, which owns the page selection and
+// reader-level state they depend on.
export default function DocsPage({
params,
}: {
params: Promise<{ id: string }>;
}) {
const { id: repoId } = use(params);
- const [isExporting, setIsExporting] = useState(false);
- const [searchOpen, setSearchOpen] = useState(false);
- const router = useRouter();
- const searchParams = useSearchParams();
-
- const openPage = useCallback(
- (pageId: string) => {
- const next = new URLSearchParams(searchParams.toString());
- next.set("page", pageId);
- router.replace(`?${next.toString()}`, { scroll: false });
- },
- [router, searchParams],
- );
-
- const { data: graphData } = useSWR<GraphExportResponse>(
- `graph:${repoId}`,
- () => getGraph(repoId),
- { revalidateOnFocus: false, revalidateOnReconnect: false },
- );
-
- // Share the exact SWR key the explorer's `usePages` uses so the (large) full
- // page list — content included — is fetched once and deduped, not twice.
- const { data: docPages } = useSWR<DocPage[]>(
- `pages:${repoId}:all`,
- () => listAllPages(repoId) as Promise<DocPage[]>,
- { revalidateOnFocus: false },
- );
-
- // Server-backed search for the ⌘K palette: hit the semantic/full-text
- // endpoint, then map results back to the loaded page objects so selection
- // behaves identically to a client-side hit. Unknown ids (rare) are dropped.
- const searchFn = useCallback(
- async (q: string) => {
- const results = await searchPages(q, { repo_id: repoId, limit: 30 });
- const byId = new Map((docPages ?? []).map((p) => [p.id, p]));
- return results
- .map((r) => byId.get(r.page_id))
- .filter((p): p is DocPage => p !== undefined);
- },
- [repoId, docPages],
- );
-
- const pageByPath = useMemo(() => {
- const m = new Map<string, DocPage>();
- for (const p of docPages ?? []) {
- if (p.target_path) m.set(p.target_path, p);
- }
- return m;
- }, [docPages]);
-
- const startHere: Array<FirstFiveFile & { page_id?: string }> = useMemo(() => {
- if (!graphData) return [];
- const entries = graphData.nodes.filter((n) => n.is_entry_point);
- const pool = entries.length > 0 ? entries : graphData.nodes;
- return [...pool]
- .sort((a, b) => b.pagerank - a.pagerank)
- .slice(0, 5)
- .map((n) => {
- const page = pageByPath.get(n.node_id);
- return {
- file_path: n.node_id,
- is_entry_point: n.is_entry_point,
- has_doc: page !== undefined,
- pagerank: n.pagerank,
- reason: n.is_entry_point ? "entry point" : "high centrality",
- page_id: page?.id,
- };
- });
- }, [graphData, pageByPath]);
-
- const handleExportAll = async () => {
- setIsExporting(true);
- try {
- const pages = await listAllPages(repoId);
- pages.sort((a, b) => a.target_path.localeCompare(b.target_path));
- const content = pages
- .map((p) => `# ${p.title}\n\n> ${p.target_path}\n\n${p.content}`)
- .join("\n\n---\n\n");
- downloadTextFile(content, "documentation-export.md");
- } finally {
- setIsExporting(false);
- }
- };
return (
<div className="flex flex-col h-screen">
- {/* Header */}
- <div className="shrink-0 px-4 sm:px-6 py-3 border-b border-[var(--color-border-default)] flex items-start justify-between gap-4">
- <div>
- <h1 className="text-lg font-semibold text-[var(--color-text-primary)]">
- Documentation
- </h1>
- <p className="text-xs text-[var(--color-text-secondary)] mt-0.5">
- Browse AI-generated documentation for every file, module, and symbol.
- </p>
- </div>
- <div className="flex gap-2 shrink-0">
- <button
- onClick={() => setSearchOpen(true)}
- className="flex items-center gap-2 rounded-md border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)] px-2.5 py-1.5 text-xs text-[var(--color-text-tertiary)] transition-colors hover:text-[var(--color-text-secondary)]"
- >
- <Search className="h-3.5 w-3.5" />
- <span className="hidden sm:inline">Search</span>
- <kbd className="hidden rounded border border-[var(--color-border-default)] px-1 py-0.5 text-[10px] sm:inline">
- ⌘K
- </kbd>
- </button>
- <Button
- variant="outline"
- size="sm"
- onClick={handleExportAll}
- disabled={isExporting}
- >
- {isExporting ? (
- <Loader2 className="h-3.5 w-3.5 mr-1.5 animate-spin" />
- ) : (
- <Download className="h-3.5 w-3.5 mr-1.5" />
- )}
- Export All
- </Button>
- <Button variant="outline" size="sm" asChild>
- <a href={`/api/repos/${repoId}/export`} download>
- <FolderArchive className="h-3.5 w-3.5 mr-1.5" />
- Download ZIP
- </a>
- </Button>
- </div>
- </div>
-
- {startHere.length > 0 && (
- <div className="px-4 sm:px-6 pt-3">
- <FirstFiveFiles
- files={startHere}
- title="Start here"
- collapsible
- defaultCollapsed
- hrefFor={(f) => {
- const pageId = (f as FirstFiveFile & { page_id?: string }).page_id;
- return pageId
- ? `/repos/${repoId}/docs?page=${encodeURIComponent(pageId)}`
- : undefined;
- }}
- />
- </div>
- )}
-
- {/* Explorer */}
- <div className="flex-1 min-h-0">
- <DocsExplorer repoId={repoId} />
- </div>
-
- {/* ⌘K full-text command palette over loaded pages */}
- <DocsCommandPalette
- pages={docPages ?? []}
- open={searchOpen}
- onOpenChange={setSearchOpen}
- onSelect={(p) => openPage(p.id)}
- searchFn={searchFn}
- />
+ <DocsExplorer repoId={repoId} />
</div>
);
}
diff --git a/packages/web/src/app/repos/[id]/graph/loading.tsx b/packages/web/src/app/repos/[id]/graph/loading.tsx
index be28d9404..4b33e6dd9 100644
--- a/packages/web/src/app/repos/[id]/graph/loading.tsx
+++ b/packages/web/src/app/repos/[id]/graph/loading.tsx
@@ -1,15 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function GraphLoading() {
- return (
- <div className="flex flex-col h-screen">
- <div className="shrink-0 px-4 sm:px-6 py-4 border-b border-[var(--color-border-default)]">
- <Skeleton className="h-7 w-48" />
- <Skeleton className="h-4 w-80 mt-1.5" />
- </div>
- <div className="flex-1 p-4">
- <Skeleton className="h-full w-full rounded-lg" />
- </div>
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/graph/page.tsx b/packages/web/src/app/repos/[id]/graph/page.tsx
index e03529eb5..6b137e6d8 100644
--- a/packages/web/src/app/repos/[id]/graph/page.tsx
+++ b/packages/web/src/app/repos/[id]/graph/page.tsx
@@ -10,7 +10,22 @@ import { GraphTruncationBanner } from "@repowise-dev/ui/graph/graph-truncation-b
import { getGraph } from "@/lib/api/graph";
import type { GraphExportResponse } from "@/lib/api/types";
-const VALID_VIEW_MODES = new Set(["module", "full", "architecture", "dead", "hotfiles", "unified"]);
+type ViewMode = "module" | "full" | "architecture" | "dead" | "hotfiles" | "unified";
+
+const VALID_VIEW_MODES = new Set<ViewMode>([
+ "module",
+ "full",
+ "architecture",
+ "dead",
+ "hotfiles",
+ "unified",
+]);
+
+// Scopes that render their own dedicated endpoint and therefore never touch the
+// capped full-graph endpoint (`/api/graph`). The constellation ("architecture")
+// and the module browser fetch their own graphs, so the page must NOT eagerly
+// fetch the full graph — nor show its truncation banner — for these scopes.
+const SCOPES_WITHOUT_FULL_GRAPH = new Set<ViewMode>(["architecture", "module"]);
export default function GraphPage({
params,
@@ -21,17 +36,28 @@ export default function GraphPage({
const searchParams = useSearchParams();
const viewModeParam = searchParams.get("viewMode");
- const initialViewMode = VALID_VIEW_MODES.has(viewModeParam ?? "")
- ? (viewModeParam as "module" | "full" | "architecture" | "dead" | "hotfiles" | "unified")
+ const initialViewMode = VALID_VIEW_MODES.has((viewModeParam ?? "") as ViewMode)
+ ? (viewModeParam as ViewMode)
: undefined;
const initialNode = searchParams.get("node");
const [, setSelectedNode] = useQueryState("node");
const [docNodeId, setDocNodeId] = useState<string | null>(null);
+ const [graphLimit, setGraphLimit] = useState<number | undefined>(undefined);
+
+ // Track the live scope so we only fetch the capped full graph (and render its
+ // truncation banner) for scopes that actually use it. Constellation
+ // ("architecture") is the default, and — like "module" — fetches its own
+ // endpoint inside GraphFlow, so the page must stay off /api/graph there.
+ // A pinned node forces the "full" scope (see initialViewMode below).
+ const [viewMode, setViewMode] = useState<ViewMode>(
+ initialNode ? "full" : initialViewMode ?? "architecture",
+ );
+ const usesFullGraph = !SCOPES_WITHOUT_FULL_GRAPH.has(viewMode);
const { data: graphData } = useSWR<GraphExportResponse>(
- `graph:${repoId}`,
- () => getGraph(repoId),
+ usesFullGraph ? `graph:${repoId}:${graphLimit ?? "default"}` : null,
+ () => getGraph(repoId, graphLimit),
{ revalidateOnFocus: false, revalidateOnReconnect: false },
);
@@ -75,12 +101,16 @@ export default function GraphPage({
</p>
</div>
- {/* Truncation banner — shown when the server capped the full graph */}
- {graphData?.truncated && graphData.total_node_count != null && (
+ {/* Truncation banner — shown only when the current scope renders the
+ capped full graph and the server actually capped it. Constellation /
+ module scopes use their own endpoints, so the banner stays hidden. */}
+ {usesFullGraph && graphData?.truncated && graphData.total_node_count != null && (
<div className="shrink-0 px-4 sm:px-6 pt-3">
<GraphTruncationBanner
shown={graphData.nodes.length}
total={graphData.total_node_count}
+ limit={graphLimit ?? graphData.nodes.length}
+ onLoadMore={(nextLimit) => setGraphLimit(nextLimit)}
onSwitchToArchitecture={() => {
const url = new URL(window.location.href);
url.searchParams.set("viewMode", "architecture");
@@ -101,6 +131,7 @@ export default function GraphPage({
onNodeClick={handleNodeClick}
onNodeViewDocs={handleNodeViewDocs}
onCommunityPanelOpen={handleCommunityPanelOpen}
+ onViewModeChange={setViewMode}
/>
{/* Doc panel — shows on file click. Single right-rail surface. */}
diff --git a/packages/web/src/app/repos/[id]/hotspots/loading.tsx b/packages/web/src/app/repos/[id]/hotspots/loading.tsx
index 865471bd7..7f770c390 100644
--- a/packages/web/src/app/repos/[id]/hotspots/loading.tsx
+++ b/packages/web/src/app/repos/[id]/hotspots/loading.tsx
@@ -1,27 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function HotspotsLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1600px]">
- <div>
- <Skeleton className="h-7 w-32" />
- <Skeleton className="h-4 w-52 mt-1.5" />
- </div>
- <div className="grid grid-cols-2 gap-3 sm:grid-cols-5">
- {Array.from({ length: 5 }).map((_, i) => (
- <Skeleton key={i} className="h-20 rounded-lg" />
- ))}
- </div>
- <div className="grid grid-cols-1 gap-4 lg:grid-cols-3">
- <Skeleton className="lg:col-span-2 h-[240px] rounded-lg" />
- <Skeleton className="h-[240px] rounded-lg" />
- </div>
- <div className="grid grid-cols-1 gap-6 xl:grid-cols-4">
- <div className="xl:col-span-3">
- <Skeleton className="h-[400px] rounded-lg" />
- </div>
- <Skeleton className="h-[300px] rounded-lg" />
- </div>
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/loading.tsx b/packages/web/src/app/repos/[id]/loading.tsx
index 2606f8a7e..25d1f0d1f 100644
--- a/packages/web/src/app/repos/[id]/loading.tsx
+++ b/packages/web/src/app/repos/[id]/loading.tsx
@@ -1,25 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function RepoLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1200px]">
- <div className="flex items-start justify-between gap-4">
- <div className="min-w-0">
- <Skeleton className="h-7 w-48" />
- <Skeleton className="h-4 w-64 mt-1.5" />
- </div>
- <div className="flex gap-2 shrink-0">
- <Skeleton className="h-6 w-16" />
- <Skeleton className="h-6 w-16" />
- </div>
- </div>
- <div className="grid grid-cols-2 gap-3 lg:grid-cols-4">
- {Array.from({ length: 4 }).map((_, i) => (
- <Skeleton key={i} className="h-20 rounded-lg" />
- ))}
- </div>
- <Skeleton className="h-36 rounded-lg" />
- <Skeleton className="h-48 rounded-lg" />
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/overview/loading.tsx b/packages/web/src/app/repos/[id]/overview/loading.tsx
index 5048addf3..d0ecd795e 100644
--- a/packages/web/src/app/repos/[id]/overview/loading.tsx
+++ b/packages/web/src/app/repos/[id]/overview/loading.tsx
@@ -1,78 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
-import { Card, CardContent } from "@repowise-dev/ui/ui/card";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function OverviewLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1600px]">
- {/* Hero */}
- <div className="flex flex-col sm:flex-row items-start gap-6">
- <Skeleton className="h-[160px] w-[160px] rounded-full shrink-0" />
- <div className="flex-1 space-y-3 w-full">
- <div className="space-y-2">
- <Skeleton className="h-6 w-48" />
- <Skeleton className="h-3 w-72" />
- </div>
- <div className="flex gap-2">
- <Skeleton className="h-8 w-20" />
- <Skeleton className="h-8 w-28" />
- <Skeleton className="h-8 w-32" />
- </div>
- <div className="grid grid-cols-2 gap-2 sm:grid-cols-5">
- {Array.from({ length: 5 }).map((_, i) => (
- <Card key={i}>
- <CardContent className="p-3 space-y-2">
- <Skeleton className="h-3 w-12" />
- <Skeleton className="h-6 w-16" />
- </CardContent>
- </Card>
- ))}
- </div>
- </div>
- </div>
-
- {/* Grid */}
- <div className="grid grid-cols-1 gap-4 lg:grid-cols-3">
- <div className="space-y-4 lg:col-span-2">
- <Card>
- <CardContent className="p-6 space-y-3">
- <Skeleton className="h-4 w-36" />
- {Array.from({ length: 4 }).map((_, i) => (
- <Skeleton key={i} className="h-8 w-full" />
- ))}
- </CardContent>
- </Card>
- <div className="grid grid-cols-1 gap-4 md:grid-cols-2">
- <Card>
- <CardContent className="p-6 space-y-2">
- <Skeleton className="h-4 w-28" />
- {Array.from({ length: 5 }).map((_, i) => (
- <Skeleton key={i} className="h-5 w-full" />
- ))}
- </CardContent>
- </Card>
- <Card>
- <CardContent className="p-6 space-y-2">
- <Skeleton className="h-4 w-32" />
- {Array.from({ length: 5 }).map((_, i) => (
- <Skeleton key={i} className="h-5 w-full" />
- ))}
- </CardContent>
- </Card>
- </div>
- </div>
- <div className="space-y-4">
- <Card>
- <CardContent className="p-6">
- <Skeleton className="h-[120px] w-[120px] rounded-full mx-auto" />
- </CardContent>
- </Card>
- <Card>
- <CardContent className="p-6">
- <Skeleton className="h-[220px] w-full" />
- </CardContent>
- </Card>
- </div>
- </div>
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/overview/page.tsx b/packages/web/src/app/repos/[id]/overview/page.tsx
index 2e79df643..a3bc52414 100644
--- a/packages/web/src/app/repos/[id]/overview/page.tsx
+++ b/packages/web/src/app/repos/[id]/overview/page.tsx
@@ -24,6 +24,7 @@ import { ExecutionFlowsPanel } from "@repowise-dev/ui/dashboard/execution-flows-
import { BusFactorPanel } from "@repowise-dev/ui/git/bus-factor-panel";
import { CommitCategorySparkline } from "@repowise-dev/ui/git/commit-category-sparkline";
import { Card, CardContent, CardHeader, CardTitle } from "@repowise-dev/ui/ui/card";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@repowise-dev/ui/ui/tabs";
import { formatNumber } from "@repowise-dev/ui/lib/format";
import type {
RepoStatsResponse,
@@ -109,6 +110,15 @@ export default async function OverviewPage({ params }: Props) {
// Aggregate language distribution from graph nodes
const langDistribution = graph ? aggregateLanguages(graph.nodes) : {};
+ // Aggregate commit categories across hotspots for the Activity tab
+ const aggregatedCategories: Record<string, number> = {};
+ for (const h of hotspots ?? []) {
+ for (const [cat, count] of Object.entries(h.commit_categories ?? {})) {
+ aggregatedCategories[cat] = (aggregatedCategories[cat] || 0) + count;
+ }
+ }
+ const hasCategories = Object.values(aggregatedCategories).some((v) => v > 0);
+
return (
<div className="p-4 sm:p-6 space-y-6 max-w-[1600px]">
{/* ── Hero: Health Score + Repo Info + Quick Actions ── */}
@@ -156,25 +166,25 @@ export default async function OverviewPage({ params }: Props) {
label="Files"
value={stats ? formatNumber(stats.file_count) : "–"}
href={`/repos/${id}/graph`}
- className="!p-0 [&>div]:!p-3"
+ dense
/>
<StatCard
label="Symbols"
value={stats ? formatNumber(stats.symbol_count) : "–"}
href={`/repos/${id}/symbols`}
- className="!p-0 [&>div]:!p-3"
+ dense
/>
<StatCard
label="Entry Points"
value={stats ? formatNumber(stats.entry_point_count) : "–"}
href={`/repos/${id}/graph?viewMode=architecture`}
- className="!p-0 [&>div]:!p-3"
+ dense
/>
<StatCard
label="Doc Coverage"
value={stats ? `${Math.round(stats.doc_coverage_pct)}%` : "–"}
href={`/repos/${id}/docs/coverage`}
- className="!p-0 [&>div]:!p-3"
+ dense
/>
<StatCard
label="Dead Exports"
@@ -185,17 +195,36 @@ export default async function OverviewPage({ params }: Props) {
: undefined
}
href={`/repos/${id}/dead-code`}
- className="!p-0 [&>div]:!p-3"
+ dense
/>
</div>
</div>
</div>
- {/* ── Main Grid ── */}
+ {/* ── At a glance: what needs eyes now ── */}
<div className="grid grid-cols-1 gap-4 lg:grid-cols-3">
- {/* Left column — Attention + Hotspots */}
- <div className="space-y-4 lg:col-span-2">
+ <div className="lg:col-span-2">
<AttentionPanel items={attentionItems} repoId={id} />
+ </div>
+ <div>
+ <LanguageDonut
+ distribution={langDistribution}
+ viewAllHref={`/repos/${id}/graph?colorMode=language`}
+ />
+ </div>
+ </div>
+
+ {/* ── Detail sections — one focus at a time ── */}
+ <Tabs defaultValue="activity">
+ <TabsList>
+ <TabsTrigger value="activity">Activity</TabsTrigger>
+ <TabsTrigger value="architecture">Architecture</TabsTrigger>
+ <TabsTrigger value="graph">Graph</TabsTrigger>
+ <TabsTrigger value="ownership">Ownership</TabsTrigger>
+ </TabsList>
+
+ {/* Activity — recent change pressure and decisions */}
+ <TabsContent value="activity" className="mt-4 space-y-4">
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
<HotspotsMini hotspots={hotspots ?? []} repoId={id} />
<DecisionsTimeline
@@ -209,40 +238,7 @@ export default async function OverviewPage({ params }: Props) {
repoId={id}
/>
</div>
- </div>
-
- {/* Right column — Visualizations */}
- <div className="space-y-4">
- <LanguageDonut distribution={langDistribution} />
- <a
- href={`/repos/${id}/graph?colorMode=language`}
- className="block text-[10px] text-[var(--color-accent-primary)] hover:underline text-right -mt-1"
- >
- View in Graph →
- </a>
- </div>
- </div>
-
- {/* ── Git Insights ── */}
- {hotspots && hotspots.length > 0 && (() => {
- const aggregatedCategories: Record<string, number> = {};
- for (const h of hotspots) {
- for (const [cat, count] of Object.entries(h.commit_categories ?? {})) {
- aggregatedCategories[cat] = (aggregatedCategories[cat] || 0) + count;
- }
- }
- const hasCategories = Object.values(aggregatedCategories).some((v) => v > 0);
-
- return hasCategories ? (
- <div className="space-y-4">
- <div className="flex items-center justify-between">
- <h2 className="text-sm font-medium text-[var(--color-text-secondary)] uppercase tracking-wider">
- Git Insights
- </h2>
- <a href={`/repos/${id}/hotspots`} className="text-[10px] text-[var(--color-accent-primary)] hover:underline">
- View all →
- </a>
- </div>
+ {hasCategories && (
<Card>
<CardHeader className="pb-2">
<CardTitle className="text-sm font-medium">Commit Activity</CardTitle>
@@ -250,33 +246,32 @@ export default async function OverviewPage({ params }: Props) {
<CardContent>
<CommitCategorySparkline categories={aggregatedCategories} />
<div className="flex items-center gap-4 mt-2 text-[10px] text-[var(--color-text-tertiary)]">
- <span className="flex items-center gap-1"><span className="inline-block h-2 w-2 rounded-sm" style={{ background: "#5b9cf6" }} /> Feature</span>
- <span className="flex items-center gap-1"><span className="inline-block h-2 w-2 rounded-sm" style={{ background: "#ef4444" }} /> Fix</span>
- <span className="flex items-center gap-1"><span className="inline-block h-2 w-2 rounded-sm" style={{ background: "#a855f7" }} /> Refactor</span>
- <span className="flex items-center gap-1"><span className="inline-block h-2 w-2 rounded-sm" style={{ background: "#f59520" }} /> Dependency</span>
+ <span className="flex items-center gap-1"><span className="inline-block h-2 w-2 rounded-sm" style={{ background: "var(--color-info)" }} /> Feature</span>
+ <span className="flex items-center gap-1"><span className="inline-block h-2 w-2 rounded-sm" style={{ background: "var(--color-error)" }} /> Fix</span>
+ <span className="flex items-center gap-1"><span className="inline-block h-2 w-2 rounded-sm" style={{ background: "var(--color-accent-secondary)" }} /> Refactor</span>
+ <span className="flex items-center gap-1"><span className="inline-block h-2 w-2 rounded-sm" style={{ background: "var(--color-accent-fill)" }} /> Dependency</span>
</div>
</CardContent>
</Card>
- </div>
- ) : null;
- })()}
+ )}
+ </TabsContent>
- {/* ── Architecture ── */}
- {moduleGraph && moduleGraph.nodes.length > 0 && (
- <ModuleOverviewGrid
- nodes={moduleGraph.nodes}
- edges={moduleGraph.edges}
- repoId={id}
- />
- )}
+ {/* Architecture — module map */}
+ <TabsContent value="architecture" className="mt-4">
+ {moduleGraph && moduleGraph.nodes.length > 0 ? (
+ <ModuleOverviewGrid
+ nodes={moduleGraph.nodes}
+ edges={moduleGraph.edges}
+ repoId={id}
+ />
+ ) : (
+ <p className="text-sm text-[var(--color-text-tertiary)]">No module graph available.</p>
+ )}
+ </TabsContent>
- {/* ── Graph Intelligence: Communities & Execution Flows ── */}
- {((communities && communities.length > 0) || (executionFlows && executionFlows.flows.length > 0)) && (
- <div className="space-y-4">
- <div className="flex items-center justify-between">
- <h2 className="text-sm font-medium text-[var(--color-text-secondary)] uppercase tracking-wider">
- Graph Intelligence
- </h2>
+ {/* Graph — communities & execution flows */}
+ <TabsContent value="graph" className="mt-4 space-y-4">
+ <div className="flex justify-end">
<a href={`/repos/${id}/graph?colorMode=community`} className="text-[10px] text-[var(--color-accent-primary)] hover:underline">
View all →
</a>
@@ -289,16 +284,14 @@ export default async function OverviewPage({ params }: Props) {
<ExecutionFlowsPanel flows={executionFlows.flows} repoId={id} />
)}
</div>
- </div>
- )}
+ {!(communities && communities.length > 0) && !(executionFlows && executionFlows.flows.length > 0) && (
+ <p className="text-sm text-[var(--color-text-tertiary)]">No graph intelligence available.</p>
+ )}
+ </TabsContent>
- {/* ── Ownership & Knowledge ── */}
- {(hotspots || knowledgeMap) && (
- <div className="space-y-4">
- <div className="flex items-center justify-between">
- <h2 className="text-sm font-medium text-[var(--color-text-secondary)] uppercase tracking-wider">
- Ownership & Knowledge
- </h2>
+ {/* Ownership — bus factor, silos, onboarding */}
+ <TabsContent value="ownership" className="mt-4 space-y-4">
+ <div className="flex justify-end">
<a href={`/repos/${id}/ownership`} className="text-[10px] text-[var(--color-accent-primary)] hover:underline">
View all →
</a>
@@ -390,8 +383,8 @@ export default async function OverviewPage({ params }: Props) {
</Card>
)}
</div>
- </div>
- )}
+ </TabsContent>
+ </Tabs>
</div>
);
}
diff --git a/packages/web/src/app/repos/[id]/ownership/loading.tsx b/packages/web/src/app/repos/[id]/ownership/loading.tsx
index 34bc46100..9a6adc928 100644
--- a/packages/web/src/app/repos/[id]/ownership/loading.tsx
+++ b/packages/web/src/app/repos/[id]/ownership/loading.tsx
@@ -1,23 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function OwnershipLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1600px]">
- <div>
- <Skeleton className="h-7 w-36" />
- <Skeleton className="h-4 w-52 mt-1.5" />
- </div>
- <div className="grid grid-cols-2 gap-3 sm:grid-cols-4">
- {Array.from({ length: 4 }).map((_, i) => (
- <Skeleton key={i} className="h-20 rounded-lg" />
- ))}
- </div>
- <Skeleton className="h-[320px] rounded-lg" />
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
- <Skeleton className="h-[250px] rounded-lg" />
- <Skeleton className="h-[250px] rounded-lg" />
- </div>
- <Skeleton className="h-[300px] rounded-lg" />
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/search/loading.tsx b/packages/web/src/app/repos/[id]/search/loading.tsx
index 17bfcc712..1693c217f 100644
--- a/packages/web/src/app/repos/[id]/search/loading.tsx
+++ b/packages/web/src/app/repos/[id]/search/loading.tsx
@@ -1,25 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function SearchLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-3xl">
- <div>
- <Skeleton className="h-7 w-24" />
- <Skeleton className="h-4 w-56 mt-1.5" />
- </div>
- <div className="space-y-3">
- <Skeleton className="h-11 rounded-lg" />
- <div className="flex gap-2">
- {Array.from({ length: 3 }).map((_, i) => (
- <Skeleton key={i} className="h-8 w-24" />
- ))}
- </div>
- </div>
- <div className="space-y-3">
- {Array.from({ length: 5 }).map((_, i) => (
- <Skeleton key={i} className="h-20 rounded-lg" />
- ))}
- </div>
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/symbols/loading.tsx b/packages/web/src/app/repos/[id]/symbols/loading.tsx
index 17e24ac98..f1133ffc0 100644
--- a/packages/web/src/app/repos/[id]/symbols/loading.tsx
+++ b/packages/web/src/app/repos/[id]/symbols/loading.tsx
@@ -1,44 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function SymbolsLoading() {
- return (
- <div className="p-4 sm:p-6 space-y-6 max-w-[1600px]">
- <div>
- <Skeleton className="h-7 w-36" />
- <Skeleton className="h-4 w-56 mt-1.5" />
- </div>
- {/* Filter row */}
- <div className="flex flex-wrap gap-2">
- <Skeleton className="h-9 w-48" />
- <Skeleton className="h-9 w-32" />
- <Skeleton className="h-9 w-32" />
- </div>
- {/* Table with header + rows matching content structure */}
- <div className="rounded-lg border border-[var(--color-border-default)] overflow-hidden">
- <div className="bg-[var(--color-bg-elevated)] px-4 py-2.5 border-b border-[var(--color-border-default)]">
- <div className="flex gap-6">
- <Skeleton className="h-3 w-20" />
- <Skeleton className="h-3 w-12" />
- <Skeleton className="h-3 w-10" />
- <Skeleton className="h-3 w-16 hidden sm:block" />
- <Skeleton className="h-3 w-24 hidden sm:block" />
- <Skeleton className="h-3 w-16 hidden sm:block" />
- </div>
- </div>
- {Array.from({ length: 10 }).map((_, i) => (
- <div
- key={i}
- className="flex items-center gap-6 px-4 py-3 border-b border-[var(--color-border-default)] last:border-0"
- >
- <Skeleton className="h-1.5 w-16 rounded-full" />
- <Skeleton className="h-4 w-28" />
- <Skeleton className="h-5 w-14 rounded-md" />
- <Skeleton className="h-4 w-16 hidden sm:block" />
- <Skeleton className="h-4 w-36 hidden sm:block" />
- <Skeleton className="h-4 w-8 hidden sm:block" />
- </div>
- ))}
- </div>
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/wiki/[...slug]/loading.tsx b/packages/web/src/app/repos/[id]/wiki/[...slug]/loading.tsx
index 4b520f47d..b814ce0be 100644
--- a/packages/web/src/app/repos/[id]/wiki/[...slug]/loading.tsx
+++ b/packages/web/src/app/repos/[id]/wiki/[...slug]/loading.tsx
@@ -1,41 +1,5 @@
-import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import { OwlLoader } from "@/components/shared/owl-loader";
export default function WikiPageLoading() {
- return (
- <div className="flex h-full min-h-0">
- <div className="flex-1 min-w-0 overflow-auto">
- {/* Top bar */}
- <div className="sticky top-0 flex items-center gap-3 border-b border-[var(--color-border-default)] px-4 sm:px-6 py-2.5">
- <Skeleton className="h-4 flex-1 max-w-xs" />
- <Skeleton className="h-6 w-14" />
- <Skeleton className="h-6 w-24 hidden sm:block" />
- <Skeleton className="h-8 w-24" />
- </div>
- {/* Content */}
- <div className="px-4 sm:px-6 py-6 max-w-[768px] mx-auto space-y-4">
- <Skeleton className="h-8 w-3/4" />
- <div className="space-y-3">
- {Array.from({ length: 8 }).map((_, i) => (
- <Skeleton key={i} className={`h-4 ${i % 3 === 2 ? "w-2/3" : "w-full"}`} />
- ))}
- </div>
- <Skeleton className="h-32 w-full rounded-lg" />
- <div className="space-y-3">
- {Array.from({ length: 5 }).map((_, i) => (
- <Skeleton key={i} className="h-4 w-full" />
- ))}
- </div>
- </div>
- </div>
- {/* Context panel skeleton */}
- <div className="hidden xl:flex flex-col border-l border-[var(--color-border-default)] w-[280px] shrink-0">
- <div className="p-4 space-y-4">
- <Skeleton className="h-4 w-24" />
- {Array.from({ length: 5 }).map((_, i) => (
- <Skeleton key={i} className="h-4 w-full" />
- ))}
- </div>
- </div>
- </div>
- );
+ return <OwlLoader />;
}
diff --git a/packages/web/src/app/repos/[id]/wiki/[...slug]/page.tsx b/packages/web/src/app/repos/[id]/wiki/[...slug]/page.tsx
index fe7f15d04..23b7d7998 100644
--- a/packages/web/src/app/repos/[id]/wiki/[...slug]/page.tsx
+++ b/packages/web/src/app/repos/[id]/wiki/[...slug]/page.tsx
@@ -140,13 +140,13 @@ export default async function WikiPageRoute({ params }: Props) {
{/* Hallucination warnings */}
{Array.isArray(page.metadata?.hallucination_warnings) && (page.metadata.hallucination_warnings as string[]).length > 0 && (
- <div className="mt-6 rounded-lg border border-amber-400/30 bg-amber-50/5 px-4 py-3">
- <p className="text-xs font-medium text-amber-400 mb-1.5">
+ <div className="mt-6 rounded-lg border border-[var(--color-warning)]/40 bg-[var(--color-warning)]/10 px-4 py-3">
+ <p className="text-xs font-medium text-[var(--color-warning)] mb-1.5">
Possible inaccuracies detected
</p>
<ul className="space-y-0.5">
{(page.metadata.hallucination_warnings as string[]).map((w, i) => (
- <li key={i} className="text-xs text-amber-300/80 font-mono">
+ <li key={i} className="text-xs text-[var(--color-text-secondary)] font-mono">
{String(w)}
</li>
))}
diff --git a/packages/web/src/components/decisions/decision-detail.tsx b/packages/web/src/components/decisions/decision-detail.tsx
index f1b3b8f22..0740ceee8 100644
--- a/packages/web/src/components/decisions/decision-detail.tsx
+++ b/packages/web/src/components/decisions/decision-detail.tsx
@@ -8,6 +8,7 @@ import { toast } from "sonner";
import Link from "next/link";
import { ChevronLeft, FileSearch } from "lucide-react";
import { Badge } from "@repowise-dev/ui/ui/badge";
+import { stripMarkdown } from "@repowise-dev/ui/lib/format";
import { ConfirmDialog } from "@repowise-dev/ui/ui/confirm-dialog";
import { ModuleLinkEditor } from "@repowise-dev/ui/decisions/module-link-editor";
import { VerificationBadge } from "@repowise-dev/ui/decisions/verification-badge";
@@ -186,7 +187,7 @@ export function DecisionDetail({ decision, repoId }: DecisionDetailProps) {
<div className="space-y-2">
<div className="flex flex-wrap items-center gap-3">
<h1 className="text-xl font-semibold text-[var(--color-text-primary)]">
- {decision.title}
+ {stripMarkdown(decision.title)}
</h1>
<Badge variant={STATUS_VARIANT[status] ?? "outline"}>{status}</Badge>
{decision.verification && (
@@ -292,7 +293,7 @@ export function DecisionDetail({ decision, repoId }: DecisionDetailProps) {
<button
onClick={() => handleStatusChange("active")}
disabled={loading}
- className="rounded-md bg-green-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-green-700 disabled:opacity-50"
+ className="rounded-md bg-[var(--color-success)] px-3 py-1.5 text-sm font-medium text-[var(--color-text-inverse)] hover:opacity-90 disabled:opacity-50"
>
Confirm
</button>
diff --git a/packages/web/src/components/docs/docs-explorer.tsx b/packages/web/src/components/docs/docs-explorer.tsx
index 059454906..6d474391b 100644
--- a/packages/web/src/components/docs/docs-explorer.tsx
+++ b/packages/web/src/components/docs/docs-explorer.tsx
@@ -1,13 +1,29 @@
"use client";
-import { useState, useCallback, useEffect } from "react";
+import { useState, useCallback, useEffect, useMemo } from "react";
import { useSearchParams, useRouter } from "next/navigation";
-import { BookOpen, PanelLeftClose, PanelLeft } from "lucide-react";
+import { BookOpen, PanelLeftClose, PanelLeft, Search } from "lucide-react";
import { cn } from "@/lib/utils/cn";
import { usePages } from "@/lib/hooks/use-pages";
import { DocsTree } from "@repowise-dev/ui/docs/docs-tree";
+import { DocsCommandPalette } from "@repowise-dev/ui/docs/command-palette";
+import {
+ DEFAULT_PERSONA,
+ type ReaderPersona,
+ isReaderPersona,
+ personaFilteringApplies,
+} from "@repowise-dev/ui/docs/reader-persona";
+import { DocsHeader } from "./docs-header";
import { DocsViewer } from "./docs-viewer";
+import {
+ DocsPageActions,
+ ExportMenu,
+ SidebarToggle,
+} from "./docs-page-actions";
+import { search as searchPages } from "@/lib/api/search";
+import { downloadTextFile } from "@/lib/utils/download";
import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
+import type { DocPage } from "@repowise-dev/types/docs";
import type { PageResponse } from "@/lib/api/types";
interface DocsExplorerProps {
@@ -21,9 +37,34 @@ export function DocsExplorer({ repoId }: DocsExplorerProps) {
if (typeof window === "undefined") return true;
return window.matchMedia("(min-width: 768px)").matches;
});
+ const [sidebarOpen, setSidebarOpen] = useState(true);
+ const [searchOpen, setSearchOpen] = useState(false);
+ const [isExporting, setIsExporting] = useState(false);
const searchParams = useSearchParams();
const router = useRouter();
+ // Reader persona — a client-side section filter, persisted in the URL
+ // (?reader=) so a chosen depth is shareable and survives navigation. Owned
+ // here (not in the viewer) because the control renders in the DocsHeader.
+ const readerParam = searchParams.get("reader");
+ const persona: ReaderPersona = isReaderPersona(readerParam) ? readerParam : DEFAULT_PERSONA;
+ const setPersona = useCallback(
+ (next: ReaderPersona) => {
+ const params = new URLSearchParams(searchParams.toString());
+ if (next === DEFAULT_PERSONA) params.delete("reader");
+ else params.set("reader", next);
+ const qs = params.toString();
+ router.replace(qs ? `?${qs}` : "?", { scroll: false });
+ },
+ [router, searchParams],
+ );
+ // The reader control only renders when filtering would change this page —
+ // on curated pages (guided tour, overviews) it's a no-op, so it hides.
+ const personaHasEffect = useMemo(
+ () => (selectedPage ? personaFilteringApplies(selectedPage.content) : false),
+ [selectedPage],
+ );
+
// Keep the selected page in sync with the ?page= URL param. This fires on
// mount and whenever the param changes — including when an in-content wiki
// link or breadcrumb navigates via <Link href="?page=...">.
@@ -51,8 +92,38 @@ export function DocsExplorer({ repoId }: DocsExplorerProps) {
router.replace(`?${params.toString()}`, { scroll: false });
}, [searchParams, router]);
+ // Server-backed search for the ⌘K palette: hit the semantic/full-text
+ // endpoint, then map results back to the loaded page objects so selection
+ // behaves identically to a client-side hit. Unknown ids (rare) are dropped.
+ const searchFn = useCallback(
+ async (q: string) => {
+ const results = await searchPages(q, { repo_id: repoId, limit: 30 });
+ const byId = new Map(pages.map((p) => [p.id, p]));
+ return results
+ .map((r) => byId.get(r.page_id))
+ .filter((p): p is PageResponse => p !== undefined) as unknown as DocPage[];
+ },
+ [repoId, pages],
+ );
+
+ const handleExportAll = useCallback(() => {
+ setIsExporting(true);
+ try {
+ const sorted = [...pages].sort((a, b) =>
+ a.target_path.localeCompare(b.target_path),
+ );
+ const content = sorted
+ .map((p) => `# ${p.title}\n\n> ${p.target_path}\n\n${p.content}`)
+ .join("\n\n---\n\n");
+ downloadTextFile(content, "documentation-export.md");
+ } finally {
+ setIsExporting(false);
+ }
+ }, [pages]);
+
+ let body: React.ReactNode;
if (isLoading) {
- return (
+ body = (
<div className="flex h-full">
<div className="w-full md:w-[300px] border-r border-[var(--color-border-default)] p-3 space-y-2">
<Skeleton className="h-8 w-full rounded-md" />
@@ -68,10 +139,8 @@ export function DocsExplorer({ repoId }: DocsExplorerProps) {
</div>
</div>
);
- }
-
- if (pages.length === 0) {
- return (
+ } else if (pages.length === 0) {
+ body = (
<div className="flex flex-col items-center justify-center h-full gap-4 text-center px-8">
<div className="rounded-full bg-[var(--color-bg-elevated)] border border-[var(--color-border-default)] p-4">
<BookOpen className="h-8 w-8 text-[var(--color-text-tertiary)]" />
@@ -86,55 +155,106 @@ export function DocsExplorer({ repoId }: DocsExplorerProps) {
</div>
</div>
);
- }
+ } else {
+ body = (
+ <div className="relative flex h-full">
+ {/* Tree sidebar */}
+ <div
+ className={cn(
+ "border-r border-[var(--color-border-default)] bg-[var(--color-bg-surface)] transition-all duration-200 shrink-0 relative",
+ treePanelOpen ? "w-full md:w-[300px]" : "w-0 overflow-hidden border-r-0",
+ )}
+ >
+ <DocsTree
+ pages={pages}
+ selectedPageId={selectedPage?.id ?? null}
+ onSelectPage={(p) => {
+ handleSelectPage(p);
+ if (typeof window !== "undefined" && !window.matchMedia("(min-width: 768px)").matches) {
+ setTreePanelOpen(false);
+ }
+ }}
+ />
+ </div>
- return (
- <div className="relative flex h-full">
- {/* Tree sidebar */}
- <div
- className={cn(
- "border-r border-[var(--color-border-default)] bg-[var(--color-bg-surface)] transition-all duration-200 shrink-0 relative",
- treePanelOpen ? "w-full md:w-[300px]" : "w-0 overflow-hidden border-r-0",
- )}
- >
- <DocsTree
- pages={pages}
- selectedPageId={selectedPage?.id ?? null}
- onSelectPage={(p) => {
- handleSelectPage(p);
- if (typeof window !== "undefined" && !window.matchMedia("(min-width: 768px)").matches) {
- setTreePanelOpen(false);
- }
- }}
- />
+ {/* Toggle button */}
+ <button
+ onClick={() => setTreePanelOpen((o) => !o)}
+ aria-label={treePanelOpen ? "Hide pages tree" : "Show pages tree"}
+ aria-expanded={treePanelOpen}
+ className={cn(
+ "absolute top-3 z-20 rounded-r-md border border-l-0 border-[var(--color-border-default)] bg-[var(--color-bg-surface)] p-1 text-[var(--color-text-tertiary)] hover:text-[var(--color-text-primary)] hover:bg-[var(--color-bg-elevated)] transition-colors",
+ treePanelOpen ? "hidden md:block left-[300px]" : "left-0",
+ )}
+ >
+ {treePanelOpen ? (
+ <PanelLeftClose className="h-3.5 w-3.5" />
+ ) : (
+ <PanelLeft className="h-3.5 w-3.5" />
+ )}
+ </button>
+
+ {/* Viewer */}
+ <div className={cn("flex-1 min-w-0", treePanelOpen ? "hidden md:block" : "block")}>
+ <DocsViewer
+ page={selectedPage}
+ pages={pages}
+ repoId={repoId}
+ onSelectPage={handleSelectPage}
+ persona={persona}
+ sidebarOpen={sidebarOpen}
+ />
+ </div>
</div>
+ );
+ }
- {/* Toggle button */}
- <button
- onClick={() => setTreePanelOpen((o) => !o)}
- aria-label={treePanelOpen ? "Hide pages tree" : "Show pages tree"}
- aria-expanded={treePanelOpen}
- className={cn(
- "absolute top-3 z-20 rounded-r-md border border-l-0 border-[var(--color-border-default)] bg-[var(--color-bg-surface)] p-1 text-[var(--color-text-tertiary)] hover:text-[var(--color-text-primary)] hover:bg-[var(--color-bg-elevated)] transition-colors",
- treePanelOpen ? "hidden md:block left-[300px]" : "left-0",
- )}
- >
- {treePanelOpen ? (
- <PanelLeftClose className="h-3.5 w-3.5" />
- ) : (
- <PanelLeft className="h-3.5 w-3.5" />
+ return (
+ <div className="flex flex-col h-full">
+ <DocsHeader>
+ {selectedPage && (
+ <DocsPageActions
+ page={selectedPage}
+ persona={persona}
+ setPersona={setPersona}
+ personaHasEffect={personaHasEffect}
+ />
)}
- </button>
-
- {/* Viewer */}
- <div className={cn("flex-1 min-w-0", treePanelOpen ? "hidden md:block" : "block")}>
- <DocsViewer
+ <button
+ onClick={() => setSearchOpen(true)}
+ className="flex items-center gap-2 rounded-md border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)] px-2.5 py-1.5 text-xs text-[var(--color-text-tertiary)] transition-colors hover:text-[var(--color-text-secondary)]"
+ >
+ <Search className="h-3.5 w-3.5" />
+ <span className="hidden sm:inline">Search</span>
+ <kbd className="hidden rounded border border-[var(--color-border-default)] px-1 py-0.5 text-[10px] sm:inline">
+ ⌘K
+ </kbd>
+ </button>
+ <ExportMenu
+ isExporting={isExporting}
+ onExportAll={handleExportAll}
+ zipHref={`/api/repos/${repoId}/export`}
page={selectedPage}
- pages={pages}
repoId={repoId}
- onSelectPage={handleSelectPage}
/>
- </div>
+ {selectedPage && (
+ <SidebarToggle
+ open={sidebarOpen}
+ onToggle={() => setSidebarOpen((o) => !o)}
+ />
+ )}
+ </DocsHeader>
+
+ <div className="flex-1 min-h-0">{body}</div>
+
+ {/* ⌘K full-text command palette over loaded pages */}
+ <DocsCommandPalette
+ pages={pages as unknown as DocPage[]}
+ open={searchOpen}
+ onOpenChange={setSearchOpen}
+ onSelect={(p) => handleSelectPage(p as unknown as PageResponse)}
+ searchFn={searchFn}
+ />
</div>
);
}
diff --git a/packages/web/src/components/docs/docs-header.tsx b/packages/web/src/components/docs/docs-header.tsx
new file mode 100644
index 000000000..609888e46
--- /dev/null
+++ b/packages/web/src/components/docs/docs-header.tsx
@@ -0,0 +1,61 @@
+"use client";
+
+import Link from "next/link";
+import { useParams, usePathname } from "next/navigation";
+import { BookOpen, BarChart3 } from "lucide-react";
+import { cn } from "@/lib/utils/cn";
+
+const TABS = [
+ { label: "Explorer", segment: "", icon: BookOpen },
+ { label: "Coverage", segment: "/coverage", icon: BarChart3 },
+] as const;
+
+/**
+ * Single compact chrome row for the Docs surface: title, the
+ * Explorer / Coverage view switch as a segmented control, and a right-aligned
+ * slot for page-specific actions. Replaces the old two-row stack
+ * (underline tabs row + title/actions row).
+ */
+export function DocsHeader({ children }: { children?: React.ReactNode }) {
+ const pathname = usePathname();
+ const { id } = useParams<{ id: string }>();
+ const basePath = `/repos/${id}/docs`;
+
+ return (
+ <div className="shrink-0 flex h-12 items-center gap-3 border-b border-[var(--color-border-default)] px-4 sm:px-6">
+ <h1 className="text-sm font-semibold text-[var(--color-text-primary)]">
+ Documentation
+ </h1>
+
+ <nav
+ className="flex items-center rounded-lg bg-[var(--color-bg-elevated)] p-0.5"
+ aria-label="Docs views"
+ >
+ {TABS.map((tab) => {
+ const href = `${basePath}${tab.segment}`;
+ const isActive =
+ tab.segment === "" ? pathname === basePath : pathname.startsWith(href);
+ const Icon = tab.icon;
+ return (
+ <Link
+ key={tab.segment}
+ href={href}
+ aria-current={isActive ? "page" : undefined}
+ className={cn(
+ "flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-colors",
+ isActive
+ ? "bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] shadow-sm"
+ : "text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)]",
+ )}
+ >
+ <Icon className="h-3.5 w-3.5" />
+ {tab.label}
+ </Link>
+ );
+ })}
+ </nav>
+
+ <div className="ml-auto flex items-center gap-2">{children}</div>
+ </div>
+ );
+}
diff --git a/packages/web/src/components/docs/docs-page-actions.tsx b/packages/web/src/components/docs/docs-page-actions.tsx
new file mode 100644
index 000000000..c9239aa46
--- /dev/null
+++ b/packages/web/src/components/docs/docs-page-actions.tsx
@@ -0,0 +1,204 @@
+"use client";
+
+import { useState } from "react";
+import {
+ ChevronDown,
+ Download,
+ ExternalLink,
+ FileText,
+ FolderArchive,
+ Loader2,
+ PanelRight,
+ PanelRightClose,
+} from "lucide-react";
+import { Button } from "@repowise-dev/ui/ui/button";
+import { ConfidenceBadge } from "@repowise-dev/ui/wiki/confidence-badge";
+import {
+ READER_PERSONAS,
+ type ReaderPersona,
+} from "@repowise-dev/ui/docs/reader-persona";
+import { cn } from "@/lib/utils/cn";
+import { downloadTextFile } from "@/lib/utils/download";
+import type { PageResponse } from "@/lib/api/types";
+
+/**
+ * Per-page controls for the DocsHeader row — the compact freshness badge and
+ * the reader-level control that used to live in a second sticky row above the
+ * article. The reader control renders only when filtering actually changes
+ * this page (see personaFilteringApplies); on curated pages it disappears.
+ */
+export function DocsPageActions({
+ page,
+ persona,
+ setPersona,
+ personaHasEffect,
+}: {
+ page: PageResponse;
+ persona: ReaderPersona;
+ setPersona: (next: ReaderPersona) => void;
+ personaHasEffect: boolean;
+}) {
+ return (
+ <>
+ <ConfidenceBadge score={page.confidence} status={page.freshness_status} />
+ {personaHasEffect && (
+ <div
+ className="hidden md:inline-flex items-center rounded-md border border-[var(--color-border-default)] p-0.5 shrink-0"
+ role="group"
+ aria-label="Reader level"
+ >
+ {READER_PERSONAS.map((p) => (
+ <button
+ key={p.value}
+ onClick={() => setPersona(p.value)}
+ title={p.hint}
+ className={cn(
+ "rounded px-1.5 py-0.5 text-[10px] font-medium transition-colors",
+ persona === p.value
+ ? "bg-[var(--color-accent-primary)] text-[var(--color-text-inverse)]"
+ : "text-[var(--color-text-tertiary)] hover:text-[var(--color-text-primary)]",
+ )}
+ >
+ {p.label}
+ </button>
+ ))}
+ </div>
+ )}
+ </>
+ );
+}
+
+/** Insights-drawer toggle — header-resident; the drawer itself is lg-only. */
+export function SidebarToggle({
+ open,
+ onToggle,
+}: {
+ open: boolean;
+ onToggle: () => void;
+}) {
+ return (
+ <button
+ onClick={onToggle}
+ className={cn(
+ "hidden lg:inline-flex rounded-md p-1.5 transition-colors",
+ open
+ ? "text-[var(--color-accent)] hover:bg-[var(--color-bg-elevated)]"
+ : "text-[var(--color-text-tertiary)] hover:bg-[var(--color-bg-elevated)] hover:text-[var(--color-accent-primary)]",
+ )}
+ title={open ? "Hide insights" : "Show insights"}
+ aria-pressed={open}
+ >
+ {open ? (
+ <PanelRightClose className="h-3.5 w-3.5" />
+ ) : (
+ <PanelRight className="h-3.5 w-3.5" />
+ )}
+ </button>
+ );
+}
+
+/**
+ * Single Export menu — the former standalone download/open-external icon
+ * buttons fold in here as per-page items, above the repo-wide exports.
+ */
+export function ExportMenu({
+ isExporting,
+ onExportAll,
+ zipHref,
+ page,
+ repoId,
+}: {
+ isExporting: boolean;
+ onExportAll: () => void;
+ zipHref: string;
+ page: PageResponse | null;
+ repoId: string;
+}) {
+ const [open, setOpen] = useState(false);
+ const itemClass =
+ "flex w-full items-center gap-2 rounded px-2 py-1.5 text-xs text-[var(--color-text-secondary)] transition-colors hover:bg-[var(--color-bg-elevated)] hover:text-[var(--color-text-primary)]";
+
+ const exportPage = () => {
+ if (!page) return;
+ const filename = (page.target_path || page.title).replace(/\//g, "_") + ".md";
+ const header = `# ${page.title}\n\n> Path: ${page.target_path}\n\n`;
+ downloadTextFile(header + page.content, filename);
+ };
+
+ return (
+ <div className="relative">
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() => setOpen((o) => !o)}
+ disabled={isExporting}
+ aria-haspopup="menu"
+ aria-expanded={open}
+ >
+ {isExporting ? (
+ <Loader2 className="h-3.5 w-3.5 mr-1.5 animate-spin" />
+ ) : (
+ <Download className="h-3.5 w-3.5 mr-1.5" />
+ )}
+ Export
+ <ChevronDown className="h-3 w-3 ml-1 opacity-60" />
+ </Button>
+ {open && (
+ <>
+ <div className="fixed inset-0 z-10" onClick={() => setOpen(false)} />
+ <div
+ role="menu"
+ className="absolute right-0 top-full z-20 mt-1 w-52 rounded-md border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] p-1 shadow-md"
+ >
+ {page && (
+ <>
+ <button
+ role="menuitem"
+ className={itemClass}
+ onClick={() => {
+ setOpen(false);
+ exportPage();
+ }}
+ >
+ <Download className="h-3.5 w-3.5 shrink-0" />
+ This page (Markdown)
+ </button>
+ <a
+ role="menuitem"
+ href={`/repos/${repoId}/wiki/${encodeURIComponent(page.id)}`}
+ className={itemClass}
+ onClick={() => setOpen(false)}
+ >
+ <ExternalLink className="h-3.5 w-3.5 shrink-0" />
+ Open full page
+ </a>
+ <div className="my-1 border-t border-[var(--color-border-default)]" />
+ </>
+ )}
+ <button
+ role="menuitem"
+ className={itemClass}
+ onClick={() => {
+ setOpen(false);
+ onExportAll();
+ }}
+ >
+ <FileText className="h-3.5 w-3.5 shrink-0" />
+ All pages (Markdown)
+ </button>
+ <a
+ role="menuitem"
+ href={zipHref}
+ download
+ className={itemClass}
+ onClick={() => setOpen(false)}
+ >
+ <FolderArchive className="h-3.5 w-3.5 shrink-0" />
+ ZIP archive
+ </a>
+ </div>
+ </>
+ )}
+ </div>
+ );
+}
diff --git a/packages/web/src/components/docs/docs-viewer.tsx b/packages/web/src/components/docs/docs-viewer.tsx
index 8d24b2547..497cfb49a 100644
--- a/packages/web/src/components/docs/docs-viewer.tsx
+++ b/packages/web/src/components/docs/docs-viewer.tsx
@@ -1,21 +1,16 @@
"use client";
-import { useCallback, useEffect, useMemo, useRef, useState } from "react";
+import { useCallback, useEffect, useMemo, useRef } from "react";
import Link from "next/link";
-import { useRouter, useSearchParams } from "next/navigation";
import useSWR from "swr";
import {
FileText,
Clock,
Cpu,
- ExternalLink,
- Download,
StickyNote,
ArrowRight,
ArrowLeft,
Loader2,
- PanelRight,
- PanelRightClose,
Network,
Activity,
GitBranch,
@@ -33,18 +28,13 @@ import { Breadcrumb } from "@repowise-dev/ui/shared/breadcrumb";
import { BacklinksPanel } from "@repowise-dev/ui/wiki/backlinks-panel";
import { getPageTypeLabel } from "@repowise-dev/ui/lib/page-types";
import {
- DEFAULT_PERSONA,
- READER_PERSONAS,
type ReaderPersona,
filterMarkdownByPersona,
- isReaderPersona,
} from "@repowise-dev/ui/docs/reader-persona";
import { VersionHistoryWrapper } from "@/components/wiki/version-history";
-import { ConfidenceBadge } from "@repowise-dev/ui/wiki/confidence-badge";
import { Badge } from "@repowise-dev/ui/ui/badge";
import { Skeleton } from "@repowise-dev/ui/ui/skeleton";
import { formatRelativeTime, formatTokens } from "@repowise-dev/ui/lib/format";
-import { downloadTextFile } from "@/lib/utils/download";
import { useGraphMetrics, useCallersCallees } from "@/lib/hooks/use-graph";
import type { PageResponse } from "@/lib/api/types";
@@ -82,7 +72,7 @@ function DocsSidebar({ repoId, targetPath }: { repoId: string; targetPath: strin
if (metricsLoading) {
return (
- <div className="space-y-3 p-3">
+ <div className="space-y-3">
<Skeleton className="h-4 w-20" />
<Skeleton className="h-3 w-full" />
<Skeleton className="h-3 w-full" />
@@ -91,16 +81,11 @@ function DocsSidebar({ repoId, targetPath }: { repoId: string; targetPath: strin
);
}
- if (!metrics) {
- return (
- <div className="p-3">
- <p className="text-[11px] text-[var(--color-text-tertiary)] italic">No graph data available</p>
- </div>
- );
- }
+ // No graph data — render nothing rather than announcing the absence.
+ if (!metrics) return null;
return (
- <div className="space-y-4 p-3">
+ <div className="space-y-4">
{/* Graph Metrics */}
<div>
<div className="flex items-center gap-1.5 mb-2">
@@ -208,7 +193,7 @@ function AtAGlance({ repoId, targetPath }: { repoId: string; targetPath: string
</div>
<div className="flex flex-wrap gap-1.5">
{data.is_hotspot && (
- <Badge variant="outline" className="text-[10px] border-amber-400/40 text-amber-300/90">
+ <Badge variant="outline" className="text-[10px] border-[var(--color-warning)]/40 text-[var(--color-warning)]">
<Flame className="h-2.5 w-2.5 mr-1" />
Hotspot · top {churnTop}%
</Badge>
@@ -217,7 +202,7 @@ function AtAGlance({ repoId, targetPath }: { repoId: string; targetPath: string
<Badge variant="outline" className="text-[10px]">Stable</Badge>
)}
{data.bus_factor === 1 && (
- <Badge variant="outline" className="text-[10px] border-amber-400/40 text-amber-300/90">
+ <Badge variant="outline" className="text-[10px] border-[var(--color-warning)]/40 text-[var(--color-warning)]">
Bus factor 1
</Badge>
)}
@@ -262,6 +247,10 @@ interface DocsViewerProps {
isLoading?: boolean;
/** Select another page in-place (breadcrumb / prev-next / wiki links). */
onSelectPage?: (page: PageResponse) => void;
+ /** Reader level + insights-drawer state — owned by DocsExplorer, which
+ renders the controls in the DocsHeader row. */
+ persona: ReaderPersona;
+ sidebarOpen: boolean;
}
export function DocsViewer({
@@ -270,26 +259,10 @@ export function DocsViewer({
repoId,
isLoading,
onSelectPage,
+ persona,
+ sidebarOpen,
}: DocsViewerProps) {
const scrollRef = useRef<HTMLDivElement>(null);
- const [sidebarOpen, setSidebarOpen] = useState(true);
-
- // Reader persona — a client-side section filter, persisted in the URL
- // (?reader=) so a chosen depth is shareable and survives navigation.
- const router = useRouter();
- const searchParams = useSearchParams();
- const readerParam = searchParams.get("reader");
- const persona: ReaderPersona = isReaderPersona(readerParam) ? readerParam : DEFAULT_PERSONA;
- const setPersona = useCallback(
- (next: ReaderPersona) => {
- const params = new URLSearchParams(searchParams.toString());
- if (next === DEFAULT_PERSONA) params.delete("reader");
- else params.set("reader", next);
- const qs = params.toString();
- router.replace(qs ? `?${qs}` : "?", { scroll: false });
- },
- [router, searchParams],
- );
// In-app navigation to another page by id (used by breadcrumbs, prev/next,
// and resolved wiki links). Falls back to the full wiki route when the
@@ -344,11 +317,9 @@ export function DocsViewer({
repoId={repoId}
hasTargetPath={hasTargetPath}
sidebarOpen={sidebarOpen}
- setSidebarOpen={setSidebarOpen}
scrollRef={scrollRef}
goToPageId={goToPageId}
persona={persona}
- setPersona={setPersona}
/>
);
}
@@ -359,22 +330,18 @@ function DocsViewerBody({
repoId,
hasTargetPath,
sidebarOpen,
- setSidebarOpen,
scrollRef,
goToPageId,
persona,
- setPersona,
}: {
page: PageResponse;
pages: PageResponse[];
repoId: string;
hasTargetPath: boolean;
sidebarOpen: boolean;
- setSidebarOpen: (fn: (o: boolean) => boolean) => void;
scrollRef: React.RefObject<HTMLDivElement | null>;
goToPageId: (pageId: string) => void;
persona: ReaderPersona;
- setPersona: (next: ReaderPersona) => void;
}) {
// Hierarchical breadcrumb + sibling prev/next, derived from the page list.
const nav = useMemo(() => computeDocNav(page, pages), [page, pages]);
@@ -416,25 +383,40 @@ function DocsViewerBody({
if (!hit) continue;
seen.add(target);
out.push({ id: hit.id, title: hit.title });
- if (out.length >= 8) break;
}
return out;
}, [wikiLinks, pages, page.id]);
- // KG layer this file belongs to (P1.4 "layer Y" chip). Links to the layer
+ // KG layer this file belongs to (the "layer Y" chip). Links to the layer
// page when one was generated, otherwise renders as a static chip.
const layerName =
typeof page.metadata?.layer_name === "string" ? page.metadata.layer_name : "";
+ // Layer pages are keyed by the layer's STABLE slug id (`layer:<slug>`), which
+ // survives the LLM rename of the display name. Join by that id; fall back to
+ // the legacy name-keyed target_path for pages generated before the slug fix.
+ const layerId =
+ typeof page.metadata?.layer_id === "string" ? page.metadata.layer_id : "";
const layerPage = useMemo(
() =>
- layerName
+ layerId
? pages.find(
- (p) =>
- p.page_type === "layer_page" &&
- p.target_path === `layer:${layerName}`,
- )
- : undefined,
- [pages, layerName],
+ (p) => p.page_type === "layer_page" && p.target_path === layerId,
+ ) ??
+ (layerName
+ ? pages.find(
+ (p) =>
+ p.page_type === "layer_page" &&
+ p.target_path === `layer:${layerName}`,
+ )
+ : undefined)
+ : layerName
+ ? pages.find(
+ (p) =>
+ p.page_type === "layer_page" &&
+ p.target_path === `layer:${layerName}`,
+ )
+ : undefined,
+ [pages, layerId, layerName],
);
// Provenance: the inputs this page was synthesised from (metadata.sources).
@@ -448,8 +430,7 @@ function DocsViewerBody({
const path = typeof s?.path === "string" ? s.path : "";
return { path, kind: s?.kind ?? "", pageId: byPath.get(path)?.id };
})
- .filter((s) => s.path)
- .slice(0, 8);
+ .filter((s) => s.path);
}, [page.metadata, pages]);
// Renders a resolved wiki link as an <a> with a real href (middle-click /
@@ -496,105 +477,25 @@ function DocsViewerBody({
<div className="flex h-full">
{/* Main content */}
<div className="flex flex-col flex-1 min-w-0">
- {/* Sticky header */}
- <div className="sticky top-0 z-10 flex items-center gap-2 border-b border-[var(--color-border-default)] bg-[var(--color-bg-surface)]/95 backdrop-blur px-4 sm:px-6 py-2.5 flex-wrap sm:flex-nowrap shrink-0">
- {/* Hierarchical breadcrumb: module / file, ancestors clickable */}
- <div className="min-w-0 flex-1 overflow-hidden">
- <Breadcrumb
- segments={nav.breadcrumbs.map((seg) => ({
- label: seg.label,
- ...(seg.pageId && seg.pageId !== page.id
- ? { href: buildWikiHref(seg.pageId) }
- : {}),
- }))}
- LinkComponent={WikiInlineLink}
- />
- </div>
-
- {/* Confidence */}
- <ConfidenceBadge
- score={page.confidence}
- status={page.freshness_status}
- showScore
- />
-
- {/* Provider */}
- <Badge variant="outline" className="font-mono text-[10px] hidden sm:flex shrink-0">
- <Cpu className="h-2.5 w-2.5 mr-1" />
- <span className="truncate max-w-[100px]">{page.model_name}</span>
- </Badge>
-
- {/* Download as markdown */}
- <button
- onClick={() => {
- const filename = (page.target_path || page.title).replace(/\//g, "_") + ".md";
- const header = `# ${page.title}\n\n> Path: ${page.target_path}\n\n`;
- downloadTextFile(header + page.content, filename);
- }}
- className="text-[var(--color-text-tertiary)] hover:text-[var(--color-accent-primary)] transition-colors shrink-0"
- title="Download as Markdown"
- >
- <Download className="h-3.5 w-3.5" />
- </button>
-
- {/* Open full page link */}
- <Link
- href={`/repos/${repoId}/wiki/${encodeURIComponent(page.id)}`}
- className="text-[var(--color-text-tertiary)] hover:text-[var(--color-accent-primary)] transition-colors shrink-0"
- title="Open full page"
- >
- <ExternalLink className="h-3.5 w-3.5" />
- </Link>
-
- {/* Reader persona — Overview / Contributor / Deep section filter */}
- <div
- className="hidden md:inline-flex items-center rounded-md border border-[var(--color-border-default)] p-0.5 shrink-0"
- role="group"
- aria-label="Reader level"
- >
- {READER_PERSONAS.map((p) => (
- <button
- key={p.value}
- onClick={() => setPersona(p.value)}
- title={p.hint}
- className={cn(
- "rounded px-1.5 py-0.5 text-[10px] font-medium transition-colors",
- persona === p.value
- ? "bg-[var(--color-accent-primary)] text-white"
- : "text-[var(--color-text-tertiary)] hover:text-[var(--color-text-primary)]",
- )}
- >
- {p.label}
- </button>
- ))}
- </div>
-
- {/* Sidebar toggle */}
- {(
- <button
- onClick={() => setSidebarOpen((o) => !o)}
- className={cn(
- "transition-colors shrink-0",
- sidebarOpen
- ? "text-[var(--color-accent)] hover:text-[var(--color-accent)]"
- : "text-[var(--color-text-tertiary)] hover:text-[var(--color-accent-primary)]",
- )}
- title={sidebarOpen ? "Hide insights" : "Show insights"}
- >
- {sidebarOpen ? (
- <PanelRightClose className="h-3.5 w-3.5" />
- ) : (
- <PanelRight className="h-3.5 w-3.5" />
- )}
- </button>
- )}
- </div>
-
- {/* Content */}
+ {/* Content. The old sticky control row lives in the DocsHeader now —
+ the article gets the full height. */}
<div ref={scrollRef} className="flex-1 overflow-y-auto">
- <div className="px-4 sm:px-6 py-6 max-w-[768px] mx-auto">
+ <div className="px-4 sm:px-6 py-8 max-w-[768px] mx-auto">
+ {/* Hierarchical breadcrumb: module / file, ancestors clickable */}
+ <div className="mb-3 overflow-hidden">
+ <Breadcrumb
+ segments={nav.breadcrumbs.map((seg) => ({
+ label: seg.label,
+ ...(seg.pageId && seg.pageId !== page.id
+ ? { href: buildWikiHref(seg.pageId) }
+ : {}),
+ }))}
+ LinkComponent={WikiInlineLink}
+ />
+ </div>
+
{/* Title */}
- <h1 className="text-xl font-semibold text-[var(--color-text-primary)] mb-1 break-words">
+ <h1 className="font-serif text-[2rem] leading-tight font-semibold tracking-tight text-[var(--color-text-primary)] mb-2 break-words">
{page.title}
</h1>
@@ -630,8 +531,8 @@ function DocsViewerBody({
{/* Low-confidence flag */}
{page.confidence > 0 && page.confidence < 0.5 && (
- <div className="mb-4 flex items-start gap-1.5 rounded-md border border-amber-400/30 bg-amber-50/5 px-3 py-2">
- <span className="text-xs text-amber-300/90">
+ <div className="mb-4 flex items-start gap-1.5 rounded-md border border-[var(--color-warning)]/40 bg-[var(--color-warning)]/10 px-3 py-2">
+ <span className="text-xs text-[var(--color-text-primary)]">
This page was generated with low confidence — verify against the source before relying on it.
</span>
</div>
@@ -647,6 +548,12 @@ function DocsViewerBody({
<span className="font-mono">
{formatTokens(page.input_tokens)} in · {formatTokens(page.output_tokens)} out
</span>
+ {page.model_name && (
+ <span className="flex items-center gap-1 font-mono">
+ <Cpu className="h-3 w-3" />
+ {page.model_name}
+ </span>
+ )}
</div>
{/* Human notes */}
@@ -725,13 +632,13 @@ function DocsViewerBody({
{/* Metadata warnings */}
{Array.isArray(page.metadata?.hallucination_warnings) && (page.metadata.hallucination_warnings as string[]).length > 0 && (
- <div className="mt-4 rounded-lg border border-amber-400/30 bg-amber-50/5 px-4 py-3">
- <p className="text-xs font-medium text-amber-400 mb-1.5">
+ <div className="mt-4 rounded-lg border border-[var(--color-warning)]/40 bg-[var(--color-warning)]/10 px-4 py-3">
+ <p className="text-xs font-medium text-[var(--color-warning)] mb-1.5">
Possible inaccuracies detected
</p>
<ul className="space-y-0.5">
{(page.metadata.hallucination_warnings as string[]).map((w, i) => (
- <li key={i} className="text-xs text-amber-300/80 font-mono">
+ <li key={i} className="text-xs text-[var(--color-text-secondary)] font-mono">
{String(w)}
</li>
))}
@@ -742,81 +649,86 @@ function DocsViewerBody({
</div>
</div>
- {/* Right sidebar — on-page contents + graph intelligence */}
+ {/* Right sidebar — on-page contents first, then graph intelligence.
+ Every section renders only when it has data, so the panel stays calm. */}
{sidebarOpen && (
- <div className="hidden lg:flex flex-col border-l border-[var(--color-border-default)] bg-[var(--color-bg-surface)] shrink-0 w-[240px] overflow-auto">
- {hasTargetPath && (
- <div className="p-3 pb-0">
- <AtAGlance repoId={repoId} targetPath={page.target_path} />
- </div>
- )}
- <div className="p-3">
+ <div className="hidden lg:block border-l border-[var(--color-border-default)] bg-[var(--color-bg-surface)] shrink-0 w-[260px] overflow-auto">
+ <div className="space-y-6 p-4">
<TableOfContents content={page.content} />
- </div>
- {(relatedLinks.length > 0 || sources.length > 0 || hasTargetPath) && (
- <div className="space-y-4 p-3 pt-0">
- {sources.length > 0 && (
- <div>
- <div className="flex items-center gap-1.5 mb-2">
- <FileInput className="h-3 w-3 text-[var(--color-text-tertiary)]" />
- <span className="text-[11px] font-medium text-[var(--color-text-tertiary)] uppercase tracking-wider">
- Built from
- </span>
- </div>
- <ul className="space-y-1">
- {sources.map((s) => (
- <li key={s.path} className="text-[11px]">
- {s.pageId ? (
- <button
- onClick={() => goToPageId(s.pageId!)}
- className="truncate text-left font-mono text-[var(--color-text-secondary)] hover:text-[var(--color-accent-primary)] transition-colors w-full"
- title={`${s.path} (${s.kind})`}
- >
- {s.path}
- </button>
- ) : (
- <span
- className="block truncate font-mono text-[var(--color-text-tertiary)]"
- title={`${s.path} (${s.kind})`}
- >
- {s.path}
- </span>
- )}
- </li>
- ))}
- </ul>
+ {hasTargetPath && (
+ <AtAGlance repoId={repoId} targetPath={page.target_path} />
+ )}
+ {sources.length > 0 && (
+ <div>
+ <div className="flex items-center gap-1.5 mb-2">
+ <FileInput className="h-3 w-3 text-[var(--color-text-tertiary)]" />
+ <span className="text-[11px] font-medium text-[var(--color-text-tertiary)] uppercase tracking-wider">
+ Built from
+ </span>
</div>
- )}
- {relatedLinks.length > 0 && (
- <div>
- <p className="text-xs font-medium text-[var(--color-text-tertiary)] uppercase tracking-wider mb-2">
- Related ({relatedLinks.length})
- </p>
- <ul className="space-y-1.5">
- {relatedLinks.map((r) => (
- <li key={r.id} className="text-xs">
+ <ul className="space-y-1">
+ {sources.slice(0, 5).map((s) => (
+ <li key={s.path} className="text-[11px]">
+ {s.pageId ? (
<button
- onClick={() => goToPageId(r.id)}
- className="truncate text-left text-[var(--color-text-secondary)] hover:text-[var(--color-accent-primary)] transition-colors w-full"
- title={r.title}
+ onClick={() => goToPageId(s.pageId!)}
+ className="truncate text-left font-mono text-[var(--color-text-secondary)] hover:text-[var(--color-accent-primary)] transition-colors w-full"
+ title={`${s.path} (${s.kind})`}
>
- {r.title}
+ {s.path.split("/").pop()}
</button>
- </li>
- ))}
- </ul>
- </div>
- )}
- <BacklinksPanel
- backlinks={getBacklinks(page.metadata)}
- repoId={repoId}
- buildHref={(rid, pid) =>
- `/repos/${rid}/docs?page=${encodeURIComponent(pid)}`
- }
- />
- </div>
- )}
- {hasTargetPath && <DocsSidebar repoId={repoId} targetPath={page.target_path} />}
+ ) : (
+ <span
+ className="block truncate font-mono text-[var(--color-text-tertiary)]"
+ title={`${s.path} (${s.kind})`}
+ >
+ {s.path.split("/").pop()}
+ </span>
+ )}
+ </li>
+ ))}
+ </ul>
+ {sources.length > 5 && (
+ <p className="mt-1 text-[10px] text-[var(--color-text-tertiary)]">
+ + {sources.length - 5} more
+ </p>
+ )}
+ </div>
+ )}
+ {relatedLinks.length > 0 && (
+ <div>
+ <p className="text-[11px] font-medium text-[var(--color-text-tertiary)] uppercase tracking-wider mb-2">
+ Related
+ </p>
+ <ul className="space-y-1.5">
+ {relatedLinks.slice(0, 5).map((r) => (
+ <li key={r.id} className="text-xs">
+ <button
+ onClick={() => goToPageId(r.id)}
+ className="truncate text-left text-[var(--color-text-secondary)] hover:text-[var(--color-accent-primary)] transition-colors w-full"
+ title={r.title}
+ >
+ {r.title}
+ </button>
+ </li>
+ ))}
+ </ul>
+ {relatedLinks.length > 5 && (
+ <p className="mt-1 text-[10px] text-[var(--color-text-tertiary)]">
+ + {relatedLinks.length - 5} more
+ </p>
+ )}
+ </div>
+ )}
+ <BacklinksPanel
+ backlinks={getBacklinks(page.metadata)}
+ repoId={repoId}
+ buildHref={(rid, pid) =>
+ `/repos/${rid}/docs?page=${encodeURIComponent(pid)}`
+ }
+ />
+ {hasTargetPath && <DocsSidebar repoId={repoId} targetPath={page.target_path} />}
+ </div>
</div>
)}
</div>
diff --git a/packages/web/src/components/graph/graph-community-panel.tsx b/packages/web/src/components/graph/graph-community-panel.tsx
index 5a2318cf4..1db4e084a 100644
--- a/packages/web/src/components/graph/graph-community-panel.tsx
+++ b/packages/web/src/components/graph/graph-community-panel.tsx
@@ -8,12 +8,14 @@ interface GraphCommunityPanelWrapperProps {
repoId: string;
communityId: number;
onClose: () => void;
+ onExpandOnCanvas?: (() => void) | undefined;
}
export function GraphCommunityPanel({
repoId,
communityId,
onClose,
+ onExpandOnCanvas,
}: GraphCommunityPanelWrapperProps) {
const { community, isLoading } = useCommunityDetail(repoId, communityId);
@@ -23,6 +25,7 @@ export function GraphCommunityPanel({
community={community as CommunityDetail | null | undefined}
isLoading={isLoading}
onClose={onClose}
+ onExpandOnCanvas={onExpandOnCanvas}
/>
);
}
diff --git a/packages/web/src/components/graph/graph-flow.tsx b/packages/web/src/components/graph/graph-flow.tsx
index be60e9dfe..c0713cffd 100644
--- a/packages/web/src/components/graph/graph-flow.tsx
+++ b/packages/web/src/components/graph/graph-flow.tsx
@@ -9,11 +9,14 @@ import {
useModuleGraph,
useGraph,
useArchitectureGraph,
+ useArchitectureCommunityGraph,
useDeadCodeGraph,
useHotFilesGraph,
useCommunities,
+ useCommunitySlices,
useExecutionFlows,
} from "@/lib/hooks/use-graph";
+import { useRepo } from "@/lib/hooks/use-repo";
import { PathFinderPanel } from "./path-finder-panel";
import { GraphCommunityPanel } from "./graph-community-panel";
import type {
@@ -21,12 +24,15 @@ import type {
ModuleGraph,
ExecutionFlows,
CommunitySummaryItem,
+ ArchitectureGraph,
+ CommunitySlice,
} from "@repowise-dev/types/graph";
type ViewMode = "module" | "full" | "architecture" | "dead" | "hotfiles" | "unified";
export interface GraphFlowProps {
repoId: string;
+ repoName?: string;
initialViewMode?: ViewMode;
initialSelectedNode?: string | null;
onNodeClick?: GraphFlowShellProps["onNodeClick"];
@@ -35,19 +41,29 @@ export interface GraphFlowProps {
* Page uses this to dismiss the doc panel so the right rail stays
* to a single surface. */
onCommunityPanelOpen?: (communityId: number) => void;
+ /** Fired whenever the live scope (viewMode) changes. The page uses this to
+ * track the current scope so it can conditionally fetch the capped full
+ * graph (and gate the truncation banner) only for scopes that render it. */
+ onViewModeChange?: (mode: ViewMode) => void;
}
export function GraphFlow({
repoId,
+ repoName,
initialViewMode,
initialSelectedNode,
onNodeClick,
onNodeViewDocs,
onCommunityPanelOpen,
+ onViewModeChange,
}: GraphFlowProps) {
- const [viewMode, setViewMode] = useState<ViewMode>(initialViewMode ?? "module");
+ // Constellation (Knowledge Graph) is the default scope.
+ const [viewMode, setViewMode] = useState<ViewMode>(initialViewMode ?? "architecture");
const [modulePath, setModulePath] = useState<string[]>([]);
const [hasExpandedModules, setHasExpandedModules] = useState(false);
+ // Currently-expanded constellation hubs (community ids). Drives the slice
+ // fetch; the shell owns the actual expand/collapse interaction state.
+ const [expandedHubs, setExpandedHubs] = useState<number[]>([]);
const isDrilledDown = modulePath.length > 0;
const isModuleView = viewMode === "module";
@@ -58,20 +74,35 @@ export function GraphFlow({
const { graph: fullGraph, isLoading: fullLoading } = useGraph(
needsFullGraph ? repoId : null,
);
- const { graph: archGraph, isLoading: archLoading } = useArchitectureGraph(
- viewMode === "architecture" ? repoId : null,
- );
+ const { graph: archGraph, isLoading: archLoading } = useArchitectureGraph(null);
+ // Constellation community super-graph — only fetched for the radial scope.
+ const { graph: constellationGraph, isLoading: constellationLoading } =
+ useArchitectureCommunityGraph(viewMode === "architecture" ? repoId : null);
const { graph: deadGraph, isLoading: deadLoading } = useDeadCodeGraph(
viewMode === "dead" ? repoId : null,
);
const { graph: hotGraph, isLoading: hotLoading } = useHotFilesGraph(
viewMode === "hotfiles" ? repoId : null,
);
+ // Member slices for expanded hubs — only fetched in the constellation scope
+ // and only while at least one hub is open (conditional SWR inside the hook).
+ const { slices: constellationSlices } = useCommunitySlices(
+ viewMode === "architecture" ? repoId : null,
+ expandedHubs,
+ );
+ const { repo } = useRepo(repoId);
+ const resolvedRepoName = repoName ?? repo?.name;
const { communities } = useCommunities(repoId);
- const { flows: executionFlowsData } = useExecutionFlows(repoId, {
- top_n: 10,
- max_depth: 6,
- });
+ // Execution flows only highlight a file-level trace, so defer the fetch until
+ // a full/file graph is actually needed (keeps the modules mount to
+ // /communities + /modules only).
+ const { flows: executionFlowsData } = useExecutionFlows(
+ needsFullGraph ? repoId : null,
+ {
+ top_n: 10,
+ max_depth: 6,
+ },
+ );
return (
<GraphFlowShell
@@ -81,6 +112,11 @@ export function GraphFlow({
isLoadingFullGraph={fullLoading}
architectureGraph={archGraph as GraphExport | undefined}
isLoadingArchitectureGraph={archLoading}
+ constellationGraph={constellationGraph as ArchitectureGraph | undefined}
+ isLoadingConstellationGraph={constellationLoading}
+ constellationSlices={constellationSlices as Map<number, CommunitySlice> | undefined}
+ onExpandedHubsChange={setExpandedHubs}
+ {...(resolvedRepoName ? { repoName: resolvedRepoName } : {})}
deadCodeGraph={deadGraph as GraphExport | undefined}
isLoadingDeadCodeGraph={deadLoading}
hotFilesGraph={hotGraph as GraphExport | undefined}
@@ -89,7 +125,10 @@ export function GraphFlow({
executionFlows={executionFlowsData as ExecutionFlows | undefined}
initialViewMode={initialViewMode}
initialSelectedNode={initialSelectedNode}
- onViewModeChange={setViewMode}
+ onViewModeChange={(mode) => {
+ setViewMode(mode);
+ onViewModeChange?.(mode);
+ }}
onModulePathChange={setModulePath}
onExpandedModulesChange={(expanded) => setHasExpandedModules(expanded.size > 0)}
onNodeClick={onNodeClick}
@@ -110,6 +149,7 @@ export function GraphFlow({
repoId={repoId}
communityId={props.communityId}
onClose={props.onClose}
+ onExpandOnCanvas={props.onExpandOnCanvas}
/>
)}
/>
diff --git a/packages/web/src/components/layout/brand-logo.tsx b/packages/web/src/components/layout/brand-logo.tsx
new file mode 100644
index 000000000..1f8cd6bee
--- /dev/null
+++ b/packages/web/src/components/layout/brand-logo.tsx
@@ -0,0 +1,40 @@
+import Image from "next/image";
+import { cn } from "@repowise-dev/ui/lib/cn";
+
+/**
+ * Theme-aware brand mark. The canonical logo has light strokes (drawn for
+ * dark surfaces); light mode swaps in the plum-stroke variant so the owl
+ * stays visible on warm paper. Both render so the theme flip is instant —
+ * visibility is CSS-only via the `.dark` class.
+ */
+export function BrandLogo({
+ size = 28,
+ className,
+}: {
+ size?: number;
+ className?: string;
+}) {
+ const shared = cn(
+ "shrink-0 drop-shadow-[0_0_8px_rgba(245,149,32,0.3)]",
+ className,
+ );
+ return (
+ <>
+ <Image
+ src="/repowise-logo-light.png"
+ alt="repowise"
+ width={size}
+ height={size}
+ className={cn(shared, "dark:hidden")}
+ />
+ <Image
+ src="/repowise-logo.png"
+ alt=""
+ aria-hidden
+ width={size}
+ height={size}
+ className={cn(shared, "hidden dark:block")}
+ />
+ </>
+ );
+}
diff --git a/packages/web/src/components/layout/mobile-nav.tsx b/packages/web/src/components/layout/mobile-nav.tsx
index e9e307650..323185981 100644
--- a/packages/web/src/components/layout/mobile-nav.tsx
+++ b/packages/web/src/components/layout/mobile-nav.tsx
@@ -3,7 +3,7 @@
import * as React from "react";
import Link from "next/link";
import { usePathname } from "next/navigation";
-import Image from "next/image";
+import { BrandLogo } from "./brand-logo";
import {
Menu,
Activity,
@@ -118,13 +118,7 @@ export function MobileNav({ repos = [], workspace }: MobileNavProps) {
<Menu className="h-5 w-5" />
</Button>
<div className="flex items-center gap-2 min-w-0 flex-1">
- <Image
- src="/repowise-logo.png"
- alt="repowise"
- width={24}
- height={24}
- className="shrink-0 drop-shadow-[0_0_8px_rgba(245,149,32,0.3)]"
- />
+ <BrandLogo size={24} />
<span className="text-base font-semibold text-[var(--color-text-primary)] tracking-tight truncate">
repowise
</span>
@@ -144,13 +138,7 @@ export function MobileNav({ repos = [], workspace }: MobileNavProps) {
<Sheet open={open} onOpenChange={setOpen}>
<SheetContent side="left" className="w-72 p-0">
<SheetHeader className="border-b border-[var(--color-border-default)] h-14 flex-row items-center gap-3 py-0 px-4">
- <Image
- src="/repowise-logo.png"
- alt="repowise"
- width={28}
- height={28}
- className="shrink-0 drop-shadow-[0_0_8px_rgba(245,149,32,0.3)]"
- />
+ <BrandLogo size={28} />
<SheetTitle className="text-base">repowise</SheetTitle>
</SheetHeader>
diff --git a/packages/web/src/components/layout/sidebar.tsx b/packages/web/src/components/layout/sidebar.tsx
index 586306bc6..d1e8bad57 100644
--- a/packages/web/src/components/layout/sidebar.tsx
+++ b/packages/web/src/components/layout/sidebar.tsx
@@ -3,7 +3,7 @@
import * as React from "react";
import Link from "next/link";
import { usePathname } from "next/navigation";
-import Image from "next/image";
+import { BrandLogo } from "./brand-logo";
import {
LayoutDashboard,
Activity,
@@ -31,6 +31,7 @@ import { cn } from "@/lib/utils/cn";
import { ScrollArea } from "@repowise-dev/ui/ui/scroll-area";
import { Separator } from "@repowise-dev/ui/ui/separator";
import { Tooltip, TooltipContent, TooltipTrigger } from "@repowise-dev/ui/ui/tooltip";
+import { ThemeToggle } from "@repowise-dev/ui/shared/theme-toggle";
import { AddRepoDialog } from "@/components/repos/add-repo-dialog";
import type { RepoResponse, WorkspaceResponse } from "@/lib/api/types";
@@ -98,7 +99,25 @@ export function Sidebar({ repos = [], activeRepoId, workspace }: SidebarProps) {
});
}
}, [derivedActiveRepoId]);
- const [collapsed, setCollapsed] = React.useState(false);
+ // Docs is a reading surface — auto-collapse the sidebar on entering it so
+ // the page gets the width, and restore the previous state on leaving.
+ // Manual toggles always win while the route type is unchanged.
+ const isDocsRoute = /^\/repos\/[^/]+\/docs(\/|$)/.test(pathname ?? "");
+ const [collapsed, setCollapsed] = React.useState(isDocsRoute);
+ const preDocsCollapsed = React.useRef(false);
+ const wasDocsRoute = React.useRef(isDocsRoute);
+ React.useEffect(() => {
+ if (isDocsRoute === wasDocsRoute.current) return;
+ wasDocsRoute.current = isDocsRoute;
+ if (isDocsRoute) {
+ setCollapsed((c) => {
+ preDocsCollapsed.current = c;
+ return true;
+ });
+ } else {
+ setCollapsed(preDocsCollapsed.current);
+ }
+ }, [isDocsRoute]);
const toggleRepo = (id: string) => {
setExpandedRepos((prev) => {
@@ -118,15 +137,15 @@ export function Sidebar({ repos = [], activeRepoId, workspace }: SidebarProps) {
isIconOnly ? "w-[56px]" : "w-[260px]",
)}
>
- {/* Logo */}
- <div className="flex h-14 items-center gap-3 px-4">
- <Image
- src="/repowise-logo.png"
- alt="repowise"
- width={28}
- height={28}
- className="shrink-0 drop-shadow-[0_0_8px_rgba(245,149,32,0.3)]"
- />
+ {/* Logo. Collapsed (56px) can't fit logo + toggle on one row — the
+ button used to spill out over the breadcrumb — so stack them. */}
+ <div
+ className={cn(
+ "flex items-center gap-3",
+ isIconOnly ? "flex-col gap-1.5 px-0 pt-3 pb-1" : "h-14 px-4",
+ )}
+ >
+ <BrandLogo size={28} />
{!isIconOnly && (
<span className="text-base font-semibold text-[var(--color-text-primary)] tracking-tight flex-1 truncate">
repowise
@@ -134,7 +153,10 @@ export function Sidebar({ repos = [], activeRepoId, workspace }: SidebarProps) {
)}
<button
onClick={() => setCollapsed((c) => !c)}
- className="ml-auto shrink-0 rounded-md p-2.5 text-[var(--color-text-tertiary)] hover:bg-[var(--color-bg-elevated)] hover:text-[var(--color-text-secondary)] transition-colors"
+ className={cn(
+ "shrink-0 rounded-md p-2.5 text-[var(--color-text-tertiary)] hover:bg-[var(--color-bg-elevated)] hover:text-[var(--color-text-secondary)] transition-colors",
+ !isIconOnly && "ml-auto",
+ )}
aria-label={isIconOnly ? "Expand sidebar" : "Collapse sidebar"}
aria-expanded={!isIconOnly}
aria-controls="sidebar-nav"
@@ -332,7 +354,8 @@ export function Sidebar({ repos = [], activeRepoId, workspace }: SidebarProps) {
{/* Footer */}
{!isIconOnly && (
- <div className="border-t border-[var(--color-border-default)] px-4 py-3">
+ <div className="flex flex-col gap-3 border-t border-[var(--color-border-default)] px-4 py-3">
+ <ThemeToggle className="w-full justify-between" />
<p className="text-xs text-[var(--color-text-tertiary)]">
repowise v0.16.0
</p>
diff --git a/packages/web/src/components/layout/theme-provider.tsx b/packages/web/src/components/layout/theme-provider.tsx
new file mode 100644
index 000000000..49c3bc06f
--- /dev/null
+++ b/packages/web/src/components/layout/theme-provider.tsx
@@ -0,0 +1,33 @@
+"use client";
+
+/**
+ * ThemeProvider — wraps next-themes for the product dashboard.
+ *
+ * `attribute="class"` writes the resolved theme onto <html> as `class="dark"`
+ * / `class="light"`, which the theme token contract keys off
+ * (`:root` = light, `.dark` = dark overrides in @repowise-dev/ui globals).
+ *
+ * `defaultTheme="light"` — fresh visitors with no stored preference land in
+ * Light; Dark is opt-in via the shared ThemeToggle and persists across reloads
+ * (next-themes writes the choice to the `theme` localStorage key). Explicit
+ * two-state — no "System" option (product decision; the toggle migrates stale
+ * persisted "system" values). `disableTransitionOnChange` prevents a
+ * color-transition smear when the user flips themes.
+ */
+
+import { ThemeProvider as NextThemesProvider } from "next-themes";
+import type { ReactNode } from "react";
+
+export function ThemeProvider({ children }: { children: ReactNode }) {
+ return (
+ <NextThemesProvider
+ attribute="class"
+ defaultTheme="light"
+ enableSystem={false}
+ themes={["light", "dark"]}
+ disableTransitionOnChange
+ >
+ {children}
+ </NextThemesProvider>
+ );
+}
diff --git a/packages/web/src/components/layout/themed-toaster.tsx b/packages/web/src/components/layout/themed-toaster.tsx
new file mode 100644
index 000000000..b74f741b5
--- /dev/null
+++ b/packages/web/src/components/layout/themed-toaster.tsx
@@ -0,0 +1,30 @@
+"use client";
+
+/**
+ * ThemedToaster — Sonner toaster that follows the active next-themes theme.
+ *
+ * The root layout is a server component, so the Toaster's `theme` prop can't
+ * read `useTheme` there. This thin client wrapper bridges them: it passes the
+ * resolved theme (light/dark, falling back to system) so toasts match the
+ * themed surfaces in either mode.
+ */
+
+import { useTheme } from "next-themes";
+import { Toaster } from "sonner";
+
+export function ThemedToaster() {
+ const { resolvedTheme } = useTheme();
+ return (
+ <Toaster
+ theme={resolvedTheme === "light" ? "light" : "dark"}
+ position="bottom-right"
+ toastOptions={{
+ style: {
+ background: "var(--color-bg-elevated)",
+ border: "1px solid var(--color-border-default)",
+ color: "var(--color-text-primary)",
+ },
+ }}
+ />
+ );
+}
diff --git a/packages/web/src/components/shared/owl-loader.tsx b/packages/web/src/components/shared/owl-loader.tsx
new file mode 100644
index 000000000..ba7186c8a
--- /dev/null
+++ b/packages/web/src/components/shared/owl-loader.tsx
@@ -0,0 +1,66 @@
+"use client";
+
+import { useState } from "react";
+import Image from "next/image";
+import { DotLottieReact } from "@lottiefiles/dotlottie-react";
+import { cn } from "@repowise-dev/ui/lib/cn";
+
+/**
+ * Brand loading animation — the owl Lottie, centered. Falls back to a
+ * pulsing static brand mark if the animation asset fails to load, so a
+ * missing /owl-loading.lottie never breaks a loading state.
+ */
+export function OwlLoader({
+ size = 160,
+ label = "Loading…",
+ className,
+}: {
+ size?: number;
+ label?: string;
+ className?: string;
+}) {
+ const [failed, setFailed] = useState(false);
+
+ return (
+ <div
+ role="status"
+ aria-label={label}
+ className={cn(
+ "flex min-h-[50vh] flex-col items-center justify-center gap-3",
+ className,
+ )}
+ >
+ {failed ? (
+ <span className="motion-safe:animate-pulse">
+ <Image
+ src="/repowise-logo-light.png"
+ alt=""
+ aria-hidden
+ width={size * 0.6}
+ height={size * 0.6}
+ className="dark:hidden"
+ />
+ <Image
+ src="/repowise-logo.png"
+ alt=""
+ aria-hidden
+ width={size * 0.6}
+ height={size * 0.6}
+ className="hidden dark:block"
+ />
+ </span>
+ ) : (
+ <DotLottieReact
+ src="/owl-loading.json"
+ loop
+ autoplay
+ style={{ width: size, height: size }}
+ dotLottieRefCallback={(dotLottie) => {
+ dotLottie?.addEventListener("loadError", () => setFailed(true));
+ }}
+ />
+ )}
+ <span className="text-sm text-[var(--color-text-tertiary)]">{label}</span>
+ </div>
+ );
+}
diff --git a/packages/web/src/components/wiki/wiki-renderer.tsx b/packages/web/src/components/wiki/wiki-renderer.tsx
index 138e5e2f4..bdfe20947 100644
--- a/packages/web/src/components/wiki/wiki-renderer.tsx
+++ b/packages/web/src/components/wiki/wiki-renderer.tsx
@@ -30,9 +30,12 @@ export async function WikiRenderer({ content, wikiLinks, repoId }: Props) {
const preprocessed = await preprocessWikiCodeBlocks(content, {
highlight: async (code, lang) =>
+ // Dual themes: tokens carry --shiki-light/--shiki-dark CSS vars and
+ // globals.css picks one per theme (see ".shiki span" rules there).
codeToHtml(code, {
lang: lang as Parameters<typeof codeToHtml>[1]["lang"],
- theme: "vesper",
+ themes: { light: "github-light", dark: "vesper" },
+ defaultColor: false,
}),
resolveWikiLink,
buildWikiLinkUrl,
diff --git a/packages/web/src/lib/api/graph.ts b/packages/web/src/lib/api/graph.ts
index 707f49fd2..8beac3618 100644
--- a/packages/web/src/lib/api/graph.ts
+++ b/packages/web/src/lib/api/graph.ts
@@ -3,6 +3,7 @@ import type {
ArchitectureGraphResponse,
CallersCalleesResponse,
CommunityDetailResponse,
+ CommunitySliceResponse,
CommunitySummaryItem,
DeadCodeGraphResponse,
EgoGraphResponse,
@@ -15,8 +16,14 @@ import type {
NodeSearchResult,
} from "./types";
-export async function getGraph(repoId: string): Promise<GraphExportResponse> {
- return apiGet<GraphExportResponse>(`/api/graph/${repoId}`);
+export async function getGraph(
+ repoId: string,
+ limit?: number,
+): Promise<GraphExportResponse> {
+ return apiGet<GraphExportResponse>(
+ `/api/graph/${repoId}`,
+ limit != null ? { limit } : undefined,
+ );
}
export async function getGraphPath(
@@ -66,6 +73,18 @@ export async function getArchitectureCommunityGraph(
});
}
+/**
+ * Constellation (radial Knowledge Graph) data source — the community
+ * super-graph. Thin alias over {@link getArchitectureCommunityGraph} so the
+ * G3 wiring reads cleanly.
+ */
+export async function getArchitecture(
+ repoId: string,
+ minMembers = 2,
+): Promise<ArchitectureGraphResponse> {
+ return getArchitectureCommunityGraph(repoId, minMembers);
+}
+
export async function getDeadCodeGraph(repoId: string): Promise<DeadCodeGraphResponse> {
return apiGet<DeadCodeGraphResponse>(`/api/graph/${repoId}/dead-nodes`);
}
@@ -97,6 +116,20 @@ export async function getCommunityDetail(
);
}
+/**
+ * Constellation blossom slice: a single community's member file nodes, the
+ * edges among them, and one-hop boundary stubs (neighbor nodes flagged
+ * `is_boundary`) so cross-cluster edges render. Fetched on hub expand.
+ */
+export async function getCommunitySlice(
+ repoId: string,
+ communityId: number,
+): Promise<CommunitySliceResponse> {
+ return apiGet<CommunitySliceResponse>(
+ `/api/graph/${repoId}/communities/${communityId}/slice`,
+ );
+}
+
export async function getGraphMetrics(
repoId: string,
nodeId: string,
diff --git a/packages/web/src/lib/api/types/graph.ts b/packages/web/src/lib/api/types/graph.ts
index 545b04ba8..ab31aab51 100644
--- a/packages/web/src/lib/api/types/graph.ts
+++ b/packages/web/src/lib/api/types/graph.ts
@@ -46,6 +46,19 @@ export interface GraphExportResponse extends GraphLike<GraphNodeResponse> {
total_node_count?: number;
}
+// Community slice (Phase G4 — constellation blossom)
+export interface CommunitySliceNodeResponse extends GraphNodeResponse {
+ /** True for one-hop neighbor stubs outside the community. */
+ is_boundary?: boolean;
+}
+
+export interface CommunitySliceResponse
+ extends GraphLike<CommunitySliceNodeResponse> {
+ community_id: number;
+ member_count: number;
+ truncated?: boolean;
+}
+
// Architecture super-node graph (Phase A)
export interface ArchitectureNodeResponse {
community_id: number;
diff --git a/packages/web/src/lib/hooks/use-graph.ts b/packages/web/src/lib/hooks/use-graph.ts
index a0d30b2c5..e13cea10d 100644
--- a/packages/web/src/lib/hooks/use-graph.ts
+++ b/packages/web/src/lib/hooks/use-graph.ts
@@ -2,10 +2,12 @@
import useSWR from "swr";
import {
+ getArchitecture,
getArchitectureGraph,
getCallersCallees,
getCommunities,
getCommunityDetail,
+ getCommunitySlice,
getDeadCodeGraph,
getEgoGraph,
getExecutionFlows,
@@ -15,8 +17,10 @@ import {
getModuleGraph,
} from "@/lib/api/graph";
import type {
+ ArchitectureGraphResponse,
CallersCalleesResponse,
CommunityDetailResponse,
+ CommunitySliceResponse,
CommunitySummaryItem,
DeadCodeGraphResponse,
EgoGraphResponse,
@@ -29,10 +33,10 @@ import type {
const SWR_OPTS = { revalidateOnFocus: false, revalidateOnReconnect: false };
-export function useGraph(repoId: string | null) {
+export function useGraph(repoId: string | null, limit?: number) {
const { data, error, isLoading } = useSWR<GraphExportResponse>(
- repoId ? `graph:${repoId}` : null,
- () => getGraph(repoId!),
+ repoId ? `graph:${repoId}:${limit ?? "default"}` : null,
+ () => getGraph(repoId!, limit),
SWR_OPTS,
);
return { graph: data, error, isLoading };
@@ -56,6 +60,20 @@ export function useEgoGraph(repoId: string | null, nodeId: string | null, hops =
return { graph: data, error, isLoading };
}
+/**
+ * Community super-graph for the constellation (radial Knowledge Graph) scope.
+ * Conditional SWR: only fetched when a repoId is given (the wrapper gates it
+ * to the constellation scope).
+ */
+export function useArchitectureCommunityGraph(repoId: string | null) {
+ const { data, error, isLoading } = useSWR<ArchitectureGraphResponse>(
+ repoId ? `arch-community:${repoId}` : null,
+ () => getArchitecture(repoId!),
+ SWR_OPTS,
+ );
+ return { graph: data, error, isLoading };
+}
+
export function useArchitectureGraph(repoId: string | null) {
const { data, error, isLoading } = useSWR<GraphExportResponse>(
repoId ? `arch-graph:${repoId}` : null,
@@ -105,6 +123,35 @@ export function useCommunityDetail(repoId: string | null, communityId: number |
return { community: data, error, isLoading };
}
+/**
+ * Constellation blossom: fetch the slices for the currently expanded hubs.
+ * Conditional — the key is null (no request) until at least one hub is
+ * expanded. We fetch all expanded ids in one SWR keyed on the sorted id list
+ * (deterministic key, no duplicate requests on re-render); each id resolves to
+ * its own slice via `getCommunitySlice`. Returns a map keyed by community_id.
+ */
+export function useCommunitySlices(
+ repoId: string | null,
+ expandedIds: readonly number[],
+) {
+ const sorted = [...expandedIds].sort((a, b) => a - b);
+ const key =
+ repoId && sorted.length > 0
+ ? `community-slices:${repoId}:${sorted.join(",")}`
+ : null;
+ const { data, error, isLoading } = useSWR<Map<number, CommunitySliceResponse>>(
+ key,
+ async () => {
+ const slices = await Promise.all(
+ sorted.map((id) => getCommunitySlice(repoId!, id)),
+ );
+ return new Map(sorted.map((id, i) => [id, slices[i]!]));
+ },
+ SWR_OPTS,
+ );
+ return { slices: data, error, isLoading };
+}
+
export function useGraphMetrics(repoId: string | null, nodeId: string | null) {
const { data, error, isLoading } = useSWR<GraphMetricsResponse>(
repoId && nodeId ? `metrics:${repoId}:${nodeId}` : null,