oficina / slides Public

Merge main: the slide window's quiet bar

Resolutions:
- internal/slides/credits/assets.json: conflicted; regenerated with
  scripts/credits.py rather than hand-merged.
- presenter bundle: rebuilt with fixtures/build-bundles.mjs (presenter.2f6958aa...),
  replacing both branches' hashed bundles; sources auto-merged.
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 6facde825dade459d231403972df5ec0b770818b parent 98cee47parent 973b3f6
8 files changed, +279 −6
  • fixtures/quiet-bar.mjs +27 −0
  • fixtures/slide-window.mjs +2 −0
  • internal/slides/credits/assets.json +2 −2
  • internal/slides/static/present.js +28 −0
  • internal/slides/static/presenter.2f6958aa6804100e.js +4 −0
  • internal/slides/static/presenter.f9443ddfa23f90e0.js +0 −4
  • internal/slides/templates/present.html +19 −0
  • internal/slidestest/slide_window_bar_browser_test.go +197 −0

CI passed — run details

CI log
=== gate ===
=== rust: fmt
=== rust: clippy
    Updating crates.io index
 Downloading crates ...
  Downloaded arrayvec v0.7.8
  Downloaded arc-swap v1.9.2
  Downloaded async-lock v3.4.2
  Downloaded ahash v0.8.12
  Downloaded lock_api v0.4.14
  Downloaded paste v1.0.15
  Downloaded cfg-if v1.0.4
  Downloaded once_cell v1.21.4
  Downloaded itoa v1.0.18
  Downloaded equivalent v1.0.2
  Downloaded scopeguard v1.2.0
  Downloaded pin-project-lite v0.2.17
  Downloaded dashmap v6.2.1
  Downloaded multi-stash v0.2.0
  Downloaded downcast-rs v1.2.1
  Downloaded foldhash v0.2.0
  Downloaded quote v1.0.47
  Downloaded event-listener-strategy v0.5.4
  Downloaded num-derive v0.4.2
  Downloaded parking v2.2.1
  Downloaded autocfg v1.5.1
  Downloaded indexmap-nostd v0.4.0
  Downloaded smallstr v0.3.1
  Downloaded version_check v0.9.5
  Downloaded rustversion v1.0.23
  Downloaded string-interner v0.17.0
  Downloaded thiserror v2.0.20
  Downloaded wasmi_collections v0.32.3
  Downloaded wasmi_core v0.32.3
  Downloaded zmij v1.0.23
  Downloaded async-trait v0.1.92
  Downloaded event-listener v5.4.2
  Downloaded parking_lot_core v0.9.12
  Downloaded semver v1.0.28
  Downloaded serde_core v1.0.229
  Downloaded serde_derive v1.0.229
  Downloaded smallvec v1.15.2
  Downloaded spin v0.9.9
  Downloaded crossbeam-utils v0.8.22
  Downloaded thiserror-impl v2.0.20
  Downloaded unicode-ident v1.0.24
  Downloaded bitflags v2.13.1
  Downloaded num-traits v0.2.19
  Downloaded proc-macro2 v1.0.107
  Downloaded memchr v2.8.3
  Downloaded serde v1.0.229
  Downloaded indexmap v2.14.1
  Downloaded hashbrown v0.14.5
  Downloaded libm v0.2.16
  Downloaded hashbrown v0.17.1
  Downloaded serde_json v1.0.151
  Downloaded wasmparser-nostd v0.100.2
  Downloaded wasmparser v0.258.0
  Downloaded zerocopy v0.8.56
  Downloaded syn v2.0.119
  Downloaded syn v3.0.4
  Downloaded wasmi v0.32.3
  Downloaded libc v0.2.189
  Downloaded yrs v0.23.5
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling serde_core v1.0.229
   Compiling zerocopy v0.8.56
   Compiling version_check v0.9.5
    Checking cfg-if v1.0.4
    Checking once_cell v1.21.4
   Compiling serde v1.0.229
    Checking smallvec v1.15.2
   Compiling libc v0.2.189
   Compiling rustversion v1.0.23
   Compiling parking_lot_core v0.9.12
   Compiling zmij v1.0.23
    Checking parking v2.2.1
   Compiling crossbeam-utils v0.8.22
   Compiling autocfg v1.5.1
    Checking pin-project-lite v0.2.17
    Checking event-listener v5.4.2
   Compiling thiserror v2.0.20
    Checking scopeguard v1.2.0
   Compiling paste v1.0.15
   Compiling serde_json v1.0.151
   Compiling libm v0.2.16
   Compiling ahash v0.8.12
   Compiling num-traits v0.2.19
    Checking event-listener-strategy v0.5.4
    Checking lock_api v0.4.14
    Checking foldhash v0.2.0
    Checking itoa v1.0.18
    Checking memchr v2.8.3
    Checking async-lock v3.4.2
    Checking smallstr v0.3.1
    Checking fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/feat__custom-fonts/core/vendor/fastrand-2.5.0)
    Checking downcast-rs v1.2.1
    Checking equivalent v1.0.2
    Checking indexmap-nostd v0.4.0
    Checking multi-stash v0.2.0
    Checking bitflags v2.13.1
    Checking spin v0.9.9
    Checking semver v1.0.28
    Checking arrayvec v0.7.8
    Checking wasmparser-nostd v0.100.2
    Checking arc-swap v1.9.2
   Compiling syn v3.0.4
   Compiling syn v2.0.119
    Checking wasmi_core v0.32.3
    Checking hashbrown v0.17.1
    Checking indexmap v2.14.1
   Compiling num-derive v0.4.2
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
    Checking hashbrown v0.14.5
    Checking dashmap v6.2.1
    Checking string-interner v0.17.0
    Checking yrs v0.23.5
    Checking wasmparser v0.258.0
    Checking wasmi_collections v0.32.3
    Checking wasmi v0.32.3
    Checking slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__custom-fonts/core)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.79s
=== the embedded wasm must be built from these sources
wasm-stamp: internal/slides/core/testdata/slides_core.wasm was built from these inputs
=== wasm: the artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.03s
build-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
 Downloading crates ...
  Downloaded getrandom v0.4.3
   Compiling proc-macro2 v1.0.107
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.47
   Compiling cfg-if v1.0.4
   Compiling serde_core v1.0.229
   Compiling pin-project-lite v0.2.17
   Compiling smallvec v1.15.2
   Compiling getrandom v0.4.3
   Compiling crossbeam-utils v0.8.22
   Compiling rustversion v1.0.23
   Compiling parking_lot_core v0.9.12
   Compiling zmij v1.0.23
   Compiling serde v1.0.229
   Compiling thiserror v2.0.20
   Compiling serde_json v1.0.151
   Compiling scopeguard v1.2.0
   Compiling memchr v2.8.3
   Compiling once_cell v1.21.4
   Compiling itoa v1.0.18
   Compiling event-listener v5.4.2
   Compiling lock_api v0.4.14
   Compiling hashbrown v0.14.5
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/feat__custom-fonts/core/vendor/fastrand-2.5.0)
   Compiling event-listener-strategy v0.5.4
   Compiling smallstr v0.3.1
   Compiling async-lock v3.4.2
   Compiling arc-swap v1.9.2
   Compiling dashmap v6.2.1
   Compiling syn v3.0.4
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
   Compiling yrs v0.23.5
   Compiling slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__custom-fonts/core)
    Finished `release` profile [optimized] target(s) in 10.39s
core/target/wasm32-unknown-unknown/release/slides_core.wasm (799830 bytes)
=== the embedded wasm must match a fresh build
gate: byte comparison skipped on Linux/aarch64: no build on this host reproduces the canonical amd64 bytes; the input stamp above holds freshness here
=== rust: test
   Compiling cfg-if v1.0.4
   Compiling once_cell v1.21.4
   Compiling smallvec v1.15.2
   Compiling parking v2.2.1
   Compiling pin-project-lite v0.2.17
   Compiling serde_core v1.0.229
   Compiling zerocopy v0.8.56
   Compiling libc v0.2.189
   Compiling scopeguard v1.2.0
   Compiling crossbeam-utils v0.8.22
   Compiling zmij v1.0.23
   Compiling itoa v1.0.18
   Compiling foldhash v0.2.0
   Compiling memchr v2.8.3
   Compiling thiserror v2.0.20
   Compiling num-traits v0.2.19
   Compiling arc-swap v1.9.2
   Compiling lock_api v0.4.14
   Compiling libm v0.2.16
   Compiling event-listener v5.4.2
   Compiling indexmap-nostd v0.4.0
   Compiling equivalent v1.0.2
   Compiling smallstr v0.3.1
   Compiling downcast-rs v1.2.1
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/feat__custom-fonts/core/vendor/fastrand-2.5.0)
   Compiling semver v1.0.28
   Compiling arrayvec v0.7.8
   Compiling multi-stash v0.2.0
   Compiling event-listener-strategy v0.5.4
   Compiling wasmparser-nostd v0.100.2
   Compiling bitflags v2.13.1
   Compiling spin v0.9.9
   Compiling async-lock v3.4.2
   Compiling parking_lot_core v0.9.12
   Compiling wasmi_core v0.32.3
   Compiling serde v1.0.229
   Compiling serde_json v1.0.151
   Compiling hashbrown v0.17.1
   Compiling indexmap v2.14.1
   Compiling wasmparser v0.258.0
   Compiling ahash v0.8.12
   Compiling hashbrown v0.14.5
   Compiling string-interner v0.17.0
   Compiling dashmap v6.2.1
   Compiling wasmi_collections v0.32.3
   Compiling yrs v0.23.5
   Compiling wasmi v0.32.3
   Compiling slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__custom-fonts/core)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 11.57s
     Running unittests src/lib.rs (core/target/debug/deps/slides_core-e2842964c29de994)

running 32 tests
test check::tests::the_empty_document_passes ... ok
test layout::tests::aside_region_rect ... ok
test layout::tests::default_region_by_kind ... ok
test layout::tests::heading_region_rect ... ok
test layout::tests::body_region_rect_narrows_for_an_aside ... ok
test layout::tests::media_region_rect ... ok
test markdown::tests::empty_input_is_no_paragraphs_and_lines_keep_blanks ... ok
test markdown::tests::marks_nest_and_links_carry_marks ... ok
test markdown::tests::paragraphs_split_on_blank_lines_and_list_markers ... ok
test markdown::tests::inline_marks ... ok
test layout::tests::to_canvas_narrows_body_when_an_aside_is_present ... ok
test layout::tests::to_flow_is_a_no_op_when_already_in_order ... ok
test layout::tests::to_canvas_splits_a_shared_region_equally_and_sets_z_by_index ... ok
test schema::tests::an_empty_map_reads_as_a_set_mark ... ok
test schema::tests::an_href_map_without_a_string_url_reads_as_no_link ... ok
test layout::tests::to_flow_classifies_by_position_and_kind ... ok
test schema::tests::href_is_written_as_a_one_key_map_and_reads_back ... ok
test check::tests::what_the_ops_write_passes ... ok
test check::tests::an_element_inside_a_paragraph_is_reported ... ok
test check::tests::bare_text_at_fragment_level_is_reported ... ok
test check::tests::a_non_paragraph_child_is_reported ... ok
test check::tests::y_prosemirror_shapes_pass ... ok
test layout::tests::to_flow_orders_y_then_x ... ok
test check::tests::an_unknown_formatting_attribute_is_reported ... ok
test view::tests::malformed_background_is_the_default ... ok
test view::tests::malformed_fonts_are_null ... ok
test view::tests::malformed_box_is_null_and_phone_keeps_only_typed_fields ... ok
test view::tests::assets_are_typed_or_skipped ... ok
test schema::tests::href_written_as_a_plain_string_still_reads_back ... ok
test view::tests::a_malformed_font_files_list_is_absent ... ok
test view::tests::step_items_talk_and_arrive_outside_their_vocabularies_are_absent ... ok
test layout::tests::to_flow_keeps_a_concurrent_text_edit ... ok

test result: ok. 32 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/target/debug/deps/no_host_imports-0da85e8553d154e5)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/ops.rs (core/target/debug/deps/ops-ac5209169f357f96)

running 21 tests
test add_slide_then_view_lists_it ... ok
test ops_are_atomic ... ok
test add_block_with_markdown_produces_runs ... ok
test a_deck_without_the_fields_has_no_such_keys_in_its_view ... ok
test font_files_round_trip_and_clear ... ok
test set_block_refuses_a_step_of_zero_negative_or_non_finite ... ok
test layout_switch_assigns_boxes ... ok
test remove_block_drops_it_from_columns_children ... ok
test set_slide_refuses_an_unknown_talk ... ok
test columns_children_must_name_blocks_on_the_slide ... ok
test set_meta_arrive_round_trips_and_clears ... ok
test columns_children_have_one_parent_and_no_cycles ... ok
test duplicate_slide_remaps_columns_children ... ok
test set_block_step_round_trips_and_clears ... ok
test set_slide_talk_round_trips_and_clears ... ok
test set_block_refuses_items_on_a_non_list ... ok
test move_block_keeps_a_concurrent_text_edit ... ok
test update_roundtrip ... ok
test move_slide_keeps_a_concurrent_text_edit ... ok
test remaining_ops_roundtrip ... ok
test font_files_refusals ... ok

test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

   Doc-tests slides_core

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== rust: fmt (pdf)
=== rust: clippy (pdf)
    Updating crates.io index
 Downloading crates ...
  Downloaded adler2 v2.0.1
  Downloaded smallvec v1.16.0
  Downloaded miniz_oxide v0.9.1
  Downloaded imagesize v0.14.0
  Downloaded quick-error v2.0.1
  Downloaded xmlwriter v0.1.0
  Downloaded data-url v0.3.2
  Downloaded euclid v0.22.14
  Downloaded log v0.4.34
  Downloaded tinyvec v1.13.2
  Downloaded roxmltree v0.20.0
  Downloaded bytemuck v1.25.2
  Downloaded skrifa v0.42.1
  Downloaded core_maths v0.1.1
  Downloaded rgb v0.8.53
  Downloaded fontconfig-parser v0.5.8
  Downloaded polycool v0.4.0
  Downloaded rustc-hash v2.1.3
  Downloaded rustybuzz v0.20.1
  Downloaded slotmap v1.1.1
  Downloaded font-types v0.11.3
  Downloaded krilla v0.8.2
  Downloaded miniz_oxide v0.8.9
  Downloaded pico-args v0.5.0
  Downloaded png v0.18.1
  Downloaded roxmltree v0.21.1
  Downloaded strict-num v0.1.1
  Downloaded flate2 v1.1.10
  Downloaded unicode-ccc v0.4.0
  Downloaded yoke-derive v0.8.2
  Downloaded unicode-script v0.5.8
  Downloaded float-cmp v0.9.0
  Downloaded zerofrom v0.1.8
  Downloaded byteorder-lite v0.1.0
  Downloaded tinyvec_macros v0.1.1
  Downloaded zerofrom-derive v0.1.7
  Downloaded color_quant v1.1.0
  Downloaded krilla-svg v0.8.1
  Downloaded stable_deref_trait v1.2.1
  Downloaded weezl v0.1.12
  Downloaded arrayref v0.3.9
  Downloaded crc32fast v1.5.1
  Downloaded syn v3.0.5
  Downloaded siphasher v1.0.3
  Downloaded unicode-bidi-mirroring v0.4.0
  Downloaded synstructure v0.13.2
  Downloaded unicode-vo v0.1.0
  Downloaded xmp-writer v0.3.3
  Downloaded fdeflate v0.3.7
  Downloaded resvg v0.47.0
  Downloaded simd-adler32 v0.3.10
  Downloaded zune-core v0.5.3
  Downloaded gif v0.14.2
  Downloaded svgtypes v0.16.1
  Downloaded tiny-skia-path v0.12.0
  Downloaded bytemuck_derive v1.12.0
  Downloaded memmap2 v0.9.11
  Downloaded subsetter v0.2.6
  Downloaded simplecss v0.2.2
  Downloaded unicode-bidi v0.3.18
  Downloaded unicode-properties v0.1.4
  Downloaded ryu v1.0.23
  Downloaded yoke v0.8.3
  Downloaded base64 v0.22.1
  Downloaded image-webp v0.2.4
  Downloaded indexmap v2.14.2
  Downloaded zune-jpeg v0.5.15
  Downloaded fontdb v0.23.0
  Downloaded bumpalo v3.20.3
  Downloaded usvg v0.47.0
  Downloaded kurbo v0.13.1
  Downloaded ttf-parser v0.25.1
  Downloaded zlib-rs v0.6.7
  Downloaded tiny-skia v0.12.0
  Downloaded write-fonts v0.48.1
  Downloaded read-fonts v0.39.2
  Downloaded pdf-writer v0.15.0
   Compiling proc-macro2 v1.0.107
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.47
   Compiling autocfg v1.5.1
   Compiling libm v0.2.16
    Checking arrayvec v0.7.8
   Compiling serde_core v1.0.229
    Checking log v0.4.34
    Checking simd-adler32 v0.3.10
   Compiling crc32fast v1.5.1
    Checking smallvec v1.16.0
    Checking adler2 v2.0.1
    Checking bitflags v2.13.1
    Checking cfg-if v1.0.4
   Compiling libc v0.2.189
   Compiling version_check v0.9.5
    Checking foldhash v0.2.0
    Checking memchr v2.8.3
    Checking equivalent v1.0.2
    Checking miniz_oxide v0.9.1
    Checking arrayref v0.3.9
    Checking miniz_oxide v0.8.9
    Checking fdeflate v0.3.7
    Checking roxmltree v0.20.0
    Checking tinyvec_macros v0.1.1
    Checking polycool v0.4.0
    Checking unicode-bidi-mirroring v0.4.0
    Checking siphasher v1.0.3
    Checking unicode-script v0.5.8
    Checking unicode-properties v0.1.4
    Checking kurbo v0.13.1
   Compiling slotmap v1.1.1
    Checking unicode-ccc v0.4.0
    Checking tinyvec v1.13.2
    Checking base64 v0.22.1
    Checking quick-error v2.0.1
    Checking zune-core v0.5.3
    Checking byteorder-lite v0.1.0
   Compiling num-traits v0.2.19
    Checking weezl v0.1.12
    Checking flate2 v1.1.10
    Checking color_quant v1.1.0
    Checking imagesize v0.14.0
    Checking fontconfig-parser v0.5.8
    Checking roxmltree v0.21.1
    Checking simplecss v0.2.2
    Checking zune-jpeg v0.5.15
    Checking image-webp v0.2.4
    Checking gif v0.14.2
    Checking data-url v0.3.2
    Checking stable_deref_trait v1.2.1
    Checking ryu v1.0.23
    Checking png v0.18.1
    Checking unicode-bidi v0.3.18
    Checking rustc-hash v2.1.3
    Checking xmlwriter v0.1.0
    Checking pico-args v0.5.0
    Checking itoa v1.0.18
    Checking unicode-vo v0.1.0
    Checking bumpalo v3.20.3
    Checking xmp-writer v0.3.3
    Checking pdf-writer v0.15.0
   Compiling serde v1.0.229
    Checking semver v1.0.28
   Compiling syn v3.0.5
   Compiling syn v2.0.119
    Checking core_maths v0.1.1
    Checking svgtypes v0.16.1
    Checking ttf-parser v0.25.1
    Checking float-cmp v0.9.0
    Checking memmap2 v0.9.11
    Checking strict-num v0.1.1
    Checking hashbrown v0.17.1
    Checking indexmap v2.14.2
    Checking fontdb v0.23.0
   Compiling bytemuck_derive v1.12.0
   Compiling synstructure v0.13.2
    Checking wasmparser v0.258.0
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
    Checking bytemuck v1.25.2
    Checking font-types v0.11.3
    Checking tiny-skia-path v0.12.0
    Checking rustybuzz v0.20.1
    Checking rgb v0.8.53
    Checking zerofrom v0.1.8
    Checking yoke v0.8.3
    Checking read-fonts v0.39.2
    Checking tiny-skia v0.12.0
    Checking usvg v0.47.0
    Checking resvg v0.47.0
    Checking skrifa v0.42.1
    Checking write-fonts v0.48.1
    Checking subsetter v0.2.6
    Checking krilla v0.8.2
    Checking krilla-svg v0.8.1
    Checking slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__custom-fonts/core/pdf)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.92s
=== the embedded pdf wasm must be built from these sources
wasm-stamp: internal/slides/pdfcore/testdata/slides_pdf.wasm was built from these inputs
=== wasm: the pdf artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s
build-pdf-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
   Compiling proc-macro2 v1.0.107
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.47
   Compiling autocfg v1.5.1
   Compiling simd-adler32 v0.3.10
   Compiling log v0.4.34
   Compiling arrayvec v0.7.8
   Compiling libm v0.2.16
   Compiling crc32fast v1.5.1
   Compiling smallvec v1.16.0
   Compiling adler2 v2.0.1
   Compiling bitflags v2.13.1
   Compiling cfg-if v1.0.4
   Compiling version_check v0.9.5
   Compiling arrayref v0.3.9
   Compiling memchr v2.8.3
   Compiling equivalent v1.0.2
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling miniz_oxide v0.9.1
   Compiling fdeflate v0.3.7
   Compiling miniz_oxide v0.8.9
   Compiling unicode-properties v0.1.4
   Compiling tinyvec_macros v0.1.1
   Compiling unicode-script v0.5.8
   Compiling polycool v0.4.0
   Compiling hashbrown v0.17.1
   Compiling unicode-ccc v0.4.0
   Compiling siphasher v1.0.3
   Compiling tinyvec v1.13.2
   Compiling slotmap v1.1.1
   Compiling byteorder-lite v0.1.0
   Compiling weezl v0.1.12
   Compiling num-traits v0.2.19
   Compiling kurbo v0.13.1
   Compiling color_quant v1.1.0
   Compiling flate2 v1.1.10
   Compiling zune-core v0.5.3
   Compiling imagesize v0.14.0
   Compiling memmap2 v0.9.11
   Compiling quick-error v2.0.1
   Compiling indexmap v2.14.2
   Compiling base64 v0.22.1
   Compiling zune-jpeg v0.5.15
   Compiling image-webp v0.2.4
   Compiling syn v3.0.5
   Compiling syn v2.0.119
   Compiling png v0.18.1
   Compiling gif v0.14.2
   Compiling float-cmp v0.9.0
   Compiling core_maths v0.1.1
   Compiling ttf-parser v0.25.1
   Compiling strict-num v0.1.1
   Compiling roxmltree v0.21.1
   Compiling simplecss v0.2.2
   Compiling svgtypes v0.16.1
   Compiling rustc-hash v2.1.3
   Compiling xmlwriter v0.1.0
   Compiling unicode-bidi v0.3.18
   Compiling stable_deref_trait v1.2.1
   Compiling ryu v1.0.23
   Compiling itoa v1.0.18
   Compiling unicode-vo v0.1.0
   Compiling data-url v0.3.2
   Compiling pico-args v0.5.0
   Compiling pdf-writer v0.15.0
   Compiling xmp-writer v0.3.3
   Compiling bumpalo v3.20.3
   Compiling synstructure v0.13.2
   Compiling bytemuck_derive v1.12.0
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
   Compiling fontdb v0.23.0
   Compiling zerofrom v0.1.8
   Compiling bytemuck v1.25.2
   Compiling yoke v0.8.3
   Compiling font-types v0.11.3
   Compiling tiny-skia-path v0.12.0
   Compiling rustybuzz v0.20.1
   Compiling rgb v0.8.53
   Compiling read-fonts v0.39.2
   Compiling tiny-skia v0.12.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling write-fonts v0.48.1
   Compiling skrifa v0.42.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__custom-fonts/core/pdf)
    Finished `release` profile [optimized] target(s) in 17.19s
core/pdf/target/wasm32-unknown-unknown/release/slides_pdf.wasm (4157674 bytes)
=== the embedded pdf wasm must match a fresh build
gate: byte comparison skipped on Linux/aarch64: no build on this host reproduces the canonical amd64 bytes; the input stamp above holds freshness here
=== rust: test (pdf)
   Compiling log v0.4.34
   Compiling simd-adler32 v0.3.10
   Compiling arrayvec v0.7.8
   Compiling smallvec v1.16.0
   Compiling bitflags v2.13.1
   Compiling adler2 v2.0.1
   Compiling cfg-if v1.0.4
   Compiling foldhash v0.2.0
   Compiling libm v0.2.16
   Compiling serde_core v1.0.229
   Compiling equivalent v1.0.2
   Compiling arrayref v0.3.9
   Compiling memchr v2.8.3
   Compiling num-traits v0.2.19
   Compiling bytemuck v1.25.2
   Compiling libc v0.2.189
   Compiling crc32fast v1.5.1
   Compiling unicode-ccc v0.4.0
   Compiling siphasher v1.0.3
   Compiling unicode-script v0.5.8
   Compiling miniz_oxide v0.9.1
   Compiling miniz_oxide v0.8.9
   Compiling polycool v0.4.0
   Compiling fdeflate v0.3.7
   Compiling roxmltree v0.20.0
   Compiling unicode-properties v0.1.4
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling tinyvec_macros v0.1.1
   Compiling slotmap v1.1.1
   Compiling font-types v0.11.3
   Compiling tinyvec v1.13.2
   Compiling color_quant v1.1.0
   Compiling kurbo v0.13.1
   Compiling byteorder-lite v0.1.0
   Compiling zune-core v0.5.3
   Compiling read-fonts v0.39.2
   Compiling float-cmp v0.9.0
   Compiling flate2 v1.1.10
   Compiling fontconfig-parser v0.5.8
   Compiling base64 v0.22.1
   Compiling quick-error v2.0.1
   Compiling strict-num v0.1.1
   Compiling imagesize v0.14.0
   Compiling weezl v0.1.12
   Compiling zune-jpeg v0.5.15
   Compiling image-webp v0.2.4
   Compiling tiny-skia-path v0.12.0
   Compiling core_maths v0.1.1
   Compiling png v0.18.1
   Compiling memmap2 v0.9.11
   Compiling ttf-parser v0.25.1
   Compiling gif v0.14.2
   Compiling roxmltree v0.21.1
   Compiling zerofrom v0.1.8
   Compiling simplecss v0.2.2
   Compiling rustc-hash v2.1.3
   Compiling unicode-bidi v0.3.18
   Compiling svgtypes v0.16.1
   Compiling stable_deref_trait v1.2.1
   Compiling itoa v1.0.18
   Compiling data-url v0.3.2
   Compiling ryu v1.0.23
   Compiling unicode-vo v0.1.0
   Compiling pico-args v0.5.0
   Compiling xmlwriter v0.1.0
   Compiling pdf-writer v0.15.0
   Compiling yoke v0.8.3
   Compiling rgb v0.8.53
   Compiling tiny-skia v0.12.0
   Compiling bumpalo v3.20.3
   Compiling xmp-writer v0.3.3
   Compiling semver v1.0.28
   Compiling hashbrown v0.17.1
   Compiling serde v1.0.229
   Compiling indexmap v2.14.2
   Compiling rustybuzz v0.20.1
   Compiling fontdb v0.23.0
   Compiling wasmparser v0.258.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling skrifa v0.42.1
   Compiling write-fonts v0.48.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/feat__custom-fonts/core/pdf)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 18.71s
     Running unittests src/lib.rs (core/pdf/target/debug/deps/slides_pdf-7ec7cd25f86a82d7)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/pdf/target/debug/deps/no_host_imports-09d1f8ca96bf3a46)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/render.rs (core/pdf/target/debug/deps/render-888658dffec5d3c9)

running 6 tests
test a_null_zero_length_pair_is_no_frames_not_a_dereference ... ok
test text_with_no_fonts_at_all_still_renders_the_shapes ... ok
test raster_image_is_embedded ... ok
test abi_frames_round_trip ... ok
test renders_text_as_embedded_glyphs ... ok
test two_svgs_make_two_pages ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

   Doc-tests slides_pdf

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== fixtures: node dependencies
v22.23.4
10.9.9
=== fixtures: npm ci (needs the registry — see .amadan/README.md)

added 19 packages, and audited 20 packages in 2s

5 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 10.9.9 -> 12.2.3
npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3
npm notice To update run: npm install -g npm@12.2.3
npm notice
=== fixtures: the JS side's own tests
TAP version 13
# Subtest: one finished upload is register_asset plus the block that uses it, in one batch
ok 1 - one finished upload is register_asset plus the block that uses it, in one batch
  ---
  duration_ms: 9.15773
  type: 'test'
  ...
# Subtest: a record missing its numbers still makes an op the core accepts
ok 2 - a record missing its numbers still makes an op the core accepts
  ---
  duration_ms: 1.298918
  type: 'test'
  ...
# Subtest: unusedAssets is what no slide refers to, and remove_asset drops one
ok 3 - unusedAssets is what no slide refers to, and remove_asset drops one
  ---
  duration_ms: 4.800802
  type: 'test'
  ...
# Subtest: the Unused images list reconciles by id and names each Remove button
ok 4 - the Unused images list reconciles by id and names each Remove button
  ---
  duration_ms: 1.829572
  type: 'test'
  ...
# Subtest: an upload refusal is said in words the person can act on
ok 5 - an upload refusal is said in words the person can act on
  ---
  duration_ms: 0.233761
  type: 'test'
  ...
# Subtest: a request is the trimmed prompt, the scope, the slide and the model
ok 6 - a request is the trimmed prompt, the scope, the slide and the model
  ---
  duration_ms: 1.861814
  type: 'test'
  ...
# Subtest: an empty, blank or over-long prompt, or "this slide" with none, is never sent
ok 7 - an empty, blank or over-long prompt, or "this slide" with none, is never sent
  ---
  duration_ms: 0.609682
  type: 'test'
  ...
# Subtest: server words map onto the panel's strings, and anything else is generic
ok 8 - server words map onto the panel's strings, and anything else is generic
  ---
  duration_ms: 0.248977
  type: 'test'
  ...
# Subtest: an answer must be a list of op objects; anything else is generic
ok 9 - an answer must be a list of op objects; anything else is generic
  ---
  duration_ms: 0.86222
  type: 'test'
  ...
# Subtest: an answer is posted as JSON, applied through commit, saved, and focused
ok 10 - an answer is posted as JSON, applied through commit, saved, and focused
  ---
  duration_ms: 0.843653
  type: 'test'
  ...
# Subtest: a slide is focused only once its save is acknowledged
ok 11 - a slide is focused only once its save is acknowledged
  ---
  duration_ms: 0.252086
  type: 'test'
  ...
# Subtest: no ops is "nothing", and nothing is committed
ok 12 - no ops is "nothing", and nothing is committed
  ---
  duration_ms: 0.376879
  type: 'test'
  ...
# Subtest: every failure is a word, and nothing is applied
ok 13 - every failure is a word, and nothing is applied
  ---
  duration_ms: 1.157995
  type: 'test'
  ...
# Subtest: undo takes back the answer's own step, once
ok 14 - undo takes back the answer's own step, once
  ---
  duration_ms: 0.835718
  type: 'test'
  ...
# Subtest: a batch shaped as the server answers it applies through ops.mjs
ok 15 - a batch shaped as the server answers it applies through ops.mjs
  ---
  duration_ms: 11.94009
  type: 'test'
  ...
# Subtest: the toggle is lit while the panel is open, and opening focuses the prompt
ok 16 - the toggle is lit while the panel is open, and opening focuses the prompt
  ---
  duration_ms: 2.463535
  type: 'test'
  ...
# Subtest: a deck with no slide opens on "the whole deck"
ok 17 - a deck with no slide opens on "the whole deck"
  ---
  duration_ms: 0.507774
  type: 'test'
  ...
# Subtest: asking is busy, then says what was done and offers Undo
ok 18 - asking is busy, then says what was done and offers Undo
  ---
  duration_ms: 1.080548
  type: 'test'
  ...
# Subtest: an error is said in the catalog's words, marked, and offers no Undo
ok 19 - an error is said in the catalog's words, marked, and offers no Undo
  ---
  duration_ms: 0.846721
  type: 'test'
  ...
# Subtest: destroy takes every listener away
ok 20 - destroy takes every listener away
  ---
  duration_ms: 0.499031
  type: 'test'
  ...
# Subtest: rowsFor: a canvas box is arranged in layers and placed; a flow box by region
ok 21 - rowsFor: a canvas box is arranged in layers and placed; a flow box by region
  ---
  duration_ms: 1.933016
  type: 'test'
  ...
# Subtest: canOwnContextMenu: never in text being edited, anywhere else on a box
ok 22 - canOwnContextMenu: never in text being edited, anywhere else on a box
  ---
  duration_ms: 0.963444
  type: 'test'
  ...
# Subtest: boxKey: the box's keys, and Delete and the arrows only from the box itself
ok 23 - boxKey: the box's keys, and Delete and the arrows only from the box itself
  ---
  duration_ms: 0.337966
  type: 'test'
  ...
# Subtest: open draws only the rows that apply, and focuses the first
ok 24 - open draws only the rows that apply, and focuses the first
  ---
  duration_ms: 3.249447
  type: 'test'
  ...
# Subtest: a row runs its command and closes; a region row sets the region
ok 25 - a row runs its command and closes; a region row sets the region
  ---
  duration_ms: 1.394843
  type: 'test'
  ...
# Subtest: the arrows move through the rows drawn; Esc closes and focuses the box, and goes no further
ok 26 - the arrows move through the rows drawn; Esc closes and focuses the box, and goes no further
  ---
  duration_ms: 1.603279
  type: 'test'
  ...
