@classytic/labs 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -7
- package/dist/algorithms/GraphAlgorithmLab.d.mts +18 -4
- package/dist/algorithms/GraphAlgorithmLab.mjs +476 -109
- package/dist/algorithms/GraphView.d.mts +83 -3
- package/dist/algorithms/GraphView.mjs +386 -55
- package/dist/algorithms/GridPathLab.d.mts +24 -1
- package/dist/algorithms/GridPathLab.mjs +438 -115
- package/dist/algorithms/GrowthLab.d.mts +30 -2
- package/dist/algorithms/GrowthLab.mjs +239 -117
- package/dist/algorithms/HashLab.d.mts +12 -3
- package/dist/algorithms/HashLab.mjs +194 -61
- package/dist/algorithms/HeapDualView.d.mts +20 -2
- package/dist/algorithms/HeapDualView.mjs +91 -29
- package/dist/algorithms/HeapQuestLab.d.mts +27 -3
- package/dist/algorithms/HeapQuestLab.mjs +170 -40
- package/dist/algorithms/ListLab.d.mts +46 -5
- package/dist/algorithms/ListLab.mjs +551 -69
- package/dist/algorithms/SearchLab.d.mts +9 -1
- package/dist/algorithms/SearchLab.mjs +154 -47
- package/dist/algorithms/SortingLab.d.mts +12 -2
- package/dist/algorithms/SortingLab.mjs +271 -81
- package/dist/algorithms/TreeQuestLab.d.mts +26 -4
- package/dist/algorithms/TreeQuestLab.mjs +297 -140
- package/dist/algorithms/TreeScene.d.mts +3 -1
- package/dist/algorithms/TreeScene.mjs +26 -9
- package/dist/algorithms/contract.d.mts +131 -2
- package/dist/algorithms/core/index.d.mts +17 -13
- package/dist/algorithms/core/index.mjs +13 -10
- package/dist/algorithms/cost-derivation/core.d.mts +22 -5
- package/dist/algorithms/cost-derivation/core.mjs +181 -7
- package/dist/algorithms/cost-derivation/index.d.mts +1 -1
- package/dist/algorithms/cost-derivation/preset.d.mts +13 -3
- package/dist/algorithms/cost-derivation/preset.mjs +376 -21
- package/dist/algorithms/dp/CoinChangeLab.mjs +375 -0
- package/dist/algorithms/dp/ValueEntry.mjs +49 -0
- package/dist/algorithms/dp/coin-change.d.mts +90 -0
- package/dist/algorithms/dp/coin-change.mjs +213 -0
- package/dist/algorithms/dp/index.d.mts +3 -2
- package/dist/algorithms/dp/index.mjs +3 -2
- package/dist/algorithms/dp.d.mts +138 -2
- package/dist/algorithms/dp.mjs +748 -1
- package/dist/algorithms/graph/index.d.mts +3 -3
- package/dist/algorithms/graph/index.mjs +2 -2
- package/dist/algorithms/graph.d.mts +117 -4
- package/dist/algorithms/graph.mjs +1050 -24
- package/dist/algorithms/growth.d.mts +74 -2
- package/dist/algorithms/growth.mjs +146 -3
- package/dist/algorithms/hashing.d.mts +75 -12
- package/dist/algorithms/hashing.mjs +210 -49
- package/dist/algorithms/heap/index.d.mts +2 -2
- package/dist/algorithms/heap/index.mjs +2 -2
- package/dist/algorithms/heap.d.mts +81 -5
- package/dist/algorithms/heap.mjs +321 -112
- package/dist/algorithms/index.d.mts +21 -21
- package/dist/algorithms/index.mjs +16 -16
- package/dist/algorithms/lists.d.mts +46 -2
- package/dist/algorithms/lists.mjs +335 -37
- package/dist/algorithms/react/index.d.mts +6 -6
- package/dist/algorithms/react/index.mjs +5 -5
- package/dist/algorithms/recursion.d.mts +133 -0
- package/dist/algorithms/recursion.mjs +392 -0
- package/dist/algorithms/search.d.mts +19 -5
- package/dist/algorithms/search.mjs +47 -5
- package/dist/algorithms/sequence-contract.d.mts +2 -1
- package/dist/algorithms/sorting.d.mts +88 -7
- package/dist/algorithms/sorting.mjs +293 -41
- package/dist/algorithms/tree/index.d.mts +4 -4
- package/dist/algorithms/tree/index.mjs +2 -2
- package/dist/algorithms/tree-builder.d.mts +10 -3
- package/dist/algorithms/tree-builder.mjs +33 -12
- package/dist/algorithms/tree-contract.d.mts +41 -3
- package/dist/algorithms/tree.d.mts +15 -4
- package/dist/algorithms/tree.mjs +265 -20
- package/dist/algorithms/worlds/delivery/dispatch.mjs +192 -0
- package/dist/algorithms/worlds/delivery/keys.mjs +73 -0
- package/dist/algorithms/worlds/delivery/orders.mjs +169 -0
- package/dist/algorithms/worlds/delivery/roads.mjs +562 -0
- package/dist/algorithms/worlds/delivery/stops.mjs +106 -0
- package/dist/algorithms/worlds/index.d.mts +12 -0
- package/dist/algorithms/worlds/index.mjs +31 -0
- package/dist/algorithms/worlds/types.d.mts +33 -0
- package/dist/biology/cell-division/meiosis-scene.mjs +7 -3
- package/dist/biology/cell-division/preset.mjs +7 -5
- package/dist/biology/cell-sample-investigator.mjs +1 -1
- package/dist/biology/enzyme-rate/preset.mjs +24 -17
- package/dist/biology/photosynthesis-factors/preset.mjs +1 -1
- package/dist/blocks/catalog.d.mts +1 -1
- package/dist/build/CircuitEditor.mjs +19 -60
- package/dist/build/CircuitScene.mjs +33 -44
- package/dist/build/CircuitWorldScene.d.mts +15 -0
- package/dist/build/CircuitWorldScene.mjs +32 -0
- package/dist/build/ElectronicsWorkbenchEditor.d.mts +12 -0
- package/dist/build/ElectronicsWorkbenchEditor.mjs +120 -0
- package/dist/build/ElectronicsWorkbenchPlayer.d.mts +13 -0
- package/dist/build/ElectronicsWorkbenchPlayer.mjs +21 -0
- package/dist/build/contract.d.mts +2 -29
- package/dist/build/editor/index.d.mts +3 -4
- package/dist/build/editor/index.mjs +3 -3
- package/dist/build/editor-ops.mjs +1 -42
- package/dist/build/index.d.mts +7 -8
- package/dist/build/index.mjs +5 -7
- package/dist/build/part-state.mjs +40 -0
- package/dist/build/parts/ammeter.mjs +0 -7
- package/dist/build/parts/bulb.mjs +1 -7
- package/dist/build/parts/capacitor.mjs +1 -2
- package/dist/build/parts/cell.mjs +0 -7
- package/dist/build/parts/diode.mjs +0 -7
- package/dist/build/parts/index.mjs +3 -5
- package/dist/build/parts/mosfet.mjs +0 -12
- package/dist/build/parts/node.mjs +0 -1
- package/dist/build/parts/resistor.mjs +0 -6
- package/dist/build/parts/shared.mjs +9 -7
- package/dist/build/parts/switch.mjs +0 -7
- package/dist/build/runtime/index.d.mts +5 -6
- package/dist/build/runtime/index.mjs +3 -5
- package/dist/build/world-adapter.d.mts +15 -0
- package/dist/build/world-adapter.mjs +118 -0
- package/dist/build/world-editor-ops.d.mts +8 -0
- package/dist/build/world-editor-ops.mjs +200 -0
- package/dist/build/world-solution.mjs +30 -0
- package/dist/catalog/registry.d.mts +4 -3
- package/dist/catalog/templates.mjs +2 -2
- package/dist/chem/air-composition.mjs +28 -0
- package/dist/chem/battery.mjs +38 -337
- package/dist/chem/bohr-atom.d.mts +3 -11
- package/dist/chem/bohr-atom.mjs +2 -259
- package/dist/chem/crystal-lattice/activity.d.mts +1 -0
- package/dist/chem/crystal-lattice/activity.mjs +220 -1
- package/dist/chem/crystal-lattice/core.mjs +14 -4
- package/dist/chem/crystal-lattice/index.d.mts +2 -1
- package/dist/chem/crystal-lattice/preset.d.mts +6 -12
- package/dist/chem/crystal-lattice/preset.mjs +143 -214
- package/dist/chem/crystal-lattice/scene.d.mts +27 -0
- package/dist/chem/crystal-lattice/scene.mjs +405 -0
- package/dist/chem/diffusion/asset.mjs +1 -1
- package/dist/chem/diffusion/preset.mjs +1 -1
- package/dist/chem/electrochem/index.d.mts +2 -1
- package/dist/chem/electrochem/preset.mjs +43 -31
- package/dist/chem/electrochem/scene.d.mts +40 -1
- package/dist/chem/electrochem/scene.mjs +33 -57
- package/dist/chem/electrochem/world.d.mts +40 -0
- package/dist/chem/electrochem/world.mjs +155 -0
- package/dist/chem/equation-conservation-desk.mjs +2 -2
- package/dist/chem/equilibrium/preset.mjs +122 -325
- package/dist/chem/equilibrium/scene.mjs +234 -0
- package/dist/chem/equilibrium/world.mjs +230 -0
- package/dist/chem/evidence-scenes.mjs +198 -1
- package/dist/chem/formula-forge.d.mts +2 -2
- package/dist/chem/formula-forge.mjs +19 -129
- package/dist/chem/gas-box/activity.d.mts +5 -0
- package/dist/chem/gas-box/activity.mjs +213 -0
- package/dist/chem/gas-box/preset.d.mts +7 -3
- package/dist/chem/gas-box/preset.mjs +244 -422
- package/dist/chem/gas-box/scene.mjs +178 -0
- package/dist/chem/gas-box/world.d.mts +5 -0
- package/dist/chem/gas-box/world.mjs +219 -0
- package/dist/chem/index.d.mts +19 -10
- package/dist/chem/index.mjs +3 -2
- package/dist/chem/industrial-process-lab.d.mts +26 -2
- package/dist/chem/industrial-process-lab.mjs +51 -18
- package/dist/chem/kinetics/preset.d.mts +4 -2
- package/dist/chem/kinetics/preset.mjs +198 -351
- package/dist/chem/kinetics/scene.mjs +163 -0
- package/dist/chem/kinetics/world.d.mts +5 -0
- package/dist/chem/kinetics/world.mjs +309 -0
- package/dist/chem/metal-acid.d.mts +25 -0
- package/dist/chem/metal-acid.mjs +164 -0
- package/dist/chem/mole-factory.d.mts +2 -2
- package/dist/chem/mole-factory.mjs +43 -86
- package/dist/chem/molecular-geometry/activity.mjs +6 -6
- package/dist/chem/molecular-geometry/preset.mjs +49 -24
- package/dist/chem/o-level-concepts.d.mts +48 -5
- package/dist/chem/o-level-concepts.mjs +417 -121
- package/dist/chem/orbital-overlap/activity.mjs +2 -1
- package/dist/chem/orbital-overlap/preset.mjs +54 -24
- package/dist/chem/orbitals/activity.mjs +5 -5
- package/dist/chem/orbitals/core.mjs +2 -2
- package/dist/chem/orbitals/preset.mjs +87 -63
- package/dist/chem/particle-theatre.d.mts +5 -3
- package/dist/chem/particle-theatre.mjs +169 -327
- package/dist/chem/periodic-trends/preset.d.mts +16 -2
- package/dist/chem/periodic-trends/preset.mjs +18 -9
- package/dist/chem/ratio-normalizer/preset.mjs +2 -2
- package/dist/chem/reaction-lab/index.d.mts +2 -0
- package/dist/chem/reaction-lab/model.mjs +83 -0
- package/dist/chem/reaction-lab/preset.d.mts +14 -0
- package/dist/chem/reaction-lab/preset.mjs +152 -0
- package/dist/chem/reaction-lab/scene.mjs +139 -0
- package/dist/chem/reaction-lab/world.mjs +96 -0
- package/dist/chem/reaction-profile.mjs +7 -3
- package/dist/chem/solubility-kitchen.d.mts +2 -2
- package/dist/chem/solubility-kitchen.mjs +55 -107
- package/dist/chem/solution/field.mjs +1 -1
- package/dist/chem/solution-mixer.d.mts +2 -2
- package/dist/chem/solution-mixer.mjs +54 -110
- package/dist/chem/species-workshop.d.mts +2 -2
- package/dist/chem/species-workshop.mjs +16 -44
- package/dist/chem/stereochemistry/preset.mjs +22 -18
- package/dist/chem/stoichiometry/preset.mjs +1 -1
- package/dist/chem/structure-detective.d.mts +2 -3
- package/dist/chem/structure-detective.mjs +46 -158
- package/dist/chem/titration/preset.mjs +152 -128
- package/dist/chem/visual/atom.mjs +8 -9
- package/dist/circuits/ac-dc/asset.mjs +59 -40
- package/dist/circuits/ac-dc/index.d.mts +1 -0
- package/dist/circuits/ac-dc/model.d.mts +1 -0
- package/dist/circuits/ac-dc/model.mjs +26 -0
- package/dist/circuits/ac-dc/preset.mjs +77 -66
- package/dist/circuits/ac-response/preset.mjs +41 -13
- package/dist/circuits/bjt-amplifier/activity-plan.mjs +84 -0
- package/dist/circuits/bjt-amplifier/index.d.mts +2 -0
- package/dist/circuits/bjt-amplifier/preset.d.mts +16 -0
- package/dist/circuits/bjt-amplifier/preset.mjs +271 -0
- package/dist/circuits/brownout/preset.mjs +17 -64
- package/dist/circuits/capacitor-energy/index.d.mts +2 -0
- package/dist/circuits/capacitor-energy/preset.d.mts +11 -0
- package/dist/circuits/capacitor-energy/preset.mjs +185 -0
- package/dist/circuits/capacitor-leak/preset.mjs +101 -168
- package/dist/circuits/cell-combination/preset.mjs +1 -1
- package/dist/circuits/circuit/index.d.mts +2 -3
- package/dist/circuits/circuit/preset.d.mts +3 -6
- package/dist/circuits/circuit/preset.mjs +188 -202
- package/dist/circuits/circuit-lab.mjs +56 -237
- package/dist/circuits/cmos-gate/inverter.mjs +5 -5
- package/dist/circuits/cmos-gate/model.mjs +261 -181
- package/dist/circuits/cmos-gate/nand.mjs +4 -4
- package/dist/circuits/cmos-gate/nor.mjs +4 -4
- package/dist/circuits/cmos-gate/rnmos-not.mjs +4 -4
- package/dist/circuits/diode/preset.mjs +44 -104
- package/dist/circuits/energy-cost/preset.mjs +1 -1
- package/dist/circuits/energy-flow/preset.mjs +156 -0
- package/dist/circuits/first-order/preset.mjs +196 -0
- package/dist/circuits/index.d.mts +10 -3
- package/dist/circuits/index.mjs +6 -3
- package/dist/circuits/kirchhoff/core.d.mts +1 -9
- package/dist/circuits/kirchhoff/core.mjs +70 -62
- package/dist/circuits/kirchhoff/preset.d.mts +1 -16
- package/dist/circuits/kirchhoff/preset.mjs +112 -237
- package/dist/circuits/meter-conversion/preset.mjs +13 -22
- package/dist/circuits/network-reduction/preset.mjs +1 -1
- package/dist/circuits/null-balance/core.mjs +1 -13
- package/dist/circuits/null-balance/preset.mjs +26 -19
- package/dist/circuits/op-amp-comparator/activity-plan.mjs +83 -0
- package/dist/circuits/op-amp-comparator/index.d.mts +2 -0
- package/dist/circuits/op-amp-comparator/preset.d.mts +13 -0
- package/dist/circuits/op-amp-comparator/preset.mjs +183 -0
- package/dist/circuits/op-amp-feedback/activity-plan.mjs +81 -0
- package/dist/circuits/op-amp-feedback/index.d.mts +2 -0
- package/dist/circuits/op-amp-feedback/preset.d.mts +16 -0
- package/dist/circuits/op-amp-feedback/preset.mjs +251 -0
- package/dist/circuits/potential-divider/core.d.mts +1 -13
- package/dist/circuits/potential-divider/core.mjs +75 -18
- package/dist/circuits/potential-divider/preset.mjs +103 -175
- package/dist/circuits/rc-charging/preset.d.mts +3 -2
- package/dist/circuits/rc-charging/preset.mjs +27 -566
- package/dist/circuits/rectifier/preset.mjs +184 -0
- package/dist/circuits/regulated-supply/preset.mjs +196 -0
- package/dist/circuits/semiconductor/bjt-inside.mjs +16 -10
- package/dist/circuits/semiconductor/conduction.mjs +20 -11
- package/dist/circuits/semiconductor/diode-world.mjs +62 -0
- package/dist/circuits/semiconductor/hall-effect.mjs +40 -27
- package/dist/circuits/semiconductor/mosfet-inside.mjs +22 -66
- package/dist/circuits/semiconductor/pn-junction.mjs +20 -38
- package/dist/circuits/semiconductor/shared.mjs +15 -12
- package/dist/circuits/semiconductor/silicon-lattice.mjs +12 -9
- package/dist/circuits/smoothing/preset.mjs +178 -0
- package/dist/circuits/transistor/activity-plan.mjs +16 -36
- package/dist/circuits/transistor/preset.d.mts +0 -1
- package/dist/circuits/transistor/preset.mjs +168 -353
- package/dist/commerce/accounting/balance-off/balance-figure.mjs +289 -0
- package/dist/commerce/accounting/balance-off/core.mjs +316 -0
- package/dist/commerce/accounting/balance-off/preset.mjs +717 -0
- package/dist/commerce/accounting/books/chart.d.mts +14 -0
- package/dist/commerce/accounting/books/chart.mjs +184 -0
- package/dist/commerce/accounting/books/entry.d.mts +26 -0
- package/dist/commerce/accounting/books/entry.mjs +161 -0
- package/dist/commerce/accounting/books/errors.mjs +214 -0
- package/dist/commerce/accounting/books/ledger.d.mts +23 -0
- package/dist/commerce/accounting/books/ledger.mjs +165 -0
- package/dist/commerce/accounting/books/world.d.mts +16 -0
- package/dist/commerce/accounting/books/world.mjs +53 -0
- package/dist/commerce/accounting/books/worlds/kalam.mjs +566 -0
- package/dist/commerce/accounting/debit-credit-sprint/core.mjs +148 -0
- package/dist/commerce/accounting/debit-credit-sprint/preset.mjs +298 -0
- package/dist/commerce/accounting/entry-desk/core.mjs +59 -0
- package/dist/commerce/accounting/entry-desk/preset.mjs +317 -0
- package/dist/commerce/accounting/equation-balance.mjs +1 -1
- package/dist/commerce/accounting/journal-poster.d.mts +2 -1
- package/dist/commerce/accounting/journal-poster.mjs +19 -16
- package/dist/commerce/accounting/ledger-detective/core.mjs +306 -0
- package/dist/commerce/accounting/ledger-detective/preset.mjs +741 -0
- package/dist/commerce/economics/demand-shift-vs-move.mjs +1 -1
- package/dist/commerce/economics/elasticity-revenue.mjs +1 -1
- package/dist/commerce/economics/market-equilibrium.mjs +1 -1
- package/dist/commerce/finance/apportion.d.mts +3 -1
- package/dist/commerce/finance/apportion.mjs +15 -15
- package/dist/commerce/finance/break-even.mjs +1 -1
- package/dist/commerce/finance/club-subscriptions/preset.mjs +1 -1
- package/dist/commerce/finance/compound-interest.mjs +1 -1
- package/dist/commerce/finance/depreciation.mjs +1 -1
- package/dist/commerce/finance/limited-company.mjs +1 -1
- package/dist/commerce/finance/supply-chain.mjs +1 -1
- package/dist/core/index.d.mts +1 -2
- package/dist/core/index.mjs +1 -2
- package/dist/core/rng.d.mts +2 -21
- package/dist/core/rng.mjs +2 -38
- package/dist/core/tex.mjs +1 -1
- package/dist/databases/visuals/index-detective-board.d.mts +0 -2
- package/dist/deep-learning/core/attention.d.mts +46 -5
- package/dist/deep-learning/core/attention.mjs +45 -20
- package/dist/deep-learning/core/backprop-graph.d.mts +31 -0
- package/dist/deep-learning/core/backprop-graph.mjs +162 -0
- package/dist/deep-learning/core/bpe.d.mts +11 -0
- package/dist/deep-learning/core/bpe.mjs +25 -0
- package/dist/deep-learning/core/causal-mask.d.mts +54 -2
- package/dist/deep-learning/core/causal-mask.mjs +63 -18
- package/dist/deep-learning/core/char-run.d.mts +156 -0
- package/dist/deep-learning/core/char-run.mjs +318 -0
- package/dist/deep-learning/core/context-window.d.mts +31 -3
- package/dist/deep-learning/core/context-window.mjs +40 -10
- package/dist/deep-learning/core/convolution.d.mts +50 -5
- package/dist/deep-learning/core/convolution.mjs +83 -11
- package/dist/deep-learning/core/dense-layer.d.mts +38 -7
- package/dist/deep-learning/core/dense-layer.mjs +101 -24
- package/dist/deep-learning/core/embedding-neighborhood.d.mts +57 -2
- package/dist/deep-learning/core/embedding-neighborhood.mjs +54 -9
- package/dist/deep-learning/core/encoder-decoder.d.mts +28 -2
- package/dist/deep-learning/core/encoder-decoder.mjs +43 -12
- package/dist/deep-learning/core/feed-forward-network.d.mts +43 -2
- package/dist/deep-learning/core/feed-forward-network.mjs +58 -14
- package/dist/deep-learning/core/gradient-run.d.mts +17 -1
- package/dist/deep-learning/core/gradient-run.mjs +7 -1
- package/dist/deep-learning/core/gradient-step.d.mts +16 -1
- package/dist/deep-learning/core/gradient-step.mjs +34 -2
- package/dist/deep-learning/core/layer-normalization.d.mts +28 -1
- package/dist/deep-learning/core/layer-normalization.mjs +48 -13
- package/dist/deep-learning/core/learning-loop.d.mts +14 -1
- package/dist/deep-learning/core/learning-loop.mjs +20 -1
- package/dist/deep-learning/core/linear-algebra.d.mts +27 -2
- package/dist/deep-learning/core/linear-algebra.mjs +27 -9
- package/dist/deep-learning/core/linear-fit.d.mts +20 -1
- package/dist/deep-learning/core/linear-fit.mjs +36 -10
- package/dist/deep-learning/core/loss.d.mts +22 -1
- package/dist/deep-learning/core/loss.mjs +15 -2
- package/dist/deep-learning/core/memory-relay.d.mts +60 -2
- package/dist/deep-learning/core/memory-relay.mjs +202 -13
- package/dist/deep-learning/core/multi-head-attention.d.mts +58 -5
- package/dist/deep-learning/core/multi-head-attention.mjs +87 -18
- package/dist/deep-learning/core/multimodal-alignment.d.mts +46 -5
- package/dist/deep-learning/core/multimodal-alignment.mjs +57 -14
- package/dist/deep-learning/core/neural-trace.d.mts +24 -1
- package/dist/deep-learning/core/neural-trace.mjs +37 -9
- package/dist/deep-learning/core/overfit-gap.d.mts +28 -0
- package/dist/deep-learning/core/overfit-gap.mjs +197 -0
- package/dist/deep-learning/core/position.d.mts +43 -4
- package/dist/deep-learning/core/position.mjs +66 -28
- package/dist/deep-learning/core/query-key-value.d.mts +53 -16
- package/dist/deep-learning/core/query-key-value.mjs +44 -11
- package/dist/deep-learning/core/residual-stream.d.mts +22 -1
- package/dist/deep-learning/core/residual-stream.mjs +22 -2
- package/dist/deep-learning/core/reward-groups.d.mts +19 -0
- package/dist/deep-learning/core/reward-groups.mjs +110 -0
- package/dist/deep-learning/core/scaled-dot-product-attention.d.mts +49 -2
- package/dist/deep-learning/core/scaled-dot-product-attention.mjs +105 -18
- package/dist/deep-learning/core/tiny-network.d.mts +28 -0
- package/dist/deep-learning/core/tiny-network.mjs +32 -0
- package/dist/deep-learning/core/token-generation.d.mts +52 -3
- package/dist/deep-learning/core/token-generation.mjs +77 -5
- package/dist/deep-learning/core/transformer-block.d.mts +25 -8
- package/dist/deep-learning/core/transformer-block.mjs +47 -2
- package/dist/deep-learning/core/unembedding.d.mts +31 -3
- package/dist/deep-learning/core/unembedding.mjs +110 -8
- package/dist/deep-learning/foundation/activation-gates.d.mts +13 -3
- package/dist/deep-learning/foundation/activation-gates.mjs +126 -41
- package/dist/deep-learning/foundation/affine-neuron.d.mts +16 -3
- package/dist/deep-learning/foundation/affine-neuron.mjs +115 -43
- package/dist/deep-learning/foundation/anomaly-detector.d.mts +29 -3
- package/dist/deep-learning/foundation/anomaly-detector.mjs +240 -50
- package/dist/deep-learning/foundation/attention-routing.d.mts +14 -3
- package/dist/deep-learning/foundation/attention-routing.mjs +103 -30
- package/dist/deep-learning/foundation/autoencoder.d.mts +30 -3
- package/dist/deep-learning/foundation/autoencoder.mjs +115 -35
- package/dist/deep-learning/foundation/backprop-tracer.d.mts +38 -0
- package/dist/deep-learning/foundation/backprop-tracer.mjs +462 -0
- package/dist/deep-learning/foundation/causal-mask.d.mts +15 -3
- package/dist/deep-learning/foundation/causal-mask.mjs +128 -33
- package/dist/deep-learning/foundation/char-model.d.mts +49 -0
- package/dist/deep-learning/foundation/char-model.mjs +717 -0
- package/dist/deep-learning/foundation/context-window.d.mts +22 -3
- package/dist/deep-learning/foundation/context-window.mjs +113 -27
- package/dist/deep-learning/foundation/denoising.d.mts +29 -3
- package/dist/deep-learning/foundation/denoising.mjs +116 -31
- package/dist/deep-learning/foundation/embedding-neighborhood.d.mts +15 -3
- package/dist/deep-learning/foundation/embedding-neighborhood.mjs +107 -31
- package/dist/deep-learning/foundation/encoder-decoder.d.mts +27 -3
- package/dist/deep-learning/foundation/encoder-decoder.mjs +192 -29
- package/dist/deep-learning/foundation/feature-map.d.mts +29 -4
- package/dist/deep-learning/foundation/feature-map.mjs +168 -53
- package/dist/deep-learning/foundation/feed-forward-network.d.mts +17 -2
- package/dist/deep-learning/foundation/feed-forward-network.mjs +146 -56
- package/dist/deep-learning/foundation/fit-evidence.d.mts +11 -3
- package/dist/deep-learning/foundation/fit-evidence.mjs +116 -44
- package/dist/deep-learning/foundation/foundation-support.mjs +29 -0
- package/dist/deep-learning/foundation/gradient-step.d.mts +11 -2
- package/dist/deep-learning/foundation/gradient-step.mjs +114 -45
- package/dist/deep-learning/foundation/lab-goal.mjs +136 -0
- package/dist/deep-learning/foundation/latent-space.d.mts +26 -3
- package/dist/deep-learning/foundation/latent-space.mjs +138 -30
- package/dist/deep-learning/foundation/layer-normalization.d.mts +10 -1
- package/dist/deep-learning/foundation/layer-normalization.mjs +125 -48
- package/dist/deep-learning/foundation/learning-loop.d.mts +11 -2
- package/dist/deep-learning/foundation/learning-loop.mjs +112 -34
- package/dist/deep-learning/foundation/loss-error.d.mts +12 -2
- package/dist/deep-learning/foundation/loss-error.mjs +90 -35
- package/dist/deep-learning/foundation/matrix-vector.d.mts +16 -4
- package/dist/deep-learning/foundation/matrix-vector.mjs +99 -47
- package/dist/deep-learning/foundation/memory-relay.d.mts +28 -3
- package/dist/deep-learning/foundation/memory-relay.mjs +159 -28
- package/dist/deep-learning/foundation/multi-head-attention.d.mts +15 -3
- package/dist/deep-learning/foundation/multi-head-attention.mjs +131 -47
- package/dist/deep-learning/foundation/multimodal-alignment.d.mts +38 -3
- package/dist/deep-learning/foundation/multimodal-alignment.mjs +179 -38
- package/dist/deep-learning/foundation/overfit-gap.d.mts +36 -0
- package/dist/deep-learning/foundation/overfit-gap.mjs +651 -0
- package/dist/deep-learning/foundation/pixel-filter.d.mts +30 -3
- package/dist/deep-learning/foundation/pixel-filter.mjs +213 -26
- package/dist/deep-learning/foundation/position.d.mts +16 -3
- package/dist/deep-learning/foundation/position.mjs +131 -30
- package/dist/deep-learning/foundation/query-key-value.d.mts +15 -3
- package/dist/deep-learning/foundation/query-key-value.mjs +131 -37
- package/dist/deep-learning/foundation/residual-stream.d.mts +11 -2
- package/dist/deep-learning/foundation/residual-stream.mjs +104 -25
- package/dist/deep-learning/foundation/reward-groups.d.mts +53 -0
- package/dist/deep-learning/foundation/reward-groups.mjs +808 -0
- package/dist/deep-learning/foundation/scaled-dot-product-attention.d.mts +16 -2
- package/dist/deep-learning/foundation/scaled-dot-product-attention.mjs +135 -110
- package/dist/deep-learning/foundation/tiny-network.d.mts +26 -4
- package/dist/deep-learning/foundation/tiny-network.mjs +221 -30
- package/dist/deep-learning/foundation/token-generation.d.mts +26 -3
- package/dist/deep-learning/foundation/token-generation.mjs +186 -32
- package/dist/deep-learning/foundation/tokenizer-bpe.d.mts +38 -0
- package/dist/deep-learning/foundation/tokenizer-bpe.mjs +395 -0
- package/dist/deep-learning/foundation/training-loop.d.mts +12 -2
- package/dist/deep-learning/foundation/training-loop.mjs +110 -42
- package/dist/deep-learning/foundation/transformer-block.d.mts +16 -1
- package/dist/deep-learning/foundation/transformer-block.mjs +179 -60
- package/dist/deep-learning/foundation/typed-number.mjs +80 -0
- package/dist/deep-learning/foundation/unembedding.d.mts +22 -3
- package/dist/deep-learning/foundation/unembedding.mjs +156 -101
- package/dist/deep-learning/index.d.mts +39 -27
- package/dist/deep-learning/index.mjs +32 -20
- package/dist/deep-learning/schema-parts.mjs +26 -0
- package/dist/deep-learning/visuals/anomaly-diagram.d.mts +5 -3
- package/dist/deep-learning/visuals/anomaly-diagram.mjs +44 -9
- package/dist/deep-learning/visuals/attention-roles.mjs +21 -0
- package/dist/deep-learning/visuals/attention-routing-diagram.mjs +42 -43
- package/dist/deep-learning/visuals/autoencoder-diagram.d.mts +6 -3
- package/dist/deep-learning/visuals/autoencoder-diagram.mjs +17 -7
- package/dist/deep-learning/visuals/backprop-graph-diagram.d.mts +23 -0
- package/dist/deep-learning/visuals/backprop-graph-diagram.mjs +156 -0
- package/dist/deep-learning/visuals/causal-mask-diagram.d.mts +4 -1
- package/dist/deep-learning/visuals/causal-mask-diagram.mjs +101 -71
- package/dist/deep-learning/visuals/context-window-diagram.d.mts +5 -1
- package/dist/deep-learning/visuals/context-window-diagram.mjs +43 -38
- package/dist/deep-learning/visuals/convolution-diagram.d.mts +8 -3
- package/dist/deep-learning/visuals/convolution-diagram.mjs +17 -11
- package/dist/deep-learning/visuals/denoising-diagram.d.mts +4 -2
- package/dist/deep-learning/visuals/denoising-diagram.mjs +8 -4
- package/dist/deep-learning/visuals/embedding-neighborhood-diagram.d.mts +4 -2
- package/dist/deep-learning/visuals/embedding-neighborhood-diagram.mjs +16 -7
- package/dist/deep-learning/visuals/encoder-decoder-diagram.d.mts +13 -4
- package/dist/deep-learning/visuals/encoder-decoder-diagram.mjs +243 -183
- package/dist/deep-learning/visuals/feature-map-diagram.d.mts +7 -2
- package/dist/deep-learning/visuals/feature-map-diagram.mjs +60 -39
- package/dist/deep-learning/visuals/feed-forward-workshop-diagram.d.mts +2 -2
- package/dist/deep-learning/visuals/feed-forward-workshop-diagram.mjs +9 -5
- package/dist/deep-learning/visuals/latent-space-diagram.d.mts +10 -2
- package/dist/deep-learning/visuals/latent-space-diagram.mjs +56 -31
- package/dist/deep-learning/visuals/layer-normalization-diagram.d.mts +2 -2
- package/dist/deep-learning/visuals/layer-normalization-diagram.mjs +21 -25
- package/dist/deep-learning/visuals/learning-loop-diagram.mjs +4 -4
- package/dist/deep-learning/visuals/memory-relay-diagram.d.mts +4 -3
- package/dist/deep-learning/visuals/memory-relay-diagram.mjs +125 -62
- package/dist/deep-learning/visuals/multi-head-attention-diagram.d.mts +3 -2
- package/dist/deep-learning/visuals/multi-head-attention-diagram.mjs +52 -46
- package/dist/deep-learning/visuals/multimodal-alignment-diagram.d.mts +4 -3
- package/dist/deep-learning/visuals/multimodal-alignment-diagram.mjs +71 -37
- package/dist/deep-learning/visuals/neuron-diagram.d.mts +8 -0
- package/dist/deep-learning/visuals/neuron-diagram.mjs +245 -147
- package/dist/deep-learning/visuals/pixel-window-diagram.mjs +69 -0
- package/dist/deep-learning/visuals/position-diagram.d.mts +5 -1
- package/dist/deep-learning/visuals/position-diagram.mjs +48 -27
- package/dist/deep-learning/visuals/query-key-value-diagram.mjs +54 -50
- package/dist/deep-learning/visuals/residual-stream-diagram.d.mts +3 -1
- package/dist/deep-learning/visuals/residual-stream-diagram.mjs +16 -11
- package/dist/deep-learning/visuals/scaled-attention-mixer.mjs +21 -24
- package/dist/deep-learning/visuals/token-generation-diagram.d.mts +7 -1
- package/dist/deep-learning/visuals/token-generation-diagram.mjs +7 -5
- package/dist/deep-learning/visuals/training-trail-diagram.mjs +100 -12
- package/dist/deep-learning/visuals/transformer-block-diagram.d.mts +4 -1
- package/dist/deep-learning/visuals/transformer-block-diagram.mjs +20 -20
- package/dist/deep-learning/visuals/unembedding-diagram.d.mts +5 -2
- package/dist/deep-learning/visuals/unembedding-diagram.mjs +19 -14
- package/dist/deep-learning/worlds/word-list-ids.d.mts +9 -0
- package/dist/deep-learning/worlds/word-list-ids.mjs +9 -0
- package/dist/deep-learning/worlds/word-lists.d.mts +12 -0
- package/dist/deep-learning/worlds/word-lists.mjs +221 -0
- package/dist/diagrams/graph/GraphDiagram.mjs +266 -0
- package/dist/diagrams/graph/core.mjs +52 -0
- package/dist/diagrams/graph/schema.mjs +78 -0
- package/dist/diagrams/graph/spec.d.mts +88 -0
- package/dist/diagrams/index.d.mts +8 -0
- package/dist/diagrams/index.mjs +18 -0
- package/dist/diagrams/magnetism/MagnetismDiagram.d.mts +1 -0
- package/dist/diagrams/magnetism/MagnetismDiagram.mjs +1702 -0
- package/dist/diagrams/magnetism/core.mjs +586 -0
- package/dist/diagrams/magnetism/schema.mjs +236 -0
- package/dist/diagrams/magnetism/spec.d.mts +295 -0
- package/dist/diagrams/rich.mjs +27 -0
- package/dist/diagrams/schema.mjs +11 -0
- package/dist/discrete/arrangements/preset.mjs +3 -3
- package/dist/discrete/bayes/preset.d.mts +18 -2
- package/dist/discrete/bayes/preset.mjs +87 -24
- package/dist/discrete/binomial/preset.mjs +68 -28
- package/dist/discrete/combination-studio/figure.mjs +13 -9
- package/dist/discrete/combination-studio/preset.mjs +25 -39
- package/dist/discrete/core/enumerate.d.mts +34 -0
- package/dist/discrete/core/enumerate.mjs +128 -0
- package/dist/discrete/core/exact.d.mts +24 -0
- package/dist/discrete/core/exact.mjs +60 -0
- package/dist/discrete/core/index.d.mts +12 -0
- package/dist/discrete/core/rng.d.mts +2 -0
- package/dist/discrete/core/rng.mjs +3 -0
- package/dist/discrete/core/solve.d.mts +59 -0
- package/dist/discrete/core/solve.mjs +296 -0
- package/dist/discrete/core/special.d.mts +32 -0
- package/dist/discrete/core/special.mjs +101 -0
- package/dist/discrete/core/twelvefold.d.mts +33 -0
- package/dist/discrete/core/twelvefold.mjs +136 -0
- package/dist/discrete/counting-slots/preset.d.mts +7 -1
- package/dist/discrete/counting-slots/preset.mjs +48 -16
- package/dist/discrete/counting-tree/preset.mjs +1 -1
- package/dist/discrete/expected-value/preset.mjs +2 -2
- package/dist/discrete/graded-ask.mjs +184 -0
- package/dist/discrete/hypergeometric/preset.mjs +75 -25
- package/dist/discrete/index.d.mts +8 -2
- package/dist/discrete/index.mjs +7 -2
- package/dist/discrete/karnaugh/preset.mjs +64 -52
- package/dist/discrete/lln/asset.mjs +32 -35
- package/dist/discrete/lln/preset.mjs +4 -6
- package/dist/discrete/monte-carlo/preset.d.mts +22 -3
- package/dist/discrete/monte-carlo/preset.mjs +59 -13
- package/dist/discrete/monty-hall/preset.mjs +40 -124
- package/dist/discrete/monty-hall/world.mjs +234 -0
- package/dist/discrete/outcome-builder/preset.mjs +1 -1
- package/dist/discrete/pascal/preset.mjs +43 -24
- package/dist/discrete/proof-builder/preset.mjs +1 -1
- package/dist/discrete/sample-space/preset.mjs +1 -1
- package/dist/discrete/selection/preset.mjs +11 -11
- package/dist/discrete/statement-logic/core.d.mts +15 -1
- package/dist/discrete/statement-logic/preset.mjs +136 -3
- package/dist/discrete/truth-table/preset.mjs +3 -2
- package/dist/discrete/venn/preset.d.mts +1 -0
- package/dist/discrete/venn/preset.mjs +44 -20
- package/dist/distributed-systems/visuals/shard-key-board.d.mts +0 -2
- package/dist/domains/accounting/apportion/manifest.mjs +1 -0
- package/dist/domains/accounting/balance-off/manifest.mjs +87 -0
- package/dist/domains/accounting/balance-off/runtime.mjs +5 -0
- package/dist/domains/accounting/bank-reconciliation/runtime.mjs +1 -5
- package/dist/domains/accounting/bank-reconciliation/scene.mjs +52 -40
- package/dist/domains/accounting/debit-credit-sprint/manifest.mjs +105 -0
- package/dist/domains/accounting/debit-credit-sprint/runtime.mjs +5 -0
- package/dist/domains/accounting/entry-desk/manifest.mjs +110 -0
- package/dist/domains/accounting/entry-desk/runtime.mjs +5 -0
- package/dist/domains/accounting/integrated-budget-mission/activity.mjs +3 -3
- package/dist/domains/accounting/integrated-budget-mission/manifest.mjs +5 -2
- package/dist/domains/accounting/integrated-budget-mission/runtime.mjs +60 -2
- package/dist/domains/accounting/inventory-costing/activity.mjs +2 -2
- package/dist/domains/accounting/inventory-costing/manifest.mjs +10 -5
- package/dist/domains/accounting/inventory-costing/runtime.mjs +42 -24
- package/dist/domains/accounting/inventory-costing/scene.mjs +2 -2
- package/dist/domains/accounting/journal-poster/manifest.mjs +1 -0
- package/dist/domains/accounting/journal-poster/runtime.mjs +1 -0
- package/dist/domains/accounting/ledger-detective/manifest.mjs +166 -0
- package/dist/domains/accounting/ledger-detective/runtime.mjs +12 -0
- package/dist/domains/accounting/variance-detective/manifest.mjs +7 -1
- package/dist/domains/accounting/variance-detective/runtime.mjs +84 -20
- package/dist/domains/activity-map.mjs +59 -53
- package/dist/domains/block-loaders.mjs +1 -0
- package/dist/domains/block-sets/accounting.mjs +43 -35
- package/dist/domains/block-sets/chem.mjs +89 -75
- package/dist/domains/block-sets/circuits.mjs +31 -27
- package/dist/domains/block-sets/exam.mjs +2 -1
- package/dist/domains/block-sets/ict.mjs +26 -20
- package/dist/domains/block-sets/math.mjs +174 -66
- package/dist/domains/block-sets/ml.mjs +51 -35
- package/dist/domains/block-sets/physics.mjs +247 -103
- package/dist/domains/block-sets/revision.mjs +21 -0
- package/dist/domains/catalog-map.mjs +8511 -4242
- package/dist/domains/chem/acid-base/titration/manifest.mjs +62 -0
- package/dist/domains/chem/acid-base/titration/runtime.mjs +5 -0
- package/dist/domains/chem/acid-base/titration-run/activity.mjs +54 -0
- package/dist/domains/chem/acid-base/titration-run/live-scene.mjs +161 -0
- package/dist/domains/chem/acid-base/titration-run/manifest.mjs +87 -0
- package/dist/domains/chem/acid-base/titration-run/model.mjs +344 -0
- package/dist/domains/chem/acid-base/titration-run/runtime.mjs +274 -0
- package/dist/domains/chem/acid-base/titration-run/scene.mjs +191 -0
- package/dist/domains/chem/analysis/apparatus-builder/manifest.mjs +101 -0
- package/dist/domains/chem/analysis/apparatus-builder/model.mjs +411 -0
- package/dist/domains/chem/analysis/apparatus-builder/runtime.mjs +221 -0
- package/dist/domains/chem/analysis/apparatus-builder/scene.mjs +834 -0
- package/dist/domains/chem/analysis/apparatus-choice/manifest.mjs +64 -0
- package/dist/domains/chem/analysis/apparatus-choice/runtime.mjs +5 -0
- package/dist/domains/chem/analysis/change-detective/activity.mjs +81 -0
- package/dist/domains/chem/analysis/change-detective/manifest.mjs +46 -0
- package/dist/domains/chem/analysis/change-detective/model.mjs +65 -0
- package/dist/domains/chem/analysis/change-detective/runtime.mjs +73 -0
- package/dist/domains/chem/analysis/change-detective/scene.mjs +415 -0
- package/dist/domains/chem/analysis/chem-qualitative-analysis/activity.mjs +95 -0
- package/dist/domains/chem/analysis/chem-qualitative-analysis/manifest.mjs +68 -0
- package/dist/domains/chem/analysis/chem-qualitative-analysis/runtime.mjs +303 -0
- package/dist/domains/chem/analysis/chromatography-plate/activity.mjs +87 -0
- package/dist/domains/chem/analysis/chromatography-plate/manifest.mjs +59 -0
- package/dist/domains/chem/analysis/chromatography-plate/model.mjs +180 -0
- package/dist/domains/chem/analysis/chromatography-plate/runtime.mjs +200 -0
- package/dist/domains/chem/analysis/chromatography-plate/scene.mjs +292 -0
- package/dist/domains/chem/analysis/complex-colour/activity.mjs +94 -0
- package/dist/domains/chem/analysis/complex-colour/manifest.mjs +53 -0
- package/dist/domains/chem/analysis/complex-colour/model.mjs +243 -0
- package/dist/domains/chem/analysis/complex-colour/runtime.mjs +179 -0
- package/dist/domains/chem/analysis/complex-colour/scene.mjs +283 -0
- package/dist/domains/chem/analysis/composition-evidence/activity.mjs +94 -0
- package/dist/domains/chem/analysis/composition-evidence/manifest.mjs +71 -0
- package/dist/domains/chem/analysis/composition-evidence/model.mjs +60 -0
- package/dist/domains/chem/analysis/composition-evidence/runtime.mjs +127 -0
- package/dist/domains/chem/analysis/composition-evidence/scene.mjs +308 -0
- package/dist/domains/chem/analysis/conductivity-bench/activity.mjs +95 -0
- package/dist/domains/chem/analysis/conductivity-bench/manifest.mjs +69 -0
- package/dist/domains/chem/analysis/conductivity-bench/material-scene.mjs +162 -0
- package/dist/domains/chem/analysis/conductivity-bench/model.mjs +257 -0
- package/dist/domains/chem/analysis/conductivity-bench/runtime.mjs +212 -0
- package/dist/domains/chem/analysis/conductivity-bench/scene.mjs +305 -0
- package/dist/domains/chem/analysis/conductivity-bench/world.mjs +182 -0
- package/dist/domains/chem/analysis/flame-test/activity.mjs +66 -0
- package/dist/domains/chem/analysis/flame-test/manifest.mjs +85 -0
- package/dist/domains/chem/analysis/flame-test/model.mjs +171 -0
- package/dist/domains/chem/analysis/flame-test/runtime.mjs +221 -0
- package/dist/domains/chem/analysis/flame-test/scene.mjs +173 -0
- package/dist/domains/chem/analysis/paper-chromatogram/manifest.mjs +119 -0
- package/dist/domains/chem/analysis/paper-chromatogram/model.mjs +177 -0
- package/dist/domains/chem/analysis/paper-chromatogram/runtime.mjs +268 -0
- package/dist/domains/chem/analysis/paper-chromatogram/scene.mjs +310 -0
- package/dist/domains/chem/analysis/practical-observation/activity.mjs +66 -0
- package/dist/domains/chem/analysis/practical-observation/manifest.mjs +50 -0
- package/dist/domains/chem/analysis/practical-observation/model.mjs +487 -0
- package/dist/domains/chem/analysis/practical-observation/runtime.mjs +113 -0
- package/dist/domains/chem/analysis/practical-observation/scene.mjs +663 -0
- package/dist/domains/chem/analysis/precipitation-bench/activity.mjs +65 -0
- package/dist/domains/chem/analysis/precipitation-bench/manifest.mjs +61 -0
- package/dist/domains/chem/analysis/precipitation-bench/model.mjs +72 -0
- package/dist/domains/chem/analysis/precipitation-bench/runtime.mjs +117 -0
- package/dist/domains/chem/analysis/precipitation-bench/scene.mjs +170 -0
- package/dist/domains/chem/analysis/precipitation-bench/world.mjs +130 -0
- package/dist/domains/chem/analysis/reaction-evidence/manifest.mjs +63 -0
- package/dist/domains/chem/analysis/reaction-evidence/runtime.mjs +5 -0
- package/dist/domains/chem/analysis/species-workshop/activity.mjs +55 -0
- package/dist/domains/chem/analysis/species-workshop/manifest.mjs +66 -0
- package/dist/domains/chem/analysis/species-workshop/runtime.mjs +6 -0
- package/dist/domains/chem/analysis/species-workshop/world.d.mts +5 -0
- package/dist/domains/chem/analysis/species-workshop/world.mjs +124 -0
- package/dist/domains/chem/analysis/specimen-row/activity.mjs +70 -0
- package/dist/domains/chem/analysis/specimen-row/manifest.mjs +57 -0
- package/dist/domains/chem/analysis/specimen-row/model.mjs +122 -0
- package/dist/domains/chem/analysis/specimen-row/runtime.mjs +109 -0
- package/dist/domains/chem/analysis/specimen-row/scene.mjs +234 -0
- package/dist/domains/chem/analysis/structure-detective/activity.mjs +67 -0
- package/dist/domains/chem/analysis/structure-detective/manifest.mjs +59 -0
- package/dist/domains/chem/analysis/structure-detective/model.d.mts +5 -0
- package/dist/domains/chem/analysis/structure-detective/model.mjs +119 -0
- package/dist/domains/chem/analysis/structure-detective/runtime.mjs +6 -0
- package/dist/domains/chem/analysis/structure-detective/world.mjs +105 -0
- package/dist/domains/chem/electrochemistry/battery/manifest.mjs +55 -0
- package/dist/domains/chem/electrochemistry/battery/model.d.mts +18 -0
- package/dist/domains/chem/electrochemistry/battery/model.mjs +63 -0
- package/dist/domains/chem/electrochemistry/battery/runtime.mjs +15 -0
- package/dist/domains/chem/electrochemistry/battery/scene.d.mts +9 -0
- package/dist/domains/chem/electrochemistry/battery/scene.mjs +367 -0
- package/dist/domains/chem/electrochemistry/battery/world.d.mts +11 -0
- package/dist/domains/chem/electrochemistry/battery/world.mjs +92 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/activity.mjs +67 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/manifest.mjs +87 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/runtime.mjs +261 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/scene.d.mts +9 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/scene.mjs +186 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/tubes.mjs +64 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/world.d.mts +43 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/world.mjs +189 -0
- package/dist/domains/chem/electrochemistry/electrochem/manifest.mjs +72 -0
- package/dist/domains/chem/electrochemistry/electrochem/runtime.mjs +5 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/activity.mjs +92 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/manifest.mjs +117 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/model.mjs +255 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/runtime.mjs +209 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/scene.mjs +295 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/world.mjs +96 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/activity.mjs +51 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/manifest.mjs +65 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/model.mjs +193 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/runtime.mjs +120 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/scene.mjs +271 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/world.mjs +84 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/activity.mjs +81 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/manifest.mjs +49 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/model.mjs +63 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/runtime.mjs +143 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/scene.mjs +245 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/world.mjs +72 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/activity.mjs +86 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/manifest.mjs +52 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/model.mjs +215 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/runtime.mjs +177 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/scene.mjs +267 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/activity.mjs +67 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/manifest.mjs +67 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/model.mjs +79 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/runtime.mjs +141 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/scene.mjs +149 -0
- package/dist/domains/chem/energetics/energy-cycle/activity.mjs +86 -0
- package/dist/domains/chem/energetics/energy-cycle/manifest.mjs +52 -0
- package/dist/domains/chem/energetics/energy-cycle/model.mjs +249 -0
- package/dist/domains/chem/energetics/energy-cycle/runtime.mjs +176 -0
- package/dist/domains/chem/energetics/energy-cycle/scene.mjs +277 -0
- package/dist/domains/chem/energetics/hydrate-cycle/activity.mjs +96 -0
- package/dist/domains/chem/energetics/hydrate-cycle/manifest.mjs +56 -0
- package/dist/domains/chem/energetics/hydrate-cycle/model.mjs +99 -0
- package/dist/domains/chem/energetics/hydrate-cycle/runtime.mjs +187 -0
- package/dist/domains/chem/energetics/hydrate-cycle/scene.mjs +268 -0
- package/dist/domains/chem/gases-and-states/air-composition/manifest.mjs +51 -0
- package/dist/domains/chem/gases-and-states/air-composition/runtime.mjs +5 -0
- package/dist/domains/chem/gases-and-states/gas-box/manifest.mjs +89 -0
- package/dist/domains/chem/gases-and-states/gas-box/runtime.mjs +5 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/manifest.mjs +72 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/runtime.mjs +5 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/scene.mjs +102 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/world.d.mts +5 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/world.mjs +203 -0
- package/dist/domains/chem/industrial/applied-chemistry/manifest.mjs +62 -0
- package/dist/domains/chem/industrial/applied-chemistry/runtime.mjs +5 -0
- package/dist/domains/chem/industrial/contact-process-control/activity.mjs +75 -0
- package/dist/domains/chem/industrial/contact-process-control/manifest.mjs +48 -0
- package/dist/domains/chem/industrial/contact-process-control/model.mjs +106 -0
- package/dist/domains/chem/industrial/contact-process-control/runtime.mjs +65 -0
- package/dist/domains/chem/industrial/contact-process-control/scene.mjs +694 -0
- package/dist/domains/chem/industrial/industrial-process/manifest.mjs +65 -0
- package/dist/domains/chem/industrial/industrial-process/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/activity.mjs +36 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/manifest.mjs +44 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/model.mjs +61 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/runtime.mjs +61 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/scene.mjs +28 -0
- package/dist/domains/chem/kinetics-equilibrium/kinetics/manifest.mjs +69 -0
- package/dist/domains/chem/kinetics-equilibrium/kinetics/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics-equilibrium/le-chatelier/manifest.mjs +57 -0
- package/dist/domains/chem/kinetics-equilibrium/le-chatelier/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/activity.mjs +53 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/manifest.mjs +53 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/model.mjs +431 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/runtime.mjs +76 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/scene.mjs +36 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-lab/manifest.mjs +56 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-lab/runtime.mjs +18 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-profile/manifest.mjs +57 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-profile/runtime.mjs +17 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/manifest.mjs +97 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/model.mjs +213 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/runtime.mjs +242 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/scene.mjs +657 -0
- package/dist/domains/chem/organic/alkene-geometry/activity.mjs +73 -0
- package/dist/domains/chem/organic/alkene-geometry/manifest.mjs +58 -0
- package/dist/domains/chem/organic/alkene-geometry/model.d.mts +131 -0
- package/dist/domains/chem/organic/alkene-geometry/model.mjs +204 -0
- package/dist/domains/chem/organic/alkene-geometry/runtime.mjs +118 -0
- package/dist/domains/chem/organic/alkene-geometry/scene.d.mts +8 -0
- package/dist/domains/chem/organic/alkene-geometry/scene.mjs +170 -0
- package/dist/domains/chem/organic/arene-evidence/activity.mjs +86 -0
- package/dist/domains/chem/organic/arene-evidence/manifest.mjs +51 -0
- package/dist/domains/chem/organic/arene-evidence/model.d.mts +71 -0
- package/dist/domains/chem/organic/arene-evidence/model.mjs +116 -0
- package/dist/domains/chem/organic/arene-evidence/runtime.mjs +140 -0
- package/dist/domains/chem/organic/arene-evidence/scene.d.mts +8 -0
- package/dist/domains/chem/organic/arene-evidence/scene.mjs +208 -0
- package/dist/domains/chem/organic/functional-group-lens/activity.mjs +86 -0
- package/dist/domains/chem/organic/functional-group-lens/manifest.mjs +54 -0
- package/dist/domains/chem/organic/functional-group-lens/model.d.mts +128 -0
- package/dist/domains/chem/organic/functional-group-lens/model.mjs +250 -0
- package/dist/domains/chem/organic/functional-group-lens/runtime.d.mts +16 -0
- package/dist/domains/chem/organic/functional-group-lens/runtime.mjs +140 -0
- package/dist/domains/chem/organic/functional-group-lens/scene.d.mts +10 -0
- package/dist/domains/chem/organic/functional-group-lens/scene.mjs +388 -0
- package/dist/domains/chem/organic/isomer-builder/activity.mjs +86 -0
- package/dist/domains/chem/organic/isomer-builder/manifest.mjs +52 -0
- package/dist/domains/chem/organic/isomer-builder/model.mjs +345 -0
- package/dist/domains/chem/organic/isomer-builder/runtime.mjs +186 -0
- package/dist/domains/chem/organic/isomer-builder/scene.mjs +216 -0
- package/dist/domains/chem/organic/isomer-builder/world.mjs +81 -0
- package/dist/domains/chem/organic/nmr-reader/activity.mjs +88 -0
- package/dist/domains/chem/organic/nmr-reader/manifest.mjs +59 -0
- package/dist/domains/chem/organic/nmr-reader/model.mjs +200 -0
- package/dist/domains/chem/organic/nmr-reader/runtime.mjs +169 -0
- package/dist/domains/chem/organic/nmr-reader/scene.mjs +30 -0
- package/dist/domains/chem/organic/organic-formula-studio/activity.mjs +128 -0
- package/dist/domains/chem/organic/organic-formula-studio/manifest.mjs +67 -0
- package/dist/domains/chem/organic/organic-formula-studio/model.mjs +47 -0
- package/dist/domains/chem/organic/organic-formula-studio/pattern-scene.mjs +344 -0
- package/dist/domains/chem/organic/organic-formula-studio/runtime.mjs +233 -0
- package/dist/domains/chem/organic/organic-formula-studio/scene.mjs +354 -0
- package/dist/domains/chem/organic/organic-formula-studio/topics.mjs +186 -0
- package/dist/domains/chem/organic/organic-reaction-map/manifest.mjs +67 -0
- package/dist/domains/chem/organic/organic-reaction-map/runtime.mjs +5 -0
- package/dist/domains/chem/organic/polymer-builder/activity.mjs +88 -0
- package/dist/domains/chem/organic/polymer-builder/manifest.mjs +63 -0
- package/dist/domains/chem/organic/polymer-builder/model.mjs +200 -0
- package/dist/domains/chem/organic/polymer-builder/runtime.mjs +182 -0
- package/dist/domains/chem/organic/polymer-builder/scene.mjs +153 -0
- package/dist/domains/chem/organic/polymer-builder/world.mjs +84 -0
- package/dist/domains/chem/organic/spectrum-reader/activity.mjs +36 -0
- package/dist/domains/chem/organic/spectrum-reader/manifest.mjs +47 -0
- package/dist/domains/chem/organic/spectrum-reader/model.mjs +244 -0
- package/dist/domains/chem/organic/spectrum-reader/runtime.mjs +62 -0
- package/dist/domains/chem/organic/spectrum-reader/scene.mjs +37 -0
- package/dist/domains/chem/organic/stereochemistry/activity.mjs +3 -0
- package/dist/domains/chem/organic/stereochemistry/manifest.mjs +65 -0
- package/dist/domains/chem/organic/stereochemistry/runtime.mjs +21 -0
- package/dist/domains/chem/organic/synthesis-route/activity.mjs +36 -0
- package/dist/domains/chem/organic/synthesis-route/manifest.mjs +45 -0
- package/dist/domains/chem/organic/synthesis-route/model.mjs +165 -0
- package/dist/domains/chem/organic/synthesis-route/runtime.mjs +75 -0
- package/dist/domains/chem/organic/synthesis-route/scene.mjs +229 -0
- package/dist/domains/chem/organic/synthesis-route/world.mjs +78 -0
- package/dist/domains/chem/quantitative/dilution/manifest.mjs +57 -0
- package/dist/domains/chem/quantitative/dilution/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/equation-conservation-desk/activity.mjs +55 -0
- package/dist/domains/chem/quantitative/equation-conservation-desk/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/equation-conservation-desk/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/formula-forge/activity.mjs +55 -0
- package/dist/domains/chem/quantitative/formula-forge/manifest.mjs +66 -0
- package/dist/domains/chem/quantitative/formula-forge/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/formula-forge/world.d.mts +5 -0
- package/dist/domains/chem/quantitative/formula-forge/world.mjs +206 -0
- package/dist/domains/chem/quantitative/formula-workbench/activity.mjs +92 -0
- package/dist/domains/chem/quantitative/formula-workbench/manifest.mjs +73 -0
- package/dist/domains/chem/quantitative/formula-workbench/model.mjs +89 -0
- package/dist/domains/chem/quantitative/formula-workbench/runtime.mjs +131 -0
- package/dist/domains/chem/quantitative/formula-workbench/scene.mjs +276 -0
- package/dist/domains/chem/quantitative/formula-workbench/world.mjs +111 -0
- package/dist/domains/chem/quantitative/mole-factory/activity.mjs +55 -0
- package/dist/domains/chem/quantitative/mole-factory/manifest.mjs +62 -0
- package/dist/domains/chem/quantitative/mole-factory/model.d.mts +5 -0
- package/dist/domains/chem/quantitative/mole-factory/model.mjs +70 -0
- package/dist/domains/chem/quantitative/mole-factory/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/mole-factory/world.mjs +90 -0
- package/dist/domains/chem/quantitative/percent-lens/activity.mjs +119 -0
- package/dist/domains/chem/quantitative/percent-lens/manifest.mjs +65 -0
- package/dist/domains/chem/quantitative/percent-lens/model.mjs +84 -0
- package/dist/domains/chem/quantitative/percent-lens/runtime.mjs +114 -0
- package/dist/domains/chem/quantitative/percent-lens/scene.mjs +278 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/activity.mjs +85 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/manifest.mjs +51 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/model.mjs +101 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/runtime.mjs +146 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/scene.mjs +306 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/activity.mjs +54 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/manifest.mjs +60 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/model.mjs +96 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/runtime.mjs +124 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/scene.mjs +153 -0
- package/dist/domains/chem/quantitative/quantity-route/manifest.mjs +133 -0
- package/dist/domains/chem/quantitative/quantity-route/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/ratio-normalizer/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/ratio-normalizer/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/relation-origin/activity.mjs +42 -0
- package/dist/domains/chem/quantitative/relation-origin/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/relation-origin/model.mjs +185 -0
- package/dist/domains/chem/quantitative/relation-origin/runtime.mjs +110 -0
- package/dist/domains/chem/quantitative/relation-origin/scene.mjs +197 -0
- package/dist/domains/chem/quantitative/solution-box/manifest.mjs +57 -0
- package/dist/domains/chem/quantitative/solution-box/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/solution-mixer/activity.mjs +54 -0
- package/dist/domains/chem/quantitative/solution-mixer/manifest.mjs +58 -0
- package/dist/domains/chem/quantitative/solution-mixer/model.d.mts +4 -0
- package/dist/domains/chem/quantitative/solution-mixer/model.mjs +32 -0
- package/dist/domains/chem/quantitative/solution-mixer/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/solution-mixer/world.mjs +92 -0
- package/dist/domains/chem/quantitative/stoichiometry/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/stoichiometry/runtime.mjs +5 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/activity.mjs +85 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/manifest.mjs +58 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/model.mjs +120 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/runtime.mjs +107 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/scene.mjs +174 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/activity.mjs +54 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/manifest.mjs +66 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/model.d.mts +4 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/model.mjs +68 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/runtime.mjs +6 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/world.mjs +101 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/activity.mjs +115 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/manifest.mjs +50 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/model.mjs +187 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/runtime.mjs +118 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/scene.mjs +700 -0
- package/dist/domains/chem/structure/atomic-orbital/activity.mjs +3 -0
- package/dist/domains/chem/structure/atomic-orbital/manifest.mjs +71 -0
- package/dist/domains/chem/structure/atomic-orbital/runtime.mjs +20 -0
- package/dist/domains/chem/structure/atomic-orbital/world.d.mts +20 -0
- package/dist/domains/chem/structure/atomic-orbital/world.mjs +103 -0
- package/dist/domains/chem/structure/bohr-atom/activity.mjs +58 -0
- package/dist/domains/chem/structure/bohr-atom/manifest.mjs +55 -0
- package/dist/domains/chem/structure/bohr-atom/model.d.mts +28 -0
- package/dist/domains/chem/structure/bohr-atom/model.mjs +66 -0
- package/dist/domains/chem/structure/bohr-atom/runtime.d.mts +12 -0
- package/dist/domains/chem/structure/bohr-atom/runtime.mjs +89 -0
- package/dist/domains/chem/structure/bohr-atom/scene.d.mts +8 -0
- package/dist/domains/chem/structure/bohr-atom/scene.mjs +125 -0
- package/dist/domains/chem/structure/bohr-atom/world.d.mts +9 -0
- package/dist/domains/chem/structure/bohr-atom/world.mjs +52 -0
- package/dist/domains/chem/structure/complex-shape/activity.mjs +86 -0
- package/dist/domains/chem/structure/complex-shape/manifest.mjs +52 -0
- package/dist/domains/chem/structure/complex-shape/model.mjs +182 -0
- package/dist/domains/chem/structure/complex-shape/runtime.mjs +165 -0
- package/dist/domains/chem/structure/complex-shape/scene.mjs +270 -0
- package/dist/domains/chem/structure/covalent-bond-builder/activity.mjs +58 -0
- package/dist/domains/chem/structure/covalent-bond-builder/manifest.mjs +63 -0
- package/dist/domains/chem/structure/covalent-bond-builder/model.d.mts +42 -0
- package/dist/domains/chem/structure/covalent-bond-builder/model.mjs +116 -0
- package/dist/domains/chem/structure/covalent-bond-builder/runtime.mjs +82 -0
- package/dist/domains/chem/structure/covalent-bond-builder/scene.d.mts +10 -0
- package/dist/domains/chem/structure/covalent-bond-builder/scene.mjs +229 -0
- package/dist/domains/chem/structure/covalent-bond-builder/world.d.mts +9 -0
- package/dist/domains/chem/structure/covalent-bond-builder/world.mjs +52 -0
- package/dist/domains/chem/structure/crystal-lattice/activity.mjs +3 -0
- package/dist/domains/chem/structure/crystal-lattice/manifest.mjs +82 -0
- package/dist/domains/chem/structure/crystal-lattice/runtime.mjs +21 -0
- package/dist/domains/chem/structure/crystal-lattice/world.d.mts +24 -0
- package/dist/domains/chem/structure/crystal-lattice/world.mjs +131 -0
- package/dist/domains/chem/structure/electron-configuration/activity.mjs +63 -0
- package/dist/domains/chem/structure/electron-configuration/manifest.mjs +58 -0
- package/dist/domains/chem/structure/electron-configuration/model.d.mts +50 -0
- package/dist/domains/chem/structure/electron-configuration/model.mjs +243 -0
- package/dist/domains/chem/structure/electron-configuration/runtime.mjs +93 -0
- package/dist/domains/chem/structure/electron-configuration/scene.d.mts +9 -0
- package/dist/domains/chem/structure/electron-configuration/scene.mjs +151 -0
- package/dist/domains/chem/structure/electron-configuration/world.d.mts +9 -0
- package/dist/domains/chem/structure/electron-configuration/world.mjs +58 -0
- package/dist/domains/chem/structure/ionic-bond-builder/activity.mjs +58 -0
- package/dist/domains/chem/structure/ionic-bond-builder/manifest.mjs +52 -0
- package/dist/domains/chem/structure/ionic-bond-builder/model.d.mts +39 -0
- package/dist/domains/chem/structure/ionic-bond-builder/model.mjs +104 -0
- package/dist/domains/chem/structure/ionic-bond-builder/runtime.mjs +88 -0
- package/dist/domains/chem/structure/ionic-bond-builder/scene.d.mts +10 -0
- package/dist/domains/chem/structure/ionic-bond-builder/scene.mjs +183 -0
- package/dist/domains/chem/structure/ionic-bond-builder/world.d.mts +9 -0
- package/dist/domains/chem/structure/ionic-bond-builder/world.mjs +52 -0
- package/dist/domains/chem/structure/molecular-geometry/activity.mjs +3 -0
- package/dist/domains/chem/structure/molecular-geometry/manifest.mjs +74 -0
- package/dist/domains/chem/structure/molecular-geometry/runtime.mjs +22 -0
- package/dist/domains/chem/structure/molecular-geometry/world.d.mts +24 -0
- package/dist/domains/chem/structure/molecular-geometry/world.mjs +99 -0
- package/dist/domains/chem/structure/orbital-diagram/activity.mjs +74 -0
- package/dist/domains/chem/structure/orbital-diagram/manifest.mjs +58 -0
- package/dist/domains/chem/structure/orbital-diagram/model.d.mts +92 -0
- package/dist/domains/chem/structure/orbital-diagram/model.mjs +189 -0
- package/dist/domains/chem/structure/orbital-diagram/runtime.mjs +108 -0
- package/dist/domains/chem/structure/orbital-diagram/scene.mjs +289 -0
- package/dist/domains/chem/structure/orbital-diagram/world.d.mts +9 -0
- package/dist/domains/chem/structure/orbital-diagram/world.mjs +59 -0
- package/dist/domains/chem/structure/orbital-overlap/activity.mjs +3 -0
- package/dist/domains/chem/structure/orbital-overlap/manifest.mjs +60 -0
- package/dist/domains/chem/structure/orbital-overlap/runtime.mjs +18 -0
- package/dist/domains/chem/structure/orbital-overlap/world.d.mts +20 -0
- package/dist/domains/chem/structure/orbital-overlap/world.mjs +101 -0
- package/dist/domains/chem/structure/periodic-trends/manifest.mjs +60 -0
- package/dist/domains/chem/structure/periodic-trends/runtime.mjs +5 -0
- package/dist/domains/chem/structure/periodic-trends/world.d.mts +17 -0
- package/dist/domains/chem/structure/periodic-trends/world.mjs +85 -0
- package/dist/domains/chem/structure/trend-axis/activity.mjs +52 -0
- package/dist/domains/chem/structure/trend-axis/manifest.mjs +57 -0
- package/dist/domains/chem/structure/trend-axis/model.d.mts +8 -0
- package/dist/domains/chem/structure/trend-axis/model.mjs +487 -0
- package/dist/domains/chem/structure/trend-axis/runtime.mjs +84 -0
- package/dist/domains/chem/structure/trend-axis/scene.mjs +244 -0
- package/dist/domains/chem/structure/trend-axis/world.d.mts +21 -0
- package/dist/domains/chem/structure/trend-axis/world.mjs +76 -0
- package/dist/domains/circuits/ac-response/manifest.mjs +3 -1
- package/dist/domains/circuits/bjt-amplifier/manifest.mjs +67 -0
- package/dist/domains/circuits/bjt-amplifier/runtime.mjs +5 -0
- package/dist/domains/circuits/circuit-scene/authoring.mjs +9 -13
- package/dist/domains/circuits/circuit-scene/manifest.mjs +57 -34
- package/dist/domains/circuits/circuit-scene/runtime.mjs +8 -11
- package/dist/domains/circuits/op-amp-comparator/manifest.mjs +65 -0
- package/dist/domains/circuits/op-amp-comparator/runtime.mjs +5 -0
- package/dist/domains/circuits/rc-charging/manifest.mjs +4 -4
- package/dist/domains/discrete/bayes/manifest.mjs +7 -0
- package/dist/domains/discrete/counting-slots/manifest.mjs +26 -0
- package/dist/domains/discrete/monte-carlo/manifest.mjs +26 -0
- package/dist/domains/discrete/rule-card/manifest.mjs +4 -1
- package/dist/domains/discrete/rule-card/runtime.mjs +9 -2
- package/dist/domains/domain-map.mjs +318 -4
- package/dist/domains/exam/exam-question/manifest.mjs +4 -1
- package/dist/domains/exam/practice-set/manifest.mjs +116 -0
- package/dist/domains/exam/practice-set/runtime.mjs +5 -0
- package/dist/domains/geometry/geometry-board/runtime.mjs +15 -1
- package/dist/domains/ict/array-vs-list/manifest.mjs +20 -12
- package/dist/domains/ict/binary-search/manifest.mjs +18 -12
- package/dist/domains/ict/bound-prover/manifest.mjs +75 -0
- package/dist/domains/ict/bound-prover/model.mjs +163 -0
- package/dist/domains/ict/bound-prover/runtime.mjs +396 -0
- package/dist/domains/ict/coin-change/manifest.mjs +83 -0
- package/dist/domains/ict/coin-change/runtime.mjs +5 -0
- package/dist/domains/ict/complexity-growth/manifest.mjs +44 -5
- package/dist/domains/ict/cost-derivation/manifest.mjs +19 -6
- package/dist/domains/ict/graph-algorithm/authoring.mjs +116 -42
- package/dist/domains/ict/graph-algorithm/manifest.mjs +41 -15
- package/dist/domains/ict/grid-path-dp/authoring.mjs +9 -2
- package/dist/domains/ict/grid-path-dp/manifest.mjs +70 -10
- package/dist/domains/ict/hash-table/manifest.mjs +21 -11
- package/dist/domains/ict/heap-quest/authoring.mjs +101 -29
- package/dist/domains/ict/heap-quest/manifest.mjs +26 -14
- package/dist/domains/ict/recursion-tree/manifest.mjs +75 -0
- package/dist/domains/ict/recursion-tree/runtime.mjs +300 -0
- package/dist/domains/ict/sorting-quest/manifest.mjs +31 -13
- package/dist/domains/ict/tree-quest/authoring.mjs +80 -18
- package/dist/domains/ict/tree-quest/manifest.mjs +23 -18
- package/dist/domains/ict/wire-a-chip/runtime.mjs +106 -29
- package/dist/domains/manifests.mjs +815 -501
- package/dist/domains/math/alligation-mix/manifest.mjs +64 -0
- package/dist/domains/math/alligation-mix/runtime.mjs +5 -0
- package/dist/domains/math/angle-between-lines/manifest.mjs +56 -0
- package/dist/domains/math/angle-between-lines/runtime.mjs +5 -0
- package/dist/domains/math/angle-chase/manifest.mjs +103 -0
- package/dist/domains/math/angle-chase/runtime.mjs +5 -0
- package/dist/domains/math/associated-angle-wheel/manifest.mjs +75 -0
- package/dist/domains/math/associated-angle-wheel/runtime.mjs +5 -0
- package/dist/domains/math/bearings/manifest.mjs +34 -2
- package/dist/domains/math/broken-tree/manifest.mjs +32 -2
- package/dist/domains/math/chord-bisection/manifest.mjs +61 -0
- package/dist/domains/math/chord-bisection/runtime.mjs +5 -0
- package/dist/domains/math/chord-given-midpoint/manifest.mjs +56 -0
- package/dist/domains/math/chord-given-midpoint/runtime.mjs +5 -0
- package/dist/domains/math/chord-of-contact/manifest.mjs +56 -0
- package/dist/domains/math/chord-of-contact/runtime.mjs +5 -0
- package/dist/domains/math/circle-diameter-endpoints/manifest.mjs +60 -0
- package/dist/domains/math/circle-diameter-endpoints/runtime.mjs +5 -0
- package/dist/domains/math/circle-geometry/runtime.mjs +1 -1
- package/dist/domains/math/circle-intersection-angle/manifest.mjs +57 -0
- package/dist/domains/math/circle-intersection-angle/runtime.mjs +5 -0
- package/dist/domains/math/circle-line-tangency/manifest.mjs +61 -0
- package/dist/domains/math/circle-line-tangency/runtime.mjs +5 -0
- package/dist/domains/math/circle-through-points/manifest.mjs +56 -0
- package/dist/domains/math/circle-through-points/runtime.mjs +5 -0
- package/dist/domains/math/clock-hand-angle/manifest.mjs +57 -0
- package/dist/domains/math/clock-hand-angle/runtime.mjs +305 -0
- package/dist/domains/math/common-tangents-count/manifest.mjs +61 -0
- package/dist/domains/math/common-tangents-count/runtime.mjs +5 -0
- package/dist/domains/math/composite-functions/manifest.mjs +79 -0
- package/dist/domains/math/composite-functions/runtime.mjs +5 -0
- package/dist/domains/math/compound-angle-proof/manifest.mjs +59 -0
- package/dist/domains/math/compound-angle-proof/runtime.mjs +510 -0
- package/dist/domains/math/coord-point/manifest.mjs +64 -0
- package/dist/domains/math/coord-point/runtime.mjs +5 -0
- package/dist/domains/math/derivation/authoring.mjs +67 -48
- package/dist/domains/math/derivation/manifest.mjs +8 -4
- package/dist/domains/math/derivation/runtime.mjs +5 -2
- package/dist/domains/math/discriminant-radar/manifest.mjs +78 -0
- package/dist/domains/math/discriminant-radar/runtime.mjs +23 -0
- package/dist/domains/math/distribute-strip/manifest.mjs +61 -0
- package/dist/domains/math/distribute-strip/runtime.mjs +5 -0
- package/dist/domains/math/exact-triangle/manifest.mjs +38 -8
- package/dist/domains/math/exact-triangle/runtime.mjs +2 -3
- package/dist/domains/math/family-tree/manifest.mjs +118 -0
- package/dist/domains/math/family-tree/runtime.mjs +5 -0
- package/dist/domains/math/geometry-foundations/manifest.mjs +6 -1
- package/dist/domains/math/graph-transform/manifest.mjs +65 -0
- package/dist/domains/math/graph-transform/runtime.mjs +5 -0
- package/dist/domains/math/implicit-parametric-derivative/manifest.mjs +62 -0
- package/dist/domains/math/implicit-parametric-derivative/runtime.mjs +26 -0
- package/dist/domains/math/inequality-line/manifest.mjs +63 -0
- package/dist/domains/math/inequality-line/runtime.mjs +5 -0
- package/dist/domains/math/inequality-solver/manifest.mjs +69 -0
- package/dist/domains/math/inequality-solver/runtime.mjs +5 -0
- package/dist/domains/math/injective-classifier/manifest.mjs +60 -0
- package/dist/domains/math/injective-classifier/runtime.mjs +5 -0
- package/dist/domains/math/integration-workbench/manifest.mjs +58 -0
- package/dist/domains/math/integration-workbench/runtime.mjs +23 -0
- package/dist/domains/math/inverse-functions/manifest.mjs +55 -0
- package/dist/domains/math/inverse-functions/runtime.mjs +5 -0
- package/dist/domains/math/line-concurrency/manifest.mjs +59 -0
- package/dist/domains/math/line-concurrency/runtime.mjs +5 -0
- package/dist/domains/math/line-family/manifest.mjs +57 -0
- package/dist/domains/math/line-family/runtime.mjs +5 -0
- package/dist/domains/math/linear-map/manifest.mjs +59 -0
- package/dist/domains/math/linear-map/runtime.mjs +12 -0
- package/dist/domains/math/linearisation/activity.mjs +4 -2
- package/dist/domains/math/linearisation/runtime.mjs +25 -15
- package/dist/domains/math/modulus-function/manifest.mjs +58 -0
- package/dist/domains/math/modulus-function/runtime.mjs +5 -0
- package/dist/domains/math/modulus-inequality/manifest.mjs +66 -0
- package/dist/domains/math/modulus-inequality/runtime.mjs +5 -0
- package/dist/domains/math/multiple-angle-wheel/manifest.mjs +66 -0
- package/dist/domains/math/multiple-angle-wheel/runtime.mjs +5 -0
- package/dist/domains/math/oblique-triangle/manifest.mjs +86 -3
- package/dist/domains/math/point-line-distance/manifest.mjs +55 -0
- package/dist/domains/math/point-line-distance/runtime.mjs +5 -0
- package/dist/domains/math/point-reflection/manifest.mjs +55 -0
- package/dist/domains/math/point-reflection/runtime.mjs +5 -0
- package/dist/domains/math/polar-cartesian/manifest.mjs +53 -0
- package/dist/domains/math/polar-cartesian/runtime.mjs +5 -0
- package/dist/domains/math/polynomial-solver/manifest.mjs +29 -11
- package/dist/domains/math/price-chain/manifest.mjs +68 -0
- package/dist/domains/math/price-chain/runtime.mjs +5 -0
- package/dist/domains/math/pythagoras-dissection/manifest.mjs +89 -0
- package/dist/domains/math/pythagoras-dissection/runtime.mjs +3 -0
- package/dist/domains/math/radical-axis/manifest.mjs +61 -0
- package/dist/domains/math/radical-axis/runtime.mjs +5 -0
- package/dist/domains/math/ratio-share/manifest.mjs +3 -1
- package/dist/domains/math/relative-speed-track/manifest.mjs +68 -0
- package/dist/domains/math/relative-speed-track/runtime.mjs +5 -0
- package/dist/domains/math/root-fingerprint/manifest.mjs +63 -0
- package/dist/domains/math/root-fingerprint/runtime.mjs +27 -0
- package/dist/domains/math/root-mover/manifest.mjs +57 -0
- package/dist/domains/math/root-mover/runtime.mjs +23 -0
- package/dist/domains/math/section-formula/manifest.mjs +54 -0
- package/dist/domains/math/section-formula/runtime.mjs +5 -0
- package/dist/domains/math/sequence-predict/manifest.mjs +27 -5
- package/dist/domains/math/solids-of-revolution/manifest.mjs +79 -0
- package/dist/domains/math/solids-of-revolution/runtime.mjs +61 -0
- package/dist/domains/math/special-triangles/manifest.mjs +74 -0
- package/dist/domains/math/special-triangles/runtime.mjs +3 -0
- package/dist/domains/math/stationary-point-classifier/manifest.mjs +55 -0
- package/dist/domains/math/stationary-point-classifier/runtime.mjs +19 -0
- package/dist/domains/math/story-scene/manifest.mjs +41 -0
- package/dist/domains/math/story-scene/runtime.mjs +5 -0
- package/dist/domains/math/straight-line/runtime.mjs +1 -1
- package/dist/domains/math/substitute-value/manifest.mjs +61 -0
- package/dist/domains/math/substitute-value/runtime.mjs +5 -0
- package/dist/domains/math/sum-to-product-waves/manifest.mjs +61 -0
- package/dist/domains/math/sum-to-product-waves/runtime.mjs +5 -0
- package/dist/domains/math/tangent-length-power-of-point/manifest.mjs +56 -0
- package/dist/domains/math/tangent-length-power-of-point/runtime.mjs +5 -0
- package/dist/domains/math/tangent-normal/manifest.mjs +56 -0
- package/dist/domains/math/tangent-normal/runtime.mjs +20 -0
- package/dist/domains/math/tangent-rule-triangle/manifest.mjs +59 -0
- package/dist/domains/math/tangent-rule-triangle/runtime.mjs +5 -0
- package/dist/domains/math/triangle-area/manifest.mjs +81 -0
- package/dist/domains/math/triangle-area/runtime.mjs +5 -0
- package/dist/domains/math/triangle-trig/manifest.mjs +47 -4
- package/dist/domains/math/triangle-trig/runtime.mjs +1 -1
- package/dist/domains/math/trig-equation-solver/manifest.mjs +66 -0
- package/dist/domains/math/trig-equation-solver/runtime.mjs +5 -0
- package/dist/domains/math/trig-general-solution/manifest.mjs +59 -0
- package/dist/domains/math/trig-general-solution/runtime.mjs +5 -0
- package/dist/domains/ml/activation-gates/manifest.mjs +53 -10
- package/dist/domains/ml/affine-neuron/manifest.mjs +58 -9
- package/dist/domains/ml/anomaly-detector/manifest.mjs +34 -5
- package/dist/domains/ml/attention-fields.mjs +28 -0
- package/dist/domains/ml/attention-routing/manifest.mjs +67 -4
- package/dist/domains/ml/autoencoder/manifest.mjs +31 -4
- package/dist/domains/ml/backprop-tracer/manifest.mjs +147 -0
- package/dist/domains/ml/backprop-tracer/runtime.mjs +3 -0
- package/dist/domains/ml/causal-mask/manifest.mjs +29 -4
- package/dist/domains/ml/char-model/manifest.mjs +134 -0
- package/dist/domains/ml/char-model/runtime.mjs +3 -0
- package/dist/domains/ml/classifier-threshold/manifest.mjs +63 -6
- package/dist/domains/ml/classifier-threshold/runtime.d.mts +33 -2
- package/dist/domains/ml/classifier-threshold/runtime.mjs +518 -186
- package/dist/domains/ml/classifier-threshold/scores-setup.mjs +30 -0
- package/dist/domains/ml/context-window/manifest.mjs +56 -3
- package/dist/domains/ml/decision-boundary/manifest.mjs +7 -6
- package/dist/domains/ml/decision-boundary/runtime.d.mts +18 -3
- package/dist/domains/ml/decision-boundary/runtime.mjs +176 -162
- package/dist/domains/ml/denoising/manifest.mjs +30 -4
- package/dist/domains/ml/embedding-neighborhood/manifest.mjs +47 -4
- package/dist/domains/ml/embedding-space/manifest.mjs +28 -9
- package/dist/domains/ml/embedding-space/runtime.mjs +99 -49
- package/dist/domains/ml/encoder-decoder/manifest.mjs +55 -4
- package/dist/domains/ml/feature-map/manifest.mjs +38 -3
- package/dist/domains/ml/feed-forward-network/manifest.mjs +86 -8
- package/dist/domains/ml/fit-evidence/manifest.mjs +29 -9
- package/dist/domains/ml/gradient-step/manifest.mjs +27 -9
- package/dist/domains/ml/kmeans/manifest.mjs +32 -12
- package/dist/domains/ml/kmeans/runtime.d.mts +20 -1
- package/dist/domains/ml/kmeans/runtime.mjs +248 -69
- package/dist/domains/ml/knn/axis-caption.mjs +37 -0
- package/dist/domains/ml/knn/class-plane.mjs +133 -0
- package/dist/domains/ml/knn/manifest.mjs +10 -6
- package/dist/domains/ml/knn/question-schema.d.mts +21 -0
- package/dist/domains/ml/knn/question-schema.mjs +40 -0
- package/dist/domains/ml/knn/questions.d.mts +3 -0
- package/dist/domains/ml/knn/questions.mjs +85 -0
- package/dist/domains/ml/knn/runtime.d.mts +25 -3
- package/dist/domains/ml/knn/runtime.mjs +223 -131
- package/dist/domains/ml/knn/typed-check.mjs +53 -0
- package/dist/domains/ml/latent-space/manifest.mjs +46 -4
- package/dist/domains/ml/layer-normalization/manifest.mjs +33 -10
- package/dist/domains/ml/learning-loop/manifest.mjs +23 -9
- package/dist/domains/ml/logistic-fit/manifest.mjs +104 -0
- package/dist/domains/ml/logistic-fit/runtime.mjs +638 -0
- package/dist/domains/ml/loss-error/manifest.mjs +31 -6
- package/dist/domains/ml/matrix-vector/manifest.mjs +47 -7
- package/dist/domains/ml/memory-relay/manifest.mjs +47 -4
- package/dist/domains/ml/model-complexity/manifest.mjs +101 -0
- package/dist/domains/ml/model-complexity/runtime.mjs +466 -0
- package/dist/domains/ml/multi-head-attention/manifest.mjs +68 -4
- package/dist/domains/ml/multimodal-alignment/manifest.mjs +58 -4
- package/dist/domains/ml/next-token/manifest.mjs +24 -3
- package/dist/domains/ml/next-token/runtime.mjs +116 -39
- package/dist/domains/ml/overfit-gap/manifest.mjs +105 -0
- package/dist/domains/ml/overfit-gap/runtime.mjs +3 -0
- package/dist/domains/ml/pixel-filter/manifest.mjs +50 -5
- package/dist/domains/ml/position-signals/manifest.mjs +47 -4
- package/dist/domains/ml/query-key-value/manifest.mjs +49 -4
- package/dist/domains/ml/regression/manifest.mjs +90 -15
- package/dist/domains/ml/regression/points-setup.d.mts +14 -0
- package/dist/domains/ml/regression/points-setup.mjs +73 -0
- package/dist/domains/ml/regression/runtime.d.mts +36 -2
- package/dist/domains/ml/regression/runtime.mjs +550 -176
- package/dist/domains/ml/residual-stream/manifest.mjs +15 -4
- package/dist/domains/ml/reward-groups/manifest.mjs +149 -0
- package/dist/domains/ml/reward-groups/runtime.mjs +3 -0
- package/dist/domains/ml/scaled-dot-product-attention/manifest.mjs +61 -7
- package/dist/domains/ml/split-and-leak/manifest.mjs +154 -0
- package/dist/domains/ml/split-and-leak/runtime.mjs +618 -0
- package/dist/domains/ml/tiny-network/manifest.mjs +60 -6
- package/dist/domains/ml/token-generation/manifest.mjs +61 -4
- package/dist/domains/ml/tokenizer-bpe/manifest.mjs +126 -0
- package/dist/domains/ml/tokenizer-bpe/runtime.mjs +3 -0
- package/dist/domains/ml/training-loop/manifest.mjs +30 -10
- package/dist/domains/ml/transformer-block/manifest.mjs +47 -6
- package/dist/domains/ml/unembedding/manifest.mjs +75 -9
- package/dist/domains/networking/_shared/decision-scene.mjs +74 -12
- package/dist/domains/networking/data-recovery-planner/scene.mjs +11 -7
- package/dist/domains/networking/packet-journey/runtime.mjs +19 -7
- package/dist/domains/networking/packet-journey/world.mjs +73 -0
- package/dist/domains/networking/server-deployment/scene.mjs +41 -35
- package/dist/domains/networking/slo-incident-console/scene.mjs +45 -34
- package/dist/domains/networking/vpc-route-planner/scene.mjs +32 -8
- package/dist/domains/physics/ac-generator/manifest.mjs +5 -0
- package/dist/domains/physics/acoustic-boundary/manifest.mjs +58 -0
- package/dist/domains/physics/acoustic-boundary/runtime.mjs +5 -0
- package/dist/domains/physics/alternating-current/manifest.mjs +9 -1
- package/dist/domains/physics/beam-reactions/manifest.mjs +67 -0
- package/dist/domains/physics/beam-reactions/runtime.mjs +12 -0
- package/dist/domains/physics/buoyancy/manifest.mjs +58 -0
- package/dist/domains/physics/buoyancy/runtime.mjs +5 -0
- package/dist/domains/physics/capacitor-energy/manifest.mjs +65 -0
- package/dist/domains/physics/capacitor-energy/runtime.mjs +3 -0
- package/dist/domains/physics/carnot/manifest.mjs +5 -1
- package/dist/domains/physics/circuit-energy-flow/manifest.mjs +65 -0
- package/dist/domains/physics/circuit-energy-flow/runtime.mjs +5 -0
- package/dist/domains/physics/circuit-fault-detective/runtime.mjs +3 -3
- package/dist/domains/physics/circuit-iv-investigation/runtime.mjs +2 -2
- package/dist/domains/physics/circular-motion/manifest.mjs +12 -1
- package/dist/domains/physics/coherence/manifest.mjs +57 -0
- package/dist/domains/physics/coherence/runtime.mjs +5 -0
- package/dist/domains/physics/contact-pressure/manifest.mjs +63 -0
- package/dist/domains/physics/contact-pressure/runtime.mjs +5 -0
- package/dist/domains/physics/cooling-insulation-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/cosmic-expansion/manifest.mjs +58 -0
- package/dist/domains/physics/cosmic-expansion/runtime.mjs +3 -0
- package/dist/domains/physics/data-table-clinic/manifest.mjs +75 -0
- package/dist/domains/physics/data-table-clinic/runtime.mjs +137 -0
- package/dist/domains/physics/dc-motor/manifest.mjs +6 -1
- package/dist/domains/physics/density-displacement/activity.mjs +3 -3
- package/dist/domains/physics/density-displacement/runtime.mjs +84 -86
- package/dist/domains/physics/diffraction-grating/manifest.mjs +51 -0
- package/dist/domains/physics/diffraction-grating/runtime.mjs +5 -0
- package/dist/domains/physics/echo-ranging/manifest.mjs +58 -0
- package/dist/domains/physics/echo-ranging/runtime.mjs +5 -0
- package/dist/domains/physics/energy-resource-grid/runtime.mjs +1 -1
- package/dist/domains/physics/evaluation-clinic/manifest.mjs +73 -0
- package/dist/domains/physics/evaluation-clinic/runtime.mjs +322 -0
- package/dist/domains/physics/evaporation/manifest.mjs +56 -0
- package/dist/domains/physics/evaporation/runtime.mjs +5 -0
- package/dist/domains/physics/eye-correction/manifest.mjs +62 -0
- package/dist/domains/physics/eye-correction/runtime.mjs +5 -0
- package/dist/domains/physics/fibre-pulse/manifest.mjs +64 -0
- package/dist/domains/physics/fibre-pulse/runtime.mjs +5 -0
- package/dist/domains/physics/field-geometry/manifest.mjs +82 -0
- package/dist/domains/physics/field-geometry/runtime.mjs +5 -0
- package/dist/domains/physics/fluid-pressure/manifest.mjs +2 -2
- package/dist/domains/physics/gap-diffraction/manifest.mjs +58 -0
- package/dist/domains/physics/gap-diffraction/runtime.mjs +5 -0
- package/dist/domains/physics/gas-process/manifest.mjs +5 -1
- package/dist/domains/physics/gas-theory/manifest.mjs +70 -0
- package/dist/domains/physics/gas-theory/runtime.mjs +5 -0
- package/dist/domains/physics/generator-grid-mission/manifest.mjs +1 -1
- package/dist/domains/physics/generator-grid-mission/model.mjs +26 -0
- package/dist/domains/physics/generator-grid-mission/runtime.mjs +4 -3
- package/dist/domains/physics/glass-block-refraction/runtime.mjs +15 -4
- package/dist/domains/physics/graph-craft/manifest.mjs +67 -0
- package/dist/domains/physics/graph-craft/runtime.mjs +161 -0
- package/dist/domains/physics/harmonic-modes/manifest.mjs +60 -0
- package/dist/domains/physics/harmonic-modes/runtime.mjs +5 -0
- package/dist/domains/physics/heat-transfer/manifest.mjs +1 -0
- package/dist/domains/physics/heat-transfer-cases/manifest.mjs +45 -0
- package/dist/domains/physics/heat-transfer-cases/runtime.mjs +3 -0
- package/dist/domains/physics/heating-curve/manifest.mjs +6 -0
- package/dist/domains/physics/hydrogen-spectrum/manifest.mjs +55 -0
- package/dist/domains/physics/hydrogen-spectrum/runtime.mjs +5 -0
- package/dist/domains/physics/induction-bench/manifest.mjs +58 -0
- package/dist/domains/physics/induction-bench/runtime.mjs +5 -0
- package/dist/domains/physics/inductor-energy/manifest.mjs +59 -0
- package/dist/domains/physics/inductor-energy/runtime.mjs +5 -0
- package/dist/domains/physics/intensity-amplitude/manifest.mjs +53 -0
- package/dist/domains/physics/intensity-amplitude/runtime.mjs +5 -0
- package/dist/domains/physics/lens-focal-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/lens-geometry/manifest.mjs +81 -0
- package/dist/domains/physics/lens-geometry/runtime.mjs +5 -0
- package/dist/domains/physics/lens-mission/manifest.mjs +61 -0
- package/dist/domains/physics/lens-mission/runtime.mjs +151 -0
- package/dist/domains/physics/lorentz/manifest.mjs +7 -1
- package/dist/domains/physics/magnet-pair/manifest.mjs +58 -0
- package/dist/domains/physics/magnet-pair/runtime.mjs +5 -0
- package/dist/domains/physics/magnetism/manifest.mjs +25 -1
- package/dist/domains/physics/magnetism-diagram/manifest.mjs +50 -0
- package/dist/domains/physics/magnetism-diagram/runtime.mjs +19 -0
- package/dist/domains/physics/mutual-induction/manifest.mjs +59 -0
- package/dist/domains/physics/mutual-induction/runtime.mjs +5 -0
- package/dist/domains/physics/newton-first-law/manifest.mjs +75 -0
- package/dist/domains/physics/newton-first-law/runtime.mjs +113 -0
- package/dist/domains/physics/optics-mission/manifest.mjs +62 -0
- package/dist/domains/physics/optics-mission/runtime.mjs +486 -0
- package/dist/domains/physics/paper5-analysis-lab/runtime.mjs +123 -32
- package/dist/domains/physics/particle-wave-motion/manifest.mjs +58 -0
- package/dist/domains/physics/particle-wave-motion/runtime.mjs +5 -0
- package/dist/domains/physics/phase-path/manifest.mjs +49 -0
- package/dist/domains/physics/phase-path/runtime.mjs +5 -0
- package/dist/domains/physics/physics-practical-studio/runtime.mjs +1 -1
- package/dist/domains/physics/plane-mirror/manifest.mjs +56 -0
- package/dist/domains/physics/plane-mirror/runtime.mjs +5 -0
- package/dist/domains/physics/plug-safety-inspector/runtime.mjs +2 -2
- package/dist/domains/physics/polarisation/manifest.mjs +55 -0
- package/dist/domains/physics/polarisation/runtime.mjs +5 -0
- package/dist/domains/physics/precision-measurement-lab/activity.mjs +13 -13
- package/dist/domains/physics/precision-measurement-lab/manifest.mjs +3 -3
- package/dist/domains/physics/precision-measurement-lab/palette.mjs +22 -1
- package/dist/domains/physics/precision-measurement-lab/runtime.mjs +390 -371
- package/dist/domains/physics/prism-dispersion/manifest.mjs +58 -0
- package/dist/domains/physics/prism-dispersion/runtime.mjs +5 -0
- package/dist/domains/physics/progressive-stationary/manifest.mjs +59 -0
- package/dist/domains/physics/progressive-stationary/runtime.mjs +5 -0
- package/dist/domains/physics/projectile-lab/core/model.mjs +30 -18
- package/dist/domains/physics/projectile-lab/runtime/index.mjs +10 -21
- package/dist/domains/physics/projectile-lab/runtime/svg.mjs +36 -124
- package/dist/domains/physics/pulse-echo/manifest.mjs +66 -0
- package/dist/domains/physics/pulse-echo/runtime.mjs +5 -0
- package/dist/domains/physics/radiation-half-life-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/radioactive-decay/manifest.mjs +55 -0
- package/dist/domains/physics/radioactive-decay/runtime.mjs +5 -0
- package/dist/domains/physics/rc-step-response/manifest.mjs +54 -0
- package/dist/domains/physics/rc-step-response/runtime.mjs +5 -0
- package/dist/domains/physics/reading-spread/manifest.mjs +77 -0
- package/dist/domains/physics/reading-spread/runtime.mjs +183 -0
- package/dist/domains/physics/rectifier/manifest.mjs +69 -0
- package/dist/domains/physics/rectifier/runtime.mjs +5 -0
- package/dist/domains/physics/regulated-supply/manifest.mjs +61 -0
- package/dist/domains/physics/regulated-supply/runtime.mjs +5 -0
- package/dist/domains/physics/relay-bench/manifest.mjs +55 -0
- package/dist/domains/physics/relay-bench/runtime.mjs +5 -0
- package/dist/domains/physics/rl-step-response/manifest.mjs +54 -0
- package/dist/domains/physics/rl-step-response/runtime.mjs +5 -0
- package/dist/domains/physics/rocket-flight/manifest.mjs +81 -0
- package/dist/domains/physics/rocket-flight/runtime.mjs +5 -0
- package/dist/domains/physics/scale-reading/manifest.mjs +91 -0
- package/dist/domains/physics/scale-reading/model.mjs +212 -0
- package/dist/domains/physics/scale-reading/runtime.mjs +190 -0
- package/dist/domains/physics/scale-reading/scene.mjs +691 -0
- package/dist/domains/physics/shm/manifest.mjs +7 -0
- package/dist/domains/physics/shm-energy/manifest.mjs +6 -0
- package/dist/domains/physics/shm-graphs/manifest.mjs +1 -0
- package/dist/domains/physics/smoothing/manifest.mjs +62 -0
- package/dist/domains/physics/smoothing/runtime.mjs +5 -0
- package/dist/domains/physics/soft-iron-steel/activity.mjs +3 -0
- package/dist/domains/physics/soft-iron-steel/manifest.mjs +72 -0
- package/dist/domains/physics/soft-iron-steel/runtime.mjs +3 -0
- package/dist/domains/physics/solenoid-bench/manifest.mjs +57 -0
- package/dist/domains/physics/solenoid-bench/runtime.mjs +5 -0
- package/dist/domains/physics/sound-air/manifest.mjs +59 -0
- package/dist/domains/physics/sound-air/runtime.mjs +5 -0
- package/dist/domains/physics/sound-medium/manifest.mjs +64 -0
- package/dist/domains/physics/sound-medium/runtime.mjs +5 -0
- package/dist/domains/physics/sound-mission/manifest.mjs +66 -0
- package/dist/domains/physics/sound-mission/runtime.mjs +321 -0
- package/dist/domains/physics/specific-heat/manifest.mjs +59 -0
- package/dist/domains/physics/specific-heat/runtime.mjs +5 -0
- package/dist/domains/physics/spectral-resolver/manifest.mjs +50 -0
- package/dist/domains/physics/spectral-resolver/runtime.mjs +5 -0
- package/dist/domains/physics/spectrum-mission/manifest.mjs +60 -0
- package/dist/domains/physics/spectrum-mission/runtime.mjs +320 -0
- package/dist/domains/physics/stability/manifest.mjs +55 -0
- package/dist/domains/physics/stability/runtime.mjs +5 -0
- package/dist/domains/physics/stellar-distance/manifest.mjs +58 -0
- package/dist/domains/physics/stellar-distance/runtime.mjs +3 -0
- package/dist/domains/physics/stellar-evolution/manifest.mjs +49 -0
- package/dist/domains/physics/stellar-evolution/runtime.mjs +3 -0
- package/dist/domains/physics/stellar-radiation/manifest.mjs +58 -0
- package/dist/domains/physics/stellar-radiation/runtime.mjs +3 -0
- package/dist/domains/physics/stress-strain/manifest.mjs +8 -0
- package/dist/domains/physics/thermal-equilibrium/manifest.mjs +49 -0
- package/dist/domains/physics/thermal-equilibrium/runtime.mjs +5 -0
- package/dist/domains/physics/timbre/manifest.mjs +62 -0
- package/dist/domains/physics/timbre/runtime.mjs +5 -0
- package/dist/domains/physics/tomography/manifest.mjs +62 -0
- package/dist/domains/physics/tomography/runtime.mjs +3 -0
- package/dist/domains/physics/transformer-bench/manifest.mjs +57 -0
- package/dist/domains/physics/transformer-bench/runtime.mjs +5 -0
- package/dist/domains/physics/trolley-acceleration-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/ultrasound-frequency/manifest.mjs +51 -0
- package/dist/domains/physics/ultrasound-frequency/runtime.mjs +5 -0
- package/dist/domains/physics/uncertainty-budget/manifest.mjs +68 -0
- package/dist/domains/physics/uncertainty-budget/runtime.mjs +111 -0
- package/dist/domains/physics/unit-machine/manifest.mjs +63 -0
- package/dist/domains/physics/unit-machine/runtime.mjs +149 -0
- package/dist/domains/physics/velocity-gradient/manifest.mjs +67 -0
- package/dist/domains/physics/velocity-gradient/runtime.mjs +144 -0
- package/dist/domains/physics/water-wave-refraction/manifest.mjs +60 -0
- package/dist/domains/physics/water-wave-refraction/runtime.mjs +5 -0
- package/dist/domains/physics/wave-graphs/manifest.mjs +60 -0
- package/dist/domains/physics/wave-graphs/runtime.mjs +5 -0
- package/dist/domains/physics/wave-lab/manifest.mjs +7 -0
- package/dist/domains/physics/wave-speed/manifest.mjs +63 -0
- package/dist/domains/physics/wave-speed/runtime.mjs +5 -0
- package/dist/domains/physics/wire-force-angle/activity.mjs +3 -0
- package/dist/domains/physics/wire-force-angle/manifest.mjs +69 -0
- package/dist/domains/physics/wire-force-angle/runtime.mjs +3 -0
- package/dist/domains/physics/xray-attenuation/manifest.mjs +7 -1
- package/dist/domains/physics/xray-tube-spectrum/manifest.mjs +8 -1
- package/dist/domains/physics/young-double-slit/manifest.mjs +61 -0
- package/dist/domains/physics/young-double-slit/runtime.mjs +5 -0
- package/dist/domains/render-map.mjs +393 -79
- package/dist/domains/revision/chapter-summary/manifest.mjs +67 -0
- package/dist/domains/revision/chapter-summary/runtime.mjs +16 -0
- package/dist/domains/revision/concept-sprint/manifest.mjs +149 -0
- package/dist/domains/revision/concept-sprint/runtime.mjs +5 -0
- package/dist/domains/revision/flashcard/manifest.mjs +61 -0
- package/dist/domains/revision/flashcard/runtime.mjs +18 -0
- package/dist/domains/revision/flashcard-deck/manifest.mjs +83 -0
- package/dist/domains/revision/flashcard-deck/runtime.mjs +16 -0
- package/dist/domains/revision/spot-the-error/manifest.mjs +70 -0
- package/dist/domains/revision/spot-the-error/runtime.mjs +16 -0
- package/dist/domains/revision/step-order-puzzle/manifest.mjs +67 -0
- package/dist/domains/revision/step-order-puzzle/runtime.mjs +15 -0
- package/dist/domains/statistics/sampling/manifest.mjs +11 -0
- package/dist/exam/exam-question/core.d.mts +10 -2
- package/dist/exam/exam-question/core.mjs +7 -12
- package/dist/exam/exam-question/preset.d.mts +8 -1
- package/dist/exam/exam-question/preset.mjs +138 -133
- package/dist/exam/practice-set/preset.mjs +270 -0
- package/dist/geography/cycle-lab/preset.mjs +10 -7
- package/dist/geometry/board/preset.mjs +1 -1
- package/dist/geometry/builder.mjs +1 -1
- package/dist/ict/number-systems/base-odometer.mjs +1 -1
- package/dist/ict/number-systems/wheel.mjs +27 -22
- package/dist/illustrations/story-scene/accounting/cash-credit-flow.mjs +104 -0
- package/dist/illustrations/story-scene/accounting/club-evening.mjs +202 -0
- package/dist/illustrations/story-scene/accounting/delivery-van.mjs +119 -0
- package/dist/illustrations/story-scene/accounting/electricity-meter-bill.mjs +185 -0
- package/dist/illustrations/story-scene/accounting/factory-floor.mjs +217 -0
- package/dist/illustrations/story-scene/accounting/registry.mjs +222 -0
- package/dist/illustrations/story-scene/accounting/rival-shops.mjs +127 -0
- package/dist/illustrations/story-scene/accounting/shop-counter-till.mjs +151 -0
- package/dist/illustrations/story-scene/accounting/stocktake-shelves.mjs +154 -0
- package/dist/illustrations/story-scene/accounting/supplier-delivery.mjs +128 -0
- package/dist/illustrations/story-scene/accounting/tea-stall.mjs +187 -0
- package/dist/illustrations/story-scene/accounting/van.mjs +101 -0
- package/dist/illustrations/story-scene/accounting/workshop-machine.mjs +166 -0
- package/dist/illustrations/story-scene/chemistry/acid-rain.mjs +263 -0
- package/dist/illustrations/story-scene/chemistry/aluminium-cell.mjs +211 -0
- package/dist/illustrations/story-scene/chemistry/blast-furnace.mjs +322 -0
- package/dist/illustrations/story-scene/chemistry/car-exhaust.mjs +132 -0
- package/dist/illustrations/story-scene/chemistry/fertiliser-field.mjs +149 -0
- package/dist/illustrations/story-scene/chemistry/fractionating-tower.mjs +289 -0
- package/dist/illustrations/story-scene/chemistry/galvanised-roof.mjs +216 -0
- package/dist/illustrations/story-scene/chemistry/gas-stove.mjs +142 -0
- package/dist/illustrations/story-scene/chemistry/greenhouse-earth.mjs +239 -0
- package/dist/illustrations/story-scene/chemistry/lime-kiln.mjs +145 -0
- package/dist/illustrations/story-scene/chemistry/magnesium-ribbon.mjs +211 -0
- package/dist/illustrations/story-scene/chemistry/registry.mjs +150 -0
- package/dist/illustrations/story-scene/chemistry/rusty-bike.mjs +171 -0
- package/dist/illustrations/story-scene/chemistry/water-treatment.mjs +370 -0
- package/dist/illustrations/story-scene/everyday/bicycle-wheel.mjs +130 -0
- package/dist/illustrations/story-scene/everyday/cake-slices.mjs +117 -0
- package/dist/illustrations/story-scene/everyday/car-road.mjs +175 -0
- package/dist/illustrations/story-scene/everyday/dial.mjs +129 -0
- package/dist/illustrations/story-scene/everyday/phone-battery.mjs +125 -0
- package/dist/illustrations/story-scene/everyday/pond-path.mjs +113 -0
- package/dist/illustrations/story-scene/everyday/registry.mjs +111 -0
- package/dist/illustrations/story-scene/everyday/speedometer.mjs +22 -0
- package/dist/illustrations/story-scene/everyday/train-speedometer.mjs +208 -0
- package/dist/illustrations/story-scene/index.d.mts +6 -0
- package/dist/illustrations/story-scene/index.mjs +6 -0
- package/dist/illustrations/story-scene/math/bag-of-counters.mjs +147 -0
- package/dist/illustrations/story-scene/math/bank-savings.mjs +111 -0
- package/dist/illustrations/story-scene/math/bearing.mjs +145 -0
- package/dist/illustrations/story-scene/math/building-shadow.mjs +149 -0
- package/dist/illustrations/story-scene/math/bus-timetable.mjs +212 -0
- package/dist/illustrations/story-scene/math/code-lock.mjs +146 -0
- package/dist/illustrations/story-scene/math/counting.mjs +31 -0
- package/dist/illustrations/story-scene/math/cricket-area.mjs +119 -0
- package/dist/illustrations/story-scene/math/cylinder-tank.mjs +118 -0
- package/dist/illustrations/story-scene/math/drone-field.mjs +237 -0
- package/dist/illustrations/story-scene/math/elevation.mjs +242 -0
- package/dist/illustrations/story-scene/math/fenced-garden.mjs +129 -0
- package/dist/illustrations/story-scene/math/flag-pole.mjs +78 -0
- package/dist/illustrations/story-scene/math/football-goal.mjs +155 -0
- package/dist/illustrations/story-scene/math/ice-cream-cone.mjs +143 -0
- package/dist/illustrations/story-scene/math/kite-string.mjs +154 -0
- package/dist/illustrations/story-scene/math/ladder-wall.mjs +154 -0
- package/dist/illustrations/story-scene/math/lighthouse-boats.mjs +321 -0
- package/dist/illustrations/story-scene/math/map-scale.mjs +172 -0
- package/dist/illustrations/story-scene/math/phone-tower.mjs +132 -0
- package/dist/illustrations/story-scene/math/photo-line-up.mjs +130 -0
- package/dist/illustrations/story-scene/math/population-town.mjs +173 -0
- package/dist/illustrations/story-scene/math/pyramid-tent.mjs +227 -0
- package/dist/illustrations/story-scene/math/ramp.mjs +202 -0
- package/dist/illustrations/story-scene/math/registry.mjs +414 -0
- package/dist/illustrations/story-scene/math/river-boat.mjs +173 -0
- package/dist/illustrations/story-scene/math/shop-price-tag.mjs +107 -0
- package/dist/illustrations/story-scene/math/snapped-tree.mjs +125 -0
- package/dist/illustrations/story-scene/math/storeroom-box.mjs +222 -0
- package/dist/illustrations/story-scene/math/tank-tap.mjs +166 -0
- package/dist/illustrations/story-scene/math/taxi-fare.mjs +120 -0
- package/dist/illustrations/story-scene/math/team-pick.mjs +120 -0
- package/dist/illustrations/story-scene/model.d.mts +50 -0
- package/dist/illustrations/story-scene/model.mjs +154 -0
- package/dist/illustrations/story-scene/parts.mjs +310 -0
- package/dist/illustrations/story-scene/physics/car-bend.mjs +142 -0
- package/dist/illustrations/story-scene/physics/car-crash.mjs +117 -0
- package/dist/illustrations/story-scene/physics/cliff-throw.mjs +110 -0
- package/dist/illustrations/story-scene/physics/curved-slide.mjs +202 -0
- package/dist/illustrations/story-scene/physics/diver-depth.mjs +237 -0
- package/dist/illustrations/story-scene/physics/electric-kettle.mjs +195 -0
- package/dist/illustrations/story-scene/physics/hot-drink.mjs +124 -0
- package/dist/illustrations/story-scene/physics/lift-shaft.mjs +207 -0
- package/dist/illustrations/story-scene/physics/pendulum.mjs +112 -0
- package/dist/illustrations/story-scene/physics/registry.mjs +192 -0
- package/dist/illustrations/story-scene/physics/sealed-syringe.mjs +155 -0
- package/dist/illustrations/story-scene/physics/see-saw.mjs +162 -0
- package/dist/illustrations/story-scene/physics/thermometer.mjs +194 -0
- package/dist/illustrations/story-scene/physics/trolley-pull.mjs +186 -0
- package/dist/illustrations/story-scene/registry.d.mts +9 -0
- package/dist/illustrations/story-scene/registry.mjs +31 -0
- package/dist/illustrations/story-scene/schema.mjs +82 -0
- package/dist/illustrations/story-scene/spec-kit.d.mts +58 -0
- package/dist/illustrations/story-scene/spec-kit.mjs +81 -0
- package/dist/illustrations/story-scene/specs.d.mts +18 -0
- package/dist/illustrations/story-scene/specs.mjs +48 -0
- package/dist/illustrations/story-scene/story-scene.d.mts +25 -0
- package/dist/illustrations/story-scene/story-scene.mjs +138 -0
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -2
- package/dist/kit/active-recall.d.mts +65 -0
- package/dist/kit/active-recall.mjs +581 -0
- package/dist/kit/activity.d.mts +7 -21
- package/dist/kit/activity.mjs +13 -6
- package/dist/kit/annotate.mjs +33 -29
- package/dist/kit/authored-activity-runtime.mjs +10 -5
- package/dist/kit/authored-response.mjs +20 -17
- package/dist/kit/bar-strip.mjs +1 -1
- package/dist/kit/chemistry/cycle.mjs +2 -2
- package/dist/kit/chemistry/glassware.d.mts +50 -2
- package/dist/kit/chemistry/glassware.mjs +396 -5
- package/dist/kit/chemistry/index.d.mts +3 -2
- package/dist/kit/chemistry/mechanism.mjs +30 -6
- package/dist/kit/chemistry/observation.d.mts +1 -1
- package/dist/kit/chemistry/observation.mjs +1 -0
- package/dist/kit/chemistry/reaction.mjs +198 -16
- package/dist/kit/chemistry/spectrum.mjs +5 -2
- package/dist/kit/chemistry/tool-icons.d.mts +12 -0
- package/dist/kit/chemistry/tool-icons.mjs +51 -0
- package/dist/kit/choice-order.mjs +29 -0
- package/dist/kit/clue-scene.mjs +14 -10
- package/dist/kit/cluster.mjs +17 -13
- package/dist/kit/commerce/books.d.mts +66 -0
- package/dist/kit/commerce/books.mjs +281 -0
- package/dist/kit/commerce/index.d.mts +2 -1
- package/dist/kit/commerce/ledger.mjs +5 -1
- package/dist/kit/controls.mjs +3 -2
- package/dist/kit/coords.mjs +1 -1
- package/dist/kit/cycle.mjs +90 -34
- package/dist/kit/data-scene.mjs +19 -22
- package/dist/kit/diagram/annotations.mjs +74 -16
- package/dist/kit/diagram/circuit-box.mjs +3 -40
- package/dist/kit/electronics/icons.mjs +4 -4
- package/dist/kit/electronics/op-amp.mjs +72 -0
- package/dist/kit/electronics/rectifier.mjs +153 -0
- package/dist/kit/electronics/semiconductor.mjs +92 -1
- package/dist/kit/engine-trace.mjs +257 -0
- package/dist/kit/ensure-asset.mjs +21 -0
- package/dist/kit/figure/figure.d.mts +14 -3
- package/dist/kit/figure/figure.mjs +11 -3
- package/dist/kit/figure/index.d.mts +3 -3
- package/dist/kit/figure/plot.d.mts +13 -1
- package/dist/kit/figure/text.d.mts +12 -3
- package/dist/kit/figure/text.mjs +18 -7
- package/dist/kit/figure-drag.mjs +93 -0
- package/dist/kit/frame.mjs +18 -1
- package/dist/kit/freq-tree.d.mts +22 -0
- package/dist/kit/freq-tree.mjs +15 -10
- package/dist/kit/gameshow.mjs +16 -14
- package/dist/kit/goal-activity.mjs +38 -0
- package/dist/kit/index.d.mts +14 -7
- package/dist/kit/index.mjs +20 -14
- package/dist/kit/instruments.mjs +2 -1
- package/dist/kit/learning-sequence.mjs +13 -6
- package/dist/kit/logic-gates/_shared.mjs +1 -2
- package/dist/kit/logic-gates/display.mjs +17 -19
- package/dist/kit/logic-gates/gate.mjs +46 -22
- package/dist/kit/magnetism/glyphs.d.mts +46 -1
- package/dist/kit/magnetism/glyphs.mjs +72 -1
- package/dist/kit/magnetism/index.d.mts +2 -2
- package/dist/kit/molecules.mjs +37 -24
- package/dist/kit/networking/glyphs.d.mts +2 -1
- package/dist/kit/networking/glyphs.mjs +9 -6
- package/dist/kit/networking/primitives.d.mts +1 -1
- package/dist/kit/networking/primitives.mjs +276 -3
- package/dist/kit/palette.mjs +62 -1
- package/dist/kit/pedagogy.d.mts +12 -1
- package/dist/kit/pedagogy.mjs +64 -19
- package/dist/kit/play.mjs +1 -1
- package/dist/kit/predict-gate.d.mts +7 -1
- package/dist/kit/predict-gate.mjs +99 -13
- package/dist/kit/predict.mjs +1 -1
- package/dist/kit/probability.mjs +10 -7
- package/dist/kit/proportion.mjs +34 -35
- package/dist/kit/reaction.mjs +31 -37
- package/dist/kit/recall-schedule.d.mts +12 -0
- package/dist/kit/recall-schedule.mjs +35 -0
- package/dist/kit/rich.mjs +1 -1
- package/dist/kit/rule.d.mts +7 -1
- package/dist/kit/rule.mjs +4 -4
- package/dist/kit/scale.mjs +1 -1
- package/dist/kit/scene-studio.mjs +7 -5
- package/dist/kit/scenes.mjs +51 -67
- package/dist/kit/space-glyphs.mjs +1 -1
- package/dist/kit/streak.mjs +156 -0
- package/dist/kit/thermal.mjs +25 -33
- package/dist/kit/vessel.mjs +30 -34
- package/dist/kit/world/index.d.mts +4 -0
- package/dist/kit/world/runtime.d.mts +42 -0
- package/dist/kit/world/runtime.mjs +103 -0
- package/dist/kit/world/skin-registry.d.mts +21 -0
- package/dist/kit/world/skin-registry.mjs +16 -0
- package/dist/kit/world/world-scene.d.mts +22 -0
- package/dist/kit/world/world-scene.mjs +176 -0
- package/dist/lab-def/define-lab.d.mts +9 -1
- package/dist/lab-def/define-lab.mjs +3 -1
- package/dist/lab-def/lab-runtime.mjs +3 -3
- package/dist/lab-def/to-block.mjs +2 -2
- package/dist/language/ui.mjs +2 -1
- package/dist/language/word-match/preset.mjs +2 -2
- package/dist/logic/ChipScene.mjs +7 -6
- package/dist/logic/LatchScene.mjs +1 -1
- package/dist/logic/LogicBuildLab.mjs +2 -2
- package/dist/logic/LogicEditScene.mjs +12 -12
- package/dist/logic/LogicEditor.mjs +1 -1
- package/dist/logic/LogicScene.mjs +28 -25
- package/dist/logic/contract.d.mts +4 -86
- package/dist/logic/counter.d.mts +4 -1
- package/dist/logic/counter.mjs +49 -4
- package/dist/logic/display.mjs +29 -27
- package/dist/logic/evaluate.d.mts +2 -17
- package/dist/logic/evaluate.mjs +2 -169
- package/dist/logic/gates.d.mts +1 -6
- package/dist/logic/gates.mjs +21 -62
- package/dist/logic/ic.d.mts +2 -58
- package/dist/logic/ic.mjs +4 -234
- package/dist/logic/index.d.mts +2 -2
- package/dist/logic/index.mjs +2 -2
- package/dist/logic/netlist.d.mts +2 -26
- package/dist/logic/netlist.mjs +1 -27
- package/dist/logic/registry.d.mts +0 -1
- package/dist/logic/registry.mjs +16 -8
- package/dist/logic/runtime/index.d.mts +1 -1
- package/dist/logic/sequential.d.mts +2 -123
- package/dist/logic/sequential.mjs +1 -185
- package/dist/math/alligation-mix/preset.mjs +239 -0
- package/dist/math/angle-chase/index.d.mts +4 -0
- package/dist/math/angle-chase/model.d.mts +14 -0
- package/dist/math/angle-chase/model.mjs +355 -0
- package/dist/math/angle-chase/preset.d.mts +26 -0
- package/dist/math/angle-chase/preset.mjs +438 -0
- package/dist/math/angle-chase/presets.d.mts +6 -0
- package/dist/math/angle-chase/presets.mjs +766 -0
- package/dist/math/angle-chase/scene.mjs +228 -0
- package/dist/math/answer-accuracy/core.d.mts +24 -0
- package/dist/math/answer-accuracy/core.mjs +99 -0
- package/dist/math/answer-accuracy/entry.mjs +81 -0
- package/dist/math/answer-accuracy/schema.mjs +15 -0
- package/dist/math/area-model/asset.mjs +34 -27
- package/dist/math/area-model/preset.mjs +87 -35
- package/dist/math/area-rearrange/preset.mjs +1 -1
- package/dist/math/balance-algebra/asset.mjs +1 -1
- package/dist/math/balance-algebra/preset.mjs +3 -2
- package/dist/math/bearings/index.d.mts +1 -1
- package/dist/math/bearings/preset.d.mts +40 -2
- package/dist/math/bearings/preset.mjs +169 -59
- package/dist/math/bounds-window/preset.mjs +1 -1
- package/dist/math/broken-tree/index.d.mts +1 -1
- package/dist/math/broken-tree/preset.d.mts +30 -2
- package/dist/math/broken-tree/preset.mjs +127 -44
- package/dist/math/complex/preset.mjs +1 -1
- package/dist/math/complex/rule-figures.mjs +1 -1
- package/dist/math/cone-frustum/preset.mjs +1 -1
- package/dist/math/conic/preset.mjs +1 -1
- package/dist/math/coord-point/preset.mjs +136 -0
- package/dist/math/coordinate-geometry/angle-between-lines/core.mjs +29 -0
- package/dist/math/coordinate-geometry/angle-between-lines/preset.mjs +279 -0
- package/dist/math/coordinate-geometry/chord-bisection/core.mjs +52 -0
- package/dist/math/coordinate-geometry/chord-bisection/preset.mjs +244 -0
- package/dist/math/coordinate-geometry/chord-given-midpoint/core.mjs +39 -0
- package/dist/math/coordinate-geometry/chord-given-midpoint/preset.mjs +206 -0
- package/dist/math/coordinate-geometry/chord-of-contact/core.mjs +33 -0
- package/dist/math/coordinate-geometry/chord-of-contact/preset.mjs +248 -0
- package/dist/math/coordinate-geometry/circle/preset.d.mts +30 -0
- package/dist/math/coordinate-geometry/circle/preset.mjs +216 -0
- package/dist/math/coordinate-geometry/circle-diameter-endpoints/core.mjs +54 -0
- package/dist/math/coordinate-geometry/circle-diameter-endpoints/preset.mjs +272 -0
- package/dist/math/coordinate-geometry/circle-intersection-angle/core.mjs +48 -0
- package/dist/math/coordinate-geometry/circle-intersection-angle/preset.mjs +249 -0
- package/dist/math/coordinate-geometry/circle-line-tangency/core.mjs +50 -0
- package/dist/math/coordinate-geometry/circle-line-tangency/preset.mjs +254 -0
- package/dist/math/coordinate-geometry/circle-through-points/core.mjs +77 -0
- package/dist/math/coordinate-geometry/circle-through-points/preset.mjs +241 -0
- package/dist/math/coordinate-geometry/common-tangents-count/core.mjs +99 -0
- package/dist/math/coordinate-geometry/common-tangents-count/preset.mjs +236 -0
- package/dist/math/coordinate-geometry/line-concurrency/core.mjs +62 -0
- package/dist/math/coordinate-geometry/line-concurrency/preset.mjs +264 -0
- package/dist/math/coordinate-geometry/line-family/core.mjs +26 -0
- package/dist/math/coordinate-geometry/line-family/preset.mjs +298 -0
- package/dist/math/coordinate-geometry/point-line-distance/core.mjs +47 -0
- package/dist/math/coordinate-geometry/point-line-distance/preset.mjs +285 -0
- package/dist/math/coordinate-geometry/point-reflection/preset.mjs +291 -0
- package/dist/math/coordinate-geometry/polar-cartesian/core.mjs +20 -0
- package/dist/math/coordinate-geometry/polar-cartesian/preset.mjs +254 -0
- package/dist/math/coordinate-geometry/radical-axis/core.mjs +57 -0
- package/dist/math/coordinate-geometry/radical-axis/preset.mjs +268 -0
- package/dist/math/coordinate-geometry/section-formula/core.mjs +16 -0
- package/dist/math/coordinate-geometry/section-formula/preset.mjs +286 -0
- package/dist/math/coordinate-geometry/straight-line/preset.d.mts +36 -0
- package/dist/math/coordinate-geometry/straight-line/preset.mjs +420 -0
- package/dist/math/coordinate-geometry/tangent-length-power-of-point/core.mjs +49 -0
- package/dist/math/coordinate-geometry/tangent-length-power-of-point/preset.mjs +250 -0
- package/dist/math/coordinate-geometry/triangle-area/core.mjs +23 -0
- package/dist/math/coordinate-geometry/triangle-area/preset.mjs +458 -0
- package/dist/math/derivation.d.mts +19 -10
- package/dist/math/derivation.mjs +79 -62
- package/dist/math/derivative-explorer/preset.mjs +87 -11
- package/dist/math/differential-equation/preset.mjs +1 -1
- package/dist/math/discriminant-radar/index.d.mts +2 -0
- package/dist/math/discriminant-radar/model.d.mts +5 -0
- package/dist/math/discriminant-radar/model.mjs +440 -0
- package/dist/math/discriminant-radar/preset.d.mts +29 -0
- package/dist/math/discriminant-radar/preset.mjs +625 -0
- package/dist/math/distribute-strip/preset.mjs +203 -0
- package/dist/math/domain-range/preset.mjs +2 -29
- package/dist/math/exact-triangle/preset.mjs +172 -42
- package/dist/math/fraction-bar/preset.mjs +1 -1
- package/dist/math/function-machine/preset.mjs +1 -1
- package/dist/math/functions/composite/model.d.mts +15 -0
- package/dist/math/functions/composite/model.mjs +452 -0
- package/dist/math/functions/composite/rounds-lab.d.mts +17 -0
- package/dist/math/functions/composite/rounds-lab.mjs +501 -0
- package/dist/math/functions/composite/scenes.mjs +451 -0
- package/dist/math/functions/composite-functions.d.mts +34 -0
- package/dist/math/functions/composite-functions.mjs +640 -0
- package/dist/math/functions/family-tree/lab.d.mts +24 -0
- package/dist/math/functions/family-tree/lab.mjs +602 -0
- package/dist/math/functions/family-tree/layout.mjs +188 -0
- package/dist/math/functions/family-tree/model.d.mts +64 -0
- package/dist/math/functions/family-tree/model.mjs +742 -0
- package/dist/math/functions/family-tree/scenes.mjs +608 -0
- package/dist/math/functions/graph-transform.d.mts +31 -0
- package/dist/math/functions/graph-transform.mjs +439 -0
- package/dist/math/functions/index.d.mts +7 -0
- package/dist/math/functions/injective-classifier.d.mts +16 -0
- package/dist/math/functions/injective-classifier.mjs +300 -0
- package/dist/math/functions/inverse-functions.d.mts +16 -0
- package/dist/math/functions/inverse-functions.mjs +366 -0
- package/dist/math/functions/modulus-function.d.mts +18 -0
- package/dist/math/functions/modulus-function.mjs +426 -0
- package/dist/math/fundamental-theorem/preset.mjs +1 -1
- package/dist/math/geometry-foundations/activity.mjs +6 -3
- package/dist/math/geometry-foundations/core.mjs +1 -1
- package/dist/math/geometry-foundations/preset.d.mts +8 -1
- package/dist/math/geometry-foundations/preset.mjs +196 -114
- package/dist/math/gradient-descent.mjs +50 -12
- package/dist/math/grapher/preset.mjs +1 -1
- package/dist/math/harmonic-form/preset.mjs +3 -3
- package/dist/math/implicit-parametric-derivative/contour.mjs +170 -0
- package/dist/math/implicit-parametric-derivative/index.d.mts +2 -0
- package/dist/math/implicit-parametric-derivative/preset.d.mts +23 -0
- package/dist/math/implicit-parametric-derivative/preset.mjs +753 -0
- package/dist/math/index.d.mts +50 -6
- package/dist/math/index.mjs +32 -4
- package/dist/math/inequalities/index.d.mts +3 -0
- package/dist/math/inequalities/inequality-solver.d.mts +21 -0
- package/dist/math/inequalities/inequality-solver.mjs +477 -0
- package/dist/math/inequalities/modulus-inequality.d.mts +17 -0
- package/dist/math/inequalities/modulus-inequality.mjs +366 -0
- package/dist/math/inequality-line/preset.mjs +196 -0
- package/dist/math/integral-explorer/preset.mjs +1 -1
- package/dist/math/integration-workbench/index.d.mts +2 -0
- package/dist/math/integration-workbench/model.mjs +578 -0
- package/dist/math/integration-workbench/preset.d.mts +20 -0
- package/dist/math/integration-workbench/preset.mjs +489 -0
- package/dist/math/interactive/preset.mjs +1 -1
- package/dist/math/iteration/preset.mjs +1 -1
- package/dist/math/limit-explorer/preset.mjs +84 -6
- package/dist/math/linear-map/index.d.mts +2 -0
- package/dist/math/linear-map/preset.d.mts +19 -0
- package/dist/math/linear-map/preset.mjs +433 -0
- package/dist/math/linear-model/preset.mjs +2 -1
- package/dist/math/linear-system/preset.mjs +72 -16
- package/dist/math/linearisation/chart.mjs +106 -0
- package/dist/math/linearisation/core.mjs +27 -0
- package/dist/math/lines-in-space/preset.mjs +240 -54
- package/dist/math/measurement/preset.mjs +83 -66
- package/dist/math/mystery-bucket/asset.mjs +1 -1
- package/dist/math/mystery-bucket/preset.mjs +3 -2
- package/dist/math/newton-method/preset.mjs +1 -1
- package/dist/math/number-line/preset.mjs +1 -1
- package/dist/math/oblique-triangle/core.d.mts +3 -1
- package/dist/math/oblique-triangle/core.mjs +131 -4
- package/dist/math/oblique-triangle/index.d.mts +2 -2
- package/dist/math/oblique-triangle/preset.d.mts +50 -4
- package/dist/math/oblique-triangle/preset.mjs +270 -72
- package/dist/math/parabola/preset.mjs +1 -1
- package/dist/math/partial-fractions/core.d.mts +2 -68
- package/dist/math/partial-fractions/core.mjs +2 -221
- package/dist/math/partial-fractions/index.d.mts +1 -1
- package/dist/math/partial-fractions/preset.mjs +1 -1
- package/dist/math/pattern/asset.mjs +11 -8
- package/dist/math/pattern/preset.mjs +3 -2
- package/dist/math/percent-bar/preset.mjs +3 -9
- package/dist/math/phase-portrait/preset.mjs +1 -1
- package/dist/math/poly/guided.mjs +1064 -0
- package/dist/math/poly/index.d.mts +2 -2
- package/dist/math/poly/index.mjs +2 -2
- package/dist/math/poly/model.mjs +378 -0
- package/dist/math/poly/preset.d.mts +13 -3
- package/dist/math/poly/preset.mjs +226 -103
- package/dist/math/poly/scenes.mjs +370 -0
- package/dist/math/poly/trace-renderers.mjs +178 -0
- package/dist/math/poly-roots/exact.mjs +179 -0
- package/dist/math/poly-roots/one-question.mjs +16 -0
- package/dist/math/poly-roots/typed-answer.mjs +92 -0
- package/dist/math/price-chain/preset.mjs +243 -0
- package/dist/math/radian-wrap/preset.mjs +11 -7
- package/dist/math/rate-machine/preset.mjs +3 -2
- package/dist/math/ratio-share/preset.d.mts +4 -0
- package/dist/math/ratio-share/preset.mjs +49 -7
- package/dist/math/relative-speed-track/preset.mjs +231 -0
- package/dist/math/right-triangle/dissection-board.d.mts +5 -0
- package/dist/math/right-triangle/dissection-board.mjs +143 -0
- package/dist/math/right-triangle/exact-entry.d.mts +2 -0
- package/dist/math/right-triangle/exact-entry.mjs +79 -0
- package/dist/math/right-triangle/index.d.mts +5 -0
- package/dist/math/right-triangle/pythagoras-dissection.d.mts +35 -0
- package/dist/math/right-triangle/pythagoras-dissection.mjs +481 -0
- package/dist/math/right-triangle/special-triangles.d.mts +34 -0
- package/dist/math/right-triangle/special-triangles.mjs +499 -0
- package/dist/math/root-fingerprint/index.d.mts +2 -0
- package/dist/math/root-fingerprint/model.mjs +336 -0
- package/dist/math/root-fingerprint/preset.d.mts +32 -0
- package/dist/math/root-fingerprint/preset.mjs +566 -0
- package/dist/math/root-fingerprint/scene.mjs +753 -0
- package/dist/math/root-mover/index.d.mts +2 -0
- package/dist/math/root-mover/model.mjs +458 -0
- package/dist/math/root-mover/preset.d.mts +23 -0
- package/dist/math/root-mover/preset.mjs +361 -0
- package/dist/math/root-mover/scene.mjs +221 -0
- package/dist/math/sequence-predict/index.d.mts +2 -1
- package/dist/math/sequence-predict/model.d.mts +13 -0
- package/dist/math/sequence-predict/model.mjs +57 -0
- package/dist/math/sequence-predict/preset.d.mts +8 -4
- package/dist/math/sequence-predict/preset.mjs +89 -32
- package/dist/math/slide-rule/preset.mjs +1 -1
- package/dist/math/solid-net/preset.mjs +1 -1
- package/dist/math/solid-slice/preset.mjs +1 -1
- package/dist/math/solids-of-revolution/index.d.mts +4 -0
- package/dist/math/solids-of-revolution/model.d.mts +71 -0
- package/dist/math/solids-of-revolution/model.mjs +379 -0
- package/dist/math/solids-of-revolution/preset.d.mts +33 -0
- package/dist/math/solids-of-revolution/preset.mjs +411 -0
- package/dist/math/solids-of-revolution/scene.d.mts +20 -0
- package/dist/math/solids-of-revolution/scene.mjs +330 -0
- package/dist/math/stationary-point-classifier/index.d.mts +2 -0
- package/dist/math/stationary-point-classifier/preset.d.mts +14 -0
- package/dist/math/stationary-point-classifier/preset.mjs +263 -0
- package/dist/math/substitute-value/preset.mjs +184 -0
- package/dist/math/system-solve/preset.mjs +143 -29
- package/dist/math/tangent-normal/index.d.mts +2 -0
- package/dist/math/tangent-normal/preset.d.mts +15 -0
- package/dist/math/tangent-normal/preset.mjs +335 -0
- package/dist/math/tangent-rule-triangle/core.d.mts +13 -0
- package/dist/math/tangent-rule-triangle/core.mjs +42 -0
- package/dist/math/tangent-rule-triangle/index.d.mts +4 -0
- package/dist/math/tangent-rule-triangle/preset.d.mts +16 -0
- package/dist/math/tangent-rule-triangle/preset.mjs +306 -0
- package/dist/math/tank-design/preset.mjs +2 -2
- package/dist/math/taylor-series/preset.mjs +1 -1
- package/dist/math/transform/preset.mjs +2 -2
- package/dist/math/triangle-trig/core.d.mts +19 -0
- package/dist/math/triangle-trig/core.mjs +71 -0
- package/dist/math/triangle-trig/index.d.mts +2 -1
- package/dist/math/triangle-trig/preset.d.mts +52 -7
- package/dist/math/triangle-trig/preset.mjs +224 -69
- package/dist/math/trig/associated-angle.d.mts +16 -0
- package/dist/math/trig/associated-angle.mjs +355 -0
- package/dist/math/trig/diagrams.mjs +1 -1
- package/dist/math/trig/equation-solver.d.mts +28 -0
- package/dist/math/trig/equation-solver.mjs +702 -0
- package/dist/math/trig/general-solution.d.mts +16 -0
- package/dist/math/trig/general-solution.mjs +353 -0
- package/dist/math/trig/index.d.mts +6 -1
- package/dist/math/trig/multiple-angle.d.mts +20 -0
- package/dist/math/trig/multiple-angle.mjs +338 -0
- package/dist/math/trig/preset.mjs +1 -1
- package/dist/math/trig/sum-to-product.d.mts +16 -0
- package/dist/math/trig/sum-to-product.mjs +317 -0
- package/dist/math/trig-explorer.mjs +1 -1
- package/dist/ml/core/embedding.d.mts +34 -0
- package/dist/ml/core/embedding.mjs +148 -0
- package/dist/ml/core/index.d.mts +11 -0
- package/dist/ml/core/index.mjs +20 -0
- package/dist/ml/core/next-token.d.mts +20 -0
- package/dist/ml/core/next-token.mjs +69 -0
- package/dist/ml/core/polyfit.d.mts +12 -0
- package/dist/ml/core/polyfit.mjs +62 -0
- package/dist/ml/core/regression.d.mts +99 -0
- package/dist/ml/core/regression.mjs +171 -0
- package/dist/ml/core/split-leak.d.mts +137 -0
- package/dist/ml/core/split-leak.mjs +488 -0
- package/dist/ml/core/threshold-metrics.d.mts +14 -0
- package/dist/ml/core/threshold-metrics.mjs +11 -0
- package/dist/ml/index.d.mts +4 -1
- package/dist/ml/index.mjs +3 -1
- package/dist/ml/worlds/bakery/records.mjs +96 -0
- package/dist/ml/worlds/bakery/sets.mjs +619 -0
- package/dist/ml/worlds/index.d.mts +12 -0
- package/dist/ml/worlds/index.mjs +22 -0
- package/dist/ml/worlds/synthetic.d.mts +10 -0
- package/dist/ml/worlds/synthetic.mjs +83 -0
- package/dist/ml/worlds/types.d.mts +84 -0
- package/dist/networking/AirtimeScene.mjs +6 -15
- package/dist/networking/CellularScene.mjs +247 -36
- package/dist/networking/HandoverScene.mjs +15 -3
- package/dist/networking/HandshakeScene.mjs +266 -47
- package/dist/networking/MediaScene.mjs +7 -31
- package/dist/networking/NetworkScene.d.mts +3 -1
- package/dist/networking/NetworkScene.mjs +16 -4
- package/dist/networking/PlugScene.mjs +4 -30
- package/dist/networking/PrivacyScene.mjs +7 -26
- package/dist/networking/SatelliteScene.mjs +4 -3
- package/dist/networking/SpectrumScene.mjs +21 -28
- package/dist/networking/SubnetScene.mjs +7 -15
- package/dist/networking/SwitchScene.mjs +27 -195
- package/dist/networking/VlanScene.mjs +19 -32
- package/dist/networking/VpnScene.mjs +22 -35
- package/dist/networking/WifiScene.mjs +38 -40
- package/dist/pedagogy/concept-sprint/clock.mjs +25 -0
- package/dist/pedagogy/concept-sprint/core.mjs +206 -0
- package/dist/pedagogy/concept-sprint/preset.mjs +329 -0
- package/dist/physics/alternating-current/preset.d.mts +5 -1
- package/dist/physics/alternating-current/preset.mjs +47 -16
- package/dist/physics/astronomy/cosmic-expansion.d.mts +16 -0
- package/dist/physics/astronomy/cosmic-expansion.mjs +356 -0
- package/dist/physics/astronomy/stellar-distance.d.mts +16 -0
- package/dist/physics/astronomy/stellar-distance.mjs +291 -0
- package/dist/physics/astronomy/stellar-evolution.d.mts +15 -0
- package/dist/physics/astronomy/stellar-evolution.mjs +314 -0
- package/dist/physics/astronomy/stellar-radiation.d.mts +16 -0
- package/dist/physics/astronomy/stellar-radiation.mjs +239 -0
- package/dist/physics/atwood/preset.mjs +43 -47
- package/dist/physics/beam-reactions/index.d.mts +2 -0
- package/dist/physics/beam-reactions/preset.d.mts +21 -0
- package/dist/physics/beam-reactions/preset.mjs +360 -0
- package/dist/physics/biot-savart/activity.mjs +71 -2
- package/dist/physics/biot-savart/preset.mjs +84 -42
- package/dist/physics/biot-savart/presets.mjs +111 -28
- package/dist/physics/biot-savart/torque-activity.mjs +30 -2
- package/dist/physics/biot-savart/torque-preset.mjs +79 -31
- package/dist/physics/bullet-walls/preset.mjs +2 -2
- package/dist/physics/buoyancy/index.d.mts +2 -0
- package/dist/physics/buoyancy/preset.d.mts +16 -0
- package/dist/physics/buoyancy/preset.mjs +365 -0
- package/dist/physics/carnot/preset.d.mts +1 -1
- package/dist/physics/carnot/preset.mjs +58 -60
- package/dist/physics/circular-motion/preset.d.mts +5 -1
- package/dist/physics/circular-motion/preset.mjs +136 -69
- package/dist/physics/collision-track/preset.mjs +65 -77
- package/dist/physics/constants.mjs +4 -4
- package/dist/physics/couple-torque/preset.mjs +50 -20
- package/dist/physics/efficiency/preset.mjs +30 -37
- package/dist/physics/electric-field/preset.mjs +20 -21
- package/dist/physics/electric-flux/preset.mjs +10 -3
- package/dist/physics/electrostatics/coulomb-preset.mjs +1 -1
- package/dist/physics/energy/core.d.mts +3 -89
- package/dist/physics/energy/core.mjs +4 -125
- package/dist/physics/energy-skate/preset.mjs +3 -3
- package/dist/physics/entropy/preset.mjs +62 -59
- package/dist/physics/expansion/preset.mjs +53 -61
- package/dist/physics/exponential/asset.mjs +28 -28
- package/dist/physics/exponential/preset.mjs +1 -1
- package/dist/physics/field-geometry/flux-geometry.mjs +53 -0
- package/dist/physics/field-geometry/index.d.mts +2 -0
- package/dist/physics/field-geometry/preset.d.mts +19 -0
- package/dist/physics/field-geometry/preset.mjs +440 -0
- package/dist/physics/fields/spatial-preset.mjs +6 -5
- package/dist/physics/fluid-pressure/preset.mjs +60 -57
- package/dist/physics/force-pairs/preset.mjs +105 -59
- package/dist/physics/gas-process/preset.d.mts +1 -1
- package/dist/physics/gas-process/preset.mjs +34 -36
- package/dist/physics/gas-theory/index.d.mts +2 -0
- package/dist/physics/gas-theory/preset.d.mts +13 -0
- package/dist/physics/gas-theory/preset.mjs +302 -0
- package/dist/physics/gauss-law/preset.mjs +77 -66
- package/dist/physics/geomagnetism/preset.mjs +1 -1
- package/dist/physics/gravitation/preset.mjs +1 -1
- package/dist/physics/gravity-drop.mjs +40 -13
- package/dist/physics/gravity-profile/preset.mjs +2 -2
- package/dist/physics/heat-transfer/cases.d.mts +9 -0
- package/dist/physics/heat-transfer/cases.mjs +319 -0
- package/dist/physics/heat-transfer/index.d.mts +2 -1
- package/dist/physics/heat-transfer/preset.d.mts +3 -1
- package/dist/physics/heat-transfer/preset.mjs +243 -180
- package/dist/physics/impulse/preset.mjs +33 -45
- package/dist/physics/index.d.mts +59 -8
- package/dist/physics/index.mjs +53 -8
- package/dist/physics/intercept/animals.mjs +10 -6
- package/dist/physics/intercept/preset.mjs +4 -3
- package/dist/physics/investigation/circuit.d.mts +3 -5
- package/dist/physics/investigation/energy-resource.mjs +2 -2
- package/dist/physics/investigation/measurement.mjs +9 -12
- package/dist/physics/investigation-activity.d.mts +2 -0
- package/dist/physics/investigation-activity.mjs +20 -36
- package/dist/physics/kepler/period.d.mts +5 -0
- package/dist/physics/kepler/period.mjs +9 -0
- package/dist/physics/kepler/preset.mjs +2 -2
- package/dist/physics/lever/asset.mjs +10 -8
- package/dist/physics/lever/preset.mjs +36 -6
- package/dist/physics/lift-weight/preset.mjs +1 -1
- package/dist/physics/lifting-work/preset.mjs +1 -1
- package/dist/physics/linear-pursuit/preset.mjs +2 -2
- package/dist/physics/lorentz/activity.d.mts +26 -0
- package/dist/physics/lorentz/activity.mjs +85 -0
- package/dist/physics/lorentz/core.d.mts +1 -5
- package/dist/physics/lorentz/core.mjs +1 -29
- package/dist/physics/lorentz/index.d.mts +1 -1
- package/dist/physics/lorentz/preset.d.mts +9 -2
- package/dist/physics/lorentz/preset.mjs +289 -111
- package/dist/physics/machines/ac-generator/core.d.mts +2 -38
- package/dist/physics/machines/ac-generator/core.mjs +2 -49
- package/dist/physics/machines/ac-generator/index.d.mts +2 -2
- package/dist/physics/machines/ac-generator/preset.d.mts +2 -1
- package/dist/physics/machines/ac-generator/preset.mjs +164 -186
- package/dist/physics/machines/dc-motor/core.d.mts +2 -28
- package/dist/physics/machines/dc-motor/core.mjs +2 -56
- package/dist/physics/machines/dc-motor/index.d.mts +2 -2
- package/dist/physics/machines/dc-motor/preset.d.mts +3 -1
- package/dist/physics/machines/dc-motor/preset.mjs +92 -85
- package/dist/physics/magnetisation/activity.mjs +187 -0
- package/dist/physics/magnetisation/core.mjs +180 -0
- package/dist/physics/magnetisation/preset.mjs +715 -0
- package/dist/physics/magnetism/compass-core.d.mts +8 -0
- package/dist/physics/magnetism/compass-core.mjs +184 -0
- package/dist/physics/magnetism/electromagnet-bench.d.mts +19 -0
- package/dist/physics/magnetism/electromagnet-bench.mjs +342 -0
- package/dist/physics/magnetism/formula-core.d.mts +1 -1
- package/dist/physics/magnetism/formula-core.mjs +3 -6
- package/dist/physics/magnetism/index.d.mts +9 -1
- package/dist/physics/magnetism/induction-bench.d.mts +19 -0
- package/dist/physics/magnetism/induction-bench.mjs +232 -0
- package/dist/physics/magnetism/inductor-energy.d.mts +1 -0
- package/dist/physics/magnetism/inductor-energy.mjs +168 -0
- package/dist/physics/magnetism/mutual-induction-core.mjs +32 -0
- package/dist/physics/magnetism/mutual-induction.d.mts +1 -0
- package/dist/physics/magnetism/mutual-induction.mjs +163 -0
- package/dist/physics/magnetism/pair-core.d.mts +1 -0
- package/dist/physics/magnetism/pair-core.mjs +117 -0
- package/dist/physics/magnetism/pair-preset.d.mts +3 -0
- package/dist/physics/magnetism/pair-preset.mjs +377 -0
- package/dist/physics/magnetism/preset.d.mts +18 -1
- package/dist/physics/magnetism/preset.mjs +174 -256
- package/dist/physics/magnetism/transformer-bench.d.mts +14 -0
- package/dist/physics/magnetism/transformer-bench.mjs +246 -0
- package/dist/physics/magnetism/world-glyphs.d.mts +2 -0
- package/dist/physics/mechanics/activity.mjs +1 -1
- package/dist/physics/mechanics/contact-pressure.d.mts +16 -0
- package/dist/physics/mechanics/contact-pressure.mjs +180 -0
- package/dist/physics/mechanics/core.d.mts +3 -15
- package/dist/physics/mechanics/core.mjs +3 -22
- package/dist/physics/mechanics/force-balance-scene.mjs +108 -0
- package/dist/physics/mechanics/glyphs.mjs +121 -29
- package/dist/physics/mechanics/presentation.mjs +2 -1
- package/dist/physics/mechanics/stability.d.mts +16 -0
- package/dist/physics/mechanics/stability.mjs +183 -0
- package/dist/physics/modern/imaging/index.d.mts +2 -3
- package/dist/physics/modern/imaging/pet-activity.d.mts +4 -1
- package/dist/physics/modern/imaging/pet-activity.mjs +94 -49
- package/dist/physics/modern/imaging/pet-preset.d.mts +4 -2
- package/dist/physics/modern/imaging/pet-preset.mjs +23 -18
- package/dist/physics/modern/imaging/pet-scene.d.mts +3 -2
- package/dist/physics/modern/imaging/pet-scene.mjs +124 -116
- package/dist/physics/modern/imaging/preset.d.mts +3 -2
- package/dist/physics/modern/imaging/preset.mjs +30 -8
- package/dist/physics/modern/imaging/spectrum-preset.d.mts +3 -2
- package/dist/physics/modern/imaging/spectrum-preset.mjs +30 -8
- package/dist/physics/modern/imaging/tomography-preset.mjs +238 -0
- package/dist/physics/modern/index.d.mts +7 -3
- package/dist/physics/modern/index.mjs +7 -3
- package/dist/physics/modern/nuclear/core.d.mts +33 -51
- package/dist/physics/modern/nuclear/core.mjs +30 -60
- package/dist/physics/modern/nuclear/decay-activity.d.mts +5 -0
- package/dist/physics/modern/nuclear/decay-activity.mjs +102 -0
- package/dist/physics/modern/nuclear/decay-core.d.mts +57 -0
- package/dist/physics/modern/nuclear/decay-core.mjs +65 -0
- package/dist/physics/modern/nuclear/decay-preset.d.mts +16 -0
- package/dist/physics/modern/nuclear/decay-preset.mjs +307 -0
- package/dist/physics/modern/nuclear/index.d.mts +4 -1
- package/dist/physics/modern/nuclear/preset.mjs +150 -25
- package/dist/physics/modern/quantum/bloch-preset.mjs +1 -1
- package/dist/physics/modern/quantum/double-slit-preset.mjs +1 -1
- package/dist/physics/modern/quantum/index.d.mts +3 -1
- package/dist/physics/modern/quantum/preset.mjs +1 -1
- package/dist/physics/modern/quantum/spectra-activity.d.mts +5 -0
- package/dist/physics/modern/quantum/spectra-activity.mjs +102 -0
- package/dist/physics/modern/quantum/spectra-preset.d.mts +16 -0
- package/dist/physics/modern/quantum/spectra-preset.mjs +335 -0
- package/dist/physics/modern/quantum/uncertainty-preset.mjs +1 -1
- package/dist/physics/modern/relativity/explorer-preset.mjs +1 -1
- package/dist/physics/modern/relativity/length-preset.mjs +1 -1
- package/dist/physics/modern/relativity/simultaneity-preset.mjs +1 -1
- package/dist/physics/modern/shared/experiment-transport.mjs +1 -1
- package/dist/physics/optics/activity.mjs +27 -0
- package/dist/physics/optics/asset.mjs +53 -28
- package/dist/physics/optics/diffraction-grating.d.mts +15 -0
- package/dist/physics/optics/diffraction-grating.mjs +307 -0
- package/dist/physics/optics/eye-correction.d.mts +16 -0
- package/dist/physics/optics/eye-correction.mjs +272 -0
- package/dist/physics/optics/guided-light.d.mts +19 -0
- package/dist/physics/optics/guided-light.mjs +334 -0
- package/dist/physics/optics/imaging-activity.mjs +3 -14
- package/dist/physics/optics/imaging-world-scene.mjs +564 -0
- package/dist/physics/optics/index.d.mts +8 -1
- package/dist/physics/optics/laser-emitter-glyph.mjs +46 -0
- package/dist/physics/optics/lens-geometry-scene.mjs +266 -0
- package/dist/physics/optics/lens-geometry.d.mts +14 -0
- package/dist/physics/optics/lens-geometry.mjs +122 -0
- package/dist/physics/optics/lens.d.mts +1 -1
- package/dist/physics/optics/lens.mjs +59 -334
- package/dist/physics/optics/light-path-world-scene.mjs +219 -0
- package/dist/physics/optics/mirror.d.mts +1 -1
- package/dist/physics/optics/mirror.mjs +66 -333
- package/dist/physics/optics/polarisation.d.mts +15 -0
- package/dist/physics/optics/polarisation.mjs +264 -0
- package/dist/physics/optics/preset.mjs +6 -4
- package/dist/physics/optics/prism-dispersion.d.mts +15 -0
- package/dist/physics/optics/prism-dispersion.mjs +91 -0
- package/dist/physics/optics/refraction-world-scene.mjs +275 -0
- package/dist/physics/optics/refraction.d.mts +1 -5
- package/dist/physics/optics/refraction.mjs +161 -365
- package/dist/physics/optics/spectral-resolver.d.mts +13 -0
- package/dist/physics/optics/spectral-resolver.mjs +207 -0
- package/dist/physics/orbit-lab.mjs +66 -53
- package/dist/physics/orbital/model.d.mts +3 -3
- package/dist/physics/orbital/model.mjs +32 -9
- package/dist/physics/power/preset.mjs +45 -40
- package/dist/physics/practical-data/scale.mjs +47 -0
- package/dist/physics/projectiles/falling-target.mjs +22 -4
- package/dist/physics/projectiles/moving-launcher.mjs +5 -5
- package/dist/physics/rain-relative/preset.mjs +28 -20
- package/dist/physics/ramp-forces/preset.mjs +4 -4
- package/dist/physics/river-boat.mjs +7 -6
- package/dist/physics/rocket-flight/index.d.mts +2 -0
- package/dist/physics/rocket-flight/preset.d.mts +14 -0
- package/dist/physics/rocket-flight/preset.mjs +200 -0
- package/dist/physics/rolling-race/index.d.mts +2 -0
- package/dist/physics/rolling-race/preset.d.mts +15 -0
- package/dist/physics/rolling-race/preset.mjs +193 -0
- package/dist/physics/shm/energy.d.mts +5 -2
- package/dist/physics/shm/energy.mjs +5 -5
- package/dist/physics/shm/graphs.d.mts +3 -1
- package/dist/physics/shm/graphs.mjs +4 -4
- package/dist/physics/shm/index.d.mts +2 -2
- package/dist/physics/shm/pendulum-worlds.mjs +1 -1
- package/dist/physics/shm/preset.d.mts +5 -2
- package/dist/physics/shm/preset.mjs +50 -24
- package/dist/physics/shm/springs.mjs +1 -1
- package/dist/physics/spin-studio/preset.mjs +28 -24
- package/dist/physics/stopping-distance/preset.mjs +8 -8
- package/dist/physics/stress-strain/core.d.mts +2 -127
- package/dist/physics/stress-strain/core.mjs +2 -160
- package/dist/physics/stress-strain/index.d.mts +3 -3
- package/dist/physics/stress-strain/preset.d.mts +5 -2
- package/dist/physics/stress-strain/preset.mjs +45 -16
- package/dist/physics/suspension/preset.mjs +181 -128
- package/dist/physics/temperature-scales/preset.mjs +26 -29
- package/dist/physics/terminal-velocity/model.mjs +38 -12
- package/dist/physics/terminal-velocity/preset.mjs +58 -50
- package/dist/physics/thermal/activity.mjs +1 -1
- package/dist/physics/thermal/equilibrium.d.mts +14 -0
- package/dist/physics/thermal/equilibrium.mjs +168 -0
- package/dist/physics/thermal/evaporation.d.mts +16 -0
- package/dist/physics/thermal/evaporation.mjs +177 -0
- package/dist/physics/thermal/index.d.mts +1 -1
- package/dist/physics/thermal/preset.d.mts +5 -2
- package/dist/physics/thermal/preset.mjs +138 -48
- package/dist/physics/thermal/specific-heat.d.mts +16 -0
- package/dist/physics/thermal/specific-heat.mjs +181 -0
- package/dist/physics/vector-board/preset.mjs +1 -1
- package/dist/physics/vector-types/preset.mjs +1 -1
- package/dist/physics/venturi/preset.mjs +2 -2
- package/dist/physics/water-density/preset.mjs +53 -57
- package/dist/physics/waves/acoustic-boundary.d.mts +16 -0
- package/dist/physics/waves/acoustic-boundary.mjs +215 -0
- package/dist/physics/waves/coherence.d.mts +13 -0
- package/dist/physics/waves/coherence.mjs +104 -0
- package/dist/physics/waves/diffraction-scene.mjs +23 -0
- package/dist/physics/waves/diffraction-skin.mjs +109 -0
- package/dist/physics/waves/doppler.mjs +4 -5
- package/dist/physics/waves/echo-ranging.d.mts +16 -0
- package/dist/physics/waves/echo-ranging.mjs +189 -0
- package/dist/physics/waves/gap-diffraction.d.mts +15 -0
- package/dist/physics/waves/gap-diffraction.mjs +83 -0
- package/dist/physics/waves/guitar.mjs +1 -1
- package/dist/physics/waves/harmonic-modes.d.mts +15 -0
- package/dist/physics/waves/harmonic-modes.mjs +91 -0
- package/dist/physics/waves/index.d.mts +22 -2
- package/dist/physics/waves/intensity-amplitude.d.mts +12 -0
- package/dist/physics/waves/intensity-amplitude.mjs +209 -0
- package/dist/physics/waves/interference-core.mjs +10 -2
- package/dist/physics/waves/particle-motion.d.mts +17 -0
- package/dist/physics/waves/particle-motion.mjs +178 -0
- package/dist/physics/waves/phase-path.d.mts +12 -0
- package/dist/physics/waves/phase-path.mjs +69 -0
- package/dist/physics/waves/preset.d.mts +4 -2
- package/dist/physics/waves/preset.mjs +43 -22
- package/dist/physics/waves/progressive-stationary.d.mts +14 -0
- package/dist/physics/waves/progressive-stationary.mjs +88 -0
- package/dist/physics/waves/pulse-echo.d.mts +18 -0
- package/dist/physics/waves/pulse-echo.mjs +435 -0
- package/dist/physics/waves/ripple.mjs +5 -3
- package/dist/physics/waves/sound-air.d.mts +18 -0
- package/dist/physics/waves/sound-air.mjs +187 -0
- package/dist/physics/waves/sound-medium.d.mts +19 -0
- package/dist/physics/waves/sound-medium.mjs +178 -0
- package/dist/physics/waves/standing-wave-scene.mjs +22 -0
- package/dist/physics/waves/string.mjs +3 -4
- package/dist/physics/waves/timbre.d.mts +17 -0
- package/dist/physics/waves/timbre.mjs +161 -0
- package/dist/physics/waves/travelling-wave-scene.d.mts +10 -0
- package/dist/physics/waves/travelling-wave-scene.mjs +22 -0
- package/dist/physics/waves/ultrasound-frequency.d.mts +13 -0
- package/dist/physics/waves/ultrasound-frequency.mjs +196 -0
- package/dist/physics/waves/water-refraction.d.mts +18 -0
- package/dist/physics/waves/water-refraction.mjs +196 -0
- package/dist/physics/waves/wave-activity.mjs +6 -4
- package/dist/physics/waves/wave-bench-scene.d.mts +9 -0
- package/dist/physics/waves/wave-bench-scene.mjs +22 -0
- package/dist/physics/waves/wave-bench-skins.mjs +513 -0
- package/dist/physics/waves/wave-graphs.d.mts +14 -0
- package/dist/physics/waves/wave-graphs.mjs +88 -0
- package/dist/physics/waves/wave-speed.d.mts +14 -0
- package/dist/physics/waves/wave-speed.mjs +75 -0
- package/dist/physics/waves/young-double-slit.d.mts +15 -0
- package/dist/physics/waves/young-double-slit.mjs +271 -0
- package/dist/physics/wire-force/activity.mjs +169 -0
- package/dist/physics/wire-force/core.mjs +108 -0
- package/dist/physics/wire-force/preset.mjs +698 -0
- package/dist/physics/work-energy/preset.mjs +25 -32
- package/dist/physics/work-potential/preset.mjs +14 -11
- package/dist/statistics/center-spread/preset.mjs +29 -30
- package/dist/statistics/frequency-density/preset.mjs +1 -1
- package/dist/statistics/galton/preset.mjs +3 -5
- package/dist/statistics/histogram/preset.mjs +44 -44
- package/dist/statistics/normal/preset.mjs +43 -23
- package/dist/statistics/ogive/preset.mjs +1 -1
- package/dist/statistics/sampling/preset.d.mts +20 -2
- package/dist/statistics/sampling/preset.mjs +67 -16
- package/dist/statistics/sequence/preset.mjs +49 -56
- package/dist/statistics/z-table/preset.mjs +32 -17
- package/dist/three/chemistry/crystal-lattice.d.mts +2 -1
- package/dist/three/chemistry/crystal-lattice.mjs +2 -1
- package/dist/three/index.d.mts +3 -1
- package/dist/three/index.mjs +2 -1
- package/dist/three/math/index.d.mts +2 -0
- package/dist/three/math/index.mjs +3 -0
- package/dist/three/math/solids-of-revolution.d.mts +10 -0
- package/dist/three/math/solids-of-revolution.mjs +345 -0
- package/dist/three/palette.d.mts +2 -0
- package/dist/three/palette.mjs +4 -2
- package/package.json +82 -57
- package/styles/core.css +3952 -4083
- package/styles/domains/algorithms.css +1 -0
- package/styles/domains/chemistry.css +5 -2
- package/styles/domains/commerce.css +5 -0
- package/styles/domains/exam.css +4 -0
- package/styles/domains/geometry.css +5 -0
- package/styles/domains/language.css +2 -0
- package/styles/domains/math.css +1 -1
- package/styles/domains/ml.css +1 -0
- package/styles/domains/parts/algorithms-0.css +63 -95
- package/styles/domains/parts/algorithms-1.css +53 -69
- package/styles/domains/parts/algorithms-2.css +12 -12
- package/styles/domains/parts/algorithms-3.css +10 -0
- package/styles/domains/parts/algorithms-4.css +756 -0
- package/styles/domains/parts/chemistry-concepts.css +1032 -0
- package/styles/domains/parts/chemistry-workshops.css +809 -0
- package/styles/domains/parts/circuits.css +305 -0
- package/styles/domains/parts/commerce-books.css +268 -0
- package/styles/domains/parts/commerce-entry-practice.css +244 -0
- package/styles/domains/parts/commerce-foundation.css +832 -0
- package/styles/domains/parts/commerce-ledger-practice.css +489 -0
- package/styles/domains/parts/discrete-4.css +15 -0
- package/styles/domains/parts/discrete-5.css +201 -0
- package/styles/domains/parts/exam-paper.css +258 -0
- package/styles/domains/parts/exam-practice.css +105 -0
- package/styles/domains/parts/exam-proof.css +74 -0
- package/styles/domains/parts/geometry-1.css +363 -0
- package/styles/domains/parts/ict.css +9 -0
- package/styles/domains/parts/language.css +663 -0
- package/styles/domains/parts/math-1.css +11 -2
- package/styles/domains/parts/math-2.css +0 -55
- package/styles/domains/parts/math-3.css +50 -48
- package/styles/domains/parts/math-5.css +76 -305
- package/styles/domains/parts/math-6.css +66 -35
- package/styles/domains/parts/math-7.css +592 -0
- package/styles/domains/parts/ml-2.css +775 -0
- package/styles/domains/parts/ml.css +6 -0
- package/styles/domains/parts/networking.css +18 -0
- package/styles/domains/parts/physics-foundations.css +672 -0
- package/styles/domains/parts/physics-investigations.css +757 -0
- package/styles/domains/parts/physics-refinements.css +446 -0
- package/styles/domains/parts/probability-2.css +19 -0
- package/styles/domains/parts/probability-3.css +9 -0
- package/styles/domains/parts/revision-1.css +711 -0
- package/styles/domains/parts/revision-2.css +312 -0
- package/styles/domains/parts/statistics.css +6 -0
- package/styles/domains/physics.css +3 -3
- package/styles/domains/revision.css +5 -0
- package/styles/domains.css +21 -7
- package/styles/figure.css +42 -16
- package/styles/runtime.css +16 -0
- package/styles.css +11 -20
- package/tailwind.css +17 -0
- package/dist/build/CircuitEditor.d.mts +0 -10
- package/dist/build/CircuitPlayer.d.mts +0 -13
- package/dist/build/CircuitPlayer.mjs +0 -53
- package/dist/build/CircuitScene.d.mts +0 -59
- package/dist/build/editor-ops.d.mts +0 -64
- package/dist/build/flow.d.mts +0 -13
- package/dist/build/flow.mjs +0 -119
- package/dist/build/solve.d.mts +0 -7
- package/dist/build/solve.mjs +0 -0
- package/dist/chem/reaction-lab.d.mts +0 -14
- package/dist/chem/reaction-lab.mjs +0 -266
- package/dist/circuits/circuit/asset.d.mts +0 -5
- package/dist/circuits/circuit/asset.mjs +0 -312
- package/dist/core/embedding.d.mts +0 -14
- package/dist/core/embedding.mjs +0 -107
- package/dist/core/next-token.d.mts +0 -9
- package/dist/core/next-token.mjs +0 -88
- package/dist/domains/chem/air-composition/manifest.mjs +0 -45
- package/dist/domains/chem/air-composition/runtime.mjs +0 -5
- package/dist/domains/chem/alkene-geometry/activity.mjs +0 -73
- package/dist/domains/chem/alkene-geometry/manifest.mjs +0 -58
- package/dist/domains/chem/alkene-geometry/model.mjs +0 -204
- package/dist/domains/chem/alkene-geometry/runtime.mjs +0 -122
- package/dist/domains/chem/alkene-geometry/scene.mjs +0 -170
- package/dist/domains/chem/apparatus-choice/manifest.mjs +0 -51
- package/dist/domains/chem/apparatus-choice/runtime.mjs +0 -5
- package/dist/domains/chem/applied-chemistry/manifest.mjs +0 -62
- package/dist/domains/chem/applied-chemistry/runtime.mjs +0 -5
- package/dist/domains/chem/arene-evidence/activity.mjs +0 -86
- package/dist/domains/chem/arene-evidence/manifest.mjs +0 -51
- package/dist/domains/chem/arene-evidence/model.d.mts +0 -71
- package/dist/domains/chem/arene-evidence/model.mjs +0 -116
- package/dist/domains/chem/arene-evidence/runtime.mjs +0 -138
- package/dist/domains/chem/arene-evidence/scene.d.mts +0 -8
- package/dist/domains/chem/arene-evidence/scene.mjs +0 -208
- package/dist/domains/chem/atomic-orbital/activity.mjs +0 -3
- package/dist/domains/chem/atomic-orbital/manifest.mjs +0 -71
- package/dist/domains/chem/atomic-orbital/runtime.mjs +0 -20
- package/dist/domains/chem/battery/manifest.mjs +0 -55
- package/dist/domains/chem/battery/runtime.mjs +0 -15
- package/dist/domains/chem/bohr-atom/manifest.mjs +0 -55
- package/dist/domains/chem/bohr-atom/runtime.mjs +0 -15
- package/dist/domains/chem/catalytic-cycle/activity.mjs +0 -36
- package/dist/domains/chem/catalytic-cycle/manifest.mjs +0 -44
- package/dist/domains/chem/catalytic-cycle/model.mjs +0 -61
- package/dist/domains/chem/catalytic-cycle/runtime.mjs +0 -61
- package/dist/domains/chem/catalytic-cycle/scene.mjs +0 -27
- package/dist/domains/chem/change-detective/activity.mjs +0 -81
- package/dist/domains/chem/change-detective/manifest.mjs +0 -46
- package/dist/domains/chem/change-detective/model.mjs +0 -65
- package/dist/domains/chem/change-detective/runtime.mjs +0 -73
- package/dist/domains/chem/change-detective/scene.mjs +0 -415
- package/dist/domains/chem/chem-qualitative-analysis/activity.mjs +0 -95
- package/dist/domains/chem/chem-qualitative-analysis/manifest.mjs +0 -68
- package/dist/domains/chem/chem-qualitative-analysis/runtime.mjs +0 -303
- package/dist/domains/chem/chromatography-plate/activity.mjs +0 -87
- package/dist/domains/chem/chromatography-plate/manifest.mjs +0 -59
- package/dist/domains/chem/chromatography-plate/model.mjs +0 -180
- package/dist/domains/chem/chromatography-plate/runtime.mjs +0 -200
- package/dist/domains/chem/chromatography-plate/scene.mjs +0 -292
- package/dist/domains/chem/complex-colour/activity.mjs +0 -94
- package/dist/domains/chem/complex-colour/manifest.mjs +0 -53
- package/dist/domains/chem/complex-colour/model.mjs +0 -243
- package/dist/domains/chem/complex-colour/runtime.mjs +0 -168
- package/dist/domains/chem/complex-colour/scene.mjs +0 -283
- package/dist/domains/chem/complex-shape/activity.mjs +0 -86
- package/dist/domains/chem/complex-shape/manifest.mjs +0 -52
- package/dist/domains/chem/complex-shape/model.mjs +0 -182
- package/dist/domains/chem/complex-shape/runtime.mjs +0 -162
- package/dist/domains/chem/complex-shape/scene.mjs +0 -270
- package/dist/domains/chem/composition-evidence/activity.mjs +0 -94
- package/dist/domains/chem/composition-evidence/manifest.mjs +0 -71
- package/dist/domains/chem/composition-evidence/model.mjs +0 -60
- package/dist/domains/chem/composition-evidence/runtime.mjs +0 -127
- package/dist/domains/chem/composition-evidence/scene.mjs +0 -308
- package/dist/domains/chem/conductivity-bench/activity.mjs +0 -71
- package/dist/domains/chem/conductivity-bench/manifest.mjs +0 -58
- package/dist/domains/chem/conductivity-bench/model.mjs +0 -257
- package/dist/domains/chem/conductivity-bench/runtime.mjs +0 -136
- package/dist/domains/chem/conductivity-bench/scene.mjs +0 -305
- package/dist/domains/chem/contact-process-control/activity.mjs +0 -75
- package/dist/domains/chem/contact-process-control/manifest.mjs +0 -48
- package/dist/domains/chem/contact-process-control/model.mjs +0 -106
- package/dist/domains/chem/contact-process-control/runtime.mjs +0 -65
- package/dist/domains/chem/contact-process-control/scene.mjs +0 -694
- package/dist/domains/chem/crystal-lattice/activity.mjs +0 -3
- package/dist/domains/chem/crystal-lattice/manifest.mjs +0 -68
- package/dist/domains/chem/crystal-lattice/runtime.mjs +0 -20
- package/dist/domains/chem/dilution/manifest.mjs +0 -57
- package/dist/domains/chem/dilution/runtime.mjs +0 -5
- package/dist/domains/chem/electrochem/manifest.mjs +0 -72
- package/dist/domains/chem/electrochem/runtime.mjs +0 -5
- package/dist/domains/chem/electrolysis-bench/activity.mjs +0 -72
- package/dist/domains/chem/electrolysis-bench/manifest.mjs +0 -71
- package/dist/domains/chem/electrolysis-bench/model.mjs +0 -174
- package/dist/domains/chem/electrolysis-bench/runtime.mjs +0 -169
- package/dist/domains/chem/electrolysis-bench/scene.mjs +0 -291
- package/dist/domains/chem/energy-cycle/activity.mjs +0 -86
- package/dist/domains/chem/energy-cycle/manifest.mjs +0 -52
- package/dist/domains/chem/energy-cycle/model.mjs +0 -249
- package/dist/domains/chem/energy-cycle/runtime.mjs +0 -181
- package/dist/domains/chem/energy-cycle/scene.mjs +0 -277
- package/dist/domains/chem/equation-conservation-desk/activity.mjs +0 -55
- package/dist/domains/chem/equation-conservation-desk/manifest.mjs +0 -61
- package/dist/domains/chem/equation-conservation-desk/runtime.mjs +0 -6
- package/dist/domains/chem/faraday-bench/activity.mjs +0 -51
- package/dist/domains/chem/faraday-bench/manifest.mjs +0 -65
- package/dist/domains/chem/faraday-bench/model.mjs +0 -193
- package/dist/domains/chem/faraday-bench/runtime.mjs +0 -99
- package/dist/domains/chem/faraday-bench/scene.mjs +0 -254
- package/dist/domains/chem/flame-test/activity.mjs +0 -66
- package/dist/domains/chem/flame-test/manifest.mjs +0 -66
- package/dist/domains/chem/flame-test/model.mjs +0 -149
- package/dist/domains/chem/flame-test/runtime.mjs +0 -120
- package/dist/domains/chem/flame-test/scene.mjs +0 -172
- package/dist/domains/chem/formula-forge/activity.mjs +0 -55
- package/dist/domains/chem/formula-forge/manifest.mjs +0 -66
- package/dist/domains/chem/formula-forge/runtime.mjs +0 -6
- package/dist/domains/chem/formula-workbench/activity.mjs +0 -92
- package/dist/domains/chem/formula-workbench/manifest.mjs +0 -73
- package/dist/domains/chem/formula-workbench/model.mjs +0 -89
- package/dist/domains/chem/formula-workbench/runtime.mjs +0 -135
- package/dist/domains/chem/formula-workbench/scene.mjs +0 -275
- package/dist/domains/chem/fuel-cell-flow/activity.mjs +0 -81
- package/dist/domains/chem/fuel-cell-flow/manifest.mjs +0 -49
- package/dist/domains/chem/fuel-cell-flow/model.mjs +0 -63
- package/dist/domains/chem/fuel-cell-flow/runtime.mjs +0 -134
- package/dist/domains/chem/fuel-cell-flow/scene.mjs +0 -245
- package/dist/domains/chem/functional-group-lens/activity.mjs +0 -86
- package/dist/domains/chem/functional-group-lens/manifest.mjs +0 -54
- package/dist/domains/chem/functional-group-lens/model.d.mts +0 -128
- package/dist/domains/chem/functional-group-lens/model.mjs +0 -250
- package/dist/domains/chem/functional-group-lens/runtime.d.mts +0 -16
- package/dist/domains/chem/functional-group-lens/runtime.mjs +0 -135
- package/dist/domains/chem/functional-group-lens/scene.d.mts +0 -8
- package/dist/domains/chem/functional-group-lens/scene.mjs +0 -389
- package/dist/domains/chem/gas-box/manifest.mjs +0 -79
- package/dist/domains/chem/gas-box/runtime.mjs +0 -5
- package/dist/domains/chem/hydrate-cycle/activity.mjs +0 -78
- package/dist/domains/chem/hydrate-cycle/manifest.mjs +0 -47
- package/dist/domains/chem/hydrate-cycle/model.mjs +0 -66
- package/dist/domains/chem/hydrate-cycle/runtime.mjs +0 -72
- package/dist/domains/chem/hydrate-cycle/scene.mjs +0 -187
- package/dist/domains/chem/industrial-process/manifest.mjs +0 -51
- package/dist/domains/chem/industrial-process/runtime.mjs +0 -5
- package/dist/domains/chem/ionic-bond-builder/manifest.mjs +0 -47
- package/dist/domains/chem/ionic-bond-builder/runtime.mjs +0 -5
- package/dist/domains/chem/isomer-builder/activity.mjs +0 -86
- package/dist/domains/chem/isomer-builder/manifest.mjs +0 -52
- package/dist/domains/chem/isomer-builder/model.mjs +0 -345
- package/dist/domains/chem/isomer-builder/runtime.mjs +0 -174
- package/dist/domains/chem/isomer-builder/scene.mjs +0 -216
- package/dist/domains/chem/kinetics/manifest.mjs +0 -59
- package/dist/domains/chem/kinetics/runtime.mjs +0 -5
- package/dist/domains/chem/le-chatelier/manifest.mjs +0 -57
- package/dist/domains/chem/le-chatelier/runtime.mjs +0 -5
- package/dist/domains/chem/mechanism-walk/activity.mjs +0 -53
- package/dist/domains/chem/mechanism-walk/manifest.mjs +0 -53
- package/dist/domains/chem/mechanism-walk/model.mjs +0 -429
- package/dist/domains/chem/mechanism-walk/runtime.mjs +0 -76
- package/dist/domains/chem/mechanism-walk/scene.mjs +0 -36
- package/dist/domains/chem/mole-factory/activity.mjs +0 -55
- package/dist/domains/chem/mole-factory/manifest.mjs +0 -62
- package/dist/domains/chem/mole-factory/runtime.mjs +0 -6
- package/dist/domains/chem/molecular-geometry/activity.mjs +0 -3
- package/dist/domains/chem/molecular-geometry/manifest.mjs +0 -74
- package/dist/domains/chem/molecular-geometry/runtime.mjs +0 -22
- package/dist/domains/chem/nmr-reader/activity.mjs +0 -88
- package/dist/domains/chem/nmr-reader/manifest.mjs +0 -59
- package/dist/domains/chem/nmr-reader/model.mjs +0 -200
- package/dist/domains/chem/nmr-reader/runtime.mjs +0 -167
- package/dist/domains/chem/nmr-reader/scene.mjs +0 -30
- package/dist/domains/chem/orbital-diagram/activity.mjs +0 -74
- package/dist/domains/chem/orbital-diagram/manifest.mjs +0 -58
- package/dist/domains/chem/orbital-diagram/model.mjs +0 -182
- package/dist/domains/chem/orbital-diagram/runtime.mjs +0 -98
- package/dist/domains/chem/orbital-diagram/scene.mjs +0 -289
- package/dist/domains/chem/orbital-overlap/activity.mjs +0 -3
- package/dist/domains/chem/orbital-overlap/manifest.mjs +0 -60
- package/dist/domains/chem/orbital-overlap/runtime.mjs +0 -18
- package/dist/domains/chem/organic-formula-studio/activity.mjs +0 -128
- package/dist/domains/chem/organic-formula-studio/manifest.mjs +0 -67
- package/dist/domains/chem/organic-formula-studio/model.mjs +0 -47
- package/dist/domains/chem/organic-formula-studio/pattern-scene.mjs +0 -344
- package/dist/domains/chem/organic-formula-studio/runtime.mjs +0 -221
- package/dist/domains/chem/organic-formula-studio/scene.mjs +0 -354
- package/dist/domains/chem/organic-formula-studio/topics.mjs +0 -186
- package/dist/domains/chem/organic-reaction-map/manifest.mjs +0 -67
- package/dist/domains/chem/organic-reaction-map/runtime.mjs +0 -5
- package/dist/domains/chem/particle-theatre/manifest.mjs +0 -66
- package/dist/domains/chem/particle-theatre/runtime.mjs +0 -5
- package/dist/domains/chem/percent-lens/activity.mjs +0 -119
- package/dist/domains/chem/percent-lens/manifest.mjs +0 -65
- package/dist/domains/chem/percent-lens/model.mjs +0 -84
- package/dist/domains/chem/percent-lens/runtime.mjs +0 -114
- package/dist/domains/chem/percent-lens/scene.mjs +0 -278
- package/dist/domains/chem/percentage-purity-lab/activity.mjs +0 -85
- package/dist/domains/chem/percentage-purity-lab/manifest.mjs +0 -51
- package/dist/domains/chem/percentage-purity-lab/model.mjs +0 -101
- package/dist/domains/chem/percentage-purity-lab/runtime.mjs +0 -146
- package/dist/domains/chem/percentage-purity-lab/scene.mjs +0 -309
- package/dist/domains/chem/percentage-yield-lab/activity.mjs +0 -54
- package/dist/domains/chem/percentage-yield-lab/manifest.mjs +0 -60
- package/dist/domains/chem/percentage-yield-lab/model.mjs +0 -96
- package/dist/domains/chem/percentage-yield-lab/runtime.mjs +0 -124
- package/dist/domains/chem/percentage-yield-lab/scene.mjs +0 -152
- package/dist/domains/chem/periodic-trends/manifest.mjs +0 -60
- package/dist/domains/chem/periodic-trends/runtime.mjs +0 -5
- package/dist/domains/chem/polymer-builder/activity.mjs +0 -88
- package/dist/domains/chem/polymer-builder/manifest.mjs +0 -63
- package/dist/domains/chem/polymer-builder/model.mjs +0 -200
- package/dist/domains/chem/polymer-builder/runtime.mjs +0 -175
- package/dist/domains/chem/polymer-builder/scene.mjs +0 -170
- package/dist/domains/chem/practical-observation/activity.mjs +0 -66
- package/dist/domains/chem/practical-observation/manifest.mjs +0 -50
- package/dist/domains/chem/practical-observation/model.mjs +0 -487
- package/dist/domains/chem/practical-observation/runtime.mjs +0 -113
- package/dist/domains/chem/practical-observation/scene.mjs +0 -662
- package/dist/domains/chem/precipitation-bench/activity.mjs +0 -65
- package/dist/domains/chem/precipitation-bench/manifest.mjs +0 -61
- package/dist/domains/chem/precipitation-bench/model.mjs +0 -119
- package/dist/domains/chem/precipitation-bench/runtime.mjs +0 -90
- package/dist/domains/chem/precipitation-bench/scene.mjs +0 -215
- package/dist/domains/chem/quantity-route/manifest.mjs +0 -133
- package/dist/domains/chem/quantity-route/runtime.mjs +0 -5
- package/dist/domains/chem/ratio-normalizer/manifest.mjs +0 -61
- package/dist/domains/chem/ratio-normalizer/runtime.mjs +0 -5
- package/dist/domains/chem/reaction-evidence/manifest.mjs +0 -51
- package/dist/domains/chem/reaction-evidence/runtime.mjs +0 -5
- package/dist/domains/chem/reaction-lab/manifest.mjs +0 -56
- package/dist/domains/chem/reaction-lab/runtime.mjs +0 -18
- package/dist/domains/chem/reaction-profile/manifest.mjs +0 -57
- package/dist/domains/chem/reaction-profile/runtime.mjs +0 -17
- package/dist/domains/chem/reagent-ladder/activity.mjs +0 -85
- package/dist/domains/chem/reagent-ladder/manifest.mjs +0 -58
- package/dist/domains/chem/reagent-ladder/model.mjs +0 -120
- package/dist/domains/chem/reagent-ladder/runtime.mjs +0 -107
- package/dist/domains/chem/reagent-ladder/scene.mjs +0 -174
- package/dist/domains/chem/redox-balancer/activity.mjs +0 -86
- package/dist/domains/chem/redox-balancer/manifest.mjs +0 -52
- package/dist/domains/chem/redox-balancer/model.mjs +0 -191
- package/dist/domains/chem/redox-balancer/runtime.mjs +0 -175
- package/dist/domains/chem/redox-balancer/scene.mjs +0 -159
- package/dist/domains/chem/relation-origin/activity.mjs +0 -42
- package/dist/domains/chem/relation-origin/manifest.mjs +0 -61
- package/dist/domains/chem/relation-origin/model.mjs +0 -172
- package/dist/domains/chem/relation-origin/runtime.mjs +0 -114
- package/dist/domains/chem/relation-origin/scene.mjs +0 -195
- package/dist/domains/chem/solubility-kitchen/activity.mjs +0 -54
- package/dist/domains/chem/solubility-kitchen/manifest.mjs +0 -66
- package/dist/domains/chem/solubility-kitchen/runtime.mjs +0 -6
- package/dist/domains/chem/soluble-salt-workshop/activity.mjs +0 -115
- package/dist/domains/chem/soluble-salt-workshop/manifest.mjs +0 -50
- package/dist/domains/chem/soluble-salt-workshop/model.mjs +0 -187
- package/dist/domains/chem/soluble-salt-workshop/runtime.mjs +0 -118
- package/dist/domains/chem/soluble-salt-workshop/scene.mjs +0 -700
- package/dist/domains/chem/solution-box/manifest.mjs +0 -57
- package/dist/domains/chem/solution-box/runtime.mjs +0 -5
- package/dist/domains/chem/solution-mixer/activity.mjs +0 -54
- package/dist/domains/chem/solution-mixer/manifest.mjs +0 -58
- package/dist/domains/chem/solution-mixer/runtime.mjs +0 -6
- package/dist/domains/chem/species-workshop/activity.mjs +0 -55
- package/dist/domains/chem/species-workshop/manifest.mjs +0 -66
- package/dist/domains/chem/species-workshop/runtime.mjs +0 -6
- package/dist/domains/chem/specimen-row/activity.mjs +0 -70
- package/dist/domains/chem/specimen-row/manifest.mjs +0 -57
- package/dist/domains/chem/specimen-row/model.mjs +0 -122
- package/dist/domains/chem/specimen-row/runtime.mjs +0 -105
- package/dist/domains/chem/specimen-row/scene.mjs +0 -230
- package/dist/domains/chem/spectrum-reader/activity.mjs +0 -36
- package/dist/domains/chem/spectrum-reader/manifest.mjs +0 -47
- package/dist/domains/chem/spectrum-reader/model.mjs +0 -244
- package/dist/domains/chem/spectrum-reader/runtime.mjs +0 -62
- package/dist/domains/chem/spectrum-reader/scene.mjs +0 -37
- package/dist/domains/chem/stereochemistry/activity.mjs +0 -3
- package/dist/domains/chem/stereochemistry/manifest.mjs +0 -65
- package/dist/domains/chem/stereochemistry/runtime.mjs +0 -21
- package/dist/domains/chem/stoichiometry/manifest.mjs +0 -61
- package/dist/domains/chem/stoichiometry/runtime.mjs +0 -5
- package/dist/domains/chem/structure-detective/activity.mjs +0 -67
- package/dist/domains/chem/structure-detective/manifest.mjs +0 -59
- package/dist/domains/chem/structure-detective/runtime.mjs +0 -6
- package/dist/domains/chem/synthesis-route/activity.mjs +0 -36
- package/dist/domains/chem/synthesis-route/manifest.mjs +0 -45
- package/dist/domains/chem/synthesis-route/model.mjs +0 -165
- package/dist/domains/chem/synthesis-route/runtime.mjs +0 -67
- package/dist/domains/chem/synthesis-route/scene.mjs +0 -152
- package/dist/domains/chem/titration/manifest.mjs +0 -62
- package/dist/domains/chem/titration/runtime.mjs +0 -5
- package/dist/domains/chem/titration-run/activity.mjs +0 -54
- package/dist/domains/chem/titration-run/manifest.mjs +0 -61
- package/dist/domains/chem/titration-run/model.mjs +0 -174
- package/dist/domains/chem/titration-run/runtime.mjs +0 -113
- package/dist/domains/chem/titration-run/scene.mjs +0 -166
- package/dist/domains/chem/trend-axis/activity.mjs +0 -52
- package/dist/domains/chem/trend-axis/manifest.mjs +0 -57
- package/dist/domains/chem/trend-axis/model.mjs +0 -487
- package/dist/domains/chem/trend-axis/runtime.mjs +0 -87
- package/dist/domains/chem/trend-axis/scene.mjs +0 -246
- package/dist/domains/physics/magnetic-field-mission/activity.mjs +0 -120
- package/dist/domains/physics/magnetic-field-mission/manifest.mjs +0 -73
- package/dist/domains/physics/magnetic-field-mission/palette.mjs +0 -40
- package/dist/domains/physics/magnetic-field-mission/runtime.mjs +0 -547
- package/dist/domains/physics/projectile-lab/core/formulas.mjs +0 -26
- package/dist/domains/physics/space-evidence-mission/activity.mjs +0 -148
- package/dist/domains/physics/space-evidence-mission/manifest.mjs +0 -88
- package/dist/domains/physics/space-evidence-mission/runtime.mjs +0 -624
- package/dist/kit/guide.d.mts +0 -41
- package/dist/kit/guide.mjs +0 -53
- package/dist/kit/steps.d.mts +0 -22
- package/dist/kit/steps.mjs +0 -57
- package/dist/math/circle/preset.d.mts +0 -30
- package/dist/math/circle/preset.mjs +0 -216
- package/dist/math/straight-line/preset.d.mts +0 -36
- package/dist/math/straight-line/preset.mjs +0 -420
- package/dist/physics/astronomy/core.d.mts +0 -111
- package/dist/physics/astronomy/core.mjs +0 -147
- package/dist/physics/circular-motion/model.mjs +0 -46
- package/dist/physics/collision-track/model.mjs +0 -62
- package/dist/physics/investigation/space.mjs +0 -191
- package/dist/physics/modern/imaging/pet-core.d.mts +0 -296
- package/dist/physics/modern/imaging/pet-core.mjs +0 -389
- package/dist/physics/orbital/core.d.mts +0 -69
- package/dist/physics/orbital/core.mjs +0 -93
- package/dist/physics/ultrasound/core.d.mts +0 -221
- package/dist/physics/ultrasound/core.mjs +0 -235
- package/styles/commerce.css +0 -826
- package/styles/domains/parts/chemistry.css +0 -1698
- package/styles/domains/parts/math-4.css +0 -75
- package/styles/domains/parts/physics-1.css +0 -483
- package/styles/domains/parts/physics-2.css +0 -664
- package/styles/domains/parts/physics-3.css +0 -433
- package/styles/exam.css +0 -206
- /package/dist/math/{circle → coordinate-geometry/circle}/index.d.mts +0 -0
- /package/dist/math/{straight-line → coordinate-geometry/straight-line}/index.d.mts +0 -0
|
@@ -1,138 +1,341 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { AssessedChoiceGroup } from "../kit/controls.mjs";
|
|
3
|
+
import { ActionButton, AssessedChoiceGroup } from "../kit/controls.mjs";
|
|
4
4
|
import { Activity } from "../kit/activity.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { useCheckpoint } from "../kit/pedagogy.mjs";
|
|
6
6
|
import { teachingGraph } from "./presets.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { adjacencyList, adjacencyMatrix, compareShortest, formatWeight, graphStateAt, hasNegativeEdge, isWeighted, pathWeight, prepareGraph, runGraphAlgorithm } from "./graph.mjs";
|
|
8
|
+
import { ROAD_ROUTES } from "./worlds/delivery/roads.mjs";
|
|
9
|
+
import { resolveDataset } from "./worlds/index.mjs";
|
|
10
|
+
import { GraphView, layoutGraph } from "./GraphView.mjs";
|
|
9
11
|
import { TraceTransport } from "./TraceTransport.mjs";
|
|
10
12
|
import { BinaryTransferCheck } from "./LearningChecks.mjs";
|
|
11
13
|
import { useEffect, useMemo, useState } from "react";
|
|
12
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
15
|
|
|
14
16
|
//#region src/algorithms/GraphAlgorithmLab.tsx
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
const NAMES = {
|
|
18
|
+
bfs: {
|
|
19
|
+
short: "BFS",
|
|
20
|
+
title: "BFS graph traversal"
|
|
21
|
+
},
|
|
22
|
+
dfs: {
|
|
23
|
+
short: "DFS",
|
|
24
|
+
title: "DFS graph traversal"
|
|
25
|
+
},
|
|
26
|
+
dijkstra: {
|
|
27
|
+
short: "Dijkstra",
|
|
28
|
+
title: "Dijkstra's shortest path"
|
|
29
|
+
},
|
|
30
|
+
"bellman-ford": {
|
|
31
|
+
short: "Bellman-Ford",
|
|
32
|
+
title: "Bellman-Ford shortest path"
|
|
33
|
+
},
|
|
34
|
+
prim: {
|
|
35
|
+
short: "Prim",
|
|
36
|
+
title: "Prim's minimum spanning tree"
|
|
37
|
+
},
|
|
38
|
+
kruskal: {
|
|
39
|
+
short: "Kruskal",
|
|
40
|
+
title: "Kruskal's minimum spanning tree"
|
|
41
|
+
},
|
|
42
|
+
topo: {
|
|
43
|
+
short: "topological sort",
|
|
44
|
+
title: "Topological sort"
|
|
45
|
+
},
|
|
46
|
+
cycle: {
|
|
47
|
+
short: "cycle search",
|
|
48
|
+
title: "Cycle detection"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const FRONTIER_LABEL = {
|
|
52
|
+
bfs: "Queue",
|
|
53
|
+
dfs: "Stack",
|
|
54
|
+
dijkstra: "Priority frontier",
|
|
55
|
+
prim: "Fringe",
|
|
56
|
+
topo: "Ready queue",
|
|
57
|
+
cycle: "Grey path"
|
|
58
|
+
};
|
|
59
|
+
const ORDER_HEADING = {
|
|
60
|
+
bfs: "Visited order",
|
|
61
|
+
dfs: "Visited order",
|
|
62
|
+
dijkstra: "Settled order",
|
|
63
|
+
"bellman-ford": "Reached",
|
|
64
|
+
prim: "Join order",
|
|
65
|
+
kruskal: "Joined hubs",
|
|
66
|
+
topo: "Task order",
|
|
67
|
+
cycle: "Grey order"
|
|
68
|
+
};
|
|
69
|
+
function transferFor(algorithm, negative) {
|
|
70
|
+
const retryFeedback = "Try changing the weights or neighbour order and compare the trace.";
|
|
71
|
+
switch (algorithm) {
|
|
72
|
+
case "bfs":
|
|
73
|
+
case "dfs": return {
|
|
74
|
+
prompt: `If the neighbour order changes, can ${algorithm.toUpperCase()}'s visit order change?`,
|
|
75
|
+
correct: "yes",
|
|
76
|
+
correctFeedback: "Exactly. The structure is unchanged, but traversal order depends on neighbour order.",
|
|
77
|
+
retryFeedback
|
|
78
|
+
};
|
|
79
|
+
case "dijkstra": return negative ? {
|
|
80
|
+
prompt: "Would Dijkstra be right here if it could reopen a settled node?",
|
|
81
|
+
correct: "yes",
|
|
82
|
+
correctFeedback: "Yes. Reopening nodes whenever a cheaper route appears is what Bellman-Ford does; Dijkstra saves time by never looking back, which is only safe without negative edges.",
|
|
83
|
+
retryFeedback: "Look at the edge Dijkstra ignored because its end was already settled."
|
|
84
|
+
} : {
|
|
85
|
+
prompt: "If an edge on this route becomes more expensive, can the shortest route change?",
|
|
86
|
+
correct: "yes",
|
|
87
|
+
correctFeedback: "Exactly. New weights can make another route cheaper.",
|
|
88
|
+
retryFeedback
|
|
89
|
+
};
|
|
90
|
+
case "bellman-ford": return {
|
|
91
|
+
prompt: "If a loop of roads had a negative total, would the rounds ever stop lowering distances?",
|
|
92
|
+
correct: "no",
|
|
93
|
+
correctFeedback: "Right. Every trip round the loop is cheaper again, so the check round still improves something and Bellman-Ford reports a negative cycle.",
|
|
94
|
+
retryFeedback: "Add up the weights round the loop: what does one more lap do to the cost?"
|
|
95
|
+
};
|
|
96
|
+
case "prim":
|
|
97
|
+
case "kruskal": return {
|
|
98
|
+
prompt: "If every link cost 1 more, could the cheapest network use different links?",
|
|
99
|
+
correct: "no",
|
|
100
|
+
correctFeedback: "Right. Every spanning tree has one fewer edge than there are nodes, so all totals rise by the same amount and the cheapest stays cheapest.",
|
|
101
|
+
retryFeedback: "Count the edges in any spanning tree of this graph. Does that number change?"
|
|
102
|
+
};
|
|
103
|
+
case "topo": return {
|
|
104
|
+
prompt: "Can a task list whose prerequisites form a loop ever be put in order?",
|
|
105
|
+
correct: "no",
|
|
106
|
+
correctFeedback: "Right. Every task on the loop waits for another one on it, so none can go first.",
|
|
107
|
+
retryFeedback: "Pick any task on the loop and ask which task it waits for."
|
|
108
|
+
};
|
|
109
|
+
default: return {
|
|
110
|
+
prompt: "If DFS finishes without ever meeting a grey task, is the graph free of cycles?",
|
|
111
|
+
correct: "yes",
|
|
112
|
+
correctFeedback: "Yes. On any cycle, DFS must follow some edge into a task that is still grey.",
|
|
113
|
+
retryFeedback: "Think about the first task of a cycle that DFS turns grey."
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/** Three-letter codes for matrix headers, unique within the graph. */
|
|
118
|
+
function shortCodes(graph) {
|
|
119
|
+
const codes = {};
|
|
120
|
+
const used = /* @__PURE__ */ new Set();
|
|
121
|
+
for (const node of graph.nodes) {
|
|
122
|
+
const label = (node.label ?? node.id).replace(/[^A-Za-z0-9]/g, "");
|
|
123
|
+
let code = label.slice(0, 3) || node.id.slice(0, 3);
|
|
124
|
+
for (let extra = 1; used.has(code); extra++) code = `${label.slice(0, 2)}${extra}`;
|
|
125
|
+
used.add(code);
|
|
126
|
+
codes[node.id] = code;
|
|
127
|
+
}
|
|
128
|
+
return codes;
|
|
129
|
+
}
|
|
130
|
+
function GraphAlgorithmLab({ algorithm = "dijkstra", dataset, graph, source, target, predict = true, representation = "drawing", dfsOrder = "stack", title, prompt }) {
|
|
131
|
+
const story = resolveDataset(dataset, "graph");
|
|
132
|
+
const safeGraph = useMemo(() => prepareGraph(graph ?? story?.graph ?? teachingGraph), [graph, story]);
|
|
133
|
+
const route = dataset ? ROAD_ROUTES[dataset] : void 0;
|
|
134
|
+
const has = (id) => Boolean(id) && safeGraph.nodes.some((node) => node.id === id);
|
|
135
|
+
const safeSource = [
|
|
136
|
+
source,
|
|
137
|
+
route?.source,
|
|
138
|
+
"A"
|
|
139
|
+
].find(has) ?? safeGraph.nodes[0].id;
|
|
140
|
+
const safeTarget = [
|
|
141
|
+
target,
|
|
142
|
+
route?.target,
|
|
143
|
+
"F"
|
|
144
|
+
].find(has) ?? safeGraph.nodes.at(-1).id;
|
|
145
|
+
const trace = useMemo(() => runGraphAlgorithm(algorithm, safeGraph, safeSource, safeTarget, { dfsOrder }), [
|
|
20
146
|
algorithm,
|
|
21
147
|
safeGraph,
|
|
22
148
|
safeSource,
|
|
23
|
-
safeTarget
|
|
149
|
+
safeTarget,
|
|
150
|
+
dfsOrder
|
|
24
151
|
]);
|
|
152
|
+
const names = useMemo(() => new Map(safeGraph.nodes.map((node) => [node.id, node.label ?? node.id])), [safeGraph]);
|
|
153
|
+
const name = (id) => id ? names.get(id) ?? id : "none";
|
|
25
154
|
const [step, setStep] = useState(0);
|
|
26
|
-
|
|
155
|
+
/** Picks per decision index, in the order the learner made them. */
|
|
156
|
+
const [picks, setPicks] = useState({});
|
|
27
157
|
const [transferAnswer, setTransferAnswer] = useState();
|
|
28
|
-
|
|
29
|
-
useEffect(() =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (event.type === "relax-edge") {
|
|
50
|
-
distances[event.nodeId] = event.next;
|
|
51
|
-
activeEdge = event.edgeId;
|
|
52
|
-
frontier = safeGraph.nodes.map((node) => node.id).filter((id) => !visited.has(id) && Number.isFinite(distances[id])).sort((a, b) => distances[a] - distances[b] || a.localeCompare(b));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
158
|
+
const [attempt, setAttempt] = useState(0);
|
|
159
|
+
useEffect(() => {
|
|
160
|
+
setStep(0);
|
|
161
|
+
setPicks({});
|
|
162
|
+
setTransferAnswer(void 0);
|
|
163
|
+
}, [trace]);
|
|
164
|
+
const decisions = predict ? trace.decisions : [];
|
|
165
|
+
const decisionIndex = decisions.findIndex((decision) => decision.step === step);
|
|
166
|
+
const decision = decisions[decisionIndex];
|
|
167
|
+
const myPicks = decisionIndex >= 0 ? picks[decisionIndex] ?? [] : [];
|
|
168
|
+
const picked = myPicks.at(-1);
|
|
169
|
+
const answered = Boolean(decision && myPicks.includes(decision.answer));
|
|
170
|
+
const pending = Boolean(decision && !answered);
|
|
171
|
+
const pick = (value) => {
|
|
172
|
+
if (!decision || answered) return;
|
|
173
|
+
setPicks((all) => ({
|
|
174
|
+
...all,
|
|
175
|
+
[decisionIndex]: [...all[decisionIndex] ?? [], value]
|
|
176
|
+
}));
|
|
177
|
+
};
|
|
178
|
+
const state = graphStateAt(trace, safeGraph, step);
|
|
55
179
|
const event = trace.events[step];
|
|
56
|
-
const nextEvent = trace.events[step + 1];
|
|
57
|
-
const nextVisit = nextEvent?.type === "visit-node" ? nextEvent.nodeId : void 0;
|
|
58
|
-
const candidates = [...new Set(frontier)].filter((id) => !visited.has(id));
|
|
59
|
-
const asksNext = Boolean(nextVisit && candidates.length > 1);
|
|
60
|
-
const predictionCorrect = prediction === nextVisit;
|
|
61
|
-
const path = event.type === "complete" && algorithm === "dijkstra" ? reconstructPath(trace.previous, safeSource, safeTarget) : [];
|
|
62
|
-
const label = algorithm === "dijkstra" ? "Dijkstra's shortest path" : `${algorithm.toUpperCase()} graph traversal`;
|
|
63
|
-
const frontierLabel = algorithm === "bfs" ? "Queue" : algorithm === "dfs" ? "Stack" : "Priority frontier";
|
|
64
180
|
const complete = event.type === "complete";
|
|
65
|
-
const
|
|
181
|
+
const weighted = isWeighted(safeGraph);
|
|
182
|
+
const negative = hasNegativeEdge(safeGraph);
|
|
183
|
+
const layoutMode = useMemo(() => layoutGraph(safeGraph).mode, [safeGraph]);
|
|
184
|
+
const label = NAMES[algorithm];
|
|
185
|
+
const firstTry = decisions.filter((item, index) => picks[index]?.[0] === item.answer).length;
|
|
186
|
+
const solved = predict && complete && decisions.every((item, index) => picks[index]?.includes(item.answer));
|
|
187
|
+
const response = decisions.length ? `Predicted ${firstTry} of ${decisions.length} ${label.short} steps first try` : `Traced ${label.short} to the end`;
|
|
188
|
+
useCheckpoint({
|
|
189
|
+
solved,
|
|
190
|
+
activity: `graph-algorithm:${algorithm}${dataset ? `:${dataset}` : ""}`,
|
|
191
|
+
score: decisions.length ? {
|
|
192
|
+
raw: firstTry,
|
|
193
|
+
max: decisions.length
|
|
194
|
+
} : void 0,
|
|
195
|
+
response,
|
|
196
|
+
attemptKey: `${algorithm}${algorithm === "dfs" ? `-${dfsOrder}` : ""}:${safeSource}:${safeTarget}:${dataset ?? ""}:${attempt}`
|
|
197
|
+
});
|
|
198
|
+
const restart = () => {
|
|
199
|
+
setStep(0);
|
|
200
|
+
setPicks({});
|
|
201
|
+
setTransferAnswer(void 0);
|
|
202
|
+
setAttempt((value) => value + 1);
|
|
203
|
+
};
|
|
204
|
+
const path = complete && (algorithm === "dijkstra" || algorithm === "bellman-ford" || algorithm === "bfs") ? trace.path ?? [] : [];
|
|
205
|
+
const comparison = useMemo(() => negative && (algorithm === "dijkstra" || algorithm === "bellman-ford") ? compareShortest(safeGraph, safeSource, safeTarget) : void 0, [
|
|
206
|
+
algorithm,
|
|
207
|
+
negative,
|
|
208
|
+
safeGraph,
|
|
209
|
+
safeSource,
|
|
210
|
+
safeTarget
|
|
211
|
+
]);
|
|
212
|
+
const transfer = transferFor(algorithm, negative);
|
|
213
|
+
const showsDistance = algorithm === "dijkstra" || algorithm === "bellman-ford" || algorithm === "prim";
|
|
214
|
+
const badges = algorithm === "topo" && state.inDegree ? Object.fromEntries(safeGraph.nodes.filter((node) => !state.visited.includes(node.id)).map((node) => [node.id, `in ${state.inDegree[node.id] ?? 0}`])) : void 0;
|
|
215
|
+
const frontierText = algorithm === "bellman-ford" ? `Round ${state.round ?? 0}` : algorithm === "kruskal" ? `Tree cost ${formatWeight(state.total ?? 0)}` : state.frontier.map(name).join(", ") || "empty";
|
|
216
|
+
const frontierLabel = algorithm === "bellman-ford" ? "Pass" : algorithm === "kruskal" ? "MST" : algorithm === "dfs" && dfsOrder === "recursive" ? "Call stack" : FRONTIER_LABEL[algorithm];
|
|
217
|
+
const decisionLabel = decision?.kind === "node" ? "Predict the next node" : decision?.kind === "edge" ? "Predict the next edge" : "Predict the outcome";
|
|
218
|
+
const optionLabel = (value) => decision?.options.find((option) => option.value === value)?.label ?? value;
|
|
219
|
+
const listMode = algorithm === "topo" || algorithm === "cycle" ? "directed" : "as-drawn";
|
|
220
|
+
const showList = representation === "adj-list" || representation === "both";
|
|
221
|
+
const showMatrix = representation === "matrix" || representation === "both";
|
|
222
|
+
const codes = shortCodes(safeGraph);
|
|
223
|
+
const orderItems = algorithm === "bellman-ford" ? safeGraph.nodes.map((node) => node.id).filter((id) => Number.isFinite(state.distances?.[id] ?? Infinity)) : state.visited;
|
|
66
224
|
return /* @__PURE__ */ jsxs(Activity.Root, {
|
|
67
|
-
className: "algorithm-activity",
|
|
225
|
+
className: "algorithm-activity graph-algorithm",
|
|
68
226
|
focusLayout: "immersive",
|
|
69
227
|
children: [
|
|
70
228
|
/* @__PURE__ */ jsxs(Activity.Header, { children: [/* @__PURE__ */ jsx(Activity.Heading, {
|
|
71
229
|
eyebrow: "Algorithms",
|
|
72
|
-
title: title ?? label,
|
|
73
|
-
description: prompt ?? "Step through the decisions. The visualization exposes algorithm state, not just the final answer."
|
|
230
|
+
title: title ?? label.title,
|
|
231
|
+
description: prompt ?? story?.note ?? "Step through the decisions. The visualization exposes algorithm state, not just the final answer."
|
|
74
232
|
}), /* @__PURE__ */ jsx(Activity.FocusButton, {})] }),
|
|
75
|
-
/* @__PURE__ */ jsxs(Activity.Status, { children: [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
233
|
+
/* @__PURE__ */ jsxs(Activity.Status, { children: [
|
|
234
|
+
/* @__PURE__ */ jsxs("span", {
|
|
235
|
+
className: "lab-chip",
|
|
236
|
+
children: ["Current ", /* @__PURE__ */ jsx("strong", { children: algorithm === "kruskal" ? "edge list" : name(state.current) })]
|
|
237
|
+
}),
|
|
238
|
+
/* @__PURE__ */ jsxs("span", {
|
|
239
|
+
className: "lab-chip",
|
|
240
|
+
children: [
|
|
241
|
+
frontierLabel,
|
|
242
|
+
" ",
|
|
243
|
+
/* @__PURE__ */ jsx("strong", { children: frontierText })
|
|
244
|
+
]
|
|
245
|
+
}),
|
|
246
|
+
decisions.length > 0 && /* @__PURE__ */ jsxs("span", {
|
|
247
|
+
className: "lab-chip",
|
|
248
|
+
children: ["First try ", /* @__PURE__ */ jsx("strong", { children: `${firstTry}/${decisions.length}` })]
|
|
249
|
+
})
|
|
250
|
+
] }),
|
|
86
251
|
/* @__PURE__ */ jsxs(Activity.Workspace, { children: [/* @__PURE__ */ jsxs(Activity.Canvas, {
|
|
87
252
|
label: "Graph visualization",
|
|
88
253
|
children: [
|
|
89
254
|
/* @__PURE__ */ jsx(GraphView, {
|
|
90
255
|
graph: safeGraph,
|
|
91
|
-
current,
|
|
92
|
-
activeEdge,
|
|
93
|
-
visited,
|
|
94
|
-
discovered,
|
|
256
|
+
current: state.current,
|
|
257
|
+
activeEdge: state.activeEdge,
|
|
258
|
+
visited: new Set(state.visited),
|
|
259
|
+
discovered: new Set(state.discovered),
|
|
95
260
|
path,
|
|
96
|
-
distances:
|
|
261
|
+
distances: showsDistance ? state.distances : void 0,
|
|
262
|
+
badges,
|
|
263
|
+
tree: new Set(state.tree),
|
|
264
|
+
rejected: new Set(state.rejected),
|
|
265
|
+
cycleEdges: new Set(state.cycleEdges),
|
|
266
|
+
ignored: new Set(state.ignored),
|
|
267
|
+
colour: state.colour,
|
|
268
|
+
pick: decision && !answered && decision.kind !== "yes-no" ? {
|
|
269
|
+
kind: decision.kind,
|
|
270
|
+
options: decision.options,
|
|
271
|
+
picked,
|
|
272
|
+
onPick: pick
|
|
273
|
+
} : void 0
|
|
97
274
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
children: [
|
|
102
|
-
/* @__PURE__ */ jsx("span", {
|
|
103
|
-
"data-tone": "current",
|
|
104
|
-
children: "current"
|
|
105
|
-
}),
|
|
106
|
-
/* @__PURE__ */ jsx("span", {
|
|
107
|
-
"data-tone": "frontier",
|
|
108
|
-
children: "frontier"
|
|
109
|
-
}),
|
|
110
|
-
/* @__PURE__ */ jsx("span", {
|
|
111
|
-
"data-tone": "visited",
|
|
112
|
-
children: "settled"
|
|
113
|
-
})
|
|
114
|
-
]
|
|
275
|
+
/* @__PURE__ */ jsx(GraphLegend, {
|
|
276
|
+
algorithm,
|
|
277
|
+
loop: state.cycleEdges.length > 0
|
|
115
278
|
}),
|
|
116
|
-
|
|
279
|
+
decision && /* @__PURE__ */ jsxs("section", {
|
|
117
280
|
className: "algorithm-decision",
|
|
118
|
-
"aria-label":
|
|
281
|
+
"aria-label": decisionLabel,
|
|
119
282
|
children: [
|
|
120
|
-
/* @__PURE__ */ jsx("strong", { children:
|
|
283
|
+
/* @__PURE__ */ jsx("strong", { children: decision.prompt }),
|
|
121
284
|
/* @__PURE__ */ jsx(AssessedChoiceGroup, {
|
|
122
|
-
value:
|
|
123
|
-
onChange:
|
|
124
|
-
ariaLabel: "Predict the next graph node",
|
|
125
|
-
options:
|
|
126
|
-
value:
|
|
127
|
-
label:
|
|
128
|
-
tone:
|
|
285
|
+
value: picked,
|
|
286
|
+
onChange: pick,
|
|
287
|
+
ariaLabel: decision.kind === "node" ? "Predict the next graph node" : decision.prompt,
|
|
288
|
+
options: decision.options.map((option) => ({
|
|
289
|
+
value: option.value,
|
|
290
|
+
label: option.label,
|
|
291
|
+
tone: picked === option.value ? option.value === decision.answer ? "correct" : "wrong" : void 0
|
|
129
292
|
}))
|
|
130
293
|
}),
|
|
131
|
-
|
|
294
|
+
picked && /* @__PURE__ */ jsx("small", {
|
|
132
295
|
"aria-live": "polite",
|
|
133
|
-
children:
|
|
296
|
+
children: picked === decision.answer ? decision.kind === "node" ? `Correct: ${name(decision.answer)} is selected next. ${decision.correct}` : `Correct: ${decision.kind === "edge" ? `${optionLabel(decision.answer)}. ` : ""}${decision.correct}` : decision.reasons[picked] ?? "Not yet. Compare the options again."
|
|
134
297
|
})
|
|
135
298
|
]
|
|
299
|
+
}),
|
|
300
|
+
complete && comparison && /* @__PURE__ */ jsx("p", {
|
|
301
|
+
className: "algorithm-note",
|
|
302
|
+
role: "note",
|
|
303
|
+
children: comparison.truth ? comparison.agree ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
304
|
+
"Dijkstra and Bellman-Ford agree here: ",
|
|
305
|
+
name(safeTarget),
|
|
306
|
+
" costs",
|
|
307
|
+
" ",
|
|
308
|
+
formatWeight(comparison.truth.cost),
|
|
309
|
+
"."
|
|
310
|
+
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
311
|
+
"Dijkstra says ",
|
|
312
|
+
name(safeTarget),
|
|
313
|
+
" costs ",
|
|
314
|
+
/* @__PURE__ */ jsx("strong", { children: formatWeight(comparison.dijkstra.cost) }),
|
|
315
|
+
" ",
|
|
316
|
+
"(",
|
|
317
|
+
comparison.dijkstra.path.map(name).join(" → "),
|
|
318
|
+
"); the true cheapest is",
|
|
319
|
+
" ",
|
|
320
|
+
/* @__PURE__ */ jsx("strong", { children: formatWeight(comparison.truth.cost) }),
|
|
321
|
+
" (",
|
|
322
|
+
comparison.truth.path.map(name).join(" → "),
|
|
323
|
+
"). Dijkstra settled a node before the negative edge into it was seen, and never reopens a settled node."
|
|
324
|
+
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
325
|
+
"A negative cycle means no route is cheapest: Dijkstra's ",
|
|
326
|
+
formatWeight(comparison.dijkstra.cost),
|
|
327
|
+
" is just where its greedy order happened to stop."
|
|
328
|
+
] })
|
|
329
|
+
}),
|
|
330
|
+
complete && algorithm === "bfs" && weighted && path.length > 1 && /* @__PURE__ */ jsxs("p", {
|
|
331
|
+
className: "algorithm-note",
|
|
332
|
+
role: "note",
|
|
333
|
+
children: [
|
|
334
|
+
"Fewest hops is not cheapest: this route's edge weights add up to",
|
|
335
|
+
" ",
|
|
336
|
+
formatWeight(pathWeight(safeGraph, path)),
|
|
337
|
+
"."
|
|
338
|
+
]
|
|
136
339
|
})
|
|
137
340
|
]
|
|
138
341
|
}), /* @__PURE__ */ jsx(Activity.Inspector, {
|
|
@@ -140,44 +343,208 @@ function GraphAlgorithmLab({ algorithm = "dijkstra", graph = teachingGraph, sour
|
|
|
140
343
|
children: /* @__PURE__ */ jsxs("div", {
|
|
141
344
|
className: "algorithm-inspector",
|
|
142
345
|
children: [
|
|
143
|
-
/* @__PURE__ */ jsx("h4", { children:
|
|
144
|
-
/* @__PURE__ */ jsx("div", {
|
|
346
|
+
/* @__PURE__ */ jsx("h4", { children: ORDER_HEADING[algorithm] }),
|
|
347
|
+
layoutMode === "compact" && algorithm !== "topo" ? /* @__PURE__ */ jsx("div", {
|
|
145
348
|
className: "algorithm-order",
|
|
146
|
-
children:
|
|
349
|
+
children: orderItems.length ? orderItems.map((id) => /* @__PURE__ */ jsx("span", { children: name(id) }, id)) : /* @__PURE__ */ jsx("em", { children: "none yet" })
|
|
350
|
+
}) : /* @__PURE__ */ jsx("ol", {
|
|
351
|
+
className: "algorithm-order-strip",
|
|
352
|
+
"aria-label": ORDER_HEADING[algorithm],
|
|
353
|
+
children: orderItems.length ? orderItems.map((id, index) => /* @__PURE__ */ jsxs("li", { children: [
|
|
354
|
+
/* @__PURE__ */ jsx("b", { children: index + 1 }),
|
|
355
|
+
" ",
|
|
356
|
+
name(id)
|
|
357
|
+
] }, id)) : /* @__PURE__ */ jsx("li", {
|
|
358
|
+
className: "algorithm-order-empty",
|
|
359
|
+
children: "none yet"
|
|
360
|
+
})
|
|
361
|
+
}),
|
|
362
|
+
showsDistance && state.distances && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h4", { children: algorithm === "prim" ? "Cheapest link into the tree" : "Tentative distances" }), /* @__PURE__ */ jsx("dl", { children: safeGraph.nodes.map((node) => /* @__PURE__ */ jsxs("div", {
|
|
363
|
+
"data-current": node.id === state.current || void 0,
|
|
364
|
+
children: [/* @__PURE__ */ jsx("dt", { children: node.label ?? node.id }), /* @__PURE__ */ jsx("dd", { children: formatWeight(state.distances[node.id] ?? Infinity) })]
|
|
365
|
+
}, node.id)) })] }),
|
|
366
|
+
algorithm === "prim" && /* @__PURE__ */ jsxs("p", { children: ["Tree cost ", /* @__PURE__ */ jsx("strong", { children: formatWeight(state.total ?? 0) })] }),
|
|
367
|
+
algorithm === "kruskal" && /* @__PURE__ */ jsx(KruskalPanel, {
|
|
368
|
+
graph: safeGraph,
|
|
369
|
+
tree: state.tree,
|
|
370
|
+
rejected: state.rejected,
|
|
371
|
+
sets: state.sets,
|
|
372
|
+
name
|
|
373
|
+
}),
|
|
374
|
+
algorithm === "topo" && state.inDegree && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h4", { children: "Prerequisites left" }), /* @__PURE__ */ jsx("dl", { children: safeGraph.nodes.map((node) => /* @__PURE__ */ jsxs("div", {
|
|
375
|
+
"data-done": state.visited.includes(node.id) || void 0,
|
|
376
|
+
children: [/* @__PURE__ */ jsx("dt", { children: node.label ?? node.id }), /* @__PURE__ */ jsx("dd", { children: state.visited.includes(node.id) ? "done" : state.inDegree[node.id] })]
|
|
377
|
+
}, node.id)) })] }),
|
|
378
|
+
algorithm === "cycle" && state.colour && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h4", { children: "Colours" }), /* @__PURE__ */ jsx("dl", { children: [
|
|
379
|
+
"grey",
|
|
380
|
+
"black",
|
|
381
|
+
"white"
|
|
382
|
+
].map((tone) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: tone === "grey" ? "Grey (on path)" : tone === "black" ? "Black (finished)" : "White (unseen)" }), /* @__PURE__ */ jsx("dd", { children: safeGraph.nodes.filter((node) => state.colour[node.id] === tone).map((node) => node.label ?? node.id).join(", ") || "none" })] }, tone)) })] }),
|
|
383
|
+
showList && /* @__PURE__ */ jsx(AdjacencyListPanel, {
|
|
384
|
+
graph: safeGraph,
|
|
385
|
+
mode: listMode,
|
|
386
|
+
scanning: state.scanning,
|
|
387
|
+
activeEdge: state.activeEdge,
|
|
388
|
+
name,
|
|
389
|
+
weighted
|
|
147
390
|
}),
|
|
148
|
-
|
|
391
|
+
showMatrix && /* @__PURE__ */ jsx(AdjacencyMatrixPanel, {
|
|
392
|
+
graph: safeGraph,
|
|
393
|
+
mode: listMode,
|
|
394
|
+
scanning: state.scanning,
|
|
395
|
+
activeEdge: state.activeEdge,
|
|
396
|
+
codes,
|
|
397
|
+
weighted,
|
|
398
|
+
name
|
|
399
|
+
})
|
|
149
400
|
]
|
|
150
401
|
})
|
|
151
402
|
})] }),
|
|
152
403
|
complete && /* @__PURE__ */ jsx(BinaryTransferCheck, {
|
|
153
404
|
id: "algorithm-transfer-title",
|
|
154
|
-
prompt:
|
|
405
|
+
prompt: transfer.prompt,
|
|
155
406
|
answer: transferAnswer,
|
|
156
|
-
correct:
|
|
407
|
+
correct: transfer.correct,
|
|
157
408
|
onAnswer: setTransferAnswer,
|
|
158
|
-
correctFeedback:
|
|
159
|
-
retryFeedback:
|
|
409
|
+
correctFeedback: transfer.correctFeedback,
|
|
410
|
+
retryFeedback: transfer.retryFeedback
|
|
160
411
|
}),
|
|
161
|
-
|
|
412
|
+
complete && predict && /* @__PURE__ */ jsxs("div", {
|
|
413
|
+
className: "algorithm-score",
|
|
414
|
+
role: "status",
|
|
415
|
+
children: [/* @__PURE__ */ jsx("span", { children: `${response}.` }), /* @__PURE__ */ jsx(ActionButton, {
|
|
416
|
+
className: "lab-btn-ghost",
|
|
417
|
+
onClick: restart,
|
|
418
|
+
children: "Start over"
|
|
419
|
+
})]
|
|
420
|
+
}),
|
|
421
|
+
/* @__PURE__ */ jsxs(Activity.Feedback, { children: [/* @__PURE__ */ jsx("strong", { children: complete ? "Result" : event.type === "relax-edge" ? "Relax" : event.type === "visit-node" || event.type === "emit-node" || event.type === "accept-edge" ? "Choose" : event.type === "reject-edge" || event.type === "skip-settled" ? "Skip" : event.type === "back-edge" || event.type === "negative-cycle" ? "Cycle" : "Observe" }), /* @__PURE__ */ jsx("span", { children: event.message })] }),
|
|
162
422
|
/* @__PURE__ */ jsx(Activity.Transcript, { children: /* @__PURE__ */ jsxs("ol", { children: [trace.events.map((item, index) => /* @__PURE__ */ jsx("li", {
|
|
163
423
|
"data-current": index === step || void 0,
|
|
164
424
|
children: item.message
|
|
165
425
|
}, index)), transferAnswer && /* @__PURE__ */ jsxs("li", { children: [
|
|
166
|
-
"Transfer answer:",
|
|
167
|
-
" ",
|
|
168
|
-
transferAnswer ===
|
|
426
|
+
"Transfer answer: ",
|
|
427
|
+
transferAnswer === "yes" ? "yes" : "no",
|
|
428
|
+
transferAnswer === transfer.correct ? " (correct)" : "",
|
|
169
429
|
"."
|
|
170
430
|
] })] }) }),
|
|
171
431
|
/* @__PURE__ */ jsx(TraceTransport, {
|
|
172
432
|
step,
|
|
173
433
|
count: trace.events.length,
|
|
174
|
-
message:
|
|
434
|
+
message: pending ? decision.kind === "node" ? "Predict the next node to continue." : decision.kind === "edge" ? "Predict the next edge to continue." : "Predict the outcome to continue." : event.message,
|
|
175
435
|
setStep,
|
|
176
|
-
canAdvance: !
|
|
436
|
+
canAdvance: !pending
|
|
177
437
|
})
|
|
178
438
|
]
|
|
179
439
|
});
|
|
180
440
|
}
|
|
441
|
+
function GraphLegend({ algorithm, loop }) {
|
|
442
|
+
const items = algorithm === "prim" || algorithm === "kruskal" ? [
|
|
443
|
+
["tree", "in the tree"],
|
|
444
|
+
["rejected", "would make a cycle"],
|
|
445
|
+
["current", "just added"]
|
|
446
|
+
] : algorithm === "cycle" ? [
|
|
447
|
+
["grey", "grey: on the path"],
|
|
448
|
+
["visited", "black: finished"],
|
|
449
|
+
["cycle", "cycle"]
|
|
450
|
+
] : algorithm === "topo" ? [
|
|
451
|
+
["current", "just done"],
|
|
452
|
+
["visited", "done"],
|
|
453
|
+
...loop ? [["cycle", "the loop"]] : []
|
|
454
|
+
] : [
|
|
455
|
+
["current", "current"],
|
|
456
|
+
["frontier", "frontier"],
|
|
457
|
+
["visited", "settled"]
|
|
458
|
+
];
|
|
459
|
+
return /* @__PURE__ */ jsx("div", {
|
|
460
|
+
className: "algorithm-legend",
|
|
461
|
+
"aria-label": "Graph state legend",
|
|
462
|
+
children: items.map(([tone, text]) => /* @__PURE__ */ jsx("span", {
|
|
463
|
+
"data-tone": tone,
|
|
464
|
+
children: text
|
|
465
|
+
}, tone))
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
function KruskalPanel({ graph, tree, rejected, sets, name }) {
|
|
469
|
+
const sorted = [...graph.edges].sort((a, b) => (a.weight ?? 1) - (b.weight ?? 1) || (a.id < b.id ? -1 : a.id > b.id ? 1 : 0));
|
|
470
|
+
const nextIndex = sorted.findIndex((edge) => !tree.includes(edge.id) && !rejected.includes(edge.id));
|
|
471
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
472
|
+
/* @__PURE__ */ jsx("h4", { children: "Edges by cost" }),
|
|
473
|
+
/* @__PURE__ */ jsx("ol", {
|
|
474
|
+
className: "algorithm-edge-list",
|
|
475
|
+
children: sorted.map((edge, index) => {
|
|
476
|
+
const status = tree.includes(edge.id) ? "taken" : rejected.includes(edge.id) ? "skipped" : index === nextIndex ? "next" : "waiting";
|
|
477
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
478
|
+
"data-status": status,
|
|
479
|
+
children: [
|
|
480
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
481
|
+
name(edge.from),
|
|
482
|
+
"–",
|
|
483
|
+
name(edge.to)
|
|
484
|
+
] }),
|
|
485
|
+
/* @__PURE__ */ jsx("b", { children: formatWeight(edge.weight ?? 1) }),
|
|
486
|
+
/* @__PURE__ */ jsx("em", { children: status === "taken" ? "taken" : status === "skipped" ? "would make a cycle" : "" })
|
|
487
|
+
]
|
|
488
|
+
}, edge.id);
|
|
489
|
+
})
|
|
490
|
+
}),
|
|
491
|
+
sets && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h4", { children: "Union-find sets" }), /* @__PURE__ */ jsx("ul", {
|
|
492
|
+
className: "algorithm-sets",
|
|
493
|
+
"aria-label": "Union-find sets",
|
|
494
|
+
children: sets.map((set) => /* @__PURE__ */ jsx("li", { children: `{${set.map(name).join(", ")}}` }, set.join("|")))
|
|
495
|
+
})] })
|
|
496
|
+
] });
|
|
497
|
+
}
|
|
498
|
+
function AdjacencyListPanel({ graph, mode, scanning, activeEdge, name, weighted }) {
|
|
499
|
+
const rows = adjacencyList(graph, mode);
|
|
500
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h4", { children: "Adjacency list" }), /* @__PURE__ */ jsx("ul", {
|
|
501
|
+
className: "algorithm-adjacency",
|
|
502
|
+
"aria-label": "Adjacency list",
|
|
503
|
+
children: rows.map((row) => /* @__PURE__ */ jsxs("li", {
|
|
504
|
+
"data-scanning": row.id === scanning || void 0,
|
|
505
|
+
children: [/* @__PURE__ */ jsx("b", { children: name(row.id) }), /* @__PURE__ */ jsx("span", { children: row.neighbours.length ? row.neighbours.map((cell, index) => /* @__PURE__ */ jsxs("span", {
|
|
506
|
+
"data-active": row.id === scanning && cell.edgeId === activeEdge || void 0,
|
|
507
|
+
children: [
|
|
508
|
+
index > 0 ? ", " : "",
|
|
509
|
+
name(cell.id),
|
|
510
|
+
weighted ? ` (${formatWeight(cell.weight ?? 1)})` : ""
|
|
511
|
+
]
|
|
512
|
+
}, cell.edgeId)) : "nothing" })]
|
|
513
|
+
}, row.id))
|
|
514
|
+
})] });
|
|
515
|
+
}
|
|
516
|
+
function AdjacencyMatrixPanel({ graph, mode, scanning, activeEdge, codes, weighted, name }) {
|
|
517
|
+
const matrix = adjacencyMatrix(graph, mode);
|
|
518
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h4", { children: "Adjacency matrix" }), /* @__PURE__ */ jsx("div", {
|
|
519
|
+
className: "algorithm-matrix-scroll",
|
|
520
|
+
children: /* @__PURE__ */ jsxs("table", {
|
|
521
|
+
className: "algorithm-matrix",
|
|
522
|
+
"aria-label": "Adjacency matrix: row is from, column is to",
|
|
523
|
+
children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", {
|
|
524
|
+
scope: "col",
|
|
525
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
526
|
+
className: "sr-only",
|
|
527
|
+
children: "from / to"
|
|
528
|
+
})
|
|
529
|
+
}), graph.nodes.map((node) => /* @__PURE__ */ jsx("th", {
|
|
530
|
+
scope: "col",
|
|
531
|
+
title: name(node.id),
|
|
532
|
+
children: codes[node.id]
|
|
533
|
+
}, node.id))] }) }), /* @__PURE__ */ jsx("tbody", { children: graph.nodes.map((node, row) => /* @__PURE__ */ jsxs("tr", {
|
|
534
|
+
"data-scanning": node.id === scanning || void 0,
|
|
535
|
+
children: [/* @__PURE__ */ jsx("th", {
|
|
536
|
+
scope: "row",
|
|
537
|
+
title: name(node.id),
|
|
538
|
+
children: codes[node.id]
|
|
539
|
+
}), matrix[row].map((cell, col) => /* @__PURE__ */ jsx("td", {
|
|
540
|
+
"data-edge": cell ? true : void 0,
|
|
541
|
+
"data-active": cell && node.id === scanning && cell.edgeId === activeEdge || void 0,
|
|
542
|
+
children: cell ? weighted ? formatWeight(cell.weight ?? 1) : "1" : "·"
|
|
543
|
+
}, graph.nodes[col].id))]
|
|
544
|
+
}, node.id)) })]
|
|
545
|
+
})
|
|
546
|
+
})] });
|
|
547
|
+
}
|
|
181
548
|
|
|
182
549
|
//#endregion
|
|
183
550
|
export { GraphAlgorithmLab };
|