1:I[64777,[],"HTTPAccessFallbackBoundary"]
4:"$Sreact.fragment"
6:I[57121,[],"LoadingBoundaryProvider"]
:HL["/_next/static/css/ebb241c1666ffa5e.css?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","style"]
:HL["/_next/static/css/2029d598c49834f7.css?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","style"]
:HL["/brand/wordmark-dark.svg","image",{"fetchPriority":"high"}]
e:X
0:{"f":[[["",{"children":["(public)",{"children":["(marketing)",{"children":["business",{"children":["faq",{"children":["__PAGE__",{},"$undefined","$undefined",4096]},"$undefined","$undefined",4096]},"$undefined","$undefined",4096]},"$undefined","$undefined",4100]},"$undefined","$undefined",4104],"auth":["__DEFAULT__",{},"$undefined","$undefined",4096],"businessAuth":["__DEFAULT__",{},"$undefined","$undefined",4096]},"$undefined","$undefined",4120],[["$","$L1","c",{"notFound":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ebb241c1666ffa5e.css?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/2029d598c49834f7.css?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],"$L2"],"children":["$0:f:0:1:0:props:notFound:0","$L3"]}],{"children":[["$","$4","c",{"children":[null,"$L5"]}],{"children":[["$","$L6",null,{"loading":[["$","main","l",{"className":"min-h-screen min-h-[100svh] bg-[#f6f7fb] text-[#18181b]","aria-busy":"true","aria-live":"polite","aria-label":"Loading YourBarrio","children":["$","section",null,{"className":"flex min-h-[360px] min-h-[100svh] items-center justify-center px-6 py-12","children":["$","div",null,{"className":"flex flex-col items-center gap-4 text-center","children":[["$","img",null,{"src":"/brand/wordmark-dark.svg","alt":"YourBarrio","width":182,"height":36,"sizes":"$undefined","loading":"eager","decoding":"async","fetchPriority":"high","className":"block object-contain h-auto w-[182px]"}],[["$","style",null,{"children":"\n  @keyframes yb-loader-dot-chase {\n    0%, 100% { opacity: 0.18; transform: scale(0.72); }\n    12.5% { opacity: 1; transform: scale(1); }\n    37.5% { opacity: 0.38; transform: scale(0.84); }\n  }\n  html.safari-desktop .yb-loader__dot,\n  .yb-loader__dot {\n    animation: yb-loader-dot-chase 1s linear infinite !important;\n    animation-delay: var(--yb-loader-dot-delay) !important;\n    transform-origin: center;\n    will-change: opacity, transform;\n  }\n  @media (prefers-reduced-motion: reduce) {\n    html.safari-desktop .yb-loader__dot,\n    .yb-loader__dot {\n      animation: none !important;\n      opacity: var(--yb-loader-dot-opacity);\n      transform: scale(0.88);\n      will-change: auto !important;\n    }\n  }\n"}],["$","span",null,{"className":"yb-loader relative inline-block shrink-0 h-7 w-7 text-[#411991]","role":"$undefined","aria-label":"$undefined","aria-live":"$undefined","aria-busy":"$undefined","aria-hidden":"true","data-yb-loader":"true","data-size":"md","children":[["$","span","0",{"className":"absolute inset-0","style":{"transform":"rotate(0deg)"},"children":["$","span",null,{"className":"yb-loader__dot absolute left-[39%] top-0 block h-[22%] w-[22%] rounded-full bg-current","style":{"--yb-loader-dot-delay":"-1s","--yb-loader-dot-opacity":1}}]}],["$","span","1",{"className":"absolute inset-0","style":{"transform":"rotate(45deg)"},"children":["$","span",null,{"className":"yb-loader__dot absolute left-[39%] top-0 block h-[22%] w-[22%] rounded-full bg-current","style":{"--yb-loader-dot-delay":"-0.875s","--yb-loader-dot-opacity":0.82}}]}],["$","span","2",{"className":"absolute inset-0","style":{"transform":"rotate(90deg)"},"children":["$","span",null,{"className":"yb-loader__dot absolute left-[39%] top-0 block h-[22%] w-[22%] rounded-full bg-current","style":{"--yb-loader-dot-delay":"-0.75s","--yb-loader-dot-opacity":0.68}}]}],["$","span","3",{"className":"absolute inset-0","style":{"transform":"rotate(135deg)"},"children":["$","span",null,{"className":"yb-loader__dot absolute left-[39%] top-0 block h-[22%] w-[22%] rounded-full bg-current","style":{"--yb-loader-dot-delay":"-0.625s","--yb-loader-dot-opacity":0.54}}]}],["$","span","4",{"className":"absolute inset-0","style":{"transform":"rotate(180deg)"},"children":["$","span",null,{"className":"yb-loader__dot absolute left-[39%] top-0 block h-[22%] w-[22%] rounded-full bg-current","style":{"--yb-loader-dot-delay":"-0.5s","--yb-loader-dot-opacity":0.42}}]}],["$","span","5",{"className":"absolute inset-0","style":{"transform":"rotate(225deg)"},"children":["$","span",null,{"className":"yb-loader__dot absolute left-[39%] top-0 block h-[22%] w-[22%] rounded-full bg-current","style":{"--yb-loader-dot-delay":"-0.375s","--yb-loader-dot-opacity":0.32}}]}],"$L7","$L8"]}]],"$L9"]}]}]}],[],null],"children":"$La"}],{"children":["$Lb",{"children":["$Lc",{"children":["$Ld",{},null,false,null]},null,false,"$e"]},null,false,"$e"]},null,false,null]},null,false,null],"auth":["$Lf",{},null,false,null],"businessAuth":["$L10",{},null,false,null]},null,false,null],"$L11",false]],"q":"","i":false,"S":false,"h":null,"r":"$undefined"}
12:I[57121,[],""]
13:I[74581,[],""]
14:I[98500,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7961","static/chunks/app/(public)/(marketing)/business/faq/page-474ff8e0b5f07aca.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],""]
15:I[18869,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7961","static/chunks/app/(public)/(marketing)/business/faq/page-474ff8e0b5f07aca.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
19:I[90484,[],"ViewportBoundary"]
1b:I[90484,[],"MetadataBoundary"]
1c:"$Sreact.suspense"
1e:I[15262,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3312","static/chunks/3312-1770732c7b80fb16.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","6404","static/chunks/6404-a2b956c55c106a38.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","950","static/chunks/950-240198752f126b0f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4261","static/chunks/4261-5a13c51e237abcf0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1816","static/chunks/app/(public)/layout-eeb22b7fad077402.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
1f:I[43100,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3312","static/chunks/3312-1770732c7b80fb16.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","6404","static/chunks/6404-a2b956c55c106a38.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","950","static/chunks/950-240198752f126b0f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4261","static/chunks/4261-5a13c51e237abcf0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","6570","static/chunks/app/(auth)/business/layout-6e3520c721b791d1.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
20:I[83536,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3312","static/chunks/3312-1770732c7b80fb16.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","6404","static/chunks/6404-a2b956c55c106a38.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","950","static/chunks/950-240198752f126b0f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4261","static/chunks/4261-5a13c51e237abcf0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1816","static/chunks/app/(public)/layout-eeb22b7fad077402.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
21:I[81588,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3312","static/chunks/3312-1770732c7b80fb16.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","6404","static/chunks/6404-a2b956c55c106a38.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","950","static/chunks/950-240198752f126b0f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4261","static/chunks/4261-5a13c51e237abcf0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1816","static/chunks/app/(public)/layout-eeb22b7fad077402.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
7:["$","span","6",{"className":"absolute inset-0","style":{"transform":"rotate(270deg)"},"children":["$","span",null,{"className":"yb-loader__dot absolute left-[39%] top-0 block h-[22%] w-[22%] rounded-full bg-current","style":{"--yb-loader-dot-delay":"-0.25s","--yb-loader-dot-opacity":0.24}}]}]
8:["$","span","7",{"className":"absolute inset-0","style":{"transform":"rotate(315deg)"},"children":["$","span",null,{"className":"yb-loader__dot absolute left-[39%] top-0 block h-[22%] w-[22%] rounded-full bg-current","style":{"--yb-loader-dot-delay":"-0.125s","--yb-loader-dot-opacity":0.18}}]}]
9:["$","span",null,{"className":"sr-only","children":"Loading YourBarrio..."}]
a:["$","$4","c",{"children":[null,["$","div",null,{"className":"min-h-screen bg-[var(--yb-bg)] text-[var(--yb-text)]","data-theme":"light","data-route-theme":"light","children":["$","$L12",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L13",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]
b:["$","$4","c",{"children":[null,["$","$L12",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L13",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}]
c:["$","$4","c",{"children":[null,["$","$L12",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L13",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}]
d:["$","$4","c",{"children":[["$","main",null,{"className":"min-h-screen overflow-x-hidden bg-white text-slate-950","children":[["$","section",null,{"className":"mx-auto w-full max-w-[1180px] px-5 sm:px-6 md:px-8 lg:px-10 pt-8 md:pt-12","children":["$","div",null,{"className":"mx-auto max-w-3xl text-center","children":[["$","$L14",null,{"href":"/business","className":"inline-flex text-sm font-semibold text-[#6d28d9] transition hover:text-[#5b21b6] hover:underline hover:underline-offset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#7c3aed] focus-visible:ring-offset-0","children":"YourBarrio for Business"}],["$","h1",null,{"className":"mt-3 text-[2.75rem] font-semibold leading-none tracking-[-0.055em] text-slate-950 sm:text-5xl","children":"Business FAQ"}],["$","p",null,{"className":"mx-auto mt-3.5 max-w-2xl text-lg leading-7 text-slate-600 sm:text-lg","children":"Answers to common questions about selling on YourBarrio."}]]}]}],["$","section",null,{"className":"mt-6 bg-[linear-gradient(180deg,#f8f5ff_0%,#fbfcff_46%,#ffffff_100%)] py-8 md:mt-8 md:py-10","children":["$","div",null,{"className":"mx-auto w-full max-w-[1180px] px-5 sm:px-6 md:px-8 lg:px-10","children":[["$","div",null,{"className":"grid w-full min-w-0 justify-stretch gap-8 lg:grid-cols-[220px_minmax(0,860px)] lg:items-start lg:justify-center lg:gap-12","children":[["$","aside",null,{"className":"min-w-0 max-w-full lg:sticky lg:top-[116px]","children":["$","$L15",null,{"groups":[{"category":"Getting started","items":[{"id":"website-needed","question":"Do I need a website already?","answer":"No. YourBarrio gives your business a local online storefront where customers can learn about your shop, browse products, and place pickup orders."},{"id":"who-can-join","question":"What kind of businesses can join?","answer":"YourBarrio is built for local shops such as boutiques, florists, gift shops, thrift stores, home goods stores, bakeries, and similar neighborhood businesses."},{"id":"setup-help","question":"Can I get help setting up my storefront?","answer":"During beta, founding local businesses can get setup support for profile details, first listings, photos, and pickup information."}]},{"category":"Listings and inventory","items":[{"id":"what-can-list","question":"What can I list on YourBarrio?","answer":"You can list eligible products with photos, prices, descriptions, inventory, and pickup availability. Listings must follow YourBarrio policies and local requirements."},{"id":"inventory-control","question":"Can I control inventory and availability?","answer":"Yes. You can manage product availability, inventory, and pickup windows from your business dashboard."},{"id":"profile-details","question":"What shows on my business profile?","answer":"Your profile can show your business story, photos, hours, location, contact details, products, and pickup information."}]},{"category":"Orders and pickup","items":[{"id":"online-payments","question":"Can customers pay online?","answer":"Yes. Customers can place orders and pay online, then pick up directly from your business."},{"id":"pickup-first","question":"Do I need to offer delivery?","answer":"No. YourBarrio is pickup-first during beta, so customers place orders online and pick them up directly from your business."},{"id":"pickup-flow","question":"How does pickup work?","answer":"Your business receives the order, prepares it for the selected pickup window, and marks the order as fulfilled after the customer picks it up."}]},{"category":"Payments and payouts","items":[{"id":"stripe-payments","question":"How are payments handled?","answer":"YourBarrio uses Stripe for online payments. Businesses connect Stripe during setup so eligible orders can be processed securely."},{"id":"payout-schedule","question":"When do I receive payouts?","answer":"Payout timing is handled through Stripe and reflected in the payout schedule shown in your business dashboard."},{"id":"beta-cost","question":"How much does it cost?","answer":"During beta, YourBarrio is waiving platform fees for founding local businesses. Any future fees will be shared clearly before they apply."}]},{"category":"Staff accounts","items":[{"id":"staff-access","question":"Can my team help manage the business account?","answer":"Yes. Business owners can invite staff and manage account access for day-to-day work such as orders, listings, and customer messages."},{"id":"staff-permissions","question":"Can staff access be limited?","answer":"Staff access is designed around business roles and permissions, so owners can keep control of sensitive account settings."}]},{"category":"Beta and availability","items":[{"id":"beta-meaning","question":"What does beta mean for my business?","answer":"Beta means YourBarrio is actively improving the business experience with early local partners while keeping core storefront, listing, order, and pickup tools available."},{"id":"approval","question":"Is every business approved automatically?","answer":"No. YourBarrio reviews business accounts and listings to keep the marketplace useful, local, and aligned with platform policies."},{"id":"future-delivery","question":"Will delivery be available later?","answer":"Pickup is the primary fulfillment flow today. Delivery may be considered later as an optional feature where it fits the local business experience."}]},{"category":"Support","items":[{"id":"support-contact","question":"How do I get help?","answer":"You can contact YourBarrio support at support@yourbarrio.com for help with account setup, listings, orders, and business tools."},{"id":"policy-questions","question":"Where can I review business policies?","answer":"Business policies are available through the footer links, including Business Terms and Prohibited Categories."}]}]}]}],"$L16"]}],"$L17"]}]}]]}],null,"$L18"]}]
f:["$","$4","c",{"children":[null,null,null]}]
10:["$","$4","c",{"children":[null,null,null]}]
11:["$","$4","h",{"children":[null,["$","$L19","02YTbd8YQccNe1wJNArSPv",{"children":"$L1a"}],["$","div","02YTbd8YQccNe1wJNArSPm",{"hidden":true,"children":["$","$L1b",null,{"children":["$","$1c",null,{"name":"Next.Metadata","children":"$L1d"}]}]}]]}]
5:["$","div",null,{"className":"min-h-screen bg-[var(--yb-bg)] text-[var(--yb-text)]","data-theme":"light","data-route-theme":"light","style":{"--bg-solid":"#ffffff","--bg-gradient-start":"#f7f7f8","--bg-gradient-end":"#eef2ff","--glow-1":"rgba(79, 70, 229, 0.1)","--glow-2":"rgba(14, 165, 233, 0.08)"},"children":[["$","$1c",null,{"fallback":null,"children":["$","$L1e",null,{"children":["$","$L1f",null,{"surface":"public"}]}]}],["$","$L20",null,{}],["$","$L21",null,{"children":["$","$L12",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L13",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]
22:I[55568,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7961","static/chunks/app/(public)/(marketing)/business/faq/page-474ff8e0b5f07aca.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
23:I[90484,[],"OutletBoundary"]
e:C
16:["$","div",null,{"className":"min-w-0 max-w-full lg:max-w-[860px]","children":["$","$L22",null,{"groups":"$d:props:children:0:props:children:1:props:children:props:children:0:props:children:0:props:children:props:groups"}]}]
17:["$","div",null,{"className":"mt-16 pb-12 md:mt-20 md:pb-14","children":["$","div",null,{"className":"rounded-[22px] border border-[#d9c6ff]/35 bg-[linear-gradient(135deg,rgba(249,244,255,0.96),rgba(255,255,255,0.98)_58%,rgba(239,243,252,0.92))] px-5 py-5 text-center shadow-[0_18px_52px_-44px_rgba(15,23,42,0.24)] sm:px-8 sm:py-6 md:px-12 md:py-8 lg:px-16","children":["$","div",null,{"className":"mx-auto max-w-3xl","children":[["$","p",null,{"className":"text-xs font-normal text-slate-500 sm:text-sm","children":"Still have questions? Contact support and we'll help you get started."}],["$","h2",null,{"className":"mt-2 text-2xl font-semibold leading-tight tracking-[-0.04em] text-slate-950 sm:mt-2.5 sm:text-[1.9rem]","children":"Ready to create your local storefront?"}],["$","p",null,{"className":"mx-auto mt-2.5 max-w-2xl text-sm leading-6 text-slate-600 sm:mt-3 sm:text-[0.95rem]","children":"Set up your business profile, add products, and start accepting pickup-ready local orders."}],["$","div",null,{"className":"mt-5 flex flex-col gap-3 sm:mt-6 sm:flex-row sm:justify-center","children":[["$","$L14",null,{"href":"/business-auth/register","className":"inline-flex min-h-10 w-full items-center justify-center whitespace-nowrap rounded-xl bg-[linear-gradient(135deg,#7c3aed,#9333ea)] px-5 py-2.5 text-sm font-semibold !text-white shadow-[0_14px_34px_-18px_rgba(124,58,237,0.42)] transition hover:-translate-y-0.5 hover:bg-[linear-gradient(135deg,#6d28d9,#7e22ce)] hover:!text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#7c3aed] focus-visible:ring-offset-0 active:!text-white sm:min-h-11 sm:w-auto sm:min-w-[13.5rem]","children":"Create business account"}],["$","$L14",null,{"href":"/business","className":"inline-flex min-h-10 w-full items-center justify-center whitespace-nowrap rounded-xl border border-slate-300/80 bg-white/80 px-5 py-2.5 text-sm font-semibold text-slate-800 transition hover:border-slate-400 hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-300 focus-visible:ring-offset-0 sm:min-h-11 sm:w-auto sm:min-w-[14.5rem]","children":"Back to business overview"}]]}],["$","p",null,{"className":"mt-3 text-xs font-medium leading-5 text-slate-500 sm:mt-4 sm:text-sm","children":"No monthly fee during beta. Set up takes only a few minutes."}]]}]}]}]
18:["$","$L23",null,{"children":["$","$1c",null,{"name":"Next.MetadataOutlet","children":"$@24"}]}]
25:T10160,
    (function (config) {
      "use strict";

      var root = document.documentElement;
      var now = function () {
        return window.performance && typeof window.performance.now === "function"
          ? window.performance.now()
          : Date.now();
      };
      var bootStartedAt = now();
      var bootStartedEpochMs = Date.now();
      var standalone = false;
      try {
        standalone =
          (window.matchMedia && window.matchMedia("(display-mode: standalone)").matches) ||
          window.navigator.standalone === true;
      } catch (_) {}

      window.__ybStandaloneMode = standalone;
      window.__ybBootStartedAt = bootStartedAt;
      root.classList.add(standalone ? "yb-standalone-mode" : "yb-browser-mode");
      if (!standalone) root.classList.remove("yb-app-booting");

      var allowedEvents = {
        activation_deferred: true,
        activation_request_sent: true,
        boot_ready_signal: true,
        cache_metadata: true,
        deployment_check: true,
        deployment_recovery: true,
        controller_change: true,
        inline_script_executed: true,
        javascript_error: true,
        long_task: true,
        long_task_observer: true,
        network_change: true,
        page_show: true,
        promise_rejection: true,
        react_hydrated: true,
        registration_error: true,
        registration_ready: true,
        reload_deferred: true,
        reload_loop_prevented: true,
        reload_requested: true,
        splash_failsafe_fired: true,
        splash_failsafe_scheduled: true,
        stable_fallback: true,
        visibility_change: true,
        worker_check: true,
        worker_state: true,
        worker_status: true,
        worker_unavailable: true
      };
      var allowedDetailKeys = {
        activeContract: true,
        activeState: true,
        activeVersion: true,
        activationRequestSent: true,
        autoReload: true,
        bootStartedEpochMs: true,
        cacheNames: true,
        contractVersion: true,
        controllerChangeCount: true,
        controllerContract: true,
        controllerPresent: true,
        controllerVersion: true,
        count: true,
        durationMs: true,
        automaticReloadCount: true,
        automaticOwner: true,
        automaticOwnerSuppressed: true,
        chunkDpl: true,
        chunkPath: true,
        currentVersion: true,
        documentVersion: true,
        episodeId: true,
        errorType: true,
        expectedVersion: true,
        hydrated: true,
        inlineExecuted: true,
        longTaskSupported: true,
        navigationType: true,
        online: true,
        pathCategory: true,
        persisted: true,
        previousEventCount: true,
        prefetch: true,
        promiseReasonType: true,
        reloadDeferred: true,
        reloadPrevented: true,
        recoveryAction: true,
        recoveryActive: true,
        recoveryKey: true,
        latchPresent: true,
        latchSource: true,
        manualReloadCount: true,
        responseCategory: true,
        scriptPath: true,
        source: true,
        standalone: true,
        storageAvailable: true,
        versionCategory: true,
        state: true,
        trigger: true,
        visibility: true,
        waitingContract: true,
        waitingState: true,
        waitingVersion: true,
        workerEnabled: true
      };
      var events = [];
      var snapshot = {
        activationRequestSent: false,
        activeContract: null,
        activeState: null,
        activeVersion: null,
        automaticReloadCount: 0,
        automaticRecoveryLatchPresent: false,
        automaticRecoveryLatchSource: null,
        bootStartedEpochMs: bootStartedEpochMs,
        contractVersion: config.contractVersion,
        controllerChangeCount: 0,
        controllerContract: null,
        controllerPresent: Boolean(navigator.serviceWorker && navigator.serviceWorker.controller),
        controllerVersion: null,
        currentProductionVersion: null,
        deploymentRecoveryActive: false,
        deploymentRecoveryEpisodeId: null,
        expectedVersion: config.expectedVersion,
        hydrated: false,
        inlineExecuted: true,
        longTaskSupported: false,
        online: navigator.onLine !== false,
        pathCategory: "general",
        manualReloadCount: 0,
        reloadDeferred: false,
        reloadPrevented: false,
        standalone: standalone,
        visibility: document.visibilityState || "unknown",
        waitingContract: null,
        waitingState: null,
        waitingVersion: null,
        workerEnabled: config.workerEnabled
      };
      var registration = null;
      var registrationPromise = null;
      var checkPromise = null;
      var lastCheckAt = 0;
      var observedRegistration = null;
      var observedWorkers = [];
      var statusWorkers = [];
      var activationRequestKey = null;
      var activationRequestedAt = 0;
      var controllerDecisionMade = false;
      var errorListenersInstalled = false;
      var longTaskObserver = null;
      var workerRecoveryNavigation = false;
      var deploymentRecoveryFromQuery = null;
      var deploymentManualRecovery = false;
      var deploymentDecisionPending = null;
      var deploymentCheckPending = null;
      var stableFallbackActive = false;
      var automaticRecoveryLatchMemory = null;
      var automaticRecoveryLatchSource = null;
      var automaticRecoveryFromQuery = false;
      var automaticRecoveryFromHistory = false;
      function sanitizeRecoveryIdentifier(value, fallback) {
        var normalized = String(value == null ? "" : value).trim().slice(0, 160);
        return normalized && /^[a-zA-Z0-9._:-]+$/.test(normalized)
          ? normalized
          : (fallback === undefined ? "unknown" : fallback);
      }
      function hashRecoveryIdentity(value) {
        var hash = 2166136261;
        for (var index = 0; index < value.length; index += 1) {
          hash ^= value.charCodeAt(index);
          hash = Math.imul(hash, 16777619);
        }
        return (hash >>> 0).toString(36);
      }
      try {
        var recoveryParameters = new URLSearchParams(window.location.search);
        if (
          window.location.pathname === "/" &&
          recoveryParameters.get(config.recoveryNavigationQueryKey) ===
            config.contractVersion
        ) {
          workerRecoveryNavigation = true;
          automaticRecoveryFromQuery = true;
          deploymentRecoveryFromQuery = "legacy_worker";
          recoveryParameters.delete(config.recoveryNavigationQueryKey);
          var recoveredSearch = recoveryParameters.toString();
          window.history.replaceState(
            window.history.state,
            "",
            window.location.pathname +
              (recoveredSearch ? "?" + recoveredSearch : "") +
              window.location.hash
          );
        }
        var deploymentQueryRecovery = sanitizeRecoveryIdentifier(
          recoveryParameters.get(config.deploymentRecoveryQueryKey),
          ""
        ) || null;
        if (deploymentQueryRecovery) {
          deploymentRecoveryFromQuery = deploymentQueryRecovery;
          automaticRecoveryFromQuery = true;
        }
        deploymentManualRecovery =
          recoveryParameters.get(config.deploymentManualQueryKey) === "1";
        var deploymentHistoryState =
          window.history &&
          window.history.state &&
          window.history.state.__ybPwaDeploymentRecovery;
        if (
          !automaticRecoveryFromQuery &&
          !deploymentManualRecovery &&
          deploymentHistoryState &&
          typeof deploymentHistoryState.at === "number" &&
          Date.now() >= deploymentHistoryState.at &&
          Date.now() - deploymentHistoryState.at <= config.deploymentRecoveryTtlMs
        ) {
          automaticRecoveryFromHistory =
            deploymentHistoryState.automaticAttempted === true ||
            Boolean(deploymentHistoryState.episodeId);
          deploymentRecoveryFromQuery =
            sanitizeRecoveryIdentifier(deploymentHistoryState.episodeId, "") ||
            (automaticRecoveryFromHistory ? "attempted" : null);
          deploymentManualRecovery = deploymentHistoryState.manual === true;
        }
        if (
          automaticRecoveryFromQuery ||
          automaticRecoveryFromHistory ||
          deploymentManualRecovery
        ) {
          recoveryParameters.delete(config.deploymentManualQueryKey);
          var cleanedRecoverySearch = recoveryParameters.toString();
          var nextRecoveryHistoryState = Object.assign({}, window.history.state || {});
          nextRecoveryHistoryState.__ybPwaDeploymentRecovery = {
            at: Date.now(),
            automaticAttempted:
              automaticRecoveryFromQuery || automaticRecoveryFromHistory,
            episodeId: deploymentRecoveryFromQuery || "manual",
            manual: deploymentManualRecovery
          };
          window.history.replaceState(
            nextRecoveryHistoryState,
            "",
            window.location.pathname +
              (cleanedRecoverySearch ? "?" + cleanedRecoverySearch : "") +
              window.location.hash
          );
        }
      } catch (_) {}
      if (
        automaticRecoveryFromQuery ||
        automaticRecoveryFromHistory ||
        deploymentManualRecovery
      ) {
        snapshot.deploymentRecoveryActive = true;
        snapshot.deploymentRecoveryEpisodeId =
          deploymentRecoveryFromQuery || "manual";
        snapshot.automaticReloadCount =
          automaticRecoveryFromQuery || automaticRecoveryFromHistory ? 1 : 0;
      }
      try { sessionStorage.removeItem("yb_chunk_recovered"); } catch (_) {}
      var initialController = navigator.serviceWorker && navigator.serviceWorker.controller;
      var initialControllerMetadata = workerMetadata(initialController);
      var recoveryReloadRequired =
        Boolean(initialController) &&
        !isExpectedWorker(initialController) &&
        !workerRecoveryNavigation;

      function safeString(value) {
        var stringValue = String(value == null ? "" : value);
        if (!/^[a-zA-Z0-9._:/ -]{0,160}$/.test(stringValue)) return null;
        return stringValue;
      }

      function safeDetails(details) {
        var result = {};
        if (!details || typeof details !== "object") return result;
        Object.keys(details).forEach(function (key) {
          if (!allowedDetailKeys[key]) return;
          var value = details[key];
          if (key === "cacheNames") {
            if (!Array.isArray(value)) return;
            result.cacheNames = value
              .filter(function (name) {
                return (
                  typeof name === "string" &&
                  name.indexOf("yb-pwa-") === 0 &&
                  /^[a-zA-Z0-9._-]{1,120}$/.test(name)
                );
              })
              .slice(0, 20);
            return;
          }
          if (typeof value === "boolean") {
            result[key] = value;
            return;
          }
          if (typeof value === "number" && isFinite(value)) {
            result[key] =
              key === "bootStartedEpochMs"
                ? Math.max(0, Math.min(Number.MAX_SAFE_INTEGER, Math.round(value)))
                : Math.max(-1, Math.min(86400000, Math.round(value)));
            return;
          }
          if (typeof value === "string") {
            var sanitized = safeString(value);
            if (sanitized !== null) result[key] = sanitized;
          }
        });
        return result;
      }

      function readPreviousBoot() {
        try {
          var previous = JSON.parse(sessionStorage.getItem(config.diagnosticsKey) || "null");
          if (!previous || previous.version !== config.diagnosticsVersion) return null;
          var previousEvents = Array.isArray(previous.events)
            ? previous.events.slice(-20).map(function (entry) {
                return {
                  data: safeDetails(entry && entry.data),
                  t:
                    entry && typeof entry.t === "number" && isFinite(entry.t)
                      ? Math.max(0, Math.min(86400000, Math.round(entry.t)))
                      : 0,
                  type:
                    entry && allowedEvents[entry.type]
                      ? entry.type
                      : "worker_state"
                };
              })
            : [];
          return {
            events: previousEvents,
            snapshot: safeDetails(previous.snapshot),
            version: config.diagnosticsVersion
          };
        } catch (_) {
          return null;
        }
      }

      var prior = readPreviousBoot();

      function persist() {
        try {
          sessionStorage.setItem(
            config.diagnosticsKey,
            JSON.stringify({
              events: events.slice(-config.maxEvents),
              previousBoot: prior,
              snapshot: safeDetails(snapshot),
              version: config.diagnosticsVersion
            })
          );
        } catch (_) {}
      }

      function emitState() {
        try {
          window.dispatchEvent(new CustomEvent(config.stateEvent));
        } catch (_) {}
      }

      function record(type, details) {
        var safeType = allowedEvents[type] ? type : "worker_state";
        events.push({
          data: safeDetails(details),
          t: Math.max(0, Math.round(now() - bootStartedAt)),
          type: safeType
        });
        if (events.length > config.maxEvents) {
          events.splice(0, events.length - config.maxEvents);
        }
        persist();
        emitState();
      }

      function queryHasAny(keys) {
        if (!window.location.search) return false;
        try {
          var params = new URLSearchParams(window.location.search);
          return keys.some(function (key) { return params.has(key); });
        } catch (_) {
          return true;
        }
      }

      function fragmentHasAny(keys) {
        if (!window.location.hash) return false;
        try {
          var params = new URLSearchParams(
            String(window.location.hash).replace(/^#/, "")
          );
          return keys.some(function (key) { return params.has(key); });
        } catch (_) {
          return true;
        }
      }

      function pathCategory() {
        var path = String(window.location.pathname || "/").replace(/\/+$/, "") || "/";
        var rules = config.routeRules;
        if (
          rules.authCallbackPaths.some(function (candidate) {
            return path === candidate || path.indexOf(candidate + "/") === 0;
          }) ||
          (
            path === "/" &&
            (
              queryHasAny(rules.authCallbackQueryKeys) ||
              fragmentHasAny(rules.authCallbackQueryKeys)
            )
          )
        ) return "auth_callback";
        if (path === "/business/pos" || path.indexOf("/business/pos/") === 0) return "pos";
        if (path === "/checkout" || path.indexOf("/checkout/") === 0 || path === "/cart") {
          return "checkout";
        }
        if (
          path === "/business/dashboard" &&
          queryHasAny(["billing", "checkout", "stripe"])
        ) return "payment_callback";
        if (
          path.indexOf("/orders/") === 0 ||
          path === "/business/orders" ||
          path === "/account/orders" ||
          path === "/account/purchase-history"
        ) return "receipt";
        if (
          rules.businessFormPatternSources.some(function (source) {
            return new RegExp(source).test(path);
          })
        ) return "business_form";
        if (
          path === "/" &&
          !window.location.search &&
          !window.location.hash
        ) return "startup";
        if (path === "/") {
          return window.location.search ? "root_query" : "root_fragment";
        }
        return "general";
      }

      function routeSafety() {
        var category = pathCategory();
        var unsafe = {
          auth_callback: true,
          business_form: true,
          checkout: true,
          payment_callback: true,
          pos: true,
          receipt: true
        };
        return {
          autoReload: category === "startup",
          category: category,
          safe: !unsafe[category]
        };
      }

      function refreshRouteState(trigger) {
        var safety = routeSafety();
        snapshot.pathCategory = safety.category;
        record("worker_state", {
          autoReload: safety.autoReload,
          pathCategory: safety.category,
          trigger: trigger || "route_change"
        });
        return safety;
      }

      function workerMetadata(worker) {
        if (!worker || !worker.scriptURL) {
          return {
            contract: null,
            present: Boolean(worker),
            scriptPath: null,
            state: worker && worker.state ? String(worker.state) : null,
            version: null
          };
        }
        try {
          var url = new URL(worker.scriptURL, window.location.origin);
          return {
            contract: url.searchParams.get("c"),
            present: true,
            scriptPath: url.pathname,
            state: worker.state ? String(worker.state) : null,
            version: url.searchParams.get("v")
          };
        } catch (_) {
          return {
            contract: null,
            present: true,
            scriptPath: null,
            state: worker.state ? String(worker.state) : null,
            version: null
          };
        }
      }

      function isExpectedWorker(worker) {
        var metadata = workerMetadata(worker);
        return (
          metadata.present &&
          metadata.scriptPath === "/sw.js" &&
          metadata.contract === config.contractVersion &&
          metadata.version === config.expectedVersion
        );
      }

      function recordWorkerStatus(worker, source) {
        if (!worker || typeof MessageChannel !== "function") return;
        if (statusWorkers.indexOf(worker) !== -1) return;
        statusWorkers.push(worker);
        if (statusWorkers.length > 20) statusWorkers.shift();
        var channel = new MessageChannel();
        var settled = false;
        var timer = window.setTimeout(function () {
          if (settled) return;
          settled = true;
          try { channel.port1.close(); } catch (_) {}
        }, 750);
        channel.port1.onmessage = function (event) {
          if (settled) return;
          settled = true;
          window.clearTimeout(timer);
          var data = event && event.data;
          record("worker_status", {
            activeContract: data && data.contract,
            activeVersion: data && data.version,
            source: source,
            state: data && data.activationMode
          });
          try { channel.port1.close(); } catch (_) {}
        };
        try {
          worker.postMessage({ type: "GET_STATUS" }, [channel.port2]);
        } catch (_) {
          window.clearTimeout(timer);
          try { channel.port1.close(); } catch (_) {}
        }
      }

      function collectCacheMetadata() {
        if (!("caches" in window) || !window.caches || typeof window.caches.keys !== "function") {
          return;
        }
        Promise.resolve(window.caches.keys()).then(function (names) {
          var cacheNames = Array.isArray(names)
            ? names.filter(function (name) {
                return typeof name === "string" && name.indexOf("yb-pwa-") === 0;
              })
            : [];
          record("cache_metadata", { cacheNames: cacheNames });
        }).catch(function () {});
      }

      function updateWorkerSnapshot(nextRegistration, trigger) {
        var active = workerMetadata(nextRegistration && nextRegistration.active);
        var waiting = workerMetadata(nextRegistration && nextRegistration.waiting);
        snapshot.activeContract = active.contract;
        snapshot.activeState = active.state;
        snapshot.activeVersion = active.version;
        snapshot.waitingContract = waiting.contract;
        snapshot.waitingState = waiting.state;
        snapshot.waitingVersion = waiting.version;
        snapshot.pathCategory = routeSafety().category;
        record("worker_state", {
          activeContract: active.contract || "",
          activeState: active.state || "",
          activeVersion: active.version || "",
          pathCategory: snapshot.pathCategory,
          trigger: trigger,
          waitingContract: waiting.contract || "",
          waitingState: waiting.state || "",
          waitingVersion: waiting.version || ""
        });
        recordWorkerStatus(nextRegistration && nextRegistration.active, "active");
        recordWorkerStatus(nextRegistration && nextRegistration.waiting, "waiting");
      }

      function requestActivation(candidate, options) {
        options = options || {};
        if (!candidate || !isExpectedWorker(candidate)) {
          record("activation_deferred", {
            pathCategory: routeSafety().category,
            source: "unverified_worker",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        var safety = routeSafety();
        if (navigator.onLine === false) {
          record("activation_deferred", {
            online: false,
            pathCategory: safety.category,
            source: "offline",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        if (!options.force && !safety.safe) {
          snapshot.reloadDeferred = true;
          record("activation_deferred", {
            pathCategory: safety.category,
            source: "unsafe_route",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        var metadata = workerMetadata(candidate);
        var requestKey = String(metadata.contract || "") + ":" + String(metadata.version || "");
        if (
          activationRequestKey === requestKey &&
          Date.now() - activationRequestedAt < 10000
        ) return true;
        try {
          candidate.postMessage({ type: "SKIP_WAITING", contract: config.contractVersion });
          activationRequestKey = requestKey;
          activationRequestedAt = Date.now();
          snapshot.activationRequestSent = true;
          record("activation_request_sent", {
            activationRequestSent: true,
            pathCategory: safety.category,
            trigger: options.trigger || "unknown",
            waitingContract: metadata.contract || "",
            waitingVersion: metadata.version || ""
          });
          return true;
        } catch (_) {
          return false;
        }
      }

      function observeWorker(worker, nextRegistration) {
        if (!worker || observedWorkers.indexOf(worker) !== -1) return;
        observedWorkers.push(worker);
        if (observedWorkers.length > 20) observedWorkers.shift();
        var handleStateChange = function () {
          updateWorkerSnapshot(nextRegistration, "statechange");
          if (worker.state === "installed") {
            if (isExpectedWorker(worker)) {
              requestActivation(worker, { trigger: "installed" });
            } else if (nextRegistration && typeof nextRegistration.update === "function") {
              Promise.resolve(nextRegistration.update()).catch(function () {});
            }
          }
        };
        worker.addEventListener("statechange", handleStateChange);
      }

      function attachRegistration(nextRegistration, trigger) {
        registration = nextRegistration;
        runtime.registration = nextRegistration;
        updateWorkerSnapshot(nextRegistration, trigger);
        collectCacheMetadata();

        if (nextRegistration.waiting) {
          if (isExpectedWorker(nextRegistration.waiting)) {
            requestActivation(nextRegistration.waiting, { trigger: trigger });
          } else if (navigator.onLine !== false && typeof nextRegistration.update === "function") {
            Promise.resolve(nextRegistration.update()).catch(function () {});
          }
        }
        if (nextRegistration.installing) observeWorker(nextRegistration.installing, nextRegistration);

        if (observedRegistration !== nextRegistration) {
          observedRegistration = nextRegistration;
          nextRegistration.addEventListener("updatefound", function () {
            if (nextRegistration.installing) {
              observeWorker(nextRegistration.installing, nextRegistration);
              updateWorkerSnapshot(nextRegistration, "updatefound");
            }
          });
        }
      }

      function checkWorker(trigger, force) {
        if (!config.workerEnabled || !navigator.serviceWorker) {
          record("worker_unavailable", {
            trigger: trigger,
            workerEnabled: config.workerEnabled
          });
          return Promise.resolve(null);
        }
        var checkedAt = Date.now();
        if (!force && checkedAt - lastCheckAt < 2000) return checkPromise || registrationPromise;
        if (checkPromise) return checkPromise;
        lastCheckAt = checkedAt;
        record("worker_check", {
          online: navigator.onLine !== false,
          pathCategory: routeSafety().category,
          trigger: trigger
        });

        if (!registrationPromise) {
          registrationPromise = Promise.resolve(
            navigator.serviceWorker.register(config.workerUrl, {
              scope: "/",
              updateViaCache: "none"
            })
          );
          runtime.registrationPromise = registrationPromise;
        }

        checkPromise = registrationPromise
          .then(function (nextRegistration) {
            attachRegistration(nextRegistration, trigger);
            record("registration_ready", {
              activeVersion: workerMetadata(nextRegistration.active).version || "",
              trigger: trigger,
              waitingVersion: workerMetadata(nextRegistration.waiting).version || ""
            });
            if (
              navigator.onLine !== false &&
              typeof nextRegistration.update === "function" &&
              (force || nextRegistration.waiting && !isExpectedWorker(nextRegistration.waiting))
            ) {
              return Promise.resolve(nextRegistration.update())
                .catch(function () {})
                .then(function () {
                  attachRegistration(nextRegistration, trigger + "_updated");
                  return nextRegistration;
                });
            }
            return nextRegistration;
          })
          .catch(function () {
            registrationPromise = null;
            runtime.registrationPromise = null;
            record("registration_error", {
              online: navigator.onLine !== false,
              trigger: trigger
            });
            return null;
          })
          .then(function (result) {
            checkPromise = null;
            return result;
          });
        return checkPromise;
      }

      function validAutomaticRecoveryLatch(value) {
        return Boolean(
          value &&
          value.version === 1 &&
          typeof value.attemptedAt === "number" &&
          Date.now() >= value.attemptedAt &&
          Date.now() - value.attemptedAt <= config.deploymentRecoveryTtlMs
        );
      }

      function readAutomaticRecoveryLatchFrom(storage, source) {
        try {
          if (!storage) return null;
          var raw = storage.getItem(config.automaticRecoveryLatchStorageKey);
          if (!raw) return null;
          var parsed = JSON.parse(raw);
          if (!validAutomaticRecoveryLatch(parsed)) {
            storage.removeItem(config.automaticRecoveryLatchStorageKey);
            return null;
          }
          return { record: parsed, source: source };
        } catch (_) {
          return null;
        }
      }

      function writeAutomaticRecoveryLatchTo(storage, value) {
        try {
          if (!storage) return false;
          storage.setItem(
            config.automaticRecoveryLatchStorageKey,
            JSON.stringify(value)
          );
          return storage.getItem(config.automaticRecoveryLatchStorageKey) !== null;
        } catch (_) {
          return false;
        }
      }

      function safeWindowStorage(name) {
        try {
          return window[name] || null;
        } catch (_) {
          return null;
        }
      }

      function writeAutomaticRecoveryLatchCopies(value) {
        return {
          local: writeAutomaticRecoveryLatchTo(
            safeWindowStorage("localStorage"),
            value
          ),
          session: writeAutomaticRecoveryLatchTo(
            safeWindowStorage("sessionStorage"),
            value
          )
        };
      }

      function setAutomaticRecoverySnapshot(source) {
        snapshot.automaticRecoveryLatchPresent = true;
        snapshot.automaticRecoveryLatchSource = source;
        snapshot.automaticReloadCount = 1;
      }

      function readAutomaticRecoveryLatch() {
        if (validAutomaticRecoveryLatch(automaticRecoveryLatchMemory)) {
          setAutomaticRecoverySnapshot(automaticRecoveryLatchSource || "memory");
          return {
            record: automaticRecoveryLatchMemory,
            source: automaticRecoveryLatchSource || "memory"
          };
        }
        var local = readAutomaticRecoveryLatchFrom(
          safeWindowStorage("localStorage"),
          "storage"
        );
        var session = local || readAutomaticRecoveryLatchFrom(
          safeWindowStorage("sessionStorage"),
          "storage"
        );
        var stored = local || session;
        if (!stored) return null;
        automaticRecoveryLatchMemory = stored.record;
        automaticRecoveryLatchSource = stored.source;
        setAutomaticRecoverySnapshot(stored.source);
        return stored;
      }

      function transferAutomaticRecoveryHandoff() {
        if (!automaticRecoveryFromQuery && !automaticRecoveryFromHistory) {
          return readAutomaticRecoveryLatch();
        }
        var source = automaticRecoveryFromQuery ? "query" : "history";
        var existing =
          readAutomaticRecoveryLatchFrom(
            safeWindowStorage("localStorage"),
            "storage"
          ) ||
          readAutomaticRecoveryLatchFrom(
            safeWindowStorage("sessionStorage"),
            "storage"
          );
        var value = existing
          ? existing.record
          : {
              version: 1,
              attemptedAt: Date.now(),
              owner: sanitizeRecoveryIdentifier(
                deploymentRecoveryFromQuery,
                "handoff"
              )
            };
        automaticRecoveryLatchMemory = value;
        automaticRecoveryLatchSource = source;
        setAutomaticRecoverySnapshot(source);
        var writes = writeAutomaticRecoveryLatchCopies(value);

        // A local-storage transfer survives a new WebKit session namespace.
        // Until that succeeds, retain the fixed query handoff in the URL.
        if (automaticRecoveryFromQuery && writes.local) {
          try {
            var parameters = new URLSearchParams(window.location.search);
            parameters.delete(config.deploymentRecoveryQueryKey);
            var cleaned = parameters.toString();
            window.history.replaceState(
              window.history.state,
              "",
              window.location.pathname +
                (cleaned ? "?" + cleaned : "") +
                window.location.hash
            );
          } catch (_) {}
        }
        record("deployment_recovery", {
          automaticReloadCount: 1,
          automaticOwner: value.owner,
          latchPresent: true,
          latchSource: source,
          recoveryAction: writes.local || writes.session
            ? "query_handoff_transferred"
            : "storage_unavailable",
          storageAvailable: writes.local || writes.session
        });
        return { record: value, source: source };
      }

      function claimAutomaticRecoveryNavigation(owner) {
        var existing = readAutomaticRecoveryLatch();
        if (existing) {
          return {
            allowed: false,
            record: existing.record,
            source: existing.source
          };
        }
        var value = {
          version: 1,
          attemptedAt: Date.now(),
          owner: sanitizeRecoveryIdentifier(owner, "unknown")
        };
        automaticRecoveryLatchMemory = value;
        automaticRecoveryLatchSource = "memory";
        setAutomaticRecoverySnapshot("memory");
        var writes = writeAutomaticRecoveryLatchCopies(value);
        if (writes.local || writes.session) {
          automaticRecoveryLatchSource = "storage";
          snapshot.automaticRecoveryLatchSource = "storage";
        }
        return {
          allowed: true,
          record: value,
          source: writes.local || writes.session ? "storage" : "memory",
          storageAvailable: writes.local || writes.session
        };
      }

      function automaticRecoveryTarget() {
        var target = new URL("/", location.origin);
        target.searchParams.set(config.deploymentRecoveryQueryKey, "attempted");
        return target;
      }

      function requestAutomaticRecoveryNavigation(owner, details) {
        if (!config.deploymentRecoveryEnabled) return false;
        record("deployment_recovery", {
          automaticOwner: owner,
          latchPresent: Boolean(readAutomaticRecoveryLatch()),
          recoveryAction: "automatic_owner_requested",
          routeCategory: routeSafety().category
        });
        var claim = claimAutomaticRecoveryNavigation(owner);
        if (!claim.allowed) {
          snapshot.reloadPrevented = true;
          record("reload_loop_prevented", {
            automaticOwnerSuppressed: owner,
            latchPresent: true,
            latchSource: claim.source,
            pathCategory: routeSafety().category,
            reloadPrevented: true
          });
          showStableFallback("automatic_owner_suppressed", details || {});
          return false;
        }
        if (claim.storageAvailable === false) {
          record("deployment_recovery", {
            automaticOwner: owner,
            latchPresent: true,
            latchSource: claim.source,
            recoveryAction: "storage_unavailable"
          });
        }
        snapshot.deploymentRecoveryActive = true;
        record("reload_requested", {
          automaticOwner: owner,
          autoReload: true,
          latchPresent: true,
          latchSource: claim.source,
          pathCategory: routeSafety().category,
          storageAvailable: claim.storageAvailable !== false
        });
        var target = automaticRecoveryTarget();
        window.setTimeout(function () {
          window.location.replace(target.href);
        }, 0);
        return true;
      }

      transferAutomaticRecoveryHandoff();

      function decideRecoveryReload(controller, source) {
        if (controllerDecisionMade) return;
        if (!isExpectedWorker(controller)) return;
        if (!recoveryReloadRequired) return;

        var safety = routeSafety();
        if (navigator.onLine === false) {
          snapshot.reloadDeferred = true;
          record("reload_deferred", {
            autoReload: safety.autoReload,
            online: false,
            pathCategory: safety.category,
            source: source === "online" ? "offline_reconnect" : "offline"
          });
          return;
        }
        controllerDecisionMade = true;
        snapshot.reloadDeferred = false;
        if (!safety.autoReload) {
          snapshot.reloadDeferred = true;
          record("reload_deferred", {
            autoReload: false,
            pathCategory: safety.category,
            source: safety.safe ? "manual_route" : "unsafe_route"
          });
          return;
        }
        requestAutomaticRecoveryNavigation(
          source === "pageshow_persisted"
            ? "controller_pageshow"
            : "controller_change",
          { responseCategory: "worker_recovery" }
        );
      }

      function handleControllerChange() {
        snapshot.controllerChangeCount += 1;
        var controller = navigator.serviceWorker && navigator.serviceWorker.controller;
        var metadata = workerMetadata(controller);
        snapshot.controllerPresent = Boolean(controller);
        snapshot.controllerContract = metadata.contract;
        snapshot.controllerVersion = metadata.version;
        record("controller_change", {
          controllerChangeCount: snapshot.controllerChangeCount,
          controllerContract: metadata.contract || "",
          controllerPresent: Boolean(controller),
          controllerVersion: metadata.version || ""
        });
        if (registration) updateWorkerSnapshot(registration, "controllerchange");

        if (!isExpectedWorker(controller)) {
          void checkWorker("controller_change_unverified", true);
          return;
        }
        decideRecoveryReload(controller, "controller_change");
      }

      function handleWorkerMessage(event) {
        var data = event && event.data;
        if (
          data &&
          data.type === "YB_AUTOMATIC_RECOVERY_REQUEST" &&
          data.contract === config.contractVersion
        ) {
          var safety = routeSafety();
          if (!safety.autoReload || navigator.onLine === false) {
            record("reload_deferred", {
              automaticOwner: "legacy_worker",
              autoReload: safety.autoReload,
              online: navigator.onLine !== false,
              pathCategory: safety.category
            });
            return;
          }
          requestAutomaticRecoveryNavigation("legacy_worker", {
            responseCategory: "worker_recovery"
          });
          return;
        }
        if (
          !data ||
          data.type !== "YB_WORKER_ACTIVATION" ||
          data.contract !== config.contractVersion
        ) return;
        var state = String(data.state || "");
        if (state.indexOf("deferred_") === 0) {
          activationRequestKey = null;
          activationRequestedAt = 0;
          snapshot.activationRequestSent = false;
          snapshot.reloadDeferred = true;
          record("activation_deferred", {
            activationRequestSent: false,
            pathCategory: routeSafety().category,
            source: "other_client",
            state: state
          });
          return;
        }
        record("worker_state", {
          activationRequestSent: snapshot.activationRequestSent,
          source: "activation_response",
          state: state
        });
      }

      function readDeploymentRecoveryRecord() {
        try {
          var raw = sessionStorage.getItem(config.deploymentRecoveryStorageKey);
          if (!raw) return null;
          var parsed = JSON.parse(raw);
          if (
            !parsed ||
            parsed.version !== 1 ||
            typeof parsed.firstAttemptAt !== "number" ||
            Date.now() < parsed.firstAttemptAt ||
            Date.now() - parsed.firstAttemptAt > config.deploymentRecoveryTtlMs
          ) {
            sessionStorage.removeItem(config.deploymentRecoveryStorageKey);
            return null;
          }
          return parsed;
        } catch (_) {
          return null;
        }
      }

      function writeDeploymentRecoveryRecord(next) {
        try {
          sessionStorage.setItem(
            config.deploymentRecoveryStorageKey,
            JSON.stringify(next)
          );
          return sessionStorage.getItem(config.deploymentRecoveryStorageKey) !== null;
        } catch (_) {
          return false;
        }
      }

      function deploymentStorageAvailable() {
        try {
          var key = config.deploymentRecoveryStorageKey + ":probe";
          sessionStorage.setItem(key, "1");
          sessionStorage.removeItem(key);
          return true;
        } catch (_) {
          return false;
        }
      }

      function recoveryNavigationType() {
        try {
          var entries = performance.getEntriesByType("navigation");
          return entries.length ? String(entries[0].type || "unknown") : "unknown";
        } catch (_) {
          return "unknown";
        }
      }

      function privacySafeChunkDetails(details) {
        var chunkPath = null;
        try {
          var parsed = new URL(String(details && details.chunkUrl || ""), location.origin);
          if (parsed.origin === location.origin && parsed.pathname.indexOf("/_next/static/") === 0) {
            chunkPath = parsed.pathname.slice(0, 240);
          }
        } catch (_) {}
        return {
          chunkDpl: sanitizeRecoveryIdentifier(details && details.chunkDpl, "unknown"),
          chunkPath: chunkPath,
          prefetch: Boolean(details && details.prefetch),
          responseCategory: sanitizeRecoveryIdentifier(
            details && details.responseCategory,
            "unknown"
          )
        };
      }

      function createStableFallback() {
        var fallback = document.getElementById("yb-pwa-recovery-fallback");
        if (fallback) {
          fallback.setAttribute("data-state", "visible");
          return true;
        }
        if (!document.body) return false;

        fallback = document.createElement("section");
        fallback.id = "yb-pwa-recovery-fallback";
        fallback.className = "yb-pwa-recovery-fallback";
        fallback.setAttribute("data-state", "visible");
        fallback.setAttribute("role", "alertdialog");
        fallback.setAttribute("aria-modal", "true");
        fallback.setAttribute("aria-labelledby", "yb-pwa-recovery-title");
        fallback.setAttribute("aria-describedby", "yb-pwa-recovery-message");

        var inner = document.createElement("div");
        inner.className = "yb-pwa-recovery-fallback__inner";

        var logo = document.createElement("img");
        logo.src = "/brand/logo-mark-white.svg";
        logo.alt = "YourBarrio";
        logo.className = "yb-pwa-recovery-fallback__logo";

        var title = document.createElement("h1");
        title.id = "yb-pwa-recovery-title";
        title.textContent = "YourBarrio needs a quick refresh";

        var message = document.createElement("p");
        message.id = "yb-pwa-recovery-message";
        message.textContent =
          "YourBarrio needs to reload to continue. You’ll stay signed in.";

        var reload = document.createElement("button");
        reload.type = "button";
        reload.textContent = "Refresh YourBarrio";
        reload.className = "yb-pwa-recovery-fallback__reload";
        reload.addEventListener("click", function () {
          snapshot.manualReloadCount += 1;
          record("deployment_recovery", {
            manualReloadCount: snapshot.manualReloadCount,
            recoveryAction: "manual_reload",
            source: "stable_fallback"
          });
          var target = new URL("/", location.origin);
          target.searchParams.set(config.deploymentManualQueryKey, "1");
          location.replace(target.href);
        });

        var rootLink = document.createElement("a");
        rootLink.href = "/";
        rootLink.textContent = "Go to YourBarrio home";
        rootLink.className = "yb-pwa-recovery-fallback__home";

        inner.appendChild(logo);
        inner.appendChild(title);
        inner.appendChild(message);
        inner.appendChild(reload);
        inner.appendChild(rootLink);
        fallback.appendChild(inner);
        document.body.appendChild(fallback);
        return true;
      }

      function showStableFallback(reason, details) {
        if (stableFallbackActive) {
          createStableFallback();
          record("stable_fallback", {
            automaticReloadCount: snapshot.automaticReloadCount,
            recoveryAction: "fallback_preserved",
            source: reason || "repeated_error"
          });
          return;
        }
        stableFallbackActive = true;
        snapshot.deploymentRecoveryActive = true;
        var activate = function () {
          if (!createStableFallback()) return;
          record("stable_fallback", {
            automaticReloadCount: snapshot.automaticReloadCount,
            chunkDpl: details && details.chunkDpl,
            chunkPath: details && details.chunkPath,
            currentVersion: snapshot.currentProductionVersion || "",
            documentVersion: config.expectedVersion,
            episodeId: snapshot.deploymentRecoveryEpisodeId || "",
            recoveryAction: reason || "failed",
            routeCategory: routeSafety().category,
            storageAvailable: deploymentStorageAvailable(),
            latchPresent: Boolean(readAutomaticRecoveryLatch()),
            latchSource: snapshot.automaticRecoveryLatchSource || "memory"
          });
        };
        if (document.body) activate();
        else document.addEventListener("DOMContentLoaded", activate, { once: true });
      }

      function fetchCurrentProductionVersion() {
        if (deploymentCheckPending) return deploymentCheckPending;
        if (typeof fetch !== "function") return Promise.resolve(null);
        var controller =
          typeof AbortController === "function" ? new AbortController() : null;
        var timeout = window.setTimeout(function () {
          try { controller && controller.abort(); } catch (_) {}
        }, 4000);
        deploymentCheckPending = fetch("/api/app-version", {
          cache: "no-store",
          credentials: "same-origin",
          signal: controller ? controller.signal : undefined
        })
          .then(function (response) {
            if (!response.ok) return null;
            return response.json();
          })
          .then(function (payload) {
            var version = sanitizeRecoveryIdentifier(payload && payload.version, "");
            snapshot.currentProductionVersion = version || null;
            return version || null;
          })
          .catch(function () { return null; })
          .finally(function () {
            window.clearTimeout(timeout);
            deploymentCheckPending = null;
          });
        return deploymentCheckPending;
      }

      function coordinateDeploymentRecovery(input) {
        if (!config.deploymentRecoveryEnabled) {
          return Promise.resolve({ action: "ignore", automaticNavigation: false });
        }
        var details = privacySafeChunkDetails(input || {});
        if (details.prefetch) {
          record("deployment_recovery", {
            chunkDpl: details.chunkDpl,
            chunkPath: details.chunkPath,
            documentVersion: config.expectedVersion,
            recoveryAction: "prefetch_ignored",
            routeCategory: routeSafety().category
          });
          return Promise.resolve({ action: "prefetch_ignored", automaticNavigation: false });
        }
        if (deploymentDecisionPending) return deploymentDecisionPending;

        var suppliedCurrentVersion =
          input && sanitizeRecoveryIdentifier(input.currentVersion, "");
        var currentVersionRequest = suppliedCurrentVersion
          ? Promise.resolve(suppliedCurrentVersion)
          : fetchCurrentProductionVersion();
        deploymentDecisionPending = currentVersionRequest
          .then(function (currentVersion) {
            var safety = routeSafety();
            var documentVersion = sanitizeRecoveryIdentifier(config.expectedVersion);
            var safeCurrentVersion = sanitizeRecoveryIdentifier(
              currentVersion || input && input.currentVersion,
              "unknown"
            );
            var identity = [
              documentVersion,
              safeCurrentVersion,
              details.chunkDpl,
              safety.category
            ].join("|");
            var episodeId = hashRecoveryIdentity(identity);
            var recoveryKey = hashRecoveryIdentity(
              identity + "|" + (details.chunkPath || "unknown")
            );
            var prior = readDeploymentRecoveryRecord();
            var storageAvailable = deploymentStorageAvailable();
            var latch = readAutomaticRecoveryLatch();
            var alreadyRecovered = Boolean(latch);
            var versionCategory =
              safeCurrentVersion === "unknown" ? "unknown" : "known";
            if (versionCategory === "unknown") {
              record("deployment_check", {
                currentVersion: "",
                documentVersion: documentVersion,
                recoveryAction: "version_unavailable",
                source: "deployment_recovery",
                versionCategory: "unknown"
              });
            }

            snapshot.deploymentRecoveryActive = true;
            snapshot.deploymentRecoveryEpisodeId =
              deploymentRecoveryFromQuery || episodeId;
            if (!safety.safe || navigator.onLine === false) {
              record("deployment_recovery", {
                automaticReloadCount: snapshot.automaticReloadCount,
                chunkDpl: details.chunkDpl,
                chunkPath: details.chunkPath,
                currentVersion: safeCurrentVersion,
                documentVersion: documentVersion,
                episodeId: episodeId,
                navigationType: recoveryNavigationType(),
                recoveryAction: "deferred",
                recoveryKey: recoveryKey,
                responseCategory: details.responseCategory,
                routeCategory: safety.category,
                storageAvailable: storageAvailable,
                versionCategory: versionCategory
              });
              if (input && input.failure === true) {
                showStableFallback("deferred", details);
              }
              return { action: "deferred", automaticNavigation: false };
            }

            if (alreadyRecovered) {
              if (prior) {
                prior.lastFailureAt = Date.now();
                prior.failureCount = Number(prior.failureCount || 1) + 1;
                writeDeploymentRecoveryRecord(prior);
              }
              record("deployment_recovery", {
                automaticReloadCount: snapshot.automaticReloadCount,
                chunkDpl: details.chunkDpl,
                chunkPath: details.chunkPath,
                currentVersion: safeCurrentVersion,
                documentVersion: documentVersion,
                episodeId: episodeId,
                navigationType: recoveryNavigationType(),
                recoveryAction: "stable_fallback",
                recoveryKey: recoveryKey,
                responseCategory: details.responseCategory,
                routeCategory: safety.category,
                storageAvailable: storageAvailable,
                latchPresent: true,
                latchSource: latch && latch.source,
                versionCategory: versionCategory
              });
              showStableFallback("automatic_recovery_exhausted", details);
              return { action: "failed", automaticNavigation: false };
            }

            var automaticNavigation = requestAutomaticRecoveryNavigation(
              "deployment_coordinator",
              details
            );
            if (!automaticNavigation) {
              return { action: "failed", automaticNavigation: false };
            }
            writeDeploymentRecoveryRecord({
              version: 1,
              episodeId: episodeId,
              documentVersion: documentVersion,
              currentVersion: safeCurrentVersion,
              chunkDpl: details.chunkDpl,
              chunkPath: details.chunkPath,
              recoveryKey: recoveryKey,
              routeCategory: safety.category,
              firstAttemptAt: Date.now(),
              lastFailureAt: Date.now(),
              failureCount: 1,
              automaticReloadCount: 1
            });
            record("deployment_recovery", {
              automaticReloadCount: 1,
              chunkDpl: details.chunkDpl,
              chunkPath: details.chunkPath,
              currentVersion: safeCurrentVersion,
              documentVersion: documentVersion,
              episodeId: episodeId,
              navigationType: recoveryNavigationType(),
              recoveryAction: "navigate_root",
              recoveryKey: recoveryKey,
              responseCategory: details.responseCategory,
              routeCategory: safety.category,
              storageAvailable: storageAvailable,
              latchPresent: true,
              latchSource: snapshot.automaticRecoveryLatchSource || "memory",
              versionCategory: versionCategory
            });
            return { action: "refreshing", automaticNavigation: true };
          })
          .finally(function () {
            deploymentDecisionPending = null;
          });
        return deploymentDecisionPending;
      }

      function checkDeploymentSkew(source, persisted) {
        if (!config.deploymentRecoveryEnabled) {
          return Promise.resolve(null);
        }
        if (!standalone || document.visibilityState === "hidden") {
          return Promise.resolve(null);
        }
        return fetchCurrentProductionVersion().then(function (currentVersion) {
          var mismatch =
            Boolean(currentVersion) &&
            String(currentVersion) !== String(config.expectedVersion);
          record("deployment_check", {
            currentVersion: currentVersion || "",
            documentVersion: config.expectedVersion,
            persisted: Boolean(persisted),
            recoveryAction: mismatch ? "mismatch" : "match",
            source: source,
            storageAvailable: deploymentStorageAvailable()
          });
          return { mismatch: mismatch };
        });
      }

      function removePreHydrationErrorListeners() {
        if (!errorListenersInstalled) return;
        errorListenersInstalled = false;
        window.removeEventListener("error", handleJavaScriptError, true);
        window.removeEventListener("unhandledrejection", handlePromiseRejection);
        if (longTaskObserver) {
          try { longTaskObserver.disconnect(); } catch (_) {}
          longTaskObserver = null;
        }
      }

      function safeErrorType(value) {
        var name = value && typeof value.name === "string" ? value.name : "";
        var known = {
          AbortError: true,
          Error: true,
          EvalError: true,
          NetworkError: true,
          RangeError: true,
          ReferenceError: true,
          SecurityError: true,
          SyntaxError: true,
          TypeError: true,
          URIError: true
        };
        if (known[name]) return name;
        return value == null ? "unknown" : typeof value;
      }

      function preHydrationChunkFailure(event, reason) {
        var target = event && event.target;
        var candidateUrl =
          target && typeof target.src === "string"
            ? target.src
            : target && typeof target.href === "string"
              ? target.href
              : "";
        var message = String(
          reason && (reason.message || reason.name) ||
          event && event.message ||
          ""
        );
        var isNextAsset =
          candidateUrl.indexOf("/_next/static/") !== -1 ||
          message.indexOf("/_next/static/") !== -1;
        var explicitChunkFailure =
          /ChunkLoadError|Loading (?:CSS )?chunk|dynamically imported module|module script failed/i.test(
            message
          );
        if (!isNextAsset && !explicitChunkFailure) return null;
        var prefetch =
          Boolean(target && /^(?:prefetch|modulepreload)$/i.test(target.rel || "")) ||
          Boolean(reason && (reason.prefetch === true || reason.isPrefetch === true));
        var chunkDpl = "unknown";
        try {
          chunkDpl = new URL(candidateUrl, location.origin).searchParams.get("dpl") || "unknown";
        } catch (_) {}
        return {
          chunkDpl: chunkDpl,
          chunkUrl: candidateUrl,
          failure: true,
          prefetch: prefetch,
          responseCategory: "network"
        };
      }

      function handleJavaScriptError(event) {
        record("javascript_error", {
          errorType: safeErrorType(event && event.error),
          source: "pre_hydration"
        });
        var failure = preHydrationChunkFailure(event, event && event.error);
        if (config.deploymentRecoveryEnabled && failure) {
          void coordinateDeploymentRecovery(failure);
        }
      }

      function handlePromiseRejection(event) {
        var reason = event && event.reason;
        record("promise_rejection", {
          promiseReasonType: safeErrorType(reason),
          source: "pre_hydration"
        });
        var failure = preHydrationChunkFailure(event, reason);
        if (config.deploymentRecoveryEnabled && failure) {
          void coordinateDeploymentRecovery(failure);
        }
      }

      function installPreHydrationDiagnostics() {
        errorListenersInstalled = true;
        window.addEventListener("error", handleJavaScriptError, true);
        window.addEventListener("unhandledrejection", handlePromiseRejection);
        if (typeof PerformanceObserver !== "function") {
          record("long_task_observer", { longTaskSupported: false });
          return;
        }
        try {
          longTaskObserver = new PerformanceObserver(function (list) {
            list.getEntries().slice(0, 10).forEach(function (entry) {
              record("long_task", {
                durationMs: entry.duration,
                source: "pre_hydration"
              });
            });
          });
          longTaskObserver.observe({ entryTypes: ["longtask"] });
          snapshot.longTaskSupported = true;
          record("long_task_observer", { longTaskSupported: true });
        } catch (_) {
          longTaskObserver = null;
          record("long_task_observer", { longTaskSupported: false });
        }
      }

      var runtime = {
        checkWorker: checkWorker,
        checkDeploymentSkew: checkDeploymentSkew,
        coordinateDeploymentRecovery: coordinateDeploymentRecovery,
        contractVersion: config.contractVersion,
        deploymentRecoveryEnabled: config.deploymentRecoveryEnabled,
        expectedWorkerVersion: config.expectedVersion,
        getDiagnostics: function () {
          return {
            events: events.slice(),
            previousBoot: prior
              ? {
                  events: prior.events.slice(),
                  snapshot: Object.assign({}, prior.snapshot),
                  version: prior.version
                }
              : null,
            snapshot: Object.assign({}, snapshot),
            version: config.diagnosticsVersion
          };
        },
        markHydrated: function () {
          if (snapshot.hydrated) return;
          snapshot.hydrated = true;
          record("react_hydrated", {
            hydrated: true,
            pathCategory: routeSafety().category
          });
          removePreHydrationErrorListeners();
        },
        isDeploymentRecoveryActive: function () {
          return Boolean(
            snapshot.deploymentRecoveryActive ||
            deploymentDecisionPending
          );
        },
        recordSessionExpirySuppressed: function () {
          snapshot.deploymentRecoveryActive = true;
          record("deployment_recovery", {
            currentVersion: snapshot.currentProductionVersion || "",
            documentVersion: config.expectedVersion,
            episodeId: snapshot.deploymentRecoveryEpisodeId || "",
            recoveryAction: "session_expired_suppressed",
            routeCategory: routeSafety().category,
            storageAvailable: deploymentStorageAvailable()
          });
        },
        record: record,
        refreshRouteState: refreshRouteState,
        registration: null,
        registrationPromise: null,
        requestActivation: requestActivation,
        snapshot: snapshot,
        showStableFallback: showStableFallback,
        workerUrl: config.workerUrl
      };
      window.__ybPwaStartup = runtime;

      snapshot.pathCategory = routeSafety().category;
      var currentControllerMetadata = initialControllerMetadata;
      snapshot.controllerContract = currentControllerMetadata.contract;
      snapshot.controllerVersion = currentControllerMetadata.version;
      installPreHydrationDiagnostics();
      record("inline_script_executed", {
        bootStartedEpochMs: bootStartedEpochMs,
        contractVersion: config.contractVersion,
        controllerContract: currentControllerMetadata.contract || "",
        controllerPresent: Boolean(initialController),
        controllerVersion: currentControllerMetadata.version || "",
        expectedVersion: config.expectedVersion,
        inlineExecuted: true,
        online: snapshot.online,
        pathCategory: snapshot.pathCategory,
        previousEventCount: prior ? prior.events.length : 0,
        source: workerRecoveryNavigation ? "worker_recovery_navigation" : "document",
        standalone: standalone,
        visibility: snapshot.visibility,
        deploymentRecoveryEnabled: config.deploymentRecoveryEnabled,
        workerEnabled: config.workerEnabled
      });

      if (navigator.serviceWorker) {
        navigator.serviceWorker.addEventListener("controllerchange", handleControllerChange);
        navigator.serviceWorker.addEventListener("message", handleWorkerMessage);
      }
      window.addEventListener("pageshow", function (event) {
        record("page_show", {
          persisted: Boolean(event && event.persisted),
          visibility: document.visibilityState || "unknown"
        });
        if (event && event.persisted) {
          void checkDeploymentSkew("pageshow_persisted", true);
          var restoredController =
            navigator.serviceWorker && navigator.serviceWorker.controller;
          var restoredMetadata = workerMetadata(restoredController);
          var controllerChangedWhileFrozen =
            snapshot.controllerPresent !== Boolean(restoredController) ||
            snapshot.controllerContract !== restoredMetadata.contract ||
            snapshot.controllerVersion !== restoredMetadata.version;
          if (controllerChangedWhileFrozen) {
            snapshot.controllerChangeCount += 1;
            snapshot.controllerPresent = Boolean(restoredController);
            snapshot.controllerContract = restoredMetadata.contract;
            snapshot.controllerVersion = restoredMetadata.version;
            record("controller_change", {
              controllerChangeCount: snapshot.controllerChangeCount,
              controllerContract: restoredMetadata.contract || "",
              controllerPresent: Boolean(restoredController),
              controllerVersion: restoredMetadata.version || "",
              source: "pageshow_persisted"
            });
            if (isExpectedWorker(restoredController)) {
              decideRecoveryReload(restoredController, "pageshow_persisted");
            }
          }
        }
        void checkWorker(event && event.persisted ? "pageshow_persisted" : "pageshow", Boolean(event && event.persisted));
      });
      window.addEventListener("online", function () {
        snapshot.online = true;
        record("network_change", { online: true });
        void checkWorker("online", true);
        if (
          snapshot.reloadDeferred &&
          recoveryReloadRequired &&
          !controllerDecisionMade &&
          isExpectedWorker(navigator.serviceWorker && navigator.serviceWorker.controller)
        ) {
          decideRecoveryReload(
            navigator.serviceWorker && navigator.serviceWorker.controller,
            "online"
          );
        }
      });
      window.addEventListener("offline", function () {
        snapshot.online = false;
        record("network_change", { online: false });
      });
      document.addEventListener("visibilitychange", function () {
        snapshot.visibility = document.visibilityState || "unknown";
        record("visibility_change", { visibility: snapshot.visibility });
        if (snapshot.visibility === "visible") {
          void checkWorker("visibility", false);
          void checkDeploymentSkew("visibility", false);
        }
      });

      void checkWorker("inline", true);
    })({"contractVersion":"legacy-recovery-v1","diagnosticsKey":"yb:pwa-startup:v1","diagnosticsVersion":1,"deploymentRecoveryEnabled":true,"automaticRecoveryLatchStorageKey":"yb:pwa-automatic-recovery:v1","deploymentManualQueryKey":"yb_pwa_manual_recovery","deploymentRecoveryQueryKey":"yb_pwa_chunk_recovery","deploymentRecoveryStorageKey":"yb:pwa-deployment-recovery:v1","deploymentRecoveryTtlMs":604800000,"expectedVersion":"dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","maxEvents":80,"recoveryNavigationQueryKey":"yb_pwa_recovery","routeRules":{"authCallbackPaths":["/api/auth/callback","/auth/callback","/auth/confirm","/auth/confirm-start","/auth/handoff","/auth/update-password","/business-auth/post-confirm","/oauth/callback","/set-password"],"authCallbackQueryKeys":["access_token","code","refresh_token","token_hash"],"businessFormPatternSources":["^/onboarding(?:/|$)","^/business/listings/new(?:/|$)","^/business/listings/[^/]+/edit(?:/|$)","^/business-auth/create-password(?:/|$)","^/business-auth/register(?:/|$)","^/business/onboarding(?:/|$)","^/business/profile(?:/|$)","^/business/settings(?:/|$)","^/business/staff/profile(?:/|$)"]},"stateEvent":"yb:pwa-startup-state","workerEnabled":true,"workerUrl":"/sw.js?c=legacy-recovery-v1\u0026v=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"});
  33:I[6429,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
35:I[54935,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
36:I[48179,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
37:I[75190,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"Analytics"]
38:I[34917,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"SpeedInsights"]
48:I[67756,["5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8039","static/chunks/app/error-80ca68a0029eb2c9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
49:I[86869,[],"IconMark"]
:HL["/brand/logo-mark-white.svg","image",{"fetchPriority":"high"}]
:HL["/brand/navbar-logo-dark.svg","image",{"fetchPriority":"high","media":"(min-width: 1024px)"}]
:HL["/brand/logo-mark-purple.svg","image",{"fetchPriority":"high","media":"(max-width: 1023.98px)"}]
2:["$","html",null,{"lang":"en","className":"theme-light yb-app-booting __variable_f5347a","data-theme":"light","data-scroll-behavior":"auto","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$25"}}],"$L26","$L27","$L28","$L29","$L2a","$L2b","$L2c","$L2d",["$L2e"],["$L2f"]]}],"$L30"]}]
26:["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n              try {\n                if (\"scrollRestoration\" in history) {\n                  history.scrollRestoration = \"manual\";\n                }\n              } catch (_) {}\n            "}}]
31:T462,
    (function () {
      var root = document.documentElement;
      var done = false;
      function record(type, details) {
        try {
          if (window.__ybPwaStartup && typeof window.__ybPwaStartup.record === "function") {
            window.__ybPwaStartup.record(type, details);
          }
        } catch (_) {}
      }
      function markBootReady(source) {
        if (done) return;
        done = true;
        record("boot_ready_signal", { source: source || "unknown" });
        root.classList.add("yb-app-ready");
        root.classList.remove("yb-app-booting");
        if (document.getElementById("yb-pwa-recovery-fallback")) {
          record("stable_fallback", {
            recoveryAction: "fallback_preserved",
            source: source || "unknown"
          });
        }
      }
      window.__ybMarkBootReady = markBootReady;
      record("splash_failsafe_scheduled", { durationMs: 3000 });
      window.__ybBootSplashTimer = window.setTimeout(function () {
        record("splash_failsafe_fired", { durationMs: 3000 });
        markBootReady("splash_failsafe");
      }, 3000);
    })();
  27:["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$31"}}]
28:["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1"}]
29:["$","meta",null,{"name":"theme-color","content":"#411991"}]
32:T102a,
              html.yb-standalone-mode.yb-app-booting,
              html.yb-standalone-mode.yb-app-booting body {
                background: #411991;
              }

              #yb-boot-splash {
                position: fixed;
                inset: 0;
                z-index: 2147483647;
                display: grid;
                place-items: center;
                min-height: 100vh;
                min-height: 100svh;
                padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
                background:
                  radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%),
                  #411991;
                opacity: 0;
                visibility: hidden;
                transition: opacity 320ms ease, visibility 320ms ease;
                pointer-events: none;
                contain: strict;
              }

              html.yb-standalone-mode.yb-app-booting #yb-boot-splash[data-state="visible"] {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
              }

              #yb-boot-splash[data-state="hidden"],
              html.yb-app-ready #yb-boot-splash,
              html.yb-browser-mode #yb-boot-splash {
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
              }

              .yb-boot-splash__inner {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 24px;
              }

              .yb-boot-splash__logo {
                display: block;
                width: clamp(92px, 26vw, 132px);
                height: auto;
              }

              #yb-pwa-recovery-fallback {
                position: fixed;
                inset: 0;
                z-index: 2147483647;
                display: grid;
                place-items: center;
                min-height: 100vh;
                min-height: 100svh;
                padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
                overflow: auto;
                background:
                  radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%),
                  #411991;
                color: #ffffff;
                visibility: visible;
                opacity: 1;
                pointer-events: auto;
              }

              .yb-pwa-recovery-fallback__inner {
                display: flex;
                width: min(100%, 460px);
                flex-direction: column;
                align-items: center;
                gap: 18px;
                padding: 28px;
                text-align: center;
              }

              .yb-pwa-recovery-fallback__logo {
                display: block;
                width: 88px;
                height: auto;
              }

              .yb-pwa-recovery-fallback__inner h1 {
                max-width: 420px;
                margin: 0;
                font-size: 22px;
                line-height: 1.3;
              }

              .yb-pwa-recovery-fallback__inner p {
                max-width: 420px;
                margin: 0;
                color: rgba(255, 255, 255, 0.86);
                font-size: 15px;
                line-height: 1.55;
              }

              .yb-pwa-recovery-fallback__reload {
                border: 0;
                border-radius: 12px;
                padding: 12px 20px;
                background: #ffffff;
                color: #411991;
                cursor: pointer;
                font-size: 15px;
                font-weight: 700;
              }

              .yb-pwa-recovery-fallback__home {
                color: #ffffff;
                font-size: 14px;
                text-decoration: underline;
                text-underline-offset: 3px;
              }

              @media (prefers-reduced-motion: reduce) {
                #yb-boot-splash {
                  transition: none;
                }
              }
            2a:["$","style",null,{"dangerouslySetInnerHTML":{"__html":"$32"}}]
2b:["$","link",null,{"rel":"preload","as":"image","href":"/brand/logo-mark-white.svg","fetchPriority":"high"}]
2c:["$","link",null,{"rel":"preload","as":"image","href":"/brand/navbar-logo-dark.svg","media":"(min-width: 1024px)","fetchPriority":"high"}]
2d:["$","link",null,{"rel":"preload","as":"image","href":"/brand/logo-mark-purple.svg","media":"(max-width: 1023.98px)","fetchPriority":"high"}]
2e:["$","link","preconnect-https://nbzqnjanqkzuwyxnkjtr.supabase.co",{"rel":"preconnect","href":"https://nbzqnjanqkzuwyxnkjtr.supabase.co"}]
2f:["$","link","dns-https://nbzqnjanqkzuwyxnkjtr.supabase.co",{"rel":"dns-prefetch","href":"https://nbzqnjanqkzuwyxnkjtr.supabase.co"}]
30:["$","body",null,{"className":"min-h-screen w-full overflow-x-hidden bg-[#f6f7fb] antialiased text-[var(--yb-text)]","children":[["$","$L33",null,{}],["$","$1c",null,{"fallback":null,"children":"$L34"}],["$","$L35",null,{"initialLocation":{"source":"default","city":"Long Beach","region":"CA","country":"US","zip":"$undefined","lat":33.7701,"lng":-118.1937,"placeId":"$undefined","label":"Long Beach, CA","kind":"$undefined","updatedAt":1787782148064},"initialAuth":null,"initialAuthResolved":true,"children":[[[],[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$5:props:children:2:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$5:props:children:2:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$5:props:children:2:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$5:props:children:2:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],"$30:props:children:2:props:children:0:0"]],"$undefined","$undefined"]}],null,["$","$L36",null,{"currentVersion":"dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"}],["$","$L37",null,{}],["$","$L38",null,{}]]}]
34:null
39:T10160,
    (function (config) {
      "use strict";

      var root = document.documentElement;
      var now = function () {
        return window.performance && typeof window.performance.now === "function"
          ? window.performance.now()
          : Date.now();
      };
      var bootStartedAt = now();
      var bootStartedEpochMs = Date.now();
      var standalone = false;
      try {
        standalone =
          (window.matchMedia && window.matchMedia("(display-mode: standalone)").matches) ||
          window.navigator.standalone === true;
      } catch (_) {}

      window.__ybStandaloneMode = standalone;
      window.__ybBootStartedAt = bootStartedAt;
      root.classList.add(standalone ? "yb-standalone-mode" : "yb-browser-mode");
      if (!standalone) root.classList.remove("yb-app-booting");

      var allowedEvents = {
        activation_deferred: true,
        activation_request_sent: true,
        boot_ready_signal: true,
        cache_metadata: true,
        deployment_check: true,
        deployment_recovery: true,
        controller_change: true,
        inline_script_executed: true,
        javascript_error: true,
        long_task: true,
        long_task_observer: true,
        network_change: true,
        page_show: true,
        promise_rejection: true,
        react_hydrated: true,
        registration_error: true,
        registration_ready: true,
        reload_deferred: true,
        reload_loop_prevented: true,
        reload_requested: true,
        splash_failsafe_fired: true,
        splash_failsafe_scheduled: true,
        stable_fallback: true,
        visibility_change: true,
        worker_check: true,
        worker_state: true,
        worker_status: true,
        worker_unavailable: true
      };
      var allowedDetailKeys = {
        activeContract: true,
        activeState: true,
        activeVersion: true,
        activationRequestSent: true,
        autoReload: true,
        bootStartedEpochMs: true,
        cacheNames: true,
        contractVersion: true,
        controllerChangeCount: true,
        controllerContract: true,
        controllerPresent: true,
        controllerVersion: true,
        count: true,
        durationMs: true,
        automaticReloadCount: true,
        automaticOwner: true,
        automaticOwnerSuppressed: true,
        chunkDpl: true,
        chunkPath: true,
        currentVersion: true,
        documentVersion: true,
        episodeId: true,
        errorType: true,
        expectedVersion: true,
        hydrated: true,
        inlineExecuted: true,
        longTaskSupported: true,
        navigationType: true,
        online: true,
        pathCategory: true,
        persisted: true,
        previousEventCount: true,
        prefetch: true,
        promiseReasonType: true,
        reloadDeferred: true,
        reloadPrevented: true,
        recoveryAction: true,
        recoveryActive: true,
        recoveryKey: true,
        latchPresent: true,
        latchSource: true,
        manualReloadCount: true,
        responseCategory: true,
        scriptPath: true,
        source: true,
        standalone: true,
        storageAvailable: true,
        versionCategory: true,
        state: true,
        trigger: true,
        visibility: true,
        waitingContract: true,
        waitingState: true,
        waitingVersion: true,
        workerEnabled: true
      };
      var events = [];
      var snapshot = {
        activationRequestSent: false,
        activeContract: null,
        activeState: null,
        activeVersion: null,
        automaticReloadCount: 0,
        automaticRecoveryLatchPresent: false,
        automaticRecoveryLatchSource: null,
        bootStartedEpochMs: bootStartedEpochMs,
        contractVersion: config.contractVersion,
        controllerChangeCount: 0,
        controllerContract: null,
        controllerPresent: Boolean(navigator.serviceWorker && navigator.serviceWorker.controller),
        controllerVersion: null,
        currentProductionVersion: null,
        deploymentRecoveryActive: false,
        deploymentRecoveryEpisodeId: null,
        expectedVersion: config.expectedVersion,
        hydrated: false,
        inlineExecuted: true,
        longTaskSupported: false,
        online: navigator.onLine !== false,
        pathCategory: "general",
        manualReloadCount: 0,
        reloadDeferred: false,
        reloadPrevented: false,
        standalone: standalone,
        visibility: document.visibilityState || "unknown",
        waitingContract: null,
        waitingState: null,
        waitingVersion: null,
        workerEnabled: config.workerEnabled
      };
      var registration = null;
      var registrationPromise = null;
      var checkPromise = null;
      var lastCheckAt = 0;
      var observedRegistration = null;
      var observedWorkers = [];
      var statusWorkers = [];
      var activationRequestKey = null;
      var activationRequestedAt = 0;
      var controllerDecisionMade = false;
      var errorListenersInstalled = false;
      var longTaskObserver = null;
      var workerRecoveryNavigation = false;
      var deploymentRecoveryFromQuery = null;
      var deploymentManualRecovery = false;
      var deploymentDecisionPending = null;
      var deploymentCheckPending = null;
      var stableFallbackActive = false;
      var automaticRecoveryLatchMemory = null;
      var automaticRecoveryLatchSource = null;
      var automaticRecoveryFromQuery = false;
      var automaticRecoveryFromHistory = false;
      function sanitizeRecoveryIdentifier(value, fallback) {
        var normalized = String(value == null ? "" : value).trim().slice(0, 160);
        return normalized && /^[a-zA-Z0-9._:-]+$/.test(normalized)
          ? normalized
          : (fallback === undefined ? "unknown" : fallback);
      }
      function hashRecoveryIdentity(value) {
        var hash = 2166136261;
        for (var index = 0; index < value.length; index += 1) {
          hash ^= value.charCodeAt(index);
          hash = Math.imul(hash, 16777619);
        }
        return (hash >>> 0).toString(36);
      }
      try {
        var recoveryParameters = new URLSearchParams(window.location.search);
        if (
          window.location.pathname === "/" &&
          recoveryParameters.get(config.recoveryNavigationQueryKey) ===
            config.contractVersion
        ) {
          workerRecoveryNavigation = true;
          automaticRecoveryFromQuery = true;
          deploymentRecoveryFromQuery = "legacy_worker";
          recoveryParameters.delete(config.recoveryNavigationQueryKey);
          var recoveredSearch = recoveryParameters.toString();
          window.history.replaceState(
            window.history.state,
            "",
            window.location.pathname +
              (recoveredSearch ? "?" + recoveredSearch : "") +
              window.location.hash
          );
        }
        var deploymentQueryRecovery = sanitizeRecoveryIdentifier(
          recoveryParameters.get(config.deploymentRecoveryQueryKey),
          ""
        ) || null;
        if (deploymentQueryRecovery) {
          deploymentRecoveryFromQuery = deploymentQueryRecovery;
          automaticRecoveryFromQuery = true;
        }
        deploymentManualRecovery =
          recoveryParameters.get(config.deploymentManualQueryKey) === "1";
        var deploymentHistoryState =
          window.history &&
          window.history.state &&
          window.history.state.__ybPwaDeploymentRecovery;
        if (
          !automaticRecoveryFromQuery &&
          !deploymentManualRecovery &&
          deploymentHistoryState &&
          typeof deploymentHistoryState.at === "number" &&
          Date.now() >= deploymentHistoryState.at &&
          Date.now() - deploymentHistoryState.at <= config.deploymentRecoveryTtlMs
        ) {
          automaticRecoveryFromHistory =
            deploymentHistoryState.automaticAttempted === true ||
            Boolean(deploymentHistoryState.episodeId);
          deploymentRecoveryFromQuery =
            sanitizeRecoveryIdentifier(deploymentHistoryState.episodeId, "") ||
            (automaticRecoveryFromHistory ? "attempted" : null);
          deploymentManualRecovery = deploymentHistoryState.manual === true;
        }
        if (
          automaticRecoveryFromQuery ||
          automaticRecoveryFromHistory ||
          deploymentManualRecovery
        ) {
          recoveryParameters.delete(config.deploymentManualQueryKey);
          var cleanedRecoverySearch = recoveryParameters.toString();
          var nextRecoveryHistoryState = Object.assign({}, window.history.state || {});
          nextRecoveryHistoryState.__ybPwaDeploymentRecovery = {
            at: Date.now(),
            automaticAttempted:
              automaticRecoveryFromQuery || automaticRecoveryFromHistory,
            episodeId: deploymentRecoveryFromQuery || "manual",
            manual: deploymentManualRecovery
          };
          window.history.replaceState(
            nextRecoveryHistoryState,
            "",
            window.location.pathname +
              (cleanedRecoverySearch ? "?" + cleanedRecoverySearch : "") +
              window.location.hash
          );
        }
      } catch (_) {}
      if (
        automaticRecoveryFromQuery ||
        automaticRecoveryFromHistory ||
        deploymentManualRecovery
      ) {
        snapshot.deploymentRecoveryActive = true;
        snapshot.deploymentRecoveryEpisodeId =
          deploymentRecoveryFromQuery || "manual";
        snapshot.automaticReloadCount =
          automaticRecoveryFromQuery || automaticRecoveryFromHistory ? 1 : 0;
      }
      try { sessionStorage.removeItem("yb_chunk_recovered"); } catch (_) {}
      var initialController = navigator.serviceWorker && navigator.serviceWorker.controller;
      var initialControllerMetadata = workerMetadata(initialController);
      var recoveryReloadRequired =
        Boolean(initialController) &&
        !isExpectedWorker(initialController) &&
        !workerRecoveryNavigation;

      function safeString(value) {
        var stringValue = String(value == null ? "" : value);
        if (!/^[a-zA-Z0-9._:/ -]{0,160}$/.test(stringValue)) return null;
        return stringValue;
      }

      function safeDetails(details) {
        var result = {};
        if (!details || typeof details !== "object") return result;
        Object.keys(details).forEach(function (key) {
          if (!allowedDetailKeys[key]) return;
          var value = details[key];
          if (key === "cacheNames") {
            if (!Array.isArray(value)) return;
            result.cacheNames = value
              .filter(function (name) {
                return (
                  typeof name === "string" &&
                  name.indexOf("yb-pwa-") === 0 &&
                  /^[a-zA-Z0-9._-]{1,120}$/.test(name)
                );
              })
              .slice(0, 20);
            return;
          }
          if (typeof value === "boolean") {
            result[key] = value;
            return;
          }
          if (typeof value === "number" && isFinite(value)) {
            result[key] =
              key === "bootStartedEpochMs"
                ? Math.max(0, Math.min(Number.MAX_SAFE_INTEGER, Math.round(value)))
                : Math.max(-1, Math.min(86400000, Math.round(value)));
            return;
          }
          if (typeof value === "string") {
            var sanitized = safeString(value);
            if (sanitized !== null) result[key] = sanitized;
          }
        });
        return result;
      }

      function readPreviousBoot() {
        try {
          var previous = JSON.parse(sessionStorage.getItem(config.diagnosticsKey) || "null");
          if (!previous || previous.version !== config.diagnosticsVersion) return null;
          var previousEvents = Array.isArray(previous.events)
            ? previous.events.slice(-20).map(function (entry) {
                return {
                  data: safeDetails(entry && entry.data),
                  t:
                    entry && typeof entry.t === "number" && isFinite(entry.t)
                      ? Math.max(0, Math.min(86400000, Math.round(entry.t)))
                      : 0,
                  type:
                    entry && allowedEvents[entry.type]
                      ? entry.type
                      : "worker_state"
                };
              })
            : [];
          return {
            events: previousEvents,
            snapshot: safeDetails(previous.snapshot),
            version: config.diagnosticsVersion
          };
        } catch (_) {
          return null;
        }
      }

      var prior = readPreviousBoot();

      function persist() {
        try {
          sessionStorage.setItem(
            config.diagnosticsKey,
            JSON.stringify({
              events: events.slice(-config.maxEvents),
              previousBoot: prior,
              snapshot: safeDetails(snapshot),
              version: config.diagnosticsVersion
            })
          );
        } catch (_) {}
      }

      function emitState() {
        try {
          window.dispatchEvent(new CustomEvent(config.stateEvent));
        } catch (_) {}
      }

      function record(type, details) {
        var safeType = allowedEvents[type] ? type : "worker_state";
        events.push({
          data: safeDetails(details),
          t: Math.max(0, Math.round(now() - bootStartedAt)),
          type: safeType
        });
        if (events.length > config.maxEvents) {
          events.splice(0, events.length - config.maxEvents);
        }
        persist();
        emitState();
      }

      function queryHasAny(keys) {
        if (!window.location.search) return false;
        try {
          var params = new URLSearchParams(window.location.search);
          return keys.some(function (key) { return params.has(key); });
        } catch (_) {
          return true;
        }
      }

      function fragmentHasAny(keys) {
        if (!window.location.hash) return false;
        try {
          var params = new URLSearchParams(
            String(window.location.hash).replace(/^#/, "")
          );
          return keys.some(function (key) { return params.has(key); });
        } catch (_) {
          return true;
        }
      }

      function pathCategory() {
        var path = String(window.location.pathname || "/").replace(/\/+$/, "") || "/";
        var rules = config.routeRules;
        if (
          rules.authCallbackPaths.some(function (candidate) {
            return path === candidate || path.indexOf(candidate + "/") === 0;
          }) ||
          (
            path === "/" &&
            (
              queryHasAny(rules.authCallbackQueryKeys) ||
              fragmentHasAny(rules.authCallbackQueryKeys)
            )
          )
        ) return "auth_callback";
        if (path === "/business/pos" || path.indexOf("/business/pos/") === 0) return "pos";
        if (path === "/checkout" || path.indexOf("/checkout/") === 0 || path === "/cart") {
          return "checkout";
        }
        if (
          path === "/business/dashboard" &&
          queryHasAny(["billing", "checkout", "stripe"])
        ) return "payment_callback";
        if (
          path.indexOf("/orders/") === 0 ||
          path === "/business/orders" ||
          path === "/account/orders" ||
          path === "/account/purchase-history"
        ) return "receipt";
        if (
          rules.businessFormPatternSources.some(function (source) {
            return new RegExp(source).test(path);
          })
        ) return "business_form";
        if (
          path === "/" &&
          !window.location.search &&
          !window.location.hash
        ) return "startup";
        if (path === "/") {
          return window.location.search ? "root_query" : "root_fragment";
        }
        return "general";
      }

      function routeSafety() {
        var category = pathCategory();
        var unsafe = {
          auth_callback: true,
          business_form: true,
          checkout: true,
          payment_callback: true,
          pos: true,
          receipt: true
        };
        return {
          autoReload: category === "startup",
          category: category,
          safe: !unsafe[category]
        };
      }

      function refreshRouteState(trigger) {
        var safety = routeSafety();
        snapshot.pathCategory = safety.category;
        record("worker_state", {
          autoReload: safety.autoReload,
          pathCategory: safety.category,
          trigger: trigger || "route_change"
        });
        return safety;
      }

      function workerMetadata(worker) {
        if (!worker || !worker.scriptURL) {
          return {
            contract: null,
            present: Boolean(worker),
            scriptPath: null,
            state: worker && worker.state ? String(worker.state) : null,
            version: null
          };
        }
        try {
          var url = new URL(worker.scriptURL, window.location.origin);
          return {
            contract: url.searchParams.get("c"),
            present: true,
            scriptPath: url.pathname,
            state: worker.state ? String(worker.state) : null,
            version: url.searchParams.get("v")
          };
        } catch (_) {
          return {
            contract: null,
            present: true,
            scriptPath: null,
            state: worker.state ? String(worker.state) : null,
            version: null
          };
        }
      }

      function isExpectedWorker(worker) {
        var metadata = workerMetadata(worker);
        return (
          metadata.present &&
          metadata.scriptPath === "/sw.js" &&
          metadata.contract === config.contractVersion &&
          metadata.version === config.expectedVersion
        );
      }

      function recordWorkerStatus(worker, source) {
        if (!worker || typeof MessageChannel !== "function") return;
        if (statusWorkers.indexOf(worker) !== -1) return;
        statusWorkers.push(worker);
        if (statusWorkers.length > 20) statusWorkers.shift();
        var channel = new MessageChannel();
        var settled = false;
        var timer = window.setTimeout(function () {
          if (settled) return;
          settled = true;
          try { channel.port1.close(); } catch (_) {}
        }, 750);
        channel.port1.onmessage = function (event) {
          if (settled) return;
          settled = true;
          window.clearTimeout(timer);
          var data = event && event.data;
          record("worker_status", {
            activeContract: data && data.contract,
            activeVersion: data && data.version,
            source: source,
            state: data && data.activationMode
          });
          try { channel.port1.close(); } catch (_) {}
        };
        try {
          worker.postMessage({ type: "GET_STATUS" }, [channel.port2]);
        } catch (_) {
          window.clearTimeout(timer);
          try { channel.port1.close(); } catch (_) {}
        }
      }

      function collectCacheMetadata() {
        if (!("caches" in window) || !window.caches || typeof window.caches.keys !== "function") {
          return;
        }
        Promise.resolve(window.caches.keys()).then(function (names) {
          var cacheNames = Array.isArray(names)
            ? names.filter(function (name) {
                return typeof name === "string" && name.indexOf("yb-pwa-") === 0;
              })
            : [];
          record("cache_metadata", { cacheNames: cacheNames });
        }).catch(function () {});
      }

      function updateWorkerSnapshot(nextRegistration, trigger) {
        var active = workerMetadata(nextRegistration && nextRegistration.active);
        var waiting = workerMetadata(nextRegistration && nextRegistration.waiting);
        snapshot.activeContract = active.contract;
        snapshot.activeState = active.state;
        snapshot.activeVersion = active.version;
        snapshot.waitingContract = waiting.contract;
        snapshot.waitingState = waiting.state;
        snapshot.waitingVersion = waiting.version;
        snapshot.pathCategory = routeSafety().category;
        record("worker_state", {
          activeContract: active.contract || "",
          activeState: active.state || "",
          activeVersion: active.version || "",
          pathCategory: snapshot.pathCategory,
          trigger: trigger,
          waitingContract: waiting.contract || "",
          waitingState: waiting.state || "",
          waitingVersion: waiting.version || ""
        });
        recordWorkerStatus(nextRegistration && nextRegistration.active, "active");
        recordWorkerStatus(nextRegistration && nextRegistration.waiting, "waiting");
      }

      function requestActivation(candidate, options) {
        options = options || {};
        if (!candidate || !isExpectedWorker(candidate)) {
          record("activation_deferred", {
            pathCategory: routeSafety().category,
            source: "unverified_worker",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        var safety = routeSafety();
        if (navigator.onLine === false) {
          record("activation_deferred", {
            online: false,
            pathCategory: safety.category,
            source: "offline",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        if (!options.force && !safety.safe) {
          snapshot.reloadDeferred = true;
          record("activation_deferred", {
            pathCategory: safety.category,
            source: "unsafe_route",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        var metadata = workerMetadata(candidate);
        var requestKey = String(metadata.contract || "") + ":" + String(metadata.version || "");
        if (
          activationRequestKey === requestKey &&
          Date.now() - activationRequestedAt < 10000
        ) return true;
        try {
          candidate.postMessage({ type: "SKIP_WAITING", contract: config.contractVersion });
          activationRequestKey = requestKey;
          activationRequestedAt = Date.now();
          snapshot.activationRequestSent = true;
          record("activation_request_sent", {
            activationRequestSent: true,
            pathCategory: safety.category,
            trigger: options.trigger || "unknown",
            waitingContract: metadata.contract || "",
            waitingVersion: metadata.version || ""
          });
          return true;
        } catch (_) {
          return false;
        }
      }

      function observeWorker(worker, nextRegistration) {
        if (!worker || observedWorkers.indexOf(worker) !== -1) return;
        observedWorkers.push(worker);
        if (observedWorkers.length > 20) observedWorkers.shift();
        var handleStateChange = function () {
          updateWorkerSnapshot(nextRegistration, "statechange");
          if (worker.state === "installed") {
            if (isExpectedWorker(worker)) {
              requestActivation(worker, { trigger: "installed" });
            } else if (nextRegistration && typeof nextRegistration.update === "function") {
              Promise.resolve(nextRegistration.update()).catch(function () {});
            }
          }
        };
        worker.addEventListener("statechange", handleStateChange);
      }

      function attachRegistration(nextRegistration, trigger) {
        registration = nextRegistration;
        runtime.registration = nextRegistration;
        updateWorkerSnapshot(nextRegistration, trigger);
        collectCacheMetadata();

        if (nextRegistration.waiting) {
          if (isExpectedWorker(nextRegistration.waiting)) {
            requestActivation(nextRegistration.waiting, { trigger: trigger });
          } else if (navigator.onLine !== false && typeof nextRegistration.update === "function") {
            Promise.resolve(nextRegistration.update()).catch(function () {});
          }
        }
        if (nextRegistration.installing) observeWorker(nextRegistration.installing, nextRegistration);

        if (observedRegistration !== nextRegistration) {
          observedRegistration = nextRegistration;
          nextRegistration.addEventListener("updatefound", function () {
            if (nextRegistration.installing) {
              observeWorker(nextRegistration.installing, nextRegistration);
              updateWorkerSnapshot(nextRegistration, "updatefound");
            }
          });
        }
      }

      function checkWorker(trigger, force) {
        if (!config.workerEnabled || !navigator.serviceWorker) {
          record("worker_unavailable", {
            trigger: trigger,
            workerEnabled: config.workerEnabled
          });
          return Promise.resolve(null);
        }
        var checkedAt = Date.now();
        if (!force && checkedAt - lastCheckAt < 2000) return checkPromise || registrationPromise;
        if (checkPromise) return checkPromise;
        lastCheckAt = checkedAt;
        record("worker_check", {
          online: navigator.onLine !== false,
          pathCategory: routeSafety().category,
          trigger: trigger
        });

        if (!registrationPromise) {
          registrationPromise = Promise.resolve(
            navigator.serviceWorker.register(config.workerUrl, {
              scope: "/",
              updateViaCache: "none"
            })
          );
          runtime.registrationPromise = registrationPromise;
        }

        checkPromise = registrationPromise
          .then(function (nextRegistration) {
            attachRegistration(nextRegistration, trigger);
            record("registration_ready", {
              activeVersion: workerMetadata(nextRegistration.active).version || "",
              trigger: trigger,
              waitingVersion: workerMetadata(nextRegistration.waiting).version || ""
            });
            if (
              navigator.onLine !== false &&
              typeof nextRegistration.update === "function" &&
              (force || nextRegistration.waiting && !isExpectedWorker(nextRegistration.waiting))
            ) {
              return Promise.resolve(nextRegistration.update())
                .catch(function () {})
                .then(function () {
                  attachRegistration(nextRegistration, trigger + "_updated");
                  return nextRegistration;
                });
            }
            return nextRegistration;
          })
          .catch(function () {
            registrationPromise = null;
            runtime.registrationPromise = null;
            record("registration_error", {
              online: navigator.onLine !== false,
              trigger: trigger
            });
            return null;
          })
          .then(function (result) {
            checkPromise = null;
            return result;
          });
        return checkPromise;
      }

      function validAutomaticRecoveryLatch(value) {
        return Boolean(
          value &&
          value.version === 1 &&
          typeof value.attemptedAt === "number" &&
          Date.now() >= value.attemptedAt &&
          Date.now() - value.attemptedAt <= config.deploymentRecoveryTtlMs
        );
      }

      function readAutomaticRecoveryLatchFrom(storage, source) {
        try {
          if (!storage) return null;
          var raw = storage.getItem(config.automaticRecoveryLatchStorageKey);
          if (!raw) return null;
          var parsed = JSON.parse(raw);
          if (!validAutomaticRecoveryLatch(parsed)) {
            storage.removeItem(config.automaticRecoveryLatchStorageKey);
            return null;
          }
          return { record: parsed, source: source };
        } catch (_) {
          return null;
        }
      }

      function writeAutomaticRecoveryLatchTo(storage, value) {
        try {
          if (!storage) return false;
          storage.setItem(
            config.automaticRecoveryLatchStorageKey,
            JSON.stringify(value)
          );
          return storage.getItem(config.automaticRecoveryLatchStorageKey) !== null;
        } catch (_) {
          return false;
        }
      }

      function safeWindowStorage(name) {
        try {
          return window[name] || null;
        } catch (_) {
          return null;
        }
      }

      function writeAutomaticRecoveryLatchCopies(value) {
        return {
          local: writeAutomaticRecoveryLatchTo(
            safeWindowStorage("localStorage"),
            value
          ),
          session: writeAutomaticRecoveryLatchTo(
            safeWindowStorage("sessionStorage"),
            value
          )
        };
      }

      function setAutomaticRecoverySnapshot(source) {
        snapshot.automaticRecoveryLatchPresent = true;
        snapshot.automaticRecoveryLatchSource = source;
        snapshot.automaticReloadCount = 1;
      }

      function readAutomaticRecoveryLatch() {
        if (validAutomaticRecoveryLatch(automaticRecoveryLatchMemory)) {
          setAutomaticRecoverySnapshot(automaticRecoveryLatchSource || "memory");
          return {
            record: automaticRecoveryLatchMemory,
            source: automaticRecoveryLatchSource || "memory"
          };
        }
        var local = readAutomaticRecoveryLatchFrom(
          safeWindowStorage("localStorage"),
          "storage"
        );
        var session = local || readAutomaticRecoveryLatchFrom(
          safeWindowStorage("sessionStorage"),
          "storage"
        );
        var stored = local || session;
        if (!stored) return null;
        automaticRecoveryLatchMemory = stored.record;
        automaticRecoveryLatchSource = stored.source;
        setAutomaticRecoverySnapshot(stored.source);
        return stored;
      }

      function transferAutomaticRecoveryHandoff() {
        if (!automaticRecoveryFromQuery && !automaticRecoveryFromHistory) {
          return readAutomaticRecoveryLatch();
        }
        var source = automaticRecoveryFromQuery ? "query" : "history";
        var existing =
          readAutomaticRecoveryLatchFrom(
            safeWindowStorage("localStorage"),
            "storage"
          ) ||
          readAutomaticRecoveryLatchFrom(
            safeWindowStorage("sessionStorage"),
            "storage"
          );
        var value = existing
          ? existing.record
          : {
              version: 1,
              attemptedAt: Date.now(),
              owner: sanitizeRecoveryIdentifier(
                deploymentRecoveryFromQuery,
                "handoff"
              )
            };
        automaticRecoveryLatchMemory = value;
        automaticRecoveryLatchSource = source;
        setAutomaticRecoverySnapshot(source);
        var writes = writeAutomaticRecoveryLatchCopies(value);

        // A local-storage transfer survives a new WebKit session namespace.
        // Until that succeeds, retain the fixed query handoff in the URL.
        if (automaticRecoveryFromQuery && writes.local) {
          try {
            var parameters = new URLSearchParams(window.location.search);
            parameters.delete(config.deploymentRecoveryQueryKey);
            var cleaned = parameters.toString();
            window.history.replaceState(
              window.history.state,
              "",
              window.location.pathname +
                (cleaned ? "?" + cleaned : "") +
                window.location.hash
            );
          } catch (_) {}
        }
        record("deployment_recovery", {
          automaticReloadCount: 1,
          automaticOwner: value.owner,
          latchPresent: true,
          latchSource: source,
          recoveryAction: writes.local || writes.session
            ? "query_handoff_transferred"
            : "storage_unavailable",
          storageAvailable: writes.local || writes.session
        });
        return { record: value, source: source };
      }

      function claimAutomaticRecoveryNavigation(owner) {
        var existing = readAutomaticRecoveryLatch();
        if (existing) {
          return {
            allowed: false,
            record: existing.record,
            source: existing.source
          };
        }
        var value = {
          version: 1,
          attemptedAt: Date.now(),
          owner: sanitizeRecoveryIdentifier(owner, "unknown")
        };
        automaticRecoveryLatchMemory = value;
        automaticRecoveryLatchSource = "memory";
        setAutomaticRecoverySnapshot("memory");
        var writes = writeAutomaticRecoveryLatchCopies(value);
        if (writes.local || writes.session) {
          automaticRecoveryLatchSource = "storage";
          snapshot.automaticRecoveryLatchSource = "storage";
        }
        return {
          allowed: true,
          record: value,
          source: writes.local || writes.session ? "storage" : "memory",
          storageAvailable: writes.local || writes.session
        };
      }

      function automaticRecoveryTarget() {
        var target = new URL("/", location.origin);
        target.searchParams.set(config.deploymentRecoveryQueryKey, "attempted");
        return target;
      }

      function requestAutomaticRecoveryNavigation(owner, details) {
        if (!config.deploymentRecoveryEnabled) return false;
        record("deployment_recovery", {
          automaticOwner: owner,
          latchPresent: Boolean(readAutomaticRecoveryLatch()),
          recoveryAction: "automatic_owner_requested",
          routeCategory: routeSafety().category
        });
        var claim = claimAutomaticRecoveryNavigation(owner);
        if (!claim.allowed) {
          snapshot.reloadPrevented = true;
          record("reload_loop_prevented", {
            automaticOwnerSuppressed: owner,
            latchPresent: true,
            latchSource: claim.source,
            pathCategory: routeSafety().category,
            reloadPrevented: true
          });
          showStableFallback("automatic_owner_suppressed", details || {});
          return false;
        }
        if (claim.storageAvailable === false) {
          record("deployment_recovery", {
            automaticOwner: owner,
            latchPresent: true,
            latchSource: claim.source,
            recoveryAction: "storage_unavailable"
          });
        }
        snapshot.deploymentRecoveryActive = true;
        record("reload_requested", {
          automaticOwner: owner,
          autoReload: true,
          latchPresent: true,
          latchSource: claim.source,
          pathCategory: routeSafety().category,
          storageAvailable: claim.storageAvailable !== false
        });
        var target = automaticRecoveryTarget();
        window.setTimeout(function () {
          window.location.replace(target.href);
        }, 0);
        return true;
      }

      transferAutomaticRecoveryHandoff();

      function decideRecoveryReload(controller, source) {
        if (controllerDecisionMade) return;
        if (!isExpectedWorker(controller)) return;
        if (!recoveryReloadRequired) return;

        var safety = routeSafety();
        if (navigator.onLine === false) {
          snapshot.reloadDeferred = true;
          record("reload_deferred", {
            autoReload: safety.autoReload,
            online: false,
            pathCategory: safety.category,
            source: source === "online" ? "offline_reconnect" : "offline"
          });
          return;
        }
        controllerDecisionMade = true;
        snapshot.reloadDeferred = false;
        if (!safety.autoReload) {
          snapshot.reloadDeferred = true;
          record("reload_deferred", {
            autoReload: false,
            pathCategory: safety.category,
            source: safety.safe ? "manual_route" : "unsafe_route"
          });
          return;
        }
        requestAutomaticRecoveryNavigation(
          source === "pageshow_persisted"
            ? "controller_pageshow"
            : "controller_change",
          { responseCategory: "worker_recovery" }
        );
      }

      function handleControllerChange() {
        snapshot.controllerChangeCount += 1;
        var controller = navigator.serviceWorker && navigator.serviceWorker.controller;
        var metadata = workerMetadata(controller);
        snapshot.controllerPresent = Boolean(controller);
        snapshot.controllerContract = metadata.contract;
        snapshot.controllerVersion = metadata.version;
        record("controller_change", {
          controllerChangeCount: snapshot.controllerChangeCount,
          controllerContract: metadata.contract || "",
          controllerPresent: Boolean(controller),
          controllerVersion: metadata.version || ""
        });
        if (registration) updateWorkerSnapshot(registration, "controllerchange");

        if (!isExpectedWorker(controller)) {
          void checkWorker("controller_change_unverified", true);
          return;
        }
        decideRecoveryReload(controller, "controller_change");
      }

      function handleWorkerMessage(event) {
        var data = event && event.data;
        if (
          data &&
          data.type === "YB_AUTOMATIC_RECOVERY_REQUEST" &&
          data.contract === config.contractVersion
        ) {
          var safety = routeSafety();
          if (!safety.autoReload || navigator.onLine === false) {
            record("reload_deferred", {
              automaticOwner: "legacy_worker",
              autoReload: safety.autoReload,
              online: navigator.onLine !== false,
              pathCategory: safety.category
            });
            return;
          }
          requestAutomaticRecoveryNavigation("legacy_worker", {
            responseCategory: "worker_recovery"
          });
          return;
        }
        if (
          !data ||
          data.type !== "YB_WORKER_ACTIVATION" ||
          data.contract !== config.contractVersion
        ) return;
        var state = String(data.state || "");
        if (state.indexOf("deferred_") === 0) {
          activationRequestKey = null;
          activationRequestedAt = 0;
          snapshot.activationRequestSent = false;
          snapshot.reloadDeferred = true;
          record("activation_deferred", {
            activationRequestSent: false,
            pathCategory: routeSafety().category,
            source: "other_client",
            state: state
          });
          return;
        }
        record("worker_state", {
          activationRequestSent: snapshot.activationRequestSent,
          source: "activation_response",
          state: state
        });
      }

      function readDeploymentRecoveryRecord() {
        try {
          var raw = sessionStorage.getItem(config.deploymentRecoveryStorageKey);
          if (!raw) return null;
          var parsed = JSON.parse(raw);
          if (
            !parsed ||
            parsed.version !== 1 ||
            typeof parsed.firstAttemptAt !== "number" ||
            Date.now() < parsed.firstAttemptAt ||
            Date.now() - parsed.firstAttemptAt > config.deploymentRecoveryTtlMs
          ) {
            sessionStorage.removeItem(config.deploymentRecoveryStorageKey);
            return null;
          }
          return parsed;
        } catch (_) {
          return null;
        }
      }

      function writeDeploymentRecoveryRecord(next) {
        try {
          sessionStorage.setItem(
            config.deploymentRecoveryStorageKey,
            JSON.stringify(next)
          );
          return sessionStorage.getItem(config.deploymentRecoveryStorageKey) !== null;
        } catch (_) {
          return false;
        }
      }

      function deploymentStorageAvailable() {
        try {
          var key = config.deploymentRecoveryStorageKey + ":probe";
          sessionStorage.setItem(key, "1");
          sessionStorage.removeItem(key);
          return true;
        } catch (_) {
          return false;
        }
      }

      function recoveryNavigationType() {
        try {
          var entries = performance.getEntriesByType("navigation");
          return entries.length ? String(entries[0].type || "unknown") : "unknown";
        } catch (_) {
          return "unknown";
        }
      }

      function privacySafeChunkDetails(details) {
        var chunkPath = null;
        try {
          var parsed = new URL(String(details && details.chunkUrl || ""), location.origin);
          if (parsed.origin === location.origin && parsed.pathname.indexOf("/_next/static/") === 0) {
            chunkPath = parsed.pathname.slice(0, 240);
          }
        } catch (_) {}
        return {
          chunkDpl: sanitizeRecoveryIdentifier(details && details.chunkDpl, "unknown"),
          chunkPath: chunkPath,
          prefetch: Boolean(details && details.prefetch),
          responseCategory: sanitizeRecoveryIdentifier(
            details && details.responseCategory,
            "unknown"
          )
        };
      }

      function createStableFallback() {
        var fallback = document.getElementById("yb-pwa-recovery-fallback");
        if (fallback) {
          fallback.setAttribute("data-state", "visible");
          return true;
        }
        if (!document.body) return false;

        fallback = document.createElement("section");
        fallback.id = "yb-pwa-recovery-fallback";
        fallback.className = "yb-pwa-recovery-fallback";
        fallback.setAttribute("data-state", "visible");
        fallback.setAttribute("role", "alertdialog");
        fallback.setAttribute("aria-modal", "true");
        fallback.setAttribute("aria-labelledby", "yb-pwa-recovery-title");
        fallback.setAttribute("aria-describedby", "yb-pwa-recovery-message");

        var inner = document.createElement("div");
        inner.className = "yb-pwa-recovery-fallback__inner";

        var logo = document.createElement("img");
        logo.src = "/brand/logo-mark-white.svg";
        logo.alt = "YourBarrio";
        logo.className = "yb-pwa-recovery-fallback__logo";

        var title = document.createElement("h1");
        title.id = "yb-pwa-recovery-title";
        title.textContent = "YourBarrio needs a quick refresh";

        var message = document.createElement("p");
        message.id = "yb-pwa-recovery-message";
        message.textContent =
          "YourBarrio needs to reload to continue. You’ll stay signed in.";

        var reload = document.createElement("button");
        reload.type = "button";
        reload.textContent = "Refresh YourBarrio";
        reload.className = "yb-pwa-recovery-fallback__reload";
        reload.addEventListener("click", function () {
          snapshot.manualReloadCount += 1;
          record("deployment_recovery", {
            manualReloadCount: snapshot.manualReloadCount,
            recoveryAction: "manual_reload",
            source: "stable_fallback"
          });
          var target = new URL("/", location.origin);
          target.searchParams.set(config.deploymentManualQueryKey, "1");
          location.replace(target.href);
        });

        var rootLink = document.createElement("a");
        rootLink.href = "/";
        rootLink.textContent = "Go to YourBarrio home";
        rootLink.className = "yb-pwa-recovery-fallback__home";

        inner.appendChild(logo);
        inner.appendChild(title);
        inner.appendChild(message);
        inner.appendChild(reload);
        inner.appendChild(rootLink);
        fallback.appendChild(inner);
        document.body.appendChild(fallback);
        return true;
      }

      function showStableFallback(reason, details) {
        if (stableFallbackActive) {
          createStableFallback();
          record("stable_fallback", {
            automaticReloadCount: snapshot.automaticReloadCount,
            recoveryAction: "fallback_preserved",
            source: reason || "repeated_error"
          });
          return;
        }
        stableFallbackActive = true;
        snapshot.deploymentRecoveryActive = true;
        var activate = function () {
          if (!createStableFallback()) return;
          record("stable_fallback", {
            automaticReloadCount: snapshot.automaticReloadCount,
            chunkDpl: details && details.chunkDpl,
            chunkPath: details && details.chunkPath,
            currentVersion: snapshot.currentProductionVersion || "",
            documentVersion: config.expectedVersion,
            episodeId: snapshot.deploymentRecoveryEpisodeId || "",
            recoveryAction: reason || "failed",
            routeCategory: routeSafety().category,
            storageAvailable: deploymentStorageAvailable(),
            latchPresent: Boolean(readAutomaticRecoveryLatch()),
            latchSource: snapshot.automaticRecoveryLatchSource || "memory"
          });
        };
        if (document.body) activate();
        else document.addEventListener("DOMContentLoaded", activate, { once: true });
      }

      function fetchCurrentProductionVersion() {
        if (deploymentCheckPending) return deploymentCheckPending;
        if (typeof fetch !== "function") return Promise.resolve(null);
        var controller =
          typeof AbortController === "function" ? new AbortController() : null;
        var timeout = window.setTimeout(function () {
          try { controller && controller.abort(); } catch (_) {}
        }, 4000);
        deploymentCheckPending = fetch("/api/app-version", {
          cache: "no-store",
          credentials: "same-origin",
          signal: controller ? controller.signal : undefined
        })
          .then(function (response) {
            if (!response.ok) return null;
            return response.json();
          })
          .then(function (payload) {
            var version = sanitizeRecoveryIdentifier(payload && payload.version, "");
            snapshot.currentProductionVersion = version || null;
            return version || null;
          })
          .catch(function () { return null; })
          .finally(function () {
            window.clearTimeout(timeout);
            deploymentCheckPending = null;
          });
        return deploymentCheckPending;
      }

      function coordinateDeploymentRecovery(input) {
        if (!config.deploymentRecoveryEnabled) {
          return Promise.resolve({ action: "ignore", automaticNavigation: false });
        }
        var details = privacySafeChunkDetails(input || {});
        if (details.prefetch) {
          record("deployment_recovery", {
            chunkDpl: details.chunkDpl,
            chunkPath: details.chunkPath,
            documentVersion: config.expectedVersion,
            recoveryAction: "prefetch_ignored",
            routeCategory: routeSafety().category
          });
          return Promise.resolve({ action: "prefetch_ignored", automaticNavigation: false });
        }
        if (deploymentDecisionPending) return deploymentDecisionPending;

        var suppliedCurrentVersion =
          input && sanitizeRecoveryIdentifier(input.currentVersion, "");
        var currentVersionRequest = suppliedCurrentVersion
          ? Promise.resolve(suppliedCurrentVersion)
          : fetchCurrentProductionVersion();
        deploymentDecisionPending = currentVersionRequest
          .then(function (currentVersion) {
            var safety = routeSafety();
            var documentVersion = sanitizeRecoveryIdentifier(config.expectedVersion);
            var safeCurrentVersion = sanitizeRecoveryIdentifier(
              currentVersion || input && input.currentVersion,
              "unknown"
            );
            var identity = [
              documentVersion,
              safeCurrentVersion,
              details.chunkDpl,
              safety.category
            ].join("|");
            var episodeId = hashRecoveryIdentity(identity);
            var recoveryKey = hashRecoveryIdentity(
              identity + "|" + (details.chunkPath || "unknown")
            );
            var prior = readDeploymentRecoveryRecord();
            var storageAvailable = deploymentStorageAvailable();
            var latch = readAutomaticRecoveryLatch();
            var alreadyRecovered = Boolean(latch);
            var versionCategory =
              safeCurrentVersion === "unknown" ? "unknown" : "known";
            if (versionCategory === "unknown") {
              record("deployment_check", {
                currentVersion: "",
                documentVersion: documentVersion,
                recoveryAction: "version_unavailable",
                source: "deployment_recovery",
                versionCategory: "unknown"
              });
            }

            snapshot.deploymentRecoveryActive = true;
            snapshot.deploymentRecoveryEpisodeId =
              deploymentRecoveryFromQuery || episodeId;
            if (!safety.safe || navigator.onLine === false) {
              record("deployment_recovery", {
                automaticReloadCount: snapshot.automaticReloadCount,
                chunkDpl: details.chunkDpl,
                chunkPath: details.chunkPath,
                currentVersion: safeCurrentVersion,
                documentVersion: documentVersion,
                episodeId: episodeId,
                navigationType: recoveryNavigationType(),
                recoveryAction: "deferred",
                recoveryKey: recoveryKey,
                responseCategory: details.responseCategory,
                routeCategory: safety.category,
                storageAvailable: storageAvailable,
                versionCategory: versionCategory
              });
              if (input && input.failure === true) {
                showStableFallback("deferred", details);
              }
              return { action: "deferred", automaticNavigation: false };
            }

            if (alreadyRecovered) {
              if (prior) {
                prior.lastFailureAt = Date.now();
                prior.failureCount = Number(prior.failureCount || 1) + 1;
                writeDeploymentRecoveryRecord(prior);
              }
              record("deployment_recovery", {
                automaticReloadCount: snapshot.automaticReloadCount,
                chunkDpl: details.chunkDpl,
                chunkPath: details.chunkPath,
                currentVersion: safeCurrentVersion,
                documentVersion: documentVersion,
                episodeId: episodeId,
                navigationType: recoveryNavigationType(),
                recoveryAction: "stable_fallback",
                recoveryKey: recoveryKey,
                responseCategory: details.responseCategory,
                routeCategory: safety.category,
                storageAvailable: storageAvailable,
                latchPresent: true,
                latchSource: latch && latch.source,
                versionCategory: versionCategory
              });
              showStableFallback("automatic_recovery_exhausted", details);
              return { action: "failed", automaticNavigation: false };
            }

            var automaticNavigation = requestAutomaticRecoveryNavigation(
              "deployment_coordinator",
              details
            );
            if (!automaticNavigation) {
              return { action: "failed", automaticNavigation: false };
            }
            writeDeploymentRecoveryRecord({
              version: 1,
              episodeId: episodeId,
              documentVersion: documentVersion,
              currentVersion: safeCurrentVersion,
              chunkDpl: details.chunkDpl,
              chunkPath: details.chunkPath,
              recoveryKey: recoveryKey,
              routeCategory: safety.category,
              firstAttemptAt: Date.now(),
              lastFailureAt: Date.now(),
              failureCount: 1,
              automaticReloadCount: 1
            });
            record("deployment_recovery", {
              automaticReloadCount: 1,
              chunkDpl: details.chunkDpl,
              chunkPath: details.chunkPath,
              currentVersion: safeCurrentVersion,
              documentVersion: documentVersion,
              episodeId: episodeId,
              navigationType: recoveryNavigationType(),
              recoveryAction: "navigate_root",
              recoveryKey: recoveryKey,
              responseCategory: details.responseCategory,
              routeCategory: safety.category,
              storageAvailable: storageAvailable,
              latchPresent: true,
              latchSource: snapshot.automaticRecoveryLatchSource || "memory",
              versionCategory: versionCategory
            });
            return { action: "refreshing", automaticNavigation: true };
          })
          .finally(function () {
            deploymentDecisionPending = null;
          });
        return deploymentDecisionPending;
      }

      function checkDeploymentSkew(source, persisted) {
        if (!config.deploymentRecoveryEnabled) {
          return Promise.resolve(null);
        }
        if (!standalone || document.visibilityState === "hidden") {
          return Promise.resolve(null);
        }
        return fetchCurrentProductionVersion().then(function (currentVersion) {
          var mismatch =
            Boolean(currentVersion) &&
            String(currentVersion) !== String(config.expectedVersion);
          record("deployment_check", {
            currentVersion: currentVersion || "",
            documentVersion: config.expectedVersion,
            persisted: Boolean(persisted),
            recoveryAction: mismatch ? "mismatch" : "match",
            source: source,
            storageAvailable: deploymentStorageAvailable()
          });
          return { mismatch: mismatch };
        });
      }

      function removePreHydrationErrorListeners() {
        if (!errorListenersInstalled) return;
        errorListenersInstalled = false;
        window.removeEventListener("error", handleJavaScriptError, true);
        window.removeEventListener("unhandledrejection", handlePromiseRejection);
        if (longTaskObserver) {
          try { longTaskObserver.disconnect(); } catch (_) {}
          longTaskObserver = null;
        }
      }

      function safeErrorType(value) {
        var name = value && typeof value.name === "string" ? value.name : "";
        var known = {
          AbortError: true,
          Error: true,
          EvalError: true,
          NetworkError: true,
          RangeError: true,
          ReferenceError: true,
          SecurityError: true,
          SyntaxError: true,
          TypeError: true,
          URIError: true
        };
        if (known[name]) return name;
        return value == null ? "unknown" : typeof value;
      }

      function preHydrationChunkFailure(event, reason) {
        var target = event && event.target;
        var candidateUrl =
          target && typeof target.src === "string"
            ? target.src
            : target && typeof target.href === "string"
              ? target.href
              : "";
        var message = String(
          reason && (reason.message || reason.name) ||
          event && event.message ||
          ""
        );
        var isNextAsset =
          candidateUrl.indexOf("/_next/static/") !== -1 ||
          message.indexOf("/_next/static/") !== -1;
        var explicitChunkFailure =
          /ChunkLoadError|Loading (?:CSS )?chunk|dynamically imported module|module script failed/i.test(
            message
          );
        if (!isNextAsset && !explicitChunkFailure) return null;
        var prefetch =
          Boolean(target && /^(?:prefetch|modulepreload)$/i.test(target.rel || "")) ||
          Boolean(reason && (reason.prefetch === true || reason.isPrefetch === true));
        var chunkDpl = "unknown";
        try {
          chunkDpl = new URL(candidateUrl, location.origin).searchParams.get("dpl") || "unknown";
        } catch (_) {}
        return {
          chunkDpl: chunkDpl,
          chunkUrl: candidateUrl,
          failure: true,
          prefetch: prefetch,
          responseCategory: "network"
        };
      }

      function handleJavaScriptError(event) {
        record("javascript_error", {
          errorType: safeErrorType(event && event.error),
          source: "pre_hydration"
        });
        var failure = preHydrationChunkFailure(event, event && event.error);
        if (config.deploymentRecoveryEnabled && failure) {
          void coordinateDeploymentRecovery(failure);
        }
      }

      function handlePromiseRejection(event) {
        var reason = event && event.reason;
        record("promise_rejection", {
          promiseReasonType: safeErrorType(reason),
          source: "pre_hydration"
        });
        var failure = preHydrationChunkFailure(event, reason);
        if (config.deploymentRecoveryEnabled && failure) {
          void coordinateDeploymentRecovery(failure);
        }
      }

      function installPreHydrationDiagnostics() {
        errorListenersInstalled = true;
        window.addEventListener("error", handleJavaScriptError, true);
        window.addEventListener("unhandledrejection", handlePromiseRejection);
        if (typeof PerformanceObserver !== "function") {
          record("long_task_observer", { longTaskSupported: false });
          return;
        }
        try {
          longTaskObserver = new PerformanceObserver(function (list) {
            list.getEntries().slice(0, 10).forEach(function (entry) {
              record("long_task", {
                durationMs: entry.duration,
                source: "pre_hydration"
              });
            });
          });
          longTaskObserver.observe({ entryTypes: ["longtask"] });
          snapshot.longTaskSupported = true;
          record("long_task_observer", { longTaskSupported: true });
        } catch (_) {
          longTaskObserver = null;
          record("long_task_observer", { longTaskSupported: false });
        }
      }

      var runtime = {
        checkWorker: checkWorker,
        checkDeploymentSkew: checkDeploymentSkew,
        coordinateDeploymentRecovery: coordinateDeploymentRecovery,
        contractVersion: config.contractVersion,
        deploymentRecoveryEnabled: config.deploymentRecoveryEnabled,
        expectedWorkerVersion: config.expectedVersion,
        getDiagnostics: function () {
          return {
            events: events.slice(),
            previousBoot: prior
              ? {
                  events: prior.events.slice(),
                  snapshot: Object.assign({}, prior.snapshot),
                  version: prior.version
                }
              : null,
            snapshot: Object.assign({}, snapshot),
            version: config.diagnosticsVersion
          };
        },
        markHydrated: function () {
          if (snapshot.hydrated) return;
          snapshot.hydrated = true;
          record("react_hydrated", {
            hydrated: true,
            pathCategory: routeSafety().category
          });
          removePreHydrationErrorListeners();
        },
        isDeploymentRecoveryActive: function () {
          return Boolean(
            snapshot.deploymentRecoveryActive ||
            deploymentDecisionPending
          );
        },
        recordSessionExpirySuppressed: function () {
          snapshot.deploymentRecoveryActive = true;
          record("deployment_recovery", {
            currentVersion: snapshot.currentProductionVersion || "",
            documentVersion: config.expectedVersion,
            episodeId: snapshot.deploymentRecoveryEpisodeId || "",
            recoveryAction: "session_expired_suppressed",
            routeCategory: routeSafety().category,
            storageAvailable: deploymentStorageAvailable()
          });
        },
        record: record,
        refreshRouteState: refreshRouteState,
        registration: null,
        registrationPromise: null,
        requestActivation: requestActivation,
        snapshot: snapshot,
        showStableFallback: showStableFallback,
        workerUrl: config.workerUrl
      };
      window.__ybPwaStartup = runtime;

      snapshot.pathCategory = routeSafety().category;
      var currentControllerMetadata = initialControllerMetadata;
      snapshot.controllerContract = currentControllerMetadata.contract;
      snapshot.controllerVersion = currentControllerMetadata.version;
      installPreHydrationDiagnostics();
      record("inline_script_executed", {
        bootStartedEpochMs: bootStartedEpochMs,
        contractVersion: config.contractVersion,
        controllerContract: currentControllerMetadata.contract || "",
        controllerPresent: Boolean(initialController),
        controllerVersion: currentControllerMetadata.version || "",
        expectedVersion: config.expectedVersion,
        inlineExecuted: true,
        online: snapshot.online,
        pathCategory: snapshot.pathCategory,
        previousEventCount: prior ? prior.events.length : 0,
        source: workerRecoveryNavigation ? "worker_recovery_navigation" : "document",
        standalone: standalone,
        visibility: snapshot.visibility,
        deploymentRecoveryEnabled: config.deploymentRecoveryEnabled,
        workerEnabled: config.workerEnabled
      });

      if (navigator.serviceWorker) {
        navigator.serviceWorker.addEventListener("controllerchange", handleControllerChange);
        navigator.serviceWorker.addEventListener("message", handleWorkerMessage);
      }
      window.addEventListener("pageshow", function (event) {
        record("page_show", {
          persisted: Boolean(event && event.persisted),
          visibility: document.visibilityState || "unknown"
        });
        if (event && event.persisted) {
          void checkDeploymentSkew("pageshow_persisted", true);
          var restoredController =
            navigator.serviceWorker && navigator.serviceWorker.controller;
          var restoredMetadata = workerMetadata(restoredController);
          var controllerChangedWhileFrozen =
            snapshot.controllerPresent !== Boolean(restoredController) ||
            snapshot.controllerContract !== restoredMetadata.contract ||
            snapshot.controllerVersion !== restoredMetadata.version;
          if (controllerChangedWhileFrozen) {
            snapshot.controllerChangeCount += 1;
            snapshot.controllerPresent = Boolean(restoredController);
            snapshot.controllerContract = restoredMetadata.contract;
            snapshot.controllerVersion = restoredMetadata.version;
            record("controller_change", {
              controllerChangeCount: snapshot.controllerChangeCount,
              controllerContract: restoredMetadata.contract || "",
              controllerPresent: Boolean(restoredController),
              controllerVersion: restoredMetadata.version || "",
              source: "pageshow_persisted"
            });
            if (isExpectedWorker(restoredController)) {
              decideRecoveryReload(restoredController, "pageshow_persisted");
            }
          }
        }
        void checkWorker(event && event.persisted ? "pageshow_persisted" : "pageshow", Boolean(event && event.persisted));
      });
      window.addEventListener("online", function () {
        snapshot.online = true;
        record("network_change", { online: true });
        void checkWorker("online", true);
        if (
          snapshot.reloadDeferred &&
          recoveryReloadRequired &&
          !controllerDecisionMade &&
          isExpectedWorker(navigator.serviceWorker && navigator.serviceWorker.controller)
        ) {
          decideRecoveryReload(
            navigator.serviceWorker && navigator.serviceWorker.controller,
            "online"
          );
        }
      });
      window.addEventListener("offline", function () {
        snapshot.online = false;
        record("network_change", { online: false });
      });
      document.addEventListener("visibilitychange", function () {
        snapshot.visibility = document.visibilityState || "unknown";
        record("visibility_change", { visibility: snapshot.visibility });
        if (snapshot.visibility === "visible") {
          void checkWorker("visibility", false);
          void checkDeploymentSkew("visibility", false);
        }
      });

      void checkWorker("inline", true);
    })({"contractVersion":"legacy-recovery-v1","diagnosticsKey":"yb:pwa-startup:v1","diagnosticsVersion":1,"deploymentRecoveryEnabled":true,"automaticRecoveryLatchStorageKey":"yb:pwa-automatic-recovery:v1","deploymentManualQueryKey":"yb_pwa_manual_recovery","deploymentRecoveryQueryKey":"yb_pwa_chunk_recovery","deploymentRecoveryStorageKey":"yb:pwa-deployment-recovery:v1","deploymentRecoveryTtlMs":604800000,"expectedVersion":"dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","maxEvents":80,"recoveryNavigationQueryKey":"yb_pwa_recovery","routeRules":{"authCallbackPaths":["/api/auth/callback","/auth/callback","/auth/confirm","/auth/confirm-start","/auth/handoff","/auth/update-password","/business-auth/post-confirm","/oauth/callback","/set-password"],"authCallbackQueryKeys":["access_token","code","refresh_token","token_hash"],"businessFormPatternSources":["^/onboarding(?:/|$)","^/business/listings/new(?:/|$)","^/business/listings/[^/]+/edit(?:/|$)","^/business-auth/create-password(?:/|$)","^/business-auth/register(?:/|$)","^/business/onboarding(?:/|$)","^/business/profile(?:/|$)","^/business/settings(?:/|$)","^/business/staff/profile(?:/|$)"]},"stateEvent":"yb:pwa-startup-state","workerEnabled":true,"workerUrl":"/sw.js?c=legacy-recovery-v1\u0026v=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"});
  3:["$","html",null,{"lang":"en","className":"theme-light yb-app-booting __variable_f5347a","data-theme":"light","data-scroll-behavior":"auto","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$39"}}],"$L3a","$L3b","$L3c","$L3d","$L3e","$L3f","$L40","$L41",["$L42"],["$L43"]]}],"$L44"]}]
3a:["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n              try {\n                if (\"scrollRestoration\" in history) {\n                  history.scrollRestoration = \"manual\";\n                }\n              } catch (_) {}\n            "}}]
45:T462,
    (function () {
      var root = document.documentElement;
      var done = false;
      function record(type, details) {
        try {
          if (window.__ybPwaStartup && typeof window.__ybPwaStartup.record === "function") {
            window.__ybPwaStartup.record(type, details);
          }
        } catch (_) {}
      }
      function markBootReady(source) {
        if (done) return;
        done = true;
        record("boot_ready_signal", { source: source || "unknown" });
        root.classList.add("yb-app-ready");
        root.classList.remove("yb-app-booting");
        if (document.getElementById("yb-pwa-recovery-fallback")) {
          record("stable_fallback", {
            recoveryAction: "fallback_preserved",
            source: source || "unknown"
          });
        }
      }
      window.__ybMarkBootReady = markBootReady;
      record("splash_failsafe_scheduled", { durationMs: 3000 });
      window.__ybBootSplashTimer = window.setTimeout(function () {
        record("splash_failsafe_fired", { durationMs: 3000 });
        markBootReady("splash_failsafe");
      }, 3000);
    })();
  3b:["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$45"}}]
3c:["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1"}]
3d:["$","meta",null,{"name":"theme-color","content":"#411991"}]
46:T102a,
              html.yb-standalone-mode.yb-app-booting,
              html.yb-standalone-mode.yb-app-booting body {
                background: #411991;
              }

              #yb-boot-splash {
                position: fixed;
                inset: 0;
                z-index: 2147483647;
                display: grid;
                place-items: center;
                min-height: 100vh;
                min-height: 100svh;
                padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
                background:
                  radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%),
                  #411991;
                opacity: 0;
                visibility: hidden;
                transition: opacity 320ms ease, visibility 320ms ease;
                pointer-events: none;
                contain: strict;
              }

              html.yb-standalone-mode.yb-app-booting #yb-boot-splash[data-state="visible"] {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
              }

              #yb-boot-splash[data-state="hidden"],
              html.yb-app-ready #yb-boot-splash,
              html.yb-browser-mode #yb-boot-splash {
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
              }

              .yb-boot-splash__inner {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 24px;
              }

              .yb-boot-splash__logo {
                display: block;
                width: clamp(92px, 26vw, 132px);
                height: auto;
              }

              #yb-pwa-recovery-fallback {
                position: fixed;
                inset: 0;
                z-index: 2147483647;
                display: grid;
                place-items: center;
                min-height: 100vh;
                min-height: 100svh;
                padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
                overflow: auto;
                background:
                  radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%),
                  #411991;
                color: #ffffff;
                visibility: visible;
                opacity: 1;
                pointer-events: auto;
              }

              .yb-pwa-recovery-fallback__inner {
                display: flex;
                width: min(100%, 460px);
                flex-direction: column;
                align-items: center;
                gap: 18px;
                padding: 28px;
                text-align: center;
              }

              .yb-pwa-recovery-fallback__logo {
                display: block;
                width: 88px;
                height: auto;
              }

              .yb-pwa-recovery-fallback__inner h1 {
                max-width: 420px;
                margin: 0;
                font-size: 22px;
                line-height: 1.3;
              }

              .yb-pwa-recovery-fallback__inner p {
                max-width: 420px;
                margin: 0;
                color: rgba(255, 255, 255, 0.86);
                font-size: 15px;
                line-height: 1.55;
              }

              .yb-pwa-recovery-fallback__reload {
                border: 0;
                border-radius: 12px;
                padding: 12px 20px;
                background: #ffffff;
                color: #411991;
                cursor: pointer;
                font-size: 15px;
                font-weight: 700;
              }

              .yb-pwa-recovery-fallback__home {
                color: #ffffff;
                font-size: 14px;
                text-decoration: underline;
                text-underline-offset: 3px;
              }

              @media (prefers-reduced-motion: reduce) {
                #yb-boot-splash {
                  transition: none;
                }
              }
            3e:["$","style",null,{"dangerouslySetInnerHTML":{"__html":"$46"}}]
3f:["$","link",null,{"rel":"preload","as":"image","href":"/brand/logo-mark-white.svg","fetchPriority":"high"}]
40:["$","link",null,{"rel":"preload","as":"image","href":"/brand/navbar-logo-dark.svg","media":"(min-width: 1024px)","fetchPriority":"high"}]
41:["$","link",null,{"rel":"preload","as":"image","href":"/brand/logo-mark-purple.svg","media":"(max-width: 1023.98px)","fetchPriority":"high"}]
42:["$","link","preconnect-https://nbzqnjanqkzuwyxnkjtr.supabase.co",{"rel":"preconnect","href":"https://nbzqnjanqkzuwyxnkjtr.supabase.co"}]
43:["$","link","dns-https://nbzqnjanqkzuwyxnkjtr.supabase.co",{"rel":"dns-prefetch","href":"https://nbzqnjanqkzuwyxnkjtr.supabase.co"}]
44:["$","body",null,{"className":"min-h-screen w-full overflow-x-hidden bg-[#f6f7fb] antialiased text-[var(--yb-text)]","children":[["$","$L33",null,{}],["$","$1c",null,{"fallback":null,"children":"$L47"}],["$","$L35",null,{"initialLocation":{"source":"default","city":"Long Beach","region":"CA","country":"US","zip":"$undefined","lat":33.7701,"lng":-118.1937,"placeId":"$undefined","label":"Long Beach, CA","kind":"$undefined","updatedAt":1787782148064},"initialAuth":null,"initialAuthResolved":true,"children":[["$","$L12",null,{"parallelRouterKey":"children","error":"$48","errorStyles":[],"errorScripts":null,"template":["$","$L13",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$30:props:children:2:props:children:0:1","forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L12",null,{"parallelRouterKey":"auth","error":"$48","errorStyles":"$44:props:children:2:props:children:0:props:errorStyles","errorScripts":null,"template":["$","$L13",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L12",null,{"parallelRouterKey":"businessAuth","error":"$48","errorStyles":"$44:props:children:2:props:children:0:props:errorStyles","errorScripts":null,"template":["$","$L13",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],null,["$","$L36",null,{"currentVersion":"dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"}],["$","$L37",null,{}],["$","$L38",null,{}]]}]
1a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
47:null
1d:[["$","title","0",{"children":"Business FAQ | YourBarrio"}],["$","meta","1",{"name":"description","content":"Answers to common questions about selling on YourBarrio."}],["$","meta","2",{"name":"application-name","content":"YourBarrio"}],["$","link","3",{"rel":"manifest","href":"/manifest.webmanifest","crossOrigin":"$undefined"}],["$","meta","4",{"name":"yb-shell-root","content":"root"}],["$","meta","5",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","6",{"name":"apple-mobile-web-app-title","content":"YourBarrio"}],["$","meta","7",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","meta","8",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","9",{"name":"yb-shell","content":"public"}],["$","meta","10",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","11",{"name":"apple-mobile-web-app-title","content":"YourBarrio"}],["$","meta","12",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","link","13",{"rel":"shortcut icon","href":"/favicon.ico?v=2"}],["$","link","14",{"rel":"shortcut icon","href":"/icons/favicon.ico?v=2"}],["$","link","15",{"rel":"icon","href":"/favicon.ico?v=2","sizes":"any"}],["$","link","16",{"rel":"icon","href":"/icons/favicon.ico?v=2","sizes":"any"}],["$","link","17",{"rel":"icon","href":"/icons/favicon.svg?v=2","type":"image/svg+xml"}],["$","link","18",{"rel":"icon","href":"/icons/favicon-32x32.png?v=2","sizes":"32x32","type":"image/png"}],["$","link","19",{"rel":"icon","href":"/icons/favicon-16x16.png?v=2","sizes":"16x16","type":"image/png"}],["$","link","20",{"rel":"apple-touch-icon","href":"/icons/apple-touch-icon.png?v=2","sizes":"180x180","type":"image/png"}],["$","$L49","21",{}]]
24:null
