Files
gnommoplayer/dist/glitch/glitch_assumption_toggle/assumption-toggle.js
T

561 lines
1.1 MiB
JavaScript
Raw Normal View History

2026-04-11 09:21:22 +02:00
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.gc-assumption-toggle{--shell-bg: radial-gradient(circle at top, rgba(40, 58, 34, .35), transparent 42%), linear-gradient(180deg, #070a08, #0f160f 58%, #090b09);--screen-bg: #616161;--screen-error: #7f1d1d;--screen-glow: rgba(0, 0, 0, .5);--text-primary: var(--gc-text, #0f172a);--text-secondary: var(--gc-text-muted, #6bff5b);--accent-color: var(--gc-accent, #1c6a00);--panel-green: var(--gc-primary, #248a00);--panel-white: rgba(255, 255, 255, .92);--font-display: "Russo One", sans-serif;--font-ui: "VT323", sans-serif;color:var(--text-primary);width:100%}.gc-assumption-toggle *,.gc-assumption-toggle *:before,.gc-assumption-toggle *:after{box-sizing:border-box}.gc-assumption-toggle .component-shell{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px 0;background:var(--shell-bg)}.gc-assumption-toggle .main-wrapper{width:min(100%,1000px);aspect-ratio:1000 / 678;background-image:var(--assumption-frame-image);background-position:center;background-repeat:no-repeat;background-size:100% 100%;display:flex;justify-content:center;align-items:center}.gc-assumption-toggle .crt-screen{position:relative;width:51.8%;height:66.3%;transform:translateY(.6%);background:var(--screen-bg);border-radius:7.5%;display:flex;justify-content:center;align-items:center;overflow:hidden;box-shadow:inset 0 0 40px var(--screen-glow);transition:background-color .4s ease}.gc-assumption-toggle .crt-screen.paradox-errors{background:var(--screen-error)}.gc-assumption-toggle .crt-screen:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(rgba(18,16,16,0) 50%,rgba(0,0,0,.24) 50%),linear-gradient(90deg,rgba(255,0,0,.05),rgba(0,255,0,.02),rgba(0,0,255,.05));background-size:100% 2px,3px 100%;pointer-events:none;z-index:20}.gc-assumption-toggle .slides-wrapper{width:100%;height:100%;display:flex;justify-content:center;align-items:center;transform-origin:center}.gc-assumption-toggle .slide{width:100%;height:100%;padding:20px;display:flex;flex-direction:column;justify-content:center;align-items:center}.gc-assumption-toggle .slide-splash{text-align:center}.gc-assumption-toggle .splash-content h1{margin:0 0 18px;font-size:clamp(1.4rem,2.7vw,2.2rem);line-height:1.3;color:var(--text-primary);font-family:var(--font-display);font-weight:400;text-transform:uppercase;text-shadow:0 0 4px rgba(0,0,0,.35)}.gc-assumption-toggle .splash-content h2{margin:0 0 42px;color:var(--text-secondary);font-size:clamp(1rem,1.5vw,1.2rem);font-weight:400;letter-spacing:.08em;font-family:var(--font-ui)}.gc-assumption-toggle .widget-header h1{margin:0 0 18px;color:var(--text-secondary);font-size:clamp(1.4rem,2.5vw,1.8rem);font-weight:400;letter-spacing:.05em;text-transform:uppercase;font-family:var(--font-display);text-shadow:0 0 5px rgba(255,255,255,.35)}.gc-assumption-toggle .switch-group{width:100%;display:flex;flex-direction:column;gap:18px;padding:0 24px}.gc-assumption-toggle .switch-item{width:100%}.gc-assumption-toggle .switch-input{position:absolute;opacity:0;pointer-events:none}.gc-assumption-toggle .toggle-track{position:relative;width:100%;min-height:58px;padding:4px;display:flex;align-items:stretch;justify-content:space-between;gap:8px;border-radius:28px;cursor:pointer;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.4)}.gc-assumption-toggle .toggle-track:before{content:"";position:absolute;left:4px;top:4px;bottom:4px;width:calc(50% - 4px);border-radius:24px;background:var(--panel-green);transition:transform .35s cubic-bezier(.16,1,.3,1)}.gc-assumption-toggle .switch-input:checked+.toggle-track:before{transform:translate(100%)}.gc-assumption-toggle .option-left,.gc-assumption-toggle .option-right{position:relative;z-index:1;flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px 8px;color:#ffffff9e;font-size:clamp(.78rem,2vw,1.4rem);font-weight:500;letter-spacing:.04em;line-height:1.15;font-family:var(--font-ui);transition
import { jsx as A, jsxs as B } from "react/jsx-runtime";
import { useState as h, useRef as O, use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Pb5G0newgEQRBOCf58+7f5rVXvhNkv0OPMY5kRrgteEOM4YKrPbMOgVE0Rn/mrfPPJu072LgvCd6Ur28W15jk8/sAD7Nx/B0+Uqzrs0LdqhNWrVvDUF77NvoOTvPH6M3jH6zfj4DM26mOYAY2gSRT7LOtTAf0OAuCqi9dw4XnLcVIRoe9z9Pgc92yfp1hPMzI0QNOtUTc91m9ZyflnjTDQZWL6de2VMT1W5vBUmcPjFWq1ELujg66CqQ21c4U0XZ1Zhoc66cpnqM7P8didnyb9WD+vve51lDcWeOq4dAScKtzTdwYPbN/BxuU2lp3lC0/v43d//C14s7ef7F0TBEF4RZAEgCAIgiD8ENGZ7eKyeAv33vFV/vZvf5ssIev7DK7ckGLNa7ro7sxgqug+BkGgo/tJoN8wwIhU+F/fF+t/BqqwNHm0Sg0kCQCdHVDBf32J9HaCMMINDY7PuDzx9IP82X2P8bqbrye6rqAr+gRBEITvjz87tocPbP5lHr7v7+mK51i53CKd9rEdk2LVYmKhD/OSX+Ffn5Tkq/Dq5O1bbuZLH/4on1q4n83rh7jknCFsK82RsTJP7Z9k/6FRutMpzt6yire84XxWjuSZnpql5sccnWrgWWk2n7WCbBwxNj7Pmg1DvOaas+jqTOH7NaoLZR5/fpp5L8dVV1yAGVbZ9txeNm9dw/U3X8SyjjR+o0jcsNm3a467Hh9j76EKw4M9jGzto1isENs2Pd3drF7VydByh0IWGsUaExMBDQwOHSvykb//ZwaWL+Pqm29k3ea1ODmbmhWyfWYn40WpFv9hZN/sftwwYPmyTrqzaTKGT2Sf6IYVB
click: "ui.button_click",
hover: "ui.button_hover",
computeStart: "machine.compute_start",
computeStep: "machine.compute_step",
computeDone: "machine.compute_done",
verdictStable: "machine.verdict_stable",
verdictAlert: "machine.verdict_alert"
};
function J(w, C) {
typeof window > "u" || window.dispatchEvent(new CustomEvent(w, { detail: C }));
}
function o(w, C, D) {
try {
if (w != null && w.playSound) {
w.playSound(C, D);
return;
}
} catch {
}
J(cA, { id: C, payload: D });
}
function Z(w, C, D) {
try {
if (w != null && w.stopSound) {
w.stopSound(C, D);
return;
}
} catch {
}
J(QA, { id: C, payload: D });
}
function z(w, C, D) {
try {
if (w != null && w.emit) {
w.emit(C, D);
return;
}
} catch {
}
J(`${FA}${C}`, D);
}
const v = {
continuousUniverse: !0,
infinitePrecision: !0,
chunkParticles: !1
}, E = {
"000": {
outcome: "Paradoxical",
intermediate: "Very very much information.",
description: "Space is supposed to be discrete, but each cell must contain ar arbitrary amount of information.",
visualClass: "paradox-point",
tone: "paradox"
},
"001": {
outcome: "Digital Physics",
intermediate: "Instruction programs remain finite.",
description: "Stable but requires continuous rotational symmetry to be emergent",
visualClass: "stable-chunk",
tone: "stable"
},
"010": {
outcome: "#1 Memory Paradox",
intermediate: "Move sets can scale to infinite length",
description: "Infinte memory per cell",
visualClass: "paradox-point",
tone: "paradox"
},
"011": {
outcome: "#2 Memory Paradox",
intermediate: "Move sets can scale to infinite length",
description: "Chunky particles must grow without bound to hold infinite move set",
visualClass: "paradox-chunk",
tone: "paradox"
},
100: {
outcome: "Paradoxical",
intermediate: "Chunky geometry implies discrete space",
description: "A continuous universe with chunky particles spanning fundamental cells is a constadiction.",
visualClass: "non-standard-particle-point",
tone: "warning"
},
101: {
outcome: "Paradoxical",
intermediate: "The geometry breaks isotropy.",
description: "Continuous universe plus chunk particles that imply discrete space is a constradiction.",
visualClass: "non-standard-particle-chunk",
tone: "warning"
},
110: {
outcome: "Standard Physics",
intermediate: "The model remains isotropic.",
description: "Continuous space with infinite precision preserves the canonical picture.",
visualClass: "standard-particle-point",
tone: "stable"
},
111: {
outcome: "Contradictory",
intermediate: "Continuous universe cannot be combined with chunk particles.",
description: "Chunky cannot be not chunky",
visualClass: "standard-particle-chunk",
tone: "uncertain"
}
}, p = {
"000": [
{ label: "Universe model", value: "Discrete" },
{ label: "Precision model", value: "Finite (Rejects CRS!)" },
{ label: "Requirement", value: "Isotropy is emergent" },
{ label: "Particle mode", value: "Point particle" },
{ label: "Consistency check", value: "Point state exceeds single-cell information budget" },
{ label: "Verdict trace", value: "Single cell must have arbitrary information capacity" }
],
"001": [
{ label: "Universe model", value: "Discrete" },
{ label: "Precision model", value: "Finite (Rejects CRS!)" },
{ label: "Requirement", value: "Isotropy is emergent" },
{ label: "Particle mode", value: "Chunk particle geometry engaged" },
{ label: "Consistency check", value: "State remains compressible under finite instruction length" },
{ label: "Verdict trace", value: "Digital physics interpretation remains internally stable" }
],
"010": [
{ label: "Universe model", value: "Discrete" },
{ label: "Precision model", value: "Infinite (CRS)" },
{ label: "Particle mode", value: "Point particle" },
{ label: "Consistency check", value: "Each lattice cell requires unbounded memory" },
{ label: "Verdict trace", value: "Inconsistent with isotropy" }
],
"011": [
{ label: "Universe model", value: "Discrete" },
{ label: "Precision model", value: "Infinite (CRS)" },
{ label: "Particle mode", value: "Chunk particle" },
{ label: "Consistency check", value: "Particles grow to express information" },
{ label: "Verdict trace", value: "Chunk particles grow to infinite size" }
],
100: [
{ label: "Universe model", value: "Continuous manifold" },
{ label: "Precision model", value: "Finite (Rejects CRS!)" },
{ label: "Requirement", value: "Isotropy is emergent" },
{ label: "Particle mode", value: "Point particle" },
{ label: "Consistency check", value: "Severely demotivated" },
{ label: "Verdict trace", value: "No explanation for rejecting CRS. Smell detected." }
],
101: [
{ label: "Universe model", value: "Continuous manifold" },
{ label: "Precision model", value: "Finite (Rejects CRS!)" },
{ label: "Requirement", value: "Isotropy is emergent" },
{ label: "Particle mode", value: "Chunk particle geometry engaged" },
{ label: "Consistency check", value: "Space is quantized but cells infinitely small" },
{ label: "Verdict trace", value: "Non-standard hybrid geometry. Smell detected" }
],
110: [
{ label: "Universe model", value: "Continuous manifold" },
{ label: "Precision model", value: "Infinite (CRS)" },
{ label: "Particle mode", value: "Point particle" },
{ label: "Consistency check", value: "Canonical isotropic field picture remains intact" },
{ label: "Verdict trace", value: "Standard physics baseline recovered successfully" }
],
111: [
{ label: "Universe model", value: "Continuous manifold" },
{ label: "Precision model", value: "Infinite (CRS)" },
{ label: "Particle mode", value: "Chunk particle geometry engaged" },
{ label: "Consistency check", value: "Inconsistent." },
{ label: "Verdict trace", value: "Chunk particle cannot be not chunky" }
]
};
function r(w, C) {
return typeof w == "boolean" ? w : C;
}
function f(w) {
return {
continuousUniverse: r(w == null ? void 0 : w.continuousUniverse, v.continuousUniverse),
infinitePrecision: r(w == null ? void 0 : w.infinitePrecision, v.infinitePrecision),
chunkParticles: r(w == null ? void 0 : w.chunkParticles, v.chunkParticles)
};
}
function t(w) {
return [
w.continuousUniverse ? "1" : "0",
w.infinitePrecision ? "1" : "0",
w.chunkParticles ? "1" : "0"
].join("");
}
function R(w) {
const C = w.continuousUniverse ? "Continuous universe" : "Discrete universe", D = w.infinitePrecision ? "Infinite precision" : "Finite precision", s = w.chunkParticles ? "Chunk particles" : "Point particles";
return `${C} + ${D} + ${s}`;
}
function PA(w) {
return w.tone === "stable" ? 100 : w.tone === "uncertain" ? 60 : w.tone === "warning" ? 40 : 20;
}
function MA({ visualClass: w }) {
return w === "paradox-point" ? /* @__PURE__ */ B("div", { className: "cube-wrapper", children: [
/* @__PURE__ */ B("div", { className: "cube", children: [
/* @__PURE__ */ A("div", { className: "face front" }),
/* @__PURE__ */ A("div", { className: "face back" }),
/* @__PURE__ */ A("div", { className: "face right" }),
/* @__PURE__ */ A("div", { className: "face left" }),
/* @__PURE__ */ A("div", { className: "face top" }),
/* @__PURE__ */ A("div", { className: "face bottom" }),
/* @__PURE__ */ A("div", { className: "particle-point" })
] }),
/* @__PURE__ */ B("div", { className: "info-arrow", children: [
/* @__PURE__ */ A("div", { className: "arrow-line" }),
/* @__PURE__ */ A("div", { className: "arrow-head" }),
/* @__PURE__ */ A("span", { className: "infinite-symbol", children: "" })
] })
] }) : w === "stable-chunk" ? /* @__PURE__ */ B("div", { className: "digital-lattice", children: [
/* @__PURE__ */ A("div", { className: "digital-grid", children: Array.from({ length: 9 }, (C, D) => /* @__PURE__ */ A(
"span",
{
className: `digital-cell digital-cell-${D}${D === 4 ? " digital-cell-core" : ""}`
},
D
)) }),
/* @__PURE__ */ A("div", { className: "digital-core", children: /* @__PURE__ */ A("span", { className: "digital-core-dot" }) }),
/* @__PURE__ */ A("div", { className: "digital-scan digital-scan-horizontal" }),
/* @__PURE__ */ A("div", { className: "digital-scan digital-scan-vertical" }),
/* @__PURE__ */ A("div", { className: "digital-aura" })
] }) : w === "paradox-chunk" ? /* @__PURE__ */ B("div", { className: "chaos-wrapper", children: [
/* @__PURE__ */ B("div", { className: "central-source", children: [
/* @__PURE__ */ A("div", { className: "face front" }),
/* @__PURE__ */ A("div", { className: "face back" }),
/* @__PURE__ */ A("div", { className: "face right" }),
/* @__PURE__ */ A("div", { className: "face left" }),
/* @__PURE__ */ A("div", { className: "face top" }),
/* @__PURE__ */ A("div", { className: "face bottom" })
] }),
Array.from({ length: 10 }, (C, D) => /* @__PURE__ */ B("div", { className: `debris-cube d-${D}`, children: [
/* @__PURE__ */ A("div", { className: "face front" }),
/* @__PURE__ */ A("div", { className: "face back" }),
/* @__PURE__ */ A("div", { className: "face right" }),
/* @__PURE__ */ A("div", { className: "face left" }),
/* @__PURE__ */ A("div", { className: "face top" }),
/* @__PURE__ */ A("div", { className: "face bottom" })
] }, D))
] }) : w === "non-standard-particle-point" ? /* @__PURE__ */ B("div", { className: "signal-orbit signal-orbit-point", children: [
/* @__PURE__ */ A("div", { className: "signal-ring" }),
/* @__PURE__ */ A("div", { className: "signal-dot" }),
/* @__PURE__ */ A("div", { className: "signal-axis" })
] }) : w === "non-standard-particle-chunk" ? /* @__PURE__ */ B("div", { className: "signal-orbit signal-orbit-chunk", children: [
/* @__PURE__ */ A("div", { className: "signal-ring" }),
/* @__PURE__ */ A("div", { className: "signal-cube" }),
/* @__PURE__ */ A("div", { className: "signal-axis" })
] }) : w === "standard-particle-point" ? /* @__PURE__ */ B("div", { className: "physics-observatory", children: [
/* @__PURE__ */ A("div", { className: "physics-grid" }),
/* @__PURE__ */ A("div", { className: "physics-halo physics-halo-outer" }),
/* @__PURE__ */ A("div", { className: "physics-halo physics-halo-inner" }),
/* @__PURE__ */ A("div", { className: "physics-core-shell", children: /* @__PURE__ */ A("div", { className: "physics-core-point" }) }),
/* @__PURE__ */ A("span", { className: "physics-orbit physics-orbit-1" }),
/* @__PURE__ */ A("span", { className: "physics-orbit physics-orbit-2" }),
/* @__PURE__ */ A("span", { className: "physics-orbit physics-orbit-3" })
] }) : /* @__PURE__ */ B("div", { className: "physics-observatory physics-observatory-chunk", children: [
/* @__PURE__ */ A("div", { className: "physics-grid" }),
/* @__PURE__ */ A("div", { className: "physics-halo physics-halo-outer" }),
/* @__PURE__ */ A("div", { className: "physics-halo physics-halo-inner" }),
/* @__PURE__ */ A("div", { className: "physics-core-shell physics-core-shell-chunk", children: /* @__PURE__ */ A("div", { className: "physics-core-point physics-core-chunk" }) }),
/* @__PURE__ */ A("span", { className: "physics-orbit physics-orbit-1" }),
/* @__PURE__ */ A("span", { className: "physics-orbit physics-orbit-2" }),
/* @__PURE__ */ A("span", { className: "physics-orbit physics-orbit-3" }),
/* @__PURE__ */ A("div", { className: "physics-question-ring", children: /* @__PURE__ */ A("span", { className: "physics-question", children: "?" }) })
] });
}
function xA({
config: w,
onComplete: C,
onProgress: D,
theme: s,
className: d,
host: c
}) {
const [G, S] = h(() => f(w.params)), [x, q] = h("splash"), [T, N] = h(""), [j, $] = h(() => E[t(f(w.params))]), [H, _] = h(() => t(f(w.params))), [X, AA] = h(
() => R(f(w.params))
), [wA, V] = h([]), [DA, K] = h(""), k = O([]), i = O(c), b = O(C), W = O(D);
a(() => {
S(f(w.params));
}, [w.params]), a(() => {
i.current = c, b.current = C, W.current = D;
}, [c, C, D]), a(() => {
if (x !== "processing")
return;
const g = p[H] ?? [];
let Y = !1;
V([]), K("");
const Q = (e, y) => {
if (Y)
return;
if (e >= g.length) {
L(() => {
if (Y)
return;
const F = E[H];
o(i.current, P.computeDone, { state: H }), I("result", () => {
var m;
(m = W.current) == null || m.call(W, 100), o(
i.current,
F.tone === "stable" ? P.verdictStable : P.verdictAlert,
{ state: H, outcome: F.outcome }
), z(i.current, "verdict-ready", {
state: H,
outcome: F.outcome,
tone: F.tone
}), b.current({
success: !0,
score: PA(F),
data: {
assumptions: X,
state: H,
outcome: F.outcome,
intermediate: F.intermediate,
description: F.description,
processingTrace: p[H].map((u) => `${u.label}: ${u.value}`)
}
});
});
}, 520);
return;
}
const U = `${g[e].label}: ${g[e].value}`;
if (y <= U.length) {
y === 0 && o(i.current, P.computeStep, { state: H, lineIndex: e }), K(U.slice(0, y)), L(() => Q(e, y + 1), 24);
return;
}
V((F) => [...F, U]), K(""), e === g.length - 1 && Z(i.current, P.computeStep, { state: H, lineIndex: e }), L(() => Q(e + 1, 0), 170);
};
return L(() => Q(0, 0), 180), () => {
Y = !0, Z(i.current, P.computeStep, { state: H });
};
}, [X, H, x]), a(() => () => {
n();
}, []);
function n() {
for (const g of k.current)
window.clearTimeout(g);
k.current = [];
}
function L(g, Y) {
const Q = window.setTimeout(g, Y);
k.current.push(Q);
}
function I(g, Y) {
n(), N("crt-collapse"), L(() => {
q(g), Y == null || Y(), N("crt-expand"), L(() => {
N("");
}, 110);
}, 110);
}
function l(g, Y) {
S((Q) => ({ ...Q, [g]: Y })), o(c, P.click, { control: g, value: Y });
}
function M(g) {
o(c, P.hover, { target: g });
}
function gA() {
z(c, "session-started", { component: w.name, id: w.id }), D == null || D(10), I("controls");
}
function BA() {
const g = t(G), Y = E[g], Q = R(G);
_(g), AA(Q), $(Y), o(c, P.computeStart, { state: g }), z(c, "processing-started", {
state: g,
assumptions: Q
}), D == null || D(45), I("processing", () => {
D == null || D(70);
});
}
function sA() {
n(), Z(c, P.computeStep, { state: H }), z(c, "returned-to-controls", { state: H }), D == null || D(20), I("controls");
}
R(G);
const CA = x === "result" && j.visualClass.includes("paradox"), YA = {
"--gc-primary": (s == null ? void 0 : s.primary) || "#248a00",
"--gc-accent": (s == null ? void 0 : s.accent) || "#1c6a00",
"--gc-bg": (s == null ? void 0 : s.bg) || "#ffffff",
"--gc-bg-secondary": (s == null ? void 0 : s.bgSecondary) || "#616161",
"--gc-text": (s == null ? void 0 : s.text) || "#0f172a",
"--gc-text-muted": (s == null ? void 0 : s.textMuted) || "#eaffd8",
"--gc-border": (s == null ? void 0 : s.border) || "rgba(255,255,255,0.12)",
"--assumption-frame-image": `url(${HA})`
};
return /* @__PURE__ */ A("div", { className: `gc-assumption-toggle ${d || ""}`.trim(), style: YA, children: /* @__PURE__ */ A("div", { className: "component-shell", children: /* @__PURE__ */ A("div", { className: "main-wrapper", children: /* @__PURE__ */ A("div", { className: `crt-screen ${CA ? "paradox-errors" : ""}`, children: /* @__PURE__ */ B("div", { className: `slides-wrapper ${T}`, children: [
x === "splash" && /* @__PURE__ */ A("div", { className: "slide slide-splash", children: /* @__PURE__ */ B("div", { className: "splash-content", children: [
/* @__PURE__ */ A("h1", { children: "Foundational Assumption Recombinator Tool" }),
/* @__PURE__ */ A("h2", { children: "v1.0" }),
/* @__PURE__ */ A(
"button",
{
type: "button",
className: "action-button",
onClick: gA,
onMouseEnter: () => M("initialize"),
onFocus: () => M("initialize"),
children: "Initialize"
}
)
] }) }),
x === "controls" && /* @__PURE__ */ B("div", { className: "slide slide-controls", children: [
/* @__PURE__ */ A("div", { className: "widget-header", children: /* @__PURE__ */ A("h1", { children: "Settings" }) }),
/* @__PURE__ */ B("div", { className: "switch-group", children: [
/* @__PURE__ */ B("div", { className: "switch-item", children: [
/* @__PURE__ */ A(
"input",
{
id: `${w.id}-toggle-universe`,
className: "switch-input",
type: "checkbox",
checked: G.continuousUniverse,
onChange: (g) => l("continuousUniverse", g.target.checked)
}
),
/* @__PURE__ */ B(
"label",
{
className: "toggle-track",
htmlFor: `${w.id}-toggle-universe`,
onMouseEnter: () => M("toggle-universe"),
children: [
/* @__PURE__ */ A("span", { className: "option-left", children: "Discrete Universe" }),
/* @__PURE__ */ A("span", { className: "option-right", children: "Continuous Universe" })
]
}
)
] }),
/* @__PURE__ */ B("div", { className: "switch-item", children: [
/* @__PURE__ */ A(
"input",
{
id: `${w.id}-toggle-precision`,
className: "switch-input",
type: "checkbox",
checked: G.infinitePrecision,
onChange: (g) => l("infinitePrecision", g.target.checked)
}
),
/* @__PURE__ */ B(
"label",
{
className: "toggle-track",
htmlFor: `${w.id}-toggle-precision`,
onMouseEnter: () => M("toggle-precision"),
children: [
/* @__PURE__ */ A("span", { className: "option-left", children: "Finite Precision" }),
/* @__PURE__ */ A("span", { className: "option-right", children: "Infinite Precision" })
]
}
)
] }),
/* @__PURE__ */ B("div", { className: "switch-item", children: [
/* @__PURE__ */ A(
"input",
{
id: `${w.id}-toggle-particles`,
className: "switch-input",
type: "checkbox",
checked: G.chunkParticles,
onChange: (g) => l("chunkParticles", g.target.checked)
}
),
/* @__PURE__ */ B(
"label",
{
className: "toggle-track",
htmlFor: `${w.id}-toggle-particles`,
onMouseEnter: () => M("toggle-particles"),
children: [
/* @__PURE__ */ A("span", { className: "option-left", children: "Point Particles" }),
/* @__PURE__ */ A("span", { className: "option-right", children: "Chunk Particles" })
]
}
)
] })
] }),
/* @__PURE__ */ A(
"button",
{
type: "button",
className: "action-button",
onClick: BA,
onMouseEnter: () => M("simulate"),
onFocus: () => M("simulate"),
children: "Simulate"
}
)
] }),
x === "result" && /* @__PURE__ */ B("div", { className: "slide slide-result", children: [
/* @__PURE__ */ B("div", { className: "bottom-container", children: [
/* @__PURE__ */ A("div", { className: "visualization-container", children: /* @__PURE__ */ A("div", { className: `art-canvas ${j.visualClass}`, children: /* @__PURE__ */ A(MA, { visualClass: j.visualClass }) }) }),
/* @__PURE__ */ B("div", { className: "result-container", children: [
/* @__PURE__ */ A("div", { className: "summary-box", children: /* @__PURE__ */ A("span", { className: `result-value result-${j.tone}`, children: j.outcome }) }),
/* @__PURE__ */ A("div", { className: "summary-box", children: /* @__PURE__ */ A("div", { className: "intermediate-result", children: j.intermediate }) }),
/* @__PURE__ */ A("span", { className: "result-description", children: j.description })
] })
] }),
/* @__PURE__ */ A(
"button",
{
type: "button",
className: "action-button secondary",
onClick: sA,
onMouseEnter: () => M("back"),
onFocus: () => M("back"),
children: "Back"
}
)
] }),
x === "processing" && /* @__PURE__ */ A("div", { className: "slide slide-processing", children: /* @__PURE__ */ B("div", { className: "processing-shell", children: [
/* @__PURE__ */ B("div", { className: "processing-header", children: [
/* @__PURE__ */ A("span", { className: "processing-led" }),
/* @__PURE__ */ A("h2", { children: "Computing Assumption Matrix" })
] }),
/* @__PURE__ */ A("div", { className: "processing-subtitle", children: "Applying Constructor Theoretic Constraints" }),
/* @__PURE__ */ B("div", { className: "processing-terminal", children: [
wA.map((g, Y) => /* @__PURE__ */ B("div", { className: "processing-line", children: [
/* @__PURE__ */ A("span", { className: "processing-prompt", children: ">" }),
/* @__PURE__ */ A("span", { children: g })
] }, `${g}-${Y}`)),
/* @__PURE__ */ B("div", { className: "processing-line processing-line-active", children: [
/* @__PURE__ */ A("span", { className: "processing-prompt", children: ">" }),
/* @__PURE__ */ A("span", { children: DA }),
/* @__PURE__ */ A("span", { className: "processing-cursor" })
] })
] })
] }) })
] }) }) }) }) });
}
const jA = {
name: "assumption-toggle",
displayName: "Assumption Toggle",
version: "1.0.0",
paramSchema: {
continuousUniverse: {
type: "boolean",
label: "Continuous Universe",
description: "Toggle between a discrete and continuous universe model.",
default: !0
},
infinitePrecision: {
type: "boolean",
label: "Infinite Precision",
description: "Toggle between finite and infinite precision.",
default: !0
},
chunkParticles: {
type: "boolean",
label: "Chunk Particles",
description: "Toggle between point particles and chunk particles.",
default: !1
}
},
defaultParams: {
continuousUniverse: !0,
infinitePrecision: !0,
chunkParticles: !1
}
};
export {
xA as default,
jA as metadata
};
//# sourceMappingURL=assumption-toggle.js.map