# Subtest: place: the round button follows the selection, and an empty selection closes the menu
ok 27 - place: the round button follows the selection, and an empty selection closes the menu
  ---
  duration_ms: 1.48921
  type: 'test'
  ...
# Subtest: a right-click on a box opens the menu; in text being edited it is the browser's
ok 28 - a right-click on a box opens the menu; in text being edited it is the browser's
  ---
  duration_ms: 0.793636
  type: 'test'
  ...
# Subtest: the keys: from the box, from its text, and never from outside the stage
ok 29 - the keys: from the box, from its text, and never from outside the stage
  ---
  duration_ms: 1.258858
  type: 'test'
  ...
# Subtest: sync: the menu closes when the slide's layout changes, and its region checks follow the box
ok 30 - sync: the menu closes when the slide's layout changes, and its region checks follow the box
  ---
  duration_ms: 3.352692
  type: 'test'
  ...
# Subtest: a row that no longer applies to the box does nothing, and closes the menu
ok 31 - a row that no longer applies to the box does nothing, and closes the menu
  ---
  duration_ms: 0.785148
  type: 'test'
  ...
# Subtest: destroy takes every listener off the page's elements
ok 32 - destroy takes every listener off the page's elements
  ---
  duration_ms: 0.396436
  type: 'test'
  ...
# Subtest: place: a stage with no room docks the round button beside the view switch
ok 33 - place: a stage with no room docks the round button beside the view switch
  ---
  duration_ms: 0.957724
  type: 'test'
  ...
# Subtest: place: the round button follows the phone screen's scroll, and goes while its box is out of sight
ok 34 - place: the round button follows the phone screen's scroll, and goes while its box is out of sight
  ---
  duration_ms: 0.656875
  type: 'test'
  ...
# Subtest: buttonSpot: at the top end corner, inside the stage, clear of every handle
ok 35 - buttonSpot: at the top end corner, inside the stage, clear of every handle
  ---
  duration_ms: 1.727963
  type: 'test'
  ...
# Subtest: menuSpot: under its anchor, flipped and kept inside the window
ok 36 - menuSpot: under its anchor, flipped and kept inside the window
  ---
  duration_ms: 1.062086
  type: 'test'
  ...
# Subtest: buttonSpot: any box, a tiny one in a corner included, gets a spot that covers no handle
ok 37 - buttonSpot: any box, a tiny one in a corner included, gets a spot that covers no handle
  ---
  duration_ms: 81.097889
  type: 'test'
  ...
# Subtest: buttonSpot: the reviewer's box filling a small stage, and boxes filling stages
ok 38 - buttonSpot: the reviewer's box filling a small stage, and boxes filling stages
  ---
  duration_ms: 1.896807
  type: 'test'
  ...
# Subtest: buttonSpot: thousands of boxes, every answer fits, null only when nothing does
ok 39 - buttonSpot: thousands of boxes, every answer fits, null only when nothing does
  ---
  duration_ms: 32.017278
  type: 'test'
  ...
# Subtest: clip: what can be seen of a rect through a frame; the rect itself where the frame has no box
ok 40 - clip: what can be seen of a rect through a frame; the rect itself where the frame has no box
  ---
  duration_ms: 0.277016
  type: 'test'
  ...
# Subtest: buttonSpot: clear of the other boxes where it can be, over one only where nothing else fits
ok 41 - buttonSpot: clear of the other boxes where it can be, over one only where nothing else fits
  ---
  duration_ms: 0.6156
  type: 'test'
  ...
# Subtest: clampBox keeps the box inside the frame and no smaller than the minimum
ok 42 - clampBox keeps the box inside the frame and no smaller than the minimum
  ---
  duration_ms: 2.989802
  type: 'test'
  ...
# Subtest: fixBox writes four decimals
ok 43 - fixBox writes four decimals
  ---
  duration_ms: 0.321906
  type: 'test'
  ...
# Subtest: guides are the thirds plus every other block edge
ok 44 - guides are the thirds plus every other block edge
  ---
  duration_ms: 0.286953
  type: 'test'
  ...
# Subtest: snapMove pulls the nearest edge onto a guide within one per cent, and leaves a far one
ok 45 - snapMove pulls the nearest edge onto a guide within one per cent, and leaves a far one
  ---
  duration_ms: 0.398023
  type: 'test'
  ...
# Subtest: snapResize moves only the edges the handle drags
ok 46 - snapResize moves only the edges the handle drags
  ---
  duration_ms: 0.293857
  type: 'test'
  ...
# Subtest: moveBox and resizeBox by handle
ok 47 - moveBox and resizeBox by handle
  ---
  duration_ms: 0.276354
  type: 'test'
  ...
# Subtest: nudge: arrows move by half a per cent, Shift by two, Alt resizes
ok 48 - nudge: arrows move by half a per cent, Shift by two, Alt resizes
  ---
  duration_ms: 0.364087
  type: 'test'
  ...
# Subtest: rectBox reads a block rectangle against its frame
ok 49 - rectBox reads a block rectangle against its frame
  ---
  duration_ms: 0.326921
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
ok 50 - a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
  ---
  duration_ms: 21.164075
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
ok 51 - a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
  ---
  duration_ms: 4.425342
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (g) the refused x after the paste point
ok 52 - a paste that waited for its font is kept: (g) the refused x after the paste point
  ---
  duration_ms: 5.543619
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (c) two refused x, the paste after the second
ok 53 - a paste that waited for its font is kept: (c) two refused x, the paste after the second
  ---
  duration_ms: 2.98162
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
ok 54 - a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
  ---
  duration_ms: 2.791931
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (e) the paste over "paragraph.x"
ok 55 - a paste that waited for its font is kept: (e) the paste over "paragraph.x"
  ---
  duration_ms: 4.824257
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (f) a refused deletion elsewhere
ok 56 - a paste that waited for its font is kept: (f) a refused deletion elsewhere
  ---
  duration_ms: 2.57805
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
ok 57 - a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
  ---
  duration_ms: 2.88146
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
ok 58 - a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
  ---
  duration_ms: 6.581104
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (k) a colleague appended where the x was refused
ok 59 - a paste that waited for its font is kept: (k) a colleague appended where the x was refused
  ---
  duration_ms: 5.93043
  type: 'test'
  ...
# Subtest: a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
ok 60 - a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
  ---
  duration_ms: 1.844816
  type: 'test'
  ...
# Subtest: a paste made elsewhere carries as its own updates, not a replay
ok 61 - a paste made elsewhere carries as its own updates, not a replay
  ---
  duration_ms: 1.61474
  type: 'test'
  ...
# Subtest: the replay is one change for an undo manager tracking the carried origin
ok 62 - the replay is one change for an undo manager tracking the carried origin
  ---
  duration_ms: 2.913517
  type: 'test'
  ...
# Subtest: every update written on top of the refused text is held back, not only the first
ok 63 - every update written on top of the refused text is held back, not only the first
  ---
  duration_ms: 1.552248
  type: 'test'
  ...
# Subtest: a Backspace over the refused text is held back
ok 64 - a Backspace over the refused text is held back
  ---
  duration_ms: 0.944759
  type: 'test'
  ...
# Subtest: of an update that partly took, the part that took is posted, and nothing the server would hold pending
ok 65 - of an update that partly took, the part that took is posted, and nothing the server would hold pending
  ---
  duration_ms: 1.641923
  type: 'test'
  ...
# Subtest: an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
ok 66 - an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
  ---
  duration_ms: 1.511576
  type: 'test'
  ...
# Subtest: a paste elsewhere is posted and a keystroke after the refused x is not
ok 67 - a paste elsewhere is posted and a keystroke after the refused x is not
  ---
  duration_ms: 1.094193
  type: 'test'
  ...
# Subtest: took reads all, some and none from the update itself
ok 68 - took reads all, some and none from the update itself
  ---
  duration_ms: 0.993057
  type: 'test'
  ...
# Subtest: a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
ok 69 - a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
  ---
  duration_ms: 3.612961
  type: 'test'
  ...
# Subtest: a paste right after a refused repeated letter lands where it was made
ok 70 - a paste right after a refused repeated letter lands where it was made
  ---
  duration_ms: 2.272058
  type: 'test'
  ...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
ok 71 - a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
  ---
  duration_ms: 5.159032
  type: 'test'
  ...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
ok 72 - a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
  ---
  duration_ms: 1.0677
  type: 'test'
  ...
# Subtest: the keeper groups the updates of one held change into one entry, and hands the entries over once
ok 73 - the keeper groups the updates of one held change into one entry, and hands the entries over once
  ---
  duration_ms: 0.527437
  type: 'test'
  ...
# Subtest: every change made while diverged is kept, whatever it was written on
ok 74 - every change made while diverged is kept, whatever it was written on
  ---
  duration_ms: 7.616193
  type: 'test'
  ...
# Subtest: a change that cannot be kept in the middle loses nothing after it
ok 75 - a change that cannot be kept in the middle loses nothing after it
  ---
  duration_ms: 4.521831
  type: 'test'
  ...
# Subtest: a replay that cannot be made falls back to what of the change's own updates integrates
ok 76 - a replay that cannot be made falls back to what of the change's own updates integrates
  ---
  duration_ms: 1.349362
  type: 'test'
  ...
# Subtest: the carried changes undo in the steps they were made in
ok 77 - the carried changes undo in the steps they were made in
  ---
  duration_ms: 3.583409
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
ok 78 - a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
  ---
  duration_ms: 0.772747
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
ok 79 - a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
  ---
  duration_ms: 0.721601
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: a delete, then an insert past the refused text
ok 80 - a multi-step change replays each step where it was made: a delete, then an insert past the refused text
  ---
  duration_ms: 0.285097
  type: 'test'
  ...
# Subtest: a mark made over an insertion in the same change covers all of it
ok 81 - a mark made over an insertion in the same change covers all of it
  ---
  duration_ms: 0.323541
  type: 'test'
  ...
# Subtest: a multi-step change on the refused text is replayed where it was made, on the page and the server
ok 82 - a multi-step change on the refused text is replayed where it was made, on the page and the server
  ---
  duration_ms: 1.910801
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
ok 83 - an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
  ---
  duration_ms: 4.25277
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
ok 84 - an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
  ---
  duration_ms: 6.116515
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
ok 85 - an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
  ---
  duration_ms: 3.473222
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
ok 86 - an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
  ---
  duration_ms: 3.581951
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
ok 87 - an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
  ---
  duration_ms: 6.881742
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
ok 88 - an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
  ---
  duration_ms: 2.349668
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
ok 89 - an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
  ---
  duration_ms: 5.390572
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
ok 90 - an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
  ---
  duration_ms: 6.97868
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
ok 91 - an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
  ---
  duration_ms: 3.17008
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
ok 92 - an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
  ---
  duration_ms: 3.196376
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
ok 93 - an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
  ---
  duration_ms: 4.433038
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
ok 94 - an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
  ---
  duration_ms: 6.069333
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
ok 95 - an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
  ---
  duration_ms: 3.784007
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
ok 96 - an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
  ---
  duration_ms: 2.180009
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
ok 97 - an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
  ---
  duration_ms: 2.550873
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
ok 98 - an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
  ---
  duration_ms: 2.32351
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
ok 99 - an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
  ---
  duration_ms: 4.456052
  type: 'test'
  ...
# Subtest: an undo of a change saved before the refusal is still carried
ok 100 - an undo of a change saved before the refusal is still carried
  ---
  duration_ms: 1.975142
  type: 'test'
  ...
# Subtest: derivedStep turns one document into the other, and is null for the same one
ok 101 - derivedStep turns one document into the other, and is null for the same one
  ---
  duration_ms: 0.209175
  type: 'test'
  ...
# Subtest: carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
ok 102 - carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
  ---
  duration_ms: 2160.782193
  type: 'test'
  ...
# Subtest: carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
ok 103 - carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
  ---
  duration_ms: 3961.49076
  type: 'test'
  ...
# Subtest: a client id never collides with one the document already holds
ok 104 - a client id never collides with one the document already holds
  ---
  duration_ms: 0.44261
  type: 'test'
  ...
# Subtest: ProseMirror changes inside one window share an id; one held back there does not strand the next
ok 105 - ProseMirror changes inside one window share an id; one held back there does not strand the next
  ---
  duration_ms: 2.037087
  type: 'test'
  ...
# Subtest: typing into a block is a text change on its slide only
ok 106 - typing into a block is a text change on its slide only
  ---
  duration_ms: 8.649769
  type: 'test'
  ...
# Subtest: a block's props changing is structure on its slide
ok 107 - a block's props changing is structure on its slide
  ---
  duration_ms: 1.723386
  type: 'test'
  ...
# Subtest: adding, moving or removing a block is structure on its slide
ok 108 - adding, moving or removing a block is structure on its slide
  ---
  duration_ms: 2.682445
  type: 'test'
  ...
# Subtest: the notes are text on their slide
ok 109 - the notes are text on their slide
  ---
  duration_ms: 1.596107
  type: 'test'
  ...
# Subtest: a slide added, removed or moved is an order change
ok 110 - a slide added, removed or moved is an order change
  ---
  duration_ms: 2.588253
  type: 'test'
  ...
# Subtest: one transaction touching several things reports each once
ok 111 - one transaction touching several things reports each once
  ---
  duration_ms: 2.917253
  type: 'test'
  ...
# Subtest: what the ops write passes, and so does an empty document
ok 112 - what the ops write passes, and so does an empty document
  ---
  duration_ms: 11.27477
  type: 'test'
  ...
# Subtest: the shapes y-prosemirror and older documents write pass
ok 113 - the shapes y-prosemirror and older documents write pass
  ---
  duration_ms: 1.787982
  type: 'test'
  ...
# Subtest: an unknown formatting attribute is reported with the core's message
ok 114 - an unknown formatting attribute is reported with the core's message
  ---
  duration_ms: 2.98915
  type: 'test'
  ...
# Subtest: an element inside a paragraph, a non-paragraph child and bare text are reported
ok 115 - an element inside a paragraph, a non-paragraph child and bare text are reported
  ---
  duration_ms: 5.102199
  type: 'test'
  ...
# Subtest: the unknownmark poison shape is what the check refuses
ok 116 - the unknownmark poison shape is what the check refuses
  ---
  duration_ms: 3.859769
  type: 'test'
  ...
# Subtest: y-prosemirror 1.3.7 deletes the words under an unknown mark; sanitising first keeps them
ok 117 - y-prosemirror 1.3.7 deletes the words under an unknown mark; sanitising first keeps them
  ---
  duration_ms: 6.434993
  type: 'test'
  ...
# Subtest: the vocabulary is the five marks and nothing else
ok 118 - the vocabulary is the five marks and nothing else
  ---
  duration_ms: 0.243324
  type: 'test'
  ...
# Subtest: a reload reuses the id this tab stored for the deck
ok 119 - a reload reuses the id this tab stored for the deck
  ---
  duration_ms: 1.878162
  type: 'test'
  ...
# Subtest: two tabs, and two decks in one tab, get different ids
ok 120 - two tabs, and two decks in one tab, get different ids
  ---
  duration_ms: 1.302987
  type: 'test'
  ...
# Subtest: a stored value that is not an id, or storage that throws, gives a fresh id
ok 121 - a stored value that is not an id, or storage that throws, gives a fresh id
  ---
  duration_ms: 0.513969
  type: 'test'
  ...
# Subtest: a duplicated tab gives up the copied id; the original keeps it
ok 122 - a duplicated tab gives up the copied id; the original keeps it
  ---
  duration_ms: 6.289855
  type: 'test'
  ...
# Subtest: a reload finds no rival and keeps its id
ok 123 - a reload finds no rival and keeps its id
  ---
  duration_ms: 2.588411
  type: 'test'
  ...
# Subtest: presence switches id: beats carry the new one and the old one is somebody else
ok 124 - presence switches id: beats carry the new one and the old one is somebody else
  ---
  duration_ms: 1.146724
  type: 'test'
  ...
# Subtest: setTitle commits the deck's title, one set_meta
ok 125 - setTitle commits the deck's title, one set_meta
  ---
  duration_ms: 1.660606
  type: 'test'
  ...
# Subtest: accent-reset commits the theme's accent back, once
ok 126 - accent-reset commits the theme's accent back, once
  ---
  duration_ms: 0.228282
  type: 'test'
  ...
# Subtest: addBlock commits the kind after the selected box, then selects it; refused, selects nothing
ok 127 - addBlock commits the kind after the selected box, then selects it; refused, selects nothing
  ---
  duration_ms: 1.346883
  type: 'test'
  ...
# Subtest: addBlock with no slide on the stage commits nothing
ok 128 - addBlock with no slide on the stage commits nothing
  ---
  duration_ms: 0.373102
  type: 'test'
  ...
# Subtest: the box menu's rows into the card: Format and Position and size, for a selected box only
ok 129 - the box menu's rows into the card: Format and Position and size, for a selected box only
  ---
  duration_ms: 0.305318
  type: 'test'
  ...
# Subtest: a stack leads with its first family, unquoted
ok 130 - a stack leads with its first family, unquoted
  ---
  duration_ms: 1.308608
  type: 'test'
  ...
# Subtest: a field shows the uploaded family its stack leads with, else the stack
ok 131 - a field shows the uploaded family its stack leads with, else the stack
  ---
  duration_ms: 0.211669
  type: 'test'
  ...
# Subtest: the theme's stack for a role, an unknown theme's being the default's
ok 132 - the theme's stack for a role, an unknown theme's being the default's
  ---
  duration_ms: 0.192021
  type: 'test'
  ...
# Subtest: a pick sets the role in front of the theme stack and lists the family, one op
ok 133 - a pick sets the role in front of the theme stack and lists the family, one op
  ---
  duration_ms: 1.119428
  type: 'test'
  ...
# Subtest: two people's Brands: picking one for the body keeps the other in the heading
ok 134 - two people's Brands: picking one for the body keeps the other in the heading
  ---
  duration_ms: 0.382838
  type: 'test'
  ...
# Subtest: another choice drops a family no role leads with any more, in the same op
ok 135 - another choice drops a family no role leads with any more, in the same op
  ---
  duration_ms: 0.318936
  type: 'test'
  ...
# Subtest: a pick answered after a newer choice for its field commits nothing
ok 136 - a pick answered after a newer choice for its field commits nothing
  ---
  duration_ms: 0.648928
  type: 'test'
  ...
# Subtest: two picks answered out of order: the newer one is the one written
ok 137 - two picks answered out of order: the newer one is the one written
  ---
  duration_ms: 0.259068
  type: 'test'
  ...
# Subtest: a change to one field does not cancel the other field's pick
ok 138 - a change to one field does not cancel the other field's pick
  ---
  duration_ms: 0.679703
  type: 'test'
  ...
# Subtest: the ops are ones the document takes
ok 139 - the ops are ones the document takes
  ---
  duration_ms: 6.007067
  type: 'test'
  ...
# Subtest: a change that loads runs once and releases the queue in order
ok 140 - a change that loads runs once and releases the queue in order
  ---
  duration_ms: 6.053592
  type: 'test'
  ...
# Subtest: a refusal releases the queue in order and refills the inspector
ok 141 - a refusal releases the queue in order and refills the inspector
  ---
  duration_ms: 1.125609
  type: 'test'
  ...
# Subtest: a refusal whose notice throws still releases the queue
ok 142 - a refusal whose notice throws still releases the queue
  ---
  duration_ms: 1.175757
  type: 'test'
  ...
# Subtest: a change that throws still releases the queue, and is refused
ok 143 - a change that throws still releases the queue, and is refused
  ---
  duration_ms: 0.857405
  type: 'test'
  ...
# Subtest: a change that can no longer be made once its font is in is said as interrupted, not as a font that failed
ok 144 - a change that can no longer be made once its font is in is said as interrupted, not as a font that failed
  ---
  duration_ms: 0.972102
  type: 'test'
  ...
# Subtest: a second change during a wait is refused at once and never queued
ok 145 - a second change during a wait is refused at once and never queued
  ---
  duration_ms: 0.63238
  type: 'test'
  ...
# Subtest: free() with no wait on resolves at once
ok 146 - free() with no wait on resolves at once
  ---
  duration_ms: 2.632055
  type: 'test'
  ...
# Subtest: a wait makes the Deck settings dialog inert with the card
ok 147 - a wait makes the Deck settings dialog inert with the card
  ---
  duration_ms: 1.27514
  type: 'test'
  ...
# Subtest: the shared vectors have cases to check
ok 148 - the shared vectors have cases to check
  ---
  duration_ms: 1.267797
  type: 'test'
  ...
# Subtest: familiesOfView: an empty deck draws in nothing
ok 149 - familiesOfView: an empty deck draws in nothing
  ---
  duration_ms: 0.929583
  type: 'test'
  ...
# Subtest: familiesOfView: paper: serif headings, sans body
ok 150 - familiesOfView: paper: serif headings, sans body
  ---
  duration_ms: 0.624672
  type: 'test'
  ...
# Subtest: familiesOfView: ink: sans for both
ok 151 - familiesOfView: ink: sans for both
  ---
  duration_ms: 0.177097
  type: 'test'
  ...
# Subtest: familiesOfView: an unknown theme is paper
ok 152 - familiesOfView: an unknown theme is paper
  ---
  duration_ms: 0.170026
  type: 'test'
  ...
# Subtest: familiesOfView: a code block brings in mono
ok 153 - familiesOfView: a code block brings in mono
  ---
  duration_ms: 0.143828
  type: 'test'
  ...
# Subtest: familiesOfView: an empty code block still does
ok 154 - familiesOfView: an empty code block still does
  ---
  duration_ms: 0.272613
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a text block
ok 155 - familiesOfView: a code mark in a text block
  ---
  duration_ms: 1.761706
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a heading
ok 156 - familiesOfView: a code mark in a heading
  ---
  duration_ms: 0.528946
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a table cell
ok 157 - familiesOfView: a code mark in a table cell
  ---
  duration_ms: 0.723604
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in the notes is the chrome's
ok 158 - familiesOfView: a code mark in the notes is the chrome's
  ---
  duration_ms: 0.274293
  type: 'test'
  ...
# Subtest: familiesOfView: bold, italic, highlight and links stay in the family
ok 159 - familiesOfView: bold, italic, highlight and links stay in the family
  ---
  duration_ms: 0.112977
  type: 'test'
  ...
# Subtest: familiesOfView: the inspector's system heading drops serif
ok 160 - familiesOfView: the inspector's system heading drops serif
  ---
  duration_ms: 0.223618
  type: 'test'
  ...
# Subtest: familiesOfView: system faces for both draw in no web face
ok 161 - familiesOfView: system faces for both draw in no web face
  ---
  duration_ms: 0.083067
  type: 'test'
  ...
# Subtest: familiesOfView: a body override naming mono
ok 162 - familiesOfView: a body override naming mono
  ---
  duration_ms: 0.072909
  type: 'test'
  ...
# Subtest: familiesOfView: a family anywhere in a stack counts
ok 163 - familiesOfView: a family anywhere in a stack counts
  ---
  duration_ms: 0.063178
  type: 'test'
  ...
# Subtest: familiesOfView: an override that fails the allowlist is the theme's
ok 164 - familiesOfView: an override that fails the allowlist is the theme's
  ---
  duration_ms: 0.272942
  type: 'test'
  ...
# Subtest: familiesOfView: a too-long override is the theme's
ok 165 - familiesOfView: a too-long override is the theme's
  ---
  duration_ms: 0.086439
  type: 'test'
  ...
# Subtest: familiesOfView: padded overrides are trimmed
ok 166 - familiesOfView: padded overrides are trimmed
  ---
  duration_ms: 0.068964
  type: 'test'
  ...
# Subtest: familiesOfView: a family named only on a later slide's code
ok 167 - familiesOfView: a family named only on a later slide's code
  ---
  duration_ms: 0.072619
  type: 'test'
  ...
# Subtest: familiesOfView: an uploaded family in the heading only
ok 168 - familiesOfView: an uploaded family in the heading only
  ---
  duration_ms: 0.115604
  type: 'test'
  ...
# Subtest: familiesOfView: an uploaded family in the body only
ok 169 - familiesOfView: an uploaded family in the body only
  ---
  duration_ms: 0.075786
  type: 'test'
  ...
# Subtest: familiesOfView: an uploaded family listed but unused is not needed
ok 170 - familiesOfView: an uploaded family listed but unused is not needed
  ---
  duration_ms: 0.062844
  type: 'test'
  ...
# Subtest: familiesOfView: an odd but clean name
ok 171 - familiesOfView: an odd but clean name
  ---
  duration_ms: 0.061177
  type: 'test'
  ...
# Subtest: familiesOfView: a stack naming an uploaded family the deck does not list falls back
ok 172 - familiesOfView: a stack naming an uploaded family the deck does not list falls back
  ---
  duration_ms: 0.079259
  type: 'test'
  ...
# Subtest: familiesOfView: an uploaded family only later in a stack is not needed
ok 173 - familiesOfView: an uploaded family only later in a stack is not needed
  ---
  duration_ms: 0.070963
  type: 'test'
  ...
# Subtest: familiesOfView: two uploaded families come in fontFiles order
ok 174 - familiesOfView: two uploaded families come in fontFiles order
  ---
  duration_ms: 0.06584
  type: 'test'
  ...
# Subtest: familiesOfView: one uploaded family in both roles is needed once
ok 175 - familiesOfView: one uploaded family in both roles is needed once
  ---
  duration_ms: 0.06406
  type: 'test'
  ...
# Subtest: familiesOfView: an empty deck needs no uploaded family
ok 176 - familiesOfView: an empty deck needs no uploaded family
  ---
  duration_ms: 0.059162
  type: 'test'
  ...
# Subtest: a stack names a family wherever it appears, in any case, quoted or not
ok 177 - a stack names a family wherever it appears, in any case, quoted or not
  ---
  duration_ms: 0.136429
  type: 'test'
  ...
# Subtest: safeFontStack is render.go's allowlist
ok 178 - safeFontStack is render.go's allowlist
  ---
  duration_ms: 0.127243
  type: 'test'
  ...
# Subtest: a section names its heading and body families
ok 179 - a section names its heading and body families
  ---
  duration_ms: 0.36157
  type: 'test'
  ...
# Subtest: a section with code in it brings in the code family
ok 180 - a section with code in it brings in the code family
  ---
  duration_ms: 0.275674
  type: 'test'
  ...
# Subtest: only the two font properties are read off a section
ok 181 - only the two font properties are read off a section
  ---
  duration_ms: 0.13088
  type: 'test'
  ...
# Subtest: nothing joins the page until all four faces of a family are in, and then all four do
ok 182 - nothing joins the page until all four faces of a family are in, and then all four do
  ---
  duration_ms: 7.908861
  type: 'test'
  ...
# Subtest: every face is a block face of the manifest's family, weight and style
ok 183 - every face is a block face of the manifest's family, weight and style
  ---
  duration_ms: 3.133898
  type: 'test'
  ...
# Subtest: a family that misses the deadline is committed and never joins, even when it arrives
ok 184 - a family that misses the deadline is committed and never joins, even when it arrives
  ---
  duration_ms: 1.654139
  type: 'test'
  ...
# Subtest: a family whose file fails is committed by the gate: wrong but stable
ok 185 - a family whose file fails is committed by the gate: wrong but stable
  ---
  duration_ms: 0.91626
  type: 'test'
  ...
# Subtest: a person's action waits for its family and then may run, once it is in
ok 186 - a person's action waits for its family and then may run, once it is in
  ---
  duration_ms: 0.707892
  type: 'test'
  ...
# Subtest: a person's action is refused when its family fails or is late, and nothing is committed
ok 187 - a person's action is refused when its family fails or is late, and nothing is committed
  ---
  duration_ms: 5.940182
  type: 'test'
  ...
# Subtest: content from elsewhere waits for a new family, then is committed past the timeout, never held
ok 188 - content from elsewhere waits for a new family, then is committed past the timeout, never held
  ---
  duration_ms: 1.166699
  type: 'test'
  ...
# Subtest: a family on screen in its web face is never committed
ok 189 - a family on screen in its web face is never committed
  ---
  duration_ms: 5.619005
  type: 'test'
  ...
# Subtest: a composition commits a family that is not in, rather than waiting
ok 190 - a composition commits a family that is not in, rather than waiting
  ---
  duration_ms: 0.79112
  type: 'test'
  ...
# Subtest: prefetch loads the families not asked for yet, one at a time, and puts none on
ok 191 - prefetch loads the families not asked for yet, one at a time, and puts none on
  ---
  duration_ms: 3.157957
  type: 'test'
  ...
# Subtest: an unknown family is no family
ok 192 - an unknown family is no family
  ---
  duration_ms: 0.426374
  type: 'test'
  ...
# Subtest: the system session is ready for everything and loads nothing
ok 193 - the system session is ready for everything and loads nothing
  ---
  duration_ms: 0.272199
  type: 'test'
  ...
# Subtest: an uploaded face loads in its own format and weight, under its name as it is
ok 194 - an uploaded face loads in its own format and weight, under its name as it is
  ---
  duration_ms: 6.55328
  type: 'test'
  ...
# Subtest: a catalog face is woff2
ok 195 - a catalog face is woff2
  ---
  duration_ms: 1.104812
  type: 'test'
  ...
# Subtest: an uploaded family late past the deadline is committed and never joins
ok 196 - an uploaded family late past the deadline is committed and never joins
  ---
  duration_ms: 1.398251
  type: 'test'
  ...
# Subtest: the editor brings in the deck's uploaded families too
ok 197 - the editor brings in the deck's uploaded families too
  ---
  duration_ms: 3.004949
  type: 'test'
  ...
# Subtest: a family the deck takes on during the visit is learned, once
ok 198 - a family the deck takes on during the visit is learned, once
  ---
  duration_ms: 1.175412
  type: 'test'
  ...
# Subtest: uploadedFamily is the manifest's entry for one of meta.fontFiles
ok 199 - uploadedFamily is the manifest's entry for one of meta.fontFiles
  ---
  duration_ms: 0.438587
  type: 'test'
  ...
# Subtest: a rendered slide names an uploaded family by leading a stack with it
ok 200 - a rendered slide names an uploaded family by leading a stack with it
  ---
  duration_ms: 0.897012
  type: 'test'
  ...
# Subtest: a change that brings in an uploaded family this tab never knew is checked, and waits for it
ok 201 - a change that brings in an uploaded family this tab never knew is checked, and waits for it
  ---
  duration_ms: 12.797175
  type: 'test'
  ...
# Subtest: an uploaded family already on screen in its fallback is committed there when learned, never loaded
ok 202 - an uploaded family already on screen in its fallback is committed there when learned, never loaded
  ---
  duration_ms: 3.745469
  type: 'test'
  ...
# Subtest: a family whose faces change is learned again, and its new set joins in place of the old, once all have loaded
ok 203 - a family whose faces change is learned again, and its new set joins in place of the old, once all have loaded
  ---
  duration_ms: 6.494573
  type: 'test'
  ...
# Subtest: a new set late past its timeout leaves the old set on the page, never a fallback
ok 204 - a new set late past its timeout leaves the old set on the page, never a fallback
  ---
  duration_ms: 1.826482
  type: 'test'
  ...
# Subtest: the editor: picking the grown family waits for its new set; undo and redo swap sets with the change
ok 205 - the editor: picking the grown family waits for its new set; undo and redo swap sets with the change
  ---
  duration_ms: 18.219625
  type: 'test'
  ...
# Subtest: a change refused while its new set loads leaves the tab on the deck's own set
ok 206 - a change refused while its new set loads leaves the tab on the deck's own set
  ---
  duration_ms: 4.531208
  type: 'test'
  ...
# Subtest: a range carrying the mark is pressed; one without is not
ok 207 - a range carrying the mark is pressed; one without is not
  ---
  duration_ms: 2.331585
  type: 'test'
  ...
# Subtest: at a cursor, the stored marks decide
ok 208 - at a cursor, the stored marks decide
  ---
  duration_ms: 0.637435
  type: 'test'
  ...
# Subtest: focus moving to another place to type lets go; to a button keeps the view
ok 209 - focus moving to another place to type lets go; to a button keeps the view
  ---
  duration_ms: 0.282793
  type: 'test'
  ...
# Subtest: the whole card is the bar: its own fields keep the view
ok 210 - the whole card is the bar: its own fields keep the view
  ---
  duration_ms: 0.194981
  type: 'test'
  ...
# Subtest: the marks act on the box the card shows, and on no other
ok 211 - the marks act on the box the card shows, and on no other
  ---
  duration_ms: 0.323828
  type: 'test'
  ...
# Subtest: a view's box is the nearest block around it: a table cell's is the table
ok 212 - a view's box is the nearest block around it: a table cell's is the table
  ---
  duration_ms: 0.184059
  type: 'test'
  ...
# Subtest: an empty body is no frames
ok 213 - an empty body is no frames
  ---
  duration_ms: 1.373449
  type: 'test'
  ...
# Subtest: frames come back in order with their exact bytes
ok 214 - frames come back in order with their exact bytes
  ---
  duration_ms: 0.356833
  type: 'test'
  ...
# Subtest: a length prefix is big-endian
ok 215 - a length prefix is big-endian
  ---
  duration_ms: 0.301125
  type: 'test'
  ...
# Subtest: a truncated frame throws rather than returning a short update
ok 216 - a truncated frame throws rather than returning a short update
  ---
  duration_ms: 1.519057
  type: 'test'
  ...
