{
  "version": 3,
  "sources": ["/cdn/shop/t/12/assets/ppa-logo-animation.js?cb=16829"],
  "sourcesContent": ["(() => {\n  /* PPA-R27b (2026-08-08): continuous logo reel, hardened.\n     POP. cycles through all eleven treatments forever at a steady cadence.\n\n     Why this shape: the theme's page-speed engine rewrites chunks of the DOM\n     after load, replacing the header logo nodes. Any animation that holds\n     element references goes on animating detached nodes while the visible\n     clones sit frozen (that was the \"stuck on charcoal\" bug). So every tick\n     re-queries the live DOM, re-asserts the playing state, and derives the\n     frame purely from elapsed time \u2014 clone swaps, timer throttling, and\n     duplicate script executions all become harmless. */\n\n  const TICK_MS = 700;\n\n  const shouldStayStatic = () =>\n    window.matchMedia('(prefers-reduced-motion: reduce)').matches ||\n    (navigator.connection && navigator.connection.saveData);\n\n  function tick(t0) {\n    if (document.visibilityState === 'hidden') return;\n    document.querySelectorAll('[data-ppa-logo-reel]').forEach(root => {\n      const frames = root.querySelectorAll('[data-ppa-frame]');\n      if (frames.length < 11) return;\n      const idx = Math.floor((performance.now() - t0) / TICK_MS) % frames.length;\n      root.classList.add('is-playing');\n      frames.forEach((frame, i) => {\n        frame.style.opacity = i === idx ? '1' : '0';\n        frame.classList.toggle('is-current', i === idx);\n        frame.style.transform = 'none';\n      });\n    });\n  }\n\n  /* PPA-R30: iOS Safari suspends timers in a backgrounded tab and does not\n     always resume them \u2014 returning to the tab (or a bfcache restore via the\n     back button) left a dead interval, so the reel froze on whatever frame was\n     up. Restarting on visibilitychange/pageshow revives it; the frame stays\n     time-derived, so it resumes at the right point rather than jumping. */\n  let timer = null;\n  let t0 = 0;\n\n  function start() {\n    if (timer) clearInterval(timer);\n    tick(t0);\n    timer = setInterval(() => tick(t0), TICK_MS);\n  }\n\n  function init() {\n    if (shouldStayStatic()) return;           /* static official logo */\n    const root = document.querySelector('[data-ppa-logo-reel]');\n    if (!root) return;\n    const images = [...root.querySelectorAll('[data-ppa-frame]')];\n    Promise.race([\n      Promise.all(images.map(img => img.decode ? img.decode().catch(() => {}) : Promise.resolve())),\n      new Promise(resolve => setTimeout(resolve, 4000))\n    ]).then(() => {\n      t0 = performance.now();\n      start();\n      document.addEventListener('visibilitychange', () => {\n        if (document.visibilityState === 'visible') start();\n      });\n      window.addEventListener('pageshow', start);\n    });\n  }\n\n  if (!window.__ppaReelInitDone) {\n    window.__ppaReelInitDone = true;\n    if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init, { once: true });\n    else init();\n  }\n\n  window.PremierPopArtLogo = { tick };\n})();\n"],
  "mappings": "CAAC,IAAM,CAcL,MAAM,iBAAmB,IACvB,OAAO,WAAW,kCAAkC,EAAE,SACrD,UAAU,YAAc,UAAU,WAAW,SAEhD,SAAS,KAAKA,IAAI,CACZ,SAAS,kBAAoB,UACjC,SAAS,iBAAiB,sBAAsB,EAAE,QAAQ,MAAQ,CAChE,MAAM,OAAS,KAAK,iBAAiB,kBAAkB,EACvD,GAAI,OAAO,OAAS,GAAI,OACxB,MAAM,IAAM,KAAK,OAAO,YAAY,IAAI,EAAIA,KAAM,GAAO,EAAI,OAAO,OACpE,KAAK,UAAU,IAAI,YAAY,EAC/B,OAAO,QAAQ,CAAC,MAAO,IAAM,CAC3B,MAAM,MAAM,QAAU,IAAM,IAAM,IAAM,IACxC,MAAM,UAAU,OAAO,aAAc,IAAM,GAAG,EAC9C,MAAM,MAAM,UAAY,MAC1B,CAAC,CACH,CAAC,CACH,CAOA,IAAI,MAAQ,KACR,GAAK,EAET,SAAS,OAAQ,CACX,OAAO,cAAc,KAAK,EAC9B,KAAK,EAAE,EACP,MAAQ,YAAY,IAAM,KAAK,EAAE,EAAG,GAAO,CAC7C,CAEA,SAAS,MAAO,CACd,GAAI,iBAAiB,EAAG,OACxB,MAAM,KAAO,SAAS,cAAc,sBAAsB,EAC1D,GAAI,CAAC,KAAM,OACX,MAAM,OAAS,CAAC,GAAG,KAAK,iBAAiB,kBAAkB,CAAC,EAC5D,QAAQ,KAAK,CACX,QAAQ,IAAI,OAAO,IAAI,KAAO,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