feat(donate,quant,tutorials,citations): implement /donate/, Option 3 stadium-pill navbar, 5-episode /quant/ canvas tour, and passage-encoded deep citations (v2.0.19)
This commit is contained in:
1 parent
1182ba0cf2
commit
2114de35bb
17 files changed
+3270
-13
No files matched your search
@@ -0,0 +1,50 @@
|
||||
# Operator's Manual: Quantitative Finance & Memetic Gematria Time-Series Workbench (`/quant/`) (`v2.0.19`)
|
||||
|
||||
- **Document ID:** `OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH` (`v2.0.19`)
|
||||
- **Web Route:** `https://hyperstitionstud.io/quant/` (`/quant/index.html`)
|
||||
- **Offline `file://` Path:** `/workspace/hyperstitionstudio-core/site/quant/index.html`
|
||||
- **Schema Contract:** `urn:io:hyperstitionstud:schema:v1:quant-timeseries` (`/schemas/v1/quant-timeseries.schema.json`)
|
||||
- **Interactive Guided Tour:** Built-in 5-Episode, 25-Scene HTML5 Canvas Choreographer (`/quant/quant-tutorials.js`, `< 45 KB` Git-tracked, zero `.mp4` bloat).
|
||||
|
||||
---
|
||||
|
||||
## 1. Strict Periodicity Qualification Gate
|
||||
|
||||
Only data sources that emit discrete, timestamp-indexed periodic observations ($\Delta t \in \{\text{1d US-Closing-Bell at 21:30 UTC}, \text{24h UTC News-Wire Rollover at 00:00 UTC}\}$) enter `/quant/`:
|
||||
|
||||
- **Included (`0` Non-Periodic Records):**
|
||||
1. `30` daily `21:30 UTC` (`16:30 EST`) US closing-bell bars across the `24` canonical `S1–S6` technocapital instruments (`NVDA`, `MSFT`, `GOOGL`, `META`, `PLTR`, `ARM`, `COIN`, `MSTR`, `GS`, `JPM`, `TSM`, `ASML`, `LMT`, `RTX`, `TSLA`, `TMUS`, `EQIX`, `CEG`, `LLY`, `UNH`, `BLK`, `BRK-B`, `BTC-USD`, `ANTHR-PVT`).
|
||||
2. `21` dated `00:00 UTC` news-wire dossiers (`25..71-dossier-news-YYYY-MM-DD.md`).
|
||||
3. Daily objective thermodynamic regime state vectors (`M1_ENTROPIC_STAGNATION`, `M2_FLASH_CRASH_TEMPLEX_SURGE`, `M3_LEVIATHAN_TRILLION_CAP_CONCENTRATION`).
|
||||
4. Dated `quantitative-economic-anchors.json` step revisions (`$83 -> $89` on `2026-11-26` for `ANTHR-PVT`).
|
||||
- **Excluded Static Corpora:** Static lexicons (`01-ingglish-aq-lexicon.md`), undated dossiers (`10–24`, `26–45`, `65–69`), the 22-volume PDF Encyclopedia, stakeholder proposals, lectures, and `/calc/db.json`.
|
||||
|
||||
---
|
||||
|
||||
## 2. Visual Figure & Numerical Readout Guide (Panels 1–4)
|
||||
|
||||
| Panel & Figure | Visual Encoding | Mathematical & Gematrial Definition | Passage-Encoded Deep Link |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **Panel 1 (Top Pane): Solid Cyan Curve** | `#22d3ee` polyline across `30` UTC days | Plots `Spoken AQ (Gen 1)`, `Close Price (USD)`, `Move (BPS)`, or `Digit AQ` for the active ticker. | `/encyclopedia/01-cipher-and-orthographic-mechanics/a-to-g-alphanumeric-qabbala-to-gen-2-evolution.pdf#page=1&search=Alphanumeric%20Qabbala` |
|
||||
| **Panel 1 (Top Pane): Dashed Crimson Line (`entity_ing=N`)** | Horizontal `#ff4d4d` dashed threshold | Marks the ticker's intrinsic phonemic identity coordinate $\text{AQ}_{\text{Ing}}(\text{Entity}_i)$ (e.g. `envideea = 137`, `asml = 81`, `anthropik = 193`). | `/encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s3-a-to-z-asml-to-wor-masheen.pdf#page=5&search=envideea` |
|
||||
| **Panel 1 (Top Pane): Gold Beacon Circles (`r = 5.2px`)** | Glowing `#f5c630` vertex circles | **`Scope 1` Intra-Instrument Self-Lock or Repdigit Attractor:** $\lfloor P_{i,t}\rceil == \text{AQ}(\text{Entity}_i)$ (`NVDA $137`), $|\Delta\text{bps}_{i,t}| == \text{AQ}(\text{Entity}_i)$ (`ASML +81 bps`), or $\lfloor P_{i,t}\rceil \equiv 0 \pmod{111}$ (`LLY $777`). | `/encyclopedia/08-stakeholder-registers-idioms-and-pokedex-semiotics/a-to-h-ai-powered-race-to-hidden-chokepoint-screen.pdf#page=2&search=Room%20Filter` |
|
||||
| **Panel 1 (Top Pane): Cyan Beacon Circles (`r = 3.8px`)** | `#22d3ee` vertex circles | **`Scope 2` `S1–S6` Ring Migration:** Price, spoken AQ, or bps lands on one of the `30` canonical `S1–S6` signature coordinates (`71, 81, 91, 95, 115, 125, 128, 129, 133, 135, 136, 137, 153, 160, 163, 166, 183, 189, 191, 193, 197, 211, 215, 222, 237, 246, 256, 260, 292`). | `/encyclopedia/06-genealogical-vectors-and-flex-singularities/a-to-m-anchor-revision-to-multi-build-flex.pdf#page=2&search=Flex` |
|
||||
| **Panel 1 (Middle Pane): Violet vs. Emerald Bars** | Daily `333/666/777` wire equation counts | Violet (`#a78bfa`) = standard wire harvest day; Emerald (`#34d399`) = **`Scope 3` News-Wire Co-Presence ($C_{i,t} = 1$)** where ticker $i$ appeared in that UTC day's breaking wire dossier. | `/archive/71-dossier-news-2026-11-29.md#:~:text=Nvidia` |
|
||||
| **Panel 1 (Bottom Pane): `Vol20d` Regime Bars** | 20d relative volume ($V_{i,t}/\bar{V}_{20}$) | Gold (`< 0.45x`) = `M1_ENTROPIC_STAGNATION` (`137`); Crimson (`>= 2.5x` or `<= -5%`) = `M2_FLASH_CRASH_TEMPLEX_SURGE` (`193`); Sky-Blue = `M3_LEVIATHAN`. | `/encyclopedia/05-memetic-superclass-m1-to-m7/m1-a-to-m-anemia-to-monopoly.pdf#page=1&search=M1` |
|
||||
| **Panel 2: `24 × 30` Spatiotemporal Heatmap** | Interactive grid of `(Ticker, UTC Date)` cells | Gold cell = Scope 1 Self-Lock; Cyan cell = Scope 2 Ring Migration; Emerald outline = Scope 3 Wire Co-Presence; `↗` opens the ticker's TradingView Superchart (`EXCHANGE:SYMBOL`). | `https://www.tradingview.com/chart/?symbol=NASDAQ%3ANVDA` |
|
||||
| **Panel 3: Lens Projection, Citations & Wire Tape** | Cross-sectional date inspector + `LENS_REGISTRY` + Citation Drawer | Projects lens-neutral `struct_*` and `ts_*` keys through `fund_manager`, `neutral_math`, `corporate_board`, `tierzoo_ecology`, `fantasy_sabermetrics`, or `pokedex_scanner`, and provides passage-encoded links (`#page=N&search=...`, `#:~:text=...`, `/graph/index.html?select=aq:N`, `/api/v1/dossiers/N?highlight=...`). | `/graph/index.html?select=aq:137` |
|
||||
| **Panel 4: Lead-Lag Correlation Explorer $r(\tau)$** | 11-bar histogram across $\tau \in [-5, +5]$ days | Empirical Pearson correlation between daily wire velocity $M_t$ and unsigned ticker move $|\Delta\text{bps}_{i,t+\tau}|$; Gold bar marks optimal causal lag $\tau^* = \arg\max_\tau |r(\tau)|$. | `/api/v1/quant/timeseries?symbol=NVDA` |
|
||||
|
||||
---
|
||||
|
||||
## 3. Keyboard Shortcuts & Programmatic REST API v1 Endpoints
|
||||
|
||||
- **Keyboard Shortcuts on `/quant/`:**
|
||||
- `←` / `→`: Step backward or forward one UTC day (`2026-11-01 .. 2026-11-30`).
|
||||
- `T`: Launch the selected ticker's live TradingView Superchart (`https://www.tradingview.com/chart/?symbol=...`) in a new browser window (`noopener,noreferrer`).
|
||||
- **REST API v1 Endpoints:**
|
||||
- `GET /api/v1/quant/timeseries?symbol=NVDA&lens=fund_manager`
|
||||
- `GET /api/v1/quant/instruments/NVDA`
|
||||
- `GET /api/v1/zoology/pokedex/NVDA`
|
||||
- `GET /api/v1/dossiers/71?highlight=envideea`
|
||||
- `GET /api/v1/openapi.json`
|
||||
Binary file not shown.
+63
-1
@@ -44,7 +44,41 @@
|
||||
}
|
||||
h1 { font-size: 1.18rem; font-weight: 700; color: var(--text-main); }
|
||||
.subtitle { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.25rem; }
|
||||
.top-nav { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
|
||||
.top-nav { margin-left: auto; display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
|
||||
.nav-donate-sep { width: 1px; height: 20px; background: var(--border); margin: 0 0.2rem; display: inline-block; flex-shrink: 0; }
|
||||
.btn-donate-pill {
|
||||
height: 34px;
|
||||
border-radius: 999px;
|
||||
padding: 0.28rem 0.9rem 0.28rem 0.35rem;
|
||||
background: linear-gradient(180deg, #ffd86b 0%, #f59e0b 52%, #d97706 100%);
|
||||
color: #020617;
|
||||
border: 1px solid #f5c630;
|
||||
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 2px 8px rgba(245, 158, 11, 0.22);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
font-size: 0.74rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.05em;
|
||||
text-decoration: none;
|
||||
flex-shrink: 0;
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
|
||||
}
|
||||
.btn-donate-pill:hover { filter: brightness(1.06); transform: translateY(-1px); color: #020617; }
|
||||
.donate-pill-emblem {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: #0f172a;
|
||||
color: var(--rose);
|
||||
border: 1px solid rgba(245, 198, 48, 0.7);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.68rem;
|
||||
line-height: 1;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.btn, select {
|
||||
text-decoration: none;
|
||||
background: var(--bg-card);
|
||||
@@ -229,9 +263,34 @@
|
||||
<a class="btn" id="navGraph" href="/graph/index.html">Knowledge Graph (/graph/)</a>
|
||||
<a class="btn" id="navLearn" href="/learn/index.html">Learning Track (/learn/)</a>
|
||||
<a class="btn" id="navCalc" href="/calc/index.html">AQ Calculator (/calc/)</a>
|
||||
<a class="btn" id="navManual" href="/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf" target="_blank">Operator's Manual (PDF)</a>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" id="navDonate" href="/donate/index.html" title="Signal Patronage & Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- INTERACTIVE 5-EPISODE GUIDED CANVAS TUTORIAL PLAYER (Zero-MP4 Option B) -->
|
||||
<section class="panel" id="quantTutorialBar" aria-label="Interactive Tutorial Series Player">
|
||||
<div class="panel-header">
|
||||
<span class="panel-title">INTERACTIVE GUIDED CANVAS TOUR (5 Episodes × 5 Scenes = 25 Live Choreographed Walkthroughs • Zero-MP4)</span>
|
||||
<span class="panel-meta" id="tutStepBadge">Ep 01 • Scene 1/5</span>
|
||||
</div>
|
||||
<div class="pill-row" id="tutEpisodeTabs"></div>
|
||||
<div style="display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;">
|
||||
<button type="button" class="btn primary" id="tutPlayPauseBtn">▶ Play Guided Tour</button>
|
||||
<button type="button" class="btn" id="tutPrevBtn">⏮ Prev Scene</button>
|
||||
<input type="range" id="tutScrubber" min="0" max="4" value="0" style="flex:1;min-width:140px;accent-color:var(--gold);cursor:pointer;" aria-label="Scene timeline scrubber" />
|
||||
<button type="button" class="btn" id="tutNextBtn">Next Scene ⏭</button>
|
||||
<button type="button" class="btn" id="tutSpeechBtn" title="Toggle Web Speech synthesis narration">🔇 Voice: OFF</button>
|
||||
<button type="button" class="btn" id="tutClearSpotlightBtn" title="Clear canvas spotlight overlay">Clear Spotlight</button>
|
||||
</div>
|
||||
<div class="stat-box" style="border-left:3px solid var(--gold);">
|
||||
<div style="font-size:0.76rem;font-weight:700;color:var(--gold);margin-bottom:0.25rem;" id="tutKeyframeTitle"></div>
|
||||
<div style="font-size:0.75rem;color:var(--text-main);line-height:1.5;" id="tutSubtitleText"></div>
|
||||
<div class="pill-row" style="margin-top:0.45rem;" id="tutCitationPills"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="toolbar" aria-label="Workbench Controls">
|
||||
<div class="control-group">
|
||||
<span class="control-label">Guild Filter:</span>
|
||||
@@ -286,10 +345,12 @@
|
||||
</div>
|
||||
<div class="inspector-grid" id="dateMetricsGrid"></div>
|
||||
<div class="stat-box" id="lensProjectionCard"></div>
|
||||
<div class="stat-box" id="docReferencesCard" style="border-left:3px solid var(--cyan);"></div>
|
||||
<div>
|
||||
<div class="control-label" style="margin-bottom:0.35rem;" id="wireTapeHeader">Dated 00:00 GMT News-Wire Memetic Equations (333 / 666 / 777):</div>
|
||||
<div class="eq-tape" id="wireEqTape"></div>
|
||||
</div>
|
||||
<div class="stat-box" id="passagePreviewBox" style="display:none;border-left:3px solid var(--emerald);font-size:0.69rem;white-space:pre-wrap;"></div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -311,5 +372,6 @@
|
||||
</footer>
|
||||
</div>
|
||||
<script src="quant-app.js"></script>
|
||||
<script src="quant-tutorials.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
+118
-5
@@ -15,12 +15,18 @@
|
||||
const navGraph = document.getElementById("navGraph");
|
||||
const navLearn = document.getElementById("navLearn");
|
||||
const navCalc = document.getElementById("navCalc");
|
||||
const navManual = document.getElementById("navManual");
|
||||
const navDonate = document.getElementById("navDonate");
|
||||
if (navHome) navHome.href = "../index.html";
|
||||
if (navGraph) navGraph.href = "../../../encyclopedia-knowledge-graph/index.html";
|
||||
if (navLearn) navLearn.href = "../learn/index.html";
|
||||
if (navCalc) navCalc.href = "../../../haiperdohp-jemaytreeah/index.html";
|
||||
if (navManual) navManual.href = "./OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf";
|
||||
if (navDonate) navDonate.href = "../donate/index.html";
|
||||
}
|
||||
|
||||
let activeSpotlight = null;
|
||||
|
||||
const state = {
|
||||
guildFilter: "ALL",
|
||||
selectedSymbol: "NVDA",
|
||||
@@ -273,6 +279,36 @@
|
||||
for (let i = 0; i < N; i += 4) {
|
||||
ctx.fillText(DATA.dates_utc[i].slice(5), xAt(i) - 14, H - 4);
|
||||
}
|
||||
|
||||
// Optional Tutorial Spotlight Ring & Callout Banner on Canvas
|
||||
if (activeSpotlight && activeSpotlight.target === "canvas") {
|
||||
const spX = padL + (activeSpotlight.xRatio || 0.9) * plotW;
|
||||
const spY = (activeSpotlight.yRatio || 0.25) * H;
|
||||
ctx.save();
|
||||
ctx.strokeStyle = "#f5c630";
|
||||
ctx.lineWidth = 2.5;
|
||||
ctx.beginPath();
|
||||
ctx.arc(spX, spY, 18, 0, Math.PI * 2);
|
||||
ctx.stroke();
|
||||
ctx.strokeStyle = "rgba(251, 113, 133, 0.85)";
|
||||
ctx.lineWidth = 1.5;
|
||||
ctx.beginPath();
|
||||
ctx.arc(spX, spY, 25, 0, Math.PI * 2);
|
||||
ctx.stroke();
|
||||
|
||||
const lbl = activeSpotlight.label || "Spotlight";
|
||||
ctx.font = "bold 11px monospace";
|
||||
const tw = ctx.measureText(lbl).width + 16;
|
||||
const bx = Math.max(padL + 6, Math.min(W - tw - 12, spX - tw - 24));
|
||||
const by = Math.max(18, spY - 14);
|
||||
ctx.fillStyle = "rgba(2, 6, 23, 0.92)";
|
||||
ctx.fillRect(bx, by, tw, 24);
|
||||
ctx.strokeStyle = "#f5c630";
|
||||
ctx.strokeRect(bx, by, tw, 24);
|
||||
ctx.fillStyle = "#f5c630";
|
||||
ctx.fillText(lbl, bx + 8, by + 16);
|
||||
ctx.restore();
|
||||
}
|
||||
}
|
||||
|
||||
function renderHeatmap() {
|
||||
@@ -362,26 +398,83 @@
|
||||
rowsHtml;
|
||||
}
|
||||
|
||||
// Render Knowledge-Graph-Modeled Documentation & Cited Passages Card
|
||||
const docCard = document.getElementById("docReferencesCard");
|
||||
if (docCard && inst.doc_references) {
|
||||
const dr = inst.doc_references;
|
||||
const resolveUrl = (window.HyperstitionStudio.QuantTutorials && window.HyperstitionStudio.QuantTutorials.adaptHrefForFileProtocol) || function (u) { return u; };
|
||||
const encUrl = resolveUrl(dr.encyclopedia_deep_link);
|
||||
const kgUrl = resolveUrl(dr.knowledge_graph_deep_link);
|
||||
const dosUrl = resolveUrl(dr.exemplar_dossier_deep_link);
|
||||
const apiUrl = dr.rest_api_deep_link;
|
||||
docCard.innerHTML =
|
||||
"<div style='font-size:0.74rem;font-weight:700;color:var(--cyan);margin-bottom:0.3rem;'>Documentation & Passage-Encoded Deep Citations</div>" +
|
||||
"<div style='font-size:0.68rem;color:var(--text-muted);margin-bottom:0.4rem;'>" + (dr.verbatim_citation_passage || "") + "</div>" +
|
||||
"<div style='display:flex;flex-wrap:wrap;gap:0.35rem;'>" +
|
||||
"<a class='pill' style='text-decoration:none;color:var(--gold);border-color:var(--gold);' href='" + encUrl + "' target='_blank' rel='noopener noreferrer'>\uD83D\uDCC4 Encyclopedia PDF (#page & search) \u2197</a>" +
|
||||
"<a class='pill' style='text-decoration:none;color:var(--cyan);border-color:var(--cyan);' href='" + kgUrl + "' target='_blank' rel='noopener noreferrer'>\uD83D\uDD78\uFE0F Knowledge Graph (aq:" + inst.entity_ing_aq + ") \u2197</a>" +
|
||||
"<a class='pill' style='text-decoration:none;color:var(--emerald);border-color:var(--emerald);' href='" + dosUrl + "' target='_blank' rel='noopener noreferrer'>\uD83D\uDCDC Dossier Passage (#:~:text=) \u2197</a>" +
|
||||
"<button type='button' class='pill preview-api-btn' data-api='" + apiUrl + "' style='color:var(--violet);border-color:var(--violet);'>\uD83D\uDD0D Inline Passage Preview</button>" +
|
||||
"</div>";
|
||||
}
|
||||
|
||||
// Render Dated 00:00 GMT News-Wire Equation Tape
|
||||
const wireDay = DATA.daily_wire_series[state.selectedDateIdx];
|
||||
const tapeEl = document.getElementById("wireEqTape");
|
||||
const hdrEl = document.getElementById("wireTapeHeader");
|
||||
const resolveUrl = (window.HyperstitionStudio.QuantTutorials && window.HyperstitionStudio.QuantTutorials.adaptHrefForFileProtocol) || function (u) { return u; };
|
||||
if (wireDay && wireDay.dossier_file) {
|
||||
hdrEl.innerHTML =
|
||||
"Dated 00:00 GMT Wire Dossier (<a href='" + wireDay.archive_route + "' style='color:var(--cyan);'>" +
|
||||
"Dated 00:00 GMT Wire Dossier (<a href='" + resolveUrl(wireDay.archive_route) + "' target='_blank' style='color:var(--cyan);'>" +
|
||||
wireDay.dossier_file + "</a> • " + wireDay.equation_counts.total + " Verified Equations):";
|
||||
tapeEl.innerHTML = (wireDay.sample_equations || [])
|
||||
.map(
|
||||
(eq) =>
|
||||
"<div class='eq-item'><div><strong style='color:var(--gold);'>[" + eq.target + "]</strong> " +
|
||||
"<code>" + eq.ing + "</code> (\"" + eq.eng + "\")</div>" +
|
||||
"<div style='color:var(--text-muted);font-size:0.65rem;'>" + eq.breakdown + " = " + eq.target + "</div></div>"
|
||||
(eq) => {
|
||||
const dLink = resolveUrl(eq.dossier_deep_link || wireDay.archive_route);
|
||||
const gLink = resolveUrl((eq.graph_hub_links && eq.graph_hub_links[0]) || ("/graph/index.html?select=aq:" + eq.target));
|
||||
const aLink = eq.api_highlight_link || ("/api/v1/dossiers/" + wireDay.dossier_number + "?highlight=" + encodeURIComponent(eq.ing.slice(0, 20)));
|
||||
return "<div class='eq-item'><div><strong style='color:var(--gold);'>[" + eq.target + "]</strong> " +
|
||||
"<code>" + eq.ing + "</code> (\"" + eq.eng + "\")</div>" +
|
||||
"<div style='color:var(--text-muted);font-size:0.65rem;margin-bottom:0.2rem;'>" + eq.breakdown + " = " + eq.target + "</div>" +
|
||||
"<div style='display:flex;flex-wrap:wrap;gap:0.3rem;'>" +
|
||||
"<a class='pill' style='text-decoration:none;font-size:0.62rem;padding:0.12rem 0.4rem;color:var(--emerald);' href='" + dLink + "' target='_blank'>Passage #:~:text= \u2197</a>" +
|
||||
"<a class='pill' style='text-decoration:none;font-size:0.62rem;padding:0.12rem 0.4rem;color:var(--cyan);' href='" + gLink + "' target='_blank'>Graph Hub \u2197</a>" +
|
||||
"<button type='button' class='pill preview-api-btn' data-api='" + aLink + "' data-fallback='" + eq.ing + " (\"" + eq.eng + "\") = " + eq.target + "' style='font-size:0.62rem;padding:0.12rem 0.4rem;color:var(--violet);'>Preview Passage</button>" +
|
||||
"</div></div>";
|
||||
}
|
||||
)
|
||||
.join("");
|
||||
} else {
|
||||
hdrEl.textContent = "Dated 00:00 GMT Wire Dossier (" + dt + "):";
|
||||
tapeEl.innerHTML = "<div style='color:var(--text-muted);'>No separate dated news dossier archived on " + dt + " (US Closing-Bell Market Telemetry Bar active).</div>";
|
||||
}
|
||||
|
||||
document.querySelectorAll(".preview-api-btn").forEach(function (btn) {
|
||||
btn.onclick = function () {
|
||||
const apiTarget = btn.getAttribute("data-api");
|
||||
const fallbackTxt = btn.getAttribute("data-fallback") || (inst.doc_references && inst.doc_references.verbatim_citation_passage) || "";
|
||||
const previewBox = document.getElementById("passagePreviewBox");
|
||||
if (!previewBox) return;
|
||||
previewBox.style.display = "block";
|
||||
previewBox.textContent = "Loading passage preview from " + apiTarget + " ...";
|
||||
fetch(apiTarget)
|
||||
.then(function (r) { return r.json(); })
|
||||
.then(function (j) {
|
||||
const d = (j && j.data) || j || {};
|
||||
const matches = d.matched_passages || [];
|
||||
if (matches.length > 0) {
|
||||
previewBox.textContent =
|
||||
"[REST API Passage Match in " + (d.uri || apiTarget) + " — Line " + matches[0].line_number + "]\n" +
|
||||
matches[0].context;
|
||||
} else {
|
||||
previewBox.textContent = "[Passage Preview]\n" + fallbackTxt;
|
||||
}
|
||||
})
|
||||
.catch(function () {
|
||||
previewBox.textContent = "[Offline Passage Preview]\n" + fallbackTxt;
|
||||
});
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function renderLagExplorer() {
|
||||
@@ -478,5 +571,25 @@
|
||||
a.click();
|
||||
};
|
||||
|
||||
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
||||
window.HyperstitionStudio.QuantWorkbenchApp = {
|
||||
getState: function () { return Object.assign({}, state); },
|
||||
setStateAndRender: function (nextState, spotlight) {
|
||||
if (nextState) {
|
||||
if (nextState.guildFilter) state.guildFilter = nextState.guildFilter;
|
||||
if (nextState.selectedSymbol) state.selectedSymbol = nextState.selectedSymbol;
|
||||
if (nextState.selectedLens && DATA.lens_registry_meta[nextState.selectedLens]) {
|
||||
state.selectedLens = nextState.selectedLens;
|
||||
}
|
||||
if (nextState.metricMode) state.metricMode = nextState.metricMode;
|
||||
if (typeof nextState.selectedDateIdx === "number") {
|
||||
state.selectedDateIdx = Math.max(0, Math.min(DATA.dates_utc.length - 1, nextState.selectedDateIdx));
|
||||
}
|
||||
}
|
||||
activeSpotlight = spotlight || null;
|
||||
renderAll();
|
||||
}
|
||||
};
|
||||
|
||||
renderAll();
|
||||
})();
|
||||
@@ -1,3 +1,3 @@
|
||||
// Auto-generated synchronous time-series bundle for file:// and https:// portability
|
||||
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
||||
window.HyperstitionStudio.QuantTimeSeries = {"$schema": "./schemas/v1/quant-timeseries.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:quant-timeseries", "version": "2.0.19", "namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.0.19", "generated_at_utc": "2026-11-30T06:43:54Z", "periodicity_gate": {"enforced": true, "allowed_cadences": ["1d-us-closing-bell-2130-utc", "24h-news-wire-rollover-0000-utc"], "dated_news_dossiers_ingested": 21, "excluded_non_periodic_sources": ["01-ingglish-aq-lexicon.md", "10-19-ledger-*.md", "20-24-dossier-*.md", "26-45-dossier-*.md", "65-69-dossier-technocapital-singularity-*.md", "technocapital-singularity-zoology/encyclopedia/*", "proposal-*.md", "lecture-*.md", "podcast-ep*.md", "haiperdohp-jemaytreeah/db.json"], "non_periodic_records_ingested": 0}, "enabled_lenses": ["fund_manager", "neutral_math", "corporate_board", "tierzoo_ecology", "fantasy_sabermetrics", "pokedex_scanner"], "default_lens": "fund_manager", "lens_registry_meta": {"fund_manager": {"lens_id": "fund_manager", "title": "Quantitative Hedge Fund & Factor Risk", "short_label": "Quant Factor", "structural_labels": {"struct_isometric_armor": "Chokepoint Moat", "struct_drift_velocity": "Signal Velocity", "struct_variance_collapse": "Convergence Power", "struct_trophic_capture": "Institutional Coupling", "struct_prime_density": "Idiosyncratic Asymmetry", "struct_repricing_resilience": "Regime Robustness"}, "timeseries_labels": {"ts_duty_cycle_pct": "Signal Duty Cycle / Hit Rate (%)", "ts_weighted_resonance": "Conviction-Weighted Exposure (0-100)", "ts_excess_over_replacement": "Information Ratio / Alpha Over Benchmark", "ts_quantile_profile": "Downside VaR_20 / Upside P90 / Convexity CV", "ts_optimal_lag_days": "Granger Lead-Lag Horizon τ* (Days)", "ts_regime_splits": "Regime-Conditional Beta Split (M1/M2/M3)"}}, "neutral_math": {"lens_id": "neutral_math", "title": "Neutral Mathematical & Statistical Invariants", "short_label": "Neutral Math", "structural_labels": {"struct_isometric_armor": "G4 Isometric Ratio (Δ=0)", "struct_drift_velocity": "G3 Inverse Phonemic Drift", "struct_variance_collapse": "G1 Log Variance Collapse", "struct_trophic_capture": "Bipartite S×S6 Coupling Degree", "struct_prime_density": "G5 Prime & Twin-Prime Density", "struct_repricing_resilience": "Repricing Counter-Swap Closure"}, "timeseries_labels": {"ts_duty_cycle_pct": "Active Duty Cycle Pr[X_t > 0] (%)", "ts_weighted_resonance": "Weighted Resonance Index (0-100)", "ts_excess_over_replacement": "Excess Value Over Baseline (σ-Units)", "ts_quantile_profile": "Quantile Spread (P20 / P90 / CV)", "ts_optimal_lag_days": "Peak Cross-Correlation Lag τ* (Days)", "ts_regime_splits": "Conditional Regime Delta E[X|S_t] - μ"}}, "corporate_board": {"lens_id": "corporate_board", "title": "Corporate Strategy & Balance-Sheet Governance", "short_label": "Corporate Board", "structural_labels": {"struct_isometric_armor": "Supply-Chain Moat", "struct_drift_velocity": "Execution Agility", "struct_variance_collapse": "Cross-Unit Synergy", "struct_trophic_capture": "Governance & Balance-Sheet Integration", "struct_prime_density": "Proprietary IP Density", "struct_repricing_resilience": "Stress-Test Resilience"}, "timeseries_labels": {"ts_duty_cycle_pct": "Operational Utilization Cadence (%)", "ts_weighted_resonance": "Strategic Capital Share (0-100)", "ts_excess_over_replacement": "Net Economic Value Added (EVA)", "ts_quantile_profile": "Base-Case Floor / Upside Case / Variance", "ts_optimal_lag_days": "Guidance-to-Market Lead Time τ* (Days)", "ts_regime_splits": "Macro Stress-Scenario Delta (Halt/Surge/Cap)"}}, "tierzoo_ecology": {"lens_id": "tierzoo_ecology", "title": "TierZoo Ecological Trophic Index (ETI)", "short_label": "TierZoo (ETI)", "structural_labels": {"struct_isometric_armor": "ARM (G4 Isometric Chokepoint Armor)", "struct_drift_velocity": "VEL (Teleoplexic Escape Velocity)", "struct_variance_collapse": "COL (G1 Variance-Collapse Compression)", "struct_trophic_capture": "CAP (S×S6 Double-Articulation & Capture)", "struct_prime_density": "PRM (Prime & G5 Twin-Prime Mutation IQ)", "struct_repricing_resilience": "RES (Tri-Modal Repricing & State Resilience)"}, "timeseries_labels": {"ts_duty_cycle_pct": "Foraging Activity Duty Cycle (%)", "ts_weighted_resonance": "Trophic Dominance Rating (0-100)", "ts_excess_over_replacement": "Apex Surplus Over Extinction Floor", "ts_quantile_profile": "Metabolic Floor / Burst Ceiling / Niche CV", "ts_optimal_lag_days": "Predator-Prey Phase Lead τ* (Days)", "ts_regime_splits": "Biome Weather Adaptation Split (M1/M2/M3)"}}, "fantasy_sabermetrics": {"lens_id": "fantasy_sabermetrics", "title": "Fantasy Football & Sabermetric Roster Engine", "short_label": "Fantasy Sabermetrics", "structural_labels": {"struct_isometric_armor": "Pass Protection (OL Chokepoint Block)", "struct_drift_velocity": "Breakaway Speed (Open-Field Velocity)", "struct_variance_collapse": "Stack Power (Multi-Asset CorrelatiLine truncated
|
||||
window.HyperstitionStudio.QuantTimeSeries = {"$schema": "./schemas/v1/quant-timeseries.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:quant-timeseries", "version": "2.0.19", "namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.0.19", "generated_at_utc": "2026-11-30T07:16:07Z", "periodicity_gate": {"enforced": true, "allowed_cadences": ["1d-us-closing-bell-2130-utc", "24h-news-wire-rollover-0000-utc"], "dated_news_dossiers_ingested": 21, "excluded_non_periodic_sources": ["01-ingglish-aq-lexicon.md", "10-19-ledger-*.md", "20-24-dossier-*.md", "26-45-dossier-*.md", "65-69-dossier-technocapital-singularity-*.md", "technocapital-singularity-zoology/encyclopedia/*", "proposal-*.md", "lecture-*.md", "podcast-ep*.md", "haiperdohp-jemaytreeah/db.json"], "non_periodic_records_ingested": 0}, "enabled_lenses": ["fund_manager", "neutral_math", "corporate_board", "tierzoo_ecology", "fantasy_sabermetrics", "pokedex_scanner"], "default_lens": "fund_manager", "lens_registry_meta": {"fund_manager": {"lens_id": "fund_manager", "title": "Quantitative Hedge Fund & Factor Risk", "short_label": "Quant Factor", "structural_labels": {"struct_isometric_armor": "Chokepoint Moat", "struct_drift_velocity": "Signal Velocity", "struct_variance_collapse": "Convergence Power", "struct_trophic_capture": "Institutional Coupling", "struct_prime_density": "Idiosyncratic Asymmetry", "struct_repricing_resilience": "Regime Robustness"}, "timeseries_labels": {"ts_duty_cycle_pct": "Signal Duty Cycle / Hit Rate (%)", "ts_weighted_resonance": "Conviction-Weighted Exposure (0-100)", "ts_excess_over_replacement": "Information Ratio / Alpha Over Benchmark", "ts_quantile_profile": "Downside VaR_20 / Upside P90 / Convexity CV", "ts_optimal_lag_days": "Granger Lead-Lag Horizon τ* (Days)", "ts_regime_splits": "Regime-Conditional Beta Split (M1/M2/M3)"}}, "neutral_math": {"lens_id": "neutral_math", "title": "Neutral Mathematical & Statistical Invariants", "short_label": "Neutral Math", "structural_labels": {"struct_isometric_armor": "G4 Isometric Ratio (Δ=0)", "struct_drift_velocity": "G3 Inverse Phonemic Drift", "struct_variance_collapse": "G1 Log Variance Collapse", "struct_trophic_capture": "Bipartite S×S6 Coupling Degree", "struct_prime_density": "G5 Prime & Twin-Prime Density", "struct_repricing_resilience": "Repricing Counter-Swap Closure"}, "timeseries_labels": {"ts_duty_cycle_pct": "Active Duty Cycle Pr[X_t > 0] (%)", "ts_weighted_resonance": "Weighted Resonance Index (0-100)", "ts_excess_over_replacement": "Excess Value Over Baseline (σ-Units)", "ts_quantile_profile": "Quantile Spread (P20 / P90 / CV)", "ts_optimal_lag_days": "Peak Cross-Correlation Lag τ* (Days)", "ts_regime_splits": "Conditional Regime Delta E[X|S_t] - μ"}}, "corporate_board": {"lens_id": "corporate_board", "title": "Corporate Strategy & Balance-Sheet Governance", "short_label": "Corporate Board", "structural_labels": {"struct_isometric_armor": "Supply-Chain Moat", "struct_drift_velocity": "Execution Agility", "struct_variance_collapse": "Cross-Unit Synergy", "struct_trophic_capture": "Governance & Balance-Sheet Integration", "struct_prime_density": "Proprietary IP Density", "struct_repricing_resilience": "Stress-Test Resilience"}, "timeseries_labels": {"ts_duty_cycle_pct": "Operational Utilization Cadence (%)", "ts_weighted_resonance": "Strategic Capital Share (0-100)", "ts_excess_over_replacement": "Net Economic Value Added (EVA)", "ts_quantile_profile": "Base-Case Floor / Upside Case / Variance", "ts_optimal_lag_days": "Guidance-to-Market Lead Time τ* (Days)", "ts_regime_splits": "Macro Stress-Scenario Delta (Halt/Surge/Cap)"}}, "tierzoo_ecology": {"lens_id": "tierzoo_ecology", "title": "TierZoo Ecological Trophic Index (ETI)", "short_label": "TierZoo (ETI)", "structural_labels": {"struct_isometric_armor": "ARM (G4 Isometric Chokepoint Armor)", "struct_drift_velocity": "VEL (Teleoplexic Escape Velocity)", "struct_variance_collapse": "COL (G1 Variance-Collapse Compression)", "struct_trophic_capture": "CAP (S×S6 Double-Articulation & Capture)", "struct_prime_density": "PRM (Prime & G5 Twin-Prime Mutation IQ)", "struct_repricing_resilience": "RES (Tri-Modal Repricing & State Resilience)"}, "timeseries_labels": {"ts_duty_cycle_pct": "Foraging Activity Duty Cycle (%)", "ts_weighted_resonance": "Trophic Dominance Rating (0-100)", "ts_excess_over_replacement": "Apex Surplus Over Extinction Floor", "ts_quantile_profile": "Metabolic Floor / Burst Ceiling / Niche CV", "ts_optimal_lag_days": "Predator-Prey Phase Lead τ* (Days)", "ts_regime_splits": "Biome Weather Adaptation Split (M1/M2/M3)"}}, "fantasy_sabermetrics": {"lens_id": "fantasy_sabermetrics", "title": "Fantasy Football & Sabermetric Roster Engine", "short_label": "Fantasy Sabermetrics", "structural_labels": {"struct_isometric_armor": "Pass Protection (OL Chokepoint Block)", "struct_drift_velocity": "Breakaway Speed (Open-Field Velocity)", "struct_variance_collapse": "Stack Power (Multi-Asset CorrelatiLine truncated
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,546 @@
|
||||
// /workspace/hyperstitionstudio-core/site/quant/quant-tutorials.js
|
||||
// Option B Zero-MP4 Interactive HTML5 Canvas Tutorial Player & Deep-Link Choreographer (v2.0.19)
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
||||
|
||||
const EPISODES = [
|
||||
{
|
||||
id: "ep01",
|
||||
code: "Ep 01",
|
||||
title: "The Strict Periodicity Gate & Watchlist Topology",
|
||||
keyframes: [
|
||||
{
|
||||
title: "1.1 Strict Periodicity Gate (21:30 UTC Close x 00:00 UTC Wire)",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "canvas", pane: "top", xRatio: 0.96, yRatio: 0.22, label: "Strict Periodicity Gate: 30 UTC Days x 24 Tickers" },
|
||||
subtitle: "Only periodic timestamp-indexed sources (21:30 UTC US Closing-Bell bars and 00:00 UTC dated news dossiers) enter this workbench. Static lexicons and undated ledgers are strictly excluded (0 non-periodic records).",
|
||||
citations: [
|
||||
{ label: "Vol 08A PDF (Room Filter)", href: "/encyclopedia/08-stakeholder-registers-idioms-and-pokedex-semiotics/a-to-h-ai-powered-race-to-hidden-chokepoint-screen.pdf#page=2&search=Room%20Filter" },
|
||||
{ label: "Archive Methodology", href: "/archive/00-index-and-methodology.md#:~:text=closing-bell" },
|
||||
{ label: "Graph Hub aq:137", href: "/graph/index.html?select=aq:137" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "1.2 Guild S1 — Autoregressive AI Syndicate (Coordinate 292)",
|
||||
state: { guildFilter: "S1", selectedSymbol: "MSFT", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 28 },
|
||||
spotlight: { target: "canvas", pane: "top", xRatio: 0.90, yRatio: 0.28, label: "S1 AI Guild Filter Active (292 Singularity)" },
|
||||
subtitle: "Filtering by Guild S1 isolates the Autoregressive AI Syndicate anchored on Coordinate 292 (shizohnalizis == abstrakt masheen == sinthetik dayta == asset management [Gen 0]).",
|
||||
citations: [
|
||||
{ label: "Vol 03A PDF (S1 AI)", href: "/encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s1-a-to-z-agentic-ai-to-weights.pdf#page=1&search=292" },
|
||||
{ label: "Dossier 65 (292 Lock)", href: "/zoology/dossiers/65-dossier-technocapital-singularity-autoregressive-ai.md#:~:text=292" },
|
||||
{ label: "Graph Build S1", href: "/graph/index.html?select=build:S1" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "1.3 Guild S3 — Silicon-Photonic War Machine (137 & 81)",
|
||||
state: { guildFilter: "S3", selectedSymbol: "ASML", selectedLens: "corporate_board", metricMode: "close_usd", selectedDateIdx: 29 },
|
||||
spotlight: { target: "canvas", pane: "top", xRatio: 0.95, yRatio: 0.30, label: "S3 Isometric Chokepoint: ASML = asml = 81 (Δ = 0)" },
|
||||
subtitle: "Guild S3 maps physical wafer and EUV lithography chokepoints: ASML (81, Δ = 0 isometric), TSMC (95, Δ = 0), and Nvidia (envideea = 137 [33rd Prime]).",
|
||||
citations: [
|
||||
{ label: "Vol 03C PDF (p.5 ASML/envideea)", href: "/encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s3-a-to-z-asml-to-wor-masheen.pdf#page=5&search=envideea" },
|
||||
{ label: "Dossier 67 (Silicon War Machine)", href: "/zoology/dossiers/67-dossier-technocapital-singularity-silicon-war-machine.md#:~:text=137" },
|
||||
{ label: "Graph Hub aq:81", href: "/graph/index.html?select=aq:81" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "1.4 Guild S6 — Apparatus of Capture (Coordinate 125)",
|
||||
state: { guildFilter: "S6", selectedSymbol: "BLK", selectedLens: "corporate_board", metricMode: "spoken_aq", selectedDateIdx: 27 },
|
||||
spotlight: { target: "canvas", pane: "top", xRatio: 0.86, yRatio: 0.26, label: "S6 Capture Ring: kapatal == kapcher == fohldz = 125" },
|
||||
subtitle: "Guild S6 tracks sovereign and balance-sheet capture around Coordinate 125 (kapatal == kapcher == fohldz = 125) and charter/sloth (136).",
|
||||
citations: [
|
||||
{ label: "Vol 04A PDF (S6 Capture)", href: "/encyclopedia/04-apparatus-of-capture-s6/s6-a-to-m-acquisition-to-monopoly.pdf#page=1&search=125" },
|
||||
{ label: "Dossier 68 (Capture)", href: "/zoology/dossiers/68-dossier-technocapital-singularity-apparatus-of-capture.md#:~:text=125" },
|
||||
{ label: "Graph Hub aq:125", href: "/graph/index.html?select=aq:125" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "1.5 Periodicity Audit Footer & IPLD dag-json CIDv1",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "panel4", xRatio: 0.50, yRatio: 0.85, label: "Cryptographic CIDv1 & Periodicity Audit Footer" },
|
||||
subtitle: "The bottom footer verifies 21 dated 00:00 UTC dossiers + 30 closing-bell bars, 0 non-periodic records, and the deterministic IPLD dag-json CIDv1 digest (baguqeera...).",
|
||||
citations: [
|
||||
{ label: "REST API /api/v1/quant/timeseries", href: "/api/v1/quant/timeseries?symbol=NVDA" },
|
||||
{ label: "Schema quant-timeseries.schema.json", href: "/schemas/v1/quant-timeseries.schema.json" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "ep02",
|
||||
code: "Ep 02",
|
||||
title: "Reading Panel 1: Spoken AQ Curves, Gold/Cyan Beacons & Regimes",
|
||||
keyframes: [
|
||||
{
|
||||
title: "2.1 Top Pane: Dashed Crimson Identity Line & Scope 1 Gold Beacon",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "close_usd", selectedDateIdx: 29 },
|
||||
spotlight: { target: "canvas", pane: "top", xRatio: 0.96, yRatio: 0.25, label: "Scope 1 Self-Lock: NVDA Close $137.00 == envideea [137]" },
|
||||
subtitle: "Notice the Gold Beacon Circle on Nov 30 ($137.00): NVDA's closing price lands directly on the dashed crimson threshold marking its own Gen 1 Ingglish name (envideea = 137 [33rd PRIME]).",
|
||||
citations: [
|
||||
{ label: "Vol 03C PDF (p.5 envideea)", href: "/encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s3-a-to-z-asml-to-wor-masheen.pdf#page=5&search=envideea" },
|
||||
{ label: "Dossier 71 (Nov 29 Wire)", href: "/archive/71-dossier-news-2026-11-29.md#:~:text=Nvidia" },
|
||||
{ label: "Graph Hub aq:137", href: "/graph/index.html?select=aq:137" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "2.2 Move (BPS) Mode: ASML +81 bps Intra-Instrument Self-Lock",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "ASML", selectedLens: "fund_manager", metricMode: "change_bps", selectedDateIdx: 29 },
|
||||
spotlight: { target: "canvas", pane: "top", xRatio: 0.96, yRatio: 0.24, label: "BPS Self-Lock: +81 bps == asml [81]" },
|
||||
subtitle: "Switching Metric Mode to Move (BPS) reveals ASML's +81 bps daily displacement matching its own isometric coordinate (ASML = asml = 81).",
|
||||
citations: [
|
||||
{ label: "Vol 03C PDF (ASML = 81)", href: "/encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s3-a-to-z-asml-to-wor-masheen.pdf#page=1&search=ASML" },
|
||||
{ label: "Graph Hub aq:81", href: "/graph/index.html?select=aq:81" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "2.3 Repdigit Attractor Lock: Eli Lilly (LLY) at $777.00",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "LLY", selectedLens: "fund_manager", metricMode: "close_usd", selectedDateIdx: 29 },
|
||||
spotlight: { target: "canvas", pane: "top", xRatio: 0.96, yRatio: 0.20, label: "Macro Repdigit Attractor: $777.00 (7 x 111)" },
|
||||
subtitle: "Eli Lilly (LLY, S5 Cutaneous/Biotech guild) locks onto the macro repdigit attractor $777.00 (divisible by 37 and 111), firing a Scope 1 Repdigit Gold Beacon.",
|
||||
citations: [
|
||||
{ label: "Vol 03D PDF (S4 & S5)", href: "/encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s4-and-s5-a-to-z-carrier-wave-to-wetware.pdf#page=3&search=777" },
|
||||
{ label: "Graph Hub aq:777", href: "/graph/index.html?select=aq:777" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "2.4 Middle Pane: 00:00 GMT Wire Velocity & Emerald Scope 3 Bars",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 28 },
|
||||
spotlight: { target: "canvas", pane: "mid", xRatio: 0.93, yRatio: 0.63, label: "Emerald Bar = Scope 3 News-Wire Co-Presence" },
|
||||
subtitle: "In the middle pane, Violet bars show daily 333/666/777 equation counts; Emerald bars highlight UTC dates where the selected ticker co-occurred in breaking 00:00 GMT news headlines.",
|
||||
citations: [
|
||||
{ label: "Dossier 71 (2026-11-29)", href: "/archive/71-dossier-news-2026-11-29.md#:~:text=333" },
|
||||
{ label: "REST Highlight Preview", href: "/api/v1/dossiers/71?highlight=envideea" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "2.5 Bottom Pane: 20-Day Volume Ratio & M1/M2/M3 Thermodynamic Regimes",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 25 },
|
||||
spotlight: { target: "canvas", pane: "bot", xRatio: 0.83, yRatio: 0.86, label: "Thermodynamic Regime Color Coding (M1 Gold / M2 Crimson / M3 Sky)" },
|
||||
subtitle: "The bottom pane color-codes 20d relative volume by objective thermodynamic state: Gold (<0.45x) = M1 Stagnation (137), Crimson (>=2.5x or <=-5%) = M2 Flash-Crash Surge (193), Sky-Blue = M3 Leviathan.",
|
||||
citations: [
|
||||
{ label: "Vol 05A PDF (Subclass M1)", href: "/encyclopedia/05-memetic-superclass-m1-to-m7/m1-a-to-m-anemia-to-monopoly.pdf#page=1&search=M1" },
|
||||
{ label: "Vol 05C PDF (M2-M6)", href: "/encyclopedia/05-memetic-superclass-m1-to-m7/m2-to-m6-a-to-z-abyss-to-zeptoverse.pdf#page=1&search=M2" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "ep03",
|
||||
code: "Ep 03",
|
||||
title: "Panels 2 & 3: The 24x30 Lock Heatmap, TradingView & Deep Citations",
|
||||
keyframes: [
|
||||
{
|
||||
title: "3.1 Panel 2: Spatiotemporal 24 Tickers x 30 UTC Days Heatmap",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "ANTHR-PVT", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 25 },
|
||||
spotlight: { target: "panel2", xRatio: 0.50, yRatio: 0.40, label: "ANTHR-PVT Repricing ($83 -> $89 -> 'aytee nain' = 193)" },
|
||||
subtitle: "On 2026-11-26, Anthropic (ANTHR-PVT) reprices from $83 to $89 ('aytee nain' = 193 [44th PRIME] == anthropik == flash krash == Dario Amodei [Gen 0]), lighting up the heatmap cell.",
|
||||
citations: [
|
||||
{ label: "Vol 06A PDF (Anchor Revision)", href: "/encyclopedia/06-genealogical-vectors-and-flex-singularities/a-to-m-anchor-revision-to-multi-build-flex.pdf#page=1&search=193" },
|
||||
{ label: "Dossier 66 (193 Flash Crash)", href: "/zoology/dossiers/66-dossier-technocapital-singularity-flash-crash-liquidity.md#:~:text=193" },
|
||||
{ label: "Graph Hub aq:193", href: "/graph/index.html?select=aq:193" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "3.2 TradingView Superchart Launcher (Shortcut: T)",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "panel3", xRatio: 0.85, yRatio: 0.12, label: "Open TradingView Chart ↗ (Zero External Script Embeds)" },
|
||||
subtitle: "Every ticker resolves deterministically to EXCHANGE:SYMBOL (e.g. NASDAQ:NVDA). Clicking 'TradingView ↗' or pressing 'T' opens the live Superchart in a new window while keeping 0 external scripts embedded.",
|
||||
citations: [
|
||||
{ label: "Launch TradingView (NASDAQ:NVDA)", href: "https://www.tradingview.com/chart/?symbol=NASDAQ%3ANVDA" },
|
||||
{ label: "Operator's Manual (PDF)", href: "/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf#page=1&search=TradingView" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "3.3 Panel 3: Knowledge-Graph-Modeled Documentation & Cited Passages Card",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 28 },
|
||||
spotlight: { target: "docCard", xRatio: 0.50, yRatio: 0.50, label: "Passage-Encoded PDF (#page & search) + Dossier (#:~:text=) Links" },
|
||||
subtitle: "Modeled directly on the Knowledge Graph's inspector drawer, the Documentation Card links every ticker to its exact Encyclopedia PDF page (#page=N&search=...), Dossier passage (#:~:text=...), and Graph node (?select=aq:N).",
|
||||
citations: [
|
||||
{ label: "Vol 03C PDF (#page=5&search=envideea)", href: "/encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s3-a-to-z-asml-to-wor-masheen.pdf#page=5&search=envideea" },
|
||||
{ label: "Graph Deep Link (?select=aq:137)", href: "/graph/index.html?select=aq:137" },
|
||||
{ label: "REST API Highlight (/api/v1/dossiers/67?highlight=137)", href: "/api/v1/dossiers/67?highlight=137" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "3.4 Panel 3: Verbatim Dated Memetic Equation Tape & Inline Passage Preview",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 28 },
|
||||
spotlight: { target: "wireTape", xRatio: 0.50, yRatio: 0.50, label: "Dated 333 / 666 / 777 Equations with Scroll-to-Text Deep Links" },
|
||||
subtitle: "Every equation in the Dated Wire Tape includes a WICG scroll-to-text link (#:~:text=...), a Knowledge Graph coordinate link, and an inline REST passage preview button.",
|
||||
citations: [
|
||||
{ label: "Dossier 71 Scroll-to-Text", href: "/archive/71-dossier-news-2026-11-29.md#:~:text=333" },
|
||||
{ label: "REST Dossier 71 JSON", href: "/api/v1/dossiers/71?highlight=333" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "3.5 Bidirectional Graph & Dossier Cross-Verification",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "COIN", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 27 },
|
||||
spotlight: { target: "docCard", xRatio: 0.50, yRatio: 0.50, label: "Cross-Corpus Coordinate Verification" },
|
||||
subtitle: "Clicking any coordinate pill jumps straight to the Encyclopedia Knowledge Graph with that node centered and isolated in the right-hand drawer.",
|
||||
citations: [
|
||||
{ label: "Graph Node aq:211", href: "/graph/index.html?select=aq:211" },
|
||||
{ label: "Dossier 68 (S6 Capture)", href: "/zoology/dossiers/68-dossier-technocapital-singularity-apparatus-of-capture.md#:~:text=125" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "ep04",
|
||||
code: "Ep 04",
|
||||
title: "Hot-Swapping Projection Lenses (LENS_REGISTRY Reversibility)",
|
||||
keyframes: [
|
||||
{
|
||||
title: "4.1 Lens 1: Neutral Mathematical Substrate (neutral_math)",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "neutral_math", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Pure Lens-Neutral Keys (struct_* & ts_*)" },
|
||||
subtitle: "Under the hood, quant-timeseries.json stores 100% lens-neutral mathematical keys (struct_isometric_armor, ts_duty_cycle_pct, ts_weighted_resonance, ts_excess_over_replacement, ts_optimal_lag_days).",
|
||||
citations: [
|
||||
{ label: "Schema quant-timeseries.schema.json", href: "/schemas/v1/quant-timeseries.schema.json" },
|
||||
{ label: "Vol 08A PDF (Stakeholder Registers)", href: "/encyclopedia/08-stakeholder-registers-idioms-and-pokedex-semiotics/a-to-h-ai-powered-race-to-hidden-chokepoint-screen.pdf#page=1&search=Register" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "4.2 Lens 2: Out-of-Sample Quantitative Factor Register (fund_manager)",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Fund Manager Register: Signal Duty Cycle & Alpha Over Benchmark" },
|
||||
subtitle: "Switching to 'Quant Factor (fund_manager)' translates the exact same 6 numbers into institutional factor terminology (Chokepoint Moat, Signal Duty Cycle %, Composite Resonance Load).",
|
||||
citations: [
|
||||
{ label: "Fund Manager Proposal (PDF)", href: "/zoology/proposal-fund-manager-novel-investment-discovery.pdf#page=1&search=Uncaptured" },
|
||||
{ label: "REST Tier List (fund_manager)", href: "/api/v1/zoology/tier-list?register=fund_manager" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "4.3 Lens 3: Corporate Board & Supply-Chain Governance (corporate_board)",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "corporate_board", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Corporate Board Register: Supply-Chain Moat & Stress-Test Delta" },
|
||||
subtitle: "Switching to 'Corporate Board' frames those identical invariants as Supply-Chain Structural Moat, Cross-Unit Synergy, and Stress-Test Regime Delta.",
|
||||
citations: [
|
||||
{ label: "Corporate Board Proposal (PDF)", href: "/zoology/proposal-corporate-board-technocapital-allocation.pdf#page=1&search=Moat" },
|
||||
{ label: "REST Tier List (corporate_board)", href: "/api/v1/zoology/tier-list?register=corporate_board" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "4.4 Lens 4 & 5: TierZoo Ecology (ETI) & Fantasy Sabermetrics (SNAP% / WOPR / WAR)",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fantasy_sabermetrics", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Fantasy Sabermetrics: SNAP%, WOPR, WAR (30d) & Matchup Splits" },
|
||||
subtitle: "Switching to 'Fantasy Sabermetrics' projects SNAP% (Active Lock Share), WOPR (1.5x Target Share + 0.7x Air-Yards Share), and WAR (30d Wins Above Tier D Replacement).",
|
||||
citations: [
|
||||
{ label: "ETI Tier List Scorecard (PDF)", href: "/zoology/tier-list-technocapital-assemblage-builds.pdf#page=1&search=ETI" },
|
||||
{ label: "Vol 07A PDF (ETI Ontology)", href: "/encyclopedia/07-ecological-trophic-index-and-assemblage-builds/a-to-z-apex-predator-to-tier-list.pdf#page=1&search=ETI" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "4.5 Lens 6: Gen IV Pokédex Field-Scanner (DEX #137)",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "pokedex_scanner", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Gen IV Pokédex Scanner: DEX #137, Nature, Ability & EV Yield" },
|
||||
subtitle: "Switching to 'Pokédex Scanner' deterministically derives Gen IV attributes (DEX #137, Nature, Passive Ability, EV Yield) from the 30-day time-series moments—and remains 100% removable via ENABLED_LENSES.",
|
||||
citations: [
|
||||
{ label: "REST Pokédex Endpoint (/api/v1/zoology/pokedex/NVDA)", href: "/api/v1/zoology/pokedex/NVDA" },
|
||||
{ label: "Vol 08B PDF (Pokédex Semiotics)", href: "/encyclopedia/08-stakeholder-registers-idioms-and-pokedex-semiotics/i-to-z-isometric-chokepoint-to-zombie-firm.pdf#page=1&search=Pokedex" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "ep05",
|
||||
code: "Ep 05",
|
||||
title: "Panel 4: Lead-Lag Cross-Correlation r(tau), Exports & REST APIs",
|
||||
keyframes: [
|
||||
{
|
||||
title: "5.1 Panel 4: Lead-Lag Cross-Correlation Curve r(tau) across [-5 .. +5] Days",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "panel4", xRatio: 0.50, yRatio: 0.45, label: "Pearson Cross-Correlation r(tau) & Gold Optimal Causal Lag tau*" },
|
||||
subtitle: "Panel 4 computes the empirical Pearson cross-correlation r(tau) between daily 00:00 GMT news-wire equation velocity M_t and unsigned basis-point displacement |Δbps_{i, t+tau}| across lags tau in [-5, +5] days.",
|
||||
citations: [
|
||||
{ label: "Operator's Manual (Panel 4 Math)", href: "/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf#page=2&search=Correlation" },
|
||||
{ label: "Graph Mode 2 Concentric Radar", href: "/graph/index.html?select=aq:137&mode=mode2_radar" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "5.2 Interpreting Optimal Causal Lag tau* (Leader vs. Synchronizer vs. Follower)",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "ASML", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "panel4", xRatio: 0.58, yRatio: 0.45, label: "Gold Bar Marks argmax |r(tau)|" },
|
||||
subtitle: "The Gold bar highlights tau* = argmax |r(tau)|: tau* > 0 indicates a Teleoplexic Wire Leader (midnight wire velocity leads market volatility), tau* = 0 an Instantaneous Synchronizer, and tau* < 0 a Narrative Follower.",
|
||||
citations: [
|
||||
{ label: "Vol 03C PDF (ASML)", href: "/encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s3-a-to-z-asml-to-wor-masheen.pdf#page=1&search=ASML" },
|
||||
{ label: "Graph Node aq:81", href: "/graph/index.html?select=aq:81" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "5.3 Portable .CSV & Lens-Neutral .JSON Slice Exports",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "neutral_math", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "panel4", xRatio: 0.82, yRatio: 0.14, label: "One-Click .CSV & Lens-Neutral .JSON Export" },
|
||||
subtitle: "Click 'Export Filtered Series (.CSV)' or 'Export Lens-Neutral Slice (.JSON)' in the Panel 4 header to download any ticker's 30-day periodic bar table and structural/time-series vectors for offline research.",
|
||||
citations: [
|
||||
{ label: "Raw Bundle quant-timeseries.json", href: "/quant/quant-timeseries.json" },
|
||||
{ label: "Schema quant-timeseries.schema.json", href: "/schemas/v1/quant-timeseries.schema.json" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "5.4 Unified Stateless REST API v1 (/api/v1/*) & OpenAPI 3.1.0",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "docCard", xRatio: 0.50, yRatio: 0.50, label: "Programmatic REST API v1 & OpenAPI 3.1.0" },
|
||||
subtitle: "Every readout on /quant/ is also queryable over HTTP GET/POST via /api/v1/quant/timeseries, /api/v1/quant/instruments/{symbol}, /api/v1/dossiers/{number}?highlight=..., and /api/v1/openapi.json.",
|
||||
citations: [
|
||||
{ label: "OpenAPI 3.1.0 Spec (/api/v1/openapi.json)", href: "/api/v1/openapi.json" },
|
||||
{ label: "REST Status (/api/v1/status)", href: "/api/v1/status" },
|
||||
{ label: "REST NVDA Instrument", href: "/api/v1/quant/instruments/NVDA" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "5.5 Complete Tour Summary & Companion Operator's Manual",
|
||||
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 29 },
|
||||
spotlight: { target: "canvas", pane: "top", xRatio: 0.96, yRatio: 0.25, label: "Tour Complete — Explore Any Ticker, Lens, or Deep Citation" },
|
||||
subtitle: "You have completed all 5 episodes of the /quant/ guided walkthrough. Open the Companion Operator's Manual (PDF) or click any heatmap cell, lens, or deep citation link to continue exploring.",
|
||||
citations: [
|
||||
{ label: "Operator's Manual (PDF)", href: "/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf" },
|
||||
{ label: "Interactive Knowledge Graph (/graph/)", href: "/graph/index.html?select=aq:137" },
|
||||
{ label: "Self-Paced Learning Track (/learn/)", href: "/learn/index.html" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
function adaptHrefForFileProtocol(href) {
|
||||
if (!href || window.location.protocol !== "file:") return href;
|
||||
if (href.startsWith("https://")) return href;
|
||||
if (href.startsWith("/encyclopedia/")) {
|
||||
return "../../../technocapital-singularity-zoology/encyclopedia/" + href.slice("/encyclopedia/".length);
|
||||
}
|
||||
if (href.startsWith("/zoology/")) {
|
||||
return "../../../technocapital-singularity-zoology/" + href.slice("/zoology/".length);
|
||||
}
|
||||
if (href.startsWith("/archive/")) {
|
||||
return "../../../ingglish-hyperdope-gematria/ingglish-aq-archive/" + href.slice("/archive/".length);
|
||||
}
|
||||
if (href.startsWith("/graph/")) {
|
||||
return "../../../encyclopedia-knowledge-graph/" + href.slice("/graph/".length);
|
||||
}
|
||||
if (href.startsWith("/learn/")) {
|
||||
return "../learn/" + href.slice("/learn/".length);
|
||||
}
|
||||
if (href.startsWith("/quant/")) {
|
||||
return "./" + href.slice("/quant/".length);
|
||||
}
|
||||
if (href.startsWith("/schemas/")) {
|
||||
return "../../schemas/" + href.slice("/schemas/".length);
|
||||
}
|
||||
return href;
|
||||
}
|
||||
|
||||
let curEpIdx = 0;
|
||||
let curStepIdx = 0;
|
||||
let isPlaying = false;
|
||||
let playTimer = null;
|
||||
let speechEnabled = false;
|
||||
|
||||
function getActiveKeyframe() {
|
||||
const ep = EPISODES[curEpIdx] || EPISODES[0];
|
||||
return ep.keyframes[curStepIdx] || ep.keyframes[0];
|
||||
}
|
||||
|
||||
function speakSubtitle(text) {
|
||||
if (!speechEnabled || typeof window.speechSynthesis === "undefined") return;
|
||||
try {
|
||||
window.speechSynthesis.cancel();
|
||||
const u = new SpeechSynthesisUtterance(text);
|
||||
u.rate = 1.04;
|
||||
window.speechSynthesis.speak(u);
|
||||
} catch (_) {}
|
||||
}
|
||||
|
||||
function highlightDomTarget(targetId) {
|
||||
["heatmapTable", "lensProjectionCard", "docReferencesCard", "wireEqTape", "lagBarsContainer"].forEach(function (id) {
|
||||
const el = document.getElementById(id);
|
||||
if (el) el.style.boxShadow = "";
|
||||
});
|
||||
const map = {
|
||||
panel2: "heatmapTable",
|
||||
lensCard: "lensProjectionCard",
|
||||
docCard: "docReferencesCard",
|
||||
wireTape: "wireEqTape",
|
||||
panel4: "lagBarsContainer"
|
||||
};
|
||||
const domId = map[targetId];
|
||||
if (domId) {
|
||||
const el = document.getElementById(domId);
|
||||
if (el) {
|
||||
el.style.boxShadow = "0 0 0 2px #f5c630, 0 0 18px rgba(245, 198, 48, 0.35)";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function applyCurrentKeyframe() {
|
||||
const kf = getActiveKeyframe();
|
||||
const app = window.HyperstitionStudio.QuantWorkbenchApp;
|
||||
if (app && typeof app.setStateAndRender === "function") {
|
||||
app.setStateAndRender(kf.state, kf.spotlight);
|
||||
}
|
||||
highlightDomTarget(kf.spotlight && kf.spotlight.target);
|
||||
renderTutorialUI();
|
||||
if (isPlaying) {
|
||||
speakSubtitle(kf.subtitle);
|
||||
}
|
||||
}
|
||||
|
||||
function stepNext() {
|
||||
const ep = EPISODES[curEpIdx];
|
||||
if (curStepIdx < ep.keyframes.length - 1) {
|
||||
curStepIdx++;
|
||||
} else if (curEpIdx < EPISODES.length - 1) {
|
||||
curEpIdx++;
|
||||
curStepIdx = 0;
|
||||
} else {
|
||||
stopPlayback();
|
||||
return;
|
||||
}
|
||||
applyCurrentKeyframe();
|
||||
}
|
||||
|
||||
function stepPrev() {
|
||||
if (curStepIdx > 0) {
|
||||
curStepIdx--;
|
||||
} else if (curEpIdx > 0) {
|
||||
curEpIdx--;
|
||||
curStepIdx = EPISODES[curEpIdx].keyframes.length - 1;
|
||||
}
|
||||
applyCurrentKeyframe();
|
||||
}
|
||||
|
||||
function startPlayback() {
|
||||
isPlaying = true;
|
||||
applyCurrentKeyframe();
|
||||
if (playTimer) clearInterval(playTimer);
|
||||
playTimer = setInterval(stepNext, 7000);
|
||||
renderTutorialUI();
|
||||
}
|
||||
|
||||
function stopPlayback() {
|
||||
isPlaying = false;
|
||||
if (playTimer) {
|
||||
clearInterval(playTimer);
|
||||
playTimer = null;
|
||||
}
|
||||
if (typeof window.speechSynthesis !== "undefined") {
|
||||
try { window.speechSynthesis.cancel(); } catch (_) {}
|
||||
}
|
||||
renderTutorialUI();
|
||||
}
|
||||
|
||||
function renderTutorialUI() {
|
||||
const epTabs = document.getElementById("tutEpisodeTabs");
|
||||
const stepBadge = document.getElementById("tutStepBadge");
|
||||
const scrubber = document.getElementById("tutScrubber");
|
||||
const playBtn = document.getElementById("tutPlayPauseBtn");
|
||||
const speechBtn = document.getElementById("tutSpeechBtn");
|
||||
const titleEl = document.getElementById("tutKeyframeTitle");
|
||||
const subEl = document.getElementById("tutSubtitleText");
|
||||
const citesEl = document.getElementById("tutCitationPills");
|
||||
|
||||
if (!epTabs) return;
|
||||
const ep = EPISODES[curEpIdx];
|
||||
const kf = getActiveKeyframe();
|
||||
|
||||
epTabs.innerHTML = EPISODES.map(function (e, idx) {
|
||||
const cls = "pill" + (idx === curEpIdx ? " active" : "");
|
||||
return "<button type='button' class='" + cls + "' data-ep-idx='" + idx + "'>" + e.code + ": " + e.title + "</button>";
|
||||
}).join("");
|
||||
|
||||
epTabs.querySelectorAll("[data-ep-idx]").forEach(function (b) {
|
||||
b.onclick = function () {
|
||||
curEpIdx = parseInt(b.getAttribute("data-ep-idx"), 10);
|
||||
curStepIdx = 0;
|
||||
applyCurrentKeyframe();
|
||||
};
|
||||
});
|
||||
|
||||
if (playBtn) {
|
||||
playBtn.textContent = isPlaying ? "\u23F8 Pause Tour" : "\u25B6 Play Guided Tour";
|
||||
playBtn.className = isPlaying ? "btn tv-btn" : "btn primary";
|
||||
}
|
||||
if (speechBtn) {
|
||||
speechBtn.textContent = speechEnabled ? "\uD83D\uDD0A Voice: ON" : "\uD83D\uDD07 Voice: OFF";
|
||||
}
|
||||
if (stepBadge) {
|
||||
stepBadge.textContent = ep.code + " \u2022 Scene " + (curStepIdx + 1) + "/" + ep.keyframes.length;
|
||||
}
|
||||
if (scrubber) {
|
||||
scrubber.max = String(ep.keyframes.length - 1);
|
||||
scrubber.value = String(curStepIdx);
|
||||
}
|
||||
if (titleEl) {
|
||||
titleEl.textContent = kf.title;
|
||||
}
|
||||
if (subEl) {
|
||||
subEl.textContent = kf.subtitle;
|
||||
}
|
||||
if (citesEl) {
|
||||
citesEl.innerHTML = (kf.citations || []).map(function (c) {
|
||||
const resolved = adaptHrefForFileProtocol(c.href);
|
||||
return "<a class='pill' style='text-decoration:none;color:var(--cyan);border-color:var(--cyan);' href='" +
|
||||
resolved + "' target='_blank' rel='noopener noreferrer'>\uD83D\uDCC4 " + c.label + " \u2197</a>";
|
||||
}).join("");
|
||||
}
|
||||
}
|
||||
|
||||
function initTutorials() {
|
||||
const playBtn = document.getElementById("tutPlayPauseBtn");
|
||||
const prevBtn = document.getElementById("tutPrevBtn");
|
||||
const nextBtn = document.getElementById("tutNextBtn");
|
||||
const clearBtn = document.getElementById("tutClearSpotlightBtn");
|
||||
const speechBtn = document.getElementById("tutSpeechBtn");
|
||||
const scrubber = document.getElementById("tutScrubber");
|
||||
|
||||
if (playBtn) {
|
||||
playBtn.onclick = function () {
|
||||
if (isPlaying) stopPlayback();
|
||||
else startPlayback();
|
||||
};
|
||||
}
|
||||
if (prevBtn) prevBtn.onclick = function () { stopPlayback(); stepPrev(); };
|
||||
if (nextBtn) nextBtn.onclick = function () { stopPlayback(); stepNext(); };
|
||||
if (clearBtn) {
|
||||
clearBtn.onclick = function () {
|
||||
stopPlayback();
|
||||
highlightDomTarget(null);
|
||||
const app = window.HyperstitionStudio.QuantWorkbenchApp;
|
||||
if (app && typeof app.setStateAndRender === "function") {
|
||||
app.setStateAndRender({}, null);
|
||||
}
|
||||
};
|
||||
}
|
||||
if (speechBtn) {
|
||||
speechBtn.onclick = function () {
|
||||
speechEnabled = !speechEnabled;
|
||||
if (speechEnabled) speakSubtitle(getActiveKeyframe().subtitle);
|
||||
else if (typeof window.speechSynthesis !== "undefined") {
|
||||
try { window.speechSynthesis.cancel(); } catch (_) {}
|
||||
}
|
||||
renderTutorialUI();
|
||||
};
|
||||
}
|
||||
if (scrubber) {
|
||||
scrubber.oninput = function () {
|
||||
stopPlayback();
|
||||
curStepIdx = parseInt(scrubber.value, 10) || 0;
|
||||
applyCurrentKeyframe();
|
||||
};
|
||||
}
|
||||
|
||||
renderTutorialUI();
|
||||
}
|
||||
|
||||
window.HyperstitionStudio.QuantTutorials = {
|
||||
version: "2.0.19",
|
||||
episodes: EPISODES,
|
||||
adaptHrefForFileProtocol: adaptHrefForFileProtocol,
|
||||
init: initTutorials
|
||||
};
|
||||
|
||||
if (document.readyState === "loading") {
|
||||
document.addEventListener("DOMContentLoaded", initTutorials);
|
||||
} else {
|
||||
initTutorials();
|
||||
}
|
||||
})();
|
||||
Reference in new issue
Block a user