{
  "version": 3,
  "sources": ["mobile.js"],
  "sourcesContent": ["(() => {\n  const root = document.body;\n\n  // base.html asks Android Chrome to shrink the page for the keyboard\n  // (interactive-widget=resizes-content), so there the keyboard covers nothing and\n  // innerHeight drops with it. It shows instead as the page being shorter than it has\n  // been at this width while a field has focus. iOS still overlays, and `covered`\n  // still measures it.\n  let width = 0;\n  let fullHeight = 0;\n\n  const syncKeyboard = () => {\n    const viewport = window.visualViewport;\n    if (!viewport) {\n      return;\n    }\n    if (window.innerWidth !== width) {\n      width = window.innerWidth;\n      fullHeight = 0;\n    }\n    fullHeight = Math.max(fullHeight, window.innerHeight);\n    const covered = Math.max(0, window.innerHeight - viewport.height - viewport.offsetTop);\n    const typing = document.activeElement?.matches(\n      \"input:not([type=radio], [type=checkbox], [type=range], [type=submit], [type=button]), textarea, [contenteditable]\",\n    );\n    root.style.setProperty(\"--keyboard-height\", `${covered}px`);\n    root.classList.toggle(\"is-keyboard\", covered > 80 || (typing && fullHeight - viewport.height > 80));\n  };\n\n  window.visualViewport?.addEventListener(\"resize\", syncKeyboard);\n  window.visualViewport?.addEventListener(\"scroll\", syncKeyboard);\n  window.addEventListener(\"focusin\", syncKeyboard);\n  window.addEventListener(\"focusout\", () => {\n    window.setTimeout(syncKeyboard, 50);\n  });\n  syncKeyboard();\n\n  const alpineOn = (elt) => {\n    if (!window.Alpine || !(elt instanceof Element)) {\n      return;\n    }\n    if (elt === document.body || elt === document.documentElement) {\n      return;\n    }\n    window.Alpine.initTree(elt);\n  };\n\n  const replacedActivities = new Map();\n  // WebKit reports a nonce-less <script type=\"application/json\"> as a blocked inline\n  // script (BIBS-ON-6X). A full document is stamped by the server with its own policy\n  // nonce. A swap is parsed under the document already open, so it needs that nonce,\n  // and htmx only copies inlineScriptNonce onto scripts it executes.\n  document.body.addEventListener(\"htmx:beforeSwap\", (event) => {\n    const nonce = window.htmx?.config?.inlineScriptNonce;\n    const html = event.detail?.serverResponse;\n    if (!nonce || !/^[A-Za-z0-9_-]+$/.test(nonce) || typeof html !== \"string\" || !html.includes(\"<script\")) {\n      return;\n    }\n    event.detail.serverResponse = html.replace(\n      /<script\\b(?![^>]*\\bnonce=)([^>]*\\btype=\"application\\/(?:json|ld\\+json)\"[^>]*)>/gi,\n      (_tag, attrs) => `<script${attrs} nonce=\"${nonce}\">`,\n    );\n  });\n  document.body.addEventListener(\"htmx:beforeSwap\", (event) => {\n    const target = event.detail?.target;\n    if (target?.matches(\"details.activity-card\")) {\n      replacedActivities.set(target.id, {\n        open: target.open,\n        restoreFocus: target.contains(document.activeElement),\n        focusId: document.activeElement.id,\n      });\n    }\n  });\n  document.body.addEventListener(\"htmx:afterSettle\", () => {\n    for (const [id, state] of replacedActivities) {\n      const card = document.getElementById(id);\n      // A pending replacement can poll several times before the card returns.\n      if (!card?.matches(\"details.activity-card\")) continue;\n      replacedActivities.delete(id);\n      card.open = state.open;\n      if (state.restoreFocus && (document.activeElement === document.body || card.contains(document.activeElement))) {\n        const focus = (state.focusId && document.getElementById(state.focusId)) || card.querySelector(\"summary\");\n        focus?.focus({ preventScroll: true });\n      }\n    }\n  });\n\n  // One walkthrough at a time. Opening a second card used to leave the first\n  // audio's play() promise running, so Michael talked over himself.\n  document.addEventListener(\n    \"play\",\n    (event) => {\n      const media = event.target;\n      if (!(media instanceof HTMLMediaElement)) {\n        return;\n      }\n      media.loop = false;\n      document.querySelectorAll(\"audio, video\").forEach((el) => {\n        if (el === media) {\n          return;\n        }\n        el.loop = false;\n        el.pause();\n      });\n      document.dispatchEvent(\n        new CustomEvent(\"walkthrough:play\", {\n          detail: media,\n        }),\n      );\n    },\n    true,\n  );\n\n  document.body.addEventListener(\"htmx:afterSettle\", (event) => {\n    alpineOn(event.detail?.elt ?? event.target);\n  });\n  document.body.addEventListener(\"htmx:oobAfterSwap\", (event) => {\n    alpineOn(event.detail?.target ?? event.target);\n  });\n  document.body.addEventListener(\"htmx:afterSwap\", (event) => {\n    const elt = event.detail?.elt ?? event.target;\n    if (elt instanceof Element && elt.id === \"toast-region\") {\n      alpineOn(elt);\n    }\n  });\n\n  // A browser that holds back animations (a window in the background, a throttled pane)\n  // can stop an entry part way: a sheet half risen over a page showModal has already\n  // made inert, a menu still see-through. Every one of these runs well under half a\n  // second, so once it should have ended, finish whatever is still running on it. The\n  // wrap covers every caller, the big clock's Alpine effect and native-bridge.js included.\n  const SETTLE_MS = 450;\n  const settle = (element) => {\n    if (typeof document.getAnimations !== \"function\") return;\n    window.setTimeout(() => {\n      document.getAnimations().forEach((animation) => {\n        const target = animation.effect?.target;\n        if (animation.playState !== \"running\" || !(target instanceof Element) || !element.contains(target)) return;\n        // finish() throws InvalidStateError when there is no end to seek to: an\n        // infinite loop, a playback rate of zero, or a timeline iOS left idle\n        // while it held the sheet back. That last one is the case this exists\n        // for. Leave the animation alone; the throw was an unhandled error.\n        const timing = animation.effect.getComputedTiming?.();\n        if (animation.playbackRate === 0 || (timing && !Number.isFinite(timing.endTime))) return;\n        try {\n          animation.finish();\n        } catch (error) {\n          if (error?.name !== \"InvalidStateError\") throw error;\n        }\n      });\n    }, SETTLE_MS);\n  };\n  const dialogMethods = typeof HTMLDialogElement === \"undefined\" ? [] : [\"showModal\", \"show\", \"close\"];\n  dialogMethods.forEach((name) => {\n    const original = HTMLDialogElement.prototype[name];\n    HTMLDialogElement.prototype[name] = function (...args) {\n      const result = original.apply(this, args);\n      settle(this);\n      return result;\n    };\n  });\n  document.addEventListener(\n    \"toggle\",\n    (event) => {\n      if (typeof HTMLDetailsElement !== \"undefined\" && event.target instanceof HTMLDetailsElement) settle(event.target);\n    },\n    true,\n  );\n\n  // A sheet whose form came back with errors opens at once, since closed it would hide\n  // the message that says why nothing changed. So does a sheet the page opens with,\n  // such as the team ask over a first plan as it lands.\n  // Once for each screen: the first load, and each boosted swap of the body after it.\n  // A sheet swapped in as part of a screen's own fragment is not a screen arriving.\n  window.htmx?.onLoad((elt) => {\n    if (elt !== document.body && elt.parentElement !== document.body) return;\n    elt.querySelectorAll(\"dialog[data-open-on-load]\").forEach((dialog) => {\n      if (!dialog.open) dialog.showModal();\n    });\n  });\n\n  // The tapped tab's icon bounces once (board 5.1, styles.css `tab-bounce`), and the tap's\n  // time goes to the next page under nav-transition.js's key. That page's nav-transition.js\n  // puts the time on <html> as it reveals, and this finishes a bounce still running on its\n  // own tab, now filled, from where it had got to: as this runs if the page is already\n  // revealed, or on `pagereveal` if this runs first.\n  const TAB_KEY = \"bibson-nav-tab\";\n  const BOUNCE_MS = 360;\n  const bounce = (tab, from) => {\n    if (!tab) return;\n    tab.style.setProperty(\"--bounce-from\", `-${from}ms`);\n    tab.classList.remove(\"is-bouncing\");\n    void tab.offsetWidth; // a second tap restarts it\n    tab.classList.add(\"is-bouncing\");\n    setTimeout(() => tab.classList.remove(\"is-bouncing\"), BOUNCE_MS - from);\n  };\n  const finishBounce = () => {\n    const html = document.documentElement;\n    const since = Date.now() - Number(html.dataset.tabTapped);\n    delete html.dataset.tabTapped;\n    if (since < BOUNCE_MS) bounce(document.querySelector(\".tab-bar__button.is-active\"), since);\n  };\n  finishBounce();\n  window.addEventListener(\"pagereveal\", finishBounce);\n  // A boosted tab tap swaps the body, and nav-transition.js puts the tap's time on <html>.\n  // A new document starts a screen reader at its top and reads its title. A boosted screen\n  // is not one, so focus moves to its heading (or the content) without scrolling, and the\n  // heading is what is read. After the screen has painted: focus() lays the page out on\n  // the spot, which held the swap's frame back by 9 to 11 ms at 4x throttle (profile in\n  // docs/perf-baseline-2026-11.md).\n  const afterPaint = (fn) => window.requestAnimationFrame(() => window.setTimeout(fn, 0));\n  // posthog.js stops a boosted tap's `nav_ms` clock here too, so it counts the paint.\n  if (window.BibsOnNav) window.BibsOnNav.afterPaint = afterPaint;\n  const focusScreen = () => {\n    const main = document.getElementById(\"main\");\n    const target = main?.querySelector(\"h1\") || main;\n    if (!target) return;\n    if (!target.hasAttribute(\"tabindex\")) {\n      target.setAttribute(\"tabindex\", \"-1\");\n      // Not a control, so it draws no ring. styles.css `[data-quiet-focus]` sees to that.\n      target.setAttribute(\"data-quiet-focus\", \"\");\n    }\n    target.focus({ preventScroll: true });\n  };\n  document.body.addEventListener(\"htmx:afterSettle\", (event) => {\n    if (!event.detail?.boosted || event.target !== document.body) return;\n    finishBounce();\n    afterPaint(focusScreen);\n  });\n  document.body.addEventListener(\"htmx:historyRestore\", () => afterPaint(focusScreen));\n  document.addEventListener(\n    \"click\",\n    (event) => {\n      const tab = event.target.closest(\"a.tab-bar__button\");\n      if (!tab) return;\n      bounce(tab, 0);\n      try {\n        sessionStorage.setItem(TAB_KEY, String(Date.now()));\n      } catch (e) {\n        /* private mode: it slides */\n      }\n    },\n    true,\n  );\n\n  document.addEventListener(\"click\", (event) => {\n    const openBtn = event.target.closest(\"[data-open-dialog]\");\n    if (openBtn instanceof HTMLElement) {\n      event.preventDefault();\n      // A menu item closes its menu. Any other <details> stays open: a practice's Change\n      // opens its sheet from inside the activity card, which closed and hid the sheet with it.\n      const menu = openBtn.closest(\".overflow-menu details\");\n      const dialog = document.getElementById(openBtn.dataset.openDialog);\n      menu?.removeAttribute(\"open\");\n      // The item that opened it is hidden in the closed menu, so the dialog's own\n      // focus return lands on the body. Hand focus to the menu's button instead.\n      if (menu && dialog) {\n        dialog.addEventListener(\"close\", () => menu.querySelector(\"summary\")?.focus(), { once: true });\n      }\n      dialog?.showModal();\n      return;\n    }\n    const closeBtn = event.target.closest(\"[data-close-dialog]\");\n    if (closeBtn instanceof HTMLElement) {\n      event.preventDefault();\n      closeBtn.closest(\"dialog\")?.close();\n    }\n  });\n\n  // A tap on the dimmed backdrop closes a sheet. Only Esc and the Close button did,\n  // and a tap outside is the one way out every phone user tries first. The press and\n  // the release both have to land outside the sheet's box: its own padding is part of\n  // the <dialog> too, and a drag that starts in a field should not close the form.\n  const outside = (dialog, event) => {\n    const box = dialog.getBoundingClientRect();\n    return event.clientX < box.left || event.clientX > box.right || event.clientY < box.top || event.clientY > box.bottom;\n  };\n  let pressedOutside = null;\n  document.addEventListener(\"pointerdown\", (event) => {\n    const sheet = event.target instanceof Element ? event.target.closest(\"dialog.sheet[open]\") : null;\n    pressedOutside = sheet && outside(sheet, event) ? sheet : null;\n  });\n  document.addEventListener(\"click\", (event) => {\n    const sheet = pressedOutside;\n    pressedOutside = null;\n    if (sheet && event.target === sheet && outside(sheet, event)) sheet.close();\n  });\n\n  // A \u2022\u2022\u2022 menu, or one of the website's menus, is a <details>, which only closes from its own\n  // summary. Close an open one on a tap anywhere else, on a link inside it, or on Escape,\n  // as a native menu would. Left open, the \u2022\u2022\u2022 menu sat under the next sheet's scrim, and\n  // the phone sheet's \"See an example session\" scrolled the card into view behind itself.\n  // A download (the pitch card) stays on the page, and its menu stays open with the item\n  // working until the file is ready (pitch-card.js closes it).\n  const openMenus = () =>\n    document.querySelectorAll(\n      \".overflow-menu details[open], details.landing-nav__menu[open], details.landing-nav__drop[open]\",\n    );\n  document.addEventListener(\"click\", (event) => {\n    openMenus().forEach((menu) => {\n      if (!menu.contains(event.target) || event.target.closest(\"a[href]:not([download])\")) menu.open = false;\n    });\n  });\n  document.addEventListener(\"keydown\", (event) => {\n    if (event.key !== \"Escape\") return;\n    openMenus().forEach((menu) => {\n      menu.open = false;\n      menu.querySelector(\"summary\")?.focus();\n    });\n  });\n\n  // Return in a box of a `data-enter-next` form goes to the next box, and on the last one\n  // does nothing. It used to send the form through its default button: on the planner's\n  // last screen and the drill page that built a session or a drill and spent the allowance,\n  // and on the planner's players screen it skipped that player's needs box. A textarea\n  // keeps Return for a new line, and only the button a coach presses sends these forms.\n  const TYPED =\n    \"input:not([type=radio], [type=checkbox], [type=range], [type=submit], [type=button], [type=reset], [type=image], [type=hidden], [type=file], [type=color]), textarea\";\n  const enterNext = (field) => field instanceof HTMLInputElement && field.form?.matches(\"[data-enter-next]\");\n  // The box Return moves to: the next one on screen that takes typing, or none.\n  const nextBox = (field) => {\n    const shown = Array.from(field.form.elements).filter(\n      (element) => element.matches(TYPED) && element.getClientRects().length > 0,\n    );\n    return shown.slice(shown.indexOf(field) + 1).find((element) => !element.disabled && !element.readOnly);\n  };\n  document.addEventListener(\"keydown\", (event) => {\n    const field = event.target;\n    if (event.key !== \"Enter\" || event.isComposing || !enterNext(field)) return;\n    if ([\"submit\", \"button\", \"reset\", \"image\"].includes(field.type)) return;\n    event.preventDefault();\n    if (field.matches(TYPED)) nextBox(field)?.focus();\n  });\n  // The key on the phone's keyboard says what Return will do there.\n  document.addEventListener(\"focusin\", (event) => {\n    const field = event.target;\n    if (enterNext(field) && field.matches(TYPED)) field.enterKeyHint = nextBox(field) ? \"next\" : \"done\";\n  });\n\n  // Building a session is slow enough to invite a second tap, which spends the\n  // coach's quota twice. form.elements covers buttons bound by the form attribute.\n  const submitButtons = (form) =>\n    Array.from(form.elements).filter(\n      (element) => element instanceof HTMLButtonElement && element.type === \"submit\",\n    );\n\n  // htmx cancels the browser's own submit on these forms and sends them itself: its own\n  // hx-post and the like, and any form a boosted page takes over (the nearest hx-boost wins).\n  const sentByHtmx = (form) =>\n    form.matches(\"[hx-post], [hx-put], [hx-patch], [hx-delete], [hx-get]\") ||\n    form.closest(\"[hx-boost]\")?.getAttribute(\"hx-boost\") === \"true\";\n\n  // A form that holds a submit and presses it again once it is ready (`data-send-held`): the\n  // planner's Build, tapped while the last screen's draft is still saving (create-wizard.js\n  // `sendHeld`). It is cancelled now, but it has been answered, so it goes busy now.\n  const heldToSend = (form) => \"sendHeld\" in form.dataset;\n\n  // A button that sends its own request, not its form's: the Ask box, the Bib beside Run, a\n  // drill's Ask. Its `hx-disabled-elt` has htmx disable it while the request runs, and says\n  // it goes busy then too (board 11).\n  const selfSent = (button) => Boolean(button.hasAttribute?.(\"hx-disabled-elt\"));\n\n  const setBusy = (button, busy) => {\n    // Disabling a focused button drops focus to <body>. Note it, so the button takes\n    // focus back when it is enabled again on the same page: a form outside its swap\n    // (the squad's paste box, the run screen's headcount sheet) keeps its button.\n    if (busy && document.activeElement === button) button.dataset.busyFocus = \"\";\n    button.disabled = busy;\n    if (busy) button.setAttribute(\"aria-busy\", \"true\"); else button.removeAttribute(\"aria-busy\");\n    if (!busy && \"busyFocus\" in button.dataset) {\n      delete button.dataset.busyFocus;\n      const nowhere = !document.activeElement || document.activeElement === document.body;\n      if (button.isConnected && nowhere) button.focus({ preventScroll: true });\n    }\n    const swap = button.dataset.busyLabel;\n    if (!swap) {\n      return;\n    }\n    const slot = button.querySelector(\".btn-label\") || button;\n    if (busy) {\n      // Sent again while it still says it is done: it rests on its own words, not those.\n      button.dataset.restLabel = \"done\" in button.dataset ? button.dataset.doneRest : slot.textContent;\n      delete button.dataset.done;\n      slot.textContent = swap;\n    } else if (button.dataset.restLabel) {\n      slot.textContent = button.dataset.restLabel;\n    }\n  };\n\n  // A form with several answers to pick from (the walls' \"What do you need next?\" and\n  // \"What's stopping you\") puts only the one tapped busy, with its spinner. The others are\n  // held: disabled, so a second answer cannot go too, with no spinner of their own. Every\n  // answer spun before, so none of them said which had been taken (P2-8, 9 Nov 2026 tap audit).\n  const heldBeside = (button, submitter) => submitter instanceof HTMLButtonElement && submitter !== button;\n  const hold = (button, held) => {\n    button.disabled = held;\n    if (held) button.setAttribute(\"data-busy-held\", \"\");\n    else button.removeAttribute(\"data-busy-held\");\n  };\n\n  // Hands a button back from either look: busy, or held beside the one tapped.\n  const release = (button) => (button.hasAttribute(\"data-busy-held\") ? hold(button, false) : setBusy(button, false));\n\n  // How many times the page has been put away (`pagehide`), so a busy state that was\n  // waiting to be set when it went can tell it is too late. The page also gives back\n  // every busy look as it goes (`freeBusy`, below), so the back-forward cache keeps it clean.\n  let hidden = 0;\n  window.addEventListener(\"pagehide\", () => {\n    hidden += 1;\n    freeBusy();\n    freeRequests();\n  });\n\n  // How long a tap waits for its next page before it is handed back (links, and forms the\n  // browser sends itself). 30 s, since a page on a dead signal is still loading at 10 s, and\n  // a tap that let go then could be made again (N6). `pageshow` and `pagehide` clear it\n  // sooner (`freeBusy`). Shared, with a fetch signal that gives up after it, for the taps\n  // other scripts send themselves (native-bridge.js `makeLink`, match-picture.js).\n  const LINK_WAIT_MS = 30000;\n  window.BibsOnTap = {\n    waitMs: LINK_WAIT_MS,\n    signal: () => (typeof AbortSignal !== \"undefined\" && AbortSignal.timeout ? AbortSignal.timeout(LINK_WAIT_MS) : undefined),\n  };\n\n  // Forms whose send costs the coach if it goes twice keep their buttons busy until a page\n  // comes back, however long that takes: a build or a copy spends the allowance, a checkout\n  // or a plan change is a payment, and a new team, squad, match, sheet or shared session\n  // would be made twice (`data-holds-busy`). Create's Build has its own give-up,\n  // which keeps every answer and says so (create-wizard.js `unsent`).\n  const HOLDS_BUSY = \"[data-holds-busy], [x-data='createWizard']\";\n\n  // A form the browser sends itself answers with the next page, which ends this one and its\n  // timers. In the iPhone app a send lost to a dropped signal keeps the page, with no error\n  // page and no `pageshow`, so its button said \"Saving\u2026\" for good (full time's \"Plan\n  // Thursday's session around it\", 9 Nov 2026). Still here after LINK_WAIT_MS, as a link\n  // would be: hand the buttons back. The send may yet land (a code is mailed after the\n  // answer), so the words say it is slow, not that it failed: the form's own\n  // (`data-unsent`) or the page's (`data-send-slow`).\n  const freeUnsent = (form, buttons, putAway) => {\n    window.setTimeout(() => {\n      if (hidden !== putAway) return;\n      const stuck = buttons.filter(\n        (button) => button.isConnected && (button.hasAttribute(\"aria-busy\") || button.hasAttribute(\"data-busy-held\")),\n      );\n      if (!stuck.length) return;\n      stuck.forEach(release);\n      const message = form.dataset.unsent || root.dataset.sendSlow;\n      if (message) window.BibsOnToast?.showError(message);\n    }, LINK_WAIT_MS);\n  };\n\n  document.addEventListener(\n    \"submit\",\n    (event) => {\n      const form = event.target;\n      if (!(form instanceof HTMLFormElement) || form.dataset.allowResubmit) {\n        return;\n      }\n      const putAway = hidden;\n      // Disable after the browser has serialised the form, or the pressed\n      // button's name, value and formaction are dropped from the request. This runs in\n      // the capture phase, before the form's own handlers, so wait for them too: a\n      // submit one of them cancelled sends nothing, unless htmx cancelled it to send it\n      // itself or the form holds it to send later (`heldToSend`). The planner's wizard cancels a submit no Build was pressed for, and its\n      // Build button used to wait there already busy.\n      // A page put away before the wait ran (the browser's back-forward cache, or iOS\n      // freezing the app as the next page opened) runs it when it is shown again, after\n      // `pageshow` has freed its buttons: the planner then opened with Build already\n      // reading \"Building your session\u2026\" and greyed out, before anything was sent.\n      const buttons = submitButtons(form);\n      window.setTimeout(() => {\n        const byHtmx = sentByHtmx(form);\n        if (event.defaultPrevented && !byHtmx && !heldToSend(form)) return;\n        if (hidden !== putAway) return;\n        buttons.forEach((button) => (heldBeside(button, event.submitter) ? hold(button, true) : setBusy(button, true)));\n        if (!byHtmx && !form.matches(HOLDS_BUSY)) freeUnsent(form, buttons, putAway);\n      }, 0);\n    },\n    true,\n  );\n\n  // Coming back through history can restore a page with its buttons still disabled.\n  // Freed again a moment later, for anything a frozen page had still to run.\n  const freeBusy = () => {\n    document.querySelectorAll(\"button[type=submit][aria-busy]\").forEach((button) => setBusy(button, false));\n    document.querySelectorAll(\"button[data-busy-held]\").forEach((button) => hold(button, false));\n    document.querySelectorAll(\"a[aria-busy]\").forEach((link) => link.removeAttribute(\"aria-busy\"));\n  };\n  // htmx keeps `.htmx-request` on a boosted link the server answered with HX-Redirect (a tap\n  // into a section that is off), and a page restored from the back-forward cache came back\n  // with that link held pressed, every other link dimmed and the bar running (N1, 9 Nov 2026\n  // tap audit). Only as the page goes and on a restore: on a first load it is a request\n  // under way, such as a save's \"Saving\u2026\".\n  const freeRequests = () =>\n    document.querySelectorAll(\".htmx-request\").forEach((element) => element.classList.remove(\"htmx-request\"));\n  window.addEventListener(\"pageshow\", (event) => {\n    freeBusy();\n    if (event?.persisted) freeRequests();\n    window.setTimeout(freeBusy, 0);\n  });\n  // A page that knows its own send went nowhere frees its buttons the same way: the\n  // planner's Build, when no page came back (create-wizard.js `unsent`).\n  document.addEventListener(\"bibs:free-busy\", freeBusy);\n  // A form held back before it is sent says it is busy now: Sign out in the app, while the\n  // store logs out first (native-bridge.js `bindLogout`), which then sends it with submit().\n  document.addEventListener(\"bibs:busy\", (event) => {\n    if (!(event.target instanceof HTMLFormElement)) return;\n    submitButtons(event.target).forEach((button) => setBusy(button, true));\n  });\n\n  // A tap on a link answers before the next page does (board 11, \"Every tap answers\"): the\n  // link is marked busy, and the tap layer in styles.css holds it pressed, turns its chevron\n  // into a spinner, dims the others and runs a bar along the top, the later parts only once\n  // the page is slow. A second tap on it does nothing. Under boost htmx marks the link\n  // itself (.htmx-request) and cancels the click, so this sees only full loads. Never left on\n  // for good: a link answered with a download or a 204 leaves the page where it is, after\n  // LINK_WAIT_MS (above).\n  // A link marked `data-busy-away` hands the tap to another app or window (Add to my\n  // calendar: iOS's Subscribe sheet, or Google Calendar), so no page of ours comes and it is\n  // busy for a moment only, while the phone takes it (R7). It is marked here, after the tap\n  // has gone: marked from the link's own click handler, it read as a second tap below and\n  // was cancelled.\n  const AWAY_WAIT_MS = 3000;\n  const markLink = (link, ms = LINK_WAIT_MS) => {\n    link.setAttribute(\"aria-busy\", \"true\");\n    window.setTimeout(() => link.removeAttribute(\"aria-busy\"), ms);\n  };\n  // Whether this click loads another page in this window. A `data-native-browser` link\n  // opens the in-app browser in the app, which marks it itself (native-bridge.js\n  // `openBrowserFrom`); on the website it is an ordinary link.\n  const inApp = () => Boolean(document.documentElement?.classList?.contains(\"is-native\"));\n  const leaves = (link, event) => {\n    if (event.defaultPrevented || event.button || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) {\n      return false;\n    }\n    if ((link.target && link.target !== \"_self\") || link.hasAttribute(\"download\")) return false;\n    if (link.hasAttribute(\"data-native-browser\") && inApp()) return false;\n    const url = new URL(link.href, window.location.href);\n    const here = window.location;\n    if (url.origin !== here.origin) return false;\n    return !(url.hash && url.pathname === here.pathname && url.search === here.search);\n  };\n  document.addEventListener(\"click\", (event) => {\n    const link = event.target instanceof Element ? event.target.closest(\"a[href]\") : null;\n    if (!link) return;\n    // Back stepping through history (`backLink.go`, navigation.js) has marked itself already;\n    // this gives it the same time limit as any other link.\n    if (event.bibsonStepBack) {\n      markLink(link);\n      return;\n    }\n    if (link.getAttribute(\"aria-busy\") === \"true\" && !link.hasAttribute(\"download\")) {\n      event.preventDefault();\n      return;\n    }\n    const putAway = hidden;\n    // After every other handler, any of which may keep the tap on this page.\n    window.setTimeout(() => {\n      if (hidden !== putAway) return;\n      if (leaves(link, event)) markLink(link);\n      else if (link.hasAttribute(\"data-busy-away\") && !event.defaultPrevented) markLink(link, AWAY_WAIT_MS);\n    }, 0);\n  });\n\n  // A send answered with `HX-Redirect` has htmx load the next page in full (a screen outside\n  // the boosted sections: the teams board, the waiting screen, the Pro page). htmx keeps its\n  // own indicators on through that load, and the buttons stay busy with them, or a second tap\n  // while it loads sends again: a second sheet, a second wall. Freed as a link is if the\n  // page stays.\n  const leaving = (event) =>\n    event.type === \"htmx:afterRequest\" && Boolean(event.detail?.xhr?.getResponseHeader?.(\"HX-Redirect\"));\n\n  // htmx reports the element carrying hx-post. On our forms that is the <form>, not\n  // the button the guard above disabled, so only button-triggered requests were ever\n  // re-enabled. It went unnoticed because the swap usually replaces the form as well\n  // -- the run screen's headcount sheet does not, and could be used exactly once.\n  const clearHtmxBusy = (event) => {\n    const elt = event.detail?.elt ?? event.detail?.requestConfig?.elt;\n    let buttons = [];\n    if (elt instanceof HTMLButtonElement && (elt.type === \"submit\" || selfSent(elt))) {\n      buttons = [elt];\n    } else if (elt instanceof HTMLFormElement) {\n      buttons = submitButtons(elt);\n    }\n    if (!buttons.length) return;\n    const free = () => buttons.forEach(release);\n    if (leaving(event)) {\n      const putAway = hidden;\n      window.setTimeout(() => {\n        if (hidden === putAway) free();\n      }, LINK_WAIT_MS);\n      return;\n    }\n    free();\n  };\n\n  document.body.addEventListener(\"htmx:afterRequest\", clearHtmxBusy);\n  document.body.addEventListener(\"htmx:sendError\", clearHtmxBusy);\n  document.body.addEventListener(\"htmx:responseError\", clearHtmxBusy);\n\n  // A result that stays on the screen (board 11): a button given `done_label` says so, with a\n  // tick, for 1.5 s once the server sends its `done_on` event, never on any 2xx, since a\n  // refusal is a 200 with a toast. htmx sends the event before htmx:afterRequest, which hands\n  // the button back its own words, so the tick waits a tick.\n  const DONE_MS = 1500;\n  const showDone = (button) => {\n    const slot = button.querySelector(\".btn-label\") || button;\n    const rest = slot.textContent;\n    button.dataset.doneRest = rest;\n    button.dataset.done = \"\";\n    slot.textContent = button.dataset.doneLabel;\n    window.setTimeout(() => {\n      if (!(\"done\" in button.dataset)) return;\n      delete button.dataset.done;\n      slot.textContent = rest;\n    }, DONE_MS);\n  };\n\n  document.body.addEventListener(\"htmx:beforeRequest\", (event) => {\n    const elt = event.detail?.elt;\n    if (!(elt instanceof Element)) return;\n    // A button that sends its own request goes busy as a form's submit does.\n    if (elt instanceof HTMLButtonElement && selfSent(elt)) setBusy(elt, true);\n    const waiting = elt.matches(\"[data-done-on]\") ? [elt] : Array.from(elt.querySelectorAll(\"[data-done-on]\"));\n    waiting.forEach((button) => {\n      const name = button.dataset.doneOn;\n      const heard = () => window.setTimeout(() => showDone(button), 0);\n      elt.addEventListener(name, heard, { once: true });\n      const stop = () => window.setTimeout(() => elt.removeEventListener(name, heard), 0);\n      elt.addEventListener(\"htmx:afterRequest\", stop, { once: true });\n    });\n  });\n\n  // A sheet goes away by being dragged down, as the iPhone's do, and moves under the finger\n  // while it is dragged. Two kinds: a page that rose as a sheet over the screen that opened it\n  // (Run, the planner, the Pro page: `.app-header--sheet`, put away by its Close or Cancel),\n  // from a touch in its top 120px with the page scrolled to its top; and a <dialog class=\"sheet\">\n  // (Ask, Change this, Who's coming, the limit sheet), from a touch on its top band (grabber and\n  // title) while it is scrolled to its top. Mostly straight down; let go past 80px, or flicked,\n  // it goes, and short of that it settles back. Bound once for every screen; the sheet is looked\n  // up at the touch, so a boosted screen needs nothing of its own. `sheet_dragged_closed`\n  // counts the ones put away this way.\n  if (document.documentElement?.classList?.contains(\"is-ios\")) {\n    const GO_PX = 80;\n    let drag = null;\n    const pageSheet = (event, touch) => {\n      const close = document.querySelector(\".app-header--sheet a.back-button\");\n      const scroller = document.querySelector(\".app-content\");\n      const frame = document.querySelector(\".app-frame\");\n      const top = (!scroller || scroller.scrollTop <= 0) && (!frame || frame.scrollTop <= 0);\n      if (!close || !frame || touch.clientY >= 120 || !top || event.target.closest(\"dialog\")) return null;\n      return { el: frame, kind: \"page\", go: () => close.click() };\n    };\n    const dialogSheet = (event, touch) => {\n      const dialog = event.target.closest?.(\"dialog.sheet[open]\");\n      if (!dialog || dialog.scrollTop > 0) return null;\n      if (touch.clientY - dialog.getBoundingClientRect().top > 48) return null;\n      if (event.target.closest(\"input, textarea, select, [contenteditable]\")) return null;\n      // Through the sheet's own Close or Not now where it has one, so what that counts (the\n      // limit sheet's `paywall_dismissed`, a cta) is counted for a drag too.\n      const own = dialog.querySelector(\"[data-close-dialog]\");\n      return { el: dialog, kind: dialog.id || \"sheet\", go: () => (own ? own.click() : dialog.close()) };\n    };\n    const settle = (el, settling) => {\n      el.classList.remove(\"is-sheet-moving\");\n      el.classList.toggle(\"is-sheet-settling\", settling);\n      el.style.translate = \"\";\n      document.body.classList.remove(\"is-sheet-dragging\");\n      if (settling) window.setTimeout(() => el.classList.remove(\"is-sheet-settling\"), 250);\n    };\n    document.addEventListener(\n      \"touchstart\",\n      (event) => {\n        const touch = event.touches[0];\n        drag = null;\n        if (event.touches.length !== 1 || !(event.target instanceof Element)) return;\n        const sheet = dialogSheet(event, touch) || pageSheet(event, touch);\n        if (sheet) drag = { ...sheet, x: touch.clientX, y: touch.clientY, at: event.timeStamp, down: 0, moving: false };\n      },\n      { passive: true },\n    );\n    document.addEventListener(\n      \"touchmove\",\n      (event) => {\n        if (!drag) return;\n        const touch = event.touches[0];\n        const down = touch.clientY - drag.y;\n        if (!drag.moving) {\n          if (Math.abs(touch.clientX - drag.x) > Math.max(down, 0) / 2 + 6) {\n            drag = null;\n            return;\n          }\n          if (down < 6) return;\n          drag.moving = true;\n          drag.el.classList.add(\"is-sheet-moving\");\n          if (drag.kind === \"page\") document.body.classList.add(\"is-sheet-dragging\");\n        }\n        drag.down = Math.max(0, down);\n        drag.el.style.translate = `0 ${drag.down}px`;\n      },\n      { passive: true },\n    );\n    document.addEventListener(\n      \"touchend\",\n      (event) => {\n        const done = drag;\n        drag = null;\n        if (!done?.moving) return;\n        const quick = done.down > 24 && done.down / Math.max(1, event.timeStamp - done.at) > 0.6;\n        if (done.down < GO_PX && !quick) {\n          settle(done.el, true);\n          return;\n        }\n        window.posthog?.capture?.(\"sheet_dragged_closed\", { sheet: done.kind });\n        if (done.kind === \"page\") {\n          // The page goes the rest of the way down while the screen under it loads, and is\n          // put back when that screen arrives (a boosted swap or a page from the cache), or\n          // after a while if nothing comes (no signal).\n          done.el.classList.remove(\"is-sheet-moving\");\n          done.el.classList.add(\"is-sheet-settling\");\n          done.el.style.translate = \"0 100%\";\n          const back = () => {\n            window.clearTimeout(late);\n            document.removeEventListener(\"htmx:afterSettle\", back);\n            window.removeEventListener(\"pageshow\", back);\n            settle(done.el, false);\n          };\n          const late = window.setTimeout(back, 4000);\n          document.addEventListener(\"htmx:afterSettle\", back);\n          window.addEventListener(\"pageshow\", back);\n          done.go();\n          return;\n        }\n        done.go();\n        // A dialog slides the rest of the way from where the finger left it, then is put straight.\n        window.setTimeout(() => settle(done.el, false), 350);\n      },\n      { passive: true },\n    );\n    document.addEventListener(\n      \"touchcancel\",\n      () => {\n        if (drag?.moving) settle(drag.el, true);\n        drag = null;\n      },\n      { passive: true },\n    );\n  }\n\n  // Boosted taps (config/boost.py). A screen in a section that is on swaps its body in\n  // rather than loading a document. These keep what a full load gave: the slide and the tab\n  // fade (marked by nav-transition.js), Run and the Pro page rising as sheets, and the\n  // phone's own answers when there is no signal. Every way out below is a full load, which\n  // also hands the service worker the navigation it answers with a saved page or the\n  // offline page.\n  const nav = () => window.BibsOnNav;\n  const isBoosted = (detail) => Boolean(detail && (detail.boosted || detail.requestConfig?.boosted));\n  const pathOf = (detail) => detail.pathInfo?.requestPath || detail.requestConfig?.path || \"\";\n  // htmx:configRequest's detail is the request itself; every later event carries it.\n  const isGet = (detail) => (detail.verb || detail.requestConfig?.verb || \"get\") === \"get\";\n  // A tab tapped on its bar takes the place of the screen showing (navigation.js, `tabGoing`).\n  const loadFully = (path) => {\n    if (!path) return;\n    if (nav()?.tabGoing?.()) window.location.replace(path);\n    else window.location.assign(path);\n  };\n  const reloadHere = () => window.location.replace(window.location.href);\n  // The match clock, like Run, keeps its clock and wake lock in the document.\n  const MATCH_CLOCK = /^\\/team-sheet\\/matches\\/[0-9a-f-]{36}\\/clock\\/$/i;\n  // A boosted tap waits 10 s at most, then goes as a full load. Only taps: a poll or a save\n  // can rightly take longer (a drill Bib is writing), and htmx would wait for ever.\n  const TAP_WAIT_MS = 10000;\n  // A GET a tap sends for a sheet (the Ask box, Bib, Change this, Try again now) waits 15 s,\n  // then frees its button and says so (`failed`, below). htmx sets no limit of its own, so on\n  // a dead signal the button spun until the WebView gave up, a minute or more (N4). Not a\n  // poll: it has no triggering event, and it asks again in a moment anyway. Never a save: one\n  // that reached the server late would read \"didn't save\", and a second tap saved it twice\n  // (a second match, a second question for Bib). A save stays busy until it is answered.\n  const FETCH_WAIT_MS = 15000;\n  const tapped = (detail) => [\"click\", \"submit\"].includes(detail.triggeringEvent?.type);\n  const BOOST_SECTIONS_HEADER = \"X-Bibson-Boost-Sections\";\n  const PAGE_RELEASE_HEADER = \"X-Bibson-Page-Release\";\n  const pageRelease = document.documentElement.dataset.pageRelease;\n\n  // The screens a boosted tap can swap in (`data-boost-paths` on <html>, from config/boost.py),\n  // with any id written as the zero id. A link to any other screen is a full load from the\n  // start: asked over htmx, the server only sends it on with HX-Redirect, and on a dead signal\n  // that cost the 10 s wait before the service worker's saved page was even asked for (N5).\n  const ANY_ID = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi;\n  const ZERO_ID = \"00000000-0000-0000-0000-000000000000\";\n  // A drill's number on its own page (`/drills/7/`, BO-280), written 0 as config/boost.py writes it.\n  const ANY_NUMBER = /\\/\\d+(?=\\/)/g;\n  const swapsIn = (path) => {\n    const paths = document.documentElement.dataset.boostPaths;\n    // A page that does not say leaves it to the server, as before.\n    if (paths === undefined) return true;\n    return paths.split(\" \").includes(path.replace(ANY_ID, ZERO_ID).replace(ANY_NUMBER, \"/0\"));\n  };\n\n  // Run, the Pro page and the match clock are full loads from any screen: the sheets rise\n  // by the cross-document transition, and asking the server first would cost a round trip\n  // on the way to the pitch.\n  // htmx parses a page with scripting off, so a <noscript> fallback would come alive: the\n  // create screen's hid its footer buttons. This page has script, so they go.\n  const withoutNoscript = (html) =>\n    typeof html === \"string\" ? html.replace(/<noscript\\b[\\s\\S]*?<\\/noscript>/gi, \"\") : html;\n\n  document.addEventListener(\"htmx:confirm\", (event) => {\n    // Back stepping through history (`backLink`, navigation.js) is the whole navigation:\n    // htmx's boost handler on the same link would fetch its href as well.\n    if (event.detail?.triggeringEvent?.bibsonStepBack) {\n      event.preventDefault();\n      return;\n    }\n    const elt = event.detail?.elt;\n    // A link htmx sends itself carries hx-get; a boosted one only inherits hx-boost.\n    if (!(elt instanceof HTMLAnchorElement) || elt.hasAttribute(\"hx-get\")) return;\n    if (elt.closest(\"[hx-boost]\")?.getAttribute(\"hx-boost\") !== \"true\") return;\n    const path = new URL(elt.href, window.location.href).pathname;\n    if (!nav()?.isSheet(elt.href) && !MATCH_CLOCK.test(path) && swapsIn(path)) return;\n    event.preventDefault();\n    markLink(elt);\n    loadFully(elt.href);\n  });\n\n  document.addEventListener(\"htmx:configRequest\", (event) => {\n    const detail = event.detail;\n    const boosted = isBoosted(detail);\n    // The browser keeps these headers when a boosted form redirects to Create.\n    if (boosted && pageRelease) detail.headers[PAGE_RELEASE_HEADER] = pageRelease;\n    if (!isGet(detail)) return;\n    if (!boosted) {\n      if (!detail.timeout && tapped(detail)) detail.timeout = FETCH_WAIT_MS;\n      return;\n    }\n    if (!detail.timeout) detail.timeout = TAP_WAIT_MS;\n    // The sections on for this coach (base.html), so the service worker answers from the\n    // phone only a tap to a screen that is boosted (sw.js).\n    detail.headers[BOOST_SECTIONS_HEADER] = document.documentElement.dataset.boostSections || \"\";\n  });\n\n  document.addEventListener(\"htmx:beforeSwap\", (event) => {\n    const detail = event.detail;\n    if (!isBoosted(detail)) return;\n    if (detail.isError) {\n      // A whole page is the server's answer (a 404, a refusal page): show it. Anything\n      // else a link asked for is asked again as a full load, which shows the server's error\n      // page or, for a 5xx on a saved session page, the copy kept on the phone. A failed\n      // save keeps its page and gets the toast below.\n      if (/<body[\\s>]/i.test(detail.serverResponse || \"\")) {\n        detail.shouldSwap = true;\n      } else if (isGet(detail)) {\n        detail.shouldSwap = false;\n        loadFully(pathOf(detail));\n        return;\n      }\n    }\n    if (!detail.shouldSwap) return;\n    detail.serverResponse = withoutNoscript(detail.serverResponse);\n    nav()?.arm(detail.pathInfo?.responsePath || pathOf(detail));\n    // No settle delay: htmx holds a transition's new frame until the swap settles, and a\n    // whole screen has no old values to settle from.\n    detail.swapOverride = \"innerHTML transition:true settle:0ms\";\n  });\n\n  // Back and forward through boosted screens: htmx asks the server for the page again,\n  // since it keeps no copy (`historyCacheSize` 0 in base.html), and it slides back unless\n  // the edge swipe already has (`armBack`). htmx gives that request no timeout and no\n  // error handler, so offline Back would do nothing: the page the coach went back to is\n  // already in the address bar, so load it in place.\n  document.addEventListener(\"htmx:historyCacheMiss\", (event) => {\n    const xhr = event.detail?.xhr;\n    if (!xhr) return;\n    if (pageRelease) xhr.setRequestHeader(PAGE_RELEASE_HEADER, pageRelease);\n    xhr.timeout = TAP_WAIT_MS;\n    xhr.addEventListener(\"error\", reloadHere);\n    xhr.addEventListener(\"timeout\", reloadHere);\n  });\n  document.addEventListener(\"htmx:historyCacheMissLoad\", (event) => {\n    const swapSpec = event.detail?.swapSpec;\n    if (!swapSpec) return;\n    event.detail.response = withoutNoscript(event.detail.response);\n    swapSpec.transition = nav()?.armBack() !== false;\n    swapSpec.settleDelay = 0;\n  });\n  document.addEventListener(\"htmx:historyCacheMissLoadError\", reloadHere);\n\n  // Nothing back, or nothing in time: the full load the service worker answers.\n  const giveUp = (event) => {\n    if (!isBoosted(event.detail) || !isGet(event.detail)) return;\n    const link = event.detail.elt;\n    if (link?.matches?.(\"a[href]\")) markLink(link);\n    loadFully(pathOf(event.detail));\n  };\n  document.addEventListener(\"htmx:sendError\", giveUp);\n  document.addEventListener(\"htmx:timeout\", giveUp);\n\n  // A save that failed takes back the \"Saved\" an earlier one left in its status line\n  // (`_save_status.html`), so the line doesn't contradict the toast.\n  const unsay = (event) => {\n    const target = event.detail?.target;\n    if (target?.matches?.(\".save-status__said\")) target.textContent = \"\";\n  };\n\n  // A request that got no answer swaps nothing, so without a word the tap looked like it\n  // did nothing. One toast for every way that happens: no signal (`sendError`), a sheet that\n  // came back too late (`timeout`), the server falling over (a 5xx, a 502 while the app restarts), or a\n  // 403 (a CSRF token gone stale, or django-ratelimit's refusal), which a refresh puts right.\n  // The words are on <body>: `data-server-error` for a save, `data-load-error` for a tap that\n  // fetches a sheet (the Ask box, Bib, a drill's Ask, Change this: a GET from a button with\n  // hx-disabled-elt), `data-refused-error` for the 403. A poll stays quiet: it asks again in a\n  // moment, and the build screen says so in its own words. A boosted GET is loaded in full\n  // instead (`giveUp`). Any other 4xx is a refusal the server meant and answers itself.\n  // A request the coach never made, such as counting a price seen (`paywall_seen.html`),\n  // says nothing: `data-quiet-request`.\n  const fetchedByTap = (elt) => elt instanceof Element && (selfSent(elt) || elt.getAttribute(\"aria-busy\") === \"true\");\n  const failed = (event) => {\n    const detail = event.detail || {};\n    if (detail.elt?.closest?.(\"[data-quiet-request]\")) return;\n    const verb = (detail.requestConfig?.verb ?? \"get\").toLowerCase();\n    if (verb === \"get\" && (isBoosted(detail) || !fetchedByTap(detail.elt ?? detail.requestConfig?.elt))) return;\n    // A save that ran out of a time limit of its own may still have landed, so it is never\n    // told \"didn't save\" (the page gives a save no limit: `FETCH_WAIT_MS`).\n    if (event.type === \"htmx:timeout\" && verb !== \"get\") return;\n    let words = verb === \"get\" ? root.dataset.loadError : root.dataset.serverError;\n    let refresh = false;\n    if (event.type === \"htmx:responseError\") {\n      const status = detail.xhr?.status ?? 0;\n      if (status === 403) {\n        words = root.dataset.refusedError;\n        // The app has no address bar or pull to refresh, so the toast carries the refresh.\n        refresh = true;\n      } else if (status < 500) return;\n    }\n    if (verb !== \"get\") unsay(event);\n    if (words) window.BibsOnToast?.showError(words, { refresh });\n  };\n  [\"htmx:sendError\", \"htmx:timeout\", \"htmx:responseError\"].forEach((name) => document.body.addEventListener(name, failed));\n})();\n"],
  "mappings": "CAAC,IAAM,CACL,MAAMA,EAAO,SAAS,KAOtB,IAAIC,EAAQ,EACRC,EAAa,EAEjB,MAAMC,EAAe,IAAM,CACzB,MAAMC,EAAW,OAAO,eACxB,GAAI,CAACA,EACH,OAEE,OAAO,aAAeH,IACxBA,EAAQ,OAAO,WACfC,EAAa,GAEfA,EAAa,KAAK,IAAIA,EAAY,OAAO,WAAW,EACpD,MAAMG,EAAU,KAAK,IAAI,EAAG,OAAO,YAAcD,EAAS,OAASA,EAAS,SAAS,EAC/EE,EAAS,SAAS,eAAe,QACrC,mHACF,EACAN,EAAK,MAAM,YAAY,oBAAqB,GAAGK,CAAO,IAAI,EAC1DL,EAAK,UAAU,OAAO,cAAeK,EAAU,IAAOC,GAAUJ,EAAaE,EAAS,OAAS,EAAG,CACpG,EAEA,OAAO,gBAAgB,iBAAiB,SAAUD,CAAY,EAC9D,OAAO,gBAAgB,iBAAiB,SAAUA,CAAY,EAC9D,OAAO,iBAAiB,UAAWA,CAAY,EAC/C,OAAO,iBAAiB,WAAY,IAAM,CACxC,OAAO,WAAWA,EAAc,EAAE,CACpC,CAAC,EACDA,EAAa,EAEb,MAAMI,EAAYC,GAAQ,CACpB,CAAC,OAAO,QAAU,EAAEA,aAAe,UAGnCA,IAAQ,SAAS,MAAQA,IAAQ,SAAS,iBAG9C,OAAO,OAAO,SAASA,CAAG,CAC5B,EAEMC,EA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AM,QACtGqI,GAAUnI,GAAU,CACxB,MAAM0G,EAAS1G,EAAM,QAAU,CAAC,EAChC,GAAI0G,EAAO,KAAK,UAAU,sBAAsB,EAAG,OACnD,MAAM0B,GAAQ1B,EAAO,eAAe,MAAQ,OAAO,YAAY,EAI/D,GAHI0B,IAAS,QAAU3B,EAAUC,CAAM,GAAK,CAACwB,GAAaxB,EAAO,KAAOA,EAAO,eAAe,GAAG,IAG7F1G,EAAM,OAAS,gBAAkBoI,IAAS,MAAO,OACrD,IAAIC,EAAQD,IAAS,MAAQ9I,EAAK,QAAQ,UAAYA,EAAK,QAAQ,YAC/DgJ,EAAU,GACd,GAAItI,EAAM,OAAS,qBAAsB,CACvC,MAAMuI,EAAS7B,EAAO,KAAK,QAAU,EACrC,GAAI6B,IAAW,IACbF,EAAQ/I,EAAK,QAAQ,aAErBgJ,EAAU,WACDC,EAAS,IAAK,MAC3B,CACIH,IAAS,OAAOH,GAAMjI,CAAK,EAC3BqI,GAAO,OAAO,aAAa,UAAUA,EAAO,CAAE,QAAAC,CAAQ,CAAC,CAC7D,EACA,CAAC,iBAAkB,eAAgB,oBAAoB,EAAE,QAASrH,GAAS,SAAS,KAAK,iBAAiBA,EAAMkH,EAAM,CAAC,CACzH,GAAG",
  "names": ["root", "width", "fullHeight", "syncKeyboard", "viewport", "covered", "typing", "alpineOn", "elt", "replacedActivities", "event", "nonce", "html", "_tag", "attrs", "target", "id", "state", "card", "media", "el", "SETTLE_MS", "settle", "element", "animation", "timing", "error", "name", "original", "args", "result", "dialog", "TAB_KEY", "BOUNCE_MS", "bounce", "tab", "from", "finishBounce", "since", "afterPaint", "fn", "focusScreen", "main", "openBtn", "menu", "closeBtn", "outside", "box", "pressedOutside", "sheet", "openMenus", "TYPED", "enterNext", "field", "nextBox", "shown", "submitButtons", "form", "sentByHtmx", "heldToSend", "selfSent", "button", "setBusy", "busy", "nowhere", "swap", "slot", "heldBeside", "submitter", "hold", "held", "release", "hidden", "freeBusy", "freeRequests", "LINK_WAIT_MS", "HOLDS_BUSY", "freeUnsent", "buttons", "putAway", "stuck", "message", "byHtmx", "link", "AWAY_WAIT_MS", "markLink", "ms", "inApp", "leaves", "url", "here", "leaving", "clearHtmxBusy", "free", "DONE_MS", "showDone", "rest", "heard", "stop", "drag", "pageSheet", "touch", "close", "scroller", "frame", "top", "dialogSheet", "own", "settling", "down", "done", "quick", "back", "late", "nav", "isBoosted", "detail", "pathOf", "isGet", "loadFully", "path", "reloadHere", "MATCH_CLOCK", "TAP_WAIT_MS", "FETCH_WAIT_MS", "tapped", "BOOST_SECTIONS_HEADER", "PAGE_RELEASE_HEADER", "pageRelease", "ANY_ID", "ZERO_ID", "ANY_NUMBER", "swapsIn", "paths", "withoutNoscript", "boosted", "xhr", "swapSpec", "giveUp", "unsay", "fetchedByTap", "failed", "verb", "words", "refresh", "status"]
}