# Subtest: Format writes the cookie the server reads, and flips the card and its toggles
ok 217 - Format writes the cookie the server reads, and flips the card and its toggles
  ---
  duration_ms: 3.761229
  type: 'test'
  ...
# Subtest: the View menu row toggles the card too, and keeps aria-pressed with the button
ok 218 - the View menu row toggles the card too, and keeps aria-pressed with the button
  ---
  duration_ms: 0.620208
  type: 'test'
  ...
# Subtest: the first paint is the server's: mounting writes nothing and changes nothing
ok 219 - the first paint is the server's: mounting writes nothing and changes nothing
  ---
  duration_ms: 0.49327
  type: 'test'
  ...
# Subtest: an old localStorage 'off' with no cookie is applied once, moved to the cookie as closed, and removed
ok 220 - an old localStorage 'off' with no cookie is applied once, moved to the cookie as closed, and removed
  ---
  duration_ms: 1.365605
  type: 'test'
  ...
# Subtest: an old localStorage 'on' with no cookie is applied once, moved to the cookie as open, and removed
ok 221 - an old localStorage 'on' with no cookie is applied once, moved to the cookie as open, and removed
  ---
  duration_ms: 0.975285
  type: 'test'
  ...
# Subtest: with a cookie already set, an old localStorage key is dropped and not applied
ok 222 - with a cookie already set, an old localStorage key is dropped and not applied
  ---
  duration_ms: 0.677908
  type: 'test'
  ...
# Subtest: with cookies blocked, Format still shows and hides the card for this page
ok 223 - with cookies blocked, Format still shows and hides the card for this page
  ---
  duration_ms: 0.589101
  type: 'test'
  ...
# Subtest: with site data blocked (localStorage throws), the toggle still works
ok 224 - with site data blocked (localStorage throws), the toggle still works
  ---
  duration_ms: 0.331346
  type: 'test'
  ...
# Subtest: showInspector(true, {focus}) focuses the card's first showing control; hiding gives focus back
ok 225 - showInspector(true, {focus}) focuses the card's first showing control; hiding gives focus back
  ---
  duration_ms: 0.820455
  type: 'test'
  ...
# Subtest: Format from the keyboard moves focus into the card; from a pointer it does not
ok 226 - Format from the keyboard moves focus into the card; from a pointer it does not
  ---
  duration_ms: 0.762227
  type: 'test'
  ...
# Subtest: asking to delete a slide shows a hidden card, with focus
ok 227 - asking to delete a slide shows a hidden card, with focus
  ---
  duration_ms: 1.128244
  type: 'test'
  ...
# Subtest: on https the cookie is Secure
ok 228 - on https the cookie is Secure
  ---
  duration_ms: 0.32068
  type: 'test'
  ...
# Subtest: opened from the View menu by keyboard, the card gives focus back to the menu's button, not its hidden row
ok 229 - opened from the View menu by keyboard, the card gives focus back to the menu's button, not its hidden row
  ---
  duration_ms: 0.443474
  type: 'test'
  ...
# Subtest: dismissed from inside the card through the View row, focus goes to the menu's button
ok 230 - dismissed from inside the card through the View row, focus goes to the menu's button
  ---
  duration_ms: 1.106232
  type: 'test'
  ...
# Subtest: a return target that can no longer take focus falls back to Format
ok 231 - a return target that can no longer take focus falls back to Format
  ---
  duration_ms: 0.391932
  type: 'test'
  ...
# Subtest: asking to delete from a strip item's menu returns focus to that menu's button
ok 232 - asking to delete from a strip item's menu returns focus to that menu's button
  ---
  duration_ms: 0.334663
  type: 'test'
  ...
# Subtest: focus into the card reaches a radio group at its checked radio
ok 233 - focus into the card reaches a radio group at its checked radio
  ---
  duration_ms: 0.203172
  type: 'test'
  ...
# Subtest: the bar's title is the one place the deck's title is edited: a change is commitTitle
ok 234 - the bar's title is the one place the deck's title is edited: a change is commitTitle
  ---
  duration_ms: 0.488166
  type: 'test'
  ...
# Subtest: a menu row's dialog opens modal, and on close focus goes to the menu's title
ok 235 - a menu row's dialog opens modal, and on close focus goes to the menu's title
  ---
  duration_ms: 0.340078
  type: 'test'
  ...
# Subtest: an Insert row adds its kind through commands.addBlock, and closes the menu
ok 236 - an Insert row adds its kind through commands.addBlock, and closes the menu
  ---
  duration_ms: 0.590365
  type: 'test'
  ...
# Subtest: View → Outline opens the Outline under the View menu's title, and leaves the card alone
ok 237 - View → Outline opens the Outline under the View menu's title, and leaves the card alone
  ---
  duration_ms: 0.35221
  type: 'test'
  ...
# Subtest: it starts on the slide, as the server rendered it
ok 238 - it starts on the slide, as the server rendered it
  ---
  duration_ms: 1.611532
  type: 'test'
  ...
# Subtest: a box selected shows the box
ok 239 - a box selected shows the box
  ---
  duration_ms: 1.527566
  type: 'test'
  ...
# Subtest: nothing selected shows the slide
ok 240 - nothing selected shows the slide
  ---
  duration_ms: 0.153652
  type: 'test'
  ...
# Subtest: the selected box gone (deleted, or its creation undone) shows the slide, never an empty box
ok 241 - the selected box gone (deleted, or its creation undone) shows the slide, never an empty box
  ---
  duration_ms: 0.153221
  type: 'test'
  ...
# Subtest: the caret in the notes shows the notes
ok 242 - the caret in the notes shows the notes
  ---
  duration_ms: 0.293724
  type: 'test'
  ...
# Subtest: with the caret in the notes, nothing selected stays on the notes; a box selected shows the box
ok 243 - with the caret in the notes, nothing selected stays on the notes; a box selected shows the box
  ---
  duration_ms: 0.166541
  type: 'test'
  ...
# Subtest: the caret back on the stage leaves the kind to the selection
ok 244 - the caret back on the stage leaves the kind to the selection
  ---
  duration_ms: 0.328912
  type: 'test'
  ...
# Subtest: reset shows the slide, from anything
ok 245 - reset shows the slide, from anything
  ---
  duration_ms: 0.217349
  type: 'test'
  ...
# Subtest: onChange hears a change of kind only, never a repeat
ok 246 - onChange hears a change of kind only, never a repeat
  ---
  duration_ms: 0.53045
  type: 'test'
  ...
# Subtest: a box, the notes, then the same box again shows the box
ok 247 - a box, the notes, then the same box again shows the box
  ---
  duration_ms: 0.629475
  type: 'test'
  ...
# Subtest: no slide left (a colleague removed the last one) shows the deck, from the notes or a box
ok 248 - no slide left (a colleague removed the last one) shows the deck, from the notes or a box
  ---
  duration_ms: 0.305473
  type: 'test'
  ...
# Subtest: a slide shown keeps the card as it was: the notes stay the notes
ok 249 - a slide shown keeps the card as it was: the notes stay the notes
  ---
  duration_ms: 0.120466
  type: 'test'
  ...
# Subtest: appearsOf: with the slide, on a press, item by item
ok 250 - appearsOf: with the slide, on a press, item by item
  ---
  duration_ms: 1.159731
  type: 'test'
  ...
# Subtest: appearsOps: On a press takes the next step after the largest
ok 251 - appearsOps: On a press takes the next step after the largest
  ---
  duration_ms: 1.273103
  type: 'test'
  ...
# Subtest: appearsOps: With the slide clears the step and the items
ok 252 - appearsOps: With the slide clears the step and the items
  ---
  duration_ms: 0.30028
  type: 'test'
  ...
# Subtest: appearsOps: Item by item is a list's, and gives it a press when it has none
ok 253 - appearsOps: Item by item is a list's, and gives it a press when it has none
  ---
  duration_ms: 0.226143
  type: 'test'
  ...
# Subtest: afterOps: the midpoint between the press and the next one, nothing renumbered
ok 254 - afterOps: the midpoint between the press and the next one, nothing renumbered
  ---
  duration_ms: 1.498125
  type: 'test'
  ...
# Subtest: afterOps: the box ends up in the press after the one chosen
ok 255 - afterOps: the box ends up in the press after the one chosen
  ---
  duration_ms: 0.259279
  type: 'test'
  ...
# Subtest: afterChoices: each press of the other boxes, by number; an item-by-item list counts its items
ok 256 - afterChoices: each press of the other boxes, by number; an item-by-item list counts its items
  ---
  duration_ms: 0.443309
  type: 'test'
  ...
# Subtest: appearsShown: Item by item is offered on a list alone
ok 257 - appearsShown: Item by item is offered on a list alone
  ---
  duration_ms: 0.375448
  type: 'test'
  ...
# Subtest: marksFor: press numbers in press order, not step values; a list item by item numbers each item
ok 258 - marksFor: press numbers in press order, not step values; a list item by item numbers each item
  ---
  duration_ms: 0.783574
  type: 'test'
  ...
# Subtest: deck controls are set_meta
ok 259 - deck controls are set_meta
  ---
  duration_ms: 13.473618
  type: 'test'
  ...
# Subtest: slide controls are set_slide, and background keeps its colour
ok 260 - slide controls are set_slide, and background keeps its colour
  ---
  duration_ms: 4.521906
  type: 'test'
  ...
# Subtest: move up and down are move_slide with the right after
ok 261 - move up and down are move_slide with the right after
  ---
  duration_ms: 2.13849
  type: 'test'
  ...
# Subtest: block props: value kinds, region, a shape label
ok 262 - block props: value kinds, region, a shape label
  ---
  duration_ms: 2.135442
  type: 'test'
  ...
# Subtest: box fields are set_block on the desktop and set_phone in the phone view
ok 263 - box fields are set_block on the desktop and set_phone in the phone view
  ---
  duration_ms: 2.031947
  type: 'test'
  ...
# Subtest: move block and the layer buttons
ok 264 - move block and the layer buttons
  ---
  duration_ms: 1.826469
  type: 'test'
  ...
# Subtest: add block: region after the selection on flow, a default box on canvas, a heading level that fits
ok 265 - add block: region after the selection on flow, a default box on canvas, a heading level that fits
  ---
  duration_ms: 8.822961
  type: 'test'
  ...
# Subtest: a block is named by its type and its first words
ok 266 - a block is named by its type and its first words
  ---
  duration_ms: 1.235589
  type: 'test'
  ...
# Subtest: blockChange: a control element to its op
ok 267 - blockChange: a control element to its op
  ---
  duration_ms: 2.042011
  type: 'test'
  ...
# Subtest: a segmented choice: setValue checks the radio for the value, and its change is the prop
ok 268 - a segmented choice: setValue checks the radio for the value, and its change is the prop
  ---
  duration_ms: 1.750149
  type: 'test'
  ...
# Subtest: corner radius shows for an image and a rectangle, not for a shape with no corners
ok 269 - corner radius shows for an image and a rectangle, not for a shape with no corners
  ---
  duration_ms: 3.129521
  type: 'test'
  ...
# Subtest: a shape's swatches show what the slide shows: no fill as none, no stroke in the ink
ok 270 - a shape's swatches show what the slide shows: no fill as none, no stroke in the ink
  ---
  duration_ms: 1.312352
  type: 'test'
  ...
# Subtest: Position and size keeps open or closed across a remount, in memory only
ok 271 - Position and size keeps open or closed across a remount, in memory only
  ---
  duration_ms: 5.558944
  type: 'test'
  ...
# Subtest: litFor: Free placement on a canvas slide, else the template
ok 272 - litFor: Free placement on a canvas slide, else the template
  ---
  duration_ms: 1.265316
  type: 'test'
  ...
# Subtest: pickOps: the four cases, op for op
ok 273 - pickOps: the four cases, op for op
  ---
  duration_ms: 0.959108
  type: 'test'
  ...
# Subtest: the pictures are the seven templates, then Free placement
ok 274 - the pictures are the seven templates, then Free placement
  ---
  duration_ms: 0.163668
  type: 'test'
  ...
# Subtest: fill lights exactly one picture: the template, or Free placement
ok 275 - fill lights exactly one picture: the template, or Free placement
  ---
  duration_ms: 2.203885
  type: 'test'
  ...
# Subtest: a choice on a flow slide commits its op, and asks nothing
ok 276 - a choice on a flow slide commits its op, and asks nothing
  ---
  duration_ms: 0.960305
  type: 'test'
  ...
# Subtest: a template on a canvas slide asks in the card first and commits nothing
ok 277 - a template on a canvas slide asks in the card first and commits nothing
  ---
  duration_ms: 0.993644
  type: 'test'
  ...
# Subtest: its action commits both ops in one commit call
ok 278 - its action commits both ops in one commit call
  ---
  duration_ms: 0.959391
  type: 'test'
  ...
# Subtest: cancel commits nothing and lights Free placement again
ok 279 - cancel commits nothing and lights Free placement again
  ---
  duration_ms: 1.049445
  type: 'test'
  ...
# Subtest: choosing Free placement again while asked withdraws the question
ok 280 - choosing Free placement again while asked withdraws the question
  ---
  duration_ms: 1.52983
  type: 'test'
  ...
# Subtest: fill after the slide became flow elsewhere withdraws the question, and the action commits nothing
ok 281 - fill after the slide became flow elsewhere withdraws the question, and the action commits nothing
  ---
  duration_ms: 1.361072
  type: 'test'
  ...
# Subtest: fill on another slide, or none, withdraws the question
ok 282 - fill on another slide, or none, withdraws the question
  ---
  duration_ms: 1.019325
  type: 'test'
  ...
# Subtest: Escape in a row's popover closes it, focuses its row, and goes no further
ok 283 - Escape in a row's popover closes it, focuses its row, and goes no further
  ---
  duration_ms: 0.864532
  type: 'test'
  ...
# Subtest: destroy takes every listener off the form
ok 284 - destroy takes every listener off the form
  ---
  duration_ms: 0.538589
  type: 'test'
  ...
# Subtest: open resolves to the button that closed it and the trimmed field
ok 285 - open resolves to the button that closed it and the trimmed field
  ---
  duration_ms: 1.572559
  type: 'test'
  ...
# Subtest: a second open while the dialog is up joins the first
ok 286 - a second open while the dialog is up joins the first
  ---
  duration_ms: 0.2037
  type: 'test'
  ...
# Subtest: a missing dialog mounts as nothing
ok 287 - a missing dialog mounts as nothing
  ---
  duration_ms: 0.123619
  type: 'test'
  ...
# Subtest: a tab advances its own cursor only when its POST is the very next row
ok 288 - a tab advances its own cursor only when its POST is the very next row
  ---
  duration_ms: 1.362586
  type: 'test'
  ...
# Subtest: the cursor never moves backwards when a response is overtaken by this tab's own write
ok 289 - the cursor never moves backwards when a response is overtaken by this tab's own write
  ---
  duration_ms: 0.638524
  type: 'test'
  ...
# Subtest: a later response still carries the cursor forward
ok 290 - a later response still carries the cursor forward
  ---
  duration_ms: 0.345684
  type: 'test'
  ...
# Subtest: a burst of notifications collapses into one fetch at a time
ok 291 - a burst of notifications collapses into one fetch at a time
  ---
  duration_ms: 0.273493
  type: 'test'
  ...
# Subtest: an event naming a seq the tab already has fetches nothing
ok 292 - an event naming a seq the tab already has fetches nothing
  ---
  duration_ms: 0.362409
  type: 'test'
  ...
# Subtest: a stopped subscriber drops a response that arrives late
ok 293 - a stopped subscriber drops a response that arrives late
  ---
  duration_ms: 0.25602
  type: 'test'
  ...
# Subtest: stop closes the stream, and start opens exactly one
ok 294 - stop closes the stream, and start opens exactly one
  ---
  duration_ms: 0.336
  type: 'test'
  ...
# Subtest: a hidden tab closes its stream on a shortened deadline, and activity reopens it
ok 295 - a hidden tab closes its stream on a shortened deadline, and activity reopens it
  ---
  duration_ms: 0.850335
  type: 'test'
  ...
# Subtest: switching away and back inside the grace never drops the stream, so nothing has to be caught up
ok 296 - switching away and back inside the grace never drops the stream, so nothing has to be caught up
  ---
  duration_ms: 0.871508
  type: 'test'
  ...
# Subtest: a visible tab that is only being READ closes when idle and comes back on any activity
ok 297 - a visible tab that is only being READ closes when idle and comes back on any activity
  ---
  duration_ms: 0.680124
  type: 'test'
  ...
# Subtest: activity while streaming defers the idle close rather than reopening anything
ok 298 - activity while streaming defers the idle close rather than reopening anything
  ---
  duration_ms: 0.337852
  type: 'test'
  ...
# Subtest: a stream failure is never reported as a save failure, and heals on activity
ok 299 - a stream failure is never reported as a save failure, and heals on activity
  ---
  duration_ms: 0.247993
  type: 'test'
  ...
# Subtest: an empty response advances the cursor without applying anything
ok 300 - an empty response advances the cursor without applying anything
  ---
  duration_ms: 0.200445
  type: 'test'
  ...
# Subtest: a failed fetch leaves the cursor alone so the next notification retries it
ok 301 - a failed fetch leaves the cursor alone so the next notification retries it
  ---
  duration_ms: 0.219441
  type: 'test'
  ...
# Subtest: a decode failure retries once through the raw log, then gives up
ok 302 - a decode failure retries once through the raw log, then gives up
  ---
  duration_ms: 0.206671
  type: 'test'
  ...
# Subtest: updatesURL spells the query string exactly, in particular raw as the literal raw=1
ok 303 - updatesURL spells the query string exactly, in particular raw as the literal raw=1
  ---
  duration_ms: 0.137226
  type: 'test'
  ...
# Subtest: leaving the page closes the stream at once, and coming back reopens it and catches up
ok 304 - leaving the page closes the stream at once, and coming back reopens it and catches up
  ---
  duration_ms: 0.321754
  type: 'test'
  ...
# Subtest: a page left before its subscriber starts never opens a stream
ok 305 - a page left before its subscriber starts never opens a stream
  ---
  duration_ms: 0.162502
  type: 'test'
  ...
# Subtest: moves vectors
    # Subtest: next through a slide
    ok 1 - next through a slide
      ---
      duration_ms: 1.755474
      type: 'test'
      ...
    # Subtest: next through a slide to its last press
    ok 2 - next through a slide to its last press
      ---
      duration_ms: 0.171384
      type: 'test'
      ...
    # Subtest: next across slides with no steps
    ok 3 - next across slides with no steps
      ---
      duration_ms: 0.410516
      type: 'test'
      ...
    # Subtest: next across slides skips full only and parked in core
    ok 4 - next across slides skips full only and parked in core
      ---
      duration_ms: 0.316373
      type: 'test'
      ...
    # Subtest: next across slides shows full only in full
    ok 5 - next across slides shows full only in full
      ---
      duration_ms: 0.264684
      type: 'test'
      ...
    # Subtest: next across slides skips parked in full
    ok 6 - next across slides skips parked in full
      ---
      duration_ms: 0.167539
      type: 'test'
      ...
    # Subtest: next from a step above the count leaves the slide
    ok 7 - next from a step above the count leaves the slide
      ---
      duration_ms: 0.138752
      type: 'test'
      ...
    # Subtest: next at the end of the talk stays
    ok 8 - next at the end of the talk stays
      ---
      duration_ms: 0.309709
      type: 'test'
      ...
    # Subtest: back through a slide
    ok 9 - back through a slide
      ---
      duration_ms: 0.569732
      type: 'test'
      ...
    # Subtest: back lands fully built
    ok 10 - back lands fully built
      ---
      duration_ms: 0.332231
      type: 'test'
      ...
    # Subtest: back lands fully built on a full only slide in full
    ok 11 - back lands fully built on a full only slide in full
      ---
      duration_ms: 0.248205
      type: 'test'
      ...
    # Subtest: back across a slide with no steps
    ok 12 - back across a slide with no steps
      ---
      duration_ms: 0.111689
      type: 'test'
      ...
    # Subtest: back at the start of the talk stays
    ok 13 - back at the start of the talk stays
      ---
      duration_ms: 0.081968
      type: 'test'
      ...
    # Subtest: back at the start skips a full only first slide in core
    ok 14 - back at the start skips a full only first slide in core
      ---
      duration_ms: 0.069441
      type: 'test'
      ...
    # Subtest: first
    ok 15 - first
      ---
      duration_ms: 0.062828
      type: 'test'
      ...
    # Subtest: first in core skips a full only first slide
    ok 16 - first in core skips a full only first slide
      ---
      duration_ms: 0.055494
      type: 'test'
      ...
    # Subtest: first in full
    ok 17 - first in full
      ---
      duration_ms: 0.089582
      type: 'test'
      ...
    # Subtest: last
    ok 18 - last
      ---
      duration_ms: 0.059797
      type: 'test'
      ...
    # Subtest: last skips a parked last slide
    ok 19 - last skips a parked last slide
      ---
      duration_ms: 0.052208
      type: 'test'
      ...
    # Subtest: goto lands at step 0
    ok 20 - goto lands at step 0
      ---
      duration_ms: 0.058742
      type: 'test'
      ...
    # Subtest: goto the current slide goes back to step 0
    ok 21 - goto the current slide goes back to step 0
      ---
      duration_ms: 0.053919
      type: 'test'
      ...
    # Subtest: goto a full only slide from core switches to full
    ok 22 - goto a full only slide from core switches to full
      ---
      duration_ms: 0.05359
      type: 'test'
      ...
    # Subtest: goto a parked slide changes nothing
    ok 23 - goto a parked slide changes nothing
      ---
      duration_ms: 0.051075
      type: 'test'
      ...
    # Subtest: goto a missing slide changes nothing
    ok 24 - goto a missing slide changes nothing
      ---
      duration_ms: 0.046907
      type: 'test'
      ...
    # Subtest: goto with no slide changes nothing
    ok 25 - goto with no slide changes nothing
      ---
      duration_ms: 0.063979
      type: 'test'
      ...
    # Subtest: mode flips core to full and keeps the position
    ok 26 - mode flips core to full and keeps the position
      ---
      duration_ms: 0.051528
      type: 'test'
      ...
    # Subtest: mode flips full to core on a full only slide and keeps the position
    ok 27 - mode flips full to core on a full only slide and keeps the position
      ---
      duration_ms: 0.046088
      type: 'test'
      ...
    # Subtest: mode keeps black
    ok 28 - mode keeps black
      ---
      duration_ms: 0.127588
      type: 'test'
      ...
    # Subtest: next on a full only slide in core steps through it
    ok 29 - next on a full only slide in core steps through it
      ---
      duration_ms: 0.207384
      type: 'test'
      ...
    # Subtest: next on a full only slide in core leaves by its place in the deck
    ok 30 - next on a full only slide in core leaves by its place in the deck
      ---
      duration_ms: 0.081289
      type: 'test'
      ...
    # Subtest: back on a full only slide in core leaves by its place in the deck
    ok 31 - back on a full only slide in core leaves by its place in the deck
      ---
      duration_ms: 0.07478
      type: 'test'
      ...
    # Subtest: next on a parked slide leaves by its place in the deck
    ok 32 - next on a parked slide leaves by its place in the deck
      ---
      duration_ms: 0.062422
      type: 'test'
      ...
    # Subtest: back on a parked slide leaves by its place in the deck
    ok 33 - back on a parked slide leaves by its place in the deck
      ---
      duration_ms: 0.064526
      type: 'test'
      ...
    # Subtest: next from a missing slide lands where settle would
    ok 34 - next from a missing slide lands where settle would
      ---
      duration_ms: 0.199352
      type: 'test'
      ...
    # Subtest: black turns the screen black
    ok 35 - black turns the screen black
      ---
      duration_ms: 0.076961
      type: 'test'
      ...
    # Subtest: black again lifts it
    ok 36 - black again lifts it
      ---
      duration_ms: 0.05673
      type: 'test'
      ...
    # Subtest: next lifts black
    ok 37 - next lifts black
      ---
      duration_ms: 0.066117
      type: 'test'
      ...
    # Subtest: next at the end lifts black and stays
    ok 38 - next at the end lifts black and stays
      ---
      duration_ms: 0.289939
      type: 'test'
      ...
    # Subtest: back lifts black
    ok 39 - back lifts black
      ---
      duration_ms: 0.870129
      type: 'test'
      ...
    # Subtest: back at the start lifts black and stays
    ok 40 - back at the start lifts black and stays
      ---
      duration_ms: 0.08029
      type: 'test'
      ...
    # Subtest: first lifts black
    ok 41 - first lifts black
      ---
      duration_ms: 0.059213
      type: 'test'
      ...
    # Subtest: last lifts black
    ok 42 - last lifts black
      ---
      duration_ms: 0.075989
      type: 'test'
      ...
    # Subtest: goto lifts black
    ok 43 - goto lifts black
      ---
      duration_ms: 0.064388
      type: 'test'
      ...
    # Subtest: an unknown move changes nothing
    ok 44 - an unknown move changes nothing
      ---
      duration_ms: 0.055445
      type: 'test'
      ...
    # Subtest: empty talk: next
    ok 45 - empty talk: next
      ---
      duration_ms: 0.084112
      type: 'test'
      ...
    # Subtest: empty talk: back
    ok 46 - empty talk: back
      ---
      duration_ms: 0.053924
      type: 'test'
      ...
    # Subtest: empty talk: first and last
    ok 47 - empty talk: first and last
      ---
      duration_ms: 0.048148
      type: 'test'
      ...
    # Subtest: empty talk: mode flips and nothing else
    ok 48 - empty talk: mode flips and nothing else
      ---
      duration_ms: 0.045953
      type: 'test'
      ...
    # Subtest: empty talk: goto a parked slide changes nothing
    ok 49 - empty talk: goto a parked slide changes nothing
      ---
      duration_ms: 0.044989
      type: 'test'
      ...
    # Subtest: start: the first slide of the core talk
    ok 50 - start: the first slide of the core talk
      ---
      duration_ms: 0.086358
      type: 'test'
      ...
    # Subtest: start skips a full only first slide
    ok 51 - start skips a full only first slide
      ---
      duration_ms: 0.058623
      type: 'test'
      ...
    # Subtest: start of an empty talk
    ok 52 - start of an empty talk
      ---
      duration_ms: 0.079176
      type: 'test'
      ...
    # Subtest: settle: a position in the talk stays
    ok 53 - settle: a position in the talk stays
      ---
      duration_ms: 0.075354
      type: 'test'
      ...
    # Subtest: settle: a step above the count clamps to the count
    ok 54 - settle: a step above the count clamps to the count
      ---
      duration_ms: 0.064
      type: 'test'
      ...
    # Subtest: settle: a step below 0 clamps to 0
    ok 55 - settle: a step below 0 clamps to 0
      ---
      duration_ms: 0.092102
      type: 'test'
      ...
    # Subtest: settle: a parked slide becomes the next slide of the order after it
    ok 56 - settle: a parked slide becomes the next slide of the order after it
      ---
      duration_ms: 0.110803
      type: 'test'
      ...
    # Subtest: settle: a parked slide with nothing after it becomes the last
    ok 57 - settle: a parked slide with nothing after it becomes the last
      ---
      duration_ms: 0.064112
      type: 'test'
      ...
    # Subtest: settle: a missing slide with no place known becomes the last
    ok 58 - settle: a missing slide with no place known becomes the last
      ---
      duration_ms: 2.606872
      type: 'test'
      ...
    # Subtest: settle: a full only slide in core stays, its step clamped
    ok 59 - settle: a full only slide in core stays, its step clamped
      ---
      duration_ms: 0.118519
      type: 'test'
      ...
    # Subtest: settle: no slide yet becomes the first
    ok 60 - settle: no slide yet becomes the first
      ---
      duration_ms: 0.070928
      type: 'test'
      ...
    # Subtest: settle: an empty talk gives only the mode
    ok 61 - settle: an empty talk gives only the mode
      ---
      duration_ms: 0.119888
      type: 'test'
      ...
    # Subtest: settle near: deleting B from A-B-C-D lands on C
    ok 62 - settle near: deleting B from A-B-C-D lands on C
      ---
      duration_ms: 0.113001
      type: 'test'
      ...
    # Subtest: settle near: deleting the last slide lands on the new last
    ok 63 - settle near: deleting the last slide lands on the new last
      ---
      duration_ms: 0.074239
      type: 'test'
      ...
    # Subtest: settle near: deleting the only full-only slide while in core
    ok 64 - settle near: deleting the only full-only slide while in core
      ---
      duration_ms: 0.05849
      type: 'test'
      ...
    # Subtest: settle near: a full-only follower is skipped in core
    ok 65 - settle near: a full-only follower is skipped in core
      ---
      duration_ms: 0.061998
      type: 'test'
      ...
    # Subtest: settle near: a full-only follower is kept in full
    ok 66 - settle near: a full-only follower is kept in full
      ---
      duration_ms: 0.060948
      type: 'test'
      ...
    # Subtest: settle near: nothing in the mode after it gives the last
    ok 67 - settle near: nothing in the mode after it gives the last
      ---
      duration_ms: 0.065374
      type: 'test'
      ...
    # Subtest: settle near: deleting all but one
    ok 68 - settle near: deleting all but one
      ---
      duration_ms: 0.061334
      type: 'test'
      ...
    # Subtest: settle near: deleting all but one, from the middle
    ok 69 - settle near: deleting all but one, from the middle
      ---
      duration_ms: 0.060475
      type: 'test'
      ...
    # Subtest: settle near: -1 is no place known, the last
    ok 70 - settle near: -1 is no place known, the last
      ---
      duration_ms: 0.092706
      type: 'test'
      ...
    # Subtest: settle near: a parked slide goes by its own place, not near
    ok 71 - settle near: a parked slide goes by its own place, not near
      ---
      duration_ms: 0.073222
      type: 'test'
      ...
    # Subtest: settle near: a slide still there clamps its step as settle does
    ok 72 - settle near: a slide still there clamps its step as settle does
      ---
      duration_ms: 0.088716
      type: 'test'
      ...
    # Subtest: settle near: an empty talk gives only the mode
    ok 73 - settle near: an empty talk gives only the mode
      ---
      duration_ms: 0.062586
      type: 'test'
      ...
    1..73
ok 306 - moves vectors
  ---
  duration_ms: 19.988151
  type: 'test'
  ...
# Subtest: talkOrder leaves out parked slides, and full-only ones in core
ok 307 - talkOrder leaves out parked slides, and full-only ones in core
  ---
  duration_ms: 0.142806
  type: 'test'
  ...
# Subtest: the keys are the ones the switch used, and the new height key
ok 308 - the keys are the ones the switch used, and the new height key
  ---
  duration_ms: 1.530664
  type: 'test'
  ...
# Subtest: the cookies are the ones the server reads
ok 309 - the cookies are the ones the server reads
  ---
  duration_ms: 0.248197
  type: 'test'
  ...
# Subtest: open, close and toggle set data-state and remember open/closed in the cookie
ok 310 - open, close and toggle set data-state and remember open/closed in the cookie
  ---
  duration_ms: 1.38546
  type: 'test'
  ...
# Subtest: mounting keeps the state the server painted and writes nothing
ok 311 - mounting keeps the state the server painted and writes nothing
  ---
  duration_ms: 1.045475
  type: 'test'
  ...
# Subtest: a localStorage preference from before the cookies is honoured once, moved to the cookies and removed
ok 312 - a localStorage preference from before the cookies is honoured once, moved to the cookies and removed
  ---
  duration_ms: 1.173859
  type: 'test'
  ...
# Subtest: cookies and storage that throw leave the notes working for the visit
ok 313 - cookies and storage that throw leave the notes working for the visit
  ---
  duration_ms: 0.697103
  type: 'test'
  ...
# Subtest: the × closes and moves focus to the tab; the tab opens and moves focus into the notes
ok 314 - the × closes and moves focus to the tab; the tab opens and moves focus into the notes
  ---
  duration_ms: 1.420237
  type: 'test'
  ...
# Subtest: mounting does not take focus
ok 315 - mounting does not take focus
  ---
  duration_ms: 0.330303
  type: 'test'
  ...
# Subtest: HEAD_PX is the card less its body as editor.css draws it: a hairline (1 + 1) and 12px of padding above and below
ok 316 - HEAD_PX is the card less its body as editor.css draws it: a hairline (1 + 1) and 12px of padding above and below
  ---
  duration_ms: 0.396374
  type: 'test'
  ...
# Subtest: clampHeight: at least two lines and the head, at most half the desk
ok 317 - clampHeight: at least two lines and the head, at most half the desk
  ---
  duration_ms: 0.50546
  type: 'test'
  ...
# Subtest: the height is the remembered one, clamped, written as a CSS length and as the separator's value
ok 318 - the height is the remembered one, clamped, written as a CSS length and as the separator's value
  ---
  duration_ms: 0.549874
  type: 'test'
  ...
# Subtest: ArrowUp and ArrowDown move the height by 16px, Home and End go to the limits, each remembered
ok 319 - ArrowUp and ArrowDown move the height by 16px, Home and End go to the limits, each remembered
  ---
  duration_ms: 0.410911
  type: 'test'
  ...
# Subtest: dragging the top edge up makes the notes taller, within the limits, and remembers on release
ok 320 - dragging the top edge up makes the notes taller, within the limits, and remembers on release
  ---
  duration_ms: 0.422711
  type: 'test'
  ...
