{
  "version": 3,
  "sources": ["/cdn/shop/t/413/assets/fs-cart-refresh.js?fs_qc=20261023021000"],
  "sourcesContent": ["(() => {\n  'use strict';\n  // The cart form is the owner of the copy payload. On the cart page the page\n  // form wins even though the header drawer renders its own copy payload.\n  const copyNode = document.querySelector('#CartPageForm [data-fs-cart-copy]') || document.querySelector('[data-fs-cart-copy]');\n  const form = copyNode ? copyNode.closest('form') : document.getElementById('CartPageForm');\n  if (!form || !copyNode) return;\n  const drawer = form.classList.contains('cart__drawer-form');\n  const page = form.closest('.fs-cart-page') || form.closest('.site-header__cart') || form;\n  const copy = JSON.parse(copyNode.textContent);\n  const choice = form.querySelector('[data-fs-protection] input[type=\"checkbox\"]');\n  const protection = form.querySelector('[data-fs-protection]');\n  const protectionNote = form.querySelector('[data-fs-protection-note]');\n  const skipLink = form.querySelector('[data-fs-checkout-skip]');\n  const bar = form.querySelector('[data-fs-mobile-bar]');\n  const error = form.querySelector('[data-fs-cart-error]');\n  const buttons = [...form.querySelectorAll('[data-fs-checkout]')];\n  const chatLink = form.querySelector('[data-fs-cart-chat]');\n  const optOutKey = 'fsProtectionOptOut:v2';\n  const maxAutoTries = 6;\n  // Navidium can publish its protection price before its variant id, so the\n  // variant gets a bounded product lookup instead of an immediate give-up.\n  const maxVariantFetches = 2;\n  const variantRetryDelay = 300;\n  // Navidium republishes its quote just after the first cart render. The first\n  // automatic inclusion waits this bounded window, and an add is held back while a\n  // republished quote is still settling, so a previous tier is never pinned.\n  const initialQuoteDelay = 150;\n  const quoteSettleDelay = 150;\n  // A cart add can land on a stored quote that still belongs to the previous cart\n  // and agrees with itself, so the add waits for Navidium to republish either key.\n  // A later add in the same price tier republishes nothing, hence the short bounded\n  // fallback that then uses the stored quote. Navidium's own running flag shortens\n  // the wait further: while it recalcs the gate retries instead of waiting blind.\n  const quoteGateLimit = 250;\n  const quoteGateRetry = 100;\n  const maxSettleWaits = 4;\n  const quoteWatchInterval = 400;\n  const quoteWatchLimit = 10000;\n  // A reconcile cycle is bounded. The panel opens on the add itself, so the cycle\n  // only has to end even when Navidium never republishes the quote or the rebuild\n  // it asked for never announces a render.\n  const cycleLimit = 7500;\n  const maxQuoteFollowUps = 2;\n  // Navidium rewrites its stored variant and its stored price in separate passes, so\n  // a pair that disagrees with its own price is a quote still being written. It gets\n  // a short grace period before the exact-price fallback may decide anything.\n  const quoteConsistencyWait = 1500;\n  // The fuel function reprices its own variant, so the cart only has to hold that one\n  // line. The attempt count is bounded so a refused add cannot loop.\n  const fuelVariantId = 67755231313965;\n  const fuelHandle = 'fuel-surcharge';\n  const maxFuelTries = 2;\n  if (chatLink) chatLink.addEventListener('click', event => {\n    event.preventDefault();\n    const status = form.querySelector('[data-fs-cart-chat-error]');\n    try {\n      if (!window.$crisp || typeof window.$crisp.push !== 'function') throw new Error('Chat unavailable');\n      window.$crisp.push(['do', 'chat:show']);\n      window.$crisp.push(['do', 'chat:open']);\n      status.hidden = true;\n    } catch (_) {\n      status.textContent = copy.chatUnavailable;\n      status.hidden = false;\n    }\n  });\n  let choiceTouched = false;\n  let proceeding = false;\n  let mutating = false;\n  let scheduled = false;\n  let synced = false;\n  let enhanced = false;\n  let inCart = false;\n  let protectionDom = null;\n  let protectionProduct = null;\n  let protectionVariantId = null;\n  let variantLoading = false;\n  let variantFetches = 0;\n  let quoteVariant = null;\n  let quotePrice = null;\n  let quoteChangedAt = 0;\n  let quoteGateOpen = false;\n  let quoteGateVariant = null;\n  let quoteGatePrice = null;\n  let quoteGateDeadline = 0;\n  // Whether Navidium reported itself as actively recalculating during this gate, so\n  // the gate can release the moment that work ends instead of waiting out the cap.\n  let quoteGateSawRunning = false;\n  let quoteInconsistentAt = 0;\n  let settleWaits = 0;\n  let quoteWatchTimer = 0;\n  let price = '';\n  let linePrice = '';\n  let linePriceLoading = false;\n  let autoTries = 0;\n  let autoDone = false;\n  let autoTimer = 0;\n  const autoStartAt = Date.now() + initialQuoteDelay;\n  let count = 0;\n  let settled = false;\n  let renderPending = false;\n  let renderTimer = 0;\n  let renderEpoch = 0;\n  let addedEpoch = -1;\n  // One reconcile cycle per add (and one on a page load that already holds\n  // protection). Nothing may settle a cycle while it is still deciding the line.\n  let cycleId = 0;\n  let cycleActive = false;\n  let cycleTimer = 0;\n  let quoteFollowUps = 0;\n  let loadCycleStarted = false;\n  let fuelLoading = false;\n  let fuelTries = 0;\n  function text(el, value) {\n    if (el && el.textContent !== value) el.textContent = value;\n  }\n  function money(el, value) {\n    if (el && el.innerHTML !== value) el.innerHTML = value;\n  }\n  function appButtons() {\n    return {\n      withProtection: form.querySelector('#nvd-with-checkout-btn'),\n      withoutProtection: form.querySelector('#nvd-without-checkout-btn'),\n      price: form.querySelector('.nvd-mini .nvd-title span')\n    };\n  }\n  function showError(message) {\n    text(error, message);\n    error.hidden = false;\n  }\n  function stored(key) {\n    try { return window.localStorage.getItem(key); } catch (_) { return null; }\n  }\n  function store(key, value) {\n    try {\n      if (value === null) window.localStorage.removeItem(key);\n      else window.localStorage.setItem(key, value);\n    } catch (_) { /* Storage can be unavailable; the cart still works. */ }\n  }\n  function optedOut() {\n    return stored(optOutKey) === 'true';\n  }\n  function setOptedOut(value) {\n    store(optOutKey, value ? 'true' : null);\n  }\n  function currentVariantId() {\n    const raw = stored('nvdVariant');\n    const id = Number(raw);\n    return raw !== null && raw !== '' && Number.isSafeInteger(id) && id > 0 ? id : null;\n  }\n  function storedProtectionPrice() {\n    const raw = stored('nvdProtectionPrice');\n    if (raw === null) return null;\n    const textValue = String(raw).trim();\n    if (!/^\\d+$/.test(textValue)) return null;\n    const value = Number(textValue);\n    return Number.isSafeInteger(value) && value > 0 ? value : null;\n  }\n  function singleVariantMode() {\n    return typeof nvdWidgetConfig !== 'undefined' && String(nvdWidgetConfig.nvd_single_variant) === '1';\n  }\n  // Navidium rewrites its stored variant and price whenever its quote changes. A\n  // resolution made for the previous quote must not survive that change, so both\n  // keys are compared on every read and a new tier starts a new bounded lookup.\n  function reconcileQuote() {\n    const variant = currentVariantId();\n    const amount = storedProtectionPrice();\n    if (variant === quoteVariant && amount === quotePrice) return false;\n    protectionVariantId = null;\n    if (amount !== quotePrice) {\n      // The displayed prospective price belonged to the previous tier.\n      price = '';\n      variantFetches = 0;\n    }\n    quoteVariant = variant;\n    quotePrice = amount;\n    quoteChangedAt = Date.now();\n    return true;\n  }\n  function quoteSettling() {\n    reconcileQuote();\n    return quoteChangedAt > 0 && Date.now() - quoteChangedAt < quoteSettleDelay;\n  }\n  // The quote that was stored when the add happened is the only thing Navidium has\n  // published at that moment, and it can be a self-consistent leftover of the\n  // previous cart. The automatic inclusion therefore waits until either key is\n  // republished, or until the bounded fallback window shows that this add kept the\n  // same tier.\n  function openQuoteGate() {\n    quoteGateVariant = currentVariantId();\n    quoteGatePrice = storedProtectionPrice();\n    quoteGateDeadline = Date.now() + quoteGateLimit;\n    quoteGateSawRunning = false;\n    quoteGateOpen = true;\n    settleWaits = 0;\n  }\n  // Navidium publishes its recalculation in progress as this stored flag. It is\n  // only ever read, never written: a fake cart-changed event would make Navidium\n  // add protection on its own.\n  function nvdRunning() {\n    return stored('nvd_running') === 'true';\n  }\n  function quoteGateWait() {\n    if (!quoteGateOpen) return 0;\n    const variant = currentVariantId();\n    const amount = storedProtectionPrice();\n    if (variant !== quoteGateVariant || amount !== quoteGatePrice) {\n      // The post-add quote arrived; the settle window takes over from here.\n      quoteGateSawRunning = false;\n      quoteGateOpen = false;\n      return 0;\n    }\n    const remaining = quoteGateDeadline - Date.now();\n    if (nvdRunning()) {\n      // Navidium is recalculating: keep a short retry inside the same cap, then\n      // fall through to the stored quote if it never republishes.\n      quoteGateSawRunning = true;\n      if (remaining > 0) return Math.min(quoteGateRetry, remaining);\n      quoteGateOpen = false;\n      return 0;\n    }\n    if (quoteGateSawRunning) {\n      // Navidium finished and left both keys untouched, so the add kept its tier.\n      quoteGateSawRunning = false;\n      quoteGateOpen = false;\n      return 0;\n    }\n    if (remaining <= 0) {\n      quoteGateOpen = false;\n      return 0;\n    }\n    return remaining;\n  }\n  function settleWait() {\n    if (!quoteChangedAt) return 0;\n    const remaining = quoteChangedAt + quoteSettleDelay - Date.now();\n    return remaining > 0 ? remaining : 0;\n  }\n  // Navidium writes its stored variant and its price in separate passes, so a pair\n  // that moved while the cart was being read cannot decide the protection line yet.\n  // Nothing may be concluded from it until the settle window has run out again.\n  function quoteReloading() {\n    if (!reconcileQuote()) return 0;\n    return settleWait() || quoteSettleDelay;\n  }\n  // A stored variant whose own price disagrees with the stored price is the middle of\n  // Navidium's two-step write, not a settled answer. The pair is given the bounded\n  // grace to finish; only then may the exact-price fallback decide the line.\n  function quoteConsistencyWaitLeft() {\n    if (!quoteVariant || quotePrice === null || !Array.isArray(protectionProduct)) {\n      quoteInconsistentAt = 0;\n      return 0;\n    }\n    const stored = protectionProduct.find(entry => String(entry.id) === String(quoteVariant));\n    if (!stored || Number(stored.price) === quotePrice) {\n      quoteInconsistentAt = 0;\n      return 0;\n    }\n    if (!quoteInconsistentAt) quoteInconsistentAt = Date.now();\n    const remaining = quoteInconsistentAt + quoteConsistencyWait - Date.now();\n    return remaining > 0 ? remaining : 0;\n  }\n  function requestProtectionProduct() {\n    if (variantLoading || !copy.protectionUrl || variantFetches >= maxVariantFetches) return;\n    variantFetches++;\n    variantLoading = true;\n    fetch(copy.protectionUrl + '.js', {\n      credentials:'same-origin', headers:{'Accept':'application/json'}, signal:AbortSignal.timeout(10000)\n    })\n      .then(response => (response.ok ? response.json() : null))\n      .then(product => {\n        const variants = product && Array.isArray(product.variants) ? product.variants : null;\n        if (variants) protectionProduct = variants;\n      })\n      .catch(() => { /* A later bounded retry or the stored quote stays authoritative. */ })\n      .finally(() => {\n        variantLoading = false;\n        queueSync();\n      });\n  }\n  // Same-price tiers share a price, so the first variant at that price is not\n  // necessarily the one Navidium quoted. Its own stored variant wins while it\n  // carries the current price; any other variant at that exact price is the\n  // fallback, and a stored variant at another price is never used.\n  function exactPriceVariant(amount) {\n    if (!Array.isArray(protectionProduct)) return null;\n    const matching = protectionProduct.filter(entry =>\n      Boolean(entry) && Number(entry.price) === amount &&\n      Number.isSafeInteger(Number(entry.id)) && Number(entry.id) > 0\n    );\n    if (!matching.length) return null;\n    const quoted = quoteVariant === null\n      ? null\n      : matching.find(entry => String(entry.id) === String(quoteVariant));\n    return Number((quoted || matching[0]).id);\n  }\n  // The variant that carries the exact current price always wins once Navidium has\n  // published a price. A stored variant that disagrees with that price is stale and\n  // is never added; the stored variant is only trusted while no price exists to\n  // check it against.\n  function resolveProtectionVariant() {\n    // The stored quote is re-read first so a resolution made for an earlier tier is\n    // never returned, even when the caller already has one.\n    reconcileQuote();\n    if (singleVariantMode()) {\n      // Navidium's single-variant dynamic fee keeps one catalog variant and rewrites\n      // its price at checkout, so a catalog match would always reject the quote. That\n      // variant is the fee, and the displayed amount follows the quote instead.\n      const configured = quoteVariant || Number(nvdWidgetConfig.min_variant_id);\n      const variant = Number.isSafeInteger(configured) && configured > 0 ? configured : null;\n      if (!variant) return null;\n      protectionVariantId = variant;\n      if (quotePrice !== null) price = formatMoney(quotePrice);\n      return variant;\n    }\n    if (protectionVariantId) return protectionVariantId;\n    if (quotePrice === null) {\n      if (!quoteVariant) {\n        // The top catalog tier is the fee itself and Cart Transform reprices it, so a\n        // cart that clearly carries more than $89 of fee uses it while no quote exists.\n        const subtotal = Number(form.querySelector('[data-fs-cart-state]')?.dataset.cartSubtotal);\n        if (subtotal >= 252000) {\n          protectionVariantId = 41259656937517;\n          return 41259656937517;\n        }\n        return null;\n      }\n      protectionVariantId = quoteVariant;\n      return quoteVariant;\n    }\n    const exact = exactPriceVariant(quotePrice);\n    if (exact) {\n      protectionVariantId = exact;\n      // This quote already prices the line, so no second product request runs.\n      if (!price) price = formatMoney(quotePrice);\n      return exact;\n    }\n    // The current tier is missing from the cached product: drop it, refresh within\n    // the bound and let the next sync retry instead of adding another tier.\n    protectionProduct = null;\n    requestProtectionProduct();\n    return null;\n  }\n  function formatMoney(cents) {\n    try {\n      const currency = copy.currency || 'USD';\n      return new Intl.NumberFormat(document.documentElement.lang || 'en', {style:'currency', currency}).format(cents / 100);\n    } catch (_) { return ''; }\n  }\n  function pause(ms) {\n    return new Promise(resolve => window.setTimeout(resolve, ms));\n  }\n  function cacheBust(url, label) {\n    return url + (url.includes('?') ? '&' : '?') + label + '=' + Date.now();\n  }\n  async function readCart() {\n    const response = await fetch(cacheBust(copy.cartUrl, 'fs_protection'), {\n      credentials:'same-origin', headers:{'Accept':'application/json'}, signal:AbortSignal.timeout(10000)\n    });\n    if (!response.ok) throw new Error('Cart could not be read');\n    return response.json();\n  }\n  async function writeCart(url, body) {\n    const response = await fetch(url, {\n      method:'POST', credentials:'same-origin',\n      headers:{'Content-Type':'application/json','Accept':'application/json'},\n      body:JSON.stringify(body), signal:AbortSignal.timeout(15000)\n    });\n    if (!response.ok) throw new Error('Cart could not be updated');\n    return response.json().catch(() => null);\n  }\n  function markFeeTestCart() {\n    writeCart(copy.updateUrl, {attributes:{_fs_fee_test:'1'}}).catch(() => {});\n  }\n  function protectionLines(cart) {\n    const items = cart && Array.isArray(cart.items) ? cart.items : [];\n    return items.filter(item =>\n      (protectionVariantId && String(item.variant_id) === String(protectionVariantId)) ||\n      /shipping-protection|navidium/i.test(item.handle || '')\n    );\n  }\n  function protectionLine(cart) {\n    return protectionLines(cart)[0] || null;\n  }\n  // A protection line being in the cart says nothing about which tier it belongs\n  // to. The line is only current when it is the exact variant the quote resolved,\n  // carries a single unit and is the only protection line in the cart.\n  function lineIsCurrent(cart) {\n    if (!protectionVariantId) return false;\n    const lines = protectionLines(cart);\n    return lines.length === 1 &&\n      String(lines[0].variant_id) === String(protectionVariantId) &&\n      Number(lines[0].quantity) === 1;\n  }\n  function reviewBusy() {\n    try {\n      return Boolean(window.FsCartReview && typeof window.FsCartReview.isBusy === 'function' && window.FsCartReview.isBusy());\n    } catch (_) { return false; }\n  }\n  async function confirmReview(cart) {\n    const review = window.FsCartReview;\n    if (!review || typeof review.beforeAdd !== 'function') return cart;\n    const confirmed = await review.beforeAdd(cart);\n    return confirmed && Array.isArray(confirmed.items) ? confirmed : cart;\n  }\n  function locked(run) {\n    const coordinator = window.FsNativePromotionCoordinator;\n    return coordinator && typeof coordinator.withCartLock === 'function' ? coordinator.withCartLock(run) : run();\n  }\n  function rebuild() {\n    // The rebuild replaces the drawer rows and the subtotal; the settled signal\n    // must wait for that render instead of firing on the pre-rebuild markup.\n    renderPending = true;\n    window.clearTimeout(renderTimer);\n    renderTimer = window.setTimeout(() => {\n      // A failed or superseded build never dispatches cart:rendered; release the\n      // gate so a stuck render can only delay the drawer to this bound.\n      renderPending = false;\n      queueSync();\n    }, 3000);\n    document.dispatchEvent(new CustomEvent('cart:build'));\n    document.dispatchEvent(new CustomEvent('nvd_cart_changed'));\n  }\n  // The fuel line is inserted once the shopper's own merchandise is in the cart. The\n  // cart is read here, the write is coordinated through the cart lock, and the result\n  // is confirmed before the UI is rebuilt. A cart that held nothing but fees is\n  // cleaned up instead, so a fee-only cart never keeps a fuel or protection line. A\n  // refusal stays quiet.\n  async function ensureFuelLine() {\n    if (fuelLoading || fuelTries >= maxFuelTries) return;\n    fuelLoading = true;\n    try {\n      const cart = await readCart();\n      const items = cart && Array.isArray(cart.items) ? cart.items : [];\n      if (!items.length) return;\n      // Protection and fuel lines are not merchandise: a cart that holds only those\n      // never gets a fuel line of its own.\n      const assurance = protectionLines(cart);\n      const feeLines = items.filter(item => {\n        if (!item) return false;\n        const handle = String(item.handle || '');\n        return handle === fuelHandle || assurance.includes(item) || /assure/i.test(handle);\n      });\n      const merchandise = items.some(item => Boolean(item) && !feeLines.includes(item));\n      if (!merchandise) {\n        // No merchandise is left, so the fee lines are cleared in one write and no\n        // fuel line is added. The opt-out is reset here as well, because an emptied\n        // cart must not keep blocking protection for the next shopping session.\n        setOptedOut(false);\n        const updates = {};\n        let changed = false;\n        feeLines.forEach(item => {\n          if (!item.key) return;\n          updates[item.key] = 0;\n          changed = true;\n        });\n        if (!changed) return;\n        fuelTries++;\n        await locked(() => writeCart(copy.updateUrl, {updates}));\n        rebuild();\n        return;\n      }\n      // Cart Transform prices the fee lines only for a cart marked as a fee-test\n      // cart, so the marker is written before the drawer is trusted with a price.\n      // It is also repaired when the fuel line is already present, so a stale cart\n      // never keeps showing the unmarked fee prices.\n      const needsFeeTest = cart.attributes?._fs_fee_test !== '1';\n      // The fee lines are added once, so a cart that already holds the fuel line is\n      // only repaired here. Protection that was blocked before the opt-out reset is\n      // still given its own inclusion chance instead of waiting for a rebuild.\n      const merchCents = items\n        .filter(item => Boolean(item) && !feeLines.includes(item))\n        .reduce((sum, item) => sum + Number(item.final_line_price || 0), 0);\n      if (items.some(item => item && item.handle === fuelHandle)) {\n        if (!assurance.length && !optedOut() && !choiceTouched && merchCents >= 245000) queueAutoInclude(0);\n        if (!needsFeeTest) return;\n        fuelTries++;\n        await locked(async () => {\n          await writeCart(copy.updateUrl, {attributes:{_fs_fee_test:'1'}});\n          rebuild();\n        });\n        return;\n      }\n      // The fuel write is the only write this cart needs, so protection rides along in\n      // the same add instead of waiting for a second rebuild to reconcile it. The top\n      // catalog tier is used while no quote has resolved, because Cart Transform\n      // reprices that line at checkout.\n      if (!optedOut() && !choiceTouched && !assurance.length) resolveProtectionVariant();\n      const initialAssureId = (!optedOut() && !choiceTouched && !assurance.length)\n        ? (protectionVariantId || (merchCents >= 245000 ? 41259656937517 : null))\n        : null;\n      fuelTries++;\n      await locked(async () => {\n        if (needsFeeTest) await writeCart(copy.updateUrl, {attributes:{_fs_fee_test:'1'}});\n        await writeCart(copy.addUrl, {\n          items: initialAssureId\n            ? [{id:initialAssureId, quantity:1}, {id:fuelVariantId, quantity:1}]\n            : [{id:fuelVariantId, quantity:1}]\n        });\n        const after = await readCart();\n        const confirmed = (after && Array.isArray(after.items) ? after.items : [])\n          .some(item => item && item.handle === fuelHandle);\n        if (confirmed) rebuild();\n      });\n    } catch (_) {\n      // A refused or unconfirmed fuel line never blocks the rest of the cart.\n    } finally {\n      fuelLoading = false;\n    }\n  }\n  function loadPrice() {\n    if (price || !protectionVariantId) return;\n    if (!Array.isArray(protectionProduct)) {\n      requestProtectionProduct();\n      return;\n    }\n    const variant = protectionProduct.find(entry => String(entry.id) === String(protectionVariantId));\n    const formatted = variant ? formatMoney(Number(variant.price)) : '';\n    if (!formatted) return;\n    price = formatted;\n    queueSync();\n  }\n  function loadLinePrice() {\n    // The line cache stays authoritative while protection is in the cart, so this\n    // refresh must run even when the app/product price is already known. Only an\n    // overlapping request is skipped.\n    if (linePriceLoading) return;\n    linePriceLoading = true;\n    readCart()\n      .then(cart => {\n        const line = protectionLine(cart);\n        const formatted = line ? formatMoney(Number(line.final_line_price)) : '';\n        if (!formatted || formatted === linePrice) return;\n        // The loading guard is still set, so this direct render cannot re-request.\n        linePrice = formatted;\n        sync();\n      })\n      .catch(() => { /* The app price text or the product price stay authoritative off-cart. */ })\n      .finally(() => { linePriceLoading = false; });\n  }\n  // Shopify applies one updates map in a single write, so the old protection key and\n  // the newly quoted variant move together and the cart never holds both lines. The\n  // result is verified before it is trusted, and the repair path only ever removes a\n  // key it has just read and adds one variant afterwards, so it cannot duplicate the\n  // line or send an id the cart does not have.\n  async function writeProtectionLine(cart, variantId) {\n    const lines = protectionLines(cart);\n    const keep = lines.find(entry => String(entry.variant_id) === String(variantId)) || null;\n    const updates = {};\n    let changed = false;\n    lines.forEach(entry => {\n      if (entry === keep) {\n        if (Number(entry.quantity) !== 1) {\n          updates[entry.key] = 1;\n          changed = true;\n        }\n        return;\n      }\n      // Every older or duplicated protection line goes in the same write.\n      updates[entry.key] = 0;\n      changed = true;\n    });\n    if (!keep) {\n      updates[String(variantId)] = 1;\n      changed = true;\n    }\n    if (!changed) return cart;\n    let applied = null;\n    try {\n      applied = await writeCart(copy.updateUrl, {updates});\n    } catch (_) {\n      // An update map the cart cannot honour is verified and repaired below.\n      applied = null;\n    }\n    if (applied && lineIsCurrent(applied)) return applied;\n    const after = await readCart().catch(() => null);\n    if (after && lineIsCurrent(after)) return after;\n    return repairProtectionLine(variantId);\n  }\n  async function repairProtectionLine(variantId) {\n    for (let attempt = 0; attempt < 6; attempt++) {\n      const cart = await readCart();\n      const lines = protectionLines(cart);\n      const stray = lines.find(entry => String(entry.variant_id) !== String(variantId));\n      if (stray) {\n        // The old line leaves first, so the quoted variant can never be duplicated.\n        await writeCart(copy.changeUrl, {id:stray.key, quantity:0}).catch(() => null);\n        continue;\n      }\n      const keep = lines[0];\n      if (keep && Number(keep.quantity) > 1) {\n        await writeCart(copy.changeUrl, {id:keep.key, quantity:1}).catch(() => null);\n        continue;\n      }\n      if (!keep) {\n        await writeCart(copy.addUrl, {items:[{id:variantId, quantity:1}]}).catch(() => null);\n      }\n      const confirmed = await readCart();\n      if (lineIsCurrent(confirmed)) return confirmed;\n    }\n    throw new Error('Protection could not be confirmed');\n  }\n  async function includeProtection(options) {\n    const awaitQuote = Boolean(options && options.awaitQuote);\n    const known = options && options.cart;\n    return locked(async () => {\n      resolveProtectionVariant();\n      // The automatic add waits for a republished quote to settle before it reads\n      // the cart, so the cart it confirms still matches the tier it adds.\n      if (awaitQuote && quoteSettling()) throw new Error('Protection is settling');\n      const cart = known && Array.isArray(known.items) ? known : await readCart();\n      if (!cart || !Array.isArray(cart.items) || !cart.items.length) return cart;\n      // Without a resolved quote there is nothing to compare the line against, so an\n      // existing line is left exactly as the app put it.\n      if (protectionLine(cart) && !protectionVariantId) return cart;\n      // A line the previous cart left behind is not accepted just because it is\n      // present: it is kept only when it is the variant this quote resolved.\n      if (lineIsCurrent(cart)) return cart;\n      const confirmed = await confirmReview(cart);\n      if (lineIsCurrent(confirmed)) return confirmed;\n      const existing = protectionLine(confirmed);\n      // Automatic inclusion only ever uses the resolved variant id. Navidium's\n      // controller redirects to checkout, which is wrong for a background add.\n      resolveProtectionVariant();\n      // Navidium can republish while the cart is being read, so the resolved\n      // variant is revalidated against the stored quote right before the write.\n      if (awaitQuote && (quoteSettling() || !protectionVariantId)) {\n        throw new Error('Protection is unavailable');\n      }\n      if (!protectionVariantId) throw new Error('Protection is unavailable');\n      if (existing) return writeProtectionLine(confirmed, protectionVariantId);\n      await writeCart(copy.addUrl, {items:[{id:protectionVariantId, quantity:1}]});\n      for (let attempt = 0; attempt < 4; attempt++) {\n        const after = await readCart();\n        const found = protectionLine(after);\n        if (found) {\n          if (found.quantity > 1) {\n            // Never leave a duplicated protection line behind.\n            await writeCart(copy.changeUrl, {id:found.key, quantity:1}).catch(() => null);\n            return readCart();\n          }\n          return after;\n        }\n        if (attempt < 3) await pause(500);\n      }\n      throw new Error('Protection could not be confirmed');\n    });\n  }\n  async function excludeProtection() {\n    return locked(async () => {\n      const cart = await readCart();\n      const line = protectionLine(cart);\n      if (!line) return cart;\n      if (reviewBusy()) throw new Error('Cart is busy');\n      await writeCart(copy.changeUrl, {id:line.key, quantity:0});\n      const after = await readCart();\n      if (protectionLine(after)) throw new Error('Protection could not be removed');\n      return after;\n    });\n  }\n  async function reconcile(withProtection) {\n    const cart = await readCart();\n    if (!cart || !Array.isArray(cart.items)) throw new Error('Cart could not be read');\n    if (Boolean(protectionLine(cart)) === withProtection) return cart;\n    return withProtection ? includeProtection() : excludeProtection();\n  }\n  function applyCart(cart, options) {\n    if (!cart) return;\n    const line = protectionLine(cart);\n    const present = Boolean(line);\n    inCart = present;\n    // The cart's own line price is the only authoritative price while the\n    // protection line is present, whatever the app text or product tier says.\n    linePrice = line ? formatMoney(Number(line.final_line_price)) : '';\n    if (!choiceTouched && choice) choice.checked = present;\n    // A confirmed no-op (the cart already holds the quoted line) keeps the markup\n    // it has, so a same-tier add never rewrites or flashes the rows.\n    if (options && options.rebuild === false) {\n      queueSync();\n      return;\n    }\n    rebuild();\n  }\n  async function saveNote(note) {\n    if (!note) return;\n    const response = await fetch(copy.updateUrl, {\n      method:'POST', credentials:'same-origin',\n      headers:{'Content-Type':'application/json','Accept':'application/json'},\n      body:JSON.stringify({note:note.value}), signal:AbortSignal.timeout(10000)\n    });\n    if (!response.ok) throw new Error('Note could not be saved');\n  }\n  function endCycle() {\n    cycleActive = false;\n    window.clearTimeout(cycleTimer);\n    cycleTimer = 0;\n  }\n  function beginCycle() {\n    cycleId++;\n    cycleActive = true;\n    window.clearTimeout(cycleTimer);\n    cycleTimer = window.setTimeout(expireCycle, cycleLimit);\n  }\n  // The cycle has to announce itself even when the cart never answers, otherwise the\n  // panel would sit on its own fallback instead of showing the cart as it stands.\n  function expireCycle() {\n    cycleTimer = 0;\n    if (!cycleActive) return;\n    endCycle();\n    autoDone = true;\n    // A rebuild that never announced still ends the wait here.\n    if (addedEpoch >= renderEpoch) addedEpoch = renderEpoch - 1;\n    queueSync();\n  }\n  // A quote republished after the cycle closed still describes a different tier, so\n  // the line is reconciled again while the bounded watch is running.\n  function beginQuoteFollowUp() {\n    if (quoteFollowUps >= maxQuoteFollowUps) return;\n    quoteFollowUps++;\n    settled = false;\n    autoDone = false;\n    autoTries = 0;\n    variantFetches = 0;\n    settleWaits = 0;\n    beginCycle();\n    queueAutoInclude(0);\n  }\n  // A quote that is still being rewritten spends no add budget: only the decision\n  // itself is postponed, and the bounded cycle deadline still releases the panel.\n  function deferCycle(delay) {\n    autoTries = Math.max(1, autoTries - 1);\n    settleWaits = 0;\n    scheduleAutoRetry(delay + 50);\n  }\n  function queueAutoInclude(delay) {\n    if (autoDone) return;\n    // Nothing is added before Navidium's bounded publication window has closed, so\n    // an early observer or idle signal cannot race the first quote.\n    const wait = Math.max(delay || 0, autoStartAt - Date.now());\n    window.clearTimeout(autoTimer);\n    autoTimer = window.setTimeout(autoInclude, wait > 0 ? wait : 0);\n  }\n  function scheduleAutoRetry(delay) {\n    if (autoDone) return;\n    window.clearTimeout(autoTimer);\n    autoTimer = window.setTimeout(autoInclude, delay || 400 * autoTries);\n  }\n  function startQuoteWatch() {\n    if (quoteWatchTimer) return;\n    const deadline = Date.now() + quoteWatchLimit;\n    quoteWatchTimer = window.setInterval(() => {\n      // A protection line being present no longer stops the watch: the quote can\n      // still move to a new tier after the line was written.\n      if (optedOut() || Date.now() > deadline) {\n        stopQuoteWatch();\n        return;\n      }\n      // A write already in flight owns the quote it resolved.\n      if (mutating || proceeding) return;\n      // Navidium republishes its stored variant and price without an event this\n      // controller can rely on, so the keys are watched directly.\n      if (!reconcileQuote()) return;\n      if (!cycleActive) beginQuoteFollowUp();\n      queueSync();\n      queueAutoInclude(0);\n    }, quoteWatchInterval);\n  }\n  function stopQuoteWatch() {\n    if (!quoteWatchTimer) return;\n    window.clearInterval(quoteWatchTimer);\n    quoteWatchTimer = 0;\n  }\n  async function autoInclude() {\n    if (autoDone || mutating || proceeding) return;\n    if (!synced || count < 1 || choiceTouched || optedOut()) {\n      // Nothing in this cycle can change the cart, so the cycle ends now instead of\n      // holding the panel back for the rest of its bound.\n      endCycle();\n      return;\n    }\n    // Waiting for the post-add quote spends no add budget: the bounded gate and the\n    // settle window only decide when the stored quote may be used.\n    const gate = quoteGateWait();\n    if (gate > 0) {\n      scheduleAutoRetry(gate + 50);\n      return;\n    }\n    const settling = settleWait();\n    if (settling > 0 && settleWaits < maxSettleWaits) {\n      settleWaits++;\n      scheduleAutoRetry(settling + 50);\n      return;\n    }\n    if (autoTries >= maxAutoTries) {\n      autoDone = true;\n      endCycle();\n      queueSync();\n      return;\n    }\n    if (!protectionVariantId) resolveProtectionVariant();\n    if (!protectionVariantId) {\n      // Navidium is still initializing: spend one bounded try and retry instead of\n      // leaving the first add of the session without protection.\n      autoTries++;\n      if (autoTries >= maxAutoTries) {\n        autoDone = true;\n        endCycle();\n      } else {\n        scheduleAutoRetry(variantRetryDelay);\n      }\n      // Lets the settled check see the spent try without waiting for a render.\n      queueSync();\n      return;\n    }\n    autoTries++;\n    mutating = true;\n    sync();\n    try {\n      // The quote is re-read before anything is decided: a republish that landed\n      // during the wait has to settle before the line may be judged current.\n      const moving = quoteReloading() || quoteConsistencyWaitLeft();\n      if (moving > 0) {\n        deferCycle(moving);\n        return;\n      }\n      const cart = await readCart();\n      // Navidium can write its keys again while the cart is being read.\n      const late = quoteReloading() || quoteConsistencyWaitLeft();\n      if (late > 0) {\n        deferCycle(late);\n        return;\n      }\n      // The cart it just read decides between an untouched line and a rewritten one,\n      // so a same-tier add never sends a write it does not need.\n      if (lineIsCurrent(cart)) applyCart(cart, {rebuild:false});\n      else applyCart(await includeProtection({awaitQuote:true, cart}));\n      autoDone = true;\n      endCycle();\n    } catch (error) {\n      // A busy price review, a settling quote or a refused add must never block\n      // checkout; the reconciliation is retried while the bounded budget lasts. A\n      // quote that moved while the write was prepared only waits out the settle\n      // window instead of the longer add backoff.\n      const settling = /settling/i.test((error && error.message) || '');\n      if (autoTries >= maxAutoTries) {\n        autoDone = true;\n        endCycle();\n      } else if (settling) {\n        deferCycle(quoteSettleDelay);\n      } else {\n        scheduleAutoRetry();\n      }\n    } finally {\n      mutating = false;\n      queueSync();\n    }\n  }\n  // Protection is settled when nothing further will change the cart on this pass:\n  // the line is there and current, it can never be there, the shopper declined it,\n  // the cart is empty, or the automatic reconciliation finished or ran out of tries.\n  function settledReason() {\n    if (count < 1) return 'empty';\n    if (optedOut()) return 'opted-out';\n    // A line being present is not a settled state while a cycle is still deciding\n    // whether that line is the one the current quote asks for.\n    if (cycleActive) return '';\n    if (inCart) return 'present';\n    // A missing variant only settles once the bounded variant resolution is spent,\n    // because Navidium can publish its variant and price after the first render.\n    if (!protectionVariantId) return autoTries >= maxAutoTries || choiceTouched ? 'no-variant' : '';\n    if (autoDone && autoTries >= maxAutoTries) return 'exhausted';\n    return '';\n  }\n  function maybeSettle() {\n    if (settled || mutating || renderPending) return;\n    // After an add the state has to be read from a render that landed after that\n    // add, so a stale pre-add count can never settle the new cycle early.\n    if (renderEpoch <= addedEpoch) return;\n    const reason = settledReason();\n    if (!reason) return;\n    // One notification per settled cycle: the population-out waits on this once.\n    settled = true;\n    document.dispatchEvent(new CustomEvent('fs:protection-settled', {detail:{reason, cycle:cycleId}}));\n  }\n  function sync() {\n    scheduled = false;\n    const state = form.querySelector('[data-fs-cart-state]');\n    if (!state) return;\n    count = Number(state.dataset.count);\n    const dom = state.dataset.protection === 'true';\n    if (dom !== protectionDom) {\n      // A native removal of the protection line is an explicit opt-out.\n      if (protectionDom === true && !dom && !mutating && !proceeding && !fuelLoading && count > 0) setOptedOut(true);\n      protectionDom = dom;\n      inCart = dom;\n    }\n    money(form.querySelector('[data-fs-sticky-subtotal]'), state.dataset.subtotalMoney);\n    money(form.querySelector('[data-fs-cart-savings]'), state.dataset.savingsMoney);\n    const savingsRow = form.querySelector('[data-fs-cart-savings-row]');\n    if (savingsRow) savingsRow.hidden = !(Number(state.dataset.savings) > 0);\n    text(page.querySelector('[data-fs-cart-count]'), `(${count})`);\n    if (!choiceTouched && choice) choice.checked = inCart;\n    if (!protectionVariantId) resolveProtectionVariant();\n    const app = appButtons();\n    const appPrice = app.price ? app.price.textContent.trim() : '';\n    // The app price is the prospective quote only; it never overrides the cart's\n    // own line price while the protection line is in the cart.\n    if (appPrice && !inCart) price = appPrice;\n    const rendered = Boolean(app.withProtection && app.withoutProtection && appPrice);\n    enhanced = rendered || inCart || Boolean(protectionVariantId && price);\n    page.classList.toggle('fs-cart-enhanced', enhanced);\n    if (protection) protection.hidden = !enhanced;\n    if (skipLink) skipLink.hidden = !enhanced;\n    if (buttons[0]) buttons[0].hidden = !enhanced;\n    // Included: show the actual line-item price (blank until it is known) so a\n    // mismatched app or product price is never displayed. Prospective: unchanged\n    // app/product fallback.\n    const shown = inCart ? linePrice : price;\n    if (enhanced && (inCart || shown)) text(form.querySelector('[data-fs-protection-price]'), shown);\n    if (inCart) loadLinePrice();\n    else if (!price) loadPrice();\n    const selected = Boolean(choice && choice.checked);\n    if (protectionNote) text(protectionNote, dom ? (selected ? copy.included : copy.remove) : (selected ? copy.selected : copy.optional));\n    const loading = Boolean(form.querySelector('.is-loading'));\n    buttons.forEach(button => { button.disabled = proceeding || mutating || loading || !count; });\n    if (bar) bar.hidden = !count;\n    if (!count) {\n      // An emptied cart always resets the opt-out so the next shopping session\n      // gets protection included again.\n      setOptedOut(false);\n      // Only the cart page reloads into its empty state; the drawer renders the\n      // empty state itself and a reload would eject the shopper mid-pop-out.\n      if (!drawer) window.location.reload();\n    } else if (!mutating) {\n      // The first render that has items is also this cycle's first inclusion\n      // chance, so it schedules the same way every later render does.\n      synced = true;\n      queueAutoInclude(autoTries ? 350 : 0);\n    }\n    if (!loadCycleStarted && addedEpoch < 0 && count > 0 && inCart && !optedOut()) {\n      // A page load that already holds protection still has to prove the line\n      // belongs to the current quote, so the regular /cart view recalculates its\n      // tier exactly like an add does instead of trusting what it was served.\n      loadCycleStarted = true;\n      if (!cycleActive) beginCycle();\n      queueAutoInclude(0);\n    }\n    // Fee-only carts are cleaned up here too, so removing the last product also\n    // removes the lines that only exist to price merchandise.\n    ensureFuelLine();\n    maybeSettle();\n  }\n  function queueSync() {\n    if (scheduled) return;\n    scheduled = true;\n    requestAnimationFrame(sync);\n  }\n  async function checkProtection() {\n    const previous = optedOut();\n    setOptedOut(false);\n    mutating = true;\n    error.hidden = true;\n    sync();\n    try {\n      applyCart(await includeProtection());\n      autoDone = true;\n    } catch (_) {\n      setOptedOut(previous);\n      if (choice) choice.checked = inCart;\n      showError(copy.error);\n    } finally {\n      mutating = false;\n      sync();\n    }\n  }\n  async function uncheckProtection() {\n    const previous = optedOut();\n    setOptedOut(true);\n    mutating = true;\n    error.hidden = true;\n    sync();\n    try {\n      applyCart(await excludeProtection());\n      autoDone = true;\n    } catch (_) {\n      setOptedOut(previous);\n      if (choice) choice.checked = inCart;\n      showError(copy.error);\n    } finally {\n      mutating = false;\n      sync();\n    }\n  }\n  if (choice) choice.addEventListener('change', () => {\n    if (mutating || proceeding) {\n      choice.checked = inCart;\n      return;\n    }\n    choiceTouched = true;\n    if (choice.checked) checkProtection();\n    else uncheckProtection();\n  });\n  function submitNative() {\n    const native = form.querySelector('.cart__checkout');\n    if (native && typeof form.requestSubmit === 'function') {\n      form.requestSubmit(native);\n      return;\n    }\n    window.location.href = '/checkout';\n  }\n  async function proceed(withProtection) {\n    if (proceeding) return;\n    error.hidden = true;\n    if (mutating || form.querySelector('.is-loading')) {\n      showError(copy.busy);\n      return;\n    }\n    const terms = form.querySelector('.cart__terms-checkbox');\n    if (terms && !terms.checked) {\n      showError(copy.terms);\n      terms.focus();\n      return;\n    }\n    if (!enhanced) {\n      const summary = form.querySelector('.fs-cart-summary');\n      if (summary) summary.scrollIntoView({block:'center',behavior:'smooth'});\n      const native = form.querySelector('.cart__checkout');\n      if (native) native.focus({preventScroll:true});\n      return;\n    }\n    const app = appButtons();\n    const rendered = Boolean(app.withProtection && app.withoutProtection);\n    const target = withProtection ? app.withProtection : app.withoutProtection;\n    if (rendered && (!target || target.disabled)) {\n      showError(copy.busy);\n      queueSync();\n      return;\n    }\n    proceeding = true;\n    sync();\n    try {\n      await saveNote(form.querySelector('[name=\"note\"]'));\n      // Choosing checkout without protection is an explicit opt-out, so a later\n      // cart visit must not auto-include it again.\n      if (!withProtection) setOptedOut(true);\n      if (rendered) {\n        // Navidium owns the button it rendered, so its without-protection button\n        // performs the removal and the checkout itself. Reconciling here first\n        // issued a second change request for the same line and failed.\n        target.click();\n      } else {\n        // The native submit has no app button to remove the declined line, so the\n        // line is removed and confirmed here first.\n        let unprotected = false;\n        if (withProtection) {\n          try {\n            applyCart(await reconcile(true));\n          } catch (_) {\n            // Protection could not be added or confirmed. Continue with native\n            // checkout on the cart exactly as it stands instead of stranding the\n            // shopper; a single native submit cannot charge protection twice.\n            unprotected = true;\n          }\n        } else {\n          // A failed removal must not check out with the wrong cart state.\n          applyCart(await reconcile(false));\n        }\n        submitNative();\n        if (unprotected) showError(copy.error);\n      }\n      window.setTimeout(() => {\n        if (document.visibilityState !== 'hidden') {\n          showError(copy.error);\n        }\n      }, 20000);\n    } catch (failure) {\n      proceeding = false;\n      showError(copy.error);\n      sync();\n    }\n  }\n  function checkout() {\n    return proceed(choice ? choice.checked : inCart);\n  }\n  buttons.forEach(button => button.addEventListener('click', checkout));\n  if (skipLink) skipLink.addEventListener('click', event => {\n    event.preventDefault();\n    if (proceeding) return;\n    return proceed(false);\n  });\n  new MutationObserver(queueSync).observe(form, {childList:true,subtree:true,attributes:true,attributeFilter:['class']});\n  const appMount = form.querySelector('.nvd-mini');\n  if (appMount) new MutationObserver(queueSync).observe(appMount, {childList:true,subtree:true,characterData:true});\n  window.addEventListener('pageshow', () => {\n    proceeding = false;\n    mutating = false;\n    error.hidden = true;\n    queueSync();\n  });\n  document.addEventListener('cart:updated', queueSync);\n  document.addEventListener('cart:rendered', () => {\n    // The rebuild this controller requested has now replaced the rows and the\n    // subtotal, so its settled check may run against the rendered state.\n    renderPending = false;\n    renderEpoch++;\n    window.clearTimeout(renderTimer);\n    sync();\n  });\n  document.addEventListener('ajaxProduct:added', () => {\n    // A new add runs its own protection reconciliation; the previous settled\n    // signal must not let the drawer open before this cycle has finished.\n    settled = false;\n    renderPending = false;\n    // Each add gets its own bounded resolution and auto-include budget, so a page\n    // load that already spent it can never settle the new add early.\n    autoDone = false;\n    autoTries = 0;\n    variantFetches = 0;\n    settleWaits = 0;\n    quoteFollowUps = 0;\n    addedEpoch = renderEpoch;\n    window.clearTimeout(renderTimer);\n    // The stored quote belongs to the previous cart until Navidium republishes it.\n    openQuoteGate();\n    // The line already in the cart can belong to that previous tier, so the add\n    // starts a cycle that has to confirm or replace it before anything settles.\n    beginCycle();\n    // A bigger cart republishes a new tier, so the quote is watched again.\n    stopQuoteWatch();\n    startQuoteWatch();\n  });\n  document.addEventListener('fs:cart-idle', () => queueAutoInclude(0));\n  markFeeTestCart();\n  sync();\n  queueAutoInclude(initialQuoteDelay);\n  startQuoteWatch();\n  // The native cart renderer can insert the state after the first sync, so the\n  // enhanced UI gets two bounded late chances to initialize.\n  window.setTimeout(sync, 250);\n  window.setTimeout(sync, 1000);\n})();\n"],
  "mappings": "CAAC,IAAM,CACL,aAGA,MAAM,SAAW,SAAS,cAAc,mCAAmC,GAAK,SAAS,cAAc,qBAAqB,EACtH,KAAO,SAAW,SAAS,QAAQ,MAAM,EAAI,SAAS,eAAe,cAAc,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