# Subtest: a stored height clamped on mount: ArrowDown moves from what is shown, and that is remembered
ok 321 - a stored height clamped on mount: ArrowDown moves from what is shown, and that is remembered
  ---
  duration_ms: 0.218224
  type: 'test'
  ...
# Subtest: a desk that shrinks after mount: the next key starts from the height now shown
ok 322 - a desk that shrinks after mount: the next key starts from the height now shown
  ---
  duration_ms: 0.253736
  type: 'test'
  ...
# Subtest: a window resize narrows what is shown and keeps the preferred height for when the room comes back
ok 323 - a window resize narrows what is shown and keeps the preferred height for when the room comes back
  ---
  duration_ms: 0.254375
  type: 'test'
  ...
# Subtest: a drag after clamping moves from the shown height on its first pixel
ok 324 - a drag after clamping moves from the shown height on its first pixel
  ---
  duration_ms: 0.213959
  type: 'test'
  ...
# Subtest: refresh() writes the tab's text: the word for notes, and the count of words when there are any
ok 325 - refresh() writes the tab's text: the word for notes, and the count of words when there are any
  ---
  duration_ms: 0.258887
  type: 'test'
  ...
# Subtest: refresh() writes nothing when the tab already says it (the server's first paint)
ok 326 - refresh() writes nothing when the tab already says it (the server's first paint)
  ---
  duration_ms: 0.251267
  type: 'test'
  ...
# Subtest: countWords: what the server counts (strings.Fields of the plain text), through paragraphs and runs
ok 327 - countWords: what the server counts (strings.Fields of the plain text), through paragraphs and runs
  ---
  duration_ms: 0.635575
  type: 'test'
  ...
# Subtest: empty_doc_views_as_defaults
ok 328 - empty_doc_views_as_defaults
  ---
  duration_ms: 3.804764
  type: 'test'
  ...
# Subtest: set_meta
ok 329 - set_meta
  ---
  duration_ms: 3.014308
  type: 'test'
  ...
# Subtest: slides: add, move, remove, set_slide, set_notes
ok 330 - slides: add, move, remove, set_slide, set_notes
  ---
  duration_ms: 6.792552
  type: 'test'
  ...
# Subtest: duplicate_slide
ok 331 - duplicate_slide
  ---
  duration_ms: 3.761009
  type: 'test'
  ...
# Subtest: blocks: add, move, remove, set_block
ok 332 - blocks: add, move, remove, set_block
  ---
  duration_ms: 4.58095
  type: 'test'
  ...
# Subtest: set_phone
ok 333 - set_phone
  ---
  duration_ms: 1.296213
  type: 'test'
  ...
# Subtest: table cells follow rows and cols
ok 334 - table cells follow rows and cols
  ---
  duration_ms: 1.294153
  type: 'test'
  ...
# Subtest: canvas blocks: box defaults from the region, z from the index
ok 335 - canvas blocks: box defaults from the region, z from the index
  ---
  duration_ms: 1.372853
  type: 'test'
  ...
# Subtest: assets: register and remove
ok 336 - assets: register and remove
  ---
  duration_ms: 1.372547
  type: 'test'
  ...
# Subtest: markdown: every mark, code blocks are plain lines
ok 337 - markdown: every mark, code blocks are plain lines
  ---
  duration_ms: 1.794947
  type: 'test'
  ...
# Subtest: batch_is_atomic
ok 338 - batch_is_atomic
  ---
  duration_ms: 2.179192
  type: 'test'
  ...
# Subtest: a batch applies in one transaction with the given origin
ok 339 - a batch applies in one transaction with the given origin
  ---
  duration_ms: 0.620852
  type: 'test'
  ...
# Subtest: columns_children_validated
ok 340 - columns_children_validated
  ---
  duration_ms: 1.46722
  type: 'test'
  ...
# Subtest: layout_switch_round_trip
ok 341 - layout_switch_round_trip
  ---
  duration_ms: 1.792103
  type: 'test'
  ...
# Subtest: view_matches_snapshot_fixtures
ok 342 - view_matches_snapshot_fixtures
  ---
  duration_ms: 21.7539
  type: 'test'
  ...
# Subtest: columns children have one parent and no cycles (codex 7)
ok 343 - columns children have one parent and no cycles (codex 7)
  ---
  duration_ms: 1.51744
  type: 'test'
  ...
# Subtest: canvas-to-flow keeps a concurrent text edit (codex 4)
ok 344 - canvas-to-flow keeps a concurrent text edit (codex 4)
  ---
  duration_ms: 7.286606
  type: 'test'
  ...
# Subtest: move_block keeps a concurrent text edit, and later inserts land where after says (codex 4)
ok 345 - move_block keeps a concurrent text edit, and later inserts land where after says (codex 4)
  ---
  duration_ms: 4.010427
  type: 'test'
  ...
# Subtest: move_slide keeps a concurrent text edit, and later inserts land where after says (codex 4 at slide level)
ok 346 - move_slide keeps a concurrent text edit, and later inserts land where after says (codex 4 at slide level)
  ---
  duration_ms: 2.146833
  type: 'test'
  ...
# Subtest: set_block step round-trips, fractions included, survives a duplicate and clears
ok 347 - set_block step round-trips, fractions included, survives a duplicate and clears
  ---
  duration_ms: 0.968479
  type: 'test'
  ...
# Subtest: set_block refuses a step of zero, below zero, or not finite
ok 348 - set_block refuses a step of zero, below zero, or not finite
  ---
  duration_ms: 0.838564
  type: 'test'
  ...
# Subtest: set_block refuses items on a non-list; on a list it round-trips and clears
ok 349 - set_block refuses items on a non-list; on a list it round-trips and clears
  ---
  duration_ms: 1.044621
  type: 'test'
  ...
# Subtest: set_slide talk round-trips, survives a duplicate and clears; an unknown one is refused
ok 350 - set_slide talk round-trips, survives a duplicate and clears; an unknown one is refused
  ---
  duration_ms: 1.46801
  type: 'test'
  ...
# Subtest: set_meta arrive round-trips and clears; an unknown one is refused
ok 351 - set_meta arrive round-trips and clears; an unknown one is refused
  ---
  duration_ms: 0.760946
  type: 'test'
  ...
# Subtest: a deck without the fields has no such keys in its view
ok 352 - a deck without the fields has no such keys in its view
  ---
  duration_ms: 0.424753
  type: 'test'
  ...
# Subtest: meta.fontFiles: round trip, absent key, clear
ok 353 - meta.fontFiles: round trip, absent key, clear
  ---
  duration_ms: 0.731733
  type: 'test'
  ...
# Subtest: meta.fontFiles: refusals apply nothing
ok 354 - meta.fontFiles: refusals apply nothing
  ---
  duration_ms: 1.889157
  type: 'test'
  ...
# Subtest: the Outline's list reconciles by id and keeps its rows
ok 355 - the Outline's list reconciles by id and keeps its rows
  ---
  duration_ms: 2.870761
  type: 'test'
  ...
# Subtest: open fills the list by kind and first words, and focuses the selected box's row
ok 356 - open fills the list by kind and first words, and focuses the selected box's row
  ---
  duration_ms: 1.074816
  type: 'test'
  ...
# Subtest: with no box on the slide it says so, and focus goes to the popover
ok 357 - with no box on the slide it says so, and focus goes to the popover
  ---
  duration_ms: 0.547622
  type: 'test'
  ...
# Subtest: a row selects its box and closes, leaving focus to the box
ok 358 - a row selects its box and closes, leaving focus to the box
  ---
  duration_ms: 0.567545
  type: 'test'
  ...
# Subtest: Escape closes it, gives focus back, and goes no further
ok 359 - Escape closes it, gives focus back, and goes no further
  ---
  duration_ms: 0.36447
  type: 'test'
  ...
# Subtest: closed by the browser (a click outside), it fills no more; destroy takes its listeners off
ok 360 - closed by the browser (a click outside), it fills no more; destroy takes its listeners off
  ---
  duration_ms: 0.386765
  type: 'test'
  ...
# Subtest: a row from the template takes its words in its label, and keeps its check
ok 361 - a row from the template takes its words in its label, and keeps its check
  ---
  duration_ms: 0.220127
  type: 'test'
  ...
# Subtest: open keeps the panel inside the window: moved back from the end edge, no taller than the room under its title
ok 362 - open keeps the panel inside the window: moved back from the end edge, no taller than the room under its title
  ---
  duration_ms: 0.790557
  type: 'test'
  ...
# Subtest: the scale is the room over the phone height, never above 1
ok 363 - the scale is the room over the phone height, never above 1
  ---
  duration_ms: 0.933339
  type: 'test'
  ...
# Subtest: the scale fits the width as well: the smaller of the two
ok 364 - the scale fits the width as well: the smaller of the two
  ---
  duration_ms: 0.192787
  type: 'test'
  ...
# Subtest: the scale never rounds up past the room it was given
ok 365 - the scale never rounds up past the room it was given
  ---
  duration_ms: 0.5477
  type: 'test'
  ...
# Subtest: mountPhoneFrame writes the scale on every frame, and again when the stages resize
ok 366 - mountPhoneFrame writes the scale on every frame, and again when the stages resize
  ---
  duration_ms: 2.920185
  type: 'test'
  ...
# Subtest: update() measures again when the room changes and the stages do not resize
ok 367 - update() measures again when the room changes and the stages do not resize
  ---
  duration_ms: 0.743409
  type: 'test'
  ...
# Subtest: waitingAt is everything whose press comes after the one given
ok 368 - waitingAt is everything whose press comes after the one given
  ---
  duration_ms: 2.570435
  type: 'test'
  ...
# Subtest: pressesWords: the count at rest, the press while playing
ok 369 - pressesWords: the count at rest, the press while playing
  ---
  duration_ms: 0.318373
  type: 'test'
  ...
# Subtest: a click plays press 1, each click the next, and one after the last shows the finished slide
ok 370 - a click plays press 1, each click the next, and one after the last shows the finished slide
  ---
  duration_ms: 3.264558
  type: 'test'
  ...
# Subtest: Esc while not playing is left alone
ok 371 - Esc while not playing is left alone
  ---
  duration_ms: 0.828869
  type: 'test'
  ...
# Subtest: reads a cookie by its exact name; absent is null
ok 372 - reads a cookie by its exact name; absent is null
  ---
  duration_ms: 0.968674
  type: 'test'
  ...
# Subtest: a cookie jar that throws reads as absent and writes nothing
ok 373 - a cookie jar that throws reads as absent and writes nothing
  ---
  duration_ms: 0.436455
  type: 'test'
  ...
# Subtest: written for a year, site-wide, Lax, and Secure on https only
ok 374 - written for a year, site-wide, Lax, and Secure on https only
  ---
  duration_ms: 0.162683
  type: 'test'
  ...
# Subtest: format: {name} and {n} interpolate; an unknown key is left as text
ok 375 - format: {name} and {n} interpolate; an unknown key is left as text
  ---
  duration_ms: 0.834989
  type: 'test'
  ...
# Subtest: a beat on connect, then one every twenty seconds
ok 376 - a beat on connect, then one every twenty seconds
  ---
  duration_ms: 1.836569
  type: 'test'
  ...
# Subtest: a move posts once, 200ms after the last of a burst, and re-arms the beat
ok 377 - a move posts once, 200ms after the last of a burst, and re-arms the beat
  ---
  duration_ms: 1.398943
  type: 'test'
  ...
# Subtest: a hidden tab stops beating; coming back posts at once
ok 378 - a hidden tab stops beating; coming back posts at once
  ---
  duration_ms: 0.421576
  type: 'test'
  ...
# Subtest: applySet leaves this tab out and answers what changed
ok 379 - applySet leaves this tab out and answers what changed
  ---
  duration_ms: 0.912835
  type: 'test'
  ...
# Subtest: a set with rubbish in it is read for what it does carry
ok 380 - a set with rubbish in it is read for what it does carry
  ---
  duration_ms: 0.254071
  type: 'test'
  ...
# Subtest: initials, and a client id per tab
ok 381 - initials, and a client id per tab
  ---
  duration_ms: 2.539024
  type: 'test'
  ...
# Subtest: the cookie's panels read and write back the same
ok 382 - the cookie's panels read and write back the same
  ---
  duration_ms: 3.050415
  type: 'test'
  ...
# Subtest: a panel moves by whole cells into free room
ok 383 - a panel moves by whole cells into free room
  ---
  duration_ms: 0.90273
  type: 'test'
  ...
# Subtest: a move stops at the edge of the grid
ok 384 - a move stops at the edge of the grid
  ---
  duration_ms: 0.465588
  type: 'test'
  ...
# Subtest: a move goes round a panel in its way when it can
ok 385 - a move goes round a panel in its way when it can
  ---
  duration_ms: 0.355321
  type: 'test'
  ...
# Subtest: a move stops at the panel in its way, never over it
ok 386 - a move stops at the panel in its way, never over it
  ---
  duration_ms: 0.70347
  type: 'test'
  ...
# Subtest: a resize keeps at least 2×2, inside the grid, clear of the others
ok 387 - a resize keeps at least 2×2, inside the grid, clear of the others
  ---
  duration_ms: 0.264595
  type: 'test'
  ...
# Subtest: every change from every arrangement stays a valid window
ok 388 - every change from every arrangement stays a valid window
  ---
  duration_ms: 8.546742
  type: 'test'
  ...
# Subtest: arrow keys move a panel a cell; with Shift they resize it
ok 389 - arrow keys move a panel a cell; with Shift they resize it
  ---
  duration_ms: 0.27749
  type: 'test'
  ...
# Subtest: the stylesheet places the panels as the server does
ok 390 - the stylesheet places the panels as the server does
  ---
  duration_ms: 0.773452
  type: 'test'
  ...
# Subtest: each of the eight buttons is one cell of one change
ok 391 - each of the eight buttons is one cell of one change
  ---
  duration_ms: 0.698539
  type: 'test'
  ...
# Subtest: a button is offered only where its change can be made
ok 392 - a button is offered only where its change can be made
  ---
  duration_ms: 0.437757
  type: 'test'
  ...
# Subtest: the live region says the panel's size and place, counted from one
ok 393 - the live region says the panel's size and place, counted from one
  ---
  duration_ms: 0.278335
  type: 'test'
  ...
# Subtest: right to left, moves are mirrored and the buttons' sizes keep their meaning
ok 394 - right to left, moves are mirrored and the buttons' sizes keep their meaning
  ---
  duration_ms: 0.212021
  type: 'test'
  ...
# Subtest: the table: each key does its one thing
ok 395 - the table: each key does its one thing
  ---
  duration_ms: 2.254051
  type: 'test'
  ...
# Subtest: a held key is not a second press
ok 396 - a held key is not a second press
  ---
  duration_ms: 0.277492
  type: 'test'
  ...
# Subtest: a clicker works from inside a field, and nothing else does
ok 397 - a clicker works from inside a field, and nothing else does
  ---
  duration_ms: 1.375697
  type: 'test'
  ...
# Subtest: a number then Enter jumps
ok 398 - a number then Enter jumps
  ---
  duration_ms: 0.277
  type: 'test'
  ...
# Subtest: modifier keys are the browser's
ok 399 - modifier keys are the browser's
  ---
  duration_ms: 0.297153
  type: 'test'
  ...
# Subtest: keys kept before the script are pressed once it mounts, in order, and only once
ok 400 - keys kept before the script are pressed once it mounts, in order, and only once
  ---
  duration_ms: 0.330233
  type: 'test'
  ...
# Subtest: brightPart is the step, or the last part when there are fewer parts than presses
ok 401 - brightPart is the step, or the last part when there are fewer parts than presses
  ---
  duration_ms: 0.824331
  type: 'test'
  ...
# Subtest: fitSize steps down a pixel to the floor and stops there
ok 402 - fitSize steps down a pixel to the floor and stops there
  ---
  duration_ms: 0.31541
  type: 'test'
  ...
# Subtest: smaller and larger step 2px between 16 and 48
ok 403 - smaller and larger step 2px between 16 and 48
  ---
  duration_ms: 0.171741
  type: 'test'
  ...
# Subtest: the cookie is percent-encoded and keeps the panels
ok 404 - the cookie is percent-encoded and keeps the panels
  ---
  duration_ms: 1.890813
  type: 'test'
  ...
# Subtest: writePrefs sets path /p, a year, SameSite=Lax, and readPrefs reads it back
ok 405 - writePrefs sets path /p, a year, SameSite=Lax, and readPrefs reads it back
  ---
  duration_ms: 0.556347
  type: 'test'
  ...
# Subtest: the fade is on the sides with more
ok 406 - the fade is on the sides with more
  ---
  duration_ms: 0.170708
  type: 'test'
  ...
# Subtest: a part already in view is left; otherwise its top is brought up
ok 407 - a part already in view is left; otherwise its top is brought up
  ---
  duration_ms: 0.271311
  type: 'test'
  ...
# Subtest: no query finds every slide, in talk order
ok 408 - no query finds every slide, in talk order
  ---
  duration_ms: 1.945223
  type: 'test'
  ...
# Subtest: a number finds that slide first, then the slides whose number starts with it
ok 409 - a number finds that slide first, then the slides whose number starts with it
  ---
  duration_ms: 0.98585
  type: 'test'
  ...
# Subtest: words find titles whatever their case, every word needed
ok 410 - words find titles whatever their case, every word needed
  ---
  duration_ms: 0.636476
  type: 'test'
  ...
# Subtest: a slide with no title is found by its number alone
ok 411 - a slide with no title is found by its number alone
  ---
  duration_ms: 0.191492
  type: 'test'
  ...
# Subtest: gridStep moves by one across a row and by a row up and down, and stops at the ends
ok 412 - gridStep moves by one across a row and by a row up and down, and stops at the ends
  ---
  duration_ms: 0.308562
  type: 'test'
  ...
# Subtest: presses vectors
    # Subtest: no steps: everything arrives with the slide
    ok 1 - no steps: everything arrives with the slide
      ---
      duration_ms: 1.293452
      type: 'test'
      ...
    # Subtest: ties: equal values arrive on one press, in block order
    ok 2 - ties: equal values arrive on one press, in block order
      ---
      duration_ms: 0.800113
      type: 'test'
      ...
    # Subtest: 1, 1.5, 2: a midpoint is a press between its neighbours
    ok 3 - 1, 1.5, 2: a midpoint is a press between its neighbours
      ---
      duration_ms: 0.465901
      type: 'test'
      ...
    # Subtest: values compare exactly as stored
    ok 4 - values compare exactly as stored
      ---
      duration_ms: 0.294775
      type: 'test'
      ...
    # Subtest: each: one press per item, the rest of its value with the first
    ok 5 - each: one press per item, the rest of its value with the first
      ---
      duration_ms: 0.289739
      type: 'test'
      ...
    # Subtest: each with blank items: they take no press and keep their index
    ok 6 - each with blank items: they take no press and keep their index
      ---
      duration_ms: 0.171059
      type: 'test'
      ...
    # Subtest: an empty list makes no press, with or without each
    ok 7 - an empty list makes no press, with or without each
      ---
      duration_ms: 0.172202
      type: 'test'
      ...
    # Subtest: a list without each arrives whole
    ok 8 - a list without each arrives whole
      ---
      duration_ms: 0.501865
      type: 'test'
      ...
    # Subtest: two each lists tied pair up by index, the next value after the longest
    ok 9 - two each lists tied pair up by index, the next value after the longest
      ---
      duration_ms: 0.591264
      type: 'test'
      ...
    # Subtest: each with no step arrives with the slide
    ok 10 - each with no step arrives with the slide
      ---
      duration_ms: 0.410898
      type: 'test'
      ...
    # Subtest: a blank text box makes no press; an image always shows
    ok 11 - a blank text box makes no press; an image always shows
      ---
      duration_ms: 0.170538
      type: 'test'
      ...
    # Subtest: child later than container: the child keeps its own value
    ok 12 - child later than container: the child keeps its own value
      ---
      duration_ms: 0.320809
      type: 'test'
      ...
    # Subtest: child earlier than container: the child waits, and its own press goes
    ok 13 - child earlier than container: the child waits, and its own press goes
      ---
      duration_ms: 0.169778
      type: 'test'
      ...
    # Subtest: a box two containers deep takes the latest of the three
    ok 14 - a box two containers deep takes the latest of the three
      ---
      duration_ms: 0.392611
      type: 'test'
      ...
    # Subtest: an each list in a later container starts at the container's value
    ok 15 - an each list in a later container starts at the container's value
      ---
      duration_ms: 0.168616
      type: 'test'
      ...
    # Subtest: empty columns make no press
    ok 16 - empty columns make no press
      ---
      duration_ms: 0.35414
      type: 'test'
      ...
    # Subtest: columns naming each other still settle
    ok 17 - columns naming each other still settle
      ---
      duration_ms: 0.136084
      type: 'test'
      ...
    # Subtest: columns whose children all come later arrive with the first of them
    ok 18 - columns whose children all come later arrive with the first of them
      ---
      duration_ms: 0.135534
      type: 'test'
      ...
    # Subtest: a blank child does not hold a columns box at its own value
    ok 19 - a blank child does not hold a columns box at its own value
      ---
      duration_ms: 0.107272
      type: 'test'
      ...
    # Subtest: an outer columns box waits through an inner one for its first child
    ok 20 - an outer columns box waits through an inner one for its first child
      ---
      duration_ms: 0.092756
      type: 'test'
      ...
    1..20
ok 413 - presses vectors
  ---
  duration_ms: 14.389428
  type: 'test'
  ...
# Subtest: a slide with no blocks key has no presses
ok 414 - a slide with no blocks key has no presses
  ---
  duration_ms: 0.110684
  type: 'test'
  ...
# Subtest: a resync that fails is retried with backoff until it succeeds, without ever running twice at once
ok 415 - a resync that fails is retried with backoff until it succeeds, without ever running twice at once
  ---
  duration_ms: 1.912091
  type: 'test'
  ...
# Subtest: the browser's online event retries immediately, not just on the next backoff tick
ok 416 - the browser's online event retries immediately, not just on the next backoff tick
  ---
  duration_ms: 0.307925
  type: 'test'
  ...
# Subtest: reportDivergence before any failure runs the first attempt without a caller ever calling online
ok 417 - reportDivergence before any failure runs the first attempt without a caller ever calling online
  ---
  duration_ms: 1.353958
  type: 'test'
  ...
# Subtest: a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
ok 418 - a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
  ---
  duration_ms: 75.564961
  type: 'test'
  ...
# Subtest: a network failure or a 5xx is retried, not dropped
ok 419 - a network failure or a 5xx is retried, not dropped
  ---
  duration_ms: 40.551489
  type: 'test'
  ...
# Subtest: a 500 is retried the same way a network failure is, never dropped
ok 420 - a 500 is retried the same way a network failure is, never dropped
  ---
  duration_ms: 41.36312
  type: 'test'
  ...
# Subtest: flush with nothing queued waits for the save already on the wire
ok 421 - flush with nothing queued waits for the save already on the wire
  ---
  duration_ms: 0.98127
  type: 'test'
  ...
# Subtest: an edit made while a save is on the wire waits for it, and both stay owed until answered
ok 422 - an edit made while a save is on the wire waits for it, and both stay owed until answered
  ---
  duration_ms: 2.085754
  type: 'test'
  ...
# Subtest: a flush resolves only once every earlier update is answered, whichever save answers last
ok 423 - a flush resolves only once every earlier update is answered, whichever save answers last
  ---
  duration_ms: 21.073777
  type: 'test'
  ...
# Subtest: a flush through a retry waits for the retry, and a successful retry is a save
ok 424 - a flush through a retry waits for the retry, and a successful retry is a save
  ---
  duration_ms: 1.899709
  type: 'test'
  ...
# Subtest: a network failure is retried the same way
ok 425 - a network failure is retried the same way
  ---
  duration_ms: 0.730221
  type: 'test'
  ...
# Subtest: a refusal resolves the flush false and is final; later edits still save
ok 426 - a refusal resolves the flush false and is final; later edits still save
  ---
  duration_ms: 1.475541
  type: 'test'
  ...
# Subtest: edits made during a flush are not what that flush waits for
ok 427 - edits made during a flush are not what that flush waits for
  ---
  duration_ms: 1.214876
  type: 'test'
  ...
# Subtest: the queue says saving, not ok, while an answered save leaves another to send
ok 428 - the queue says saving, not ok, while an answered save leaves another to send
  ---
  duration_ms: 0.827526
  type: 'test'
  ...
# Subtest: a save is sent keepalive, and given up if it is never answered
ok 429 - a save is sent keepalive, and given up if it is never answered
  ---
  duration_ms: 22.011274
  type: 'test'
  ...
# Subtest: a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
ok 430 - a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
  ---
  duration_ms: 1.559749
  type: 'test'
  ...
# Subtest: an update bigger than maxBatchBytes still goes, on its own
ok 431 - an update bigger than maxBatchBytes still goes, on its own
  ---
  duration_ms: 0.698813
  type: 'test'
  ...
# Subtest: a save never answered is given up, retried with a real request, and its late answer ignored
ok 432 - a save never answered is given up, retried with a real request, and its late answer ignored
  ---
  duration_ms: 0.852671
  type: 'test'
  ...
# Subtest: resume sends again at once what was on the wire as the page left, without saying it failed
ok 433 - resume sends again at once what was on the wire as the page left, without saying it failed
  ---
  duration_ms: 0.992311
  type: 'test'
  ...
# Subtest: a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
ok 434 - a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
  ---
  duration_ms: 0.760375
  type: 'test'
  ...
# Subtest: a save refused with no answer says retrying only if the server cannot be reached either
ok 435 - a save refused with no answer says retrying only if the server cannot be reached either
  ---
  duration_ms: 2.027979
  type: 'test'
  ...
# Subtest: retries the browser refuses while the server answers back off, and reset once one is answered
ok 436 - retries the browser refuses while the server answers back off, and reset once one is answered
  ---
  duration_ms: 1.386401
  type: 'test'
  ...
# Subtest: reachable tries a keepalive request, then an ordinary one
ok 437 - reachable tries a keepalive request, then an ordinary one
  ---
  duration_ms: 0.424964
  type: 'test'
  ...
# Subtest: a large save is gzipped, and goes keepalive if what is sent fits
ok 438 - a large save is gzipped, and goes keepalive if what is sent fits
  ---
  duration_ms: 2.695794
  type: 'test'
  ...
# Subtest: a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
ok 439 - a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
  ---
  duration_ms: 75.353433
  type: 'test'
  ...
# Subtest: a refused save that was not gzipped is not sent again
ok 440 - a refused save that was not gzipped is not sent again
  ---
  duration_ms: 2.011015
  type: 'test'
  ...
# Subtest: the core-written structure reads as ProseMirror marks
ok 441 - the core-written structure reads as ProseMirror marks
  ---
  duration_ms: 6.62732
  type: 'test'
  ...
# Subtest: a y-prosemirror round trip preserves bold and the link
ok 442 - a y-prosemirror round trip preserves bold and the link
  ---
  duration_ms: 2.750296
  type: 'test'
  ...
# Subtest: y-prosemirror writes href as the one-key map and marks as {}
ok 443 - y-prosemirror writes href as the one-key map and marks as {}
  ---
  duration_ms: 1.099803
  type: 'test'
  ...
# Subtest: a plain-string href, written before the map shape, still reads
ok 444 - a plain-string href, written before the map shape, still reads
  ---
  duration_ms: 0.987853
  type: 'test'
  ...
# Subtest: textFragment writes the same shape as writeText
ok 445 - textFragment writes the same shape as writeText
  ---
  duration_ms: 0.666699
  type: 'test'
  ...
# Subtest: safeHref is the server allowlist, and a disallowed href never draws an anchor
ok 446 - safeHref is the server allowlist, and a disallowed href never draws an anchor
  ---
  duration_ms: 0.488198
  type: 'test'
  ...
# Subtest: parseHash splits the slide and the block, and survives a stray %
ok 447 - parseHash splits the slide and the block, and survives a stray %
  ---
  duration_ms: 1.509096
  type: 'test'
  ...
# Subtest: destroy takes the listeners off, and a second mount leaves one of each
ok 448 - destroy takes the listeners off, and a second mount leaves one of each
  ---
  duration_ms: 1.971046
  type: 'test'
  ...
# Subtest: formatHash is the inverse
ok 449 - formatHash is the inverse
  ---
  duration_ms: 0.304061
  type: 'test'
  ...
# Subtest: selecting the selected block again is heard; a new one is too
ok 450 - selecting the selected block again is heard; a new one is too
  ---
  duration_ms: 0.791571
  type: 'test'
  ...
# Subtest: each layout makes its template and its empty blocks, and passes the gate
ok 451 - each layout makes its template and its empty blocks, and passes the gate
  ---
  duration_ms: 14.949217
  type: 'test'
  ...
# Subtest: a layout goes after the slide it is asked to follow
ok 452 - a layout goes after the slide it is asked to follow
  ---
  duration_ms: 1.328789
  type: 'test'
  ...
# Subtest: an unknown layout still makes a slide, and plain New slide follows the one before
ok 453 - an unknown layout still makes a slide, and plain New slide follows the one before
  ---
  duration_ms: 0.180205
  type: 'test'
  ...
# Subtest: refresh makes each box with no text a named group in the tab order, and leaves text to its editor
ok 454 - refresh makes each box with no text a named group in the tab order, and leaves text to its editor
  ---
  duration_ms: 4.347848
  type: 'test'
  ...
# Subtest: focus on a box with no text selects it; focus in text is the text editor's to say
ok 455 - focus on a box with no text selects it; focus in text is the text editor's to say
  ---
  duration_ms: 1.339006
  type: 'test'
  ...
# Subtest: on a canvas slide focus on a box goes on to the overlay
ok 456 - on a canvas slide focus on a box goes on to the overlay
  ---
  duration_ms: 1.490693
  type: 'test'
  ...
# Subtest: Tab and Shift+Tab on the overlay walk the boxes in the slide's order
ok 457 - Tab and Shift+Tab on the overlay walk the boxes in the slide's order
  ---
  duration_ms: 1.355378
  type: 'test'
  ...
# Subtest: Tab and Shift+Tab on the overlay pass a box that is not drawn
ok 458 - Tab and Shift+Tab on the overlay pass a box that is not drawn
  ---
  duration_ms: 1.330819
  type: 'test'
  ...
# Subtest: focus(id) puts focus on the box: its text, the box itself, or on a canvas slide the overlay
ok 459 - focus(id) puts focus on the box: its text, the box itself, or on a canvas slide the overlay
  ---
  duration_ms: 0.791987
  type: 'test'
  ...
# Subtest: destroy takes every listener off the stage
ok 460 - destroy takes every listener off the stage
  ---
  duration_ms: 0.383332
  type: 'test'
  ...
# Subtest: held and restore keep focus on a box across a load
ok 461 - held and restore keep focus on a box across a load
  ---
  duration_ms: 1.005724
  type: 'test'
  ...
# Subtest: held on a canvas slide is the selected box, from its overlay
ok 462 - held on a canvas slide is the selected box, from its overlay
  ---
  duration_ms: 0.614303
  type: 'test'
  ...
# Subtest: after Delete, focus goes to the next box, else the previous, else the slide
ok 463 - after Delete, focus goes to the next box, else the previous, else the slide
  ---
  duration_ms: 1.914856
  type: 'test'
  ...
# Subtest: after a move, focus in the box's text is held across the load too
ok 464 - after a move, focus in the box's text is held across the load too
  ---
  duration_ms: 0.576012
  type: 'test'
  ...
# Subtest: textBlocks finds the text-bearing blocks and skips the rest
ok 465 - textBlocks finds the text-bearing blocks and skips the rest
  ---
  duration_ms: 1.959412
  type: 'test'
  ...
# Subtest: mountTarget is the element whose children are the paragraphs
ok 466 - mountTarget is the element whose children are the paragraphs
  ---
  duration_ms: 0.239172
  type: 'test'
  ...
# Subtest: paragraphTag keeps the renderer's own markup per type
ok 467 - paragraphTag keeps the renderer's own markup per type
  ---
  duration_ms: 0.292429
  type: 'test'
  ...
# Subtest: blockFragment finds a block's text by slide and block id
ok 468 - blockFragment finds a block's text by slide and block id
  ---
  duration_ms: 7.901854
  type: 'test'
  ...
# Subtest: notesFragment finds the slide's notes
ok 469 - notesFragment finds the slide's notes
  ---
  duration_ms: 1.412245
  type: 'test'
  ...
# Subtest: blockIDs and slideIDs are the orders on the stage and the strip
ok 470 - blockIDs and slideIDs are the orders on the stage and the strip
  ---
  duration_ms: 1.641648
  type: 'test'
  ...
# Subtest: cellFragments are a table's cells, row-major
ok 471 - cellFragments are a table's cells, row-major
  ---
  duration_ms: 2.48311
  type: 'test'
  ...
# Subtest: a load that fails leaves the stage on the slide it was showing and says so
ok 472 - a load that fails leaves the stage on the slide it was showing and says so
  ---
  duration_ms: 2.397416
  type: 'test'
  ...
# Subtest: slideAfter is the slide to show once one is gone
ok 473 - slideAfter is the slide to show once one is gone
  ---
  duration_ms: 0.6596
  type: 'test'
  ...
# Subtest: the queue words map to savestatus states, failed staying failed
ok 474 - the queue words map to savestatus states, failed staying failed
  ---
  duration_ms: 0.877346
  type: 'test'
  ...
# Subtest: a dropped batch outranks the queue, for the rest of the session
ok 475 - a dropped batch outranks the queue, for the rest of the session
  ---
  duration_ms: 0.18729
  type: 'test'
  ...
# Subtest: the editor status: the save line and the load error are two lines
ok 476 - the editor status: the save line and the load error are two lines
  ---
  duration_ms: 0.344902
  type: 'test'
  ...
# Subtest: mountSaveStatus loads estilo's module and mounts it on the line
ok 477 - mountSaveStatus loads estilo's module and mounts it on the line
  ---
  duration_ms: 1.585688
  type: 'test'
  ...
# Subtest: a save-status module that will not load says so and refuses to mount
ok 478 - a save-status module that will not load says so and refuses to mount
  ---
  duration_ms: 0.484014
  type: 'test'
  ...
# Subtest: dropTarget: before puts it ahead of the item, after behind it, null means first
ok 479 - dropTarget: before puts it ahead of the item, after behind it, null means first
  ---
  duration_ms: 0.970181
  type: 'test'
  ...
# Subtest: a drop that leaves the order as it is is no move
ok 480 - a drop that leaves the order as it is is no move
  ---
  duration_ms: 0.204357
  type: 'test'
  ...
# Subtest: dropOp is the move_slide
ok 481 - dropOp is the move_slide
  ---
  duration_ms: 0.813362
  type: 'test'
  ...
# Subtest: labelFor is the slide's first heading, else the numbered fallback
ok 482 - labelFor is the slide's first heading, else the numbered fallback
  ---
  duration_ms: 6.6316
  type: 'test'
  ...
# Subtest: flush re-points every dirty thumbnail and relabels it
ok 483 - flush re-points every dirty thumbnail and relabels it
  ---
  duration_ms: 6.581502
  type: 'test'
  ...
# Subtest: destroy takes the item-menu listener off; a second mount leaves one
ok 484 - destroy takes the item-menu listener off; a second mount leaves one
  ---
  duration_ms: 0.973321
  type: 'test'
  ...
# Subtest: plan says what to add, drop and where each item goes
ok 485 - plan says what to add, drop and where each item goes
  ---
  duration_ms: 1.120125
  type: 'test'
  ...
# Subtest: sync moves only the items out of place and keeps focus
ok 486 - sync moves only the items out of place and keeps focus
  ---
  duration_ms: 2.981474
  type: 'test'
  ...
# Subtest: sync keeps the New slide row last
ok 487 - sync keeps the New slide row last
  ---
  duration_ms: 2.61707
  type: 'test'
  ...
# Subtest: relabel keeps the link's title the label
ok 488 - relabel keeps the link's title the label
  ---
  duration_ms: 1.484094
  type: 'test'
  ...
# Subtest: a contextmenu on an item opens its menu
ok 489 - a contextmenu on an item opens its menu
  ---
  duration_ms: 0.572479
  type: 'test'
  ...
# Subtest: sync renumbers both numbers after an add, a remove and a reorder
ok 490 - sync renumbers both numbers after an add, a remove and a reorder
  ---
  duration_ms: 2.713378
  type: 'test'
  ...
# Subtest: desktop view: box and size are the block; hidden and order are always the phone map
ok 491 - desktop view: box and size are the block; hidden and order are always the phone map
  ---
  duration_ms: 1.721642
  type: 'test'
  ...
# Subtest: phone view: everything goes to set_phone, carrying the rest of the map
ok 492 - phone view: everything goes to set_phone, carrying the rest of the map
  ---
  duration_ms: 0.54343
  type: 'test'
  ...
# Subtest: the ops it makes are ones the document takes
ok 493 - the ops it makes are ones the document takes
  ---
  duration_ms: 9.341153
  type: 'test'
  ...
# Subtest: phoneMap reads only the four keys, and only well-typed
ok 494 - phoneMap reads only the four keys, and only well-typed
  ---
  duration_ms: 0.185836
  type: 'test'
  ...
# Subtest: the stored view is read defensively
ok 495 - the stored view is read defensively
  ---
  duration_ms: 0.451979
  type: 'test'
  ...
# Subtest: a ready slide is put up at once, the end at once
ok 496 - a ready slide is put up at once, the end at once
  ---
  duration_ms: 1.626983
  type: 'test'
  ...
# Subtest: a preview waiting across a newer deck never puts up the new version unready
ok 497 - a preview waiting across a newer deck never puts up the new version unready
  ---
  duration_ms: 4.671979
  type: 'test'
  ...
# Subtest: a later press supersedes a preview still waiting
ok 498 - a later press supersedes a preview still waiting
  ---
  duration_ms: 0.97278
  type: 'test'
  ...
# Subtest: a press is sent once and in order
ok 499 - a press is sent once and in order
  ---
  duration_ms: 12.41221
  type: 'test'
  ...
# Subtest: a late answer does not move a window with presses waiting
ok 500 - a late answer does not move a window with presses waiting
  ---
  duration_ms: 1.543609
  type: 'test'
  ...
# Subtest: offline presses end in one resume
ok 501 - offline presses end in one resume
  ---
  duration_ms: 1.455715
  type: 'test'
  ...
# Subtest: a failed send is offline at once
ok 502 - a failed send is offline at once
  ---
  duration_ms: 0.837019
  type: 'test'
  ...
# Subtest: a stream that comes back by itself is not a split
ok 503 - a stream that comes back by itself is not a split
  ---
  duration_ms: 0.622854
  type: 'test'
  ...
# Subtest: a window that pressed nothing takes the server's position
ok 504 - a window that pressed nothing takes the server's position
  ---
  duration_ms: 0.809074
  type: 'test'
  ...
# Subtest: a press id is 22 characters of the allowed alphabet
ok 505 - a press id is 22 characters of the allowed alphabet
  ---
  duration_ms: 2.359178
  type: 'test'
  ...
# Subtest: a press given up on is numbered below the resume that replaces it
ok 506 - a press given up on is numbered below the resume that replaces it
  ---
  duration_ms: 1.39448
  type: 'test'
  ...
# Subtest: every command carries the link and a rising number
ok 507 - every command carries the link and a rising number
  ---
  duration_ms: 1.256622
  type: 'test'
  ...
# Subtest: the black screen pressed offline goes with the resume, either way
ok 508 - the black screen pressed offline goes with the resume, either way
  ---
  duration_ms: 1.693131
  type: 'test'
  ...
# Subtest: the timer is taken from the server even where the position is the same
ok 509 - the timer is taken from the server even where the position is the same
  ---
  duration_ms: 0.434586
  type: 'test'
  ...
# Subtest: a stale timer never undoes a press still waiting for its answer
ok 510 - a stale timer never undoes a press still waiting for its answer
  ---
  duration_ms: 0.970615
  type: 'test'
  ...
# Subtest: linkAt reads the link under the cursor and nothing elsewhere
ok 511 - linkAt reads the link under the cursor and nothing elsewhere
  ---
  duration_ms: 2.640501
  type: 'test'
  ...
# Subtest: setLink marks the selection
ok 512 - setLink marks the selection
  ---
  duration_ms: 2.433089
  type: 'test'
  ...
# Subtest: setLink on a collapsed cursor inside a link replaces that link
ok 513 - setLink on a collapsed cursor inside a link replaces that link
  ---
  duration_ms: 0.949628
  type: 'test'
  ...
# Subtest: setLink with nothing selected and no link does nothing
ok 514 - setLink with nothing selected and no link does nothing
  ---
  duration_ms: 0.331535
  type: 'test'
  ...
# Subtest: removeLink clears the link under the cursor
ok 515 - removeLink clears the link under the cursor
  ---
  duration_ms: 0.740014
  type: 'test'
  ...
# Subtest: the keymap binds every documented shortcut
ok 516 - the keymap binds every documented shortcut
  ---
  duration_ms: 0.240391
  type: 'test'
  ...
# Subtest: Mod-b toggles bold through the keymap
ok 517 - Mod-b toggles bold through the keymap
  ---
  duration_ms: 1.758947
  type: 'test'
  ...
# Subtest: setLink refuses an address outside the allowlist and writes nothing
ok 518 - setLink refuses an address outside the allowlist and writes nothing
  ---
  duration_ms: 0.738724
  type: 'test'
  ...
# Subtest: the state machine runs choose → sign → put → register → op
ok 519 - the state machine runs choose → sign → put → register → op
  ---
  duration_ms: 3.018603
  type: 'test'
  ...
# Subtest: a file the deck will not take never reaches the network
ok 520 - a file the deck will not take never reaches the network
  ---
  duration_ms: 0.68707
  type: 'test'
  ...
# Subtest: alt text is required before the bytes move, unless the image is decorative
ok 521 - alt text is required before the bytes move, unless the image is decorative
  ---
  duration_ms: 0.42878
  type: 'test'
  ...
# Subtest: a step that fails stops the ones after it and reports its own code
ok 522 - a step that fails stops the ones after it and reports its own code
  ---
  duration_ms: 0.583164
  type: 'test'
  ...
# Subtest: a failure that is not ours still becomes an UploadError
ok 523 - a failure that is not ours still becomes an UploadError
  ---
  duration_ms: 0.513713
  type: 'test'
  ...
# Subtest: a second pick while one is in flight is refused, not raced
ok 524 - a second pick while one is in flight is refused, not raced
  ---
  duration_ms: 0.418933
  type: 'test'
  ...
# Subtest: an unreadable size is zero rather than a failure
ok 525 - an unreadable size is zero rather than a failure
  ---
  duration_ms: 0.441902
  type: 'test'
  ...
# Subtest: a per-call applyOp wins, so an upload lands on the block it was chosen for
ok 526 - a per-call applyOp wins, so an upload lands on the block it was chosen for
  ---
  duration_ms: 0.298623
  type: 'test'
  ...
# Subtest: checkFile takes exactly the four types
ok 527 - checkFile takes exactly the four types
  ---
  duration_ms: 0.92286
  type: 'test'
  ...
# Subtest: sha256Hex is the hex digest of the bytes
ok 528 - sha256Hex is the hex digest of the bytes
  ---
  duration_ms: 10.873021
  type: 'test'
  ...
# Subtest: refusal reads this app's JSON error shape, and survives one that is not
ok 529 - refusal reads this app's JSON error shape, and survives one that is not
  ---
  duration_ms: 0.447987
  type: 'test'
  ...
# Subtest: malformed fonts are null
ok 530 - malformed fonts are null
  ---
  duration_ms: 3.787298
  type: 'test'
  ...
# Subtest: a malformed fontFiles list is absent; a good one is rebuilt from known fields
ok 531 - a malformed fontFiles list is absent; a good one is rebuilt from known fields
  ---
  duration_ms: 2.465995
  type: 'test'
  ...
# Subtest: a malformed background is the theme default
ok 532 - a malformed background is the theme default
  ---
  duration_ms: 1.571487
  type: 'test'
  ...
# Subtest: a malformed box is null
ok 533 - a malformed box is null
  ---
  duration_ms: 0.907763
  type: 'test'
  ...
# Subtest: the phone layer keeps only its typed fields, order as a whole number
ok 534 - the phone layer keeps only its typed fields, order as a whole number
  ---
  duration_ms: 0.917948
  type: 'test'
  ...
# Subtest: assets are typed or skipped
ok 535 - assets are typed or skipped
  ---
  duration_ms: 0.586528
  type: 'test'
  ...
# Subtest: every poison update is deterministic bytes that apply to any deck
ok 536 - every poison update is deterministic bytes that apply to any deck
  ---
  duration_ms: 8.484142
  type: 'test'
  ...
# Subtest: step, items, talk and arrive outside their vocabularies are absent
ok 537 - step, items, talk and arrive outside their vocabularies are absent
  ---
  duration_ms: 0.930717
  type: 'test'
  ...
1..537
# tests 630
# suites 0
# pass 630
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 8182.240721
=== the vectors must match a fresh generation
canvas: 28 ops, 4373 bytes
columns: 23 ops, 3134 bytes
every-block: 36 ops, 3180 bytes
table: 14 ops, 1509 bytes
title-only: 6 ops, 1136 bytes
=== the editor bundle must match a fresh build
wrote internal/slides/static/editor.b84fc015e0f3efec.js (444860 bytes)
wrote internal/slides/static/fontsgate.3e08aa5807012613.js (13232 bytes)
wrote internal/slides/static/fontshold.876f3d8d396da42f.js (314 bytes)
wrote internal/slides/static/presenter.2f6958aa6804100e.js (38307 bytes)
=== go: vet, gofmt, test, migration check
go vet ./...
go: downloading amadan.net/oficina/estilo.git v0.0.0-20261124073449-49ad7d42fada
go: downloading github.com/andybalholm/brotli v1.2.7
go vet -tags browser ./internal/slidestest/
go test ./...
ok  	amadan.net/oficina/slides/cmd/slides	1.903s
?   	amadan.net/oficina/slides/cmd/slides-contract	[no test files]
?   	amadan.net/oficina/slides/gen	[no test files]
ok  	amadan.net/oficina/slides/gen/locales	0.002s
ok  	amadan.net/oficina/slides/internal/slides	90.906s
ok  	amadan.net/oficina/slides/internal/slides/assist	0.016s
ok  	amadan.net/oficina/slides/internal/slides/core	3.397s
ok  	amadan.net/oficina/slides/internal/slides/deck	0.006s
ok  	amadan.net/oficina/slides/internal/slides/fonts	0.058s
?   	amadan.net/oficina/slides/internal/slides/fonts/fontstest	[no test files]
?   	amadan.net/oficina/slides/internal/slides/icons	[no test files]
?   	amadan.net/oficina/slides/internal/slides/keymailtest	[no test files]
ok  	amadan.net/oficina/slides/internal/slides/layout	0.036s
ok  	amadan.net/oficina/slides/internal/slides/live	0.007s
ok  	amadan.net/oficina/slides/internal/slides/pdfcore	5.166s
ok  	amadan.net/oficina/slides/internal/slides/present	0.008s
ok  	amadan.net/oficina/slides/internal/slides/render	0.021s
ok  	amadan.net/oficina/slides/internal/slides/svg	0.016s
?   	amadan.net/oficina/slides/internal/slides/teamstate	[no test files]
ok  	amadan.net/oficina/slides/internal/slidestest	101.638s
?   	amadan.net/oficina/slides/scripts/writeestilo	[no test files]
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration check
rastrillo migration check: models and migrations agree
go tool fiesta spacing \
	-skip tokens.css -skip shell.css -skip theme.css -skip busy.css -skip brand/brand.css \
	internal/slides/static
python3 scripts/credits.py --check
credits: checked
gate: ok
diff --git a/fixtures/quiet-bar.mjs b/fixtures/quiet-bar.mjs
new file mode 100644
index 0000000..8363f9b
--- /dev/null
+++ b/fixtures/quiet-bar.mjs
@@ -0,0 +1,27 @@
+// quiet-bar.mjs — the slide window's control bar, out of sight while
+// presenting (templates/present.html styles it by [data-quiet] on the
+// surface; without scripts the attribute is never set and the bar stays).
+// A pointer moving, or focus entering the bar, shows it. It goes after two
+// seconds of stillness while the pointer is off it and focus is outside,
+// and when the talk moves (the slide, the step or the blackout the window
+// draws). Focus inside the bar holds it, whatever the talk does.
+// static/present.js carries a small copy: a classic script cannot import.
+export function quietBar (root, wait = 2000) {
+ let timer
+ const focused = () => root.querySelector('[slides-bar]:focus-within')
+ const hide = () => { clearTimeout(timer); root.setAttribute('data-quiet', '') }
+ const rest = () => {
+ clearTimeout(timer)
+ timer = setTimeout(() => { if (!focused() && !root.querySelector('[slides-bar]:hover')) hide() }, wait)
+ }
+ const show = () => { root.removeAttribute('data-quiet'); rest() }
+ hide()
+ root.addEventListener('pointermove', show)
+ root.addEventListener('pointerleave', () => { if (!root.hasAttribute('data-quiet')) rest() })
+ root.addEventListener('focusin', e => { if (e.target.closest('[slides-bar]')) show() })
+ root.addEventListener('focusout', e => { if (e.target.closest('[slides-bar]')) show() })
+ const seen = ['data-slide', 'data-step', 'data-blackout']
+ new MutationObserver(records => {
+ if (!focused() && records.some(r => r.target.getAttribute(r.attributeName) !== r.oldValue)) hide()
+ }).observe(root, { attributes: true, attributeFilter: seen, attributeOldValue: true })
+}
diff --git a/fixtures/slide-window.mjs b/fixtures/slide-window.mjs
index 4714c5a..328f5d7 100644
--- a/fixtures/slide-window.mjs
+++ b/fixtures/slide-window.mjs
@@ -14,6 +14,7 @@
// static/present.js.
import { createDriver, bindForms } from './talk-driver.mjs'
import { createKeys, takeEarlyKeys } from './presenter-keys.mjs'
+import { quietBar } from './quiet-bar.mjs'
import { install, reveal, fill, talkPlace, indexOf } from './talk-draw.mjs'
export function mountSlideWindow (root) {
@@ -23,6 +24,7 @@ export function mountSlideWindow (root) {
const waiting = root.querySelector('[slides-waiting]')
const region = root.querySelector('[slides-announce]')
if (!stage) return
+ quietBar(root)
// counterText is the counter's own words: the line after the label
// only a screen reader hears.
diff --git a/internal/slides/credits/assets.json b/internal/slides/credits/assets.json
index 3c1a9df..683e335 100644
--- a/internal/slides/credits/assets.json
+++ b/internal/slides/credits/assets.json
@@ -68,8 +68,8 @@
"internal/slides/static/fonts/LiberationSerif-Regular.woff2": "922f544d0eabdf45ecd389b3bb35367e670b736e40851d01e53c150352c012f2",
"internal/slides/static/fontsgate.3e08aa5807012613.js": "3e08aa58070126131fc126cb75639ed3971bb9e0ebcb1904c66d26c61e6b2760",
"internal/slides/static/fontshold.876f3d8d396da42f.js": "876f3d8d396da42f81954539f30b7200edfcde719d2920504707822f176a36ab",
- "internal/slides/static/present.js": "25107284dc802dd36a0925133fed697d1c91f0d83e106c9488ce9c54f9b18e6b",
- "internal/slides/static/presenter.f9443ddfa23f90e0.js": "f9443ddfa23f90e0d215621fa55b8fbf853d27d7a7807cb319fed1621dcab4b2",
+ "internal/slides/static/present.js": "243dd1c15e4d43367f1095112585e50ba9530dc14e735e77511996926313e7fa",
+ "internal/slides/static/presenter.2f6958aa6804100e.js": "2f6958aa6804100e9a96e13749ebaec957344987b86e5db29773b2d5071b444e",
"internal/slides/static/presskeys.js": "208b334025e82941915ff2de415c687d28d9a440e5be9db23e21667294a2c7a8",
"internal/slides/static/rastrillo.js": "13a8ca6fa9ac25833f6485ab50a521dff7bd811372025dc5141b96522b60098b",
"internal/slides/static/select.js": "059968445563a8d4be361e1734059b64b4dcfe6926cecca207a17fb28439a3ff",
diff --git a/internal/slides/static/present.js b/internal/slides/static/present.js
index 12ffc24..9823cf7 100644
--- a/internal/slides/static/present.js
+++ b/internal/slides/static/present.js
@@ -236,6 +236,34 @@
// failure does nothing either; only the newest request's failure falls
// back to an ordinary navigation.
var bar = document.querySelector('[slides-bar]');
+ // The bar is out of sight while presenting (the same behaviour as
+ // fixtures/quiet-bar.mjs, which a classic script cannot import): a
+ // moving pointer or focus in it shows it; two seconds of stillness, or
+ // the talk moving (slide, step, blackout), hide it. Focus inside holds it.
+ if (stage && root.hasAttribute('slides-surface') && bar) {
+ var quietTimer;
+ var focused = function () { return root.querySelector('[slides-bar]:focus-within'); };
+ var quiet = function () { clearTimeout(quietTimer); root.setAttribute('data-quiet', ''); };
+ var rest = function () {
+ clearTimeout(quietTimer);
+ quietTimer = setTimeout(function () {
+ if (!focused() && !root.querySelector('[slides-bar]:hover')) quiet();
+ }, 2000);
+ };
+ var unquiet = function () { root.removeAttribute('data-quiet'); rest(); };
+ var inBar = function (e) { if (e.target.closest && e.target.closest('[slides-bar]')) unquiet(); };
+ quiet();
+ root.addEventListener('pointermove', unquiet);
+ root.addEventListener('pointerleave', function () { if (!root.hasAttribute('data-quiet')) rest(); });
+ root.addEventListener('focusin', inBar);
+ root.addEventListener('focusout', inBar);
+ new MutationObserver(function (records) {
+ if (focused()) return;
+ for (var i = 0; i < records.length; i++) {
+ if (records[i].target.getAttribute(records[i].attributeName) !== records[i].oldValue) return quiet();
+ }
+ }).observe(root, { attributes: true, attributeOldValue: true, attributeFilter: ['data-slide', 'data-step', 'data-blackout'] });
+ }
function page(href, init, push, fallback) {
var mine = ++newest;
fetchPage(href, init)
diff --git a/internal/slides/static/presenter.2f6958aa6804100e.js b/internal/slides/static/presenter.2f6958aa6804100e.js
new file mode 100644
index 0000000..31ccebc
--- /dev/null
+++ b/internal/slides/static/presenter.2f6958aa6804100e.js
@@ -0,0 +1,4 @@
+var qe=/^[\t\n\v\f\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*$/,Me=e=>(Array.isArray(e)?e:[]).map(t=>t&&typeof t.t=="string"?t.t:"").join("");function Te(e){let t=[];return(Array.isArray(e)?e:[]).forEach((n,r)=>{qe.test(Me(n))||t.push(r)}),t}var me=e=>typeof e.step=="number"&&e.step>0?e.step:0;function he(e){let t=e.props&&e.props.children;return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}function ut(e){let t=new Map;for(let r of e)t.set(r.id,r);let n=new Map;for(let r of e)if(r.type==="columns")for(let s of he(r))t.has(s)&&s!==r.id&&!n.has(s)&&n.set(s,r.id);return{byID:t,parent:n}}function dt(e,t){let n=me(t),r=new Set([t.id]);for(let s=e.parent.get(t.id);s!==void 0&&!r.has(s);s=e.parent.get(s))r.add(s),n=Math.max(n,me(e.byID.get(s)));return n}function ge(e,t,n){switch(t.type){case"list":return Te(t.text).length>0;case"heading":case"text":case"quote":return!qe.test((Array.isArray(t.text)?t.text:[]).map(Me).join(`
+`));case"columns":n.add(t.id);for(let r of he(t)){let s=e.byID.get(r);if(s&&!n.has(r)&&ge(e,s,n))return!0}return!1}return!0}function Pe(e,t,n){let r=dt(e,t);if(t.type!=="columns")return r;n.add(t.id);let s=1/0;for(let l of he(t)){let c=e.byID.get(l);!c||n.has(l)||!ge(e,c,new Set)||(s=Math.min(s,Pe(e,c,n)))}return s>r&&s!==1/0?s:r}function Ce(e){return ft(e).out}function ft(e){let t=Array.isArray(e&&e.blocks)?e.blocks:[],n=ut(t),r=[],s=[];for(let i of t){if(me(i)===0||!ge(n,i,new Set))continue;let m={id:i.id,value:Pe(n,i,new Set),items:null};i.type==="list"&&i.items==="each"&&(m.items=Te(i.text)),r.push(m),s.includes(m.value)||s.push(m.value)}s.sort((i,m)=>i-m);let l=[],c=[];for(let i of s){let m=1;for(let f of r)f.value===i&&f.items&&f.items.length>m&&(m=f.items.length);for(let f=0;f<m;f++){let a=[];for(let y of r)y.value===i&&(y.items?f<y.items.length&&a.push({block:y.id,item:y.items[f]}):f===0&&a.push({block:y.id,item:-1}));l.push(a),c.push(i)}}return{out:l,at:c}}var ne=e=>Array.isArray(e&&e.slides)?e.slides:[],ye=(e,t)=>e.findIndex(n=>n.id===t),be=e=>Ce(e).length,Q=(e,t,n=0)=>({slide:e.id,step:n,mode:t,black:!1}),xe=e=>({slide:"",step:0,mode:e,black:!1}),Le=(e,t)=>Math.min(Math.max(e,0),t);function W(e,t){let n=[];return ne(e).forEach((r,s)=>{r.talk==="parked"||r.talk==="full"&&t!=="full"||n.push(s)}),n}function re(e,t,n){let r=ne(e),s=W(e,t.mode);switch(n.op){case"black":return{...t,black:!t.black};case"mode":return{...t,mode:t.mode==="full"?"core":"full"};case"goto":{let l=n.slide?ye(r,n.slide):-1;return l<0||r[l].talk==="parked"?t:Q(r[l],r[l].talk==="full"?"full":t.mode)}case"first":case"last":return s.length?Q(r[n.op==="first"?s[0]:s[s.length-1]],t.mode):xe(t.mode);case"next":case"back":return pt(e,t,n.op==="next",s)}return t}function pt(e,t,n,r){let s=ne(e);if(!r.length)return xe(t.mode);let l=ye(s,t.slide);if(l<0)return{...we(e,t),black:!1};let c=be(s[l]),i=Le(t.step,c);if(n&&i<c)return{...t,step:i+1,black:!1};if(!n&&i>0)return{...t,step:i-1,black:!1};if(n){let m=r.find(f=>f>l);if(m!==void 0)return Q(s[m],t.mode)}else{let m=r.findLast(f=>f<l);if(m!==void 0)return Q(s[m],t.mode,be(s[m]))}return{...t,step:i,black:!1}}function we(e,t){return se(e,t,-1)}function se(e,t,n){let r=ne(e),s=W(e,t.mode);if(!s.length)return xe(t.mode);let l=m=>({...Q(r[m],t.mode),black:t.black}),c=s[s.length-1];if(t.slide==="")return l(s[0]);let i=ye(r,t.slide);if(i<0&&n>=0){let m=W(e,"full").slice(n).find(f=>s.includes(f));return l(m??c)}return i<0?l(c):r[i].talk==="parked"?l(s.find(m=>m>i)??c):{...t,step:Le(t.step,be(r[i]))}}var mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function ht(){let e=new Uint8Array(22);globalThis.crypto.getRandomValues(e);let t="";for(let n of e)t+=mt[n&63];return t}var gt={back:"prev",black:"blackout"};function bt(e){let t={op:gt[e.op]||e.op};return e.slide&&(t.slide=String(e.slide)),t}function ke(e,t){return!e||!t?e!==t:e.slide!==t.slide||(e.step||0)!==(t.step||0)||e.mode!==t.mode||!!e.black!=!!t.black}var yt=(e,t)=>{let n=setTimeout(t,e);return()=>clearTimeout(n)};function Ie({post:e,stream:t,now:n=()=>Date.now(),after:r=yt,onPosition:s=()=>{},onStatus:l=()=>{},onDeckSeq:c=()=>{},onTimer:i=()=>{},makeID:m=ht}){let f=!0,a=[],y=null,k=!1,h=null,o=null,b=0,w=null,S=null,M=m(),T=0,P=A=>({id:m(),n:++T,fields:A});function L(){return f?"online":"offline"}function I(A){let p=f;f=A==="online",p!==f&&l(L())}function D(A){!A||typeof A.seq!="number"||(typeof A.deckSeq=="number"&&c(A.deckSeq),(!o||A.seq>o.seq)&&(o=A))}function N(){!f||y||a.length||!o||o.seq<=b||(b=o.seq,"timerAt"in o&&i(o.timerAt===null?null:Number(o.timerAt)),ke(o,h)&&(h={slide:o.slide,step:o.step||0,mode:o.mode,black:!!o.black},s({...h,seq:o.seq})))}function _(){if(!f||y||!a.length)return;let A=a[0],p=n(),E={item:A};y=E;let O=r(3e3,()=>{y===E&&x()});Promise.resolve().then(()=>e({...A.fields,press:A.id,link:M,n:String(A.n)})).then(R=>{if(y===E){if(O(),n()-p>3e3){x();return}y=null,a.shift(),D(R),a.length?_():N()}},()=>{y===E&&(O(),x())})}function x(){(y||a.length)&&(k=!0),y=null,a=[],I("offline"),d()}function d(){w||f||!k||(w=r(2e3,()=>{w=null,!(f||!k)&&u()}))}function u(){if(w&&(w(),w=null),I("online"),k&&h){k=!1,a=[P({op:"resume",at_slide:h.slide,at_step:String(h.step||0),at_mode:h.mode,at_black:h.black?"true":"false"})],_();return}N()}function v(){S&&(S(),S=null)}return t({open(){v(),f||u()},error(){!f||S||(S=r(5e3,()=>{S=null,f&&x()}))},position(A){v(),D(A),f?N():u()}}),{press(A,p){if(p&&(h={...p}),!f){k=!0,d();return}a.push(P(bt(A))),_()},resume(A){h=A?{...A}:null},status:L}}function xt(e){let t=[];for(let n=1;n<=e;n++)t.push({id:"press"+n,type:"image",step:n});return t}function wt(e,t){let n=Array.isArray(e.slides)?e.slides:[];return{deckSeq:Number(e.deckSeq)||0,arrive:e.arrive||"appear",etag:t,slides:n,byID:new Map(n.map(r=>[r.id,r])),view:{slides:n.map(r=>({id:r.id,talk:r.full?"full":"",blocks:xt(Number(r.presses)||0)}))},ready:new Set,failed:new Set,waiters:new Map,uploaded:e.uploaded||null}}var kt=[];function At(e){let t=new Image;return t.decoding="async",t.src=e,kt.push(t),t.decode()}async function Ne({href:e,fonts:t=()=>globalThis.slidesFonts,onProgress:n=()=>{},from:r=0,fetchImpl:s=(...c)=>globalThis.fetch(...c),picture:l=At}){let c=typeof t=="function"?t:()=>t;async function i(h){let o={Accept:"application/json"};h&&(o["If-None-Match"]=h);let b=await s(e,{credentials:"same-origin",cache:"no-store",headers:o});if(b.status===304)return null;if(!b.ok)throw new Error("talk: "+b.status);return wt(await b.json(),b.headers.get("ETag"))}async function m(h,o){try{let b=c();b&&typeof b.learnUploaded=="function"&&h.uploaded&&b.learnUploaded(h.uploaded),await Promise.all([b&&b.prepareSection?b.prepareSection(o.html):null,...(Array.isArray(o.assets)?o.assets:[]).map(l)]),h.ready.add(o.id),h.failed.delete(o.id);let w=h.waiters.get(o.id)||[];h.waiters.delete(o.id);for(let S of w)S(!0)}catch{h.failed.add(o.id)}}async function f(h,o,b){let w=h.slides.length,S=[];for(let P=0;P<w;P++)S.push(h.slides[(o+P)%w]);let M=P=>b&&n({done:h.ready.size,total:w,failed:h.failed.size,finished:P}),T=0;M(!1),await Promise.all(Array.from({length:Math.min(4,w)},async()=>{for(;T<w;){let P=S[T++];h.ready.has(P.id)||(await m(h,P),M(!1))}})),M(!0)}let a=await i(null),y=null,k=null;return f(a,Math.max(0,Math.min(r,a.slides.length-1)),!0),{get deckSeq(){return a.deckSeq},get arrive(){return a.arrive},get view(){return a.view},get slides(){return a.slides},get pending(){return y?y.deckSeq:0},get pendingView(){return y?y.view:null},slide(h){return a.byID.get(h)||null},has(h){return a.ready.has(h)},ready(h){if(a.ready.has(h))return Promise.resolve(!0);if(!a.byID.has(h))return Promise.resolve(!1);let o=a;return new Promise(b=>{o.waiters.has(h)||o.waiters.set(h,[]),o.waiters.get(h).push(b)})},refresh(){if(k)return k;let h=y||a;return k=i(h.etag).then(async o=>!o||o.deckSeq<=h.deckSeq?!1:(y=o,await f(o,0,!1),!0)).catch(()=>!1).finally(()=>{k=null}),k},adopt(){if(!y)return null;let h=a.view;for(let o of y.slides){let b=a.byID.get(o.id);b&&a.ready.has(o.id)&&b.html===o.html&&y.ready.add(o.id)}return a=y,y=null,f(a,0,!1),h},retry(){for(let h of[a,y])h&&h.failed.size&&f(h,0,h===a)}}}function St(e,t){for(let n of e.querySelectorAll("[data-press]"))n.removeAttribute("data-arriving"),Number(n.getAttribute("data-press"))>t?n.setAttribute("data-waiting",""):n.removeAttribute("data-waiting")}function ee(e,t,n){let r=document.createElement("template");r.innerHTML=t,St(r.content,n),e.replaceChildren(r.content)}function De(e){e.target===e.currentTarget&&(e.currentTarget.removeAttribute("data-arriving"),e.currentTarget.removeEventListener("animationend",De))}function ie(e,t){for(let n of e.querySelectorAll("[data-arriving]"))n.removeAttribute("data-arriving");for(let n of e.querySelectorAll("[data-press]"))Number(n.getAttribute("data-press"))>t?n.setAttribute("data-waiting",""):n.hasAttribute("data-waiting")&&(n.removeAttribute("data-waiting"),n.setAttribute("data-arriving",""),n.addEventListener("animationend",De))}function F(e,t){return String(e||"").replace(/\{(\w+)\}/g,(n,r)=>r in t?String(t[r]):n)}function ae(e,t,n){let r=W(e,t);if(!r.length)return{n:n+1,total:e.slides.length};let s=1;return r.forEach((l,c)=>{l<=n&&(s=c+1)}),{n:s,total:r.length}}function V(e,t){return e.slides.findIndex(n=>n.id===t)}function Ae(e,t){e&&e.setAttribute(t,e.getAttribute(t)==="a"?"b":"a")}function Oe(e){let t=0;return function(r,s,l,c){let i=++t,m=r.deckSeq,f=()=>{if(i!==t||r.deckSeq!==m||s!==null&&!r.has(s))return;let a=s===null?null:r.slide(s);s!==null&&!a||e({html:a?a.html:null,step:l,words:c,seq:m})};s===null||r.has(s)?f():r.ready(s).then(a=>{a&&f()})}}var vt=3e4,Et=1500,ze=3e3,_e=(e,t)=>W(e,"full").indexOf(V(e,t)),Re=e=>new Promise(t=>setTimeout(t,e));function qt(e){return t=>{let n=null,r=!1,s=()=>{n||r||(n=new EventSource(e),n.onopen=()=>t.open(),n.onerror=()=>{t.error(),n&&n.readyState===EventSource.CLOSED&&(n=null,setTimeout(s,ze))},n.addEventListener("slide",l=>{let c;try{c=JSON.parse(l.data)}catch{return}if(c.ended){location.reload();return}if(typeof c.slideId!="string")return;let i={slide:c.slideId,step:Number(c.step)||0,mode:c.mode,black:!!c.blackout,seq:Number(c.seq)||0};"timerAt"in c&&(i.timerAt=c.timerAt),t.position(i)}))};return addEventListener("pagehide",()=>{r=!0,n&&(n.close(),n=null)}),addEventListener("pageshow",l=>{let c=r&&l.persisted;r=!1,c&&setTimeout(s,0)}),s(),()=>{r=!0,n&&n.close()}}}function Mt(e,t){return n=>{let r=new URLSearchParams(n);return t&&r.set("t",t),fetch(e,{method:"POST",body:r,credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}}).then(s=>{if(s.status===410&&location.reload(),!s.ok)throw new Error("press: "+s.status);return s.json()})}}function oe({root:e,talkHref:t,streamHref:n,action:r,token:s,draw:l,onStatus:c=()=>{},onProgress:i=()=>{},onPressed:m=()=>{},onTimer:f=()=>{}}){let a=null,y=null,k=null,h=null,o=0,b=0,w=[];function S(x){let d=k,u=o!==a.deckSeq;k=x,h=null,o=a.deckSeq,l(x,d,{fresh:u,store:a})}function M(x){let d=++b;if(h=x,!x.slide||a.has(x.slide)||x.slide===k.slide&&o===a.deckSeq){S(x);return}a.ready(x.slide).then(u=>{u&&d===b&&S(x)})}function T(){return a.refresh().then(x=>(a.pending&&e.setAttribute("data-deck-pending",String(a.pending)),x))}function P(x){let d=_e(a.view,x.slide);return a.adopt(),e.removeAttribute("data-deck-pending"),se(a.view,x,d)}function L(x){if(!a){w.push(x);return}if(x.op==="timer-reset"){y.press(x,null);return}let d=h||k,u=re(a.view,d,x),v=a.pendingView;if(v){let A=re(v,se(v,d,_e(a.view,d.slide)),x);if(u.slide!==d.slide||A.slide!==d.slide){let p=P(d);u=re(a.view,p,x)}}m(x,d,u),y.press(x,u),M(u)}function I(x){if(!a){w.push({jump:x});return}let d=h||k,u=W(a.view,d.mode)[x-1];u!==void 0&&L({op:"goto",slide:a.view.slides[u].id})}async function D(x){let d=++b,u=h||k,v=()=>!x.slide||!!a.slide(x.slide)||!!a.pendingView&&V(a.pendingView,x.slide)>=0;if(!x.slide){if(await T(),d!==b)return;a.pendingView&&P(u),M({slide:"",step:0,mode:x.mode==="full"?"full":"core",black:!!x.black});return}if(x.slide!==u.slide&&y.status()==="online"&&await Promise.race([T(),Re(Et)]),v()||await T(),d!==b||!v())return;let A=a.pendingView;A&&V(A,x.slide)>=0&&(x.slide!==u.slide||!a.slide(x.slide))&&P(u),M(we(a.view,x))}function N(){a&&y&&y.status()==="online"&&(T(),a.retry())}async function _(){let x={number:Number(e.getAttribute("data-slide"))||0,step:Number(e.getAttribute("data-step"))||0,mode:e.getAttribute("data-mode")==="full"?"full":"core",black:e.getAttribute("data-blackout")==="true"};for(;;)try{a=await Ne({href:t,onProgress:i,from:Math.max(0,x.number-1)});break}catch{c("offline"),await Re(ze)}let d=a.slides.find(u=>u.number===x.number);k={slide:d?d.id:"",step:x.step,mode:x.mode,black:x.black},o=a.deckSeq,y=Ie({post:Mt(r,s),stream:qt(n),onPosition:D,onStatus:u=>{c(u),u==="online"&&a.retry()},onDeckSeq:u=>{u>a.deckSeq&&u>a.pending&&T()},onTimer:f}),y.resume(k),c(y.status());for(let u of w.splice(0))u.jump?I(u.jump):L(u);setInterval(N,vt),addEventListener("focus",N)}return _(),{move:L,jump:I,timerReset(){L({op:"timer-reset"})},get store(){return a},get position(){return h||k},differs:ke}}var Ue={next:"next",prev:"back",first:"first",last:"last",blackout:"black",mode:"mode"};function le(e,t,n,r=()=>{}){let s=new URL(t,location.href).pathname;e.addEventListener("submit",l=>{let c=l.target;if(!c||(c.method||"").toLowerCase()!=="post"||new URL(c.action,location.href).pathname!==s)return;let i=c.elements.op&&c.elements.op.value;if(i==="timer-reset")l.preventDefault(),n.timerReset();else if(i==="goto"&&c.elements.slide){let m=Number(c.elements.slide.value),f=n.store&&n.store.slides.find(a=>a.number===m);if(!f)return;l.preventDefault(),n.move({op:"goto",slide:f.id})}else if(Ue[i])l.preventDefault(),n.move({op:Ue[i]});else return;r(i)})}var Se={ArrowRight:"next"," ":"next",PageDown:"next",ArrowLeft:"back",PageUp:"back",Home:"first",End:"last",b:"black",B:"black",".":"black",o:"mode",O:"mode"},Tt=new Set(["PageDown","PageUp"]);function Pt(e){if(!e)return!1;if(e.isContentEditable)return!0;let t=String(e.tagName||"").toUpperCase();return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}function ce({act:e}){let t="";return function(r){if(r.metaKey||r.ctrlKey||r.altKey)return;let s=r.key;if(s==="Escape"){t="",e({escape:!0});return}if(Pt(r.target)&&!Tt.has(s))return;if(r.repeat){s in Se&&r.preventDefault();return}if(/^[0-9]$/.test(s)){t=(t+s).slice(-4),r.preventDefault();return}if(s==="Enter"){if(!t)return;let c=Number(t);t="",r.preventDefault(),c>0&&e({jump:c});return}t="";let l=null;s in Se?l={move:{op:Se[s]}}:s==="p"||s==="P"?l={open:"presenter"}:(s==="r"||s==="R")&&(l={timer:"reset"}),l&&(r.preventDefault(),e(l))}}function ue(e,t=globalThis){let n=t&&typeof t.slidesEarlyKeys=="function"?t.slidesEarlyKeys:null;if(!n)return 0;let r=n()||[];for(let s of r)e({key:s.key,repeat:!!s.repeat,target:s.target,metaKey:!1,ctrlKey:!1,altKey:!1,preventDefault(){}});return r.length}var Ct=e=>String(e||"").toLowerCase().split(/\s+/).filter(Boolean);function Lt(e,t){let n=String(t||"").trim();if(!n)return e.slice();if(/^\d+$/.test(n)){let s=e.filter(c=>String(c.number)===n),l=e.filter(c=>String(c.number)!==n&&String(c.number).startsWith(n));return s.concat(l)}let r=Ct(n);return e.filter(s=>{let l=String(s.title||"").toLowerCase();return r.every(c=>l.includes(c))})}function It(e,t,n,r){return t==="ArrowRight"?Math.min(e+1,r-1):t==="ArrowLeft"?Math.max(e-1,0):t==="ArrowDown"?Math.min(e+n,r-1):t==="ArrowUp"?e-n<0?-1:e-n:e}function j(e,t,n){let r=document.createElement(e);return t&&r.setAttribute(t,""),n!==void 0&&(r.textContent=n),r}function Ke({root:e,talk:t,position:n,go:r}){let s=e.dataset,l=e.querySelector("[presenter-pos]"),c=l.parentElement;l.setAttribute("role","button"),l.setAttribute("aria-haspopup","dialog"),l.setAttribute("aria-expanded","false");let i=j("div","presenter-picker");i.id="presenter-picker",i.hidden=!0,i.setAttribute("role","dialog"),i.setAttribute("aria-label",s.textPickTitle),l.setAttribute("aria-controls",i.id);let m=j("label","presenter-picker-field"),f=j("input");f.type="text",f.autocomplete="off",f.placeholder=s.textPickField,f.setAttribute("aria-label",s.textPickField);let a=j("span","presenter-picker-count");m.append(f,a);let y=j("div","presenter-picker-grid"),k=j("p","presenter-picker-none");k.setAttribute("role","status"),a.setAttribute("role","status"),i.append(m,k,y),c.append(i);let h=new Map,o=new WeakMap,b=new IntersectionObserver(d=>{for(let u of d){if(!u.isIntersecting)continue;let v=u.target.querySelector("img");v&&!v.getAttribute("src")&&(v.src=v.getAttribute("data-src")),b.unobserve(u.target)}},{root:y,rootMargin:"0px 0px 80px 0px"});function w(d){let u=h.get(d.id);if(!u){u=j("button","presenter-pick-item"),u.type="button",u.setAttribute("data-id",d.id);let v=j("img");v.alt="",v.width=1920,v.height=1080,v.loading="lazy",u.append(v,j("span")),u.addEventListener("click",()=>N(h.get(d.id).slide)),b.observe(u),h.set(d.id,u)}return S(u,d),u}function S(d,u){d.slide=u;let v=o.get(d);if(!v||v.number!==u.number||v.title!==u.title||v.full!==!!u.full){let p=d.querySelector("span");p.replaceChildren(j("b","",String(u.number)),u.title||""),u.full&&p.append(" ",j("em","","\xB7 "+s.textPickFull))}let A=d.querySelector("img");if(!v||v.thumb!==u.thumb||v.html!==u.html){let p=u.thumb||"";v&&p&&(p+=(p.includes("?")?"&":"?")+"v="+encodeURIComponent(String(t.seq||0))),A.setAttribute("data-src",p),A.getAttribute("src")&&(A.src=p)}o.set(d,{number:u.number,title:u.title,full:!!u.full,thumb:u.thumb,html:u.html})}let M=[];function T(){let d=t.slides||[],u=Lt(d,f.value);M=u;let v=(n()||{}).number;a.textContent=f.value.trim()?F(s.textPickMatches,{n:u.length,total:d.length}):F(s.textPickCount,{total:d.length}),k.textContent=u.length?"":s.textPickNone,y.hidden=u.length===0,y.replaceChildren(...u.map(A=>{let p=w(A);return A.number===v?p.setAttribute("aria-current","true"):p.removeAttribute("aria-current"),p}))}function P(){let d=y.querySelector("[aria-current]");d?y.scrollTop=Math.max(0,d.offsetTop-(y.clientHeight-d.offsetHeight)/2):y.scrollTop=0}function L(){return!i.hidden}function I(){f.value="",i.hidden=!1,l.setAttribute("aria-expanded","true"),T(),P(),f.focus({preventScroll:!0})}function D(d=!0){L()&&(i.hidden=!0,l.setAttribute("aria-expanded","false"),d&&l.focus({preventScroll:!0}))}function N(d){D(),r(d)}l.addEventListener("keydown",d=>{d.key!==" "||d.metaKey||d.ctrlKey||d.altKey||(d.preventDefault(),d.stopPropagation(),d.repeat||_())});function _(){L()?D():I()}l.addEventListener("click",d=>{d.preventDefault(),_()}),f.addEventListener("input",()=>{T(),y.scrollTop=0}),i.addEventListener("keydown",d=>{d.key==="PageDown"||d.key==="PageUp"||(d.stopPropagation(),d.key==="Escape"?(d.preventDefault(),D()):d.key==="Enter"&&d.target===f?(d.preventDefault(),M.length&&N(M[0])):d.key.startsWith("Arrow")&&(d.target===f?d.key==="ArrowDown":y.contains(d.target))&&x(d))});function x(d){let u=[...y.children];if(!u.length)return;d.preventDefault();let v;if(d.target===f)v=0;else{let A=u.indexOf(d.target),p=u.filter(E=>E.offsetTop===u[0].offsetTop).length||1;v=It(A,d.key,p,u.length)}v<0?f.focus():u[v].focus()}return document.addEventListener("pointerdown",d=>{L()&&!i.contains(d.target)&&!l.contains(d.target)&&D(!1)}),{open:I,close:D,isOpen:L}}var Fe="slides-presenter",H="0,0,7,8;0,8,7,4;7,0,5,12";function Nt(e,t){let n=Array.isArray(e)?e.length:Number(e)||0;return Math.max(0,Math.min(Math.floor(Number(t))||0,n-1))}function $e(e,t){let n=Math.round(Number(e)/2)*2;return Math.max(16,Math.min(48,(Number.isFinite(n)?n:24)+(t<0?-2:2)))}function Dt(e,t){let n=Math.max(16,Math.min(48,Math.round(e)));for(;n>16&&t(n);)n--;return n}function Ot(e){let t=String(e??"").split(".");if(t.length!==3||t[0]!=="fit"&&t[0]!=="scroll")return null;let n=Number(t[1]);return!Number.isInteger(n)||n<16||n>48||n%2?null:{notes:t[0],size:n,panels:t[2]}}function _t(e){return encodeURIComponent(`${e.notes}.${e.size}.${e.panels||H}`)}function je(e=globalThis.document){try{for(let t of String(e?.cookie||"").split(";")){let n=t.indexOf("=");if(n>0&&t.slice(0,n).trim()===Fe)return Ot(decodeURIComponent(t.slice(n+1).trim()))}}catch{}return null}function Rt(e,t=globalThis.document,n=globalThis.location){let r=n?.protocol==="https:"?"; Secure":"";try{t&&(t.cookie=`${Fe}=${_t(e)}; Path=/p; Max-Age=31536000; SameSite=Lax${r}`)}catch{}}function Ut(e,t,n){let r=e>1,s=e+t<n-1;return r&&s?"both":r?"top":s?"bottom":""}function zt(e,t,n,r){return e>=n&&t<=n+r?null:Math.max(0,e)}function He({root:e,prefs:t,savePrefs:n=Rt}){let r=e.querySelector("[presenter-notes]"),s=b=>e.querySelector("[presenter-notes-"+b+"]"),l={fit:s("fit"),scroll:s("scroll"),smaller:s("smaller"),larger:s("larger")},c=null,i={notes:t.notes==="scroll"?"scroll":"fit",size:t.size||24,panels:t.panels||H};function m(){r.setAttribute("data-fade",Ut(r.scrollTop,r.clientHeight,r.scrollHeight))}function f(){let b=r.querySelector('[data-part="now"]');if(!b)return;let w=r.getBoundingClientRect().top-r.scrollTop,S=b.getBoundingClientRect().top-w,M=zt(S-12,S+b.offsetHeight,r.scrollTop,r.clientHeight);M!==null&&(r.scrollTop=M)}function a(){r.setAttribute("data-notes-mode",i.notes);let b=i.size;i.notes==="fit"&&(b=Dt(i.size,S=>(r.style.fontSize=S+"px",r.scrollHeight>r.clientHeight))),r.style.fontSize=b+"px";let w=r.scrollHeight>r.clientHeight;r.setAttribute("data-notes-scrolls",w?"true":"false"),w?f():r.scrollTop=0,m(),l.fit?.setAttribute("aria-pressed",i.notes==="fit"?"true":"false"),l.scroll?.setAttribute("aria-pressed",i.notes==="scroll"?"true":"false")}function y(b){Object.assign(i,b),n({notes:i.notes,size:i.size,panels:i.panels}),a()}if(l.fit?.addEventListener("click",()=>y({notes:"fit"})),l.scroll?.addEventListener("click",()=>y({notes:"scroll"})),l.smaller?.addEventListener("click",()=>y({size:$e(i.size,-1)})),l.larger?.addEventListener("click",()=>y({size:$e(i.size,1)})),r.addEventListener("scroll",m),typeof ResizeObserver=="function"){let b="";new ResizeObserver(()=>{let w=r.clientWidth+"x"+r.clientHeight;w!==b&&(b=w,a())}).observe(r)}function k(b,w){let S=Array.isArray(b)?b:[],M=JSON.stringify(S);if(M!==c&&(r.scrollTop=0),c=M,S.length){let T=Nt(S,w);r.replaceChildren(...S.map((P,L)=>{let I=document.createElement("section");return I.setAttribute("presenter-part",""),S.length>1&&I.setAttribute("data-part",L<T?"past":L>T?"later":"now"),I.innerHTML=P,I}))}else{let T=document.createElement("p");T.setAttribute("presenter-nonotes",""),T.textContent=e.dataset.textNonotes||"",r.replaceChildren(T)}a()}function h(){c=null,r.scrollTop=0,r.replaceChildren()}a();function o(b){y({panels:b})}return{show:k,clear:h,setPanels:o}}var $=12,Ze=2,fe=["now","next","notes"],ve="(min-width: 720px) and (min-height: 560px)";function Be(e,t){return e.x<t.x+t.w&&t.x<e.x+e.w&&e.y<t.y+t.h&&t.y<e.y+e.h}function Xe(e){return e.x>=0&&e.y>=0&&e.w>=Ze&&e.h>=Ze&&e.x+e.w<=$&&e.y+e.h<=$}function pe(e){let t=String(e??"").split(";");if(t.length!==fe.length)return null;let n=[];for(let r of t){let s=r.split(",");if(s.length!==4||!s.every(a=>/^[0-9]{1,2}$/.test(a)))return null;let[l,c,i,m]=s.map(Number),f={x:l,y:c,w:i,h:m};if(!Xe(f))return null;n.push(f)}for(let r=0;r<n.length;r++)for(let s=r+1;s<n.length;s++)if(Be(n[r],n[s]))return null;return n}function G(e){return e.map(t=>[t.x,t.y,t.w,t.h].join(",")).join(";")}function de(e){let t=Math.round(Number(e)||0);return Math.max(-$,Math.min($,t))}function We(e,t,n){let r=e.map(s=>({...s}));for(let[s,l]of n){let c=Math.sign(l);for(let i=0;i<Math.abs(l);i++){let m={...r[t],[s]:r[t][s]+c};if(!Xe(m)||r.some((f,a)=>a!==t&&Be(m,f)))break;r[t]=m}}return r}function te(e,t,n={}){if(!e[t])return e.map(y=>({...y}));let[r,s]=[["x",de(n.dx)],["y",de(n.dy)]],[l,c]=[["w",de(n.dw)],["h",de(n.dh)]],i={...e[t]};for(let[y,k]of[r,s,l,c])i[y]+=k;let m=y=>["x","y","w","h"].reduce((k,h)=>k+Math.abs(y[t][h]-i[h]),0),f=We(e,t,[r,s,l,c]),a=We(e,t,[s,r,c,l]);return m(a)<m(f)?a:f}function Ge(e,t){let n={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]}[e];if(!n)return null;let[r,s]=n;return t?r?{dw:r}:{dh:s}:r?{dx:r}:{dy:s}}var Ve={left:{dx:-1},right:{dx:1},up:{dy:-1},down:{dy:1},narrower:{dw:-1},wider:{dw:1},shorter:{dh:-1},taller:{dh:1}};function Ye(e){return Object.hasOwn(Ve,e)?{...Ve[e]}:null}function Je(e,t,n){return!n||!e[t]?!1:G(te(e,t,n))!==G(e)}function Ee(e,t,n){if(!e)return null;let r={...e};return t&&r.dx&&(r.dx=-r.dx),t&&r.dw&&!n&&(r.dw=-r.dw),r}function Qe(e,t,n){let r={name:t,w:n.w,h:n.h,x:n.x+1,y:n.y+1};return String(e||"").replace(/\{(\w+)\}/g,(s,l)=>l in r?String(r[l]):s)}function et(e){let t=[`@media ${ve} {`];e.forEach((c,i)=>{t.push(` [presenter-panel="${fe[i]}"] { grid-area: ${c.y+1} / ${c.x+1} / span ${c.h} / span ${c.w}; }`)});let[n,r]=e,s=`${n.w} / ${$} * 100cqw - 32px, (${n.h} / ${$} * 100cqh - 16px) * 16 / 9`,l=G(e)===H;return l&&(s+=`, (${r.h} / ${$} * 100cqh - 48px) * 2 * 16 / 9`),t.push(` [presenter-panel] { --p-now: min(${s}); }`),t.push(` [presenter-panel="next"] [presenter-frame] { inline-size: min(100cqw, 100cqh * 16 / 9${l?", var(--p-now) / 2":""}); }`),t.push("}"),t.join(`
+`)+`
+`}function tt({root:e,panels:t,save:n}){let r=e.ownerDocument,s=r.defaultView,l=e.querySelector("[presenter-arrange-bar]"),c=e.querySelector("[presenter-panels]"),i=e.querySelector("[presenter-arrange-tools]"),m=e.querySelector("[presenter-arrange-status]"),f=e.querySelector("#presenter-arrange-help"),a=fe.map(p=>e.querySelector(`[presenter-panel="${p}"]`)),y=s.matchMedia(ve),k=pe(t)||pe(H),h=k,o=!1,b=null,w=null,S=0,M=()=>s.getComputedStyle(e).direction==="rtl",T=()=>M()?-1:1,P=p=>Ee(Ye(p.getAttribute("data-arrange-op")),M(),!0),L=p=>a[p]?.getAttribute("data-arrange-name")||"";function I(p){k=p,b||(b=r.createElement("style"),b.setAttribute("presenter-arranged",""),r.head.append(b)),b.textContent=et(k)}function D(p){m&&(m.textContent=Qe(e.dataset.textArrangeWhere,L(p),k[p]))}function N(){if(!i||!o)return;let p=k[S];i.style.gridArea=`${p.y+1} / ${p.x+1} / span ${p.h} / span ${p.w}`,i.style.justifySelf=p.x*2+p.w>$?"end":"start",i.style.alignSelf=p.y*2+p.h>$?"end":"start";for(let E of i.querySelectorAll("[data-arrange-op]"))E.setAttribute("aria-disabled",String(!Je(k,S,P(E))))}function _(p){S=p,a.forEach((E,O)=>E.toggleAttribute("data-selected",O===p)),i&&(i.setAttribute("aria-label",L(p)),a[p].after(i),i.hidden=!1),N(),D(p)}function x(p,E){let O=G(E)!==G(k);I(E),N(),O&&D(p)}function d(){o=!1,w=null,e.removeAttribute("data-arranging"),l.hidden=!0,i&&(i.hidden=!0),m&&(m.textContent="");for(let p of a){for(let E of["tabindex","role","aria-label","aria-describedby","data-selected"])p.removeAttribute(E);p.querySelector(":scope > [presenter-arrange-handle]")?.remove()}e.querySelector("[presenter-more]")?.focus()}function u(){o||!l||!c||a.some(p=>!p)||!y.matches||(o=!0,h=k,e.setAttribute("data-arranging",""),l.hidden=!1,a.forEach((p,E)=>{p.tabIndex=0,p.setAttribute("role","group"),p.setAttribute("aria-label",L(E)),f&&p.setAttribute("aria-describedby",f.id);let O=r.createElement("span");O.setAttribute("presenter-arrange-handle",""),O.setAttribute("aria-hidden","true"),p.append(O)}),a[0].focus(),_(0))}function v(){I(h),d()}l?.querySelector("[presenter-arrange-done]")?.addEventListener("click",()=>{n(G(k)),h=k,d()}),l?.querySelector("[presenter-arrange-reset]")?.addEventListener("click",()=>{x(S,pe(H)),n(H),h=k}),i?.addEventListener("click",p=>{let E=p.target.closest?.("[data-arrange-op]");!o||!E||E.getAttribute("aria-disabled")==="true"||x(S,te(k,S,P(E)))}),y.addEventListener?.("change",()=>{o&&!y.matches&&v()}),a.forEach((p,E)=>{if(!p)return;p.addEventListener("focus",()=>{o&&S!==E&&_(E)}),p.addEventListener("pointerdown",R=>{if(!o||R.button!==0)return;R.preventDefault(),p.focus({preventScroll:!0}),S!==E&&_(E),p.setPointerCapture?.(R.pointerId);let g=c.getBoundingClientRect();w={i:E,id:R.pointerId,resize:!!R.target.closest?.("[presenter-arrange-handle]"),x:R.clientX,y:R.clientY,w:g.width/$,h:g.height/$,from:k}}),p.addEventListener("pointermove",R=>{if(!w||w.i!==E||w.id!==R.pointerId)return;let g=Math.round(T()*(R.clientX-w.x)/w.w),q=Math.round((R.clientY-w.y)/w.h);x(E,te(w.from,E,w.resize?{dw:g,dh:q}:{dx:g,dy:q}))});let O=R=>{w&&w.id===R.pointerId&&(w=null)};p.addEventListener("pointerup",O),p.addEventListener("pointercancel",O)});function A(p){if(p.metaKey||p.ctrlKey||p.altKey)return;if(p.key==="Escape"){p.preventDefault(),v();return}let E=a.indexOf(r.activeElement),O=E>=0&&Ge(p.key,p.shiftKey);O&&(p.preventDefault(),x(E,te(k,E,Ee(O,M(),!1))))}return{start:u,key:A,isOn:()=>o}}var Kt=new Set(["next","back","first","last","goto"]);function nt(e,t){let n=()=>e&&e.getAttribute("data-timer-since"),r=i=>(i<10?"0":"")+i;function s(){let i=n();if(!i)return;let m=Math.max(0,Math.floor(Date.now()/1e3-Number(i))),f=Math.floor(m/3600),a=Math.floor(m/60)%60;e.textContent=f?f+":"+r(a)+":"+r(m%60):a+":"+r(m%60)}function l(){t&&(t.textContent=new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}))}function c(){n()&&(e.removeAttribute("data-timer-since"),e.textContent="0:00")}return s(),l(),setInterval(s,1e3),setInterval(l,15e3),{press(i){e&&Kt.has(i.op)&&!n()&&e.setAttribute("data-timer-since",String(Math.floor(Date.now()/1e3)))},heard(i){if(!e)return;if(i===null){c();return}let m=String(Math.floor(i/1e3));n()!==m&&e.setAttribute("data-timer-since",m)},reset:c}}function Y(e,t,n){let r=document.createElement(e);return t&&r.setAttribute(t,""),n!==void 0&&(r.textContent=n),r}function rt(e){let t=e.dataset,n=g=>e.querySelector(g),r=n("[presenter-head]"),s=n("[presenter-pos]"),l=n("[presenter-status]"),c=n("[presenter-elapsed]");window.name="slides-presenter";function i(g,q){let C=n("["+g+"]");return C||(C=Y("span",g),C.hidden=!0,q.after(C)),C}let m=i("presenter-stepcount",s);if(!m.firstChild){m.setAttribute("role","status");let g=Y("span","presenter-track");g.setAttribute("aria-hidden","true"),m.append(g,Y("span","presenter-steptext"))}let f=i("presenter-mode",m),a=i("presenter-black",f);function y(g,q,C){let U=C.view,z=s.querySelector("[presenter-count]");z&&(z.textContent=F(t.textProgress,ae(U,q.mode,V(U,q.slide))));let Z=Number(g.presses)||0;if(m.hidden=Z===0,Z){let K=m.querySelector("[presenter-track]");for(;K.children.length<Z;)K.append(Y("i"));for(;K.children.length>Z;)K.lastChild.remove();[...K.children].forEach((lt,ct)=>lt.toggleAttribute("data-done",ct<q.step)),m.querySelector("[presenter-steptext]").textContent=F(t.textStep,{n:q.step,total:Z})}let B=C.slides.some(K=>K.full);f.hidden=!B,B&&(f.textContent=q.mode==="full"?t.textModeFull:t.textModeCore),a.hidden=!q.black,a.textContent=t.textBlack;let X=e.querySelector('[presenter-menu] form input[name="op"][value="mode"]'),J=X&&X.form.querySelector("button");J&&(J.textContent=q.mode==="full"?t.textMenuCore:t.textMenuFull)}function k(g,q){let C=Y("div","presenter-frame");if(g===null)return C.setAttribute("data-end",""),C;let U=Y("div","presenter-scale");return ee(U,g,q),C.append(U),C}let h="",o=Oe(({html:g,step:q,words:C,seq:U})=>{n("[presenter-next-label] span").textContent=C;let z=U+":"+q+":"+g;z!==h&&(h=z,n('[presenter-panel="next"] [presenter-fit]').replaceChildren(k(g,q)))});function b(g,q,C){let U=C.view,z=V(U,q.slide),Z=Number(g.presses)||0,B=W(U,q.mode).find(X=>X>z);q.step<Z?o(C,g.id,q.step+1,t.textNextStep):B!==void 0?o(C,U.slides[B].id,0,t.textNextSlide):o(C,null,0,t.textNextEnd)}let w=n("[presenter-notes]"),S=je()||{},M=He({root:e,prefs:{notes:S.notes||w.getAttribute("data-notes-mode"),size:S.size||Math.round(parseFloat(getComputedStyle(w).fontSize)/2)*2||24,panels:S.panels||H}}),T=n("[presenter-panels]"),P=n("[presenter-empty]");function L(g,q){e.setAttribute("data-empty",""),P&&(P.hidden=!1),T&&(T.hidden=!0),n('[presenter-panel="now"] [presenter-scale]').replaceChildren(),n('[presenter-panel="next"] [presenter-fit]').replaceChildren(),h="",M.clear();let C=s.querySelector("[presenter-count]");C&&(C.textContent=""),s.hidden=!0,m.hidden=!0,f.hidden=!0,a.hidden=!g.black,e.setAttribute("data-slide",""),e.setAttribute("data-step","0"),e.setAttribute("data-mode",g.mode),e.setAttribute("data-blackout",g.black?"true":"false"),e.setAttribute("data-deck-seq",String(q.deckSeq))}function I(g,q,{fresh:C,store:U}){let z=g.slide?U.slide(g.slide):null;if(!z){g.slide||L(g,U);return}let Z=e.hasAttribute("data-empty");Z&&(e.removeAttribute("data-empty"),P&&(P.hidden=!0),T&&(T.hidden=!1),s.hidden=!1);let B=n('[presenter-panel="now"] [presenter-frame]'),X=B.querySelector("[presenter-scale]"),J=!Z&&!C&&q&&q.slide===g.slide;J?q.step!==g.step&&ie(X,g.step):ee(X,z.html,g.step),B.toggleAttribute("data-black",!!g.black),y(z,g,U),b(z,g,U),(!J||q.step!==g.step)&&M.show(Array.isArray(z.notes)?z.notes:[],g.step),e.setAttribute("data-slide",String(z.number)),e.setAttribute("data-step",String(g.step)),e.setAttribute("data-mode",g.mode),e.setAttribute("data-blackout",g.black?"true":"false"),e.setAttribute("data-deck-seq",String(U.deckSeq));let K=new URL(location.href);(K.searchParams.has("slide")||K.searchParams.has("step"))&&(K.searchParams.delete("slide"),K.searchParams.delete("step"),history.replaceState(history.state,"",K.href))}let D="",N=!1;function _(){l&&(l.textContent=N?t.textOffline:D)}let x=nt(c,n("[data-clock]"));function d(g){Ae(m,"data-flash"),Ae(s,"data-pulse"),x.press(g)}let u=oe({root:e,talkHref:t.talk,streamHref:t.stream,action:t.command,token:e.getAttribute("data-remote-token")||"",draw:I,onPressed:d,onTimer:g=>x.heard(g),onStatus:g=>{N=g==="offline",_()},onProgress:g=>{e.setAttribute("data-loaded",g.finished&&!g.failed?"all":String(g.done)),D=g.finished?g.failed?F(t.textLoadingFailed,{n:g.failed}):"":F(t.textLoading,{n:g.done,total:g.total}),_()}});function v(){u.timerReset(),x.reset()}let A=n("[presenter-more-menu]");e.addEventListener("submit",g=>{A&&g.target.getAttribute("target")==="slides-pair"&&(A.open=!1)}),le(e,t.command,{move:g=>u.move(g),timerReset:v,get store(){return u.store}},()=>{A&&(A.open=!1)});let p=Ke({root:e,talk:{get slides(){return u.store?u.store.slides:[]},get seq(){return u.store?u.store.deckSeq:0}},position:()=>({number:Number(e.getAttribute("data-slide"))}),go:g=>u.move({op:"goto",slide:g.id})}),E=ce({act(g){if(g.move)u.move(g.move);else if(g.jump)u.jump(g.jump);else if(g.timer)v();else if(g.escape){if(p.isOpen()){p.close();return}A&&A.open&&(A.open=!1);let q=document.activeElement;q&&q!==document.body&&q.blur&&q.blur()}}}),O=tt({root:e,panels:S.panels||H,save:M.setPanels});n("[presenter-arrange]")?.addEventListener("click",()=>{A&&(A.open=!1),O.start()});function R(g){O.isOn()&&g.key!=="PageUp"&&g.key!=="PageDown"?O.key(g):E(g)}document.addEventListener("keydown",R),ue(R)}function st(e,t=2e3){let n,r=()=>e.querySelector("[slides-bar]:focus-within"),s=()=>{clearTimeout(n),e.setAttribute("data-quiet","")},l=()=>{clearTimeout(n),n=setTimeout(()=>{!r()&&!e.querySelector("[slides-bar]:hover")&&s()},t)},c=()=>{e.removeAttribute("data-quiet"),l()};s(),e.addEventListener("pointermove",c),e.addEventListener("pointerleave",()=>{e.hasAttribute("data-quiet")||l()}),e.addEventListener("focusin",m=>{m.target.closest("[slides-bar]")&&c()}),e.addEventListener("focusout",m=>{m.target.closest("[slides-bar]")&&c()});let i=["data-slide","data-step","data-blackout"];new MutationObserver(m=>{!r()&&m.some(f=>f.target.getAttribute(f.attributeName)!==f.oldValue)&&s()}).observe(e,{attributes:!0,attributeFilter:i,attributeOldValue:!0})}function it(e){let t=e.dataset,n=e.querySelector("[slides-stage]"),r=e.querySelector("[slides-blackout]"),s=e.querySelector("[slides-waiting]"),l=e.querySelector("[slides-announce]");if(!n)return;st(e);function c(o){let b=e.querySelector("[slides-counter]");if(!b)return;let w=b.lastChild;w&&w.nodeType===Node.TEXT_NODE?w.textContent=" "+o:b.append(" "+o)}let i=e.querySelector("[slides-empty]"),m=e.querySelector("[slides-bar]");function f(o,b){e.setAttribute("data-empty",""),n.replaceChildren(),n.hidden=!0,m&&(m.hidden=!0),i&&(i.hidden=!1),c(""),l&&i&&l.textContent!==i.innerText&&(l.textContent=i.innerText),e.setAttribute("data-slide",""),e.setAttribute("data-step","0"),e.setAttribute("data-mode",o.mode),e.setAttribute("data-blackout",o.black?"true":"false"),e.setAttribute("data-deck-seq",String(b.deckSeq)),r&&(r.hidden=!o.black)}function a(o,b,{fresh:w,store:S}){let M=o.slide?S.slide(o.slide):null;if(!M){o.slide||f(o,S);return}let T=e.hasAttribute("data-empty");T&&(e.removeAttribute("data-empty"),n.hidden=!1,m&&(m.hidden=!1),i&&(i.hidden=!0));let P=S.view;if(!T&&!w&&b&&b.slide===o.slide)b.step!==o.step&&ie(n,o.step);else{ee(n,M.html,o.step);let _=F(t.textAnnounce,{n:M.number,total:S.slides.length,title:M.title});e.setAttribute("data-announce",_),l&&l.textContent!==_&&(l.textContent=_)}let I=ae(P,o.mode,V(P,o.slide));c(F(t.textProgress,I));let D=e.querySelector("[slides-progress]");D&&(D.setAttribute("value",String(I.n)),D.setAttribute("max",String(I.total))),e.setAttribute("data-slide",String(M.number)),e.setAttribute("data-step",String(o.step)),e.setAttribute("data-mode",o.mode),e.setAttribute("data-blackout",o.black?"true":"false"),e.setAttribute("data-deck-seq",String(S.deckSeq)),r&&(r.hidden=!o.black);let N=new URL(location.href);(N.searchParams.has("slide")||N.searchParams.has("step"))&&(N.searchParams.delete("slide"),N.searchParams.delete("step"),history.replaceState(history.state,"",N.href))}let y=oe({root:e,talkHref:t.talk,streamHref:t.stream,action:t.command,token:e.getAttribute("data-remote-token")||"",draw:a,onProgress:o=>e.setAttribute("data-loaded",o.finished&&!o.failed?"all":String(o.done)),onStatus:o=>{s&&(s.textContent=t.textWaiting,s.hidden=o!=="offline")}});le(e,t.command,y);let k=ce({act(o){if(o.move)y.move(o.move);else if(o.jump)y.jump(o.jump);else if(o.timer)y.timerReset();else if(o.open&&t.presenter)window.open(t.presenter,"slides-presenter");else if(o.escape){document.fullscreenElement&&document.exitFullscreen();let b=document.activeElement;b&&b!==document.body&&b.blur&&b.blur()}}});document.addEventListener("keydown",k),ue(k);let h=null;e.addEventListener("touchstart",o=>{h=o.changedTouches[0].clientX},{passive:!0}),e.addEventListener("touchend",o=>{if(h===null)return;let b=o.changedTouches[0].clientX-h;h=null,Math.abs(b)>=60&&y.move({op:b<0?"next":"back"})},{passive:!0})}var at=document.querySelector("[presenter][data-talk]"),ot=document.querySelector("[slides-surface][data-talk]");at?rt(at):ot&&it(ot);
diff --git a/internal/slides/static/presenter.f9443ddfa23f90e0.js b/internal/slides/static/presenter.f9443ddfa23f90e0.js
deleted file mode 100644
index 03091ae..0000000
--- a/internal/slides/static/presenter.f9443ddfa23f90e0.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var qe=/^[\t\n\v\f\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*$/,Me=e=>(Array.isArray(e)?e:[]).map(t=>t&&typeof t.t=="string"?t.t:"").join("");function Pe(e){let t=[];return(Array.isArray(e)?e:[]).forEach((n,r)=>{qe.test(Me(n))||t.push(r)}),t}var me=e=>typeof e.step=="number"&&e.step>0?e.step:0;function he(e){let t=e.props&&e.props.children;return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}function ct(e){let t=new Map;for(let r of e)t.set(r.id,r);let n=new Map;for(let r of e)if(r.type==="columns")for(let s of he(r))t.has(s)&&s!==r.id&&!n.has(s)&&n.set(s,r.id);return{byID:t,parent:n}}function ut(e,t){let n=me(t),r=new Set([t.id]);for(let s=e.parent.get(t.id);s!==void 0&&!r.has(s);s=e.parent.get(s))r.add(s),n=Math.max(n,me(e.byID.get(s)));return n}function ge(e,t,n){switch(t.type){case"list":return Pe(t.text).length>0;case"heading":case"text":case"quote":return!qe.test((Array.isArray(t.text)?t.text:[]).map(Me).join(`
-`));case"columns":n.add(t.id);for(let r of he(t)){let s=e.byID.get(r);if(s&&!n.has(r)&&ge(e,s,n))return!0}return!1}return!0}function Te(e,t,n){let r=ut(e,t);if(t.type!=="columns")return r;n.add(t.id);let s=1/0;for(let l of he(t)){let u=e.byID.get(l);!u||n.has(l)||!ge(e,u,new Set)||(s=Math.min(s,Te(e,u,n)))}return s>r&&s!==1/0?s:r}function Ce(e){return dt(e).out}function dt(e){let t=Array.isArray(e&&e.blocks)?e.blocks:[],n=ct(t),r=[],s=[];for(let i of t){if(me(i)===0||!ge(n,i,new Set))continue;let m={id:i.id,value:Te(n,i,new Set),items:null};i.type==="list"&&i.items==="each"&&(m.items=Pe(i.text)),r.push(m),s.includes(m.value)||s.push(m.value)}s.sort((i,m)=>i-m);let l=[],u=[];for(let i of s){let m=1;for(let p of r)p.value===i&&p.items&&p.items.length>m&&(m=p.items.length);for(let p=0;p<m;p++){let o=[];for(let y of r)y.value===i&&(y.items?p<y.items.length&&o.push({block:y.id,item:y.items[p]}):p===0&&o.push({block:y.id,item:-1}));l.push(o),u.push(i)}}return{out:l,at:u}}var ne=e=>Array.isArray(e&&e.slides)?e.slides:[],ye=(e,t)=>e.findIndex(n=>n.id===t),be=e=>Ce(e).length,Q=(e,t,n=0)=>({slide:e.id,step:n,mode:t,black:!1}),xe=e=>({slide:"",step:0,mode:e,black:!1}),Le=(e,t)=>Math.min(Math.max(e,0),t);function W(e,t){let n=[];return ne(e).forEach((r,s)=>{r.talk==="parked"||r.talk==="full"&&t!=="full"||n.push(s)}),n}function re(e,t,n){let r=ne(e),s=W(e,t.mode);switch(n.op){case"black":return{...t,black:!t.black};case"mode":return{...t,mode:t.mode==="full"?"core":"full"};case"goto":{let l=n.slide?ye(r,n.slide):-1;return l<0||r[l].talk==="parked"?t:Q(r[l],r[l].talk==="full"?"full":t.mode)}case"first":case"last":return s.length?Q(r[n.op==="first"?s[0]:s[s.length-1]],t.mode):xe(t.mode);case"next":case"back":return ft(e,t,n.op==="next",s)}return t}function ft(e,t,n,r){let s=ne(e);if(!r.length)return xe(t.mode);let l=ye(s,t.slide);if(l<0)return{...we(e,t),black:!1};let u=be(s[l]),i=Le(t.step,u);if(n&&i<u)return{...t,step:i+1,black:!1};if(!n&&i>0)return{...t,step:i-1,black:!1};if(n){let m=r.find(p=>p>l);if(m!==void 0)return Q(s[m],t.mode)}else{let m=r.findLast(p=>p<l);if(m!==void 0)return Q(s[m],t.mode,be(s[m]))}return{...t,step:i,black:!1}}function we(e,t){return se(e,t,-1)}function se(e,t,n){let r=ne(e),s=W(e,t.mode);if(!s.length)return xe(t.mode);let l=m=>({...Q(r[m],t.mode),black:t.black}),u=s[s.length-1];if(t.slide==="")return l(s[0]);let i=ye(r,t.slide);if(i<0&&n>=0){let m=W(e,"full").slice(n).find(p=>s.includes(p));return l(m??u)}return i<0?l(u):r[i].talk==="parked"?l(s.find(m=>m>i)??u):{...t,step:Le(t.step,be(r[i]))}}var pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function mt(){let e=new Uint8Array(22);globalThis.crypto.getRandomValues(e);let t="";for(let n of e)t+=pt[n&63];return t}var ht={back:"prev",black:"blackout"};function gt(e){let t={op:ht[e.op]||e.op};return e.slide&&(t.slide=String(e.slide)),t}function ke(e,t){return!e||!t?e!==t:e.slide!==t.slide||(e.step||0)!==(t.step||0)||e.mode!==t.mode||!!e.black!=!!t.black}var bt=(e,t)=>{let n=setTimeout(t,e);return()=>clearTimeout(n)};function Ie({post:e,stream:t,now:n=()=>Date.now(),after:r=bt,onPosition:s=()=>{},onStatus:l=()=>{},onDeckSeq:u=()=>{},onTimer:i=()=>{},makeID:m=mt}){let p=!0,o=[],y=null,k=!1,h=null,a=null,b=0,w=null,A=null,M=m(),P=0,T=S=>({id:m(),n:++P,fields:S});function L(){return p?"online":"offline"}function I(S){let f=p;p=S==="online",f!==p&&l(L())}function D(S){!S||typeof S.seq!="number"||(typeof S.deckSeq=="number"&&u(S.deckSeq),(!a||S.seq>a.seq)&&(a=S))}function N(){!p||y||o.length||!a||a.seq<=b||(b=a.seq,"timerAt"in a&&i(a.timerAt===null?null:Number(a.timerAt)),ke(a,h)&&(h={slide:a.slide,step:a.step||0,mode:a.mode,black:!!a.black},s({...h,seq:a.seq})))}function O(){if(!p||y||!o.length)return;let S=o[0],f=n(),v={item:S};y=v;let _=r(3e3,()=>{y===v&&x()});Promise.resolve().then(()=>e({...S.fields,press:S.id,link:M,n:String(S.n)})).then(R=>{if(y===v){if(_(),n()-f>3e3){x();return}y=null,o.shift(),D(R),o.length?O():N()}},()=>{y===v&&(_(),x())})}function x(){(y||o.length)&&(k=!0),y=null,o=[],I("offline"),d()}function d(){w||p||!k||(w=r(2e3,()=>{w=null,!(p||!k)&&c()}))}function c(){if(w&&(w(),w=null),I("online"),k&&h){k=!1,o=[T({op:"resume",at_slide:h.slide,at_step:String(h.step||0),at_mode:h.mode,at_black:h.black?"true":"false"})],O();return}N()}function E(){A&&(A(),A=null)}return t({open(){E(),p||c()},error(){!p||A||(A=r(5e3,()=>{A=null,p&&x()}))},position(S){E(),D(S),p?N():c()}}),{press(S,f){if(f&&(h={...f}),!p){k=!0,d();return}o.push(T(gt(S))),O()},resume(S){h=S?{...S}:null},status:L}}function yt(e){let t=[];for(let n=1;n<=e;n++)t.push({id:"press"+n,type:"image",step:n});return t}function xt(e,t){let n=Array.isArray(e.slides)?e.slides:[];return{deckSeq:Number(e.deckSeq)||0,arrive:e.arrive||"appear",etag:t,slides:n,byID:new Map(n.map(r=>[r.id,r])),view:{slides:n.map(r=>({id:r.id,talk:r.full?"full":"",blocks:yt(Number(r.presses)||0)}))},ready:new Set,failed:new Set,waiters:new Map,uploaded:e.uploaded||null}}var wt=[];function kt(e){let t=new Image;return t.decoding="async",t.src=e,wt.push(t),t.decode()}async function Ne({href:e,fonts:t=()=>globalThis.slidesFonts,onProgress:n=()=>{},from:r=0,fetchImpl:s=(...u)=>globalThis.fetch(...u),picture:l=kt}){let u=typeof t=="function"?t:()=>t;async function i(h){let a={Accept:"application/json"};h&&(a["If-None-Match"]=h);let b=await s(e,{credentials:"same-origin",cache:"no-store",headers:a});if(b.status===304)return null;if(!b.ok)throw new Error("talk: "+b.status);return xt(await b.json(),b.headers.get("ETag"))}async function m(h,a){try{let b=u();b&&typeof b.learnUploaded=="function"&&h.uploaded&&b.learnUploaded(h.uploaded),await Promise.all([b&&b.prepareSection?b.prepareSection(a.html):null,...(Array.isArray(a.assets)?a.assets:[]).map(l)]),h.ready.add(a.id),h.failed.delete(a.id);let w=h.waiters.get(a.id)||[];h.waiters.delete(a.id);for(let A of w)A(!0)}catch{h.failed.add(a.id)}}async function p(h,a,b){let w=h.slides.length,A=[];for(let T=0;T<w;T++)A.push(h.slides[(a+T)%w]);let M=T=>b&&n({done:h.ready.size,total:w,failed:h.failed.size,finished:T}),P=0;M(!1),await Promise.all(Array.from({length:Math.min(4,w)},async()=>{for(;P<w;){let T=A[P++];h.ready.has(T.id)||(await m(h,T),M(!1))}})),M(!0)}let o=await i(null),y=null,k=null;return p(o,Math.max(0,Math.min(r,o.slides.length-1)),!0),{get deckSeq(){return o.deckSeq},get arrive(){return o.arrive},get view(){return o.view},get slides(){return o.slides},get pending(){return y?y.deckSeq:0},get pendingView(){return y?y.view:null},slide(h){return o.byID.get(h)||null},has(h){return o.ready.has(h)},ready(h){if(o.ready.has(h))return Promise.resolve(!0);if(!o.byID.has(h))return Promise.resolve(!1);let a=o;return new Promise(b=>{a.waiters.has(h)||a.waiters.set(h,[]),a.waiters.get(h).push(b)})},refresh(){if(k)return k;let h=y||o;return k=i(h.etag).then(async a=>!a||a.deckSeq<=h.deckSeq?!1:(y=a,await p(a,0,!1),!0)).catch(()=>!1).finally(()=>{k=null}),k},adopt(){if(!y)return null;let h=o.view;for(let a of y.slides){let b=o.byID.get(a.id);b&&o.ready.has(a.id)&&b.html===a.html&&y.ready.add(a.id)}return o=y,y=null,p(o,0,!1),h},retry(){for(let h of[o,y])h&&h.failed.size&&p(h,0,h===o)}}}function St(e,t){for(let n of e.querySelectorAll("[data-press]"))n.removeAttribute("data-arriving"),Number(n.getAttribute("data-press"))>t?n.setAttribute("data-waiting",""):n.removeAttribute("data-waiting")}function ee(e,t,n){let r=document.createElement("template");r.innerHTML=t,St(r.content,n),e.replaceChildren(r.content)}function De(e){e.target===e.currentTarget&&(e.currentTarget.removeAttribute("data-arriving"),e.currentTarget.removeEventListener("animationend",De))}function ie(e,t){for(let n of e.querySelectorAll("[data-arriving]"))n.removeAttribute("data-arriving");for(let n of e.querySelectorAll("[data-press]"))Number(n.getAttribute("data-press"))>t?n.setAttribute("data-waiting",""):n.hasAttribute("data-waiting")&&(n.removeAttribute("data-waiting"),n.setAttribute("data-arriving",""),n.addEventListener("animationend",De))}function F(e,t){return String(e||"").replace(/\{(\w+)\}/g,(n,r)=>r in t?String(t[r]):n)}function oe(e,t,n){let r=W(e,t);if(!r.length)return{n:n+1,total:e.slides.length};let s=1;return r.forEach((l,u)=>{l<=n&&(s=u+1)}),{n:s,total:r.length}}function V(e,t){return e.slides.findIndex(n=>n.id===t)}function Se(e,t){e&&e.setAttribute(t,e.getAttribute(t)==="a"?"b":"a")}function _e(e){let t=0;return function(r,s,l,u){let i=++t,m=r.deckSeq,p=()=>{if(i!==t||r.deckSeq!==m||s!==null&&!r.has(s))return;let o=s===null?null:r.slide(s);s!==null&&!o||e({html:o?o.html:null,step:l,words:u,seq:m})};s===null||r.has(s)?p():r.ready(s).then(o=>{o&&p()})}}var At=3e4,Et=1500,ze=3e3,Oe=(e,t)=>W(e,"full").indexOf(V(e,t)),Re=e=>new Promise(t=>setTimeout(t,e));function vt(e){return t=>{let n=null,r=!1,s=()=>{n||r||(n=new EventSource(e),n.onopen=()=>t.open(),n.onerror=()=>{t.error(),n&&n.readyState===EventSource.CLOSED&&(n=null,setTimeout(s,ze))},n.addEventListener("slide",l=>{let u;try{u=JSON.parse(l.data)}catch{return}if(u.ended){location.reload();return}if(typeof u.slideId!="string")return;let i={slide:u.slideId,step:Number(u.step)||0,mode:u.mode,black:!!u.blackout,seq:Number(u.seq)||0};"timerAt"in u&&(i.timerAt=u.timerAt),t.position(i)}))};return addEventListener("pagehide",()=>{r=!0,n&&(n.close(),n=null)}),addEventListener("pageshow",l=>{let u=r&&l.persisted;r=!1,u&&setTimeout(s,0)}),s(),()=>{r=!0,n&&n.close()}}}function qt(e,t){return n=>{let r=new URLSearchParams(n);return t&&r.set("t",t),fetch(e,{method:"POST",body:r,credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}}).then(s=>{if(s.status===410&&location.reload(),!s.ok)throw new Error("press: "+s.status);return s.json()})}}function ae({root:e,talkHref:t,streamHref:n,action:r,token:s,draw:l,onStatus:u=()=>{},onProgress:i=()=>{},onPressed:m=()=>{},onTimer:p=()=>{}}){let o=null,y=null,k=null,h=null,a=0,b=0,w=[];function A(x){let d=k,c=a!==o.deckSeq;k=x,h=null,a=o.deckSeq,l(x,d,{fresh:c,store:o})}function M(x){let d=++b;if(h=x,!x.slide||o.has(x.slide)||x.slide===k.slide&&a===o.deckSeq){A(x);return}o.ready(x.slide).then(c=>{c&&d===b&&A(x)})}function P(){return o.refresh().then(x=>(o.pending&&e.setAttribute("data-deck-pending",String(o.pending)),x))}function T(x){let d=Oe(o.view,x.slide);return o.adopt(),e.removeAttribute("data-deck-pending"),se(o.view,x,d)}function L(x){if(!o){w.push(x);return}if(x.op==="timer-reset"){y.press(x,null);return}let d=h||k,c=re(o.view,d,x),E=o.pendingView;if(E){let S=re(E,se(E,d,Oe(o.view,d.slide)),x);if(c.slide!==d.slide||S.slide!==d.slide){let f=T(d);c=re(o.view,f,x)}}m(x,d,c),y.press(x,c),M(c)}function I(x){if(!o){w.push({jump:x});return}let d=h||k,c=W(o.view,d.mode)[x-1];c!==void 0&&L({op:"goto",slide:o.view.slides[c].id})}async function D(x){let d=++b,c=h||k,E=()=>!x.slide||!!o.slide(x.slide)||!!o.pendingView&&V(o.pendingView,x.slide)>=0;if(!x.slide){if(await P(),d!==b)return;o.pendingView&&T(c),M({slide:"",step:0,mode:x.mode==="full"?"full":"core",black:!!x.black});return}if(x.slide!==c.slide&&y.status()==="online"&&await Promise.race([P(),Re(Et)]),E()||await P(),d!==b||!E())return;let S=o.pendingView;S&&V(S,x.slide)>=0&&(x.slide!==c.slide||!o.slide(x.slide))&&T(c),M(we(o.view,x))}function N(){o&&y&&y.status()==="online"&&(P(),o.retry())}async function O(){let x={number:Number(e.getAttribute("data-slide"))||0,step:Number(e.getAttribute("data-step"))||0,mode:e.getAttribute("data-mode")==="full"?"full":"core",black:e.getAttribute("data-blackout")==="true"};for(;;)try{o=await Ne({href:t,onProgress:i,from:Math.max(0,x.number-1)});break}catch{u("offline"),await Re(ze)}let d=o.slides.find(c=>c.number===x.number);k={slide:d?d.id:"",step:x.step,mode:x.mode,black:x.black},a=o.deckSeq,y=Ie({post:qt(r,s),stream:vt(n),onPosition:D,onStatus:c=>{u(c),c==="online"&&o.retry()},onDeckSeq:c=>{c>o.deckSeq&&c>o.pending&&P()},onTimer:p}),y.resume(k),u(y.status());for(let c of w.splice(0))c.jump?I(c.jump):L(c);setInterval(N,At),addEventListener("focus",N)}return O(),{move:L,jump:I,timerReset(){L({op:"timer-reset"})},get store(){return o},get position(){return h||k},differs:ke}}var Ue={next:"next",prev:"back",first:"first",last:"last",blackout:"black",mode:"mode"};function le(e,t,n,r=()=>{}){let s=new URL(t,location.href).pathname;e.addEventListener("submit",l=>{let u=l.target;if(!u||(u.method||"").toLowerCase()!=="post"||new URL(u.action,location.href).pathname!==s)return;let i=u.elements.op&&u.elements.op.value;if(i==="timer-reset")l.preventDefault(),n.timerReset();else if(i==="goto"&&u.elements.slide){let m=Number(u.elements.slide.value),p=n.store&&n.store.slides.find(o=>o.number===m);if(!p)return;l.preventDefault(),n.move({op:"goto",slide:p.id})}else if(Ue[i])l.preventDefault(),n.move({op:Ue[i]});else return;r(i)})}var Ae={ArrowRight:"next"," ":"next",PageDown:"next",ArrowLeft:"back",PageUp:"back",Home:"first",End:"last",b:"black",B:"black",".":"black",o:"mode",O:"mode"},Mt=new Set(["PageDown","PageUp"]);function Pt(e){if(!e)return!1;if(e.isContentEditable)return!0;let t=String(e.tagName||"").toUpperCase();return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}function ce({act:e}){let t="";return function(r){if(r.metaKey||r.ctrlKey||r.altKey)return;let s=r.key;if(s==="Escape"){t="",e({escape:!0});return}if(Pt(r.target)&&!Mt.has(s))return;if(r.repeat){s in Ae&&r.preventDefault();return}if(/^[0-9]$/.test(s)){t=(t+s).slice(-4),r.preventDefault();return}if(s==="Enter"){if(!t)return;let u=Number(t);t="",r.preventDefault(),u>0&&e({jump:u});return}t="";let l=null;s in Ae?l={move:{op:Ae[s]}}:s==="p"||s==="P"?l={open:"presenter"}:(s==="r"||s==="R")&&(l={timer:"reset"}),l&&(r.preventDefault(),e(l))}}function ue(e,t=globalThis){let n=t&&typeof t.slidesEarlyKeys=="function"?t.slidesEarlyKeys:null;if(!n)return 0;let r=n()||[];for(let s of r)e({key:s.key,repeat:!!s.repeat,target:s.target,metaKey:!1,ctrlKey:!1,altKey:!1,preventDefault(){}});return r.length}var Tt=e=>String(e||"").toLowerCase().split(/\s+/).filter(Boolean);function Ct(e,t){let n=String(t||"").trim();if(!n)return e.slice();if(/^\d+$/.test(n)){let s=e.filter(u=>String(u.number)===n),l=e.filter(u=>String(u.number)!==n&&String(u.number).startsWith(n));return s.concat(l)}let r=Tt(n);return e.filter(s=>{let l=String(s.title||"").toLowerCase();return r.every(u=>l.includes(u))})}function Lt(e,t,n,r){return t==="ArrowRight"?Math.min(e+1,r-1):t==="ArrowLeft"?Math.max(e-1,0):t==="ArrowDown"?Math.min(e+n,r-1):t==="ArrowUp"?e-n<0?-1:e-n:e}function j(e,t,n){let r=document.createElement(e);return t&&r.setAttribute(t,""),n!==void 0&&(r.textContent=n),r}function Ke({root:e,talk:t,position:n,go:r}){let s=e.dataset,l=e.querySelector("[presenter-pos]"),u=l.parentElement;l.setAttribute("role","button"),l.setAttribute("aria-haspopup","dialog"),l.setAttribute("aria-expanded","false");let i=j("div","presenter-picker");i.id="presenter-picker",i.hidden=!0,i.setAttribute("role","dialog"),i.setAttribute("aria-label",s.textPickTitle),l.setAttribute("aria-controls",i.id);let m=j("label","presenter-picker-field"),p=j("input");p.type="text",p.autocomplete="off",p.placeholder=s.textPickField,p.setAttribute("aria-label",s.textPickField);let o=j("span","presenter-picker-count");m.append(p,o);let y=j("div","presenter-picker-grid"),k=j("p","presenter-picker-none");k.setAttribute("role","status"),o.setAttribute("role","status"),i.append(m,k,y),u.append(i);let h=new Map,a=new WeakMap,b=new IntersectionObserver(d=>{for(let c of d){if(!c.isIntersecting)continue;let E=c.target.querySelector("img");E&&!E.getAttribute("src")&&(E.src=E.getAttribute("data-src")),b.unobserve(c.target)}},{root:y,rootMargin:"0px 0px 80px 0px"});function w(d){let c=h.get(d.id);if(!c){c=j("button","presenter-pick-item"),c.type="button",c.setAttribute("data-id",d.id);let E=j("img");E.alt="",E.width=1920,E.height=1080,E.loading="lazy",c.append(E,j("span")),c.addEventListener("click",()=>N(h.get(d.id).slide)),b.observe(c),h.set(d.id,c)}return A(c,d),c}function A(d,c){d.slide=c;let E=a.get(d);if(!E||E.number!==c.number||E.title!==c.title||E.full!==!!c.full){let f=d.querySelector("span");f.replaceChildren(j("b","",String(c.number)),c.title||""),c.full&&f.append(" ",j("em","","\xB7 "+s.textPickFull))}let S=d.querySelector("img");if(!E||E.thumb!==c.thumb||E.html!==c.html){let f=c.thumb||"";E&&f&&(f+=(f.includes("?")?"&":"?")+"v="+encodeURIComponent(String(t.seq||0))),S.setAttribute("data-src",f),S.getAttribute("src")&&(S.src=f)}a.set(d,{number:c.number,title:c.title,full:!!c.full,thumb:c.thumb,html:c.html})}let M=[];function P(){let d=t.slides||[],c=Ct(d,p.value);M=c;let E=(n()||{}).number;o.textContent=p.value.trim()?F(s.textPickMatches,{n:c.length,total:d.length}):F(s.textPickCount,{total:d.length}),k.textContent=c.length?"":s.textPickNone,y.hidden=c.length===0,y.replaceChildren(...c.map(S=>{let f=w(S);return S.number===E?f.setAttribute("aria-current","true"):f.removeAttribute("aria-current"),f}))}function T(){let d=y.querySelector("[aria-current]");d?y.scrollTop=Math.max(0,d.offsetTop-(y.clientHeight-d.offsetHeight)/2):y.scrollTop=0}function L(){return!i.hidden}function I(){p.value="",i.hidden=!1,l.setAttribute("aria-expanded","true"),P(),T(),p.focus({preventScroll:!0})}function D(d=!0){L()&&(i.hidden=!0,l.setAttribute("aria-expanded","false"),d&&l.focus({preventScroll:!0}))}function N(d){D(),r(d)}l.addEventListener("keydown",d=>{d.key!==" "||d.metaKey||d.ctrlKey||d.altKey||(d.preventDefault(),d.stopPropagation(),d.repeat||O())});function O(){L()?D():I()}l.addEventListener("click",d=>{d.preventDefault(),O()}),p.addEventListener("input",()=>{P(),y.scrollTop=0}),i.addEventListener("keydown",d=>{d.key==="PageDown"||d.key==="PageUp"||(d.stopPropagation(),d.key==="Escape"?(d.preventDefault(),D()):d.key==="Enter"&&d.target===p?(d.preventDefault(),M.length&&N(M[0])):d.key.startsWith("Arrow")&&(d.target===p?d.key==="ArrowDown":y.contains(d.target))&&x(d))});function x(d){let c=[...y.children];if(!c.length)return;d.preventDefault();let E;if(d.target===p)E=0;else{let S=c.indexOf(d.target),f=c.filter(v=>v.offsetTop===c[0].offsetTop).length||1;E=Lt(S,d.key,f,c.length)}E<0?p.focus():c[E].focus()}return document.addEventListener("pointerdown",d=>{L()&&!i.contains(d.target)&&!l.contains(d.target)&&D(!1)}),{open:I,close:D,isOpen:L}}var Fe="slides-presenter",H="0,0,7,8;0,8,7,4;7,0,5,12";function It(e,t){let n=Array.isArray(e)?e.length:Number(e)||0;return Math.max(0,Math.min(Math.floor(Number(t))||0,n-1))}function $e(e,t){let n=Math.round(Number(e)/2)*2;return Math.max(16,Math.min(48,(Number.isFinite(n)?n:24)+(t<0?-2:2)))}function Nt(e,t){let n=Math.max(16,Math.min(48,Math.round(e)));for(;n>16&&t(n);)n--;return n}function Dt(e){let t=String(e??"").split(".");if(t.length!==3||t[0]!=="fit"&&t[0]!=="scroll")return null;let n=Number(t[1]);return!Number.isInteger(n)||n<16||n>48||n%2?null:{notes:t[0],size:n,panels:t[2]}}function _t(e){return encodeURIComponent(`${e.notes}.${e.size}.${e.panels||H}`)}function je(e=globalThis.document){try{for(let t of String(e?.cookie||"").split(";")){let n=t.indexOf("=");if(n>0&&t.slice(0,n).trim()===Fe)return Dt(decodeURIComponent(t.slice(n+1).trim()))}}catch{}return null}function Ot(e,t=globalThis.document,n=globalThis.location){let r=n?.protocol==="https:"?"; Secure":"";try{t&&(t.cookie=`${Fe}=${_t(e)}; Path=/p; Max-Age=31536000; SameSite=Lax${r}`)}catch{}}function Rt(e,t,n){let r=e>1,s=e+t<n-1;return r&&s?"both":r?"top":s?"bottom":""}function Ut(e,t,n,r){return e>=n&&t<=n+r?null:Math.max(0,e)}function He({root:e,prefs:t,savePrefs:n=Ot}){let r=e.querySelector("[presenter-notes]"),s=b=>e.querySelector("[presenter-notes-"+b+"]"),l={fit:s("fit"),scroll:s("scroll"),smaller:s("smaller"),larger:s("larger")},u=null,i={notes:t.notes==="scroll"?"scroll":"fit",size:t.size||24,panels:t.panels||H};function m(){r.setAttribute("data-fade",Rt(r.scrollTop,r.clientHeight,r.scrollHeight))}function p(){let b=r.querySelector('[data-part="now"]');if(!b)return;let w=r.getBoundingClientRect().top-r.scrollTop,A=b.getBoundingClientRect().top-w,M=Ut(A-12,A+b.offsetHeight,r.scrollTop,r.clientHeight);M!==null&&(r.scrollTop=M)}function o(){r.setAttribute("data-notes-mode",i.notes);let b=i.size;i.notes==="fit"&&(b=Nt(i.size,A=>(r.style.fontSize=A+"px",r.scrollHeight>r.clientHeight))),r.style.fontSize=b+"px";let w=r.scrollHeight>r.clientHeight;r.setAttribute("data-notes-scrolls",w?"true":"false"),w?p():r.scrollTop=0,m(),l.fit?.setAttribute("aria-pressed",i.notes==="fit"?"true":"false"),l.scroll?.setAttribute("aria-pressed",i.notes==="scroll"?"true":"false")}function y(b){Object.assign(i,b),n({notes:i.notes,size:i.size,panels:i.panels}),o()}if(l.fit?.addEventListener("click",()=>y({notes:"fit"})),l.scroll?.addEventListener("click",()=>y({notes:"scroll"})),l.smaller?.addEventListener("click",()=>y({size:$e(i.size,-1)})),l.larger?.addEventListener("click",()=>y({size:$e(i.size,1)})),r.addEventListener("scroll",m),typeof ResizeObserver=="function"){let b="";new ResizeObserver(()=>{let w=r.clientWidth+"x"+r.clientHeight;w!==b&&(b=w,o())}).observe(r)}function k(b,w){let A=Array.isArray(b)?b:[],M=JSON.stringify(A);if(M!==u&&(r.scrollTop=0),u=M,A.length){let P=It(A,w);r.replaceChildren(...A.map((T,L)=>{let I=document.createElement("section");return I.setAttribute("presenter-part",""),A.length>1&&I.setAttribute("data-part",L<P?"past":L>P?"later":"now"),I.innerHTML=T,I}))}else{let P=document.createElement("p");P.setAttribute("presenter-nonotes",""),P.textContent=e.dataset.textNonotes||"",r.replaceChildren(P)}o()}function h(){u=null,r.scrollTop=0,r.replaceChildren()}o();function a(b){y({panels:b})}return{show:k,clear:h,setPanels:a}}var $=12,Ze=2,fe=["now","next","notes"],Ee="(min-width: 720px) and (min-height: 560px)";function Be(e,t){return e.x<t.x+t.w&&t.x<e.x+e.w&&e.y<t.y+t.h&&t.y<e.y+e.h}function Xe(e){return e.x>=0&&e.y>=0&&e.w>=Ze&&e.h>=Ze&&e.x+e.w<=$&&e.y+e.h<=$}function pe(e){let t=String(e??"").split(";");if(t.length!==fe.length)return null;let n=[];for(let r of t){let s=r.split(",");if(s.length!==4||!s.every(o=>/^[0-9]{1,2}$/.test(o)))return null;let[l,u,i,m]=s.map(Number),p={x:l,y:u,w:i,h:m};if(!Xe(p))return null;n.push(p)}for(let r=0;r<n.length;r++)for(let s=r+1;s<n.length;s++)if(Be(n[r],n[s]))return null;return n}function G(e){return e.map(t=>[t.x,t.y,t.w,t.h].join(",")).join(";")}function de(e){let t=Math.round(Number(e)||0);return Math.max(-$,Math.min($,t))}function We(e,t,n){let r=e.map(s=>({...s}));for(let[s,l]of n){let u=Math.sign(l);for(let i=0;i<Math.abs(l);i++){let m={...r[t],[s]:r[t][s]+u};if(!Xe(m)||r.some((p,o)=>o!==t&&Be(m,p)))break;r[t]=m}}return r}function te(e,t,n={}){if(!e[t])return e.map(y=>({...y}));let[r,s]=[["x",de(n.dx)],["y",de(n.dy)]],[l,u]=[["w",de(n.dw)],["h",de(n.dh)]],i={...e[t]};for(let[y,k]of[r,s,l,u])i[y]+=k;let m=y=>["x","y","w","h"].reduce((k,h)=>k+Math.abs(y[t][h]-i[h]),0),p=We(e,t,[r,s,l,u]),o=We(e,t,[s,r,u,l]);return m(o)<m(p)?o:p}function Ge(e,t){let n={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]}[e];if(!n)return null;let[r,s]=n;return t?r?{dw:r}:{dh:s}:r?{dx:r}:{dy:s}}var Ve={left:{dx:-1},right:{dx:1},up:{dy:-1},down:{dy:1},narrower:{dw:-1},wider:{dw:1},shorter:{dh:-1},taller:{dh:1}};function Ye(e){return Object.hasOwn(Ve,e)?{...Ve[e]}:null}function Je(e,t,n){return!n||!e[t]?!1:G(te(e,t,n))!==G(e)}function ve(e,t,n){if(!e)return null;let r={...e};return t&&r.dx&&(r.dx=-r.dx),t&&r.dw&&!n&&(r.dw=-r.dw),r}function Qe(e,t,n){let r={name:t,w:n.w,h:n.h,x:n.x+1,y:n.y+1};return String(e||"").replace(/\{(\w+)\}/g,(s,l)=>l in r?String(r[l]):s)}function et(e){let t=[`@media ${Ee} {`];e.forEach((u,i)=>{t.push(` [presenter-panel="${fe[i]}"] { grid-area: ${u.y+1} / ${u.x+1} / span ${u.h} / span ${u.w}; }`)});let[n,r]=e,s=`${n.w} / ${$} * 100cqw - 32px, (${n.h} / ${$} * 100cqh - 16px) * 16 / 9`,l=G(e)===H;return l&&(s+=`, (${r.h} / ${$} * 100cqh - 48px) * 2 * 16 / 9`),t.push(` [presenter-panel] { --p-now: min(${s}); }`),t.push(` [presenter-panel="next"] [presenter-frame] { inline-size: min(100cqw, 100cqh * 16 / 9${l?", var(--p-now) / 2":""}); }`),t.push("}"),t.join(`
-`)+`
-`}function tt({root:e,panels:t,save:n}){let r=e.ownerDocument,s=r.defaultView,l=e.querySelector("[presenter-arrange-bar]"),u=e.querySelector("[presenter-panels]"),i=e.querySelector("[presenter-arrange-tools]"),m=e.querySelector("[presenter-arrange-status]"),p=e.querySelector("#presenter-arrange-help"),o=fe.map(f=>e.querySelector(`[presenter-panel="${f}"]`)),y=s.matchMedia(Ee),k=pe(t)||pe(H),h=k,a=!1,b=null,w=null,A=0,M=()=>s.getComputedStyle(e).direction==="rtl",P=()=>M()?-1:1,T=f=>ve(Ye(f.getAttribute("data-arrange-op")),M(),!0),L=f=>o[f]?.getAttribute("data-arrange-name")||"";function I(f){k=f,b||(b=r.createElement("style"),b.setAttribute("presenter-arranged",""),r.head.append(b)),b.textContent=et(k)}function D(f){m&&(m.textContent=Qe(e.dataset.textArrangeWhere,L(f),k[f]))}function N(){if(!i||!a)return;let f=k[A];i.style.gridArea=`${f.y+1} / ${f.x+1} / span ${f.h} / span ${f.w}`,i.style.justifySelf=f.x*2+f.w>$?"end":"start",i.style.alignSelf=f.y*2+f.h>$?"end":"start";for(let v of i.querySelectorAll("[data-arrange-op]"))v.setAttribute("aria-disabled",String(!Je(k,A,T(v))))}function O(f){A=f,o.forEach((v,_)=>v.toggleAttribute("data-selected",_===f)),i&&(i.setAttribute("aria-label",L(f)),o[f].after(i),i.hidden=!1),N(),D(f)}function x(f,v){let _=G(v)!==G(k);I(v),N(),_&&D(f)}function d(){a=!1,w=null,e.removeAttribute("data-arranging"),l.hidden=!0,i&&(i.hidden=!0),m&&(m.textContent="");for(let f of o){for(let v of["tabindex","role","aria-label","aria-describedby","data-selected"])f.removeAttribute(v);f.querySelector(":scope > [presenter-arrange-handle]")?.remove()}e.querySelector("[presenter-more]")?.focus()}function c(){a||!l||!u||o.some(f=>!f)||!y.matches||(a=!0,h=k,e.setAttribute("data-arranging",""),l.hidden=!1,o.forEach((f,v)=>{f.tabIndex=0,f.setAttribute("role","group"),f.setAttribute("aria-label",L(v)),p&&f.setAttribute("aria-describedby",p.id);let _=r.createElement("span");_.setAttribute("presenter-arrange-handle",""),_.setAttribute("aria-hidden","true"),f.append(_)}),o[0].focus(),O(0))}function E(){I(h),d()}l?.querySelector("[presenter-arrange-done]")?.addEventListener("click",()=>{n(G(k)),h=k,d()}),l?.querySelector("[presenter-arrange-reset]")?.addEventListener("click",()=>{x(A,pe(H)),n(H),h=k}),i?.addEventListener("click",f=>{let v=f.target.closest?.("[data-arrange-op]");!a||!v||v.getAttribute("aria-disabled")==="true"||x(A,te(k,A,T(v)))}),y.addEventListener?.("change",()=>{a&&!y.matches&&E()}),o.forEach((f,v)=>{if(!f)return;f.addEventListener("focus",()=>{a&&A!==v&&O(v)}),f.addEventListener("pointerdown",R=>{if(!a||R.button!==0)return;R.preventDefault(),f.focus({preventScroll:!0}),A!==v&&O(v),f.setPointerCapture?.(R.pointerId);let g=u.getBoundingClientRect();w={i:v,id:R.pointerId,resize:!!R.target.closest?.("[presenter-arrange-handle]"),x:R.clientX,y:R.clientY,w:g.width/$,h:g.height/$,from:k}}),f.addEventListener("pointermove",R=>{if(!w||w.i!==v||w.id!==R.pointerId)return;let g=Math.round(P()*(R.clientX-w.x)/w.w),q=Math.round((R.clientY-w.y)/w.h);x(v,te(w.from,v,w.resize?{dw:g,dh:q}:{dx:g,dy:q}))});let _=R=>{w&&w.id===R.pointerId&&(w=null)};f.addEventListener("pointerup",_),f.addEventListener("pointercancel",_)});function S(f){if(f.metaKey||f.ctrlKey||f.altKey)return;if(f.key==="Escape"){f.preventDefault(),E();return}let v=o.indexOf(r.activeElement),_=v>=0&&Ge(f.key,f.shiftKey);_&&(f.preventDefault(),x(v,te(k,v,ve(_,M(),!1))))}return{start:c,key:S,isOn:()=>a}}var zt=new Set(["next","back","first","last","goto"]);function nt(e,t){let n=()=>e&&e.getAttribute("data-timer-since"),r=i=>(i<10?"0":"")+i;function s(){let i=n();if(!i)return;let m=Math.max(0,Math.floor(Date.now()/1e3-Number(i))),p=Math.floor(m/3600),o=Math.floor(m/60)%60;e.textContent=p?p+":"+r(o)+":"+r(m%60):o+":"+r(m%60)}function l(){t&&(t.textContent=new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}))}function u(){n()&&(e.removeAttribute("data-timer-since"),e.textContent="0:00")}return s(),l(),setInterval(s,1e3),setInterval(l,15e3),{press(i){e&&zt.has(i.op)&&!n()&&e.setAttribute("data-timer-since",String(Math.floor(Date.now()/1e3)))},heard(i){if(!e)return;if(i===null){u();return}let m=String(Math.floor(i/1e3));n()!==m&&e.setAttribute("data-timer-since",m)},reset:u}}function Y(e,t,n){let r=document.createElement(e);return t&&r.setAttribute(t,""),n!==void 0&&(r.textContent=n),r}function rt(e){let t=e.dataset,n=g=>e.querySelector(g),r=n("[presenter-head]"),s=n("[presenter-pos]"),l=n("[presenter-status]"),u=n("[presenter-elapsed]");window.name="slides-presenter";function i(g,q){let C=n("["+g+"]");return C||(C=Y("span",g),C.hidden=!0,q.after(C)),C}let m=i("presenter-stepcount",s);if(!m.firstChild){m.setAttribute("role","status");let g=Y("span","presenter-track");g.setAttribute("aria-hidden","true"),m.append(g,Y("span","presenter-steptext"))}let p=i("presenter-mode",m),o=i("presenter-black",p);function y(g,q,C){let U=C.view,z=s.querySelector("[presenter-count]");z&&(z.textContent=F(t.textProgress,oe(U,q.mode,V(U,q.slide))));let Z=Number(g.presses)||0;if(m.hidden=Z===0,Z){let K=m.querySelector("[presenter-track]");for(;K.children.length<Z;)K.append(Y("i"));for(;K.children.length>Z;)K.lastChild.remove();[...K.children].forEach((at,lt)=>at.toggleAttribute("data-done",lt<q.step)),m.querySelector("[presenter-steptext]").textContent=F(t.textStep,{n:q.step,total:Z})}let B=C.slides.some(K=>K.full);p.hidden=!B,B&&(p.textContent=q.mode==="full"?t.textModeFull:t.textModeCore),o.hidden=!q.black,o.textContent=t.textBlack;let X=e.querySelector('[presenter-menu] form input[name="op"][value="mode"]'),J=X&&X.form.querySelector("button");J&&(J.textContent=q.mode==="full"?t.textMenuCore:t.textMenuFull)}function k(g,q){let C=Y("div","presenter-frame");if(g===null)return C.setAttribute("data-end",""),C;let U=Y("div","presenter-scale");return ee(U,g,q),C.append(U),C}let h="",a=_e(({html:g,step:q,words:C,seq:U})=>{n("[presenter-next-label] span").textContent=C;let z=U+":"+q+":"+g;z!==h&&(h=z,n('[presenter-panel="next"] [presenter-fit]').replaceChildren(k(g,q)))});function b(g,q,C){let U=C.view,z=V(U,q.slide),Z=Number(g.presses)||0,B=W(U,q.mode).find(X=>X>z);q.step<Z?a(C,g.id,q.step+1,t.textNextStep):B!==void 0?a(C,U.slides[B].id,0,t.textNextSlide):a(C,null,0,t.textNextEnd)}let w=n("[presenter-notes]"),A=je()||{},M=He({root:e,prefs:{notes:A.notes||w.getAttribute("data-notes-mode"),size:A.size||Math.round(parseFloat(getComputedStyle(w).fontSize)/2)*2||24,panels:A.panels||H}}),P=n("[presenter-panels]"),T=n("[presenter-empty]");function L(g,q){e.setAttribute("data-empty",""),T&&(T.hidden=!1),P&&(P.hidden=!0),n('[presenter-panel="now"] [presenter-scale]').replaceChildren(),n('[presenter-panel="next"] [presenter-fit]').replaceChildren(),h="",M.clear();let C=s.querySelector("[presenter-count]");C&&(C.textContent=""),s.hidden=!0,m.hidden=!0,p.hidden=!0,o.hidden=!g.black,e.setAttribute("data-slide",""),e.setAttribute("data-step","0"),e.setAttribute("data-mode",g.mode),e.setAttribute("data-blackout",g.black?"true":"false"),e.setAttribute("data-deck-seq",String(q.deckSeq))}function I(g,q,{fresh:C,store:U}){let z=g.slide?U.slide(g.slide):null;if(!z){g.slide||L(g,U);return}let Z=e.hasAttribute("data-empty");Z&&(e.removeAttribute("data-empty"),T&&(T.hidden=!0),P&&(P.hidden=!1),s.hidden=!1);let B=n('[presenter-panel="now"] [presenter-frame]'),X=B.querySelector("[presenter-scale]"),J=!Z&&!C&&q&&q.slide===g.slide;J?q.step!==g.step&&ie(X,g.step):ee(X,z.html,g.step),B.toggleAttribute("data-black",!!g.black),y(z,g,U),b(z,g,U),(!J||q.step!==g.step)&&M.show(Array.isArray(z.notes)?z.notes:[],g.step),e.setAttribute("data-slide",String(z.number)),e.setAttribute("data-step",String(g.step)),e.setAttribute("data-mode",g.mode),e.setAttribute("data-blackout",g.black?"true":"false"),e.setAttribute("data-deck-seq",String(U.deckSeq));let K=new URL(location.href);(K.searchParams.has("slide")||K.searchParams.has("step"))&&(K.searchParams.delete("slide"),K.searchParams.delete("step"),history.replaceState(history.state,"",K.href))}let D="",N=!1;function O(){l&&(l.textContent=N?t.textOffline:D)}let x=nt(u,n("[data-clock]"));function d(g){Se(m,"data-flash"),Se(s,"data-pulse"),x.press(g)}let c=ae({root:e,talkHref:t.talk,streamHref:t.stream,action:t.command,token:e.getAttribute("data-remote-token")||"",draw:I,onPressed:d,onTimer:g=>x.heard(g),onStatus:g=>{N=g==="offline",O()},onProgress:g=>{e.setAttribute("data-loaded",g.finished&&!g.failed?"all":String(g.done)),D=g.finished?g.failed?F(t.textLoadingFailed,{n:g.failed}):"":F(t.textLoading,{n:g.done,total:g.total}),O()}});function E(){c.timerReset(),x.reset()}let S=n("[presenter-more-menu]");e.addEventListener("submit",g=>{S&&g.target.getAttribute("target")==="slides-pair"&&(S.open=!1)}),le(e,t.command,{move:g=>c.move(g),timerReset:E,get store(){return c.store}},()=>{S&&(S.open=!1)});let f=Ke({root:e,talk:{get slides(){return c.store?c.store.slides:[]},get seq(){return c.store?c.store.deckSeq:0}},position:()=>({number:Number(e.getAttribute("data-slide"))}),go:g=>c.move({op:"goto",slide:g.id})}),v=ce({act(g){if(g.move)c.move(g.move);else if(g.jump)c.jump(g.jump);else if(g.timer)E();else if(g.escape){if(f.isOpen()){f.close();return}S&&S.open&&(S.open=!1);let q=document.activeElement;q&&q!==document.body&&q.blur&&q.blur()}}}),_=tt({root:e,panels:A.panels||H,save:M.setPanels});n("[presenter-arrange]")?.addEventListener("click",()=>{S&&(S.open=!1),_.start()});function R(g){_.isOn()&&g.key!=="PageUp"&&g.key!=="PageDown"?_.key(g):v(g)}document.addEventListener("keydown",R),ue(R)}function st(e){let t=e.dataset,n=e.querySelector("[slides-stage]"),r=e.querySelector("[slides-blackout]"),s=e.querySelector("[slides-waiting]"),l=e.querySelector("[slides-announce]");if(!n)return;function u(a){let b=e.querySelector("[slides-counter]");if(!b)return;let w=b.lastChild;w&&w.nodeType===Node.TEXT_NODE?w.textContent=" "+a:b.append(" "+a)}let i=e.querySelector("[slides-empty]"),m=e.querySelector("[slides-bar]");function p(a,b){e.setAttribute("data-empty",""),n.replaceChildren(),n.hidden=!0,m&&(m.hidden=!0),i&&(i.hidden=!1),u(""),l&&i&&l.textContent!==i.innerText&&(l.textContent=i.innerText),e.setAttribute("data-slide",""),e.setAttribute("data-step","0"),e.setAttribute("data-mode",a.mode),e.setAttribute("data-blackout",a.black?"true":"false"),e.setAttribute("data-deck-seq",String(b.deckSeq)),r&&(r.hidden=!a.black)}function o(a,b,{fresh:w,store:A}){let M=a.slide?A.slide(a.slide):null;if(!M){a.slide||p(a,A);return}let P=e.hasAttribute("data-empty");P&&(e.removeAttribute("data-empty"),n.hidden=!1,m&&(m.hidden=!1),i&&(i.hidden=!0));let T=A.view;if(!P&&!w&&b&&b.slide===a.slide)b.step!==a.step&&ie(n,a.step);else{ee(n,M.html,a.step);let O=F(t.textAnnounce,{n:M.number,total:A.slides.length,title:M.title});e.setAttribute("data-announce",O),l&&l.textContent!==O&&(l.textContent=O)}let I=oe(T,a.mode,V(T,a.slide));u(F(t.textProgress,I));let D=e.querySelector("[slides-progress]");D&&(D.setAttribute("value",String(I.n)),D.setAttribute("max",String(I.total))),e.setAttribute("data-slide",String(M.number)),e.setAttribute("data-step",String(a.step)),e.setAttribute("data-mode",a.mode),e.setAttribute("data-blackout",a.black?"true":"false"),e.setAttribute("data-deck-seq",String(A.deckSeq)),r&&(r.hidden=!a.black);let N=new URL(location.href);(N.searchParams.has("slide")||N.searchParams.has("step"))&&(N.searchParams.delete("slide"),N.searchParams.delete("step"),history.replaceState(history.state,"",N.href))}let y=ae({root:e,talkHref:t.talk,streamHref:t.stream,action:t.command,token:e.getAttribute("data-remote-token")||"",draw:o,onProgress:a=>e.setAttribute("data-loaded",a.finished&&!a.failed?"all":String(a.done)),onStatus:a=>{s&&(s.textContent=t.textWaiting,s.hidden=a!=="offline")}});le(e,t.command,y);let k=ce({act(a){if(a.move)y.move(a.move);else if(a.jump)y.jump(a.jump);else if(a.timer)y.timerReset();else if(a.open&&t.presenter)window.open(t.presenter,"slides-presenter");else if(a.escape){document.fullscreenElement&&document.exitFullscreen();let b=document.activeElement;b&&b!==document.body&&b.blur&&b.blur()}}});document.addEventListener("keydown",k),ue(k);let h=null;e.addEventListener("touchstart",a=>{h=a.changedTouches[0].clientX},{passive:!0}),e.addEventListener("touchend",a=>{if(h===null)return;let b=a.changedTouches[0].clientX-h;h=null,Math.abs(b)>=60&&y.move({op:b<0?"next":"back"})},{passive:!0})}var it=document.querySelector("[presenter][data-talk]"),ot=document.querySelector("[slides-surface][data-talk]");it?rt(it):ot&&st(ot);
diff --git a/internal/slides/templates/present.html b/internal/slides/templates/present.html
index c150eab..a6616aa 100644
--- a/internal/slides/templates/present.html
+++ b/internal/slides/templates/present.html
@@ -88,6 +88,25 @@
padding: var(--rst-sp-3);
position: absolute;
}
+ /* Out of sight while presenting, not gone: the script sets data-quiet,
+ so without it the bar stays (it is then the only way to drive the
+ window). Opacity keeps it in the accessibility tree and the tab
+ order; a pointer move or focus in the bar takes the attribute off. */
+ [slides-bar] {
+ transition: opacity 0.2s;
+ }
+ [slides-surface][data-quiet],
+ [slides-surface][data-quiet] * {
+ cursor: none;
+ }
+ [slides-surface][data-quiet] [slides-bar] {
+ opacity: 0;
+ }
+ @media (prefers-reduced-motion: reduce) {
+ [slides-bar] {
+ transition: none;
+ }
+ }
[slides-bar] form {
display: inline;
margin: 0;
diff --git a/internal/slidestest/slide_window_bar_browser_test.go b/internal/slidestest/slide_window_bar_browser_test.go
new file mode 100644
index 0000000..cea1c76
--- /dev/null
+++ b/internal/slidestest/slide_window_bar_browser_test.go
@@ -0,0 +1,197 @@
+//go:build browser
+
+// The slide window's control bar is out of sight while presenting: the
+// slide has nothing over it. A pointer moving over the window, or focus
+// entering the bar, shows it; two seconds of stillness, or a key that
+// moves the talk, hides it again. With scripts off it stays, because it
+// is then the only way to drive the window. Both scripts do this: the
+// presenter bundle (a session with a position) and static/present.js
+// (the follow link).
+package slidestest
+
+import (
+ "net/url"
+ "testing"
+ "time"
+
+ "amadan.net/rastrillo/rastrillo/harness"
+ "github.com/chromedp/cdproto/emulation"
+ "github.com/chromedp/cdproto/input"
+ "github.com/chromedp/chromedp"
+ "github.com/chromedp/chromedp/kb"
+)
+
+// barShownJS: the bar can be seen. Opacity is what hides it, so the
+// bar stays in the accessibility tree and in the tab order.
+const barShownJS = `(() => { const b = document.querySelector('[slides-bar]'); return !!b && getComputedStyle(b).opacity === '1' })()`
+const barHiddenJS = `(() => { const b = document.querySelector('[slides-bar]'); return !!b && getComputedStyle(b).opacity === '0' })()`
+
+func mouseTo(x, y float64) chromedp.Action[chromedp.Void] {
+ return cdpStep(input.DispatchMouseEvent, input.DispatchMouseEventParams{Type: chromedp.MouseMoved, X: x, Y: y})
+}
+
+// checkQuietBar drives one window, loaded at page, through the whole
+// approved behaviour.
+func checkQuietBar(t *testing.T, rig *harness.Rig, page, ready string, keys bool) {
+ t.Helper()
+ rig.Run(
+ cdpStep(emulation.SetDeviceMetricsOverride, emulation.SetDeviceMetricsOverrideParams{Width: 1280, Height: 720, DeviceScaleFactor: 1}),
+ chromedp.Navigate(page),
+ waitFor(ready),
+ waitFor(barHiddenJS),
+ )
+ var cursor string
+ var inTree bool
+ rig.Run(
+ evalInto(&cursor, `getComputedStyle(document.querySelector('[slides-surface]')).cursor`),
+ evalInto(&inTree, `(() => { const b = document.querySelector('[slides-bar]'); const s = getComputedStyle(b); return s.display !== 'none' && s.visibility !== 'hidden' && !b.hidden && b.querySelector('a, button') !== null })()`),
+ )
+ if cursor != "none" {
+ t.Errorf("the pointer over the quiet window is %q, want none", cursor)
+ }
+ if !inTree {
+ t.Errorf("the hidden bar must stay displayed (in the accessibility tree) and hold its controls")
+ }
+
+ // Moving the pointer shows it, and the pointer comes back with it.
+ rig.Run(mouseTo(400, 200), waitFor(barShownJS))
+ rig.Run(evalInto(&cursor, `getComputedStyle(document.querySelector('[slides-surface]')).cursor`))
+ if cursor == "none" {
+ t.Errorf("the pointer is hidden while the bar shows")
+ }
+ rig.Run(chromedp.Sleep(2500*time.Millisecond), waitFor(barHiddenJS))
+
+ // A key that moves the talk hides it at once.
+ var quiet bool
+ rig.Run(
+ mouseTo(420, 210), waitFor(barShownJS),
+ chromedp.KeyEvent(kb.ArrowRight),
+ chromedp.Sleep(800*time.Millisecond),
+ evalInto(&quiet, barHiddenJS),
+ )
+ // The follow link drives nothing, so a key there moves nothing.
+ if keys && !quiet {
+ t.Errorf("a key that moves the talk left the bar showing")
+ }
+
+ // Over the bar it stays up past the two seconds.
+ var y float64
+ rig.Run(
+ mouseTo(400, 200), waitFor(barShownJS),
+ evalInto(&y, `(() => { const r = document.querySelector('[slides-bar]').getBoundingClientRect(); return r.top + r.height / 2 })()`),
+ )
+ var still bool
+ rig.Run(mouseTo(640, y), chromedp.Sleep(2500*time.Millisecond), evalInto(&still, barShownJS))
+ if !still {
+ t.Errorf("the bar hid while the pointer was over it")
+ }
+ rig.Run(mouseTo(400, 100), chromedp.Sleep(2500*time.Millisecond), waitFor(barHiddenJS))
+
+ // A pointer that rests on the bar and then leaves the window is idle
+ // from then on: the bar goes two seconds after it leaves.
+ rig.Run(mouseTo(400, 200), waitFor(barShownJS), mouseTo(640, y), chromedp.Sleep(2500*time.Millisecond),
+ mouseTo(640, 719), mouseTo(640, 760))
+ rig.Run(chromedp.Sleep(2500*time.Millisecond), waitFor(barHiddenJS))
+
+ // Tab reaches the hidden bar, and focus shows it and holds it.
+ var inside, held bool
+ rig.Run(
+ chromedp.KeyEvent(kb.Tab), waitFor(barShownJS),
+ evalInto(&inside, `!!document.activeElement?.closest('[slides-bar]')`),
+ chromedp.Sleep(2500*time.Millisecond),
+ evalInto(&held, barShownJS),
+ )
+ if !inside {
+ t.Errorf("Tab did not land in the bar")
+ }
+ if !held {
+ t.Errorf("the bar hid while focus was inside it")
+ }
+}
+
+// checkQuietBarFollowsTheTalk: the bar goes when the talk moves (a press
+// from anywhere, a blackout, a number and Enter), but never while focus
+// is inside it; then it goes on the ordinary idle rule.
+func checkQuietBarFollowsTheTalk(t *testing.T, rig *harness.Rig, page, ready string, press func(op string), keys bool) {
+ t.Helper()
+ rig.Run(
+ cdpStep(emulation.SetDeviceMetricsOverride, emulation.SetDeviceMetricsOverrideParams{Width: 1280, Height: 720, DeviceScaleFactor: 1}),
+ chromedp.Navigate(page), waitFor(ready), waitFor(barHiddenJS),
+ )
+ settle := chromedp.Sleep(800 * time.Millisecond)
+ var shown, hidden bool
+ expect := func(what string, wantShown bool) {
+ t.Helper()
+ rig.Run(settle, evalInto(&shown, barShownJS), evalInto(&hidden, barHiddenJS))
+ if wantShown && !shown || !wantShown && !hidden {
+ t.Errorf("%s: bar shown=%v hidden=%v, want shown=%v", what, shown, hidden, wantShown)
+ }
+ }
+ for _, op := range []string{"next", "blackout", "blackout"} {
+ rig.Run(mouseTo(400, 200), waitFor(barShownJS))
+ press(op)
+ expect("after "+op+" from elsewhere", false)
+ }
+ if keys {
+ rig.Run(mouseTo(400, 200), waitFor(barShownJS), chromedp.KeyEvent("3"), chromedp.KeyEvent(kb.Enter))
+ expect("after a number and Enter", false)
+ }
+
+ // Focus inside the bar holds it, whatever the talk does.
+ rig.Run(chromedp.KeyEvent(kb.Tab), waitFor(barShownJS))
+ for _, op := range []string{"next", "blackout", "blackout"} {
+ press(op)
+ expect("focus in the bar, after "+op, true)
+ }
+ if keys {
+ rig.Run(chromedp.KeyEvent(kb.ArrowLeft))
+ expect("focus in the bar, after a key that moves the talk", true)
+ }
+ // Focus leaves: the idle rule applies again.
+ rig.Run(evalInto(&shown, `(document.activeElement.blur(), true)`), chromedp.Sleep(2500*time.Millisecond), waitFor(barHiddenJS))
+}
+
+func TestTheSlideWindowBarIsOutOfSightWhilePresenting(t *testing.T) {
+ rig, app := newRigApp(t, nil)
+ cookies := signedIn(t, app, allowedAddress)
+ deck := stepsDeck(t, app, cookies)
+ session, token := startPresenting(t, app, deck, cookies)
+
+ t.Run("positional session", func(t *testing.T) {
+ checkQuietBar(t, rig, rig.Origin+"/p/"+session+"?t="+url.QueryEscape(token), `document.querySelector('[slides-surface][data-talk]')`, true)
+ })
+ t.Run("positional session, the talk moves", func(t *testing.T) {
+ s2, t2 := startPresenting(t, app, deck, cookies)
+ checkQuietBarFollowsTheTalk(t, rig, rig.Origin+"/p/"+s2+"?t="+url.QueryEscape(t2), `document.querySelector('[slides-surface][data-talk]')`,
+ func(name string) { press(t, app, s2, t2, op(t, name), nil) }, true)
+ })
+ t.Run("follow link, the talk moves", func(t *testing.T) {
+ s3, t3 := startPresenting(t, app, deck, cookies)
+ share := mintShareLink(t, app, deck, cookies)
+ checkQuietBarFollowsTheTalk(t, rig, rig.Origin+"/s/"+share+"?follow=1", `document.querySelector('[slides-surface]:not([data-talk])')`,
+ func(name string) { press(t, app, s3, t3, op(t, name), nil) }, false)
+ })
+ t.Run("follow link", func(t *testing.T) {
+ share := mintShareLink(t, app, deck, cookies)
+ checkQuietBar(t, rig, rig.Origin+"/s/"+share+"?follow=1", `document.querySelector('[slides-surface]:not([data-talk])')`, false)
+ })
+}
+
+func TestTheSlideWindowBarStaysWithScriptsOff(t *testing.T) {
+ rig, app := newRigApp(t, nil)
+ cookies := signedIn(t, app, allowedAddress)
+ deck := stepsDeck(t, app, cookies)
+ session, token := startPresenting(t, app, deck, cookies)
+
+ rig.Run(
+ cdpStep(emulation.SetScriptExecutionDisabled, emulation.SetScriptExecutionDisabledParams{Value: true}),
+ chromedp.Navigate(rig.Origin+"/p/"+session+"?t="+url.QueryEscape(token)),
+ chromedp.WaitVisible(chromedp.CSS(`[slides-bar]`)),
+ chromedp.Sleep(2500*time.Millisecond),
+ )
+ var shown bool
+ rig.Run(evalInto(&shown, barShownJS))
+ if !shown {
+ t.Errorf("with scripts off the bar must stay visible")
+ }
+}