diff --git a/clients/eds-barbershop/img/locations-poster.webp b/clients/eds-barbershop/img/locations-poster.webp new file mode 100644 index 00000000..d4ed6eda Binary files /dev/null and b/clients/eds-barbershop/img/locations-poster.webp differ diff --git a/clients/eds-barbershop/img/locations-walk.mp4 b/clients/eds-barbershop/img/locations-walk.mp4 new file mode 100644 index 00000000..7d929380 Binary files /dev/null and b/clients/eds-barbershop/img/locations-walk.mp4 differ diff --git a/clients/eds-barbershop/img/shop-on-montopolis.webp b/clients/eds-barbershop/img/shop-on-montopolis.webp new file mode 100644 index 00000000..c5b203f3 Binary files /dev/null and b/clients/eds-barbershop/img/shop-on-montopolis.webp differ diff --git a/clients/eds-barbershop/img/shop-out-back.webp b/clients/eds-barbershop/img/shop-out-back.webp new file mode 100644 index 00000000..e3e30a5b Binary files /dev/null and b/clients/eds-barbershop/img/shop-out-back.webp differ diff --git a/clients/eds-barbershop/index.html b/clients/eds-barbershop/index.html index fb102e23..46ae271c 100644 --- a/clients/eds-barbershop/index.html +++ b/clients/eds-barbershop/index.html @@ -3,8 +3,8 @@ -Ed's Barber Shop · Montopolis · Fades, Beards & Color · Austin TX - +Ed's Barber Shop · Montopolis · Fades, Beards & Color · Austin TX + @@ -92,9 +92,21 @@ transition:transform .2s var(--ease),box-shadow .2s var(--ease); box-shadow:0 1px 0 oklch(1 0 0 / 0.25) inset; } + .nav__links a.nav__cta,.nav__links a.nav__cta:hover{color:var(--ink-dark)} .nav__cta:hover{transform:translateY(-1px);box-shadow:0 8px 22px -10px var(--gold)} @media(max-width:760px){.nav__links a:not(.nav__cta){display:none}} + /* language toggle */ + .lang-toggle{display:inline-flex;align-items:center;gap:0.4rem; + padding:0.5rem 0.9rem;border-radius:var(--r-md); + border:1.5px solid var(--gold-line);background:transparent;color:var(--gold-hi); + font-family:var(--font-body);font-weight:700;font-size:0.82rem;letter-spacing:0.02em; + cursor:pointer;white-space:nowrap; + transition:border-color .2s var(--ease),background .2s var(--ease)} + .lang-toggle:hover{border-color:var(--gold);background:var(--gold-dim)} + .lang-toggle svg{width:16px;height:16px;flex:none} + @media(max-width:420px){.lang-toggle .lang-label{display:none}.lang-toggle{padding-inline:0.6rem}} + /* buttons */ .btn{display:inline-flex;align-items:center;justify-content:center;gap:0.55rem;font-weight:700;font-size:1rem; padding:0.95rem 1.55rem;border-radius:var(--r-md); @@ -220,10 +232,76 @@ .hours__note{font-size:0.82rem;color:var(--ink-3);margin-top:0.6rem} .visit__btns{display:flex;flex-wrap:wrap;gap:0.7rem;margin-top:1.5rem} .visit__store{border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--gold-line);position:relative} - .visit__store img{width:100%;height:100%;object-fit:cover;min-height:260px} - .visit__store figcaption{position:absolute;left:0;right:0;bottom:0;padding:1.7rem 1rem 0.9rem; - font-size:0.86rem;font-weight:600;color:var(--gold-hi);background:linear-gradient(transparent,oklch(0.09 0.008 70 / 0.86))} @media(max-width:760px){.visit{grid-template-columns:1fr}} + /* two-shop switcher: tabs over a cross-fading photo, auto-advances until someone picks */ + .spots{min-height:420px;background:var(--bg-panel);touch-action:pan-y} + .spots__slide{position:absolute;inset:0;opacity:0;transition:opacity .9s var(--ease);margin:0} + .spots__slide.is-on{opacity:1} + .spots__slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.05);transition:transform 6s linear} + .spots__slide.is-on img{transform:scale(1)} + .spots__slide::after{content:"";position:absolute;inset:0;pointer-events:none; + background:linear-gradient(to top, oklch(0.09 0.008 70 / 0.88) 0%, transparent 46%), + linear-gradient(to bottom, oklch(0.09 0.008 70 / 0.55) 0%, transparent 24%)} + .spots__cap{position:absolute;z-index:1;left:clamp(1.1rem,3vw,1.6rem);right:1rem;bottom:clamp(1rem,3vw,1.4rem)} + .spots__cap .k{display:block;font-size:0.68rem;font-weight:700;letter-spacing:0.26em;text-transform:uppercase;color:var(--gold-hi)} + .spots__cap .v{display:block;margin-top:0.3rem;font-family:var(--font-display);font-style:italic;font-weight:600; + font-size:clamp(1.25rem,2.4vw,1.6rem);line-height:1.2;color:var(--ink);text-shadow:0 2px 14px oklch(0 0 0 / 0.6)} + .spots__tabs{position:absolute;z-index:2;top:0.9rem;left:0.9rem;display:flex;gap:4px;padding:4px; + border-radius:999px;background:oklch(0.12 0.006 75 / 0.78);border:1px solid var(--gold-line)} + .spots__tab{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:0.45rem; + font:700 0.8rem/1 var(--font-body);letter-spacing:0.02em;color:var(--ink-2);background:transparent;border:0; + padding:0.6rem 0.95rem;border-radius:999px;cursor:pointer;min-height:40px; + transition:color .2s var(--ease),background .2s var(--ease)} + .spots__tab:hover{color:var(--gold-hi)} + .spots__tab b{font-family:var(--font-display);font-style:italic;font-size:1.05rem;color:var(--gold)} + .spots__tab[aria-selected="true"]{background:var(--foil);color:var(--ink-dark)} + .spots__tab[aria-selected="true"] b{color:var(--ink-dark)} + /* the timer: a hairline that fills under the active tab, then the photo flips */ + .spots__bar{position:absolute;left:14%;right:14%;bottom:5px;height:2px;border-radius:2px; + background:oklch(0.17 0.01 70 / 0.55);transform:scaleX(0);transform-origin:left;opacity:0} + .spots.auto .spots__tab[aria-selected="true"] .spots__bar{opacity:1;animation:spots-timer 5.5s linear forwards} + .spots.auto:hover .spots__bar,.spots.auto:focus-within .spots__bar,.spots.idle .spots__bar{animation-play-state:paused} + @keyframes spots-timer{to{transform:scaleX(1)}} + @media(max-width:760px){.spots{min-height:0;aspect-ratio:4/3}} + @media(prefers-reduced-motion:reduce){.spots__slide,.spots__slide img{transition:none;transform:none}} + /* walk-through: both shops, captions wave in over the video */ + .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap} + .walk{position:relative;margin:0 0 clamp(1.4rem,3.5vw,2.6rem);aspect-ratio:16/9;background:#000; + border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--gold-line); + box-shadow:0 26px 70px -34px oklch(0 0 0 / 0.9)} + .walk__vid{display:block;width:100%;height:100%;object-fit:cover} + .walk::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none; + background:linear-gradient(to top, oklch(0.09 0.008 70 / 0.86) 0%, oklch(0.09 0.008 70 / 0.35) 32%, transparent 58%)} + .walk__cap{position:absolute;z-index:2;left:clamp(1rem,3.4vw,2.5rem);right:1rem;bottom:clamp(1rem,3.2vw,2.3rem); + display:flex;align-items:center;gap:clamp(0.7rem,1.8vw,1.2rem);pointer-events:none} + .walk__num{font-family:var(--font-display);font-style:italic;font-weight:700;line-height:0.8; + font-size:clamp(3rem,8vw,6.2rem);padding-right:0.06em; + opacity:0;transform:translateY(0.3em) scale(0.9)} + .walk__txt{position:relative;display:flex;flex-direction:column;gap:0.4rem;padding-left:clamp(0.75rem,1.8vw,1.15rem)} + .walk__txt::before{content:"";position:absolute;left:0;top:0.15em;bottom:0.15em;width:1px;background:var(--foil); + transform:scaleY(0);transform-origin:top} + .walk__k{font-weight:700;font-size:clamp(0.66rem,1.2vw,0.76rem);letter-spacing:0.28em;text-transform:uppercase;color:var(--gold-hi)} + .walk__v{font-family:var(--font-display);font-style:italic;font-weight:600;line-height:1.15; + font-size:clamp(1.15rem,2.7vw,2.1rem);color:var(--ink);text-shadow:0 2px 18px oklch(0 0 0 / 0.7)} + .walk .w{display:inline-block;white-space:nowrap} + .walk .ch{display:inline-block;opacity:0;transform:translateY(0.6em) rotate(5deg)} + /* in: letters rise one after another, like a wave rolling through */ + .walk__cap.on .walk__num{opacity:1;transform:none; + transition:opacity .6s var(--ease),transform .9s var(--ease)} + .walk__cap.on .walk__txt::before{transform:scaleY(1);transition:transform .7s var(--ease) .12s} + .walk__cap.on .ch{opacity:1;transform:none; + transition:opacity .45s var(--ease),transform .75s var(--ease); + transition-delay:calc(180ms + var(--i) * 26ms)} + /* out: everything lifts and dissolves, quicker */ + .walk__cap.out .walk__num{opacity:0;transform:translateY(-0.2em);transition:opacity .45s var(--ease),transform .45s var(--ease)} + .walk__cap.out .walk__txt::before{transform:scaleY(0);transform-origin:bottom;transition:transform .4s var(--ease)} + .walk__cap.out .ch{opacity:0;transform:translateY(-0.4em); + transition:opacity .3s ease,transform .4s var(--ease);transition-delay:calc(var(--i) * 7ms)} + @media(max-width:680px){.walk{aspect-ratio:4/3}} + @media(prefers-reduced-motion:reduce){ + .walk__cap.on .walk__num,.walk__cap.on .walk__txt::before,.walk__cap.on .ch, + .walk__cap.out .walk__num,.walk__cap.out .walk__txt::before,.walk__cap.out .ch{transition:opacity .2s linear;transform:none} + } /* footer */ footer{padding:clamp(2.8rem,5vw,3.8rem) 0 2.4rem;border-top:1px solid var(--gold-line);background:var(--bg)} @@ -236,6 +314,34 @@ .foot__hand a{color:var(--gold);font-weight:700;border-bottom:1px solid var(--gold-line)} .foot__hand a:hover{color:var(--gold-hi)} + /* addresses: one row per shop, each with its own directions + copy */ + #visit{scroll-margin-top:64px} + .addr{list-style:none;margin:0.35rem 0 0;display:grid;gap:0.95rem} + .shop__line{display:flex;align-items:baseline;gap:0.6rem;color:var(--ink);font-weight:500;line-height:1.45} + .shop__line b{font-family:var(--font-display);font-style:italic;font-weight:700;font-size:1.1rem;min-width:0.8rem} + .shop__line em{font-style:normal;color:var(--ink-3);font-size:0.88rem} + .shop__acts{display:flex;flex-wrap:wrap;gap:0.45rem;margin:0.55rem 0 0 1.4rem} + .chip{display:inline-flex;align-items:center;gap:0.4rem;min-height:38px;padding:0.4rem 0.8rem;border-radius:999px; + border:1px solid var(--gold-line);background:transparent;color:var(--gold-hi); + font:inherit;font-size:0.84rem;font-weight:700;letter-spacing:0.01em;cursor:pointer; + transition:border-color .18s var(--ease),background .18s var(--ease),transform .18s var(--ease)} + .chip:hover{border-color:var(--gold);background:var(--gold-dim);transform:translateY(-1px)} + .chip svg{width:15px;height:15px;flex:none} + .chip--copy .c2{display:none} + .chip--copy.is-copied{border-color:var(--gold);background:var(--gold-dim)} + .chip--copy.is-copied .c1{display:none} + .chip--copy.is-copied .c2{display:inline} + @media(max-width:560px){ + .shop__acts{display:grid;grid-template-columns:1fr 1fr auto;margin-left:0} + .chip{justify-content:center;padding-inline:0.45rem;font-size:0.8rem;white-space:nowrap} + .chip[data-map] svg{display:none} + .chip--copy{width:40px;padding:0} + .chip--copy span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap} + .chip--copy.is-copied svg{display:none} + .chip--copy.is-copied::after{content:"\2713";font-size:1rem;line-height:1} + } + @media(prefers-reduced-motion:reduce){.chip{transition:none}.chip:hover{transform:none}} + /* reveal */ .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease),transform .7s var(--ease)} .reveal.in{opacity:1;transform:none} @@ -254,7 +360,7 @@ - + @@ -282,13 +392,13 @@ Ed's Barber Shop crest: a crown over a barber pole framed by a laurel wreath. - Est. on Montopolis · East Austin + Est. on Montopolis · East Austin

Ed’s Barber Shop

-

Sharp fades. Bold color. A neighborhood institution.

-

A barber shop and a hair salon under one roof. Crisp fades and beard work, kids' cuts, blowouts, and color that turns heads. Angela and the team have you, walk-ins and all.

+

Sharp fades. Bold color. A neighborhood institution.

+

A barber shop and a hair salon under one roof. Crisp fades and beard work, kids' cuts, blowouts, and color that turns heads. Angela and the team have you, walk-ins and all.

- + - Get directions + Get directions (737) 247-1710
-

Todos bienvenidos. Walk-ins welcome, hablamos español.

+

Todos bienvenidos. Walk-ins welcome, hablamos español.

A fresh slicked-back taper fade, clean and tight on the sides. -
The fade
+
The fade
Long hair colored in vivid purple melting into teal and green. -
The color
+
The color
Strawberry-blonde layers with a soft, bouncy blowout. -
The blowout
+
The blowout
@@ -335,9 +445,9 @@

- What we do -

Two chairs, one standard: get it right.

-

Most folks come in for a fade or a beard. Plenty come in for color and a blowout. We do all of it, and we take our time on every head that sits down.

+ What we do +

Two chairs, one standard: get it right.

+

Most folks come in for a fade or a beard. Plenty come in for color and a blowout. We do all of it, and we take our time on every head that sits down.

@@ -345,39 +455,39 @@

Two chairs, one standard: get it right.

A skin fade blended into a sharp beard line-up.
-

Fades, tapers & beard work

-

The signature. Skin fades, tapers, line-ups, and a beard trim that frames the whole thing. "Best fades in town, hands down" is a real review, not our words.

+

Fades, tapers & beard work

+

The signature. Skin fades, tapers, line-ups, and a beard trim that frames the whole thing. "Best fades in town, hands down" is a real review, not our words.

-

Kids' haircuts

-

Patient with the little ones, even the squirmy ones. Parents come back because the first cut goes well.

+

Kids' haircuts

+

Patient with the little ones, even the squirmy ones. Parents come back because the first cut goes well.

-

Freehand designs & hard parts

-

Want a part carved in, a star, a clean piece of line work? The clippers do more than fades here.

+

Freehand designs & hard parts

+

Want a part carved in, a star, a clean piece of line work? The clippers do more than fades here.

-

Color & balayage

-

Soft highlights and natural balayage, or full bold fashion color: purple, teal, green, blue. Sherry and the team are not afraid of a vivid box.

+

Color & balayage

+

Soft highlights and natural balayage, or full bold fashion color: purple, teal, green, blue. Sherry and the team are not afraid of a vivid box.

-

Women's cuts, layers & curtain bangs

-

Shapes that grow out well and layers that move. Curtain bangs done so they actually sit right.

+

Women's cuts, layers & curtain bangs

+

Shapes that grow out well and layers that move. Curtain bangs done so they actually sit right.

-

Blowouts & styling

-

Smooth, full, and finished. The kind of blowout that makes a regular out of a first-timer.

+

Blowouts & styling

+

Smooth, full, and finished. The kind of blowout that makes a regular out of a first-timer.

@@ -388,9 +498,9 @@

Blowouts & styling

- Our work -

Walk through the chair.

-

Every photo here is real work from the shop. Fades and beards on one wall, color and styling on the other.

+ Our work +

Walk through the chair.

+

Every photo here is real work from the shop. Fades and beards on one wall, color and styling on the other.

Men's slicked-back taper fade in profile.
@@ -412,8 +522,8 @@

Walk through the chair.

- From the neighborhood -

People do not switch once they find Ed's.

+ From the neighborhood +

People do not switch once they find Ed's.

@@ -462,13 +572,13 @@

People do not switch once they find Ed's.

Angela, the owner, smiling up front with her barbers behind her in the shop.
- The shop -

Run by Angela, kept by the regulars.

-

Ed's has been cutting Montopolis for years. Angela holds the whole place down and runs it like family, which is why folks like Miguel have been coming back for half a decade and bring their kids along.

-

The crew, Leo, Paul, Hector, Yoendry, Angel, and Sherry, can take you from a number-two fade to a full head of color without missing a beat. Clean shop, honest prices, no rush in the chair.

+ The shop +

Run by Angela, kept by the regulars.

+

Ed's has been cutting Montopolis for years. Angela holds the whole place down and runs it like family, which is why folks like Miguel have been coming back for half a decade and bring their kids along.

+

The crew, Leo, Paul, Hector, Yoendry, Angel, and Sherry, can take you from a number-two fade to a full head of color without missing a beat. Clean shop, honest prices, no rush in the chair.

- Todos bienvenidos · everyone welcome + Todos bienvenidos · everyone welcome
@@ -478,46 +588,92 @@

Run by Angela, kept by the regulars.

- Come by -

Find us on Montopolis.

-

Look for the barber pole and the Ed's sign. We are in the back unit, so the photo below is your landmark.

+ Come by +

Find us on Montopolis.

+

Two shops on one lot: one on the street, one out back. Look for the striped awnings and the Ed's sign.

+
+ + + +
A walk from the street to both Ed's shops. Location 1 is on Montopolis Drive, next to the nail salon. Location 2 is out back, to the right of the tire shop.
+
-

Hours & contact

+

Hours & contact

-
Address
1710 Montopolis Dr, Unit B
Austin, TX 78741
+
Addresses
+ + +
-
Hours
+
Hours
    -
  • Mon – Thu10am – 7pm
  • -
  • Friday10am – 8pm
  • -
  • Saturday9am – 8pm
  • -
  • SundayReduced
  • +
  • Mon – Thu10am – 7pm
  • +
  • Friday10am – 8pm
  • +
  • Saturday9am – 8pm
  • +
  • SundayReduced
-

Give us a call to confirm Sunday and holiday hours.

+

Give us a call to confirm Sunday and holiday hours.

-
- The Ed's storefront on Montopolis Drive with a striped barber pole out front. -
This is the place. Look for the barber pole.
-
+
+
+ + +
+
+ Ed's on Montopolis: a black storefront under a red, white and blue striped awning with the gold Ed's sign, beside an orange taco stand. +
Location 1Next to the nail salon
+
+ +
@@ -531,9 +687,9 @@

Hours & contact

Ed’s Barber Shop
-

Barber shop precision and salon color, in the heart of Montopolis. Walk-ins welcome.

+

Barber shop precision and salon color, in the heart of Montopolis. Walk-ins welcome.

-
+
Made by HAND.
@@ -550,6 +706,173 @@

Hours & contact

},{threshold:0.12,rootMargin:'0px 0px -8% 0px'}); els.forEach(function(e){io.observe(e);}); })(); + + // Bilingual EN/ES. Spanish-set browsers get Spanish automatically; the + // toggle is a manual override and the choice is remembered. No build step, + // no dependencies: each translatable node carries its Spanish in data-es. + (function () { + var KEY = "hand-lang"; + var nodes = [].slice.call(document.querySelectorAll("[data-es]")); + nodes.forEach(function (n) { + n.__en = (n.tagName === "META") ? n.getAttribute("content") : n.innerHTML; + }); + function setToggles(es) { + [].forEach.call(document.querySelectorAll(".lang-toggle"), function (b) { + b.setAttribute("data-lang-to", es ? "en" : "es"); + b.setAttribute("aria-pressed", es ? "true" : "false"); + b.setAttribute("aria-label", es ? "View in English" : "Ver en español"); + var l = b.querySelector(".lang-label"); + if (l) l.textContent = es ? "English" : "Español"; + }); + } + function apply(lang) { + var es = lang === "es"; + nodes.forEach(function (n) { + var v = es ? n.getAttribute("data-es") : n.__en; + if (v == null) return; + if (n.tagName === "META") n.setAttribute("content", v); + else n.innerHTML = v; + }); + document.documentElement.lang = es ? "es" : "en"; + setToggles(es); + } + var stored = null; + try { stored = localStorage.getItem(KEY); } catch (e) {} + var nav = (navigator.language || navigator.userLanguage || "").toLowerCase(); + apply(stored || (nav.indexOf("es") === 0 ? "es" : "en")); + document.addEventListener("click", function (e) { + var b = e.target.closest && e.target.closest(".lang-toggle"); + if (!b) return; + e.preventDefault(); + var to = b.getAttribute("data-lang-to") || "es"; + apply(to); + try { localStorage.setItem(KEY, to); } catch (e2) {} + }); + })(); + + /* addresses: Apple Maps first on Apple devices; Copy puts the full address on the clipboard */ + (function(){ + var ua=navigator.userAgent; + if(/iPhone|iPad|iPod|Macintosh/.test(ua)&&!/Android/.test(ua)) + document.querySelectorAll('.shop__acts').forEach(function(g){g.insertBefore(g.querySelector('[data-map="apple"]'),g.firstChild);}); + else + document.querySelectorAll('.shop__acts').forEach(function(g){g.insertBefore(g.querySelector('[data-map="google"]'),g.firstChild);}); + var status=document.getElementById('copy-status'); + function fallback(text){ + var t=document.createElement('textarea');t.value=text;t.setAttribute('readonly',''); + t.style.cssText='position:fixed;top:0;left:0;opacity:0';document.body.appendChild(t); + t.select();t.setSelectionRange(0,text.length); + var ok=false;try{ok=document.execCommand('copy');}catch(e){} + t.remove();return ok?Promise.resolve():Promise.reject(); + } + document.querySelectorAll('[data-copy]').forEach(function(btn){ + var timer; + btn.addEventListener('click',function(){ + var text=btn.getAttribute('data-copy'); + var p=navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(text).catch(function(){return fallback(text);}):fallback(text); + p.then(function(){ + btn.classList.add('is-copied'); + if(status)status.textContent=(document.documentElement.lang==='es'?'Dirección copiada: ':'Address copied: ')+text; + clearTimeout(timer);timer=setTimeout(function(){btn.classList.remove('is-copied');},2200); + },function(){window.prompt(document.documentElement.lang==='es'?'Copia la dirección:':'Copy the address:',text);}); + }); + }); + })(); + + /* two-shop switcher: the timer bar's animationend advances it; a tap or swipe takes over */ + (function(){ + var box=document.querySelector('.spots');if(!box)return; + var tabs=[].slice.call(box.querySelectorAll('[role="tab"]')); + var slides=tabs.map(function(t){return document.getElementById(t.getAttribute('aria-controls'));}); + var cur=0; + slides.forEach(function(s){s.hidden=false;}); + function show(i,focus){ + cur=(i+slides.length)%slides.length; + tabs.forEach(function(t,k){var on=k===cur; + t.setAttribute('aria-selected',on);t.tabIndex=on?0:-1; + slides[k].classList.toggle('is-on',on);slides[k].setAttribute('aria-hidden',!on);}); + if(focus)tabs[cur].focus(); + } + function takeOver(i,focus){box.classList.remove('auto');show(i,focus);} + tabs.forEach(function(t,k){ + t.addEventListener('click',function(){takeOver(k);}); + t.addEventListener('keydown',function(e){ + if(e.key==='ArrowRight'||e.key==='ArrowLeft'){e.preventDefault();takeOver(cur+(e.key==='ArrowRight'?1:-1),true);} + }); + }); + box.addEventListener('animationend',function(e){ + if(e.animationName==='spots-timer'&&box.classList.contains('auto'))show(cur+1); + }); + var x0=null; + box.addEventListener('pointerdown',function(e){x0=e.clientX;}); + box.addEventListener('pointerup',function(e){ + if(x0===null)return;var dx=e.clientX-x0;x0=null; + if(Math.abs(dx)>40)takeOver(cur+(dx<0?1:-1)); + }); + show(0); + if(window.matchMedia('(prefers-reduced-motion: reduce)').matches)return; + box.classList.add('auto'); + if('IntersectionObserver' in window)new IntersectionObserver(function(en){ + box.classList.toggle('idle',!en[en.length-1].isIntersecting); + },{threshold:0.3}).observe(box); + })(); + + /* walk-through: split captions into letters, then wave them in/out on the video's clock */ + (function(){ + var walk=document.querySelector('.walk');if(!walk)return; + var vid=walk.querySelector('video'); + var caps=[].slice.call(walk.querySelectorAll('.walk__cap')); + function split(cap){ + var es=document.documentElement.lang==='es',i=0; + cap.querySelectorAll('[data-split]').forEach(function(el){ + if(el._en==null)el._en=el.textContent.trim(); + var text=(es&&el.getAttribute('data-es-split'))||el._en; + var words=text.split(/\s+/);el.textContent=''; + words.forEach(function(word,wi){ + var w=document.createElement('span');w.className='w'; + Array.from(word).forEach(function(c){ + var s=document.createElement('span');s.className='ch';s.textContent=c; + s.style.setProperty('--i',i++);w.appendChild(s); + }); + el.appendChild(w); + if(wi=cap._in&&t diff --git a/clients/legacy-care-llc/.gitignore b/clients/legacy-care-llc/.gitignore new file mode 100644 index 00000000..e3ec87b8 --- /dev/null +++ b/clients/legacy-care-llc/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +.netlify/ +dist-preview/ +.env +.env.* diff --git a/clients/legacy-care-llc/ENGINE_FILES b/clients/legacy-care-llc/ENGINE_FILES new file mode 100644 index 00000000..499133d3 --- /dev/null +++ b/clients/legacy-care-llc/ENGINE_FILES @@ -0,0 +1,41 @@ +# Files owned by the engine. `sync-engine.mjs` copies these from +# clients/_template into a client; everything NOT listed is the site pack +# (site.config.mjs, site/, public/assets/, public/favicon.svg, +# public/img/, tests/page.test.mjs, README.md, HANDOFF.md) and is never +# touched by a sync. +# Generated files (netlify.toml, public/img/placeholder/) are regenerated +# from the client's own config after a sync. +netlify/functions/admin-page.mjs +netlify/functions/admin.mjs +netlify/functions/auth.mjs +netlify/functions/content.mjs +netlify/functions/render.mjs +netlify/functions/lib/admin-page.mjs +netlify/functions/lib/blocks.mjs +netlify/functions/lib/config.mjs +netlify/functions/lib/content.mjs +netlify/functions/lib/db.mjs +netlify/functions/lib/email.mjs +netlify/functions/lib/html.mjs +netlify/functions/lib/http.mjs +netlify/functions/lib/sanitize.mjs +netlify/functions/lib/session.mjs +netlify/functions/lib/site.mjs +netlify/functions/lib/theme.mjs +public/admin/admin.css +public/admin/admin.js +public/robots.txt +scripts/gen-migration.mjs +scripts/gen-netlify-toml.mjs +scripts/make-placeholders.mjs +scripts/render-static.mjs +tests/admin.test.mjs +tests/blocks.test.mjs +tests/config.test.mjs +tests/db.test.mjs +tests/html.test.mjs +tests/migration.test.mjs +tests/sanitize.test.mjs +tests/session.test.mjs +.gitignore +ENGINE_FILES diff --git a/clients/legacy-care-llc/HANDOFF.md b/clients/legacy-care-llc/HANDOFF.md new file mode 100644 index 00000000..8664a4fa --- /dev/null +++ b/clients/legacy-care-llc/HANDOFF.md @@ -0,0 +1,84 @@ +# Handoff — Legacy Care LLC · 2026-09-11 + +Client site for Legacy Care LLC (owner: cryptokoh@gmail.com,emarie12202007@gmail.com). Server-rendered single page +with an owner CMS at `/admin/` (passwordless email link) for all copy and +photos. Built from `clients/_template` with the `hand-client-site` skill on +2026-09-11. + +**Status:** LIVE at https://legacycare.llc since 2026-09-11 (provisioned by provision.mjs). + +## Babysitting & childcare (2026-10-23, LIVE) + +New `#babysitting` section between Senior care and About, styled from the +owner's "Compassionate Care for Every Generation" flyer: service strip +(Senior care / Babysitting & childcare / In-home services), brush-stroke +script titles, pill rate rows, blue ribbons, and the flyer's watercolor heart +(`public/img/children-heart.webp`, cropped from the flyer, decorative). Rates +are the flyer's: 1 child $18–20, 2 children $22–25, 3 children $25–30, +date night $20–25, weekend $20–25 per hour, 3-hour minimum. No licensing or +age claims. All copy EN/ES and owner-editable under **Babysitting & +childcare** (rates and reasons are lists; empty rates list hides the card). +Nav gains a Babysitting link; nav links now hide below 1100px (was 900) so +five links never wrap. Removed a duplicate hard-coded meta description. +Asset version `20261023b`. + +**Deployed 2026-10-23** (deploy `6adb7c76…`; rollback point = previous deploy +`6aaa398b6aa71bbdcfd84090`). This deploy also shipped the 2026-09-16 engine +sync that was sitting undeployed in this folder (booking code is present but +dormant: no `config.booking`). The stored content doc was updated for the +changed defaults (hero eyebrow + lead, services eyebrow, SEO title + +description, EN/ES) as revision 13 under hand@handprotocol.org; the owner can +restore revision 12 from History to undo the copy change. + +## Display fixes (2026-09-11) + +CMS tokens now render as live values in call buttons and the footer. The page +shows `© 2026 Legacy Care LLC.`, and the Made by HAND credit sits inside the +footer with the owner sign-in. Service text is constrained to its grid track +and wraps within the card on mobile. Asset version: `20260911d`. + +## Social links (2026-09-11) + +Facebook, Instagram, and the Google review link appear after the direct contact +options and in the footer. The owner can edit or hide them under **Social & +reviews** in the admin. Missing fields in older stored content receive the +schema defaults; no database migration is needed. Facebook and Instagram also +populate LocalBusiness `sameAs` metadata. The Instagram URL uses the clean +profile address without QR tracking parameters. Asset version: `20260911c`. + +Validation: 32 tests pass; English and Spanish layouts checked at 360, 390, +768, and 1440px with no horizontal overflow and at least 44px link targets. + +## Start here (cold session) + +1. Read this file, then `README.md` (architecture, deploy, env vars). +2. Site pack = `site.config.mjs`, `site/schema.mjs`, `site/page.mjs`, + `public/assets/site.css|site.js`. Everything else is engine — do not edit + it here; fix in `clients/_template` and run `sync-engine.mjs legacy-care-llc`. +3. `npm test` runs with no DB. `npm run preview` renders `dist-preview/`. + +## Who can sign in (all `owner` role) + +| Email | Who | +|---|---| +| cryptokoh@gmail.com | Legacy Care owner | +| emarie12202007@gmail.com | Legacy Care owner | +| hand@handprotocol.org | HAND operator inbox, seeded by migration | + +## Where things are + +- **Code:** `clients/legacy-care-llc/` +- **Database:** HAND's shared Supabase project `vconmgerblqbworcqkvr`, tables + `command.legacy_care_llc_editors / login_tokens / content / media / revisions`; + migration `command/supabase/migrations/045_legacy_care_llc.sql` — applied: **yes** (2026-09-11). +- **Storage:** public bucket `legacy-care-llc`. +- **Netlify:** project `legacy-care-llc`, site id `5a3d778d-9067-470c-82fa-330fbefe5d15`, account **cryptokoh**. + Env vars per README. +- **Custom domain:** `legacycare.llc`. + +## Next steps + +1. Design pass on the site pack (theme, copy, layout) → `npm test` + preview. +2. `node .claude/skills/hand-client-site/scripts/provision.mjs legacy-care-llc` (creates + the Netlify site, sets env, applies the migration, deploys, verifies). +3. Owner signs in at `/admin/`, replaces placeholders, publishes. diff --git a/clients/legacy-care-llc/README.md b/clients/legacy-care-llc/README.md new file mode 100644 index 00000000..8959a34e --- /dev/null +++ b/clients/legacy-care-llc/README.md @@ -0,0 +1,130 @@ +# Legacy Care LLC — owner-editable site + +Scaffolded from `clients/_template` (read that README for the architecture; this copy is identical). + +A single-page client site the owner edits themselves: server-rendered from a +database, with a passwordless `/admin/` (one-time email link) for every line +of copy, all photos (upload, reorder, caption, replace in place, featured +image), extra editors, and publish history with one-click restore. Edits go +live instantly. First built for ZeroBlur (2026-09-05); this directory is the +reusable template — **scaffold a client with the `hand-client-site` skill, +do not copy this by hand.** + +## Engine vs site pack + +Two kinds of files live here. The split is the whole point. + +| | Files | Who edits | +|---|---|---| +| **Engine** | `netlify/functions/**`, `public/admin/**` (css + js; the shell is server-rendered), `scripts/**`, `tests/**`, `netlify.toml` (generated), `package.json`, `.gitignore` — listed in `ENGINE_FILES` | Nobody, per client. Fix once in `clients/_template`, run `sync-engine.mjs` to push to every client. | +| **Site pack** | `site.config.mjs` (identity, theme, fonts, logo, nav, seed media), `site/schema.mjs` (what the owner can edit + default copy), `site/page.mjs` (the layout), `public/assets/site.css` + `site.js` (design + effects), `public/favicon.svg`, `public/img/**`, `tests/page.test.mjs` (the layout's own test) | The person building the client's site. This is the only work per client. | + +The engine reaches the pack only through `netlify/functions/lib/site.mjs` +(schema + renderer) and `lib/config.mjs` (config). A pack is therefore exactly +three contracts: + +1. `site.config.mjs` — default export, validated by `normalizeConfig()`. + Required: `slug`, `name`, `theme.{bg,ink,accent}`. See the file's comments. +2. `site/schema.mjs` — `SECTIONS`, `DEFAULT_CONTENT`, `CONTENT_KEY`. + Validated at startup by `assertSections()`. +3. `site/page.mjs` — `renderPage({ content, media, origin }) → html string`. + Compose from `lib/blocks.mjs` (head tags with theme injection, JSON-LD, + CTA resolution, image tags with srcset, lightbox, footer links). + +Two ways to build a client: + +- **Fast path (same layout, new skin + copy):** edit `site.config.mjs` + (theme, fonts, logo, nav labels) and `site/schema.mjs` defaults. No layout + code. ~80 lines of edits. +- **Bespoke design:** keep the schema (or extend it), replace `site/page.mjs` + + `site.css` + `site.js` with the client's design, composed from blocks. + Porting an existing static design is mechanical: hardcoded copy → + `${e(c.section.field)}`, `` → `B.headTags()`, images → `B.img()`. + +## How it works + +``` +public/ static assets (CSS, JS, seed images, /admin/ app) +netlify/functions/ + render.mjs GET / server-renders the page from the DB (CDN-cached, tag = slug) + content.mjs GET /api/content copy + media + editing schema + site identity (public, read-only) + admin-page.mjs GET /admin/ the owner editor, server-rendered in the site's theme (lib/admin-page.mjs + lib/theme.mjs) + auth.mjs /api/auth/* magic-link sign-in → HttpOnly session cookie + admin.mjs /api/admin/* publish copy, media CRUD + order + in-place replace, editors, revisions + lib/config.mjs normalized site.config.mjs + derived names (tables, bucket, cookie, env prefix) + lib/site.mjs the ONLY import path from engine → pack + lib/blocks.mjs renderer building blocks (escaping, meta, CTA, images, lightbox) + lib/sanitize.mjs schema-driven sanitizer (unknown keys dropped, lengths clipped) + lib/db.mjs Supabase REST/Storage + Netlify cache purge; '/{media}' → '/_media' +scripts/ + gen-migration.mjs the Supabase migration from config (tables, RLS, bucket, seed rows) + gen-netlify-toml.mjs netlify.toml from config (Image CDN allow-list) + make-placeholders.mjs placeholder SVGs in the site palette + render-static.mjs dist-preview/ from defaults for local design review (no DB) +tests/ node --test; runs with no network, no DB +``` + +- **Rendering.** `GET /` loads the copy document + media rows and returns + finished HTML (all owner text escaped). The CDN caches it 10 minutes under + the slug tag; every admin write purges it, so edits are live immediately. + DB unreachable → 503 with `Retry-After`; no DB configured → defaults + seed + media (local preview). +- **Editing schema.** `site/schema.mjs` drives the admin forms and the + sanitizer. Every publish writes a revision row; the History tab restores any. +- **Themed editor.** `/admin/` is rendered with the site's palette and fonts + (`config.theme` + `config.fonts`); missing surfaces are derived from + `bg`/`ink`/`accent` (`lib/theme.mjs`), and `config.theme.admin` sets the + editor's feel (radii, label case, weights, primary-button fill). One + brand's editor is pill-and-glow, another's is square gold hairlines. +- **Photos.** Browser resizes to ≤2400 px WebP, PUTs straight to a signed + Supabase upload URL, then registers the row (after a HEAD check). Served via + the Netlify Image CDN with responsive `srcset`. Replace swaps a file while + keeping the slot. Seed rows are ordinary rows pointing at site-relative + files (`/img/...`); "Remove all placeholders" clears the ones flagged. +- **Database.** Shared HAND Supabase project, tables `command._*`, + RLS on with no policies (service role only). Storage bucket = slug. +- **Auth.** Magic link (20 min, single use, 5/hour/editor), 30-day HttpOnly + cookie, same-origin check on writes, no editor enumeration. Owners manage + editors; `_OWNER_EMAILS` auto-provisions owners on first request. + Supabase Auth is deliberately NOT used (no custom SMTP on the project). + +## Local preview + +```bash +npm test # engine tests, no DB +node scripts/render-static.mjs && python3 -m http.server 8787 -d dist-preview +``` + +## Deploy + +Own Netlify site per client, **not git-linked**; deploy from the CLI from +inside the client dir with the **cryptokoh** token: + +```bash +cd clients/ +NETLIFY_AUTH_TOKEN= netlify deploy --prod --build --site --message "…" +``` + +`--skip-functions-cache` when anything under `netlify/` changed. Bump +`assetVersion` in `site.config.mjs` when CSS/JS change (site and admin +assets both carry it). + +Env vars on the site: `SUPABASE_URL`, `SUPABASE_SERVICE_ROLE_KEY`, +`RESEND_API_KEY`, `EMAIL_FROM`, `_SESSION_SECRET`; optional +`_SITE_NAME`, `_OWNER_EMAILS`. Netlify injects +`NETLIFY_PURGE_API_TOKEN` + `SITE_ID`. `` = slug in UPPER_SNAKE +(or `envPrefix` in config). + +## Gotchas (learned on ZeroBlur, do not re-learn) + +- Supabase signed-upload `data.url` must be **string-concatenated** onto + `/storage/v1`; `new URL(path, base)` with a leading-slash path drops the + prefix → 404 "requested path is invalid". +- Any element with its own `display:` rule ignores the `hidden` attribute; + both stylesheets carry a global `[hidden]{display:none!important}`. +- The generic hero headline is word-split into spans, so grepping the literal + sentence in the HTML fails by design. +- Functions are v2 (`export default (req, context)` + `config.path`); the + admin router parses `/api/admin///` by hand. +- New Netlify sites default `built_with_badge_enabled: true`; provision + disables it. Verify the served HTML has no `/.netlify/scripts/hud`. diff --git a/clients/legacy-care-llc/netlify.toml b/clients/legacy-care-llc/netlify.toml new file mode 100644 index 00000000..1d9576e2 --- /dev/null +++ b/clients/legacy-care-llc/netlify.toml @@ -0,0 +1,43 @@ +# Legacy Care LLC — owner-editable site. Deployed as its OWN Netlify site +# (project `legacy-care-llc`), decoupled from the handprotocol repo's git auto-deploy. +# Generated by scripts/gen-netlify-toml.mjs from site.config.mjs. +# +# cd clients/legacy-care-llc && netlify deploy --prod --build --site +# +# This local toml pins the publish dir and functions dir so a deploy from +# inside the monorepo never inherits the root netlify.toml (the HAND site). +[build] + publish = "public" + command = "" + +[functions] + directory = "netlify/functions" + node_bundler = "esbuild" + +# Owner uploads live in Supabase Storage; Netlify Image CDN resizes them. +[images] + remote_images = ["https://vconmgerblqbworcqkvr\\.supabase\\.co/storage/v1/object/public/legacy-care-llc/.*"] + +[[headers]] + for = "/assets/*" + [headers.values] + Cache-Control = "public, max-age=3600, must-revalidate" + +[[headers]] + for = "/img/*" + [headers.values] + Cache-Control = "public, max-age=31536000, immutable" + +[[headers]] + for = "/admin/*" + [headers.values] + X-Robots-Tag = "noindex, nofollow" + Cache-Control = "no-store" + X-Frame-Options = "DENY" + +[[headers]] + for = "/*" + [headers.values] + X-Content-Type-Options = "nosniff" + Referrer-Policy = "strict-origin-when-cross-origin" + Permissions-Policy = "camera=(), microphone=(), geolocation=()" diff --git a/clients/legacy-care-llc/netlify/functions/admin-page.mjs b/clients/legacy-care-llc/netlify/functions/admin-page.mjs new file mode 100644 index 00000000..5667cd5c --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/admin-page.mjs @@ -0,0 +1,18 @@ +// GET /admin/ — the owner editor, server-rendered with the site's theme. +// (No static public/admin/index.html: a static file would win over this +// route and lose the theme injection.) + +import { renderAdminPage } from './lib/admin-page.mjs'; + +export default async () => + new Response(renderAdminPage(), { + status: 200, + headers: { + 'Content-Type': 'text/html; charset=utf-8', + 'Cache-Control': 'no-store', + 'X-Robots-Tag': 'noindex, nofollow', + 'X-Frame-Options': 'DENY', + }, + }); + +export const config = { path: ['/admin', '/admin/', '/admin/index.html'] }; diff --git a/clients/legacy-care-llc/netlify/functions/admin.mjs b/clients/legacy-care-llc/netlify/functions/admin.mjs new file mode 100644 index 00000000..6f1ecd97 --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/admin.mjs @@ -0,0 +1,277 @@ +// Editing API (session cookie required; see auth.mjs). +// +// PUT /api/admin/content { content } → publish copy +// GET /api/admin/revisions → last 30 content snapshots +// POST /api/admin/revisions/:id/restore → publish an old snapshot +// POST /api/admin/media/upload-url { name, type, size } → signed upload +// POST /api/admin/media register an uploaded object +// PATCH /api/admin/media/:id { alt, caption, category, featured } +// POST /api/admin/media/:id/replace swap in a new uploaded object, keep the slot +// DELETE /api/admin/media/:id +// PUT /api/admin/media/order { ids } +// POST /api/admin/media/remove-placeholders +// GET /api/admin/editors (owner) list +// POST /api/admin/editors (owner) { email, role } +// DELETE /api/admin/editors/:id (owner) +// +// Every successful write purges the CDN cache for the home page. + +import crypto from 'node:crypto'; +import { createSignedUpload, deleteObjects, objectExists, purgeSiteCache, sb } from './lib/db.mjs'; +import { CONTENT_KEY, sanitize } from './lib/site.mjs'; +import { loadSite, toView } from './lib/content.mjs'; +import { handleError, json, readJson, requireEditor, sameOrigin } from './lib/http.mjs'; + +const ALLOWED_TYPES = { 'image/jpeg': 'jpg', 'image/png': 'png', 'image/webp': 'webp', 'image/avif': 'avif', 'image/gif': 'gif' }; +const MAX_UPLOAD_BYTES = 15 * 1024 * 1024; +const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; +const UPLOAD_PATH_RE = /^uploads\/[0-9a-f-]{36}\.(jpg|png|webp|avif|gif)$/i; +const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/; + +function clip(v, max) { + const s = v == null ? '' : String(v).trim(); + return s.length > max ? s.slice(0, max) : s; +} + +async function publishContent(editor, content, kind = 'content') { + const stored = await sb(`/{content}?key=eq.${CONTENT_KEY}&select=value`); + const base = stored && stored[0] ? stored[0].value : undefined; + const clean = sanitize(content, base ? sanitize(base) : undefined); + await sb('/{content}', { + method: 'POST', + prefer: 'resolution=merge-duplicates,return=minimal', + body: { key: CONTENT_KEY, value: clean, updated_at: new Date().toISOString(), updated_by: editor.id }, + }); + await sb('/{revisions}', { + method: 'POST', + prefer: 'return=minimal', + body: { editor_id: editor.id, kind, snapshot: clean }, + }).catch((err) => console.warn('revision insert failed:', err.message)); + return clean; +} + +async function withPurge(result) { + const purge = await purgeSiteCache(); + return { ...result, purged: purge.ok }; +} + +// --- media ----------------------------------------------------------------- + +async function uploadUrl(req) { + const body = await readJson(req, 4096); + const type = String(body.type || ''); + const ext = ALLOWED_TYPES[type]; + if (!ext) return json(400, { ok: false, error: 'Use a JPG, PNG, WebP, AVIF, or GIF image' }); + const size = Number(body.size) || 0; + if (size > MAX_UPLOAD_BYTES) return json(400, { ok: false, error: 'Images must be under 15 MB' }); + const id = crypto.randomUUID(); + const path = `uploads/${id}.${ext}`; + const signed = await createSignedUpload(path); + return json(200, { ok: true, id, path, uploadUrl: signed.uploadUrl, token: signed.token }); +} + +async function registerMedia(req, editor) { + const body = await readJson(req, 8192); + const path = String(body.path || ''); + if (!UPLOAD_PATH_RE.test(path)) return json(400, { ok: false, error: 'Bad path' }); + if (!(await objectExists(path))) return json(400, { ok: false, error: 'The upload did not finish. Try that photo again.' }); + const existing = await sb('/{media}?select=sort&order=sort.desc&limit=1'); + const sort = existing && existing[0] ? Number(existing[0].sort) + 10 : 10; + const rows = await sb('/{media}', { + method: 'POST', + prefer: 'return=representation', + body: { + path, + is_placeholder: false, + alt: clip(body.alt, 160), + caption: clip(body.caption, 160), + category: clip(body.category, 40), + featured: false, + width: Number(body.width) || null, + height: Number(body.height) || null, + bytes: Number(body.bytes) || null, + mime: clip(body.mime, 40) || null, + sort, + }, + }); + const row = rows && rows[0]; + return json(200, await withPurge({ ok: true, media: { ...row, view: toView(row) } })); +} + +// Swap a new photo into an existing slot: position, caption, category, and +// featured flag stay; the old file is removed from storage. +async function replaceMedia(req, id, editor) { + const body = await readJson(req, 8192); + const path = String(body.path || ''); + if (!UPLOAD_PATH_RE.test(path)) return json(400, { ok: false, error: 'Bad path' }); + if (!(await objectExists(path))) return json(400, { ok: false, error: 'The upload did not finish. Try that photo again.' }); + const current = await sb(`/{media}?id=eq.${id}&select=*`); + const row = current && current[0]; + if (!row) return json(404, { ok: false, error: 'Image not found' }); + await snapshotMedia(editor); + const patch = { + path, + is_placeholder: false, + width: Number(body.width) || null, + height: Number(body.height) || null, + bytes: Number(body.bytes) || null, + mime: clip(body.mime, 40) || null, + updated_at: new Date().toISOString(), + }; + if ('alt' in body) patch.alt = clip(body.alt, 160); + const rows = await sb(`/{media}?id=eq.${id}`, { method: 'PATCH', prefer: 'return=representation', body: patch }); + const updated = rows && rows[0]; + if (!row.is_placeholder && !row.path.startsWith('/') && row.path !== path) await deleteObjects([row.path]); + return json(200, await withPurge({ ok: true, media: { ...updated, view: toView(updated) } })); +} + +async function patchMedia(req, id) { + const body = await readJson(req, 8192); + const patch = { updated_at: new Date().toISOString() }; + if ('alt' in body) patch.alt = clip(body.alt, 160); + if ('caption' in body) patch.caption = clip(body.caption, 160); + if ('category' in body) patch.category = clip(body.category, 40); + if ('featured' in body) patch.featured = Boolean(body.featured); + if (patch.featured) { + await sb('/{media}?featured=eq.true', { method: 'PATCH', prefer: 'return=minimal', body: { featured: false } }); + } + const rows = await sb(`/{media}?id=eq.${id}`, { method: 'PATCH', prefer: 'return=representation', body: patch }); + const row = rows && rows[0]; + if (!row) return json(404, { ok: false, error: 'Image not found' }); + return json(200, await withPurge({ ok: true, media: { ...row, view: toView(row) } })); +} + +async function deleteMedia(id) { + const rows = await sb(`/{media}?id=eq.${id}`, { method: 'DELETE', prefer: 'return=representation' }); + const row = rows && rows[0]; + if (!row) return json(404, { ok: false, error: 'Image not found' }); + if (!row.is_placeholder && !row.path.startsWith('/')) await deleteObjects([row.path]); + return json(200, await withPurge({ ok: true })); +} + +async function reorderMedia(req) { + const body = await readJson(req, 64 * 1024); + const ids = Array.isArray(body.ids) ? body.ids.filter((id) => UUID_RE.test(String(id))) : []; + if (!ids.length) return json(400, { ok: false, error: 'No ids' }); + await Promise.all( + ids.map((id, i) => + sb(`/{media}?id=eq.${id}`, { method: 'PATCH', prefer: 'return=minimal', body: { sort: (i + 1) * 10 } }) + ) + ); + return json(200, await withPurge({ ok: true })); +} + +async function removePlaceholders() { + await sb('/{media}?is_placeholder=eq.true', { method: 'DELETE', prefer: 'return=minimal' }); + return json(200, await withPurge({ ok: true })); +} + +async function snapshotMedia(editor) { + const rows = await sb('/{media}?select=*&order=sort.asc'); + await sb('/{revisions}', { + method: 'POST', + prefer: 'return=minimal', + body: { editor_id: editor.id, kind: 'media', snapshot: rows || [] }, + }).catch(() => {}); +} + +// --- editors (owner only) -------------------------------------------------- + +function requireOwner(editor) { + if (editor.role !== 'owner') throw Object.assign(new Error('Owner access required'), { status: 403 }); +} + +async function listEditors() { + const rows = await sb('/{editors}?select=id,email,role,created_at,last_login_at&order=created_at.asc'); + return json(200, { ok: true, editors: rows || [] }); +} + +async function addEditor(req, editor) { + const body = await readJson(req, 4096); + const email = String(body.email || '').trim().toLowerCase(); + const role = body.role === 'owner' ? 'owner' : 'editor'; + if (!EMAIL_RE.test(email) || email.length > 120) return json(400, { ok: false, error: 'Enter a valid email' }); + const existing = await sb(`/{editors}?email=ilike.${encodeURIComponent(email)}&select=id`); + if (existing && existing.length) return json(409, { ok: false, error: 'That email can already sign in' }); + const rows = await sb('/{editors}', { + method: 'POST', + prefer: 'return=representation', + body: { email, role, invited_by: editor.id }, + }); + return json(200, { ok: true, editor: rows && rows[0] }); +} + +async function removeEditor(id, editor) { + if (id === editor.id) return json(400, { ok: false, error: 'You cannot remove yourself' }); + const owners = await sb('/{editors}?role=eq.owner&select=id'); + const target = await sb(`/{editors}?id=eq.${id}&select=id,role`); + if (!target || !target[0]) return json(404, { ok: false, error: 'Not found' }); + if (target[0].role === 'owner' && owners.length <= 1) return json(400, { ok: false, error: 'Keep at least one owner' }); + await sb(`/{editors}?id=eq.${id}`, { method: 'DELETE', prefer: 'return=minimal' }); + return json(200, { ok: true }); +} + +// --- router ---------------------------------------------------------------- + +export default async (req) => { + try { + const editor = await requireEditor(req); + if (req.method !== 'GET' && !sameOrigin(req)) return json(403, { ok: false, error: 'Cross-origin request blocked' }); + const url = new URL(req.url); + const parts = url.pathname.replace(/^\/api\/admin\/?/, '').split('/').filter(Boolean); + const [head, second, third] = parts; + const m = req.method; + + if (head === 'content' && m === 'PUT') { + const body = await readJson(req); + const content = await publishContent(editor, body.content); + return json(200, await withPurge({ ok: true, content })); + } + if (head === 'revisions' && !second && m === 'GET') { + const rows = await sb( + '/{revisions}?kind=eq.content&select=id,created_at,editor_id,editor:{editors}(email)&order=created_at.desc&limit=30' + ); + return json(200, { ok: true, revisions: rows || [] }); + } + if (head === 'revisions' && second && third === 'restore' && m === 'POST') { + const rows = await sb(`/{revisions}?id=eq.${encodeURIComponent(second)}&kind=eq.content&select=snapshot`); + if (!rows || !rows[0]) return json(404, { ok: false, error: 'Revision not found' }); + const content = await publishContent(editor, rows[0].snapshot); + return json(200, await withPurge({ ok: true, content })); + } + + if (head === 'media') { + if (second === 'upload-url' && m === 'POST') return await uploadUrl(req); + if (!second && m === 'POST') return await registerMedia(req, editor); + if (second === 'order' && m === 'PUT') return await reorderMedia(req); + if (second === 'remove-placeholders' && m === 'POST') { + await snapshotMedia(editor); + return await removePlaceholders(); + } + if (second && UUID_RE.test(second) && third === 'replace' && m === 'POST') return await replaceMedia(req, second, editor); + if (second && UUID_RE.test(second) && m === 'PATCH') return await patchMedia(req, second); + if (second && UUID_RE.test(second) && m === 'DELETE') { + await snapshotMedia(editor); + return await deleteMedia(second); + } + } + + if (head === 'editors') { + requireOwner(editor); + if (!second && m === 'GET') return await listEditors(); + if (!second && m === 'POST') return await addEditor(req, editor); + if (second && UUID_RE.test(second) && m === 'DELETE') return await removeEditor(second, editor); + } + + if (head === 'site' && m === 'GET') { + const site = await loadSite(); + return json(200, { ok: true, ...site }); + } + + return json(404, { ok: false, error: 'Unknown endpoint' }); + } catch (err) { + return handleError(err); + } +}; + +export const config = { path: '/api/admin/*' }; diff --git a/clients/legacy-care-llc/netlify/functions/auth.mjs b/clients/legacy-care-llc/netlify/functions/auth.mjs new file mode 100644 index 00000000..431e6a57 --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/auth.mjs @@ -0,0 +1,129 @@ +// Owner sign-in: passwordless magic links. +// +// POST /api/auth/request { email } → always { ok:true } (never leaks who can edit) +// POST /api/auth/verify { token } → sets the session cookie +// GET /api/auth/me → { editor } or 401 +// POST /api/auth/logout → clears the cookie +// +// Bootstrap: emails listed in _OWNER_EMAILS (comma-separated) are +// auto-provisioned as owners the first time they request a link, so a new +// client email can be added without touching the database. + +import { sb } from './lib/db.mjs'; +import { config as site, siteEnv, siteName } from './lib/config.mjs'; +import { hashToken, newLoginToken, sessionCookie, signSession } from './lib/session.mjs'; +import { emailConfigured, sendLoginEmail } from './lib/email.mjs'; +import { clientIp, currentEditor, handleError, json, readJson, sameOrigin } from './lib/http.mjs'; + +const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/; +const TOKEN_TTL_MIN = 20; +const MAX_LINKS_PER_HOUR = 5; + +function ownerAllowlist() { + return (siteEnv('OWNER_EMAILS') || '') + .split(',') + .map((s) => s.trim().toLowerCase()) + .filter(Boolean); +} + +async function findEditor(email) { + const rows = await sb(`/{editors}?email=ilike.${encodeURIComponent(email)}&select=id,email,role`); + if (rows && rows[0]) return rows[0]; + if (ownerAllowlist().includes(email.toLowerCase())) { + const created = await sb('/{editors}', { + method: 'POST', + prefer: 'return=representation', + body: { email: email.toLowerCase(), role: 'owner' }, + }); + return created && created[0] ? created[0] : null; + } + return null; +} + +async function requestLink(req) { + const body = await readJson(req, 4096); + const email = String(body.email || '').trim().toLowerCase(); + if (!EMAIL_RE.test(email) || email.length > 120) return json(400, { ok: false, error: 'Enter a valid email' }); + + const editor = await findEditor(email); + // Same response either way so the endpoint cannot be used to enumerate editors. + if (!editor) return json(200, { ok: true, sent: true }); + + const since = new Date(Date.now() - 3600 * 1000).toISOString(); + const recent = await sb( + `/{login_tokens}?editor_id=eq.${editor.id}&created_at=gte.${encodeURIComponent(since)}&select=id` + ); + if (recent && recent.length >= MAX_LINKS_PER_HOUR) return json(200, { ok: true, sent: true }); + + const token = newLoginToken(); + await sb('/{login_tokens}', { + method: 'POST', + prefer: 'return=minimal', + body: { + editor_id: editor.id, + token_hash: hashToken(token), + expires_at: new Date(Date.now() + TOKEN_TTL_MIN * 60 * 1000).toISOString(), + request_ip: clientIp(req) || null, + }, + }); + + const url = new URL(req.url); + const link = `${url.protocol}//${url.host}/admin/?t=${token}`; + if (!emailConfigured()) { + // Local/dev: no sender configured. The link is only ever logged, never returned. + console.log(`[${site.slug} auth] email not configured; sign-in link for ${email}: ${link}`); + return json(200, { ok: true, sent: false, reason: 'email-unconfigured' }); + } + const sent = await sendLoginEmail({ to: editor.email, link, siteName: siteName() }); + if (!sent.ok) console.warn(`[${site.slug} auth] send failed:`, sent.reason); + return json(200, { ok: true, sent: true }); +} + +async function verify(req) { + const body = await readJson(req, 4096); + const token = String(body.token || ''); + if (!/^[A-Za-z0-9_-]{20,100}$/.test(token)) return json(400, { ok: false, error: 'Invalid link' }); + + const rows = await sb( + `/{login_tokens}?token_hash=eq.${hashToken(token)}&select=id,editor_id,expires_at,used_at` + ); + const row = rows && rows[0]; + if (!row || row.used_at || new Date(row.expires_at).getTime() < Date.now()) { + return json(400, { ok: false, error: 'This link has expired or was already used. Request a new one.' }); + } + await sb(`/{login_tokens}?id=eq.${row.id}`, { + method: 'PATCH', + prefer: 'return=minimal', + body: { used_at: new Date().toISOString() }, + }); + await sb(`/{editors}?id=eq.${row.editor_id}`, { + method: 'PATCH', + prefer: 'return=minimal', + body: { last_login_at: new Date().toISOString() }, + }).catch(() => {}); + const editors = await sb(`/{editors}?id=eq.${row.editor_id}&select=id,email,role`); + const editor = editors && editors[0]; + if (!editor) return json(400, { ok: false, error: 'This account no longer exists.' }); + return json(200, { ok: true, editor }, { 'Set-Cookie': sessionCookie(signSession(editor.id)) }); +} + +export default async (req, context) => { + const action = context.params && context.params.action; + try { + if (action === 'me') { + if (req.method !== 'GET') return json(405, { ok: false, error: 'GET only' }); + const editor = await currentEditor(req); + return editor ? json(200, { ok: true, editor }) : json(401, { ok: false, error: 'Not signed in' }); + } + if (req.method !== 'POST') return json(405, { ok: false, error: 'POST only' }); + if (!sameOrigin(req)) return json(403, { ok: false, error: 'Cross-origin request blocked' }); + if (action === 'request') return await requestLink(req); + if (action === 'verify') return await verify(req); + if (action === 'logout') return json(200, { ok: true }, { 'Set-Cookie': sessionCookie('', { clear: true }) }); + return json(404, { ok: false, error: 'Unknown action' }); + } catch (err) { + return handleError(err); + } +}; + +export const config = { path: '/api/auth/:action' }; diff --git a/clients/legacy-care-llc/netlify/functions/content.mjs b/clients/legacy-care-llc/netlify/functions/content.mjs new file mode 100644 index 00000000..dc420b37 --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/content.mjs @@ -0,0 +1,27 @@ +// GET /api/content — the current document, media, the editing schema, and +// the site identity (name, logo, theme) the admin brands itself with. Read by +// the admin UI. Safe to expose: it is exactly what the page shows. + +import { loadSite, toView } from './lib/content.mjs'; +import { schemaForClient } from './lib/site.mjs'; +import { json, handleError } from './lib/http.mjs'; + +export default async (req) => { + if (req.method !== 'GET') return json(405, { ok: false, error: 'GET only' }); + try { + const { content, media, source, updated_at, site } = await loadSite(); + return json(200, { + ok: true, + content, + media: media.map((row) => ({ ...row, view: toView(row) })), + schema: schemaForClient(), + site, + source, + updated_at, + }); + } catch (err) { + return handleError(err); + } +}; + +export const config = { path: '/api/content' }; diff --git a/clients/legacy-care-llc/netlify/functions/lib/admin-page.mjs b/clients/legacy-care-llc/netlify/functions/lib/admin-page.mjs new file mode 100644 index 00000000..a53bb1c0 --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/lib/admin-page.mjs @@ -0,0 +1,132 @@ +// The owner editor's HTML, server-rendered so the site's theme, fonts, name +// and logo are in the first byte (no flash of a default look) and the asset +// version comes from site.config.mjs. Behaviour lives in public/admin/admin.js, +// styling in public/admin/admin.css (which reads only the injected tokens). + +import { config } from './config.mjs'; +import { escapeHtml as e } from './html.mjs'; +import { adminThemeVars } from './theme.mjs'; + +function fontLinks() { + if (!config.fonts.googleCss) return ''; + return ` + +`; +} + +export function renderAdminPage() { + const name = config.name; + const v = e(config.assetVersion); + const brand = (tag = '') => `
${config.logo}${e(name)}${tag}
`; + return ` + + + + +${e(name)} · Editor + + + +${fontLinks()} + + + + +
+ + + + + + + +
+
+ + +`; +} diff --git a/clients/legacy-care-llc/netlify/functions/lib/blocks.mjs b/clients/legacy-care-llc/netlify/functions/lib/blocks.mjs new file mode 100644 index 00000000..c4827120 --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/lib/blocks.mjs @@ -0,0 +1,180 @@ +// Building blocks for site/page.mjs. A renderer composes these so the parts +// that must be right (escaping, image CDN URLs, meta tags, JSON-LD, the CTA +// resolution, the lightbox data) are never re-implemented per client. +// +// Everything here returns strings of HTML. Every value that came from the +// owner is escaped here or by the caller with e(). + +import { config, siteName } from './config.mjs'; +import { e, instagramUrl, jsonForScript, paragraphs, smsHref, telHref } from './html.mjs'; + +export { e, paragraphs, telHref, smsHref, instagramUrl, jsonForScript }; +export { config }; + +// --- theme ----------------------------------------------------------------- + +import { siteThemeVars } from './theme.mjs'; +export { hexToRgb, mix, luminance } from './theme.mjs'; + +// :root custom properties from config.theme + config.fonts. Hex colors also +// get "-rgb: r g b" so CSS can write rgb(var(--accent-rgb) / .3). +export function themeVars() { + return siteThemeVars(); +} + +export function themeStyle() { + return ``; +} + +export function fontLinks() { + if (!config.fonts.googleCss) return ''; + return ` + +`; +} + +// --- head ------------------------------------------------------------------ + +// Everything inside except the renderer's own extras. `origin` is the +// request origin (canonical + og:url); falls back to config.productionUrl. +export function headTags({ content, featured, origin = '', title, description, extra = '' }) { + const base = origin || config.productionUrl; + const t = title || (content.seo && content.seo.title) || (content.brand && content.brand.name) || siteName(); + const d = description || (content.seo && content.seo.description) || ''; + const ogImage = featured ? new URL(featured.full, base).href : ''; + return ` + +${e(t)} + + + + + + +${ogImage ? `` : ''} + + + +${fontLinks()} +${themeStyle()} + +${extra}`; +} + +export function jsonLd(content, origin, featured, overrides = {}) { + const base = origin || config.productionUrl; + const c = content.contact || {}; + const data = { + '@context': 'https://schema.org', + '@type': 'LocalBusiness', + name: content.brand && content.brand.name, + description: content.seo && content.seo.description, + url: `${base}/`, + telephone: c.phone || undefined, + email: c.email || undefined, + image: featured ? new URL(featured.full, base).href : undefined, + sameAs: instagramUrl(c.instagram) || undefined, + ...overrides, + }; + return ``; +} + +// --- calls to action ------------------------------------------------------- + +// Resolves the primary action in priority order: booking link → phone → +// email → in-page anchor. Never null, so a site always has a next step. +export function primaryCta(content, { anchor = '#book', label } = {}) { + const c = content.contact || {}; + const fallback = label || (content.hero && content.hero.cta_primary) || c.cta_label || 'Book now'; + const url = String(c.booking_url || '').trim(); + if (/^https?:\/\//i.test(url)) return { kind: 'book', href: url, label: fallback, external: true }; + const tel = telHref(c.phone); + if (tel) return { kind: 'call', href: tel, label: fallback, external: false }; + if (c.email) return { kind: 'email', href: `mailto:${c.email}`, label: fallback, external: false }; + return { kind: 'anchor', href: anchor, label: fallback, external: false }; +} + +export const ICONS = { + phone: + '', + arrow: + '', + message: + '', + mail: + '', + calendar: + '', +}; + +// A primary button for the resolved CTA. `cls` adds classes; the icon follows the kind. +export function ctaButton(cta, cls = '', { magnetic = true } = {}) { + const icon = cta.kind === 'call' ? ICONS.phone : cta.kind === 'email' ? ICONS.mail : cta.kind === 'book' ? ICONS.calendar : ''; + const ext = cta.external ? ' target="_blank" rel="noopener"' : ''; + return `${icon}${e(cta.label)}`; +} + +// --- images ---------------------------------------------------------------- + +// for a media view (from lib/content.mjs toView). Uploads get srcset via +// the Image CDN; placeholders/site-relative files are served as-is. +export function img(view, { sizes = '100vw', cls = '', eager = false, alt } = {}) { + if (!view) return ''; + const srcset = view.srcset ? ` srcset="${e(view.srcset)}" sizes="${e(sizes)}"` : ''; + const load = eager ? ' fetchpriority="high"' : ' loading="lazy"'; + return ``; +} + +// The lightbox's data (kept out of the markup). site.js reads #site-media. +export function mediaJson(views) { + const data = views.map((m) => ({ src: m.full, alt: m.alt, caption: m.caption, category: m.category })); + return ``; +} + +export function lightboxHtml() { + return ``; +} + +// --- chrome ---------------------------------------------------------------- + +// Word-split headline for per-word reveal animations. +export function words(text, cls = 'w') { + return String(text) + .split(/\s+/) + .filter(Boolean) + .map((w, i) => `${e(w)}`) + .join(' '); +} + +export function logo() { + return config.logo; +} + +// Footer links every HAND-built site carries: the maker credit (unless +// white-label) and the owner sign-in. +export function footerLinks() { + const made = config.madeBy.label + ? `${e(config.madeBy.label)}` + : ''; + return ``; +} + +// Sticky mobile action bar (site.css shows it under 860px once past the hero). +export function callbarHtml(cta) { + return `
${ctaButton(cta, '', { magnetic: false })}
`; +} + +export function siteScript() { + return ``; +} + +export function year() { + return String(new Date().getFullYear()); +} diff --git a/clients/legacy-care-llc/netlify/functions/lib/config.mjs b/clients/legacy-care-llc/netlify/functions/lib/config.mjs new file mode 100644 index 00000000..642bfb5e --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/lib/config.mjs @@ -0,0 +1,76 @@ +// Normalized site config + everything derived from it (table names, bucket, +// cookie, env names). Import THIS in engine code, never site.config.mjs. + +import raw from '../../../site.config.mjs'; + +function must(cond, msg) { + if (!cond) throw new Error(`site.config.mjs: ${msg}`); +} + +export function normalizeConfig(c) { + must(c && typeof c === 'object', 'must export an object'); + must(/^[a-z0-9][a-z0-9-]{1,48}$/.test(c.slug || ''), 'slug must be lowercase [a-z0-9-], 2-49 chars'); + must(c.name && String(c.name).trim(), 'name is required'); + must(c.theme && c.theme.bg && c.theme.ink && c.theme.accent, 'theme needs bg, ink, accent'); + must(c.theme.admin === undefined || (c.theme.admin && typeof c.theme.admin === 'object'), 'theme.admin must be an object of feel tokens'); + const slug = c.slug; + const dbPrefix = slug.replace(/-/g, '_'); + const envPrefix = c.envPrefix || dbPrefix.toUpperCase(); + return { + ...c, + theme: { ...c.theme, admin: c.theme.admin || {} }, + slug, + dbPrefix, + envPrefix, + productionUrl: String(c.productionUrl || `https://${slug}.netlify.app`).replace(/\/$/, ''), + supabase: { projectRef: '', schema: 'command', ...(c.supabase || {}) }, + assetVersion: c.assetVersion || '1', + fonts: { googleCss: '', display: 'system-ui, sans-serif', body: 'system-ui, sans-serif', ...(c.fonts || {}) }, + logo: c.logo || '', + nav: Array.isArray(c.nav) ? c.nav : [], + labels: c.labels || {}, + media: { seed: [], placeholderPalette: [], ...(c.media || {}) }, + madeBy: { label: 'Made by HAND', href: 'https://handprotocol.org', ...(c.madeBy || {}) }, + tables: { + editors: `${dbPrefix}_editors`, + login_tokens: `${dbPrefix}_login_tokens`, + content: `${dbPrefix}_content`, + media: `${dbPrefix}_media`, + revisions: `${dbPrefix}_revisions`, + }, + bucket: slug, + cacheTag: slug, + cookie: `${dbPrefix}_session`, + }; +} + +export const config = normalizeConfig(raw); +export const TABLES = config.tables; +export const BUCKET = config.bucket; + +// Site-scoped env var: env('SESSION_SECRET') → process.env._SESSION_SECRET +export function siteEnv(key) { + return process.env[`${config.envPrefix}_${key}`] || ''; +} + +export function siteName() { + return siteEnv('SITE_NAME') || config.name; +} + +// Seed rows in the shape of a _media row (used with no DB, and by the +// migration generator). +export function seedMedia() { + return config.media.seed.map((m, i) => ({ + id: m.id || `00000000-0000-4000-8000-${String(i + 1).padStart(12, '0')}`, + sort: (i + 1) * 10, + path: m.path, + is_placeholder: Boolean(m.placeholder), + alt: m.alt || '', + caption: m.caption || '', + category: m.category || '', + featured: Boolean(m.featured), + width: m.width || null, + height: m.height || null, + mime: m.mime || (m.path.endsWith('.svg') ? 'image/svg+xml' : m.path.endsWith('.png') ? 'image/png' : m.path.endsWith('.webp') ? 'image/webp' : 'image/jpeg'), + })); +} diff --git a/clients/legacy-care-llc/netlify/functions/lib/content.mjs b/clients/legacy-care-llc/netlify/functions/lib/content.mjs new file mode 100644 index 00000000..da76a633 --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/lib/content.mjs @@ -0,0 +1,72 @@ +// Loads the site document + media from Supabase, falling back to defaults so +// the page always renders (even with no database configured, e.g. local +// preview). + +import { config, seedMedia } from './config.mjs'; +import { CONTENT_KEY, DEFAULT_CONTENT, sanitize } from './site.mjs'; +import { dbConfigured, publicObjectUrl, sb } from './db.mjs'; + +export const IMAGE_WIDTHS = [480, 800, 1200, 1600, 2000]; + +export { seedMedia }; + +function imageCdn(url, w) { + return `/.netlify/images?url=${encodeURIComponent(url)}&w=${w}&q=78&fm=webp`; +} + +// Adds the URLs the page needs (src, srcset, full). +export function toView(row) { + const isLocal = row.is_placeholder || row.path.startsWith('/'); + const original = isLocal ? row.path : publicObjectUrl(row.path); + const width = Number(row.width) || 1200; + const height = Number(row.height) || 900; + // SVGs are served as-is. Raster files (uploads, or photos shipped with the + // site under public/img) go through the Image CDN, which also accepts + // site-relative paths. SITE_STATIC_PREVIEW=1 (render-static) has no CDN. + const resizable = !/\.svg$/i.test(row.path) && !process.env.SITE_STATIC_PREVIEW; + const view = { + id: row.id, + alt: row.alt || '', + caption: row.caption || '', + category: row.category || '', + featured: Boolean(row.featured), + is_placeholder: Boolean(row.is_placeholder), + width, + height, + original, + src: original, + srcset: '', + full: original, + }; + if (resizable) { + const widths = IMAGE_WIDTHS.filter((w) => w <= Math.max(width, 480)); + view.src = imageCdn(original, Math.min(1200, Math.max(width, 480))); + view.srcset = widths.map((w) => `${imageCdn(original, w)} ${w}w`).join(', '); + view.full = imageCdn(original, Math.min(2000, Math.max(width, 480))); + } + return view; +} + +export async function loadSite() { + if (!dbConfigured()) { + return { content: sanitize(DEFAULT_CONTENT), media: seedMedia(), source: 'defaults', updated_at: null, site: siteInfo() }; + } + const [rows, mediaRows] = await Promise.all([ + sb(`/{content}?key=eq.${CONTENT_KEY}&select=value,updated_at`), + sb('/{media}?select=*&order=sort.asc,created_at.asc'), + ]); + const content = rows && rows[0] ? sanitize(rows[0].value) : sanitize(DEFAULT_CONTENT); + const media = mediaRows && mediaRows.length ? mediaRows : seedMedia(); + return { + content, + media, + source: rows && rows[0] ? 'db' : 'defaults', + updated_at: rows && rows[0] ? rows[0].updated_at : null, + site: siteInfo(), + }; +} + +// What the admin needs to brand itself. Safe to expose (it is on the page). +export function siteInfo() { + return { slug: config.slug, name: config.name, logo: config.logo, theme: config.theme, assetVersion: config.assetVersion }; +} diff --git a/clients/legacy-care-llc/netlify/functions/lib/db.mjs b/clients/legacy-care-llc/netlify/functions/lib/db.mjs new file mode 100644 index 00000000..3b731463 --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/lib/db.mjs @@ -0,0 +1,131 @@ +// Supabase REST + Storage helpers. Service role only; these never run in the +// browser. Table names come from site.config.mjs via ./config.mjs: write +// paths as '/{media}?select=*' and the placeholders resolve to +// '_media'. +// +// Env: SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY + +import { BUCKET, TABLES, config } from './config.mjs'; + +export { BUCKET }; +const SCHEMA = config.supabase.schema; + +function env(name) { + return process.env[name] || ''; +} + +export function supabaseUrl() { + return env('SUPABASE_URL').replace(/\/$/, ''); +} + +export function dbConfigured() { + return Boolean(env('SUPABASE_URL') && env('SUPABASE_SERVICE_ROLE_KEY')); +} + +function authHeaders(extra = {}) { + const key = env('SUPABASE_SERVICE_ROLE_KEY'); + return { apikey: key, Authorization: `Bearer ${key}`, ...extra }; +} + +// '/{media}?x' → '/_media?x'. Unknown names throw so a typo cannot +// silently query the wrong table. +export function resolveTables(path) { + return String(path).replace(/\{(\w+)\}/g, (_, name) => { + if (!TABLES[name]) throw new Error(`db: unknown table placeholder {${name}}`); + return TABLES[name]; + }); +} + +export async function sb(path, { method = 'GET', body, prefer } = {}) { + const headers = authHeaders({ + 'Content-Type': 'application/json', + 'Accept-Profile': SCHEMA, + 'Content-Profile': SCHEMA, + }); + if (prefer) headers.Prefer = prefer; + const res = await fetch(`${supabaseUrl()}/rest/v1${resolveTables(path)}`, { + method, + headers, + body: body === undefined ? undefined : JSON.stringify(body), + }); + if (!res.ok) { + const detail = await res.text().catch(() => ''); + const err = new Error(`supabase ${method} ${path} → ${res.status}: ${detail.slice(0, 300)}`); + err.status = res.status; + throw err; + } + if (res.status === 204) return null; + return res.json().catch(() => null); +} + +// --- storage ------------------------------------------------------------- + +export function publicObjectUrl(path) { + return `${supabaseUrl()}/storage/v1/object/public/${BUCKET}/${path.split('/').map(encodeURIComponent).join('/')}`; +} + +// Mints a signed upload URL the browser can PUT the file to directly, so big +// photos never pass through the function's 6 MB body limit. +export async function createSignedUpload(path) { + const res = await fetch(`${supabaseUrl()}/storage/v1/object/upload/sign/${BUCKET}/${path}`, { + method: 'POST', + headers: authHeaders({ 'Content-Type': 'application/json' }), + body: '{}', + }); + if (!res.ok) { + const detail = await res.text().catch(() => ''); + throw new Error(`storage sign ${res.status}: ${detail.slice(0, 200)}`); + } + const data = await res.json(); + // data.url is relative to the storage API root, e.g. + // /object/upload/sign//uploads/x.jpg?token=… — concatenate, do not + // URL-resolve (a leading slash would discard the /storage/v1 prefix). + const url = `${supabaseUrl()}/storage/v1${data.url.startsWith('/') ? '' : '/'}${data.url}`; + const token = new URL(url).searchParams.get('token'); + return { uploadUrl: url, token }; +} + +// True when the object is actually in the bucket (used before registering a +// media row so a failed browser upload never leaves a broken gallery tile). +export async function objectExists(path) { + const res = await fetch(publicObjectUrl(path), { method: 'HEAD' }); + return res.ok; +} + +export async function deleteObjects(paths) { + if (!paths.length) return; + const res = await fetch(`${supabaseUrl()}/storage/v1/object/${BUCKET}`, { + method: 'DELETE', + headers: authHeaders({ 'Content-Type': 'application/json' }), + body: JSON.stringify({ prefixes: paths }), + }); + if (!res.ok) { + const detail = await res.text().catch(() => ''); + console.warn(`storage delete ${res.status}: ${detail.slice(0, 200)}`); + } +} + +// --- cache purge ----------------------------------------------------------- + +// Netlify injects NETLIFY_PURGE_API_TOKEN + SITE_ID into the functions +// runtime. Best effort: the CDN entry also expires on its own (s-maxage). +export async function purgeSiteCache() { + const token = env('NETLIFY_PURGE_API_TOKEN'); + const siteId = env('SITE_ID'); + if (!token || !siteId) return { ok: false, reason: 'purge-unconfigured' }; + try { + const res = await fetch('https://api.netlify.com/api/v1/purge', { + method: 'POST', + headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' }, + body: JSON.stringify({ site_id: siteId, cache_tags: [config.cacheTag] }), + }); + if (!res.ok) { + console.warn(`purge failed ${res.status}: ${(await res.text().catch(() => '')).slice(0, 200)}`); + return { ok: false, reason: `purge-${res.status}` }; + } + return { ok: true }; + } catch (err) { + console.warn('purge threw:', err && err.message); + return { ok: false, reason: 'purge-network' }; + } +} diff --git a/clients/legacy-care-llc/netlify/functions/lib/email.mjs b/clients/legacy-care-llc/netlify/functions/lib/email.mjs new file mode 100644 index 00000000..c9681d5f --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/lib/email.mjs @@ -0,0 +1,52 @@ +// Magic-link email via Resend. Best effort: returns { ok:false } when the +// sender is not configured instead of throwing. Colors come from the theme. +// +// Env: RESEND_API_KEY, EMAIL_FROM (verified sender, e.g. "Studio ") + +import { config, siteName } from './config.mjs'; +import { escapeHtml } from './html.mjs'; + +export function emailConfigured() { + return Boolean(process.env.RESEND_API_KEY && process.env.EMAIL_FROM); +} + +export function loginEmailHtml({ link, name }) { + const t = config.theme; + const bg = t.bg, card = t['bg-2'] || t.bg, ink = t.ink, muted = t['ink-3'] || t['ink-2'] || t.ink, accent = t.accent, accent2 = t['accent-2'] || t.accent, onAccent = t['on-accent'] || '#ffffff'; + return ` +
+
+

${escapeHtml(name)}

+

Sign in to edit your site

+

Tap the button to open the editor. The link works once and expires in 20 minutes.

+

Open the editor

+

If the button doesn't work, paste this into your browser:
${escapeHtml(link)}

+

Didn't request this? You can ignore it.

+
+
`; +} + +export async function sendLoginEmail({ to, link, siteName: nameOverride }) { + if (!emailConfigured()) return { ok: false, reason: 'email-unconfigured' }; + const name = nameOverride || siteName(); + const subject = `Your ${name} sign-in link`; + const text = `Sign in to edit ${name}:\n\n${link}\n\nThis link works once and expires in 20 minutes. If you didn't request it, ignore this email.`; + const html = loginEmailHtml({ link, name }); + try { + const res = await fetch('https://api.resend.com/emails', { + method: 'POST', + headers: { Authorization: `Bearer ${process.env.RESEND_API_KEY}`, 'Content-Type': 'application/json' }, + body: JSON.stringify({ from: process.env.EMAIL_FROM, to, subject, html, text }), + }); + if (!res.ok) { + const body = await res.text().catch(() => ''); + console.warn(`[email] resend ${res.status}: ${body.slice(0, 200)}`); + return { ok: false, reason: `email-${res.status}` }; + } + const data = await res.json().catch(() => ({})); + return { ok: true, id: data.id }; + } catch (err) { + console.warn('[email] resend threw:', err && err.message); + return { ok: false, reason: 'email-network' }; + } +} diff --git a/clients/legacy-care-llc/netlify/functions/lib/html.mjs b/clients/legacy-care-llc/netlify/functions/lib/html.mjs new file mode 100644 index 00000000..f2735fd9 --- /dev/null +++ b/clients/legacy-care-llc/netlify/functions/lib/html.mjs @@ -0,0 +1,43 @@ +// Small HTML helpers shared by the renderer. + +export function escapeHtml(input) { + return String(input == null ? '' : input) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); +} + +export const e = escapeHtml; + +// Multi-line text → paragraphs (blank line = new paragraph, single newline =
). +export function paragraphs(text, className) { + const cls = className ? ` class="${className}"` : ''; + return String(text || '') + .split(/\n{2,}/) + .map((p) => p.trim()) + .filter(Boolean) + .map((p) => `${escapeHtml(p).replace(/\n/g, '
')}

`) + .join(''); +} + +export function telHref(phone) { + const digits = String(phone || '').replace(/[^\d+]/g, ''); + return digits ? `tel:${digits}` : ''; +} + +export function smsHref(phone) { + const digits = String(phone || '').replace(/[^\d+]/g, ''); + return digits ? `sms:${digits}` : ''; +} + +export function instagramUrl(handle) { + const h = String(handle || '').trim().replace(/^@/, '').replace(/^https?:\/\/(www\.)?instagram\.com\//i, '').replace(/\/$/, ''); + return h ? `https://instagram.com/${encodeURIComponent(h)}` : ''; +} + +export function jsonForScript(value) { + // Safe to embed inside ' }).includes(''), false); +}); diff --git a/clients/legacy-care-llc/tests/migration.test.mjs b/clients/legacy-care-llc/tests/migration.test.mjs new file mode 100644 index 00000000..ef862435 --- /dev/null +++ b/clients/legacy-care-llc/tests/migration.test.mjs @@ -0,0 +1,25 @@ +import { test } from 'node:test'; +import assert from 'node:assert/strict'; +import { migrationSql } from '../scripts/gen-migration.mjs'; +import { config, seedMedia } from '../netlify/functions/lib/config.mjs'; +import { netlifyToml } from '../scripts/gen-netlify-toml.mjs'; + +test('migration creates the five prefixed tables, RLS, bucket, seeds, first owner', () => { + const sql = migrationSql(); + for (const t of Object.values(config.tables)) { + assert.match(sql, new RegExp(`create table if not exists command\\.${t} \\(`)); + assert.match(sql, new RegExp(`alter table command\\.${t} enable row level security`)); + assert.match(sql, new RegExp(`revoke all on command\\.${t} from anon, authenticated`)); + } + assert.match(sql, new RegExp(`'${config.bucket}', '${config.bucket}', true`)); + assert.equal((sql.match(/00000000-0000-4000-8000-/g) || []).length, seedMedia().length); + assert.match(sql, /hand@handprotocol\.org/); + assert.equal(sql.includes('zeroblur'), false); +}); + +test('netlify.toml allow-lists exactly this bucket on the project host', () => { + const toml = netlifyToml(); + assert.match(toml, new RegExp(`storage/v1/object/public/${config.bucket}/`)); + assert.match(toml, /publish = "public"/); + assert.match(toml, /X-Robots-Tag = "noindex, nofollow"/); +}); diff --git a/clients/legacy-care-llc/tests/page.test.mjs b/clients/legacy-care-llc/tests/page.test.mjs new file mode 100644 index 00000000..fdac494e --- /dev/null +++ b/clients/legacy-care-llc/tests/page.test.mjs @@ -0,0 +1,75 @@ +import { test } from 'node:test'; +import assert from 'node:assert/strict'; +import { seedMedia } from '../netlify/functions/lib/config.mjs'; +import { DEFAULT_CONTENT } from '../site/schema.mjs'; +import { renderPage } from '../site/page.mjs'; + +test('renders Legacy Care with editable copy, bilingual attributes, media, and admin link', () => { + const html = renderPage({ content: DEFAULT_CONTENT, media: seedMedia(), origin: 'https://example.test' }); + assert.match(html, /Legacy Care/); + assert.match(html, /data-es=/); + assert.match(html, /id="main"/); + assert.match(html, /href="\/admin\/"/); + assert.match(html, /application\/ld\+json/); + assert.match(html, /hero\.webp/); + assert.match(html, /Call 817-565-0648/); + assert.match(html, /© 2026 Legacy Care LLC\./); + assert.match(html, /
[\s\S]*Made by HAND[\s\S]*<\/footer>/); + assert.doesNotMatch(html, /\{(?:phone|year|business)\}/); +}); + +test('escapes owner copy before rendering it', () => { + const content = structuredClone(DEFAULT_CONTENT); + content.hero.copy_2 = ''; + const html = renderPage({ content, media: seedMedia() }); + assert.equal(html.includes(''), false); + assert.match(html, /<script>alert\(1\)<\/script>/); +}); + +test('existing content gains social defaults, with profiles in metadata and reviews kept separate', async () => { + const { sanitize } = await import('../netlify/functions/lib/site.mjs'); + const stored = structuredClone(DEFAULT_CONTENT); + delete stored.social; + const content = sanitize(stored); + const html = renderPage({ content, media: seedMedia(), origin: 'https://example.test' }); + for (const url of Object.values(content.social).filter((value) => value.startsWith('https:'))) { + assert.equal(html.split(`href="${url}"`).length - 1, 2); + } + const metadata = JSON.parse(html.match(/404: This page could not be found.Mystic Hearts | 9-acre healing center

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Mystic Hearts Healing Collective | East Austin

404

This page could not be found.

\ No newline at end of file diff --git a/web/mystichearts/demo/__next.__PAGE__.txt b/web/mystichearts/demo/__next.__PAGE__.txt index 07af4653..7b3de1b5 100644 --- a/web/mystichearts/demo/__next.__PAGE__.txt +++ b/web/mystichearts/demo/__next.__PAGE__.txt @@ -1,6 +1,6 @@ 1:"$Sreact.fragment" -2:I[19873,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js","/mystichearts/demo/_next/static/chunks/1xsmnrbrzndet.js"],"MysticHeartsPage"] -3:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"OutletBoundary"] +2:I[19873,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js","/mystichearts/demo/_next/static/chunks/28xk_f13smd0m.js"],"MysticHeartsPage"] +3:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"OutletBoundary"] 4:"$Sreact.suspense" -0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{}],[["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/1xsmnrbrzndet.js","async":true}]],["$","$L3",null,{"children":["$","$4",null,{"name":"Next.MetadataOutlet","children":"$@5"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"0_aG6iR2-rf-y-sYU86Nu"} +0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{}],[["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/28xk_f13smd0m.js","async":true}]],["$","$L3",null,{"children":["$","$4",null,{"name":"Next.MetadataOutlet","children":"$@5"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"C5OCFGpdAm0y76Hzc7huT"} 5:null diff --git a/web/mystichearts/demo/__next._full.txt b/web/mystichearts/demo/__next._full.txt index b2f48981..763179fb 100644 --- a/web/mystichearts/demo/__next._full.txt +++ b/web/mystichearts/demo/__next._full.txt @@ -1,16 +1,16 @@ 1:"$Sreact.fragment" -2:I[39756,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -3:I[37457,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -4:I[19873,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js","/mystichearts/demo/_next/static/chunks/1xsmnrbrzndet.js"],"MysticHeartsPage"] -5:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"OutletBoundary"] +2:I[39756,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +3:I[37457,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +4:I[19873,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js","/mystichearts/demo/_next/static/chunks/28xk_f13smd0m.js"],"MysticHeartsPage"] +5:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"OutletBoundary"] 6:"$Sreact.suspense" -8:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"ViewportBoundary"] -a:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"MetadataBoundary"] -c:I[68027,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default",1] -:HL["/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","style"] +8:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"ViewportBoundary"] +a:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"MetadataBoundary"] +c:I[68027,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default",1] +:HL["/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","style"] :HL["/mystichearts/demo/_next/static/media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/mystichearts/demo/_next/static/media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{}],[["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/1xsmnrbrzndet.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0_aG6iR2-rf-y-sYU86Nu"} +0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{}],[["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/28xk_f13smd0m.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"C5OCFGpdAm0y76Hzc7huT"} 9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] 7:null -b:[["$","title","0",{"children":"Mystic Hearts | 9-acre healing center"}],["$","meta","1",{"name":"description","content":"A cinematic preview of Mystic Hearts, a 9-acre healing center taking shape with a house, yurts, tiny homes, and practitioner-led healing modalities."}]] +b:[["$","title","0",{"children":"Mystic Hearts Healing Collective | East Austin"}],["$","meta","1",{"name":"description","content":"Ten acres of healing land in East Austin: a sober, interfaith home where people gather to heal, to practice, and to live more connected to the land and to each other."}]] diff --git a/web/mystichearts/demo/__next._head.txt b/web/mystichearts/demo/__next._head.txt index fb7a5090..7710533e 100644 --- a/web/mystichearts/demo/__next._head.txt +++ b/web/mystichearts/demo/__next._head.txt @@ -1,5 +1,5 @@ 1:"$Sreact.fragment" -2:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"ViewportBoundary"] -3:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"MetadataBoundary"] +2:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"ViewportBoundary"] +3:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"MetadataBoundary"] 4:"$Sreact.suspense" -0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Mystic Hearts | 9-acre healing center"}],["$","meta","1",{"name":"description","content":"A cinematic preview of Mystic Hearts, a 9-acre healing center taking shape with a house, yurts, tiny homes, and practitioner-led healing modalities."}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"0_aG6iR2-rf-y-sYU86Nu"} +0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Mystic Hearts Healing Collective | East Austin"}],["$","meta","1",{"name":"description","content":"Ten acres of healing land in East Austin: a sober, interfaith home where people gather to heal, to practice, and to live more connected to the land and to each other."}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"C5OCFGpdAm0y76Hzc7huT"} diff --git a/web/mystichearts/demo/__next._index.txt b/web/mystichearts/demo/__next._index.txt index 3192055d..9d26ff5e 100644 --- a/web/mystichearts/demo/__next._index.txt +++ b/web/mystichearts/demo/__next._index.txt @@ -1,5 +1,5 @@ 1:"$Sreact.fragment" -2:I[39756,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -3:I[37457,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -:HL["/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","style"] -0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"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."}]}]]}]}]],[]]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"0_aG6iR2-rf-y-sYU86Nu"} +2:I[39756,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +3:I[37457,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +:HL["/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","style"] +0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","async":true}],["$","script","script-1",{"src":"/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"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."}]}]]}]}]],[]]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"C5OCFGpdAm0y76Hzc7huT"} diff --git a/web/mystichearts/demo/__next._tree.txt b/web/mystichearts/demo/__next._tree.txt index bb94c1a3..33509077 100644 --- a/web/mystichearts/demo/__next._tree.txt +++ b/web/mystichearts/demo/__next._tree.txt @@ -1,4 +1,4 @@ -:HL["/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","style"] +:HL["/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","style"] :HL["/mystichearts/demo/_next/static/media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/mystichearts/demo/_next/static/media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"0_aG6iR2-rf-y-sYU86Nu"} +0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"C5OCFGpdAm0y76Hzc7huT"} diff --git a/web/mystichearts/demo/_next/static/0_aG6iR2-rf-y-sYU86Nu/_buildManifest.js b/web/mystichearts/demo/_next/static/C5OCFGpdAm0y76Hzc7huT/_buildManifest.js similarity index 100% rename from web/mystichearts/demo/_next/static/0_aG6iR2-rf-y-sYU86Nu/_buildManifest.js rename to web/mystichearts/demo/_next/static/C5OCFGpdAm0y76Hzc7huT/_buildManifest.js diff --git a/web/mystichearts/demo/_next/static/0_aG6iR2-rf-y-sYU86Nu/_clientMiddlewareManifest.js b/web/mystichearts/demo/_next/static/C5OCFGpdAm0y76Hzc7huT/_clientMiddlewareManifest.js similarity index 100% rename from web/mystichearts/demo/_next/static/0_aG6iR2-rf-y-sYU86Nu/_clientMiddlewareManifest.js rename to web/mystichearts/demo/_next/static/C5OCFGpdAm0y76Hzc7huT/_clientMiddlewareManifest.js diff --git a/web/mystichearts/demo/_next/static/0_aG6iR2-rf-y-sYU86Nu/_ssgManifest.js b/web/mystichearts/demo/_next/static/C5OCFGpdAm0y76Hzc7huT/_ssgManifest.js similarity index 100% rename from web/mystichearts/demo/_next/static/0_aG6iR2-rf-y-sYU86Nu/_ssgManifest.js rename to web/mystichearts/demo/_next/static/C5OCFGpdAm0y76Hzc7huT/_ssgManifest.js diff --git a/web/mystichearts/demo/_next/static/chunks/3rxl-jt3pdxgx.js b/web/mystichearts/demo/_next/static/chunks/0iec5q4ack_04.js similarity index 92% rename from web/mystichearts/demo/_next/static/chunks/3rxl-jt3pdxgx.js rename to web/mystichearts/demo/_next/static/chunks/0iec5q4ack_04.js index 57663c16..548f7837 100644 --- a/web/mystichearts/demo/_next/static/chunks/3rxl-jt3pdxgx.js +++ b/web/mystichearts/demo/_next/static/chunks/0iec5q4ack_04.js @@ -1 +1 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23755,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e.r(43369).getDeploymentId)();globalThis.NEXT_DEPLOYMENT_ID=r,("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},74575,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getAssetPrefix",{enumerable:!0,get:function(){return l}});let r=e.r(12718);function l(){let e=document.currentScript;if(!(e instanceof HTMLScriptElement))throw Object.defineProperty(new r.InvariantError(`Expected document.currentScript to be a ",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?o.createElement(l,{is:r.is}):o.createElement(l)}}a[eW]=t,a[eq]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)a.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(t.stateNode=a,ca(a,l,r),l){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&is(t)}}return ih(t),t.subtreeFlags&=-0x2000001,ic(t,t.type,null===e?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&is(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(u(166));if(e=en.current,rJ(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(l=rH))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eW]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||cn(e.nodeValue,n)))||rX(t,!0)}else(e=cs(e).createTextNode(r))[eW]=t,t.stateNode=e}return ih(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=rJ(t),null!==n){if(null===e){if(!r)throw Error(u(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(u(557));e[eW]=t}else rZ(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ih(t),e=!1}else n=r0(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e){if(256&t.flags)return ae(t),t;return ae(t),null}if(0!=(128&t.flags))throw Error(u(558))}return ih(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rJ(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(u(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(u(317));l[eW]=t}else rZ(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ih(t),l=!1}else l=r0(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(256&t.flags)return ae(t),t;return ae(t),null}}if(ae(t),0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ip(t,t.updateQueue),ih(t),null;case 4:return ea(),null===e&&s2(t.stateNode.containerInfo),t.flags|=0x4000000,ih(t),null;case 10:return r5(t.type),ih(t),null;case 19:if(ar(t),null===(r=t.memoizedState))return ih(t),null;if(l=0!=(128&t.flags),null===(a=r.rendering))if(l)im(r,!1);else{if(0!==uM||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=al(e))){for(t.flags|=128,im(r,!1),t.updateQueue=e=a.updateQueue,ip(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)rS(n,e),n=n.sibling;return an(t,1&at.current|2),rQ&&rA(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&ev()>uQ&&(t.flags|=128,l=!0,im(r,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=al(a))){if(t.flags|=128,l=!0,t.updateQueue=e=e.updateQueue,ip(t,e),im(r,!0),null===r.tail&&"collapsed"!==r.tailMode&&"visible"!==r.tailMode&&!a.alternate&&!rQ)return ih(t),null}else 2*ev()-r.renderingStartTime>uQ&&0x20000000!==n&&(t.flags|=128,l=!0,im(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}if(null!==r.tail){e=r.tail;e:{for(n=e;null!==n;){if(null!==n.alternate){n=!1;break e}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ev(),e.sibling=null,a=at.current,a=l?1&a|2:1&a,"visible"===r.tailMode||"collapsed"===r.tailMode||!n||rQ?an(t,a):(n=a,Z(l4,t),Z(at,n),null===l6&&(l6=t)),rQ&&rA(t,r.treeForkCount),e}return ih(t),null;case 22:case 23:return ae(t),l3(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(ih(t),6&t.subtreeFlags&&(t.flags|=8192)):ih(t),null!==(n=t.updateQueue)&&ip(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&J(lb),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),r5(lu),ih(t),null;case 25:return null;case 30:return t.flags|=0x2000000,ih(t),null}throw Error(u(156,t.tag))}(t.alternate,t,uR);if(null!==n){uP=n;return}if(null!==(t=t.sibling)){uP=t;return}uP=t=e}while(null!==t)0===uM&&(uM=5)}function sg(e,t){do{var n=function(e,t){switch(rB(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return r5(lu),ea(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ei(t),null;case 31:if(null!==t.memoizedState){if(ae(t),null===t.alternate)throw Error(u(340));rZ()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(ae(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(u(340));rZ()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ar(t),65536&(e=t.flags)?(t.flags=-65537&e|128,null!==(e=t.memoizedState)&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ea(),null;case 10:return r5(t.type),null;case 22:case 23:return ae(t),l3(),null!==e&&J(lb),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return r5(lu),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,uP=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){uP=e;return}uP=e=n}while(null!==e)uM=6,uP=null}function sv(e,t,n,r,l,a,o,i,s,c,f,d){e.cancelPendingCommit=null;do s_();while(0!==uK)if(0!=(6&u_))throw Error(u(327));if(null!==t){if(t===e.current)throw Error(u(177));e===ux&&(uP=ux=null,uN=0),uY=t,uX=e,uG=n,uZ=l,u0=r,function(e,t,n,r,l,a,o){var i,u=t.lanes|t.childLanes;if(uJ=u,!function(e,t,n,r,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=o&~n;0fp){i.length=o;break}d=new Promise(cN.bind(d)),i.push(d)}}}return 0g&&(o=g,g=h,h=o);var v=nV(i,h),y=nV(i,g);if(v&&y&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=f.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(f=[],p=i;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;in?32:n,W.T=null,n=uZ,uZ=null;var a=uX,o=uG;if(uK=0,uY=uX=null,uG=0,0!=(6&u_))throw Error(u(331));var i=u_;if(u_|=4,uw(a.current),up(a,a.current,o,n),u_=i,sU(0,!1),ex&&"function"==typeof ex.onPostCommitFiberRoot)try{ex.onPostCommitFiberRoot(e_,a)}catch(e){}return!0}finally{q.p=l,W.T=r,sE(e,t)}}function sP(e,t,n){t=rC(n,t),t=oF(e.stateNode,t,2),null!==(e=lQ(e,t,2))&&(eF(e,2),sj(e))}function sN(e,t,n){if(3===e.tag)sP(e,e,n);else for(;null!==t;){if(3===t.tag){sP(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===uq||!uq.has(r))){e=rC(n,e),null!==(r=lQ(t,n=oA(2),2))&&(oj(n,r,t,e),eF(r,2),sj(r));break}}t=t.return}}function sC(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new uE;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(uL=!0,l.add(n),e=sT.bind(null,e,t,n),t.then(e,e))}function sT(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ux===e&&(uN&n)===n&&(4===uM||3===uM&&(0x3c00000&uN)===uN&&300>ev()-uH?0==(2&u_)&&sa(e,0):uF|=n,uj===uN&&(uj=0)),sj(e)}function sO(e,t){0===t&&(t=eI()),null!==(e=rp(e,t))&&(eF(e,t),sj(e))}function sz(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),sO(e,n)}function sL(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}null!==r&&r.delete(t),sO(e,n)}var sR=null,sM=null,sI=!1,sD=!1,sF=!1,sA=0;function sj(e){e!==sM&&null===e.next&&(null===sM?sR=sM=e:sM=sM.next=e),sD=!0,sI||(sI=!0,cv(function(){0!=(6&u_)?ep(eb,sB):sV()}))}function sU(e,t){if(!sF&&sD){sF=!0;do for(var n=!1,r=sR;null!==r;){if(!t)if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000095&(a=(1<<31-eP(42|e)+1)-1&(l&~(o&~i)))?0xc000095&a|1:a?2|a:0}0!==a&&(n=!0,sQ(r,a))}else a=uN,0==(3&(a=eR(r,r===ux?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||eM(r,a)||(n=!0,sQ(r,a));r=r.next}while(n)sF=!1}}function sB(){sV()}function sV(){sD=sI=!1;var e,t=0;0===sA||((e=window.event)&&"popstate"===e.type?e===cp||(cp=e,0):(cp=null,1))||(t=sA);for(var n=ev(),r=null,l=sR;null!==l;){var a=l.next,o=sH(l,n);0===o?(l.next=null,null===r?sR=a:r.next=a,null===a&&(sM=r)):(r=l,(0!==t||0!=(3&o))&&(sD=!0)),l=a}0!==uK&&5!==uK||sU(t,!1),0!==sA&&(sA=0)}function sH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function fs(e,t){return"img"===e&&null!=t.src&&""!==t.src&&null==t.onLoad&&"lazy"!==t.loading}function fc(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}function ff(e){return(e.width||100)*(e.height||100)*("number"==typeof devicePixelRatio?devicePixelRatio:1)*.25}function fd(e,t){"function"==typeof t.decode&&(e.imgCount++,t.complete||(e.imgBytes+=ff(t),e.suspenseyImages.push(t)),e=fg.bind(e),t.decode().then(e,e))}var fp=0;function fm(e){if(0===e.count&&(0===e.imgCount||!e.waitingForImages)){if(e.stylesheets)fy(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function fh(){this.count--,fm(this)}function fg(){this.imgCount--,fm(this)}var fv=null;function fy(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,fv=new Map,t.forEach(fb,e),fv=null,fh.call(e))}function fb(e,t){if(!(4&t.state.loading)){var n=fv.get(e);if(n)var r=n.get(null);else{n=new Map,fv.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;atypeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var f4=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!f4.isDisabled&&f4.supportsFiber)try{e_=f4.inject({bundleType:0,version:"19.3.0-canary-3f0b9e61-20260317",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.3.0-canary-3f0b9e61-20260317"}),ex=f4}catch(e){}}n.createRoot=function(e,t){if(!s(e))throw Error(u(299));var n=!1,r="",l=oL,a=oR,o=oM;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(l=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=fk(e,1,!1,null,null,n,r,null,l,a,o,f0),e[eK]=t.current,s2(e),new f1(t)},n.hydrateRoot=function(e,t,n){if(!s(e))throw Error(u(299));var r,l=!1,a="",o=oL,i=oR,c=oM,f=null;return null!=n&&(!0===n.unstable_strictMode&&(l=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(i=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(f=n.formState)),(t=fk(e,1,!0,t,null!=n?n:null,l,a,f,o,i,c,f0)).context=(r=null,rg),n=t.current,(a=l$(l=eB(l=u5()))).callback=null,lQ(n,a,l),n=l,t.current.lanes=n,eF(t,n),sj(t),e[eK]=t.current,s2(e),new f2(t)},n.version="19.3.0-canary-3f0b9e61-20260317"},88014,(e,t,n)=>{"use strict";!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(46480)},42732,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=e.r(55682)._(e.r(71645)).default.createContext({})},51323,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={onCaughtError:function(){return d},onUncaughtError:function(){return p}};for(var l in r)Object.defineProperty(n,l,{enumerable:!0,get:r[l]});let a=e.r(55682),o=e.r(65713),i=e.r(32061),u=e.r(28279),s=e.r(72383),c=a._(e.r(68027)),f={decorateDevError:e=>e,handleClientError:()=>{},originConsoleError:console.error.bind(console)};function d(e,t){let n,r=t.errorBoundary?.constructor;if(n=n||r===s.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===c.default)return p(e);(0,i.isBailoutToCSRError)(e)||(0,o.isNextRouterError)(e)||f.originConsoleError(e)}function p(e){(0,i.isBailoutToCSRError)(e)||(0,o.isNextRouterError)(e)||(0,u.reportGlobalError)(e)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},62634,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AppRouterAnnouncer",{enumerable:!0,get:function(){return o}});let r=e.r(71645),l=e.r(74080),a="next-route-announcer";function o({tree:e}){let[t,n]=(0,r.useState)(null);(0,r.useEffect)(()=>(n(function(){let e=document.getElementsByName(a)[0];if(e?.shadowRoot?.childNodes[0])return e.shadowRoot.childNodes[0];{let e=document.createElement(a);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(a)[0];e?.isConnected&&document.body.removeChild(e)}),[]);let[i,u]=(0,r.useState)(""),s=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==s.current&&s.current!==e&&u(e),s.current=e},[e]),t?(0,l.createPortal)(i,t):null}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},25018,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findHeadInCache",{enumerable:!0,get:function(){return a}});let r=e.r(13258),l=e.r(70725);function a(e,t){return function e(t,n,a,o){if(0===Object.keys(n).length)return[t,a,o];let i=Object.keys(n).filter(e=>"children"!==e);"children"in n&&i.unshift("children");let u=t.slots;if(null!==u)for(let t of i){let[o,i]=n[t];if(o===r.DEFAULT_SEGMENT_KEY)continue;let s=u[t];if(!s)continue;let c=e(s,i,a+"/"+(0,l.createRouterCacheKey)(o),a+"/"+(0,l.createRouterCacheKey)(o,!0));if(c)return c}return null}(e,t,"","")}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},41624,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={GracefulDegradeBoundary:function(){return i},default:function(){return u}};for(var l in r)Object.defineProperty(n,l,{enumerable:!0,get:r[l]});let a=e.r(43476),o=e.r(71645);class i extends o.Component{constructor(e){super(e),this.state={hasError:!1},this.rootHtml="",this.htmlAttributes={},this.htmlRef=(0,o.createRef)()}static getDerivedStateFromError(e){return{hasError:!0}}componentDidMount(){let e=this.htmlRef.current;this.state.hasError&&e&&Object.entries(this.htmlAttributes).forEach(([t,n])=>{e.setAttribute(t,n)})}render(){let{hasError:e}=this.state;return("u">typeof window&&!this.rootHtml&&(this.rootHtml=document.documentElement.innerHTML,this.htmlAttributes=function(e){let t={};for(let n=0;n{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let r=e.r(55682),l=e.r(43476);e.r(71645);let a=r._(e.r(41624)),o=e.r(72383),i=e.r(82604),u="u">typeof window&&(0,i.isBot)(window.navigator.userAgent);function s({children:e,errorComponent:t,errorStyles:n,errorScripts:r}){return u?(0,l.jsx)(a.default,{children:e}):(0,l.jsx)(o.ErrorBoundary,{errorComponent:t,errorStyles:n,errorScripts:r,children:e})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},75530,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return R}});let r=e.r(55682),l=e.r(90809),a=e.r(43476),o=l._(e.r(71645)),i=e.r(8372),u=e.r(88540),s=e.r(51191),c=e.r(61994),f=e.r(41538),d=e.r(94272),p=e.r(62634),m=e.r(58442),h=e.r(25018),g=e.r(1244),v=e.r(87250),y=e.r(52817),b=e.r(34727),w=e.r(78377),S=e.r(99781),k=e.r(24063),E=e.r(68391),_=e.r(91949),x=r._(e.r(94109)),P=r._(e.r(68027)),N=e.r(97367);e.r(43369);let C={};function T({appRouterState:e}){return(0,o.useInsertionEffect)(()=>{let{tree:t,pushRef:n,canonicalUrl:r,renderedSearch:l}=e,a={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:{tree:t,renderedSearch:l}};n.pendingPush&&(0,s.createHrefFromUrl)(new URL(window.location.href))!==r?(n.pendingPush=!1,window.history.pushState(a,"",r)):window.history.replaceState(a,"",r),(0,d.setLastCommittedTree)(t)},[e]),(0,o.useEffect)(()=>{(0,_.pingVisibleLinks)(e.nextUrl,e.tree)},[e.nextUrl,e.tree]),null}function O(e){null==e&&(e={});let t=window.history.state,n=t?.__NA;n&&(e.__NA=n);let r=t?.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function z({headCacheNode:e}){let t=null!==e?e.head:null,n=null!==e?e.prefetchHead:null,r=null!==n?n:t;return(0,o.useDeferredValue)(t,r)}function L({actionQueue:e,globalError:t,webSocket:n,staticIndicatorState:r}){let l,s=(0,f.useActionQueue)(e),{canonicalUrl:d}=s,{searchParams:w,pathname:_}=(0,o.useMemo)(()=>{let e=new URL(d,"u"{let e=(0,b.extractSourcePageFromFlightRouterState)(s.tree);void 0!==e?window.next.__internal_src_page=e:delete window.next.__internal_src_page},[s.tree]),(0,o.useEffect)(()=>{function e(e){e.persisted&&window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE&&(C.pendingMpaPath=void 0,(0,f.dispatchAppRouterAction)({type:u.ACTION_RESTORE,url:new URL(window.location.href),historyState:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[]),(0,o.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,E.isRedirectError)(t)){e.preventDefault();let n=(0,k.getURLFromRedirectError)(t);"push"===(0,k.getRedirectTypeFromError)(t)?S.publicAppRouterInstance.push(n,{}):S.publicAppRouterInstance.replace(n,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[]);let{pushRef:P}=s;if(P.mpaNavigation){if(C.pendingMpaPath!==d){let e=window.location;P.pendingPush?e.assign(d):e.replace(d),C.pendingMpaPath=d}throw g.unresolvedThenable}(0,o.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{let t=window.location.href,n=window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,o.startTransition)(()=>{(0,f.dispatchAppRouterAction)({type:u.ACTION_RESTORE,url:new URL(e??t,t),historyState:n})})};window.history.pushState=function(t,r,l){return t?.__NA||t?._N||(t=O(t),l&&n(l)),e(t,r,l)},window.history.replaceState=function(e,r,l){return e?.__NA||e?._N||(e=O(e),l&&n(l)),t(e,r,l)};let r=e=>{if(e.state){if(!e.state.__NA)return void window.location.reload();(0,o.startTransition)(()=>{(0,S.dispatchTraverseAction)(window.location.href,e.state.__PRIVATE_NEXTJS_INTERNALS_TREE)})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[]);let{cache:R,tree:M,nextUrl:I,focusAndScrollRef:D,previousNextUrl:F}=s,A=(0,o.useMemo)(()=>(0,h.findHeadInCache)(R,M[1]),[R,M]),j=(0,o.useMemo)(()=>(0,b.getSelectedParams)(M),[M]),U=(0,o.useMemo)(()=>({parentTree:M,parentCacheNode:R,parentSegmentPath:null,parentParams:{},parentLoadingData:null,debugNameContext:"/",url:d,isActive:!0}),[M,R,d]),B=(0,o.useMemo)(()=>({tree:M,focusAndScrollRef:D,nextUrl:I,previousNextUrl:F}),[M,D,I,F]);if(null!==A){let[e,t,n]=A;l=(0,a.jsx)(z,{headCacheNode:e},"u"{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"createInitialRouterState",{enumerable:!0,get:function(){return d}});let r=e.r(51191),l=e.r(34727),a=e.r(50590),o=e.r(95871),i=e.r(20896),u=e.r(9396),s=e.r(79027),c=e.r(87288),f=e.r(96167);function d({navigatedAt:e,initialRSCPayload:t,initialFlightStreamForCache:n,location:p}){let{c:m,f:h,q:g,i:v,S:y,s:b,l:w,h:S,p:k,d:E}=t,_=m.join("/"),{tree:x,seedData:P,head:N}=(0,a.getFlightDataPartsFromPath)(h[0]),C=p?(0,r.createHrefFromUrl)(p):_,T={metadataVaryPath:null},O=(0,i.convertRootFlightRouterStateToRouteTree)(x,g,T),z=T.metadataVaryPath,L=(0,o.createInitialCacheNodeForHydration)(e,O,P,N,(0,s.computeDynamicStaleAt)(e,E??s.UnknownDynamicStaleTime));if(null!==p&&null!==z){if((0,f.discoverKnownRoute)(Date.now(),p.pathname,null,null,O,z,v,C,y,!1),null!==P&&void 0!==b)if(void 0!==w&&null!=n)(0,c.decodeStaticStage)(n,w,void 0).then(async e=>{let t=Date.now(),n=await (0,i.getStaleAt)(t,e.s);(0,i.writeStaticStageResponseIntoCache)(t,e.f,void 0,e.h,n,x,g,!0)}).catch(()=>{});else{let e=Date.now();(0,i.getStaleAt)(e,b).then(t=>{(0,i.writeStaticStageResponseIntoCache)(e,h,void 0,S,t,x,g,!1)}).catch(()=>{}),n?.cancel()}else n?.cancel();null!=k&&(0,i.processRuntimePrefetchStream)(Date.now(),k,x,g).then(e=>{null!==e&&(0,i.writeDynamicRenderResponseIntoCache)(Date.now(),u.FetchStrategy.PPRRuntime,e.flightDatas,e.buildId,e.isResponsePartial,e.headVaryParams,e.staleAt,e.navigationSeed,null)}).catch(()=>{})}return{tree:L.route,cache:L.node,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{scrollRef:null,forceScroll:!1,onlyHashChange:!1,hashFragment:null},canonicalUrl:C,renderedSearch:g,nextUrl:((0,l.extractPathFromFlightRouterState)(x)||p?.pathname)??null,previousNextUrl:null,debugInfo:null}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},98569,(e,t,n)=>{"use strict";let r,l,a,o;Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"hydrate",{enumerable:!0,get:function(){return j}});let i=e.r(55682),u=e.r(43476);e.r(23911);let s=i._(e.r(88014)),c=i._(e.r(71645)),f=e.r(35326),d=e.r(42732),p=e.r(97238),m=e.r(51323),h=e.r(32120),g=e.r(92245),v=e.r(99781),y=i._(e.r(75530)),b=e.r(65716);e.r(8372);let w=e.r(50590),S=e.r(43369),k=e.r(32992),E=f.createFromReadableStream,_=f.createFromFetch,x=document,P=self.__next_instant_test?self.__next_instant_test:void 0,N=new TextEncoder,C=!1,T=!1,O=null;function z(e){if(0===e[0])a=[];else if(1===e[0]){if(!a)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});o?o.enqueue(N.encode(e[1])):a.push(e[1])}else if(2===e[0])O=e[1];else if(3===e[0]){if(!a)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});let n=atob(e[1]),r=new Uint8Array(n.length);for(var t=0;t{e.enqueue("string"==typeof t?N.encode(t):t)}),C&&!T)&&(null===e.desiredSize||e.desiredSize<0?P||e.error(Object.defineProperty(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection."),"__NEXT_ERROR_CODE",{value:"E117",enumerable:!1,configurable:!0})):e.close(),T=!0,a=void 0),o=e}});if(P)l=Promise.resolve(_(P,{callServer:h.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:r,unstable_allowPartialStream:!0})).then(async e=>(0,w.createInitialRSCPayloadFromFallbackPrerender)(await P,e));else if(window.__NEXT_CLIENT_RESUME){let e=window.__NEXT_CLIENT_RESUME;l=Promise.resolve(_(e,{callServer:h.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:r})).then(async t=>(0,w.createInitialRSCPayloadFromFallbackPrerender)(await e,t))}else l=E(M,{callServer:h.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:r,startTime:0});function I({initialRSCPayload:e,actionQueue:t,webSocket:n,staticIndicatorState:r}){return(0,u.jsx)(y.default,{actionQueue:t,globalErrorState:e.G,webSocket:n,staticIndicatorState:r})}let D=c.default.StrictMode;function F({children:e}){return e}let A={onDefaultTransitionIndicator:function(){return()=>{}},onRecoverableError:p.onRecoverableError,onCaughtError:m.onCaughtError,onUncaughtError:m.onUncaughtError};async function j(e,t){let n,r,a=await l;a.b?(0,k.setNavigationBuildId)(a.b):(0,k.setNavigationBuildId)((0,S.getDeploymentId)());let o=Date.now(),i=(0,v.createMutableActionQueue)((0,b.createInitialRouterState)({navigatedAt:o,initialRSCPayload:a,initialFlightStreamForCache:null,location:window.location}),e),f=(0,u.jsx)(D,{children:(0,u.jsx)(d.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,u.jsx)(F,{children:(0,u.jsx)(I,{initialRSCPayload:a,actionQueue:i,webSocket:r,staticIndicatorState:n})})})});"__next_error__"===document.documentElement.id?s.default.createRoot(x,A).render(f):c.default.startTransition(()=>{s.default.hydrateRoot(x,f,{...A,formState:O})})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},94553,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e.r(23755);let r=e.r(96517);e.r(97238),window.next.turbopack=!0,self.__webpack_hash__="";let l=e.r(5526);(0,r.appBootstrap)(t=>{let{hydrate:n}=e.r(98569);n(l,t)}),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)}]); \ No newline at end of file +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23755,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e.r(43369).getDeploymentId)();globalThis.NEXT_DEPLOYMENT_ID=r,("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},74575,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getAssetPrefix",{enumerable:!0,get:function(){return l}});let r=e.r(12718);function l(){let e=document.currentScript;if(!(e instanceof HTMLScriptElement))throw Object.defineProperty(new r.InvariantError(`Expected document.currentScript to be a ",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?o.createElement(l,{is:r.is}):o.createElement(l)}}a[eW]=t,a[eq]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)a.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(t.stateNode=a,ca(a,l,r),l){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&is(t)}}return ih(t),t.subtreeFlags&=-0x2000001,ic(t,t.type,null===e?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&is(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(u(166));if(e=en.current,rJ(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(l=rH))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eW]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||cn(e.nodeValue,n)))||rX(t,!0)}else(e=cs(e).createTextNode(r))[eW]=t,t.stateNode=e}return ih(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=rJ(t),null!==n){if(null===e){if(!r)throw Error(u(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(u(557));e[eW]=t}else rZ(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ih(t),e=!1}else n=r0(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e){if(256&t.flags)return ae(t),t;return ae(t),null}if(0!=(128&t.flags))throw Error(u(558))}return ih(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rJ(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(u(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(u(317));l[eW]=t}else rZ(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ih(t),l=!1}else l=r0(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(256&t.flags)return ae(t),t;return ae(t),null}}if(ae(t),0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ip(t,t.updateQueue),ih(t),null;case 4:return ea(),null===e&&s2(t.stateNode.containerInfo),t.flags|=0x4000000,ih(t),null;case 10:return r5(t.type),ih(t),null;case 19:if(ar(t),null===(r=t.memoizedState))return ih(t),null;if(l=0!=(128&t.flags),null===(a=r.rendering))if(l)im(r,!1);else{if(0!==uM||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=al(e))){for(t.flags|=128,im(r,!1),t.updateQueue=e=a.updateQueue,ip(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)rS(n,e),n=n.sibling;return an(t,1&at.current|2),rQ&&rA(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&ev()>uQ&&(t.flags|=128,l=!0,im(r,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=al(a))){if(t.flags|=128,l=!0,t.updateQueue=e=e.updateQueue,ip(t,e),im(r,!0),null===r.tail&&"collapsed"!==r.tailMode&&"visible"!==r.tailMode&&!a.alternate&&!rQ)return ih(t),null}else 2*ev()-r.renderingStartTime>uQ&&0x20000000!==n&&(t.flags|=128,l=!0,im(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}if(null!==r.tail){e=r.tail;e:{for(n=e;null!==n;){if(null!==n.alternate){n=!1;break e}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ev(),e.sibling=null,a=at.current,a=l?1&a|2:1&a,"visible"===r.tailMode||"collapsed"===r.tailMode||!n||rQ?an(t,a):(n=a,Z(l4,t),Z(at,n),null===l6&&(l6=t)),rQ&&rA(t,r.treeForkCount),e}return ih(t),null;case 22:case 23:return ae(t),l3(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(ih(t),6&t.subtreeFlags&&(t.flags|=8192)):ih(t),null!==(n=t.updateQueue)&&ip(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&J(lb),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),r5(lu),ih(t),null;case 25:return null;case 30:return t.flags|=0x2000000,ih(t),null}throw Error(u(156,t.tag))}(t.alternate,t,uR);if(null!==n){uP=n;return}if(null!==(t=t.sibling)){uP=t;return}uP=t=e}while(null!==t)0===uM&&(uM=5)}function sg(e,t){do{var n=function(e,t){switch(rB(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return r5(lu),ea(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ei(t),null;case 31:if(null!==t.memoizedState){if(ae(t),null===t.alternate)throw Error(u(340));rZ()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(ae(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(u(340));rZ()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ar(t),65536&(e=t.flags)?(t.flags=-65537&e|128,null!==(e=t.memoizedState)&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ea(),null;case 10:return r5(t.type),null;case 22:case 23:return ae(t),l3(),null!==e&&J(lb),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return r5(lu),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,uP=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){uP=e;return}uP=e=n}while(null!==e)uM=6,uP=null}function sv(e,t,n,r,l,a,o,i,s,c,f,d){e.cancelPendingCommit=null;do s_();while(0!==uK)if(0!=(6&u_))throw Error(u(327));if(null!==t){if(t===e.current)throw Error(u(177));e===ux&&(uP=ux=null,uN=0),uY=t,uX=e,uG=n,uZ=l,u0=r,function(e,t,n,r,l,a,o){var i,u=t.lanes|t.childLanes;if(uJ=u,!function(e,t,n,r,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=o&~n;0fp){i.length=o;break}d=new Promise(cN.bind(d)),i.push(d)}}}return 0g&&(o=g,g=h,h=o);var v=nV(i,h),y=nV(i,g);if(v&&y&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=f.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(f=[],p=i;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;in?32:n,W.T=null,n=uZ,uZ=null;var a=uX,o=uG;if(uK=0,uY=uX=null,uG=0,0!=(6&u_))throw Error(u(331));var i=u_;if(u_|=4,uw(a.current),up(a,a.current,o,n),u_=i,sU(0,!1),ex&&"function"==typeof ex.onPostCommitFiberRoot)try{ex.onPostCommitFiberRoot(e_,a)}catch(e){}return!0}finally{q.p=l,W.T=r,sE(e,t)}}function sP(e,t,n){t=rC(n,t),t=oF(e.stateNode,t,2),null!==(e=lQ(e,t,2))&&(eF(e,2),sj(e))}function sN(e,t,n){if(3===e.tag)sP(e,e,n);else for(;null!==t;){if(3===t.tag){sP(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===uq||!uq.has(r))){e=rC(n,e),null!==(r=lQ(t,n=oA(2),2))&&(oj(n,r,t,e),eF(r,2),sj(r));break}}t=t.return}}function sC(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new uE;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(uL=!0,l.add(n),e=sT.bind(null,e,t,n),t.then(e,e))}function sT(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ux===e&&(uN&n)===n&&(4===uM||3===uM&&(0x3c00000&uN)===uN&&300>ev()-uH?0==(2&u_)&&sa(e,0):uF|=n,uj===uN&&(uj=0)),sj(e)}function sO(e,t){0===t&&(t=eI()),null!==(e=rp(e,t))&&(eF(e,t),sj(e))}function sz(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),sO(e,n)}function sL(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}null!==r&&r.delete(t),sO(e,n)}var sR=null,sM=null,sI=!1,sD=!1,sF=!1,sA=0;function sj(e){e!==sM&&null===e.next&&(null===sM?sR=sM=e:sM=sM.next=e),sD=!0,sI||(sI=!0,cv(function(){0!=(6&u_)?ep(eb,sB):sV()}))}function sU(e,t){if(!sF&&sD){sF=!0;do for(var n=!1,r=sR;null!==r;){if(!t)if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000095&(a=(1<<31-eP(42|e)+1)-1&(l&~(o&~i)))?0xc000095&a|1:a?2|a:0}0!==a&&(n=!0,sQ(r,a))}else a=uN,0==(3&(a=eR(r,r===ux?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||eM(r,a)||(n=!0,sQ(r,a));r=r.next}while(n)sF=!1}}function sB(){sV()}function sV(){sD=sI=!1;var e,t=0;0===sA||((e=window.event)&&"popstate"===e.type?e===cp||(cp=e,0):(cp=null,1))||(t=sA);for(var n=ev(),r=null,l=sR;null!==l;){var a=l.next,o=sH(l,n);0===o?(l.next=null,null===r?sR=a:r.next=a,null===a&&(sM=r)):(r=l,(0!==t||0!=(3&o))&&(sD=!0)),l=a}0!==uK&&5!==uK||sU(t,!1),0!==sA&&(sA=0)}function sH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function fs(e,t){return"img"===e&&null!=t.src&&""!==t.src&&null==t.onLoad&&"lazy"!==t.loading}function fc(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}function ff(e){return(e.width||100)*(e.height||100)*("number"==typeof devicePixelRatio?devicePixelRatio:1)*.25}function fd(e,t){"function"==typeof t.decode&&(e.imgCount++,t.complete||(e.imgBytes+=ff(t),e.suspenseyImages.push(t)),e=fg.bind(e),t.decode().then(e,e))}var fp=0;function fm(e){if(0===e.count&&(0===e.imgCount||!e.waitingForImages)){if(e.stylesheets)fy(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function fh(){this.count--,fm(this)}function fg(){this.imgCount--,fm(this)}var fv=null;function fy(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,fv=new Map,t.forEach(fb,e),fv=null,fh.call(e))}function fb(e,t){if(!(4&t.state.loading)){var n=fv.get(e);if(n)var r=n.get(null);else{n=new Map,fv.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;atypeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var f4=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!f4.isDisabled&&f4.supportsFiber)try{e_=f4.inject({bundleType:0,version:"19.3.0-canary-3f0b9e61-20260317",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.3.0-canary-3f0b9e61-20260317"}),ex=f4}catch(e){}}n.createRoot=function(e,t){if(!s(e))throw Error(u(299));var n=!1,r="",l=oL,a=oR,o=oM;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(l=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=fk(e,1,!1,null,null,n,r,null,l,a,o,f0),e[eK]=t.current,s2(e),new f1(t)},n.hydrateRoot=function(e,t,n){if(!s(e))throw Error(u(299));var r,l=!1,a="",o=oL,i=oR,c=oM,f=null;return null!=n&&(!0===n.unstable_strictMode&&(l=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(i=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(f=n.formState)),(t=fk(e,1,!0,t,null!=n?n:null,l,a,f,o,i,c,f0)).context=(r=null,rg),n=t.current,(a=l$(l=eB(l=u5()))).callback=null,lQ(n,a,l),n=l,t.current.lanes=n,eF(t,n),sj(t),e[eK]=t.current,s2(e),new f2(t)},n.version="19.3.0-canary-3f0b9e61-20260317"},88014,(e,t,n)=>{"use strict";!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(46480)},51323,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={onCaughtError:function(){return d},onUncaughtError:function(){return p}};for(var l in r)Object.defineProperty(n,l,{enumerable:!0,get:r[l]});let a=e.r(55682),o=e.r(65713),i=e.r(32061),u=e.r(28279),s=e.r(72383),c=a._(e.r(68027)),f={decorateDevError:e=>e,handleClientError:()=>{},originConsoleError:console.error.bind(console)};function d(e,t){let n,r=t.errorBoundary?.constructor;if(n=n||r===s.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===c.default)return p(e);(0,i.isBailoutToCSRError)(e)||(0,o.isNextRouterError)(e)||f.originConsoleError(e)}function p(e){(0,i.isBailoutToCSRError)(e)||(0,o.isNextRouterError)(e)||(0,u.reportGlobalError)(e)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},62634,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AppRouterAnnouncer",{enumerable:!0,get:function(){return o}});let r=e.r(71645),l=e.r(74080),a="next-route-announcer";function o({tree:e}){let[t,n]=(0,r.useState)(null);(0,r.useEffect)(()=>(n(function(){let e=document.getElementsByName(a)[0];if(e?.shadowRoot?.childNodes[0])return e.shadowRoot.childNodes[0];{let e=document.createElement(a);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(a)[0];e?.isConnected&&document.body.removeChild(e)}),[]);let[i,u]=(0,r.useState)(""),s=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==s.current&&s.current!==e&&u(e),s.current=e},[e]),t?(0,l.createPortal)(i,t):null}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},25018,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findHeadInCache",{enumerable:!0,get:function(){return a}});let r=e.r(13258),l=e.r(70725);function a(e,t){return function e(t,n,a,o){if(0===Object.keys(n).length)return[t,a,o];let i=Object.keys(n).filter(e=>"children"!==e);"children"in n&&i.unshift("children");let u=t.slots;if(null!==u)for(let t of i){let[o,i]=n[t];if(o===r.DEFAULT_SEGMENT_KEY)continue;let s=u[t];if(!s)continue;let c=e(s,i,a+"/"+(0,l.createRouterCacheKey)(o),a+"/"+(0,l.createRouterCacheKey)(o,!0));if(c)return c}return null}(e,t,"","")}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},41624,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={GracefulDegradeBoundary:function(){return i},default:function(){return u}};for(var l in r)Object.defineProperty(n,l,{enumerable:!0,get:r[l]});let a=e.r(43476),o=e.r(71645);class i extends o.Component{constructor(e){super(e),this.state={hasError:!1},this.rootHtml="",this.htmlAttributes={},this.htmlRef=(0,o.createRef)()}static getDerivedStateFromError(e){return{hasError:!0}}componentDidMount(){let e=this.htmlRef.current;this.state.hasError&&e&&Object.entries(this.htmlAttributes).forEach(([t,n])=>{e.setAttribute(t,n)})}render(){let{hasError:e}=this.state;return("u">typeof window&&!this.rootHtml&&(this.rootHtml=document.documentElement.innerHTML,this.htmlAttributes=function(e){let t={};for(let n=0;n{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let r=e.r(55682),l=e.r(43476);e.r(71645);let a=r._(e.r(41624)),o=e.r(72383),i=e.r(82604),u="u">typeof window&&(0,i.isBot)(window.navigator.userAgent);function s({children:e,errorComponent:t,errorStyles:n,errorScripts:r}){return u?(0,l.jsx)(a.default,{children:e}):(0,l.jsx)(o.ErrorBoundary,{errorComponent:t,errorStyles:n,errorScripts:r,children:e})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},75530,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return R}});let r=e.r(55682),l=e.r(90809),a=e.r(43476),o=l._(e.r(71645)),i=e.r(8372),u=e.r(88540),s=e.r(51191),c=e.r(61994),f=e.r(41538),d=e.r(94272),p=e.r(62634),m=e.r(58442),h=e.r(25018),g=e.r(1244),v=e.r(87250),y=e.r(52817),b=e.r(34727),w=e.r(78377),S=e.r(99781),k=e.r(24063),E=e.r(68391),_=e.r(91949),x=r._(e.r(94109)),P=r._(e.r(68027)),N=e.r(97367);e.r(43369);let C={};function T({appRouterState:e}){return(0,o.useInsertionEffect)(()=>{let{tree:t,pushRef:n,canonicalUrl:r,renderedSearch:l}=e,a={...n.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:{tree:t,renderedSearch:l}};n.pendingPush&&(0,s.createHrefFromUrl)(new URL(window.location.href))!==r?(n.pendingPush=!1,window.history.pushState(a,"",r)):window.history.replaceState(a,"",r),(0,d.setLastCommittedTree)(t)},[e]),(0,o.useEffect)(()=>{(0,_.pingVisibleLinks)(e.nextUrl,e.tree)},[e.nextUrl,e.tree]),null}function O(e){null==e&&(e={});let t=window.history.state,n=t?.__NA;n&&(e.__NA=n);let r=t?.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function z({headCacheNode:e}){let t=null!==e?e.head:null,n=null!==e?e.prefetchHead:null,r=null!==n?n:t;return(0,o.useDeferredValue)(t,r)}function L({actionQueue:e,globalError:t,webSocket:n,staticIndicatorState:r}){let l,s=(0,f.useActionQueue)(e),{canonicalUrl:d}=s,{searchParams:w,pathname:_}=(0,o.useMemo)(()=>{let e=new URL(d,"u"{let e=(0,b.extractSourcePageFromFlightRouterState)(s.tree);void 0!==e?window.next.__internal_src_page=e:delete window.next.__internal_src_page},[s.tree]),(0,o.useEffect)(()=>{function e(e){e.persisted&&window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE&&(C.pendingMpaPath=void 0,(0,f.dispatchAppRouterAction)({type:u.ACTION_RESTORE,url:new URL(window.location.href),historyState:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[]),(0,o.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,E.isRedirectError)(t)){e.preventDefault();let n=(0,k.getURLFromRedirectError)(t);"push"===(0,k.getRedirectTypeFromError)(t)?S.publicAppRouterInstance.push(n,{}):S.publicAppRouterInstance.replace(n,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[]);let{pushRef:P}=s;if(P.mpaNavigation){if(C.pendingMpaPath!==d){let e=window.location;P.pendingPush?e.assign(d):e.replace(d),C.pendingMpaPath=d}throw g.unresolvedThenable}(0,o.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{let t=window.location.href,n=window.history.state?.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,o.startTransition)(()=>{(0,f.dispatchAppRouterAction)({type:u.ACTION_RESTORE,url:new URL(e??t,t),historyState:n})})};window.history.pushState=function(t,r,l){return t?.__NA||t?._N||(t=O(t),l&&n(l)),e(t,r,l)},window.history.replaceState=function(e,r,l){return e?.__NA||e?._N||(e=O(e),l&&n(l)),t(e,r,l)};let r=e=>{if(e.state){if(!e.state.__NA)return void window.location.reload();(0,o.startTransition)(()=>{(0,S.dispatchTraverseAction)(window.location.href,e.state.__PRIVATE_NEXTJS_INTERNALS_TREE)})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[]);let{cache:R,tree:M,nextUrl:I,focusAndScrollRef:D,previousNextUrl:F}=s,A=(0,o.useMemo)(()=>(0,h.findHeadInCache)(R,M[1]),[R,M]),j=(0,o.useMemo)(()=>(0,b.getSelectedParams)(M),[M]),U=(0,o.useMemo)(()=>({parentTree:M,parentCacheNode:R,parentSegmentPath:null,parentParams:{},parentLoadingData:null,debugNameContext:"/",url:d,isActive:!0}),[M,R,d]),B=(0,o.useMemo)(()=>({tree:M,focusAndScrollRef:D,nextUrl:I,previousNextUrl:F}),[M,D,I,F]);if(null!==A){let[e,t,n]=A;l=(0,a.jsx)(z,{headCacheNode:e},"u"{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"createInitialRouterState",{enumerable:!0,get:function(){return d}});let r=e.r(51191),l=e.r(34727),a=e.r(50590),o=e.r(95871),i=e.r(20896),u=e.r(9396),s=e.r(79027),c=e.r(87288),f=e.r(96167);function d({navigatedAt:e,initialRSCPayload:t,initialFlightStreamForCache:n,location:p}){let{c:m,f:h,q:g,i:v,S:y,s:b,l:w,h:S,p:k,d:E}=t,_=m.join("/"),{tree:x,seedData:P,head:N}=(0,a.getFlightDataPartsFromPath)(h[0]),C=p?(0,r.createHrefFromUrl)(p):_,T={metadataVaryPath:null},O=(0,i.convertRootFlightRouterStateToRouteTree)(x,g,T),z=T.metadataVaryPath,L=(0,o.createInitialCacheNodeForHydration)(e,O,P,N,(0,s.computeDynamicStaleAt)(e,E??s.UnknownDynamicStaleTime));if(null!==p&&null!==z){if((0,f.discoverKnownRoute)(Date.now(),p.pathname,null,null,O,z,v,C,y,!1),null!==P&&void 0!==b)if(void 0!==w&&null!=n)(0,c.decodeStaticStage)(n,w,void 0).then(async e=>{let t=Date.now(),n=await (0,i.getStaleAt)(t,e.s);(0,i.writeStaticStageResponseIntoCache)(t,e.f,void 0,e.h,n,x,g,!0)}).catch(()=>{});else{let e=Date.now();(0,i.getStaleAt)(e,b).then(t=>{(0,i.writeStaticStageResponseIntoCache)(e,h,void 0,S,t,x,g,!1)}).catch(()=>{}),n?.cancel()}else n?.cancel();null!=k&&(0,i.processRuntimePrefetchStream)(Date.now(),k,x,g).then(e=>{null!==e&&(0,i.writeDynamicRenderResponseIntoCache)(Date.now(),u.FetchStrategy.PPRRuntime,e.flightDatas,e.buildId,e.isResponsePartial,e.headVaryParams,e.staleAt,e.navigationSeed,null)}).catch(()=>{})}return{tree:L.route,cache:L.node,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{scrollRef:null,forceScroll:!1,onlyHashChange:!1,hashFragment:null},canonicalUrl:C,renderedSearch:g,nextUrl:((0,l.extractPathFromFlightRouterState)(x)||p?.pathname)??null,previousNextUrl:null,debugInfo:null}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},98569,(e,t,n)=>{"use strict";let r,l,a,o;Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"hydrate",{enumerable:!0,get:function(){return j}});let i=e.r(55682),u=e.r(43476);e.r(23911);let s=i._(e.r(88014)),c=i._(e.r(71645)),f=e.r(35326),d=e.r(42732),p=e.r(97238),m=e.r(51323),h=e.r(32120),g=e.r(92245),v=e.r(99781),y=i._(e.r(75530)),b=e.r(65716);e.r(8372);let w=e.r(50590),S=e.r(43369),k=e.r(32992),E=f.createFromReadableStream,_=f.createFromFetch,x=document,P=self.__next_instant_test?self.__next_instant_test:void 0,N=new TextEncoder,C=!1,T=!1,O=null;function z(e){if(0===e[0])a=[];else if(1===e[0]){if(!a)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});o?o.enqueue(N.encode(e[1])):a.push(e[1])}else if(2===e[0])O=e[1];else if(3===e[0]){if(!a)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});let n=atob(e[1]),r=new Uint8Array(n.length);for(var t=0;t{e.enqueue("string"==typeof t?N.encode(t):t)}),C&&!T)&&(null===e.desiredSize||e.desiredSize<0?P||e.error(Object.defineProperty(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection."),"__NEXT_ERROR_CODE",{value:"E117",enumerable:!1,configurable:!0})):e.close(),T=!0,a=void 0),o=e}});if(P)l=Promise.resolve(_(P,{callServer:h.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:r,unstable_allowPartialStream:!0})).then(async e=>(0,w.createInitialRSCPayloadFromFallbackPrerender)(await P,e));else if(window.__NEXT_CLIENT_RESUME){let e=window.__NEXT_CLIENT_RESUME;l=Promise.resolve(_(e,{callServer:h.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:r})).then(async t=>(0,w.createInitialRSCPayloadFromFallbackPrerender)(await e,t))}else l=E(M,{callServer:h.callServer,findSourceMapURL:g.findSourceMapURL,debugChannel:r,startTime:0});function I({initialRSCPayload:e,actionQueue:t,webSocket:n,staticIndicatorState:r}){return(0,u.jsx)(y.default,{actionQueue:t,globalErrorState:e.G,webSocket:n,staticIndicatorState:r})}let D=c.default.StrictMode;function F({children:e}){return e}let A={onDefaultTransitionIndicator:function(){return()=>{}},onRecoverableError:p.onRecoverableError,onCaughtError:m.onCaughtError,onUncaughtError:m.onUncaughtError};async function j(e,t){let n,r,a=await l;a.b?(0,k.setNavigationBuildId)(a.b):(0,k.setNavigationBuildId)((0,S.getDeploymentId)());let o=Date.now(),i=(0,v.createMutableActionQueue)((0,b.createInitialRouterState)({navigatedAt:o,initialRSCPayload:a,initialFlightStreamForCache:null,location:window.location}),e),f=(0,u.jsx)(D,{children:(0,u.jsx)(d.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,u.jsx)(F,{children:(0,u.jsx)(I,{initialRSCPayload:a,actionQueue:i,webSocket:r,staticIndicatorState:n})})})});"__next_error__"===document.documentElement.id?s.default.createRoot(x,A).render(f):c.default.startTransition(()=>{s.default.hydrateRoot(x,f,{...A,formState:O})})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},94553,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e.r(23755);let r=e.r(96517);e.r(97238),window.next.turbopack=!0,self.__webpack_hash__="";let l=e.r(5526);(0,r.appBootstrap)(t=>{let{hydrate:n}=e.r(98569);n(l,t)}),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js b/web/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js new file mode 100644 index 00000000..40d8bc21 --- /dev/null +++ b/web/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js @@ -0,0 +1 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91915,(e,t,r)=>{"use strict";function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let a=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=a}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),e.r(33525)},68017,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return u}});let n=e.r(90809),a=e.r(43476),o=n._(e.r(71645)),i=e.r(90373),s=e.r(54394);e.r(33525);let l=e.r(8372);class c extends o.default.Component{constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}componentDidCatch(){}static getDerivedStateFromError(e){if((0,s.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,s.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:o}=this.state,i={[s.HTTPAccessErrorStatus.NOT_FOUND]:e,[s.HTTPAccessErrorStatus.FORBIDDEN]:t,[s.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(o){let l=o===s.HTTPAccessErrorStatus.NOT_FOUND&&e,c=o===s.HTTPAccessErrorStatus.FORBIDDEN&&t,u=o===s.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return l||c||u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{name:"robots",content:"noindex"}),!1,i[o]]}):n}return n}}function u({notFound:e,forbidden:t,unauthorized:r,children:n}){let s=(0,i.useUntrackedPathname)(),d=(0,o.useContext)(l.MissingSlotContext);return e||t||r?(0,a.jsx)(c,{pathname:s,notFound:e,forbidden:t,unauthorized:r,missingSlots:d,children:n}):(0,a.jsx)(a.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28298,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t,r){let[a,o]=(0,n.useState)(()=>({tree:e,cacheNode:t,stateKey:r,next:null}));if(a.tree===e)return a;let i={tree:e,cacheNode:t,stateKey:r,next:null},s=1,l=a,c=i;for(;null!==l&&s<1;){if(l.stateKey===r){c.next=l.next;break}{s++;let e={tree:l.tree,cacheNode:l.cacheNode,stateKey:l.stateKey,next:null};c.next=e,c=e}l=l.next}return o(i),i}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39756,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={LoadingBoundaryProvider:function(){return j},default:function(){return A}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(55682),i=e.r(90809),s=e.r(43476),l=i._(e.r(71645)),c=o._(e.r(74080)),u=e.r(8372),d=e.r(1244),f=e.r(72383),p=e.r(91915),m=e.r(58442),h=e.r(68017),g=e.r(70725),y=e.r(28298);e.r(74180);let b=e.r(61994),P=e.r(33906),_=e.r(95871),v=c.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=["bottom","height","left","right","top","width","x","y"];function O(e,t){let r=e.getClientRects();if(0===r.length)return!1;let n=1/0;for(let e=0;e=0&&n<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,cacheNode:t}=this.props,r=e.forceScroll?e.scrollRef:t.scrollRef;if(null===r||!r.current)return;let n=null,a=e.hashFragment;if(a&&(n="top"===a?document.body:document.getElementById(a)??document.getElementsByName(a)[0]),n||(n="u"0===t[e])}(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}r.current=!1,(0,p.disableSmoothScrollDuringRouteTransition)(()=>{if(a)return void n.scrollIntoView();let e=document.documentElement,t=e.clientHeight;!O(n,t)&&(e.scrollTop=0,O(n,t)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,e.hashFragment=null,n.focus()}}}}function w({children:e,cacheNode:t}){let r=(0,l.useContext)(u.GlobalLayoutRouterContext);if(!r)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,s.jsx)(R,{focusAndScrollRef:r.focusAndScrollRef,cacheNode:t,children:e})}function S({tree:e,segmentPath:t,debugNameContext:r,cacheNode:n,params:a,url:o,isActive:i}){let c,f=(0,l.useContext)(u.GlobalLayoutRouterContext);if((0,l.useContext)(b.NavigationPromisesContext),!f)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let p=null!==n?n:(0,l.use)(d.unresolvedThenable),m=null!==p.prefetchRsc?p.prefetchRsc:p.rsc,h=(0,l.useDeferredValue)(p.rsc,m);if((0,_.isDeferredRsc)(h)){let e=(0,l.use)(h);null===e&&(0,l.use)(d.unresolvedThenable),c=e}else null===h&&(0,l.use)(d.unresolvedThenable),c=h;let g=c;return(0,s.jsx)(u.LayoutRouterContext.Provider,{value:{parentTree:e,parentCacheNode:p,parentSegmentPath:t,parentParams:a,parentLoadingData:null,debugNameContext:r,url:o,isActive:i},children:g})}function j({loading:e,children:t}){let r=(0,l.use)(u.LayoutRouterContext);return null===r?t:(0,s.jsx)(u.LayoutRouterContext.Provider,{value:{parentTree:r.parentTree,parentCacheNode:r.parentCacheNode,parentSegmentPath:r.parentSegmentPath,parentParams:r.parentParams,parentLoadingData:e,debugNameContext:r.debugNameContext,url:r.url,isActive:r.isActive},children:t})}function C({name:e,loading:t,children:r}){if(null!==t){let n=t[0],a=t[1],o=t[2];return(0,s.jsx)(l.Suspense,{name:e,fallback:(0,s.jsxs)(s.Fragment,{children:[a,o,n]}),children:r})}return(0,s.jsx)(s.Fragment,{children:r})}function A({parallelRouterKey:e,error:t,errorStyles:r,errorScripts:n,templateStyles:a,templateScripts:o,template:i,notFound:c,forbidden:p,unauthorized:b,segmentViewBoundaries:_}){let v=(0,l.useContext)(u.LayoutRouterContext);if(!v)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:E,parentCacheNode:O,parentSegmentPath:R,parentParams:j,parentLoadingData:x,url:k,isActive:T,debugNameContext:N}=v,D=E[0],M=null===R?[e]:R.concat([D,e]),I=E[1][e],F=O.slots;(void 0===I||null===F)&&(0,l.use)(d.unresolvedThenable);let $=I[0],L=F[e]??null,U=(0,g.createRouterCacheKey)($,!0),X=(0,y.useRouterBFCache)(I,L,U),V=[];do{let e=X.tree,l=X.cacheNode,d=X.stateKey,g=e[0],y=j;if(Array.isArray(g)){let e=g[0],t=g[1],r=g[2],n=(0,P.getParamValueFromCacheKey)(t,r);null!==n&&(y={...j,[e]:n})}let _=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(g),v=_??N,E=void 0===_?void 0:N,O=(0,s.jsxs)(w,{cacheNode:l,children:[(0,s.jsx)(f.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:(0,s.jsx)(C,{name:E,loading:x,children:(0,s.jsx)(h.HTTPAccessFallbackBoundary,{notFound:c,forbidden:p,unauthorized:b,children:(0,s.jsxs)(m.RedirectBoundary,{children:[(0,s.jsx)(S,{url:k,tree:e,params:y,cacheNode:l,segmentPath:M,debugNameContext:v,isActive:T&&d===U}),null]})})})}),null]}),R=(0,s.jsxs)(u.TemplateContext.Provider,{value:O,children:[a,o,i]},d);V.push(R),X=X.next}while(null!==X)return V}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},37457,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(90809),a=e.r(43476),o=n._(e.r(71645)),i=e.r(8372);function s(){let e=(0,o.useContext)(i.TemplateContext);return(0,a.jsx)(a.Fragment,{children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},93504,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},66996,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(93504).createRenderSearchParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},6831,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},97689,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(6831).createRenderParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},66373,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={accumulateRootVaryParam:function(){return y},accumulateVaryParam:function(){return g},createResponseVaryParamsAccumulator:function(){return c},createVaryParamsAccumulator:function(){return u},createVaryingParams:function(){return b},createVaryingSearchParams:function(){return P},emptyVaryParamsAccumulator:function(){return l},finishAccumulatingVaryParams:function(){return _},getMetadataVaryParamsAccumulator:function(){return d},getMetadataVaryParamsThenable:function(){return p},getRootParamsVaryParamsAccumulator:function(){return h},getVaryParamsThenable:function(){return f},getViewportVaryParamsAccumulator:function(){return m}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(62141);function i(){let e={varyParams:new Set,status:"pending",value:new Set,then(t){t&&("pending"===e.status?e.resolvers.push(t):t(e.value))},resolvers:[]};return e}let s=new Set,l={varyParams:s,status:"fulfilled",value:s,then(e){e&&e(s)},resolvers:[]};function c(){let e=i();return{head:e,rootParams:i(),segments:new Set}}function u(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t){let e=i();return t.segments.add(e),e}}}return null}function d(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t)return t.head}}return null}function f(e){return e}function p(){let e=d();return null!==e?e:null}let m=d;function h(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t)return t.rootParams}}return null}function g(e,t){e.varyParams.add(t)}function y(e){let t=h();null!==t&&g(t,e)}function b(e,t,r){if(null!==r)return new Proxy(t,{get:(t,n,a)=>("string"==typeof n&&(n===r||Object.prototype.hasOwnProperty.call(t,n))&&g(e,n),Reflect.get(t,n,a)),has:(t,n)=>(n===r&&g(e,r),Reflect.has(t,n)),ownKeys:t=>(g(e,r),Reflect.ownKeys(t))});let n={};for(let r in t)Object.defineProperty(n,r,{get:()=>(g(e,r),t[r]),enumerable:!0});return n}function P(e,t){let r={};for(let n in t)Object.defineProperty(r,n,{get:()=>(g(e,"?"),t[n]),enumerable:!0});return r}async function _(e){let t=e.rootParams.varyParams;for(let r of(v(e.head,t),e.segments))v(r,t);await Promise.resolve(),await Promise.resolve(),await Promise.resolve()}function v(e,t){if("pending"!==e.status)return;let r=new Set(e.varyParams);for(let e of t)r.add(e);for(let t of(e.value=r,e.status="fulfilled",e.resolvers))t(r);e.resolvers=[]}},42715,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},76361,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return l}});let n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(void 0);if(t&&t.has(e))return t.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(e.r(71645));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}let o={current:null},i="function"==typeof n.cache?n.cache:e=>e,s=console.warn;function l(e){return function(...t){s(e(...t))}}i(e=>{try{s(o.current)}finally{o.current=null}})},65932,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={describeHasCheckingStringProperty:function(){return s},describeStringPropertyAccess:function(){return i},wellKnownProperties:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function i(e,t){return o.test(t)?`\`${e}.${t}\``:`\`${e}[${JSON.stringify(t)}]\``}function s(e,t){let r=JSON.stringify(t);return`\`Reflect.has(${e}, ${r})\`, \`${r} in ${e}\`, or similar`}let l=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule","@@iterator"])},83066,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},41643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=e.r(83066)},50999,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isRequestAPICallableInsideAfter:function(){return c},throwForSearchParamsAccessInUseCache:function(){return l},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(43248),i=e.r(41643);function s(e,t){throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function l(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function c(){let e=i.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},28649,(e,t,r)=>{"use strict";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={},l={RequestCookies:()=>h,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>f,stringifyCookie:()=>u};for(var c in l)n(s,c,{get:l[c],enumerable:!0});function u(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function f(e){if(!e)return;let[[t,r],...n]=d(e),{domain:a,expires:o,httponly:i,maxage:s,path:l,samesite:c,secure:u,partitioned:f,priority:h}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,y,b={name:t,value:decodeURIComponent(r),domain:a,...o&&{expires:new Date(o)},...i&&{httpOnly:!0},..."string"==typeof s&&{maxAge:Number(s)},path:l,...c&&{sameSite:p.includes(g=(g=c).toLowerCase())?g:void 0},...u&&{secure:!0},...h&&{priority:m.includes(y=(y=h).toLowerCase())?y:void 0},...f&&{partitioned:!0}};let e={};for(let t in b)b[t]&&(e[t]=b[t]);return e}}t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))i.call(e,s)||void 0===s||n(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e})(n({},"__esModule",{value:!0}),s);var p=["strict","lax","none"],m=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>u(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>u(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const a=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,n,a,o,i=[],s=0;function l(){for(;s=e.length)&&i.push(e.substring(t,e.length))}return i}(a)){const t=f(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=u(r);t.append("set-cookie",e)}}(a,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(u).join("; ")}}},96883,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RequestCookies:function(){return o.RequestCookies},ResponseCookies:function(){return o.ResponseCookies},stringifyCookie:function(){return o.stringifyCookie}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(28649)},97270,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={MutableRequestCookiesAdapter:function(){return m},ReadonlyRequestCookiesError:function(){return c},RequestCookiesAdapter:function(){return u},appendMutableCookies:function(){return p},areCookiesMutableInCurrentPhase:function(){return g},createCookiesWithMutableAccessCheck:function(){return h},getModifiedCookieValues:function(){return f},responseCookiesToRequestCookies:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(96883),i=e.r(42715),s=e.r(63599),l=e.r(39146);class c extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options")}static callable(){throw new c}}class u{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return c.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}}let d=Symbol.for("next.mutated.cookies");function f(e){let t=e[d];return t&&Array.isArray(t)&&0!==t.length?t:[]}function p(e,t){let r=f(t);if(0===r.length)return!1;let n=new o.ResponseCookies(e),a=n.getAll();for(let e of r)n.set(e);for(let e of a)n.set(e);return!0}class m{static wrap(e,t){let r=new o.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let n=[],a=new Set,c=()=>{let e=s.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=l.ActionDidRevalidateStaticAndDynamic),n=r.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of n){let r=new o.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}},u=new Proxy(r,{get(e,t,r){switch(t){case d:return n;case"delete":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.delete(...t),u}finally{c()}};case"set":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t),u}finally{c()}};default:return i.ReflectAdapter.get(e,t,r)}}});return u}}function h(e){let t=new Proxy(e.mutableCookies,{get(r,n,a){switch(n){case"delete":return function(...n){return y(e,"cookies().delete"),r.delete(...n),t};case"set":return function(...n){return y(e,"cookies().set"),r.set(...n),t};default:return i.ReflectAdapter.get(r,n,a)}}});return t}function g(e){return"action"===e.phase}function y(e,t){if(!g(e))throw new c}function b(e){let t=new o.RequestCookies(new Headers);for(let r of e.getAll())t.set(r);return t}},87720,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HeadersAdapter:function(){return s},ReadonlyHeadersError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(42715);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class s extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return o.ReflectAdapter.get(t,r,n);let a=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===a);if(void 0!==i)return o.ReflectAdapter.get(t,i,n)},set(t,r,n,a){if("symbol"==typeof r)return o.ReflectAdapter.set(t,r,n,a);let i=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===i);return o.ReflectAdapter.set(t,s??r,n,a)},has(t,r){if("symbol"==typeof r)return o.ReflectAdapter.has(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==a&&o.ReflectAdapter.has(t,a)},deleteProperty(t,r){if("symbol"==typeof r)return o.ReflectAdapter.deleteProperty(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===a||o.ReflectAdapter.deleteProperty(t,a)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return o.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new s(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},1643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return i},isCatchAll:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(91463);function i(e){let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function s(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return _},NormalizeError:function(){return b},PageNotFoundError:function(){return P},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>s.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class P extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class _ extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},90929,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return o}});let n=e.r(18967),a=e.r(98183);function o(e,t,r=!0){let i=new URL("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationError:function(){return s},isInstantValidationError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o="INSTANT_VALIDATION_ERROR";function i(e){return!!(e&&"object"==typeof e&&e instanceof Error&&e.digest===o)}class s extends Error{constructor(...e){super(...e),this.digest=o}}},18450,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assertRootParamInSamples:function(){return S},createCookiesFromSample:function(){return y},createDraftModeForValidation:function(){return _},createExhaustiveParamsProxy:function(){return v},createExhaustiveSearchParamsProxy:function(){return E},createExhaustiveURLSearchParamsProxy:function(){return O},createHeadersFromSample:function(){return P},createRelativeURLFromSamples:function(){return w},createValidationSampleTracking:function(){return m},trackMissingSampleError:function(){return h},trackMissingSampleErrorAndThrow:function(){return g}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(96883),i=e.r(97270),s=e.r(87720),l=e.r(1643),c=e.r(90929),u=e.r(12718),d=e.r(13770),f=e.r(62141),p=e.r(65932);function m(){return{missingSampleErrors:[]}}function h(e){(function(){let e=null,t=f.workUnitAsyncStorage.getStore();if(t)switch(t.type){case"request":case"validation-client":e=t.validationSampleTracking??null}if(!e)throw Object.defineProperty(new u.InvariantError("Expected to have a workUnitStore that provides validationSampleTracking"),"__NEXT_ERROR_CODE",{value:"E1110",enumerable:!1,configurable:!0});return e})().missingSampleErrors.push(e)}function g(e){throw h(e),e}function y(e,t){let r=new Set,n=new o.RequestCookies(new Headers);if(e)for(let t of e)r.add(t.name),null!==t.value&&n.set(t.name,t.value);return new Proxy(i.RequestCookiesAdapter.seal(n),{get(e,n,a){if("has"===n){let o=Reflect.get(e,n,a);return function(n){return r.has(n)||g(b(t,n)),o.call(e,n)}}if("get"===n){let o=Reflect.get(e,n,a);return function(n){let a;if("string"==typeof n)a=n;else{if(!n||"object"!=typeof n||"string"!=typeof n.name)return o.call(e,n);a=n.name}return r.has(a)||g(b(t,a)),o.call(e,a)}}return Reflect.get(e,n,a)}})}function b(e,t){return Object.defineProperty(new d.InstantValidationError(`Route "${e}" accessed cookie "${t}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`cookies\` array, or \`{ name: "${t}", value: null }\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1115",enumerable:!1,configurable:!0})}function P(e,t,r){let n=e?[...e]:[];if(n.find(([e])=>"cookie"===e.toLowerCase()))throw Object.defineProperty(new d.InstantValidationError('Invalid sample: Defining cookies via a "cookie" header is not supported. Use `cookies: [{ name: ..., value: ... }]` instead.'),"__NEXT_ERROR_CODE",{value:"E1111",enumerable:!1,configurable:!0});if(t){let e=t.toString();n.push(["cookie",""!==e?e:null])}let a=new Set,o={};for(let[e,t]of n)a.add(e.toLowerCase()),null!==t&&(o[e.toLowerCase()]=t);return new Proxy(s.HeadersAdapter.seal(s.HeadersAdapter.from(o)),{get(e,t,n){if("get"===t||"has"===t){let o=Reflect.get(e,t,n);return function(t){let n=t.toLowerCase();return a.has(n)||g(Object.defineProperty(new d.InstantValidationError(`Route "${r}" accessed header "${n}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`headers\` array, or \`["${n}", null]\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1116",enumerable:!1,configurable:!0})),o.call(e,n)}}return Reflect.get(e,t,n)}})}function _(){return{get isEnabled(){return!1},enable(){throw Object.defineProperty(Error("Draft mode cannot be enabled during build-time instant validation."),"__NEXT_ERROR_CODE",{value:"E1092",enumerable:!1,configurable:!0})},disable(){throw Object.defineProperty(Error("Draft mode cannot be disabled during build-time instant validation."),"__NEXT_ERROR_CODE",{value:"E1094",enumerable:!1,configurable:!0})}}}function v(e,t,r){return new Proxy(e,{get:(n,a,o)=>("string"==typeof a&&!p.wellKnownProperties.has(a)&&a in e&&!t.has(a)&&g(Object.defineProperty(new d.InstantValidationError(`Route "${r}" accessed param "${a}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`),"__NEXT_ERROR_CODE",{value:"E1095",enumerable:!1,configurable:!0})),Reflect.get(n,a,o))})}function E(e,t,r){return new Proxy(e,{get:(e,n,a)=>("string"!=typeof n||p.wellKnownProperties.has(n)||t.has(n)||g(R(r,n)),Reflect.get(e,n,a)),has:(e,n)=>("string"!=typeof n||p.wellKnownProperties.has(n)||t.has(n)||g(R(r,n)),Reflect.has(e,n))})}function O(e,t,r){return new Proxy(e,{get(e,n,a){if("get"===n||"getAll"===n||"has"===n){let o=Reflect.get(e,n,a);return n=>("string"!=typeof n||t.has(n)||g(R(r,n)),o.call(e,n))}let o=Reflect.get(e,n,a);return"function"!=typeof o||Object.hasOwn(e,n)?o:o.bind(e)}})}function R(e,t){return Object.defineProperty(new d.InstantValidationError(`Route "${e}" accessed searchParam "${t}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`searchParams\` object, or \`{ "${t}": null }\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1098",enumerable:!1,configurable:!0})}function w(e,t,r){let n=function(e,t){let r=[];for(let n of e.split("/")){let e=(0,l.getSegmentParam)(n);if(e)switch(e.paramType){case"catchall":case"optional-catchall":{let a=t[e.paramName];if(void 0===a)a=[n];else if(!Array.isArray(a))throw Object.defineProperty(new d.InstantValidationError(`Expected sample param value for segment '${n}' to be an array of strings, got ${typeof a}`),"__NEXT_ERROR_CODE",{value:"E1104",enumerable:!1,configurable:!0});r.push(...a.map(e=>encodeURIComponent(e)));break}case"dynamic":{let a=t[e.paramName];if(void 0===a)a=n;else if("string"!=typeof a)throw Object.defineProperty(new d.InstantValidationError(`Expected sample param value for segment '${n}' to be a string, got ${typeof a}`),"__NEXT_ERROR_CODE",{value:"E1108",enumerable:!1,configurable:!0});r.push(encodeURIComponent(a));break}case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":throw Object.defineProperty(new u.InvariantError("Not implemented: Validation of interception routes"),"__NEXT_ERROR_CODE",{value:"E1106",enumerable:!1,configurable:!0});default:e.paramType}else r.push(n)}return r.join("/")}(e,t??{}),a="";if(r){let e=(function(e){let t=new URLSearchParams;if(e){for(let[r,n]of Object.entries(e))if(null!=n)if(Array.isArray(n))for(let e of n)t.append(r,e);else t.set(r,n)}return t})(r).toString();e&&(a="?"+e)}return(0,c.parseRelativeUrl)(n+a,void 0,!0)}function S(e,t,r){if(t&&r in t);else{let t=e.route;g(Object.defineProperty(new d.InstantValidationError(`Route "${t}" accessed root param "${r}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`),"__NEXT_ERROR_CODE",{value:"E1114",enumerable:!1,configurable:!0}))}}},69882,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createPrerenderSearchParamsForClientPage:function(){return P},createSearchParamsFromClient:function(){return g},createServerSearchParamsForMetadata:function(){return y},createServerSearchParamsForServerPage:function(){return b},makeErroringSearchParamsForUseCache:function(){return R}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(63599),i=e.r(66373),s=e.r(42715),l=e.r(67673),c=e.r(62141),u=e.r(12718),d=e.r(63138),f=e.r(76361),p=e.r(65932),m=e.r(50999),h=e.r(42852);function g(t){let r=o.workAsyncStorage.getStore();if(!r)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let n=c.workUnitAsyncStorage.getStore();if(n)switch(n.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return _(r,n);case"validation-client":return function(t,r,n){var a;let{createExhaustiveSearchParamsProxy:o}=e.r(18450);return Promise.resolve(t=o(t,new Set(Object.keys((null==(a=n.validationSamples)?void 0:a.searchParams)??{})),r.route))}(t,r,n);case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E769",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E739",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1133",enumerable:!1,configurable:!0});case"request":return v(t,r,n,!1)}(0,c.throwInvariantForMissingStore)()}function y(e,t){return b(e,(0,i.getMetadataVaryParamsAccumulator)(),t)}function b(e,t,r){let n=o.workAsyncStorage.getStore();if(!n)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let a=c.workUnitAsyncStorage.getStore();if(a)switch(a.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return _(n,a);case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called in a client validation."),"__NEXT_ERROR_CODE",{value:"E1066",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E747",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1128",enumerable:!1,configurable:!0});case"prerender-runtime":return function(e,t,r,n){let a=w(null!==r?(0,i.createVaryingSearchParams)(r,e):e),{stagedRendering:o}=t;if(!o)return a;let s=n?h.RenderStage.EarlyRuntime:h.RenderStage.Runtime;return o.waitForStage(s).then(()=>a)}(e,a,t,r);case"request":return v(e,n,a,r)}(0,c.throwInvariantForMissingStore)()}function P(){let e=o.workAsyncStorage.getStore();if(!e)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});if(e.forceStatic)return Promise.resolve({});let t=c.workUnitAsyncStorage.getStore();if(t)switch(t.type){case"prerender":case"prerender-client":return(0,d.makeHangingPromise)(t.renderSignal,e.route,"`searchParams`");case"validation-client":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in a client validation."),"__NEXT_ERROR_CODE",{value:"E1061",enumerable:!1,configurable:!0});case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E768",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E746",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1124",enumerable:!1,configurable:!0});case"prerender-ppr":case"prerender-legacy":case"request":return Promise.resolve({})}(0,c.throwInvariantForMissingStore)()}function _(e,t){if(e.forceStatic)return Promise.resolve({});switch(t.type){case"prerender":case"prerender-client":var r=e,n=t;let a=E.get(n);if(a)return a;let o=(0,d.makeHangingPromise)(n.renderSignal,r.route,"`searchParams`"),i=new Proxy(o,{get(e,t,r){if(Object.hasOwn(o,t))return s.ReflectAdapter.get(e,t,r);switch(t){case"then":return(0,l.annotateDynamicAccess)("`await searchParams`, `searchParams.then`, or similar",n),s.ReflectAdapter.get(e,t,r);case"status":return(0,l.annotateDynamicAccess)("`use(searchParams)`, `searchParams.status`, or similar",n),s.ReflectAdapter.get(e,t,r);default:return s.ReflectAdapter.get(e,t,r)}}});return E.set(n,i),i;case"prerender-ppr":case"prerender-legacy":var c=e,u=t;let f=E.get(c);if(f)return f;let p=Promise.resolve({}),h=new Proxy(p,{get(e,t,r){if(Object.hasOwn(p,t))return s.ReflectAdapter.get(e,t,r);if("string"==typeof t&&"then"===t){let e="`await searchParams`, `searchParams.then`, or similar";c.dynamicShouldError?(0,m.throwWithStaticGenerationBailoutErrorWithDynamicError)(c.route,e):"prerender-ppr"===u.type?(0,l.postponeWithTracking)(c.route,e,u.dynamicTracking):(0,l.throwToInterruptStaticGeneration)(e,c,u)}return s.ReflectAdapter.get(e,t,r)}});return E.set(c,h),h;default:return t}}function v(t,r,n,a){if(r.forceStatic)return Promise.resolve({});if(!n.asyncApiPromises)return w(t);if(n.validationSamples){let{createExhaustiveSearchParamsProxy:a}=e.r(18450),o=new Set(Object.keys(n.validationSamples.searchParams??{}));t=a(t,o,r.route)}return(a?n.asyncApiPromises.earlySharedSearchParamsParent:n.asyncApiPromises.sharedSearchParamsParent).then(()=>t)}let E=new WeakMap,O=new WeakMap;function R(){let e=o.workAsyncStorage.getStore();if(!e)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let t=O.get(e);if(t)return t;let r=Promise.resolve({}),n=new Proxy(r,{get:function t(n,a,o){return Object.hasOwn(r,a)||"string"!=typeof a||"then"!==a&&p.wellKnownProperties.has(a)||(0,m.throwForSearchParamsAccessInUseCache)(e,t),s.ReflectAdapter.get(n,a,o)}});return O.set(e,n),n}function w(e){let t=E.get(e);if(t)return t;let r=Promise.resolve(e);return E.set(e,r),r}(0,f.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`searchParams\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E848",enumerable:!1,configurable:!0})})},74804,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"dynamicAccessAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},88276,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"dynamicAccessAsyncStorage",{enumerable:!0,get:function(){return n.dynamicAccessAsyncStorageInstance}});let n=e.r(74804)},41489,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createParamsFromClient:function(){return g},createPrerenderParamsForClientSegment:function(){return _},createServerParamsForMetadata:function(){return y},createServerParamsForRoute:function(){return b},createServerParamsForServerSegment:function(){return P}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(63599),i=e.r(66373),s=e.r(42715),l=e.r(67673),c=e.r(62141),u=e.r(12718),d=e.r(65932),f=e.r(63138),p=e.r(76361),m=e.r(88276),h=e.r(42852);function g(e){let t=o.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let r=c.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return v(e,null,t,r,null);case"validation-client":return O(e,t,r.validationSamples);case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E736",enumerable:!1,configurable:!0});case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E770",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1122",enumerable:!1,configurable:!0});case"request":if(r.validationSamples)return O(e,t,r.validationSamples);return S(e)}(0,c.throwInvariantForMissingStore)()}function y(e,t,r){return P(e,t,(0,i.getMetadataVaryParamsAccumulator)(),r)}function b(e,t=null){let r=o.workAsyncStorage.getStore();if(!r)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let n=c.workUnitAsyncStorage.getStore();if(n)switch(n.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return v(e,null,r,n,t);case"prerender-client":case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called in client contexts."),"__NEXT_ERROR_CODE",{value:"E1064",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E738",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1131",enumerable:!1,configurable:!0});case"prerender-runtime":return E(e,null,n,t,!1);case"request":return S(e)}(0,c.throwInvariantForMissingStore)()}function P(t,r,n,a){let i=o.workAsyncStorage.getStore();if(!i)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let s=c.workUnitAsyncStorage.getStore();if(s)switch(s.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return v(t,r,i,s,n);case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called in client contexts."),"__NEXT_ERROR_CODE",{value:"E1101",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E743",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1120",enumerable:!1,configurable:!0});case"prerender-runtime":return E(t,r,s,n,a);case"request":if(s.asyncApiPromises&&s.validationSamples)return function(t,r,n,a,o){let{createExhaustiveParamsProxy:i}=e.r(18450),s=i(t,new Set(Object.keys(n.params??{})),r.route);return(o?a.earlySharedParamsParent:a.sharedParamsParent).then(()=>s)}(t,i,s.validationSamples,s.asyncApiPromises,a);if(s.asyncApiPromises&&function(e,t){if(t){for(let r in e)if(t.has(r))return!0}return!1}(t,s.fallbackParams))return(a?s.asyncApiPromises.earlySharedParamsParent:s.asyncApiPromises.sharedParamsParent).then(()=>t);return S(t)}(0,c.throwInvariantForMissingStore)()}function _(e){let t=o.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new u.InvariantError("Missing workStore in createPrerenderParamsForClientSegment"),"__NEXT_ERROR_CODE",{value:"E773",enumerable:!1,configurable:!0});let r=c.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-client":let n=r.fallbackRouteParams;if(n){for(let a in e)if(n.has(a))return(0,f.makeHangingPromise)(r.renderSignal,t.route,"`params`")}break;case"validation-client":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called in validation contexts."),"__NEXT_ERROR_CODE",{value:"E1099",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E734",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1126",enumerable:!1,configurable:!0})}return Promise.resolve(e)}function v(e,t,r,n,a){let o=null!==a?(0,i.createVaryingParams)(a,e,t):e;switch(n.type){case"prerender":case"prerender-client":{let t=n.fallbackRouteParams;if(t){for(let a in e)if(t.has(a))return function(e,t,r){let n=R.get(e);if(n)return n;let a=new Proxy((0,f.makeHangingPromise)(r.renderSignal,t.route,"`params`"),w);return R.set(e,a),a}(o,r,n)}break}case"prerender-ppr":{let t=n.fallbackRouteParams;if(t){for(let a in e)if(t.has(a))return function(e,t,r,n){let a=R.get(e);if(a)return a;let o={...e},i=Promise.resolve(o);return R.set(e,i),Object.keys(e).forEach(e=>{d.wellKnownProperties.has(e)||t.has(e)&&Object.defineProperty(o,e,{get(){let t=(0,d.describeStringPropertyAccess)("params",e);"prerender-ppr"===n.type?(0,l.postponeWithTracking)(r.route,t,n.dynamicTracking):(0,l.throwToInterruptStaticGeneration)(t,r,n)},enumerable:!0})}),i}(o,t,r,n)}}}return S(o)}function E(e,t,r,n,a){let o=S(null!==n?(0,i.createVaryingParams)(n,e,t):e),{stagedRendering:s}=r;if(!s)return o;let l=a?h.RenderStage.EarlyRuntime:h.RenderStage.Runtime;return s.waitForStage(l).then(()=>o)}function O(t,r,n){let{createExhaustiveParamsProxy:a}=e.r(18450);return Promise.resolve(a(t,new Set(Object.keys((null==n?void 0:n.params)??{})),r.route))}let R=new WeakMap,w={get:function(e,t,r){if("then"===t||"catch"===t||"finally"===t){let n=s.ReflectAdapter.get(e,t,r);return({[t]:(...t)=>{let r=m.dynamicAccessAsyncStorage.getStore();return r&&r.abortController.abort(Object.defineProperty(Error("Accessed fallback `params` during prerendering."),"__NEXT_ERROR_CODE",{value:"E691",enumerable:!1,configurable:!0})),new Proxy(n.apply(e,t),w)}})[t]}return s.ReflectAdapter.get(e,t,r)}};function S(e){let t=R.get(e);if(t)return t;let r=Promise.resolve(e);return R.set(e,r),r}(0,p.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`params\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E834",enumerable:!1,configurable:!0})})},47257,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return l}});let n=e.r(43476),a=e.r(8372),o=e.r(71645),i=e.r(33906),s=e.r(61994);function l({Component:t,serverProvidedParams:r}){let c,u;if(null!==r)c=r.searchParams,u=r.params;else{let e=(0,o.use)(a.LayoutRouterContext);u=null!==e?e.parentParams:{},c=(0,i.urlSearchParamsToParsedUrlQuery)((0,o.use)(s.SearchParamsContext))}if("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return i}});let n=e.r(43476),a=e.r(8372),o=e.r(71645);function i({Component:t,slots:r,serverProvidedParams:s}){let l;if(null!==s)l=s.params;else{let e=(0,o.use)(a.LayoutRouterContext);l=null!==e?e.parentParams:{}}if("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return a}});let n=e.r(43476),a=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js b/web/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js deleted file mode 100644 index 014d9b2e..00000000 --- a/web/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},91915,(e,t,r)=>{"use strict";function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let a=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=a}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),e.r(33525)},68017,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return u}});let n=e.r(90809),a=e.r(43476),o=n._(e.r(71645)),i=e.r(90373),s=e.r(54394);e.r(33525);let l=e.r(8372);class c extends o.default.Component{constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}componentDidCatch(){}static getDerivedStateFromError(e){if((0,s.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,s.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:o}=this.state,i={[s.HTTPAccessErrorStatus.NOT_FOUND]:e,[s.HTTPAccessErrorStatus.FORBIDDEN]:t,[s.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(o){let l=o===s.HTTPAccessErrorStatus.NOT_FOUND&&e,c=o===s.HTTPAccessErrorStatus.FORBIDDEN&&t,u=o===s.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return l||c||u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{name:"robots",content:"noindex"}),!1,i[o]]}):n}return n}}function u({notFound:e,forbidden:t,unauthorized:r,children:n}){let s=(0,i.useUntrackedPathname)(),d=(0,o.useContext)(l.MissingSlotContext);return e||t||r?(0,a.jsx)(c,{pathname:s,notFound:e,forbidden:t,unauthorized:r,missingSlots:d,children:n}):(0,a.jsx)(a.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28298,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t,r){let[a,o]=(0,n.useState)(()=>({tree:e,cacheNode:t,stateKey:r,next:null}));if(a.tree===e)return a;let i={tree:e,cacheNode:t,stateKey:r,next:null},s=1,l=a,c=i;for(;null!==l&&s<1;){if(l.stateKey===r){c.next=l.next;break}{s++;let e={tree:l.tree,cacheNode:l.cacheNode,stateKey:l.stateKey,next:null};c.next=e,c=e}l=l.next}return o(i),i}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39756,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={LoadingBoundaryProvider:function(){return j},default:function(){return A}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(55682),i=e.r(90809),s=e.r(43476),l=i._(e.r(71645)),c=o._(e.r(74080)),u=e.r(8372),d=e.r(1244),f=e.r(72383),p=e.r(91915),m=e.r(58442),h=e.r(68017),g=e.r(70725),y=e.r(28298);e.r(74180);let b=e.r(61994),P=e.r(33906),_=e.r(95871),v=c.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=["bottom","height","left","right","top","width","x","y"];function O(e,t){let r=e.getClientRects();if(0===r.length)return!1;let n=1/0;for(let e=0;e=0&&n<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,cacheNode:t}=this.props,r=e.forceScroll?e.scrollRef:t.scrollRef;if(null===r||!r.current)return;let n=null,a=e.hashFragment;if(a&&(n="top"===a?document.body:document.getElementById(a)??document.getElementsByName(a)[0]),n||(n="u"0===t[e])}(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}r.current=!1,(0,p.disableSmoothScrollDuringRouteTransition)(()=>{if(a)return void n.scrollIntoView();let e=document.documentElement,t=e.clientHeight;!O(n,t)&&(e.scrollTop=0,O(n,t)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,e.hashFragment=null,n.focus()}}}}function w({children:e,cacheNode:t}){let r=(0,l.useContext)(u.GlobalLayoutRouterContext);if(!r)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,s.jsx)(R,{focusAndScrollRef:r.focusAndScrollRef,cacheNode:t,children:e})}function S({tree:e,segmentPath:t,debugNameContext:r,cacheNode:n,params:a,url:o,isActive:i}){let c,f=(0,l.useContext)(u.GlobalLayoutRouterContext);if((0,l.useContext)(b.NavigationPromisesContext),!f)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let p=null!==n?n:(0,l.use)(d.unresolvedThenable),m=null!==p.prefetchRsc?p.prefetchRsc:p.rsc,h=(0,l.useDeferredValue)(p.rsc,m);if((0,_.isDeferredRsc)(h)){let e=(0,l.use)(h);null===e&&(0,l.use)(d.unresolvedThenable),c=e}else null===h&&(0,l.use)(d.unresolvedThenable),c=h;let g=c;return(0,s.jsx)(u.LayoutRouterContext.Provider,{value:{parentTree:e,parentCacheNode:p,parentSegmentPath:t,parentParams:a,parentLoadingData:null,debugNameContext:r,url:o,isActive:i},children:g})}function j({loading:e,children:t}){let r=(0,l.use)(u.LayoutRouterContext);return null===r?t:(0,s.jsx)(u.LayoutRouterContext.Provider,{value:{parentTree:r.parentTree,parentCacheNode:r.parentCacheNode,parentSegmentPath:r.parentSegmentPath,parentParams:r.parentParams,parentLoadingData:e,debugNameContext:r.debugNameContext,url:r.url,isActive:r.isActive},children:t})}function C({name:e,loading:t,children:r}){if(null!==t){let n=t[0],a=t[1],o=t[2];return(0,s.jsx)(l.Suspense,{name:e,fallback:(0,s.jsxs)(s.Fragment,{children:[a,o,n]}),children:r})}return(0,s.jsx)(s.Fragment,{children:r})}function A({parallelRouterKey:e,error:t,errorStyles:r,errorScripts:n,templateStyles:a,templateScripts:o,template:i,notFound:c,forbidden:p,unauthorized:b,segmentViewBoundaries:_}){let v=(0,l.useContext)(u.LayoutRouterContext);if(!v)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:E,parentCacheNode:O,parentSegmentPath:R,parentParams:j,parentLoadingData:x,url:k,isActive:T,debugNameContext:N}=v,D=E[0],M=null===R?[e]:R.concat([D,e]),I=E[1][e],F=O.slots;(void 0===I||null===F)&&(0,l.use)(d.unresolvedThenable);let $=I[0],L=F[e]??null,U=(0,g.createRouterCacheKey)($,!0),X=(0,y.useRouterBFCache)(I,L,U),V=[];do{let e=X.tree,l=X.cacheNode,d=X.stateKey,g=e[0],y=j;if(Array.isArray(g)){let e=g[0],t=g[1],r=g[2],n=(0,P.getParamValueFromCacheKey)(t,r);null!==n&&(y={...j,[e]:n})}let _=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(g),v=_??N,E=void 0===_?void 0:N,O=(0,s.jsxs)(w,{cacheNode:l,children:[(0,s.jsx)(f.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:(0,s.jsx)(C,{name:E,loading:x,children:(0,s.jsx)(h.HTTPAccessFallbackBoundary,{notFound:c,forbidden:p,unauthorized:b,children:(0,s.jsxs)(m.RedirectBoundary,{children:[(0,s.jsx)(S,{url:k,tree:e,params:y,cacheNode:l,segmentPath:M,debugNameContext:v,isActive:T&&d===U}),null]})})})}),null]}),R=(0,s.jsxs)(u.TemplateContext.Provider,{value:O,children:[a,o,i]},d);V.push(R),X=X.next}while(null!==X)return V}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},37457,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(90809),a=e.r(43476),o=n._(e.r(71645)),i=e.r(8372);function s(){let e=(0,o.useContext)(i.TemplateContext);return(0,a.jsx)(a.Fragment,{children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},93504,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},66996,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(93504).createRenderSearchParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},6831,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},97689,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(6831).createRenderParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},66373,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={accumulateRootVaryParam:function(){return y},accumulateVaryParam:function(){return g},createResponseVaryParamsAccumulator:function(){return c},createVaryParamsAccumulator:function(){return u},createVaryingParams:function(){return b},createVaryingSearchParams:function(){return P},emptyVaryParamsAccumulator:function(){return l},finishAccumulatingVaryParams:function(){return _},getMetadataVaryParamsAccumulator:function(){return d},getMetadataVaryParamsThenable:function(){return p},getRootParamsVaryParamsAccumulator:function(){return h},getVaryParamsThenable:function(){return f},getViewportVaryParamsAccumulator:function(){return m}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(62141);function i(){let e={varyParams:new Set,status:"pending",value:new Set,then(t){t&&("pending"===e.status?e.resolvers.push(t):t(e.value))},resolvers:[]};return e}let s=new Set,l={varyParams:s,status:"fulfilled",value:s,then(e){e&&e(s)},resolvers:[]};function c(){let e=i();return{head:e,rootParams:i(),segments:new Set}}function u(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t){let e=i();return t.segments.add(e),e}}}return null}function d(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t)return t.head}}return null}function f(e){return e}function p(){let e=d();return null!==e?e:null}let m=d;function h(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t)return t.rootParams}}return null}function g(e,t){e.varyParams.add(t)}function y(e){let t=h();null!==t&&g(t,e)}function b(e,t,r){if(null!==r)return new Proxy(t,{get:(t,n,a)=>("string"==typeof n&&(n===r||Object.prototype.hasOwnProperty.call(t,n))&&g(e,n),Reflect.get(t,n,a)),has:(t,n)=>(n===r&&g(e,r),Reflect.has(t,n)),ownKeys:t=>(g(e,r),Reflect.ownKeys(t))});let n={};for(let r in t)Object.defineProperty(n,r,{get:()=>(g(e,r),t[r]),enumerable:!0});return n}function P(e,t){let r={};for(let n in t)Object.defineProperty(r,n,{get:()=>(g(e,"?"),t[n]),enumerable:!0});return r}async function _(e){let t=e.rootParams.varyParams;for(let r of(v(e.head,t),e.segments))v(r,t);await Promise.resolve(),await Promise.resolve(),await Promise.resolve()}function v(e,t){if("pending"!==e.status)return;let r=new Set(e.varyParams);for(let e of t)r.add(e);for(let t of(e.value=r,e.status="fulfilled",e.resolvers))t(r);e.resolvers=[]}},42715,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},76361,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return l}});let n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(void 0);if(t&&t.has(e))return t.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(e.r(71645));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}let o={current:null},i="function"==typeof n.cache?n.cache:e=>e,s=console.warn;function l(e){return function(...t){s(e(...t))}}i(e=>{try{s(o.current)}finally{o.current=null}})},65932,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={describeHasCheckingStringProperty:function(){return s},describeStringPropertyAccess:function(){return i},wellKnownProperties:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function i(e,t){return o.test(t)?`\`${e}.${t}\``:`\`${e}[${JSON.stringify(t)}]\``}function s(e,t){let r=JSON.stringify(t);return`\`Reflect.has(${e}, ${r})\`, \`${r} in ${e}\`, or similar`}let l=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule","@@iterator"])},83066,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},41643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=e.r(83066)},50999,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isRequestAPICallableInsideAfter:function(){return c},throwForSearchParamsAccessInUseCache:function(){return l},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(43248),i=e.r(41643);function s(e,t){throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function l(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function c(){let e=i.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},28649,(e,t,r)=>{"use strict";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={},l={RequestCookies:()=>h,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>f,stringifyCookie:()=>u};for(var c in l)n(s,c,{get:l[c],enumerable:!0});function u(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function f(e){if(!e)return;let[[t,r],...n]=d(e),{domain:a,expires:o,httponly:i,maxage:s,path:l,samesite:c,secure:u,partitioned:f,priority:h}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,y,b={name:t,value:decodeURIComponent(r),domain:a,...o&&{expires:new Date(o)},...i&&{httpOnly:!0},..."string"==typeof s&&{maxAge:Number(s)},path:l,...c&&{sameSite:p.includes(g=(g=c).toLowerCase())?g:void 0},...u&&{secure:!0},...h&&{priority:m.includes(y=(y=h).toLowerCase())?y:void 0},...f&&{partitioned:!0}};let e={};for(let t in b)b[t]&&(e[t]=b[t]);return e}}t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))i.call(e,s)||void 0===s||n(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e})(n({},"__esModule",{value:!0}),s);var p=["strict","lax","none"],m=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>u(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>u(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const a=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,n,a,o,i=[],s=0;function l(){for(;s=e.length)&&i.push(e.substring(t,e.length))}return i}(a)){const t=f(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=u(r);t.append("set-cookie",e)}}(a,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(u).join("; ")}}},96883,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RequestCookies:function(){return o.RequestCookies},ResponseCookies:function(){return o.ResponseCookies},stringifyCookie:function(){return o.stringifyCookie}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(28649)},97270,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={MutableRequestCookiesAdapter:function(){return m},ReadonlyRequestCookiesError:function(){return c},RequestCookiesAdapter:function(){return u},appendMutableCookies:function(){return p},areCookiesMutableInCurrentPhase:function(){return g},createCookiesWithMutableAccessCheck:function(){return h},getModifiedCookieValues:function(){return f},responseCookiesToRequestCookies:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(96883),i=e.r(42715),s=e.r(63599),l=e.r(39146);class c extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options")}static callable(){throw new c}}class u{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return c.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}}let d=Symbol.for("next.mutated.cookies");function f(e){let t=e[d];return t&&Array.isArray(t)&&0!==t.length?t:[]}function p(e,t){let r=f(t);if(0===r.length)return!1;let n=new o.ResponseCookies(e),a=n.getAll();for(let e of r)n.set(e);for(let e of a)n.set(e);return!0}class m{static wrap(e,t){let r=new o.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let n=[],a=new Set,c=()=>{let e=s.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=l.ActionDidRevalidateStaticAndDynamic),n=r.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of n){let r=new o.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}},u=new Proxy(r,{get(e,t,r){switch(t){case d:return n;case"delete":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.delete(...t),u}finally{c()}};case"set":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t),u}finally{c()}};default:return i.ReflectAdapter.get(e,t,r)}}});return u}}function h(e){let t=new Proxy(e.mutableCookies,{get(r,n,a){switch(n){case"delete":return function(...n){return y(e,"cookies().delete"),r.delete(...n),t};case"set":return function(...n){return y(e,"cookies().set"),r.set(...n),t};default:return i.ReflectAdapter.get(r,n,a)}}});return t}function g(e){return"action"===e.phase}function y(e,t){if(!g(e))throw new c}function b(e){let t=new o.RequestCookies(new Headers);for(let r of e.getAll())t.set(r);return t}},87720,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HeadersAdapter:function(){return s},ReadonlyHeadersError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(42715);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class s extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return o.ReflectAdapter.get(t,r,n);let a=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===a);if(void 0!==i)return o.ReflectAdapter.get(t,i,n)},set(t,r,n,a){if("symbol"==typeof r)return o.ReflectAdapter.set(t,r,n,a);let i=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===i);return o.ReflectAdapter.set(t,s??r,n,a)},has(t,r){if("symbol"==typeof r)return o.ReflectAdapter.has(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==a&&o.ReflectAdapter.has(t,a)},deleteProperty(t,r){if("symbol"==typeof r)return o.ReflectAdapter.deleteProperty(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===a||o.ReflectAdapter.deleteProperty(t,a)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return o.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new s(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},1643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return i},isCatchAll:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(91463);function i(e){let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function s(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return _},NormalizeError:function(){return b},PageNotFoundError:function(){return P},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>s.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class P extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class _ extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},90929,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return o}});let n=e.r(18967),a=e.r(98183);function o(e,t,r=!0){let i=new URL("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationError:function(){return s},isInstantValidationError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o="INSTANT_VALIDATION_ERROR";function i(e){return!!(e&&"object"==typeof e&&e instanceof Error&&e.digest===o)}class s extends Error{constructor(...e){super(...e),this.digest=o}}},18450,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assertRootParamInSamples:function(){return S},createCookiesFromSample:function(){return y},createDraftModeForValidation:function(){return _},createExhaustiveParamsProxy:function(){return v},createExhaustiveSearchParamsProxy:function(){return E},createExhaustiveURLSearchParamsProxy:function(){return O},createHeadersFromSample:function(){return P},createRelativeURLFromSamples:function(){return w},createValidationSampleTracking:function(){return m},trackMissingSampleError:function(){return h},trackMissingSampleErrorAndThrow:function(){return g}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(96883),i=e.r(97270),s=e.r(87720),l=e.r(1643),c=e.r(90929),u=e.r(12718),d=e.r(13770),f=e.r(62141),p=e.r(65932);function m(){return{missingSampleErrors:[]}}function h(e){(function(){let e=null,t=f.workUnitAsyncStorage.getStore();if(t)switch(t.type){case"request":case"validation-client":e=t.validationSampleTracking??null}if(!e)throw Object.defineProperty(new u.InvariantError("Expected to have a workUnitStore that provides validationSampleTracking"),"__NEXT_ERROR_CODE",{value:"E1110",enumerable:!1,configurable:!0});return e})().missingSampleErrors.push(e)}function g(e){throw h(e),e}function y(e,t){let r=new Set,n=new o.RequestCookies(new Headers);if(e)for(let t of e)r.add(t.name),null!==t.value&&n.set(t.name,t.value);return new Proxy(i.RequestCookiesAdapter.seal(n),{get(e,n,a){if("has"===n){let o=Reflect.get(e,n,a);return function(n){return r.has(n)||g(b(t,n)),o.call(e,n)}}if("get"===n){let o=Reflect.get(e,n,a);return function(n){let a;if("string"==typeof n)a=n;else{if(!n||"object"!=typeof n||"string"!=typeof n.name)return o.call(e,n);a=n.name}return r.has(a)||g(b(t,a)),o.call(e,a)}}return Reflect.get(e,n,a)}})}function b(e,t){return Object.defineProperty(new d.InstantValidationError(`Route "${e}" accessed cookie "${t}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`cookies\` array, or \`{ name: "${t}", value: null }\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1115",enumerable:!1,configurable:!0})}function P(e,t,r){let n=e?[...e]:[];if(n.find(([e])=>"cookie"===e.toLowerCase()))throw Object.defineProperty(new d.InstantValidationError('Invalid sample: Defining cookies via a "cookie" header is not supported. Use `cookies: [{ name: ..., value: ... }]` instead.'),"__NEXT_ERROR_CODE",{value:"E1111",enumerable:!1,configurable:!0});if(t){let e=t.toString();n.push(["cookie",""!==e?e:null])}let a=new Set,o={};for(let[e,t]of n)a.add(e.toLowerCase()),null!==t&&(o[e.toLowerCase()]=t);return new Proxy(s.HeadersAdapter.seal(s.HeadersAdapter.from(o)),{get(e,t,n){if("get"===t||"has"===t){let o=Reflect.get(e,t,n);return function(t){let n=t.toLowerCase();return a.has(n)||g(Object.defineProperty(new d.InstantValidationError(`Route "${r}" accessed header "${n}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`headers\` array, or \`["${n}", null]\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1116",enumerable:!1,configurable:!0})),o.call(e,n)}}return Reflect.get(e,t,n)}})}function _(){return{get isEnabled(){return!1},enable(){throw Object.defineProperty(Error("Draft mode cannot be enabled during build-time instant validation."),"__NEXT_ERROR_CODE",{value:"E1092",enumerable:!1,configurable:!0})},disable(){throw Object.defineProperty(Error("Draft mode cannot be disabled during build-time instant validation."),"__NEXT_ERROR_CODE",{value:"E1094",enumerable:!1,configurable:!0})}}}function v(e,t,r){return new Proxy(e,{get:(n,a,o)=>("string"==typeof a&&!p.wellKnownProperties.has(a)&&a in e&&!t.has(a)&&g(Object.defineProperty(new d.InstantValidationError(`Route "${r}" accessed param "${a}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`),"__NEXT_ERROR_CODE",{value:"E1095",enumerable:!1,configurable:!0})),Reflect.get(n,a,o))})}function E(e,t,r){return new Proxy(e,{get:(e,n,a)=>("string"!=typeof n||p.wellKnownProperties.has(n)||t.has(n)||g(R(r,n)),Reflect.get(e,n,a)),has:(e,n)=>("string"!=typeof n||p.wellKnownProperties.has(n)||t.has(n)||g(R(r,n)),Reflect.has(e,n))})}function O(e,t,r){return new Proxy(e,{get(e,n,a){if("get"===n||"getAll"===n||"has"===n){let o=Reflect.get(e,n,a);return n=>("string"!=typeof n||t.has(n)||g(R(r,n)),o.call(e,n))}let o=Reflect.get(e,n,a);return"function"!=typeof o||Object.hasOwn(e,n)?o:o.bind(e)}})}function R(e,t){return Object.defineProperty(new d.InstantValidationError(`Route "${e}" accessed searchParam "${t}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`searchParams\` object, or \`{ "${t}": null }\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1098",enumerable:!1,configurable:!0})}function w(e,t,r){let n=function(e,t){let r=[];for(let n of e.split("/")){let e=(0,l.getSegmentParam)(n);if(e)switch(e.paramType){case"catchall":case"optional-catchall":{let a=t[e.paramName];if(void 0===a)a=[n];else if(!Array.isArray(a))throw Object.defineProperty(new d.InstantValidationError(`Expected sample param value for segment '${n}' to be an array of strings, got ${typeof a}`),"__NEXT_ERROR_CODE",{value:"E1104",enumerable:!1,configurable:!0});r.push(...a.map(e=>encodeURIComponent(e)));break}case"dynamic":{let a=t[e.paramName];if(void 0===a)a=n;else if("string"!=typeof a)throw Object.defineProperty(new d.InstantValidationError(`Expected sample param value for segment '${n}' to be a string, got ${typeof a}`),"__NEXT_ERROR_CODE",{value:"E1108",enumerable:!1,configurable:!0});r.push(encodeURIComponent(a));break}case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":throw Object.defineProperty(new u.InvariantError("Not implemented: Validation of interception routes"),"__NEXT_ERROR_CODE",{value:"E1106",enumerable:!1,configurable:!0});default:e.paramType}else r.push(n)}return r.join("/")}(e,t??{}),a="";if(r){let e=(function(e){let t=new URLSearchParams;if(e){for(let[r,n]of Object.entries(e))if(null!=n)if(Array.isArray(n))for(let e of n)t.append(r,e);else t.set(r,n)}return t})(r).toString();e&&(a="?"+e)}return(0,c.parseRelativeUrl)(n+a,void 0,!0)}function S(e,t,r){if(t&&r in t);else{let t=e.route;g(Object.defineProperty(new d.InstantValidationError(`Route "${t}" accessed root param "${r}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`),"__NEXT_ERROR_CODE",{value:"E1114",enumerable:!1,configurable:!0}))}}},69882,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createPrerenderSearchParamsForClientPage:function(){return P},createSearchParamsFromClient:function(){return g},createServerSearchParamsForMetadata:function(){return y},createServerSearchParamsForServerPage:function(){return b},makeErroringSearchParamsForUseCache:function(){return R}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(63599),i=e.r(66373),s=e.r(42715),l=e.r(67673),c=e.r(62141),u=e.r(12718),d=e.r(63138),f=e.r(76361),p=e.r(65932),m=e.r(50999),h=e.r(42852);function g(t){let r=o.workAsyncStorage.getStore();if(!r)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let n=c.workUnitAsyncStorage.getStore();if(n)switch(n.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return _(r,n);case"validation-client":return function(t,r,n){var a;let{createExhaustiveSearchParamsProxy:o}=e.r(18450);return Promise.resolve(t=o(t,new Set(Object.keys((null==(a=n.validationSamples)?void 0:a.searchParams)??{})),r.route))}(t,r,n);case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E769",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E739",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1133",enumerable:!1,configurable:!0});case"request":return v(t,r,n,!1)}(0,c.throwInvariantForMissingStore)()}function y(e,t){return b(e,(0,i.getMetadataVaryParamsAccumulator)(),t)}function b(e,t,r){let n=o.workAsyncStorage.getStore();if(!n)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let a=c.workUnitAsyncStorage.getStore();if(a)switch(a.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return _(n,a);case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called in a client validation."),"__NEXT_ERROR_CODE",{value:"E1066",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E747",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1128",enumerable:!1,configurable:!0});case"prerender-runtime":return function(e,t,r,n){let a=w(null!==r?(0,i.createVaryingSearchParams)(r,e):e),{stagedRendering:o}=t;if(!o)return a;let s=n?h.RenderStage.EarlyRuntime:h.RenderStage.Runtime;return o.waitForStage(s).then(()=>a)}(e,a,t,r);case"request":return v(e,n,a,r)}(0,c.throwInvariantForMissingStore)()}function P(){let e=o.workAsyncStorage.getStore();if(!e)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});if(e.forceStatic)return Promise.resolve({});let t=c.workUnitAsyncStorage.getStore();if(t)switch(t.type){case"prerender":case"prerender-client":return(0,d.makeHangingPromise)(t.renderSignal,e.route,"`searchParams`");case"validation-client":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in a client validation."),"__NEXT_ERROR_CODE",{value:"E1061",enumerable:!1,configurable:!0});case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E768",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E746",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1124",enumerable:!1,configurable:!0});case"prerender-ppr":case"prerender-legacy":case"request":return Promise.resolve({})}(0,c.throwInvariantForMissingStore)()}function _(e,t){if(e.forceStatic)return Promise.resolve({});switch(t.type){case"prerender":case"prerender-client":var r=e,n=t;let a=E.get(n);if(a)return a;let o=(0,d.makeHangingPromise)(n.renderSignal,r.route,"`searchParams`"),i=new Proxy(o,{get(e,t,r){if(Object.hasOwn(o,t))return s.ReflectAdapter.get(e,t,r);switch(t){case"then":return(0,l.annotateDynamicAccess)("`await searchParams`, `searchParams.then`, or similar",n),s.ReflectAdapter.get(e,t,r);case"status":return(0,l.annotateDynamicAccess)("`use(searchParams)`, `searchParams.status`, or similar",n),s.ReflectAdapter.get(e,t,r);default:return s.ReflectAdapter.get(e,t,r)}}});return E.set(n,i),i;case"prerender-ppr":case"prerender-legacy":var c=e,u=t;let f=E.get(c);if(f)return f;let p=Promise.resolve({}),h=new Proxy(p,{get(e,t,r){if(Object.hasOwn(p,t))return s.ReflectAdapter.get(e,t,r);if("string"==typeof t&&"then"===t){let e="`await searchParams`, `searchParams.then`, or similar";c.dynamicShouldError?(0,m.throwWithStaticGenerationBailoutErrorWithDynamicError)(c.route,e):"prerender-ppr"===u.type?(0,l.postponeWithTracking)(c.route,e,u.dynamicTracking):(0,l.throwToInterruptStaticGeneration)(e,c,u)}return s.ReflectAdapter.get(e,t,r)}});return E.set(c,h),h;default:return t}}function v(t,r,n,a){if(r.forceStatic)return Promise.resolve({});if(!n.asyncApiPromises)return w(t);if(n.validationSamples){let{createExhaustiveSearchParamsProxy:a}=e.r(18450),o=new Set(Object.keys(n.validationSamples.searchParams??{}));t=a(t,o,r.route)}return(a?n.asyncApiPromises.earlySharedSearchParamsParent:n.asyncApiPromises.sharedSearchParamsParent).then(()=>t)}let E=new WeakMap,O=new WeakMap;function R(){let e=o.workAsyncStorage.getStore();if(!e)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let t=O.get(e);if(t)return t;let r=Promise.resolve({}),n=new Proxy(r,{get:function t(n,a,o){return Object.hasOwn(r,a)||"string"!=typeof a||"then"!==a&&p.wellKnownProperties.has(a)||(0,m.throwForSearchParamsAccessInUseCache)(e,t),s.ReflectAdapter.get(n,a,o)}});return O.set(e,n),n}function w(e){let t=E.get(e);if(t)return t;let r=Promise.resolve(e);return E.set(e,r),r}(0,f.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`searchParams\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E848",enumerable:!1,configurable:!0})})},74804,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"dynamicAccessAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},88276,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"dynamicAccessAsyncStorage",{enumerable:!0,get:function(){return n.dynamicAccessAsyncStorageInstance}});let n=e.r(74804)},41489,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createParamsFromClient:function(){return g},createPrerenderParamsForClientSegment:function(){return _},createServerParamsForMetadata:function(){return y},createServerParamsForRoute:function(){return b},createServerParamsForServerSegment:function(){return P}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(63599),i=e.r(66373),s=e.r(42715),l=e.r(67673),c=e.r(62141),u=e.r(12718),d=e.r(65932),f=e.r(63138),p=e.r(76361),m=e.r(88276),h=e.r(42852);function g(e){let t=o.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let r=c.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return v(e,null,t,r,null);case"validation-client":return O(e,t,r.validationSamples);case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E736",enumerable:!1,configurable:!0});case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E770",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1122",enumerable:!1,configurable:!0});case"request":if(r.validationSamples)return O(e,t,r.validationSamples);return S(e)}(0,c.throwInvariantForMissingStore)()}function y(e,t,r){return P(e,t,(0,i.getMetadataVaryParamsAccumulator)(),r)}function b(e,t=null){let r=o.workAsyncStorage.getStore();if(!r)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let n=c.workUnitAsyncStorage.getStore();if(n)switch(n.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return v(e,null,r,n,t);case"prerender-client":case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called in client contexts."),"__NEXT_ERROR_CODE",{value:"E1064",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E738",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1131",enumerable:!1,configurable:!0});case"prerender-runtime":return E(e,null,n,t,!1);case"request":return S(e)}(0,c.throwInvariantForMissingStore)()}function P(t,r,n,a){let i=o.workAsyncStorage.getStore();if(!i)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let s=c.workUnitAsyncStorage.getStore();if(s)switch(s.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return v(t,r,i,s,n);case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called in client contexts."),"__NEXT_ERROR_CODE",{value:"E1101",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E743",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1120",enumerable:!1,configurable:!0});case"prerender-runtime":return E(t,r,s,n,a);case"request":if(s.asyncApiPromises&&s.validationSamples)return function(t,r,n,a,o){let{createExhaustiveParamsProxy:i}=e.r(18450),s=i(t,new Set(Object.keys(n.params??{})),r.route);return(o?a.earlySharedParamsParent:a.sharedParamsParent).then(()=>s)}(t,i,s.validationSamples,s.asyncApiPromises,a);if(s.asyncApiPromises&&function(e,t){if(t){for(let r in e)if(t.has(r))return!0}return!1}(t,s.fallbackParams))return(a?s.asyncApiPromises.earlySharedParamsParent:s.asyncApiPromises.sharedParamsParent).then(()=>t);return S(t)}(0,c.throwInvariantForMissingStore)()}function _(e){let t=o.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new u.InvariantError("Missing workStore in createPrerenderParamsForClientSegment"),"__NEXT_ERROR_CODE",{value:"E773",enumerable:!1,configurable:!0});let r=c.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-client":let n=r.fallbackRouteParams;if(n){for(let a in e)if(n.has(a))return(0,f.makeHangingPromise)(r.renderSignal,t.route,"`params`")}break;case"validation-client":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called in validation contexts."),"__NEXT_ERROR_CODE",{value:"E1099",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E734",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1126",enumerable:!1,configurable:!0})}return Promise.resolve(e)}function v(e,t,r,n,a){let o=null!==a?(0,i.createVaryingParams)(a,e,t):e;switch(n.type){case"prerender":case"prerender-client":{let t=n.fallbackRouteParams;if(t){for(let a in e)if(t.has(a))return function(e,t,r){let n=R.get(e);if(n)return n;let a=new Proxy((0,f.makeHangingPromise)(r.renderSignal,t.route,"`params`"),w);return R.set(e,a),a}(o,r,n)}break}case"prerender-ppr":{let t=n.fallbackRouteParams;if(t){for(let a in e)if(t.has(a))return function(e,t,r,n){let a=R.get(e);if(a)return a;let o={...e},i=Promise.resolve(o);return R.set(e,i),Object.keys(e).forEach(e=>{d.wellKnownProperties.has(e)||t.has(e)&&Object.defineProperty(o,e,{get(){let t=(0,d.describeStringPropertyAccess)("params",e);"prerender-ppr"===n.type?(0,l.postponeWithTracking)(r.route,t,n.dynamicTracking):(0,l.throwToInterruptStaticGeneration)(t,r,n)},enumerable:!0})}),i}(o,t,r,n)}}}return S(o)}function E(e,t,r,n,a){let o=S(null!==n?(0,i.createVaryingParams)(n,e,t):e),{stagedRendering:s}=r;if(!s)return o;let l=a?h.RenderStage.EarlyRuntime:h.RenderStage.Runtime;return s.waitForStage(l).then(()=>o)}function O(t,r,n){let{createExhaustiveParamsProxy:a}=e.r(18450);return Promise.resolve(a(t,new Set(Object.keys((null==n?void 0:n.params)??{})),r.route))}let R=new WeakMap,w={get:function(e,t,r){if("then"===t||"catch"===t||"finally"===t){let n=s.ReflectAdapter.get(e,t,r);return({[t]:(...t)=>{let r=m.dynamicAccessAsyncStorage.getStore();return r&&r.abortController.abort(Object.defineProperty(Error("Accessed fallback `params` during prerendering."),"__NEXT_ERROR_CODE",{value:"E691",enumerable:!1,configurable:!0})),new Proxy(n.apply(e,t),w)}})[t]}return s.ReflectAdapter.get(e,t,r)}};function S(e){let t=R.get(e);if(t)return t;let r=Promise.resolve(e);return R.set(e,r),r}(0,p.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`params\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E834",enumerable:!1,configurable:!0})})},47257,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return l}});let n=e.r(43476),a=e.r(8372),o=e.r(71645),i=e.r(33906),s=e.r(61994);function l({Component:t,serverProvidedParams:r}){let c,u;if(null!==r)c=r.searchParams,u=r.params;else{let e=(0,o.use)(a.LayoutRouterContext);u=null!==e?e.parentParams:{},c=(0,i.urlSearchParamsToParsedUrlQuery)((0,o.use)(s.SearchParamsContext))}if("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return i}});let n=e.r(43476),a=e.r(8372),o=e.r(71645);function i({Component:t,slots:r,serverProvidedParams:s}){let l;if(null!==s)l=s.params;else{let e=(0,o.use)(a.LayoutRouterContext);l=null!==e?e.parentParams:{}}if("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return a}});let n=e.r(43476),a=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css b/web/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css new file mode 100644 index 00000000..38bd5bda --- /dev/null +++ b/web/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css @@ -0,0 +1,3 @@ +@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/2c55a0e60120577a-s.0-dom-5bn10r2.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/9c72aa0f40e4eef8-s.1y4-pdgsjb-pw.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/ad66f9afd8947f86-s.3lvt2whj97whp.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/5476f68d60460930-s.2uwcyprjm3xu3.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/2bbe8d2671613f1f-s.0k62hbripvv8p.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/1bffadaabf893a1e-s.3-6t-g6q0vh0a.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter Fallback;src:local(Arial);ascent-override:90.44%;descent-override:22.52%;line-gap-override:0.0%;size-adjust:107.12%}.inter_fd091ad6-module__giF-bG__className{font-family:Inter,Inter Fallback;font-style:normal}.inter_fd091ad6-module__giF-bG__variable{--font-sans:"Inter", "Inter Fallback"} +@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/9cc5c0547f229dea-s.00y8kskkn0hyx.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/b0947914c9718a1e-s.1xjn85gt7t6qs.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/d0b60be57f16ee32-s.1xtu7gopqv2u0.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/1f9e983605289f29-s.3aak_kra40y8r.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/9cc5c0547f229dea-s.00y8kskkn0hyx.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/b0947914c9718a1e-s.1xjn85gt7t6qs.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/d0b60be57f16ee32-s.1xtu7gopqv2u0.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/1f9e983605289f29-s.3aak_kra40y8r.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/9cc5c0547f229dea-s.00y8kskkn0hyx.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/b0947914c9718a1e-s.1xjn85gt7t6qs.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/d0b60be57f16ee32-s.1xtu7gopqv2u0.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/1f9e983605289f29-s.3aak_kra40y8r.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/9cc5c0547f229dea-s.00y8kskkn0hyx.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/b0947914c9718a1e-s.1xjn85gt7t6qs.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/d0b60be57f16ee32-s.1xtu7gopqv2u0.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/1f9e983605289f29-s.3aak_kra40y8r.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond Fallback;src:local(Times New Roman);ascent-override:95.27%;descent-override:29.59%;line-gap-override:0.0%;size-adjust:96.98%}.cormorant_garamond_eff11090-module__P8UEha__className{font-family:Cormorant Garamond,Cormorant Garamond Fallback;font-style:normal}.cormorant_garamond_eff11090-module__P8UEha__variable{--font-display:"Cormorant Garamond", "Cormorant Garamond Fallback"} +*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--font-sans), Inter, system-ui, sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.hidden{display:none}.grow{flex-grow:1}.shadow{--tw-shadow:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--night:#1d0f17;--night-deep:#120a0f;--raspberry:#a12450;--raspberry-band:#6e1438;--gold:#d9a54e;--gold-soft:#d9a54e8c;--gold-line:#d9a54e52;--cream:#f6ecdf;--cream-70:#f6ecdfb8;--cream-50:#f6ecdf80;--glass:#1d0f178c;--selection:#d9a54e59;--ease:cubic-bezier(.2, .7, .2, 1)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--night);color:var(--cream);font-family:var(--font-sans), system-ui, sans-serif;-webkit-font-smoothing:antialiased;margin:0}::selection{background:var(--selection)}a{color:inherit;text-decoration:none}button{font:inherit}.stage{isolation:isolate;background:var(--night);grid-template-rows:auto 1fr auto;min-height:100svh;display:grid;position:relative;overflow:hidden}.hero-video{-o-object-fit:cover;object-fit:cover;z-index:0;filter:saturate(1.05)contrast(1.02);width:100%;height:100%;animation:24s ease-in-out infinite alternate breathe;position:absolute;inset:0}@keyframes breathe{0%{transform:scale(1)}to{transform:scale(1.06)}}@media (prefers-reduced-motion:reduce){.hero-video{animation:none}}.stage-shade{z-index:1;background:radial-gradient(70% 60% at 50% 58%,#1d0f171a,#1d0f17b8 100%),linear-gradient(#1d0f1799 0%,#1d0f172e 38%,#1d0f174d 62%,#120a0feb 100%);position:absolute;inset:0}.stage-grain{z-index:1;pointer-events:none;opacity:.07;mix-blend-mode:soft-light;background-image:url("data:image/svg+xml;utf8,");position:absolute;inset:0}.stage-head,.stage-center,.stage-foot{z-index:2;position:relative}.stage-head{justify-content:space-between;align-items:center;padding:clamp(1.1rem,2.5vw,2rem) clamp(1.25rem,4vw,3rem);display:flex}.brand{align-items:center;display:inline-flex}.brand-mark{filter:drop-shadow(0 6px 24px #00000073);width:clamp(72px,9vw,112px);height:auto}.brand-place{letter-spacing:.22em;text-transform:uppercase;color:var(--cream-70);font-size:.74rem}.stage-center{text-align:center;place-content:center;justify-items:center;padding:1rem clamp(1.25rem,5vw,3rem) 3rem;display:grid}.kicker{color:var(--gold);letter-spacing:.26em;text-transform:uppercase;align-items:center;gap:.9rem;margin:0 0 1.3rem;font-size:.76rem;display:inline-flex}.kicker:before,.kicker:after{content:"";background:linear-gradient(90deg, transparent, var(--gold-soft));width:2.4rem;height:1px}.kicker:after{transform:scaleX(-1)}.headline{max-width:17ch;font-family:var(--font-display), Georgia, serif;letter-spacing:-.01em;color:#fff;text-shadow:0 12px 40px #00000073;text-wrap:balance;margin:0;font-size:clamp(2.7rem,7.2vw,6.4rem);font-weight:500;line-height:.98}.headline em{color:var(--gold);font-style:italic;font-weight:400}.lede{max-width:44ch;color:var(--cream-70);text-wrap:pretty;margin:1.6rem 0 0;font-size:clamp(1rem,1.35vw,1.18rem);line-height:1.7}.doors{flex-wrap:wrap;justify-content:center;gap:.9rem;margin-top:2.4rem;display:flex}.stage-foot{color:var(--cream-50);letter-spacing:.08em;flex-wrap:wrap;justify-content:center;align-items:center;gap:.9rem;padding:1.2rem clamp(1.25rem,4vw,3rem) clamp(1.3rem,3vw,2.2rem);font-size:.78rem;display:flex}.stage-foot .dot{background:var(--gold-soft);border-radius:50%;width:3px;height:3px}.btn{letter-spacing:.02em;cursor:pointer;min-height:3.1rem;transition:transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s;border:1px solid #0000;border-radius:999px;align-items:center;gap:.6rem;padding:.85rem 1.6rem;font-size:.95rem;font-weight:500;display:inline-flex}.btn:hover{transform:translateY(-2px)}.btn:active{transform:translateY(0)}.btn:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.btn:disabled{opacity:.6;cursor:default;transform:none}.btn-gold{color:var(--night);background:linear-gradient(180deg, #e6b968, var(--gold) 55%, #c4903d);box-shadow:0 10px 30px #d9a54e47,inset 0 1px #ffffff59}.btn-gold:hover{box-shadow:0 16px 40px #d9a54e66,inset 0 1px #ffffff59}.btn-glass{color:var(--cream);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#f6ecdf14;border-color:#f6ecdf47}.btn-glass:hover{border-color:var(--gold-soft);background:#f6ecdf24}.modal-veil{z-index:60;-webkit-backdrop-filter:blur(6px)saturate(1.05);backdrop-filter:blur(6px)saturate(1.05);background:#120a0f47;place-items:center;padding:clamp(.75rem,3vw,2.5rem);display:grid;position:fixed;inset:0}.modal{-webkit-backdrop-filter:blur(28px)saturate(1.25)brightness(.9);backdrop-filter:blur(28px)saturate(1.25)brightness(.9);background:radial-gradient(120% 80% at 100% 0,#a1245038,#0000 60%),radial-gradient(90% 70% at 0 100%,#d9a54e1a,#0000 60%),linear-gradient(#2e162480,#180c139e);border:1px solid #f6ecdf24;border-radius:28px;grid-template:"tabs close""body body"minmax(0,1fr)/minmax(0,1fr) auto;width:min(100%,60rem);max-height:min(92svh,56rem);display:grid;position:relative;overflow:hidden;box-shadow:0 40px 120px #0000008c,inset 0 1px #f6ecdf24,inset 0 -1px #00000040}@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.modal{background:linear-gradient(#281420f5,#180c13fa)}}.modal:before{content:"";background:linear-gradient(90deg, transparent, var(--gold), transparent);opacity:.8;height:1px;position:absolute;inset:0 0 auto}.modal-tabs{grid-area:tabs;min-width:0;padding:1.1rem 0 0 1.4rem}.modal-close{grid-area:close;align-self:center;margin:1.1rem 1.1rem 0 1rem}.modal-body{grid-area:body}.modal-doors{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#120a0f59;border:1px solid #f6ecdf1f;border-radius:999px;gap:.25rem;padding:.25rem;display:inline-flex}.door-tab{min-height:2.5rem;color:var(--cream-70);letter-spacing:.02em;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:999px;align-items:center;gap:.5rem;padding:.5rem 1.05rem;font-size:.86rem;transition:background-color .3s,color .3s;display:inline-flex}.door-tab:hover{color:var(--cream)}.door-tab[aria-selected=true]{color:var(--night);background:linear-gradient(180deg, #e6b968, var(--gold))}.door-tab:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.modal-close{width:2.6rem;height:2.6rem;color:var(--cream-70);cursor:pointer;transition:border-color .3s, color .3s, transform .3s var(--ease);background:#120a0f66;border:1px solid #f6ecdf29;border-radius:50%;place-items:center;display:grid}.modal-close:hover{color:var(--cream);border-color:var(--gold-soft);transform:rotate(90deg)}.modal-close:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.modal-body{scrollbar-width:thin;scrollbar-color:var(--gold-line) transparent;padding:1.6rem clamp(1.3rem,4vw,3rem) clamp(1.6rem,3vw,2.6rem);overflow-y:auto}.modal-kicker{color:var(--gold);letter-spacing:.26em;text-transform:uppercase;margin:0 0 .7rem;font-size:.72rem}.modal-title{font-family:var(--font-display), Georgia, serif;color:#fff;text-wrap:balance;margin:0;font-size:clamp(2rem,4vw,3.1rem);font-weight:500;line-height:1.02}.modal-title:focus{outline:none}.modal-title em{color:var(--gold);font-style:italic;font-weight:400}.modal-lede{max-width:52ch;color:var(--cream-70);margin:1rem 0 1.8rem;line-height:1.65}.ways{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:-.4rem 0 1.6rem;display:grid}.way{text-align:left;color:var(--cream-70);cursor:pointer;transition:border-color .3s, background-color .3s, color .3s, transform .3s var(--ease);background:#120a0f52;border:1px solid #f6ecdf24;border-radius:1.1rem;align-items:flex-start;gap:.8rem;padding:.95rem 1.05rem;display:flex}.way:hover{border-color:var(--gold-soft);color:var(--cream);transform:translateY(-1px)}.way:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.way[aria-selected=true]{color:var(--cream);border-color:var(--gold);background:linear-gradient(#d9a54e2e,#d9a54e0f);box-shadow:inset 0 1px #ffffff14,0 10px 30px #0000002e}.way-icon{width:2.3rem;height:2.3rem;color:var(--gold);border:1px solid #f6ecdf24;border-radius:50%;flex:none;place-items:center;margin-top:.1rem;display:grid}.way[aria-selected=true] .way-icon{background:linear-gradient(180deg, #e6b968, var(--gold));color:var(--night);border-color:#0000}.way-words{gap:.2rem;min-width:0;display:grid}.way-words strong{font-family:var(--font-display), Georgia, serif;letter-spacing:.005em;font-size:1.12rem;font-weight:500;line-height:1.2}.way-words small{font-size:.82rem;line-height:1.45}.way-panel{animation:way-in .45s var(--ease) both}@keyframes way-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media (max-width:40rem){.ways{grid-template-columns:1fr;gap:.55rem}.way{padding:.8rem .9rem}.way-words small{display:none}.way-icon{width:2rem;height:2rem;margin-top:0}.way{align-items:center}}@media (prefers-reduced-motion:reduce){.way-panel{animation:none}.way:hover{transform:none}}.hello-form{gap:1rem;display:grid}.field-row{grid-template-columns:1fr;gap:1rem;display:grid}@media (min-width:40rem){.field-row{grid-template-columns:1fr 1fr}}.field{gap:.45rem;display:grid}.field span{letter-spacing:.08em;text-transform:uppercase;color:var(--cream-50);font-size:.78rem}.field input,.field textarea{width:100%;min-height:3.1rem;color:var(--cream);font:inherit;background:#120a0f52;border:1px solid #f6ecdf29;border-radius:14px;padding:.85rem 1rem;transition:border-color .3s,box-shadow .3s}.field textarea{resize:vertical;line-height:1.55}.field input::-moz-placeholder{color:#f6ecdf52}.field textarea::-moz-placeholder{color:#f6ecdf52}.field input::placeholder,.field textarea::placeholder{color:#f6ecdf52}.field input:focus,.field textarea:focus{border-color:var(--gold-soft);outline:none;box-shadow:0 0 0 4px #d9a54e24}.tick{color:var(--cream-70);align-items:center;gap:.7rem;font-size:.92rem;display:flex}.tick input{width:1.15rem;height:1.15rem;accent-color:var(--gold);margin:0}.hp{opacity:0;width:1px;height:1px;position:absolute;left:-9999px}.door-actions{flex-wrap:wrap;align-items:center;gap:1rem 1.4rem;margin-top:.4rem;display:flex}.door-fine{color:var(--cream-50);font-size:.82rem}.door-error{color:#f0b6a4;margin:0;font-size:.92rem}.door-error a{text-underline-offset:3px;text-decoration:underline}.door-done h3{font-family:var(--font-display), Georgia, serif;color:#fff;margin:0 0 .6rem;font-size:1.9rem;font-weight:500}.door-done p,.door-fallback{color:var(--cream-70);margin:0;line-height:1.6}.door-fallback a{color:var(--gold);text-underline-offset:3px;text-decoration:underline}.koordi-shell{--koordi-accent:var(--gold);--koordi-accent-ink:var(--night);--koordi-line:#f6ecdf2e;--koordi-panel:#120a0f4d;--koordi-tint:#d9a54e1a;--koordi-radius:14px;--koordi-error:#f0b6a4;color:var(--cream);line-height:1.5}.koordi-shell koordi-booking,.koordi-shell koordi-gatherings{display:block}.koordi-shell[data-status=loading] koordi-booking,.koordi-shell[data-status=loading] koordi-gatherings{display:none}.stage-foot{gap:.4rem .6rem}.chapter-link{min-height:2.4rem;color:var(--cream-70);letter-spacing:.16em;text-transform:uppercase;cursor:pointer;background:0 0;border:0;border-radius:999px;padding:.5rem .9rem;font-size:.78rem;transition:color .3s,background-color .3s}.chapter-link:hover{color:var(--gold);background:#d9a54e14}.chapter-link:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.chapter-link+.chapter-link:before{content:"·";color:var(--gold-soft);margin-left:-.3rem;margin-right:1.1rem}.prose{max-width:58ch}.prose p{color:var(--cream-70);margin:0 0 1rem;font-size:1.02rem;line-height:1.75}.pull{border-left:1px solid var(--gold-soft);font-family:var(--font-display), Georgia, serif;color:#fff;margin:1.8rem 0 1.4rem;padding-left:1.2rem;font-size:1.55rem;font-style:italic;line-height:1.3}.tagline{font-family:var(--font-display), Georgia, serif;color:var(--gold);gap:.1rem;margin:0 0 1rem;font-size:1.25rem;display:grid}.fine{color:var(--cream-50);margin:.6rem 0 0;font-size:.85rem;line-height:1.6}.principles,.spaces{gap:0;margin:0;padding:0;list-style:none;display:grid}@media (min-width:46rem){.principles,.spaces{-moz-column-gap:2.4rem;grid-template-columns:1fr 1fr;column-gap:2.4rem}}.principles li,.spaces li{-moz-column-gap:.9rem;border-top:1px solid #f6ecdf1a;grid-template-columns:auto 1fr;gap:.2rem .9rem;padding:.95rem 0;display:grid}.spaces li{grid-template-columns:1fr}.principles .num{letter-spacing:.1em;color:var(--gold);grid-row:span 2;padding-top:.2rem;font-size:.72rem}.principles .name,.spaces .name{font-family:var(--font-display), Georgia, serif;color:#fff;font-size:1.3rem;line-height:1.15}.principles .meaning,.spaces .meaning{color:var(--cream-70);font-size:.95rem;line-height:1.6}.kinds{flex-wrap:wrap;gap:.5rem;margin:0 0 .4rem;padding:0;list-style:none;display:flex}.kinds li{color:var(--cream);border:1px solid #f6ecdf29;border-radius:999px;padding:.5rem .95rem;font-size:.9rem}.host{border:1px solid var(--gold-line);background:#d9a54e0f;border-radius:20px;margin-top:1.8rem;padding:1.3rem 1.4rem 1.5rem}.host h3{font-family:var(--font-display), Georgia, serif;color:#fff;margin:0 0 .5rem;font-size:1.6rem;font-weight:500}.host p{color:var(--cream-70);margin:0 0 1.1rem;line-height:1.6}.modal,.modal-tabs,.modal-body{min-width:0}.modal-doors{scrollbar-width:none;flex:0 auto;max-width:100%;overflow-x:auto}.modal-doors::-webkit-scrollbar{display:none}.modal-close{flex:none}.modal-body>*{min-width:0}.modal-title em.line{display:block}.prose{margin-top:1.1rem}.head-right{align-items:center;gap:1.1rem;display:flex}.btn-small{min-height:2.5rem;padding:.5rem 1.05rem;font-size:.84rem}@media (max-width:40rem){.head-right .brand-place{display:none}}.link-btn{color:var(--gold);font:inherit;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.stage-head,.stage-center,.stage-foot{transition:opacity .5s var(--ease), filter .5s var(--ease)}.stage[data-sheet=open] .stage-head,.stage[data-sheet=open] .stage-center,.stage[data-sheet=open] .stage-foot{opacity:.12;filter:blur(8px)}@media (prefers-reduced-motion:reduce){.stage-head,.stage-center,.stage-foot{transition:none}}@media (max-width:40rem){.modal-veil{align-items:end;padding:0}.modal{border-bottom:0;border-left:0;border-right:0;border-radius:0;grid-template:"close""body"minmax(0,1fr)"tabs"/1fr;width:100%;height:100svh;max-height:100svh}.modal-close{justify-self:end;width:2.4rem;height:2.4rem;margin:.9rem .9rem 0 0}.modal-body{padding:.6rem 1.25rem 1.6rem}.modal-tabs{padding:.55rem .75rem calc(.55rem + env(safe-area-inset-bottom,0px));-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#120a0f73;border-top:1px solid #f6ecdf1a}.modal-doors{border-radius:18px;grid-auto-columns:1fr;grid-auto-flow:column;gap:.2rem;width:100%;padding:.2rem;display:grid;overflow:visible}.door-tab{letter-spacing:.01em;white-space:normal;text-align:center;border-radius:14px;flex-direction:column;justify-content:center;gap:.3rem;min-height:3.4rem;padding:.45rem .25rem;font-size:.7rem;line-height:1.1}.door-tab svg{width:17px;height:17px}.modal-title{font-size:clamp(1.9rem,9vw,2.4rem)}} diff --git a/web/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js b/web/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js new file mode 100644 index 00000000..b1fd77ef --- /dev/null +++ b/web/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js @@ -0,0 +1 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/1jq4o6yq14o4c.js b/web/mystichearts/demo/_next/static/chunks/1jq4o6yq14o4c.js deleted file mode 100644 index 4a912024..00000000 --- a/web/mystichearts/demo/_next/static/chunks/1jq4o6yq14o4c.js +++ /dev/null @@ -1,31 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35451,(e,t,r)=>{var n={229:function(e){var t,r,n,o=e.exports={};function u(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:u}catch(e){t=u}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===u||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var a=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?a=n.concat(a):c=-1,a.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=a.length;t;){for(n=a,a=[];++c1)for(var r=1;r{"use strict";var n,o;t.exports=(null==(n=e.g.process)?void 0:n.env)&&"object"==typeof(null==(o=e.g.process)?void 0:o.env)?e.g.process:e.r(35451)},45689,(e,t,r)=>{"use strict";var n=Symbol.for("react.transitional.element");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var u in r={},t)"key"!==u&&(r[u]=t[u]);else r=t;return{$$typeof:n,type:e,key:o,ref:void 0!==(t=r.ref)?t:null,props:r}}r.Fragment=Symbol.for("react.fragment"),r.jsx=o,r.jsxs=o},43476,(e,t,r)=>{"use strict";t.exports=e.r(45689)},50740,(e,t,r)=>{"use strict";var n=e.i(47167),o=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),h=Symbol.for("react.view_transition"),g=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,v={};function _(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}function S(){}function j(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=_.prototype;var w=j.prototype=new S;w.constructor=j,x(w,_.prototype),w.isPureReactComponent=!0;var E=Array.isArray;function T(){}var O={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function R(e,t,r){var n=r.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:r}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var H=/\/+/g;function A(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function M(e,t,r){if(null==e)return e;var n=[],i=0;return!function e(t,r,n,i,s){var a,l,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case u:d=!0;break;case y:return e((d=t._init)(t._payload),r,n,i,s)}}if(d)return s=s(t),d=""===i?"."+A(t,0):i,E(s)?(n="",null!=d&&(n=d.replace(H,"$&/")+"/"),e(s,r,n,"",function(e){return e})):null!=s&&(C(s)&&(a=s,l=n+(null==s.key||t&&t.key===s.key?"":(""+s.key).replace(H,"$&/")+"/")+d,s=R(a.type,l,a.props)),r.push(s)),1;d=0;var p=""===i?".":i+":";if(E(t))for(var b=0;b{"use strict";t.exports=e.r(50740)},55682,(e,t,r)=>{"use strict";r._=function(e){return e&&e.__esModule?e:{default:e}}},90317,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return l},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class i{disable(){throw u}getStore(){}run(){throw u}exit(){throw u}enterWith(){throw u}static bind(e){return e}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return s?new s:new i}function l(e){return s?s.bind(e):i.bind(e)}function c(){return s?s.snapshot():function(e,...t){return e(...t)}}},42344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},63599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(42344)},12354,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"handleISRError",{enumerable:!0,get:function(){return o}});let n="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={WarningIcon:function(){return a},errorStyles:function(){return i},errorThemeCss:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});e.r(55682);let u=e.r(43476);e.r(71645);let i={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},s=` -:root { - --next-error-bg: #fff; - --next-error-text: #171717; - --next-error-title: #171717; - --next-error-message: #171717; - --next-error-digest: #666666; - --next-error-btn-text: #fff; - --next-error-btn-bg: #171717; - --next-error-btn-border: none; - --next-error-btn-secondary-text: #171717; - --next-error-btn-secondary-bg: transparent; - --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08); -} -@media (prefers-color-scheme: dark) { - :root { - --next-error-bg: #0a0a0a; - --next-error-text: #ededed; - --next-error-title: #ededed; - --next-error-message: #ededed; - --next-error-digest: #a0a0a0; - --next-error-btn-text: #0a0a0a; - --next-error-btn-bg: #ededed; - --next-error-btn-border: none; - --next-error-btn-secondary-text: #ededed; - --next-error-btn-secondary-bg: transparent; - --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14); - } -} -body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); } -`.replace(/\n\s*/g,"");function a(){return(0,u.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:i.icon,children:(0,u.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68027,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),e.r(55682);let n=e.r(43476);e.r(71645);let o=e.r(12354),u=e.r(18576),i=function({error:e}){let t=e?.digest,r=!!t;return(0,o.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:u.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:u.errorStyles.container,children:(0,n.jsxs)("div",{style:u.errorStyles.card,children:[(0,n.jsx)(u.WarningIcon,{}),(0,n.jsx)("h1",{style:u.errorStyles.title,children:"This page couldn’t load"}),(0,n.jsx)("p",{style:u.errorStyles.message,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:u.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:u.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:u.errorStyles.button,children:"Reload"})}),!r&&(0,n.jsx)("button",{type:"button",style:u.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,n.jsxs)("p",{style:u.errorStyles.digestFooter,children:["ERROR ",t]})]})]})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/1nlxobah3y6an.js b/web/mystichearts/demo/_next/static/chunks/1nlxobah3y6an.js deleted file mode 100644 index 21a4638a..00000000 --- a/web/mystichearts/demo/_next/static/chunks/1nlxobah3y6an.js +++ /dev/null @@ -1,5 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,43369,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={getAssetToken:function(){return l},getAssetTokenQuery:function(){return s},getDeploymentId:function(){return i},getDeploymentIdQuery:function(){return o}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});function i(){return n}function o(e=!1){let t=n;return t?`${e?"&":"?"}dpl=${t}`:""}function l(){return!1}function s(e=!1){return""}"u">typeof window?(n=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId):n=void 0},12718,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"InvariantError",{enumerable:!0,get:function(){return n}});class n extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}},32061,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={BailoutToCSRError:function(){return i},isBailoutToCSRError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="BAILOUT_TO_CLIENT_SIDE_RENDERING";class i extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=u}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===u}},18800,(e,t,r)=>{"use strict";var n=e.r(71645);function a(e){var t="https://react.dev/errors/"+e;if(1{"use strict";!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(18800)},64893,(e,t,r)=>{"use strict";var n=e.r(74080),a={stream:!0},u=Object.prototype.hasOwnProperty;function i(t){var r=e.r(t);return"function"!=typeof r.then||"fulfilled"===r.status?null:(r.then(function(e){r.status="fulfilled",r.value=e},function(e){r.status="rejected",r.reason=e}),r)}var o=new WeakSet,l=new WeakSet;function s(){}function c(t){for(var r=t[1],n=[],a=0;af||35===f||114===f||120===f?(p=f,f=3,s++):(p=0,f=3);continue;case 2:44===(_=l[s++])?f=4:h=h<<4|(96<_?_-87:_-48);continue;case 3:_=l.indexOf(10,s);break;case 4:(_=s+h)>l.length&&(_=-1)}var m=l.byteOffset+s;if(-1<_)h=new Uint8Array(l.buffer,m,_-s),98===p?Z(e,o,_===g?h:h.slice()):function(e,t,r,n,u,i){switch(n){case 65:Z(e,r,eu(u,i).buffer);return;case 79:ei(e,r,u,i,Int8Array,1);return;case 111:Z(e,r,0===u.length?i:eu(u,i));return;case 85:ei(e,r,u,i,Uint8ClampedArray,1);return;case 83:ei(e,r,u,i,Int16Array,2);return;case 115:ei(e,r,u,i,Uint16Array,2);return;case 76:ei(e,r,u,i,Int32Array,4);return;case 108:ei(e,r,u,i,Uint32Array,4);return;case 71:ei(e,r,u,i,Float32Array,4);return;case 103:ei(e,r,u,i,Float64Array,8);return;case 77:ei(e,r,u,i,BigInt64Array,8);return;case 109:ei(e,r,u,i,BigUint64Array,8);return;case 86:ei(e,r,u,i,DataView,1);return}t=e._stringDecoder;for(var o="",l=0;l{"use strict";t.exports=e.r(64893)},35326,(e,t,r)=>{"use strict";t.exports=e.r(21413)},54394,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HTTPAccessErrorStatus:function(){return u},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return c},getAccessFallbackHTTPStatus:function(){return s},isHTTPAccessFallbackError:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},i=new Set(Object.values(u)),o="NEXT_HTTP_ERROR_FALLBACK";function l(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&i.has(Number(r))}function s(e){return Number(e.digest.split(";")[1])}function c(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},76963,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RedirectStatusCode",{enumerable:!0,get:function(){return a}});var n,a=((n={})[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68391,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={REDIRECT_ERROR_CODE:function(){return i},isRedirectError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(76963),i="NEXT_REDIRECT";function o(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,n]=t,a=t.slice(2,-2).join(";"),o=Number(t.at(-2));return r===i&&("replace"===n||"push"===n)&&"string"==typeof a&&!isNaN(o)&&o in u.RedirectStatusCode}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},65713,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNextRouterError",{enumerable:!0,get:function(){return u}});let n=e.r(54394),a=e.r(68391);function u(e){return(0,a.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},90809,(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}r._=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=u?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}},3680,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReadonlyURLSearchParams",{enumerable:!0,get:function(){return a}});class n extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new n}delete(){throw new n}set(){throw new n}sort(){throw new n}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},61994,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={NavigationPromisesContext:function(){return c},PathParamsContext:function(){return s},PathnameContext:function(){return l},ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},SearchParamsContext:function(){return o},createDevToolsInstrumentedPromise:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(71645),i=e.r(3680),o=(0,u.createContext)(null),l=(0,u.createContext)(null),s=(0,u.createContext)(null),c=(0,u.createContext)(null);function f(e,t){let r=Promise.resolve(t);return r.status="fulfilled",r.value=t,r.displayName=`${e} (SSR)`,r}},45955,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},21768,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ACTION_HEADER:function(){return i},FLIGHT_HEADERS:function(){return g},NEXT_ACTION_NOT_FOUND_HEADER:function(){return S},NEXT_ACTION_REVALIDATED_HEADER:function(){return T},NEXT_DID_POSTPONE_HEADER:function(){return E},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return f},NEXT_HMR_REFRESH_HEADER:function(){return c},NEXT_HTML_REQUEST_ID_HEADER:function(){return O},NEXT_INSTANT_PREFETCH_HEADER:function(){return h},NEXT_INSTANT_TEST_COOKIE:function(){return y},NEXT_IS_PRERENDER_HEADER:function(){return b},NEXT_REQUEST_ID_HEADER:function(){return P},NEXT_REWRITTEN_PATH_HEADER:function(){return v},NEXT_REWRITTEN_QUERY_HEADER:function(){return R},NEXT_ROUTER_PREFETCH_HEADER:function(){return l},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return s},NEXT_ROUTER_STALE_TIME_HEADER:function(){return m},NEXT_ROUTER_STATE_TREE_HEADER:function(){return o},NEXT_RSC_UNION_QUERY:function(){return _},NEXT_URL:function(){return d},RSC_CONTENT_TYPE_HEADER:function(){return p},RSC_HEADER:function(){return u}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="rsc",i="next-action",o="next-router-state-tree",l="next-router-prefetch",s="next-router-segment-prefetch",c="next-hmr-refresh",f="__next_hmr_refresh_hash__",d="next-url",p="text/x-component",h="next-instant-navigation-testing-prefetch",y="next-instant-navigation-testing",g=[u,o,l,c,s],_="_rsc",m="x-nextjs-stale-time",E="x-nextjs-postponed",v="x-nextjs-rewritten-path",R="x-nextjs-rewritten-query",b="x-nextjs-prerender",S="x-nextjs-action-not-found",P="x-nextjs-request-id",O="x-nextjs-html-request-id",T="x-action-revalidated";("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39470,(e,t,r)=>{"use strict";function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createPromiseWithResolvers",{enumerable:!0,get:function(){return n}})},42852,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={RenderStage:function(){return l},StagedRenderingController:function(){return s}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e.r(12718),o=e.r(39470);var l=((n={})[n.Before=1]="Before",n[n.EarlyStatic=2]="EarlyStatic",n[n.Static=3]="Static",n[n.EarlyRuntime=4]="EarlyRuntime",n[n.Runtime=5]="Runtime",n[n.Dynamic=6]="Dynamic",n[n.Abandoned=7]="Abandoned",n);class s{constructor(e,t,r){this.abortSignal=e,this.abandonController=t,this.shouldTrackSyncIO=r,this.currentStage=1,this.syncInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.staticStageListeners=[],this.earlyRuntimeStageListeners=[],this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.staticStagePromise=(0,o.createPromiseWithResolvers)(),this.earlyRuntimeStagePromise=(0,o.createPromiseWithResolvers)(),this.runtimeStagePromise=(0,o.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,o.createPromiseWithResolvers)(),e&&e.addEventListener("abort",()=>{let{reason:t}=e;this.staticStagePromise.promise.catch(c),this.staticStagePromise.reject(t),this.earlyRuntimeStagePromise.promise.catch(c),this.earlyRuntimeStagePromise.reject(t),this.runtimeStagePromise.promise.catch(c),this.runtimeStagePromise.reject(t),this.dynamicStagePromise.promise.catch(c),this.dynamicStagePromise.reject(t)},{once:!0}),t&&t.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(e,t){if(this.currentStage>=e)t();else if(3===e)this.staticStageListeners.push(t);else if(4===e)this.earlyRuntimeStageListeners.push(t);else if(5===e)this.runtimeStageListeners.push(t);else if(6===e)this.dynamicStageListeners.push(t);else throw Object.defineProperty(new i.InvariantError(`Invalid render stage: ${e}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}shouldTrackSyncInterrupt(){if(!this.shouldTrackSyncIO)return!1;switch(this.currentStage){case 1:case 5:case 6:case 7:default:return!1;case 2:case 3:case 4:return!0}}syncInterruptCurrentStageWithReason(e){if(1!==this.currentStage&&7!==this.currentStage){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=e,this.currentStage=7;return}switch(this.currentStage){case 2:case 3:case 4:this.syncInterruptReason=e,this.advanceStage(6);return;case 5:return}}}getSyncInterruptReason(){return this.syncInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){let{currentStage:e}=this;switch(e){case 2:this.resolveStaticStage();case 3:this.resolveEarlyRuntimeStage();case 4:this.resolveRuntimeStage();case 5:this.currentStage=7;return}}advanceStage(e){if(e<=this.currentStage)return;let t=this.currentStage;if(this.currentStage=e,t<3&&e>=3&&this.resolveStaticStage(),t<4&&e>=4&&this.resolveEarlyRuntimeStage(),t<5&&e>=5&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),t<6&&e>=6){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveStaticStage(){let e=this.staticStageListeners;for(let t=0;t{n.then(e.bind(null,u),t)}),void 0!==a&&(i.displayName=a),i);return this.abortSignal&&o.catch(c),o}}function c(){}},62141,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getCacheSignal:function(){return m},getDraftModeProviderForCacheScope:function(){return g},getHmrRefreshHash:function(){return p},getPrerenderResumeDataCache:function(){return f},getRenderResumeDataCache:function(){return d},getServerComponentsHmrCache:function(){return y},getStagedRenderingController:function(){return _},isHmrRefresh:function(){return h},isInEarlyRenderStage:function(){return l},throwForMissingRequestStore:function(){return s},throwInvariantForMissingStore:function(){return c},workUnitAsyncStorage:function(){return u.workUnitAsyncStorageInstance}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(45955);e.r(21768);let i=e.r(12718),o=e.r(42852);function l(e){let t=e.stagedRendering;return!!t&&(t.currentStage===o.RenderStage.EarlyStatic||t.currentStage===o.RenderStage.EarlyRuntime)}function s(e){throw Object.defineProperty(Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function c(){throw Object.defineProperty(new i.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function f(e){switch(e.type){case"prerender":case"prerender-runtime":case"prerender-ppr":case"prerender-client":case"validation-client":return e.prerenderResumeDataCache;case"request":if(e.prerenderResumeDataCache)return e.prerenderResumeDataCache;case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function d(e){switch(e.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":case"validation-client":if(e.renderResumeDataCache)return e.renderResumeDataCache;case"prerender-ppr":return e.prerenderResumeDataCache??null;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":case"generate-static-params":return null;default:return e}}function p(e){}function h(e){return!1}function y(e){}function g(e,t){if(e.isDraftMode)switch(t.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return t.draftMode}}function _(e){switch(e.type){case"request":case"prerender-runtime":return e.stagedRendering??null;case"prerender":case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function m(e){switch(e.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":return e.cacheSignal;case"request":if(e.cacheSignal)return e.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}},90373,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useUntrackedPathname",{enumerable:!0,get:function(){return u}});let n=e.r(71645),a=e.r(61994);function u(){return!function(){if("u"0}}return!1}()?(0,n.useContext)(a.PathnameContext):null}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},51191,(e,t,r)=>{"use strict";function n(e,t=!0){return e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},78377,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={handleHardNavError:function(){return i},useNavFailureHandler:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});e.r(71645);let u=e.r(51191);function i(e){return!!(e&&"u">typeof window)&&!!window.next.__pendingUrl&&(0,u.createHrefFromUrl)(new URL(window.location.href))!==(0,u.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function o(){}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},26935,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return n}});let n=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},82604,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HTML_LIMITED_BOT_UA_RE:function(){return u.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return o},getBotType:function(){return c},isBot:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(26935),i=/Googlebot(?!-)|Googlebot$/i,o=u.HTML_LIMITED_BOT_UA_RE.source;function l(e){return u.HTML_LIMITED_BOT_UA_RE.test(e)}function s(e){return i.test(e)||l(e)}function c(e){return i.test(e)?"dom":l(e)?"html":void 0}},8372,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={AppRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return o},MissingSlotContext:function(){return c},TemplateContext:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(55682)._(e.r(71645)),i=u.default.createContext(null),o=u.default.createContext(null),l=u.default.createContext(null),s=u.default.createContext(null),c=u.default.createContext(new Set)},72383,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ErrorBoundary:function(){return y},ErrorBoundaryHandler:function(){return h}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809),i=e.r(43476),o=u._(e.r(71645)),l=e.r(90373),s=e.r(65713);e.r(78377);let c=e.r(12354),f=e.r(82604),d=e.r(8372),p="u">typeof window&&(0,f.isBot)(window.navigator.userAgent);class h extends o.default.Component{static{this.contextType=d.AppRouterContext}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.unstable_retry=()=>{(0,o.startTransition)(()=>{this.context?.refresh(),this.reset()})},this.state={error:null,previousPathname:this.props.pathname}}static getDerivedStateFromError(e){if((0,s.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error&&!p?((0,c.handleISRError)({error:this.state.error}),(0,i.jsxs)(i.Fragment,{children:[this.props.errorStyles,this.props.errorScripts,(0,i.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset,unstable_retry:this.unstable_retry})]})):this.props.children}}function y({errorComponent:e,errorStyles:t,errorScripts:r,children:n}){let a=(0,l.useUntrackedPathname)();return e?(0,i.jsx)(h,{pathname:a,errorComponent:e,errorStyles:t,errorScripts:r,children:n}):(0,i.jsx)(i.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88540,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,u={ACTION_HMR_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return l},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return s},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchKind:function(){return p},ScrollBehavior:function(){return h}};for(var i in u)Object.defineProperty(r,i,{enumerable:!0,get:u[i]});let o="refresh",l="navigate",s="restore",c="server-patch",f="hmr-refresh",d="server-action";var p=((n={}).AUTO="auto",n.FULL="full",n),h=((a={})[a.Default=0]="Default",a[a.NoScroll=1]="NoScroll",a);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},64245,(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isThenable",{enumerable:!0,get:function(){return n}})},41538,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={dispatchAppRouterAction:function(){return s},dispatchGestureState:function(){return f},refreshOnInstantNavigationUnlock:function(){return l},useActionQueue:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809)._(e.r(71645)),i=e.r(64245);e.r(88540);let o=null;function l(){}function s(e){if(null===o)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});o(e)}let c=null;function f(e){if(null===c)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});c(e)}function d(e){let[t,r]=u.default.useState(e.state),[n,a]=(0,u.useOptimistic)(t);"u">typeof window&&(c=a),"u">typeof window&&(o=t=>e.dispatch(t,r));let l=(0,u.useMemo)(()=>n,[n]);return(0,i.isThenable)(l)?(0,u.use)(l):l}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32120,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"callServer",{enumerable:!0,get:function(){return i}});let n=e.r(71645),a=e.r(88540),u=e.r(41538);async function i(e,t){return new Promise((r,i)=>{(0,n.startTransition)(()=>{(0,u.dispatchAppRouterAction)({type:a.ACTION_SERVER_ACTION,actionId:e,actionArgs:t,resolve:r,reject:i})})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92245,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findSourceMapURL",{enumerable:!0,get:function(){return n}});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},13258,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DEFAULT_SEGMENT_KEY:function(){return f},NOT_FOUND_SEGMENT_KEY:function(){return d},PAGE_SEGMENT_KEY:function(){return c},addSearchParamsIfPageSegment:function(){return l},computeSelectedLayoutSegment:function(){return s},getSegmentValue:function(){return u},getSelectedLayoutSegmentPath:function(){return function e(t,r,n=!0,a=[]){let i;if(n)i=t[1][r];else{let e=t[1];i=e.children??Object.values(e)[0]}if(!i)return a;let o=u(i[0]);return!o||o.startsWith(c)?a:(a.push(o),e(i,r,!1,a))}},isGroupSegment:function(){return i},isParallelRouteSegment:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(e){return Array.isArray(e)?e[1]:e}function i(e){return"("===e[0]&&e.endsWith(")")}function o(e){return e.startsWith("@")&&"@children"!==e}function l(e,t){if(e.includes(c)){let e=JSON.stringify(t);return"{}"!==e?c+"?"+e:c}return e}function s(e,t){if(!e||0===e.length)return null;let r="children"===t?e[0]:e[e.length-1];return r===f?null:r}let c="__PAGE__",f="__DEFAULT__",d="/_not-found"},67764,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HEAD_REQUEST_KEY:function(){return o},ROOT_SEGMENT_REQUEST_KEY:function(){return i},appendSegmentRequestKeyPart:function(){return s},convertSegmentPathToStaticExportFilename:function(){return d},createSegmentRequestKeyPart:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(13258),i="",o="/_head";function l(e){if("string"==typeof e)return e.startsWith(u.PAGE_SEGMENT_KEY)?u.PAGE_SEGMENT_KEY:"/_not-found"===e?"_not-found":f(e);let t=e[0];return"$"+e[2]+"$"+f(t)}function s(e,t,r){return e+"/"+("children"===t?r:`@${f(t)}/${r}`)}let c=/^[a-zA-Z0-9\-_@]+$/;function f(e){return c.test(e)?e:"!"+btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function d(e){return`__next${e.replace(/\//g,".")}.txt`}},33906,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={doesStaticSegmentAppearInURL:function(){return d},getCacheKeyForDynamicParam:function(){return p},getParamValueFromCacheKey:function(){return y},getRenderedPathname:function(){return s},getRenderedSearch:function(){return l},parseDynamicParamFromURLPart:function(){return f},urlSearchParamsToParsedUrlQuery:function(){return g},urlToUrlWithoutFlightMarker:function(){return h}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(13258),i=e.r(67764),o=e.r(21768);function l(e){let t=e.headers.get(o.NEXT_REWRITTEN_QUERY_HEADER);return null!==t?""===t?"":"?"+t:h(new URL(e.url)).search}function s(e){return e.headers.get(o.NEXT_REWRITTEN_PATH_HEADER)??h(new URL(e.url)).pathname}function c(e){try{return encodeURIComponent(decodeURIComponent(e))}catch{return e}}function f(e,t,r){switch(e){case"c":return rc(e)):[];case"ci(..)(..)":case"ci(.)":case"ci(..)":case"ci(...)":{let n=e.length-2;return r0===t?c(e.slice(n)):c(e)):[]}case"oc":return rc(e)):null;case"d":if(r>=t.length)return"";return c(t[r]);case"di(..)(..)":case"di(.)":case"di(..)":case"di(...)":{let n=e.length-2;if(r>=t.length)return"";return c(t[r].slice(n))}default:return""}}function d(e){return!(e===i.ROOT_SEGMENT_REQUEST_KEY||e.startsWith(u.PAGE_SEGMENT_KEY)||"("===e[0]&&e.endsWith(")"))&&e!==u.DEFAULT_SEGMENT_KEY&&"/_not-found"!==e}function p(e,t){return"string"==typeof e?(0,u.addSearchParamsIfPageSegment)(e,Object.fromEntries(new URLSearchParams(t))):null===e?"":e.join("/")}function h(e){let t=new URL(e);if(t.searchParams.delete(o.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function y(e,t){return"c"===t||"oc"===t?e.split("/"):e}function g(e){let t={};for(let[r,n]of e.entries())void 0===t[r]?t[r]=n:Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n];return t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},50590,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createInitialRSCPayloadFromFallbackPrerender:function(){return s},getFlightDataPartsFromPath:function(){return l},getNextFlightSegmentPath:function(){return c},normalizeFlightData:function(){return f},prepareFlightRouterStateForRequest:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(13258),i=e.r(33906),o=e.r(51191);function l(e){let[t,r,n,a]=e.slice(-4),u=e.slice(0,-4);return{pathToSegment:u.slice(0,-1),segmentPath:u,segment:u[u.length-1]??"",tree:t,seedData:r,head:n,isHeadPartial:a,isRootRender:4===e.length}}function s(e,t){let r=(0,i.getRenderedPathname)(e),n=(0,i.getRenderedSearch)(e),a=(0,o.createHrefFromUrl)(new URL(location.href)),u=t.f[0],l=u[0],s={c:a.split("/"),q:n,i:t.i,f:[[function e(t,r,n,a){let u,o,l=t[0];if("string"==typeof l)u=l,o=(0,i.doesStaticSegmentAppearInURL)(l);else{let e=l[0],t=l[2],s=l[3],c=(0,i.parseDynamicParamFromURLPart)(t,n,a);u=[e,(0,i.getCacheKeyForDynamicParam)(c,r),t,s],o=!0}let s=o?a+1:a,c=t[1],f={};for(let t in c){let a=c[t];f[t]=e(a,r,n,s)}return[u,f,null,t[3],t[4]]}(l,n,r.split("/").filter(e=>""!==e),0),u[1],u[2],u[2]]],m:t.m,G:t.G,S:t.S,h:t.h};return t.b&&(s.b=t.b),s}function c(e){return e.slice(2)}function f(e){return"string"==typeof e?e:e.map(e=>l(e))}function d(e,t){return t?encodeURIComponent(JSON.stringify(e)):encodeURIComponent(JSON.stringify(function e(t){let[r,n,a,i,o]=t,l=function(e){if("string"==typeof e)return e.startsWith(u.PAGE_SEGMENT_KEY+"?")?u.PAGE_SEGMENT_KEY:e;let[t,r,n]=e;return[t,r,n,null]}(r),s={};for(let[t,r]of Object.entries(n))s[t]=e(r);let c=[l,s];return i&&(c[2]=null,c[3]=i),void 0!==o&&(c[4]=o),c}(e)))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},19921,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={djb2Hash:function(){return u},hexHash:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(e){let t=5381;for(let r=0;r>>0}function i(e){return u(e).toString(36).slice(0,5)}},86051,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={computeCacheBustingSearchParam:function(){return c},computeLegacyCacheBustingSearchParam:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(19921),i=new TextEncoder;function o(e){return void 0===e?"0":Array.isArray(e)?e.join(","):e}function l(e,t,r,n){return(void 0===e||"0"===e)&&void 0===t&&void 0===r&&void 0===n?null:[e??"0",o(t),o(r),o(n)].join(",")}async function s(e){var t=new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",i.encode(e))).subarray(0,12);let r="";for(let e=0;e{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={setCacheBustingSearchParam:function(){return l},setCacheBustingSearchParamWithHash:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(86051),i=e.r(21768);async function o(e){return"function"==typeof globalThis.crypto?.subtle?.digest?(0,u.computeCacheBustingSearchParam)(e[i.NEXT_ROUTER_PREFETCH_HEADER],e[i.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],e[i.NEXT_ROUTER_STATE_TREE_HEADER],e[i.NEXT_URL]):(0,u.computeLegacyCacheBustingSearchParam)(e[i.NEXT_ROUTER_PREFETCH_HEADER],e[i.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],e[i.NEXT_ROUTER_STATE_TREE_HEADER],e[i.NEXT_URL])}let l=async(e,t)=>{s(e,await o(t))},s=(e,t)=>{let r=e.search,n=(r.startsWith("?")?r.slice(1):r).split("&").filter(e=>e&&!e.startsWith(`${i.NEXT_RSC_UNION_QUERY}=`));t.length>0?n.push(`${i.NEXT_RSC_UNION_QUERY}=${t}`):n.push(`${i.NEXT_RSC_UNION_QUERY}`),e.search=n.length?`?${n.join("&")}`:""};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32992,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getNavigationBuildId:function(){return o},setNavigationBuildId:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="";function i(e){u=e}function o(){return u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63416,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ACTION_SUFFIX:function(){return g},APP_DIR_ALIAS:function(){return B},CACHE_ONE_YEAR_SECONDS:function(){return D},DOT_NEXT_ALIAS:function(){return k},ESLINT_DEFAULT_DIRS:function(){return eo},GSP_NO_RETURNED_VALUE:function(){return et},GSSP_COMPONENT_MEMBER_ERROR:function(){return ea},GSSP_NO_RETURNED_VALUE:function(){return er},HTML_CONTENT_TYPE_HEADER:function(){return i},INFINITE_CACHE:function(){return C},INSTRUMENTATION_HOOK_FILENAME:function(){return U},JSON_CONTENT_TYPE_HEADER:function(){return o},MATCHED_PATH_HEADER:function(){return c},MIDDLEWARE_FILENAME:function(){return M},MIDDLEWARE_LOCATION_REGEXP:function(){return I},NEXT_BODY_SUFFIX:function(){return E},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return j},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return b},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return S},NEXT_CACHE_ROOT_PARAM_TAG_ID:function(){return N},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return A},NEXT_CACHE_TAGS_HEADER:function(){return R},NEXT_CACHE_TAG_MAX_ITEMS:function(){return T},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return _},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return s},NEXT_META_SUFFIX:function(){return m},NEXT_NAV_DEPLOYMENT_ID_HEADER:function(){return v},NEXT_QUERY_PARAM_PREFIX:function(){return l},NEXT_RESUME_HEADER:function(){return P},NEXT_RESUME_STATE_LENGTH_HEADER:function(){return O},NON_STANDARD_NODE_ENV:function(){return eu},PAGES_DIR_ALIAS:function(){return L},PRERENDER_REVALIDATE_HEADER:function(){return f},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return d},PROXY_FILENAME:function(){return x},PROXY_LOCATION_REGEXP:function(){return F},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return W},ROOT_DIR_ALIAS:function(){return H},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return q},RSC_ACTION_ENCRYPTION_ALIAS:function(){return Y},RSC_ACTION_PROXY_ALIAS:function(){return V},RSC_ACTION_VALIDATE_ALIAS:function(){return X},RSC_CACHE_WRAPPER_ALIAS:function(){return G},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return K},RSC_MOD_REF_PROXY_ALIAS:function(){return $},RSC_SEGMENTS_DIR_SUFFIX:function(){return p},RSC_SEGMENT_SUFFIX:function(){return h},RSC_SUFFIX:function(){return y},SERVER_PROPS_EXPORT_ERROR:function(){return ee},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return Q},SERVER_PROPS_SSG_CONFLICT:function(){return J},SERVER_RUNTIME:function(){return el},SSG_FALLBACK_EXPORT_ERROR:function(){return ei},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return z},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Z},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return u},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return en},WEBPACK_LAYERS:function(){return ef},WEBPACK_RESOURCE_QUERIES:function(){return ed},WEB_SOCKET_MAX_RECONNECTIONS:function(){return es}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="text/plain",i="text/html; charset=utf-8",o="application/json; charset=utf-8",l="nxtP",s="nxtI",c="x-matched-path",f="x-prerender-revalidate",d="x-prerender-revalidate-if-generated",p=".segments",h=".segment.rsc",y=".rsc",g=".action",_=".json",m=".meta",E=".body",v="x-nextjs-deployment-id",R="x-next-cache-tags",b="x-next-revalidated-tags",S="x-next-revalidate-tag-token",P="next-resume",O="x-next-resume-state-length",T=128,w=256,A=1024,j="_N_T_",N="_N_RP_",D=31536e3,C=0xfffffffe,M="middleware",I=`(?:src/)?${M}`,x="proxy",F=`(?:src/)?${x}`,U="instrumentation",L="private-next-pages",k="private-dot-next",H="private-next-root-dir",B="private-next-app-dir",$="private-next-rsc-mod-ref-proxy",X="private-next-rsc-action-validate",V="private-next-rsc-server-reference",G="private-next-rsc-cache-wrapper",K="private-next-rsc-track-dynamic-import",Y="private-next-rsc-action-encryption",q="private-next-rsc-action-client-wrapper",W="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",z="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",Q="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",J="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Z="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",ee="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",et="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",er="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",en="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",ea="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",eu='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ei="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",eo=["app","pages","components","lib","src"],el={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},es=12,ec={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ef={...ec,GROUP:{builtinReact:[ec.reactServerComponents,ec.actionBrowser],serverOnly:[ec.reactServerComponents,ec.actionBrowser,ec.instrument,ec.middleware],neutralTarget:[ec.apiNode,ec.apiEdge],clientOnly:[ec.serverSideRendering,ec.appPagesBrowser],bundled:[ec.reactServerComponents,ec.actionBrowser,ec.serverSideRendering,ec.appPagesBrowser,ec.shared,ec.instrument,ec.middleware],appPages:[ec.reactServerComponents,ec.serverSideRendering,ec.appPagesBrowser,ec.actionBrowser]}},ed={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},6372,(e,t,r)=>{"use strict";function n(e){return(e.then(a),"fulfilled"!==e.status)?null:e.value}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"readVaryParams",{enumerable:!0,get:function(){return n}});let a=()=>{}},22744,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PrefetchHint",{enumerable:!0,get:function(){return a}});var n,a=((n={})[n.HasRuntimePrefetch=1]="HasRuntimePrefetch",n[n.SubtreeHasInstant=2]="SubtreeHasInstant",n[n.SegmentHasLoadingBoundary=4]="SegmentHasLoadingBoundary",n[n.SubtreeHasLoadingBoundary=8]="SubtreeHasLoadingBoundary",n[n.IsRootLayout=16]="IsRootLayout",n[n.ParentInlinedIntoSelf=32]="ParentInlinedIntoSelf",n[n.InlinedIntoChild=64]="InlinedIntoChild",n[n.HeadInlinedIntoSelf=128]="HeadInlinedIntoSelf",n[n.HeadOutlined=256]="HeadOutlined",n)},56019,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"matchSegment",{enumerable:!0,get:function(){return n}});let n=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1];("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77048,(e,t,r)=>{"use strict";function n(e,t){let r=new URL(e);return{pathname:r.pathname,search:r.search,nextUrl:t}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createCacheKey",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},9396,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,u,i={FetchStrategy:function(){return c},NavigationResultTag:function(){return l},PrefetchPriority:function(){return s}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});var l=((n={})[n.MPA=0]="MPA",n[n.Success=1]="Success",n[n.NoOp=2]="NoOp",n[n.Async=3]="Async",n),s=((a={})[a.Intent=2]="Intent",a[a.Default=1]="Default",a[a.Background=0]="Background",a),c=((u={})[u.LoadingBoundary=0]="LoadingBoundary",u[u.PPR=1]="PPR",u[u.PPRRuntime=2]="PPRRuntime",u[u.Full=3]="Full",u);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},511,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={Fallback:function(){return i},createCacheMap:function(){return l},deleteFromCacheMap:function(){return p},deleteMapEntry:function(){return h},getFromCacheMap:function(){return s},isValueExpired:function(){return c},setInCacheMap:function(){return f},setSizeInCacheMap:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(73861),i={},o={};function l(){return{parent:null,key:null,value:null,map:null,prev:null,next:null,size:0}}function s(e,t,r,n,a){let l=function e(t,r,n,a,u,l){let s,f;if(null!==a)s=a.value,f=a.parent;else if(u&&l!==o)s=o,f=null;else return null===n.value?n:c(t,r,n.value)?(h(n),null):n;let d=n.map;if(null!==d){let n=d.get(s);if(void 0!==n){let a=e(t,r,n,f,u,s);if(null!==a)return a}let a=d.get(i);if(void 0!==a)return e(t,r,a,f,u,s)}return null}(e,t,r,n,a,0);return null===l||null===l.value?null:((0,u.lruPut)(l),l.value)}function c(e,t,r){return r.staleAt<=e||r.version{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cleanup:function(){return p},deleteFromLru:function(){return f},lruPut:function(){return s},updateLruSize:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(511),i=e.r(77709),o=null,l=0;function s(e){if(o===e)return;let t=e.prev,r=e.next;if(null===r||null===t?(l+=e.size,d()):(t.next=r,r.prev=t),null===o)e.prev=e,e.next=e;else{let t=o.prev;e.prev=t,null!==t&&(t.next=e),e.next=o,o.prev=e}o=e}function c(e,t){let r=e.size;e.size=t,null!==e.next&&(l=l-r+t,d())}function f(e){let t=e.next,r=e.prev;null!==t&&null!==r&&(l-=e.size,e.next=null,e.prev=null,o===e?t===o?o=null:(o=t,r.next=t,t.prev=r):(r.next=t,t.prev=r))}function d(){l<=0x3200000||(0,i.pingPrefetchScheduler)()}function p(){if(!(l<=0x3200000))for(;l>0x2d00000&&null!==o;){let e=o.prev;null!==e&&(0,u.deleteMapEntry)(e)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77709,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelPrefetchTask:function(){return R},isPrefetchTaskDirty:function(){return S},pingPrefetchScheduler:function(){return O},pingPrefetchTask:function(){return j},reschedulePrefetchTask:function(){return b},schedulePrefetchTask:function(){return v},startRevalidationCooldown:function(){return E}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(22744),i=e.r(56019),o=e.r(20896),l=e.r(77048),s=e.r(9396),c=e.r(13258),f=e.r(73861),d="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e})),p=[],h=0,y=0,g=!1,_=null,m=null;function E(){null!==m&&clearTimeout(m),m=setTimeout(()=>{m=null,O()},300)}function v(e,t,r,n,a,u){let i={key:e,treeAtTimeOfPrefetch:t,routeCacheVersion:(0,o.getCurrentRouteCacheVersion)(),segmentCacheVersion:(0,o.getCurrentSegmentCacheVersion)(),priority:n,phase:1,hasBackgroundWork:!1,spawnedRuntimePrefetches:null,fetchStrategy:r,sortId:y++,isCanceled:!1,onInvalidate:a,_heapIndex:-1};return P(i),k(p,i),O(),i}function R(e){e.isCanceled=!0,function(e,t){let r=t._heapIndex;if(-1!==r&&(t._heapIndex=-1,0!==e.length)){let n=e.pop();n!==t&&(e[r]=n,n._heapIndex=r,V(e,n,r))}}(p,e)}function b(e,t,r,n){e.isCanceled=!1,e.phase=1,e.sortId=y++,e.priority=e===_?s.PrefetchPriority.Intent:n,e.treeAtTimeOfPrefetch=t,e.fetchStrategy=r,P(e),-1!==e._heapIndex?$(p,e):k(p,e),O()}function S(e,t,r){return e.routeCacheVersion!==(0,o.getCurrentRouteCacheVersion)()||e.segmentCacheVersion!==(0,o.getCurrentSegmentCacheVersion)()||e.treeAtTimeOfPrefetch!==r||e.key.nextUrl!==t}function P(e){e.priority===s.PrefetchPriority.Intent&&e!==_&&(null!==_&&_.priority!==s.PrefetchPriority.Background&&(_.priority=s.PrefetchPriority.Default,$(p,_)),_=e)}function O(){g||(g=!0,d(N))}function T(e){return null===m&&(e.priority===s.PrefetchPriority.Intent?h<12:h<4)}function w(e){return h++,e.then(e=>null===e?(A(),null):(e.closed.then(A),e.value))}function A(){h--,O()}function j(e){e.isCanceled||-1!==e._heapIndex||(k(p,e),O())}function N(){g=!1;let e=Date.now(),t=H(p);for(;null!==t&&T(t);){t.routeCacheVersion=(0,o.getCurrentRouteCacheVersion)(),t.segmentCacheVersion=(0,o.getCurrentSegmentCacheVersion)();let r=function(e,t){let r=t.key,n=(0,o.readOrCreateRouteCacheEntry)(e,t,r),a=function(e,t,r){switch(r.status){case o.EntryStatus.Empty:w((0,o.fetchRouteOnCacheMiss)(r,t.key)),r.staleAt=e+6e4,r.status=o.EntryStatus.Pending;case o.EntryStatus.Pending:{let e=r.blockedTasks;return null===e?r.blockedTasks=new Set([t]):e.add(t),1}case o.EntryStatus.Rejected:break;case o.EntryStatus.Fulfilled:{let l;if(0!==t.phase)return 2;if(!T(t))return 0;let c=r.tree;switch(l=c.prefetchHints&u.PrefetchHint.SubtreeHasInstant?s.FetchStrategy.PPR:t.fetchStrategy===s.FetchStrategy.PPR?r.supportsPerSegmentPrefetching?s.FetchStrategy.PPR:s.FetchStrategy.LoadingBoundary:t.fetchStrategy){case s.FetchStrategy.PPR:{var n,a,i;if(I(n=e,a=t,i=r,(0,o.readOrCreateSegmentCacheEntry)(n,s.FetchStrategy.PPR,i.metadata),a.key,i.metadata),0===function e(t,r,n,a,i){let l=(0,o.readOrCreateSegmentCacheEntry)(t,r.fetchStrategy,i);I(t,r,n,l,r.key,i);let s=a[1],c=i.slots;if(null!==c)for(let a in c){if(!T(r))return 0;let i=c[a],l=i.segment,f=s[a],d=f?.[0];if(0===(void 0!==d&&U(n,l,d)?e(t,r,n,f,i):function e(t,r,n,a){if(a.prefetchHints&u.PrefetchHint.HasRuntimePrefetch)return null===r.spawnedRuntimePrefetches?r.spawnedRuntimePrefetches=new Set([a.requestKey]):r.spawnedRuntimePrefetches.add(a.requestKey),2;let i=(0,o.readOrCreateSegmentCacheEntry)(t,r.fetchStrategy,a);if(I(t,r,n,i,r.key,a),null!==a.slots){if(!T(r))return 0;for(let u in a.slots)if(0===e(t,r,n,a.slots[u]))return 0}return 2}(t,r,n,i)))return 0}return 2}(e,t,r,t.treeAtTimeOfPrefetch,c))return 0;let l=t.spawnedRuntimePrefetches;if(null!==l){let n=new Map;C(e,t,r,n,s.FetchStrategy.PPRRuntime);let a=function e(t,r,n,a,u,i){if(u.has(a.requestKey))return M(t,r,n,a,!1,i,s.FetchStrategy.PPRRuntime);let o={},l=a.slots;if(null!==l)for(let a in l){let s=l[a];o[a]=e(t,r,n,s,u,i)}return[a.segment,o,null,null]}(e,t,r,c,l,n);n.size>0&&w((0,o.fetchSegmentPrefetchesUsingDynamicRequest)(t,r,s.FetchStrategy.PPRRuntime,a,n))}return 2}case s.FetchStrategy.Full:case s.FetchStrategy.PPRRuntime:case s.FetchStrategy.LoadingBoundary:{let n=new Map;C(e,t,r,n,l);let a=function e(t,r,n,a,i,l,c){let f=a[1],d=i.slots,p={};if(null!==d)for(let a in d){let i=d[a],h=i.segment,y=f[a],g=y?.[0];if(void 0!==g&&U(n,h,g)){let u=e(t,r,n,y,i,l,c);p[a]=u}else switch(c){case s.FetchStrategy.LoadingBoundary:{let e=(i.prefetchHints&(u.PrefetchHint.SegmentHasLoadingBoundary|u.PrefetchHint.SubtreeHasLoadingBoundary))!=0?function e(t,r,n,a,i,l){let c=null===i?"inside-shared-layout":null,f=(0,o.readOrCreateSegmentCacheEntry)(t,r.fetchStrategy,a);switch(f.status){case o.EntryStatus.Empty:l.set(a.requestKey,(0,o.upgradeToPendingSegment)(f,s.FetchStrategy.LoadingBoundary)),"refetch"!==i&&(c=i="refetch");break;case o.EntryStatus.Fulfilled:if((a.prefetchHints&u.PrefetchHint.SegmentHasLoadingBoundary)!=0)return(0,o.convertRouteTreeToFlightRouterState)(a);case o.EntryStatus.Pending:case o.EntryStatus.Rejected:}let d={};if(null!==a.slots)for(let u in a.slots){let o=a.slots[u];d[u]=e(t,r,n,o,i,l)}return[a.segment,d,null,c]}(t,r,n,i,null,l):(0,o.convertRouteTreeToFlightRouterState)(i);p[a]=e;break}case s.FetchStrategy.PPRRuntime:{let e=M(t,r,n,i,!1,l,c);p[a]=e;break}case s.FetchStrategy.Full:{let e=M(t,r,n,i,!1,l,c);p[a]=e}}}return[i.segment,p,null,null]}(e,t,r,t.treeAtTimeOfPrefetch,c,n,l);return n.size>0&&w((0,o.fetchSegmentPrefetchesUsingDynamicRequest)(t,r,l,a,n)),2}}}}return 2}(e,t,n);if(0!==a&&""!==r.search){let n=new URL(r.pathname,location.origin),a=(0,l.createCacheKey)(n.href,r.nextUrl),u=(0,o.readOrCreateRouteCacheEntry)(e,t,a);switch(u.status){case o.EntryStatus.Empty:D(t)&&(u.status=o.EntryStatus.Pending,w((0,o.fetchRouteOnCacheMiss)(u,a)));case o.EntryStatus.Pending:case o.EntryStatus.Fulfilled:case o.EntryStatus.Rejected:}}return a}(e,t),n=t.hasBackgroundWork;switch(t.hasBackgroundWork=!1,t.spawnedRuntimePrefetches=null,r){case 0:return;case 1:B(p),t=H(p);continue;case 2:1===t.phase?(t.phase=0,$(p,t)):n?(t.priority=s.PrefetchPriority.Background,$(p,t)):B(p),t=H(p);continue}}null===t&&0===h&&(0,f.cleanup)()}function D(e){return e.priority===s.PrefetchPriority.Background||(e.hasBackgroundWork=!0,!1)}function C(e,t,r,n,a){M(e,t,r,r.metadata,!1,n,a===s.FetchStrategy.LoadingBoundary?s.FetchStrategy.Full:a)}function M(e,t,r,n,a,u,i){let l=(0,o.readOrCreateSegmentCacheEntry)(e,i,n),c=null;switch(l.status){case o.EntryStatus.Empty:if(i===s.FetchStrategy.Full&&null!==(0,o.attemptToFulfillDynamicSegmentFromBFCache)(e,l,n))break;c=(0,o.upgradeToPendingSegment)(l,i);break;case o.EntryStatus.Fulfilled:if(l.isPartial&&(0,o.canNewFetchStrategyProvideMoreContent)(l.fetchStrategy,i)){if(i===s.FetchStrategy.Full&&null!==(0,o.attemptToUpgradeSegmentFromBFCache)(e,n))break;c=F(e,n,i)}break;case o.EntryStatus.Pending:case o.EntryStatus.Rejected:(0,o.canNewFetchStrategyProvideMoreContent)(l.fetchStrategy,i)&&(c=F(e,n,i))}let f={};if(null!==n.slots)for(let o in n.slots){let l=n.slots[o];f[o]=M(e,t,r,l,a||null!==c,u,i)}null!==c&&u.set(n.requestKey,c);let d=a||null===c?null:"refetch";return[n.segment,f,null,d]}function I(e,t,r,n,a,u){switch(n.status){case o.EntryStatus.Empty:w((0,o.fetchSegmentOnCacheMiss)(r,(0,o.upgradeToPendingSegment)(n,s.FetchStrategy.PPR),a,u));break;case o.EntryStatus.Pending:switch(n.fetchStrategy){case s.FetchStrategy.PPR:case s.FetchStrategy.PPRRuntime:case s.FetchStrategy.Full:break;case s.FetchStrategy.LoadingBoundary:D(t)&&x(e,r,a,u);break;default:n.fetchStrategy}break;case o.EntryStatus.Rejected:switch(n.fetchStrategy){case s.FetchStrategy.PPR:case s.FetchStrategy.PPRRuntime:case s.FetchStrategy.Full:break;case s.FetchStrategy.LoadingBoundary:x(e,r,a,u);break;default:n.fetchStrategy}case o.EntryStatus.Fulfilled:}}function x(e,t,r,n){let a=(0,o.readOrCreateRevalidatingSegmentEntry)(e,s.FetchStrategy.PPR,n);switch(a.status){case o.EntryStatus.Empty:w((0,o.fetchSegmentOnCacheMiss)(t,(0,o.upgradeToPendingSegment)(a,s.FetchStrategy.PPR),r,n));case o.EntryStatus.Pending:case o.EntryStatus.Fulfilled:case o.EntryStatus.Rejected:}}function F(e,t,r){let n=(0,o.readOrCreateRevalidatingSegmentEntry)(e,r,t);if(n.status===o.EntryStatus.Empty)return(0,o.upgradeToPendingSegment)(n,r);if((0,o.canNewFetchStrategyProvideMoreContent)(n.fetchStrategy,r)){let n=(0,o.overwriteRevalidatingSegmentCacheEntry)(e,r,t);return(0,o.upgradeToPendingSegment)(n,r)}switch(n.status){case o.EntryStatus.Pending:case o.EntryStatus.Fulfilled:case o.EntryStatus.Rejected:default:return null}}function U(e,t,r){return r===c.PAGE_SEGMENT_KEY?t===(0,c.addSearchParamsIfPageSegment)(c.PAGE_SEGMENT_KEY,Object.fromEntries(new URLSearchParams(e.renderedSearch))):(0,i.matchSegment)(r,t)}function L(e,t){let r=t.priority-e.priority;if(0!==r)return r;let n=t.phase-e.phase;return 0!==n?n:t.sortId-e.sortId}function k(e,t){let r=e.length;e.push(t),t._heapIndex=r,X(e,t,r)}function H(e){return 0===e.length?null:e[0]}function B(e){if(0===e.length)return null;let t=e[0];t._heapIndex=-1;let r=e.pop();return r!==t&&(e[0]=r,r._heapIndex=0,V(e,r,0)),t}function $(e,t){let r=t._heapIndex;-1!==r&&(0===r?V(e,t,0):L(e[r-1>>>1],t)>0?X(e,t,r):V(e,t,r))}function X(e,t,r){let n=r;for(;n>0;){let r=n-1>>>1,a=e[r];if(!(L(a,t)>0))return;e[r]=t,t._heapIndex=r,e[n]=a,a._heapIndex=n,n=r}}function V(e,t,r){let n=r,a=e.length,u=a>>>1;for(;nL(u,t))iL(o,u)?(e[n]=o,o._heapIndex=n,e[i]=t,t._heapIndex=i,n=i):(e[n]=u,u._heapIndex=n,e[r]=t,t._heapIndex=r,n=r);else{if(!(iL(o,t)))return;e[n]=o,o._heapIndex=n,e[i]=t,t._heapIndex=i,n=i}}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},56655,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={appendLayoutVaryPath:function(){return c},clonePageVaryPathWithNewSearchParams:function(){return _},finalizeLayoutVaryPath:function(){return f},finalizeMetadataVaryPath:function(){return y},finalizePageVaryPath:function(){return p},getFulfilledRouteVaryPath:function(){return s},getFulfilledSegmentVaryPath:function(){return function e(t,r){return{id:t.id,value:null===t.id||r.has(t.id)?t.value:i.Fallback,parent:null===t.parent?null:e(t.parent,r)}}},getPartialLayoutVaryPath:function(){return d},getPartialPageVaryPath:function(){return h},getRenderedSearchFromVaryPath:function(){return m},getRouteVaryPath:function(){return l},getSegmentVaryPathForRequest:function(){return g}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(9396),i=e.r(511),o=e.r(67764);function l(e,t,r){return{id:null,value:e,parent:{id:"?",value:t,parent:{id:null,value:r,parent:null}}}}function s(e,t,r,n){return{id:null,value:e,parent:{id:"?",value:t,parent:{id:null,value:n?r:i.Fallback,parent:null}}}}function c(e,t,r){return{id:r,value:t,parent:e}}function f(e,t){return{id:null,value:e,parent:t}}function d(e){return e.parent}function p(e,t,r){return{id:null,value:e,parent:{id:"?",value:t,parent:r}}}function h(e){return e.parent.parent}function y(e,t,r){return{id:null,value:e+o.HEAD_REQUEST_KEY,parent:{id:"?",value:t,parent:r}}}function g(e,t){let r=t.varyPath;if(t.isPage&&e!==u.FetchStrategy.Full&&e!==u.FetchStrategy.PPRRuntime){let e=r.parent.parent;return{id:null,value:r.value,parent:{id:"?",value:i.Fallback,parent:e}}}return r}function _(e,t){let r=e.parent;return{id:null,value:e.value,parent:{id:"?",value:t,parent:r.parent}}}function m(e){let t=e.parent.value;return"string"==typeof t?t:null}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},72463,(e,t,r)=>{"use strict";function n(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parsePath",{enumerable:!0,get:function(){return n}})},41858,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(72463);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:u}=(0,n.parsePath)(e);return`${t}${r}${a}${u}`}},38281,(e,t,r)=>{"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},82823,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let n=e.r(38281),a=e.r(72463),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:u}=(0,a.parsePath)(e);return`${(0,n.removeTrailingSlash)(t)}${r}${u}`};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},5550,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addBasePath",{enumerable:!0,get:function(){return u}});let n=e.r(41858),a=e.r(82823);function u(e,t){return(0,a.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,"/mystichearts/demo"))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},57630,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createPrefetchURL:function(){return l},isExternalURL:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(82604),i=e.r(5550);function o(e){return e.origin!==window.location.origin}function l(e){let t;if((0,u.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,i.addBasePath)(e),window.location.href)}catch(t){throw Object.defineProperty(Error(`Cannot prefetch '${e}' because it cannot be converted to a URL.`),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return o(t)?null:t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},91949,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={IDLE_LINK_STATUS:function(){return f},PENDING_LINK_STATUS:function(){return c},getLinkForCurrentNavigation:function(){return h},mountFormInstance:function(){return R},mountLinkInstance:function(){return v},onLinkVisibilityChanged:function(){return S},onNavigationIntent:function(){return P},pingVisibleLinks:function(){return T},setLinkForCurrentNavigation:function(){return d},unmountLinkForCurrentNavigation:function(){return p},unmountPrefetchableInstance:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(9396),i=e.r(77048),o=e.r(77709),l=e.r(71645),s=null,c={pending:!0},f={pending:!1};function d(e){(0,l.startTransition)(()=>{s?.setOptimisticLinkStatus(f),e?.setOptimisticLinkStatus(c),s=e})}function p(e){s===e&&(s=null)}function h(){return s}let y="function"==typeof WeakMap?new WeakMap:new Map,g=new Set,_="function"==typeof IntersectionObserver?new IntersectionObserver(function(e){for(let t of e){let e=t.intersectionRatio>0;S(t.target,e)}},{rootMargin:"200px"}):null;function m(e,t){void 0!==y.get(e)&&b(e),y.set(e,t),null!==_&&_.observe(e)}function E(t){if(!("u">typeof window))return null;{let{createPrefetchURL:r}=e.r(57630);try{return r(t)}catch{return("function"==typeof reportError?reportError:console.error)(`Cannot prefetch '${t}' because it cannot be converted to a URL.`),null}}}function v(e,t,r,n,a,u){if(a){let a=E(t);if(null!==a){let t={router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:a.href,setOptimisticLinkStatus:u};return m(e,t),t}}return{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:null,setOptimisticLinkStatus:u}}function R(e,t,r,n){let a=E(t);null===a||m(e,{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:a.href,setOptimisticLinkStatus:null})}function b(e){let t=y.get(e);if(void 0!==t){y.delete(e),g.delete(t);let r=t.prefetchTask;null!==r&&(0,o.cancelPrefetchTask)(r)}null!==_&&_.unobserve(e)}function S(e,t){let r=y.get(e);void 0!==r&&(r.isVisible=t,t?g.add(r):g.delete(r),O(r,u.PrefetchPriority.Default))}function P(e,t){let r=y.get(e);void 0!==r&&void 0!==r&&O(r,u.PrefetchPriority.Intent)}function O(t,r){if("u">typeof window){let n=t.prefetchTask;if(!t.isVisible){null!==n&&(0,o.cancelPrefetchTask)(n);return}let{getCurrentAppRouterState:a}=e.r(99781),u=a();if(null!==u){let e=u.tree;if(null===n){let n=u.nextUrl,a=(0,i.createCacheKey)(t.prefetchHref,n);t.prefetchTask=(0,o.schedulePrefetchTask)(a,e,t.fetchStrategy,r,null)}else(0,o.reschedulePrefetchTask)(n,e,t.fetchStrategy,r)}}}function T(e,t){for(let r of g){let n=r.prefetchTask;if(null!==n&&!(0,o.isPrefetchTaskDirty)(n,e,t))continue;null!==n&&(0,o.cancelPrefetchTask)(n);let a=(0,i.createCacheKey)(r.prefetchHref,e);r.prefetchTask=(0,o.schedulePrefetchTask)(a,t,r.fetchStrategy,u.PrefetchPriority.Default,null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},79027,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UnknownDynamicStaleTime:function(){return o},computeDynamicStaleAt:function(){return l},invalidateBfCache:function(){return f},readFromBFCache:function(){return y},readFromBFCacheDuringRegularNavigation:function(){return g},updateBFCacheEntryStaleAt:function(){return h},writeHeadToBFCache:function(){return p},writeToBFCache:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(54069),i=e.r(511),o=-1;function l(e,t){return t!==o?e+1e3*t:e+u.DYNAMIC_STALETIME_MS}let s=(0,i.createCacheMap)(),c=0;function f(){"u">typeof window&&c++}function d(e,t,r,n,a,u,o){if("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={discoverKnownRoute:function(){return c},matchKnownRoute:function(){return d},resetKnownRoutes:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(20896),i=e.r(33906),o=e.r(56655);function l(){return{staticChildren:null,dynamicChild:null,dynamicChildParamName:null,dynamicChildParamType:null,pattern:null}}let s=l();function c(e,t,r,n,a,i,o,l,c,d){let p=t.split("/").filter(e=>""!==e),h=p.length>0?p[0]:null,y=p.length>0?p.slice(1):[];if(null!==n){let p=(0,u.fulfillRouteCacheEntry)(e,n,a,i,o,l,c);return d&&(p.hasDynamicRewrite=!0),f(s,a,h,y,p,e,t,r,a,i,o,l,c,d),p}return f(s,a,h,y,null,e,t,r,a,i,o,l,c,d)}function f(e,t,r,n,a,o,s,c,d,p,h,y,g,_){let m,E,v=t.segment,R=null,b=null,S=null;"string"==typeof v?m=(0,i.doesStaticSegmentAppearInURL)(v):(R=v[0],b=v[2],S=v[3],m=!0);let P=e,O=r,T=n;if(m){if(null===R&&r!==v)return null!==a?a:(0,u.writeRouteIntoCache)(o,s,c,d,p,h,y,g);if(null!==R&&null!==b){if(P=function(e,t,r){if(null!==e.dynamicChild)return e.dynamicChild;let n=l();return e.dynamicChild=n,e.dynamicChildParamName=t,e.dynamicChildParamType=r,n}(e,R,b),null!==S)for(let t of(null===e.staticChildren&&(e.staticChildren=new Map),S))e.staticChildren.has(t)||e.staticChildren.set(t,l())}else{null===e.staticChildren&&(e.staticChildren=new Map);let t=e.staticChildren.get(r);void 0===t&&(t=l(),e.staticChildren.set(r,t)),P=t}O=n.length>0?n[0]:null,T=n.length>0?n.slice(1):[]}let w=t.slots,A=null;if(null!==w){for(let e in w){let t=w[e];null===t.refreshState&&(A=f(P,t,O,T,a,o,s,c,d,p,h,y,g,_))}return null!==A?A:null!==a?a:(0,u.writeRouteIntoCache)(o,s,c,d,p,h,y,g)}return null!==P.pattern?(_&&(P.pattern.hasDynamicRewrite=!0),P.pattern):(E=null!==a?a:(0,u.writeRouteIntoCache)(o,s,c,d,p,h,y,g),_&&(E.hasDynamicRewrite=!0),P.pattern=E,E)}function d(e,t){let r=e.split("/").filter(e=>""!==e),n=new Map,a=function e(t,r,n,a){let u=n{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={EntryStatus:function(){return A},attemptToFulfillDynamicSegmentFromBFCache:function(){return ee},attemptToUpgradeSegmentFromBFCache:function(){return et},canNewFetchStrategyProvideMoreContent:function(){return eS},convertReusedFlightRouterStateToRouteTree:function(){return ef},convertRootFlightRouterStateToRouteTree:function(){return ec},convertRouteTreeToFlightRouterState:function(){return function e(t){let r={};if(null!==t.slots)for(let n in t.slots)r[n]=e(t.slots[n]);return[t.segment,r,null,null]}},createDetachedSegmentCacheEntry:function(){return J},createMetadataRouteTree:function(){return en},deprecated_requestOptimisticRouteCacheEntry:function(){return K},fetchInlinedSegmentsOnCacheMiss:function(){return ey},fetchRouteOnCacheMiss:function(){return ep},fetchSegmentOnCacheMiss:function(){return eh},fetchSegmentPrefetchesUsingDynamicRequest:function(){return eg},fulfillRouteCacheEntry:function(){return ea},getCurrentRouteCacheVersion:function(){return x},getCurrentSegmentCacheVersion:function(){return F},getStaleAt:function(){return eO},getStaleTimeMs:function(){return w},invalidateEntirePrefetchCache:function(){return U},invalidateRouteCacheEntries:function(){return L},invalidateSegmentCacheEntries:function(){return k},markRouteEntryAsDynamicRewrite:function(){return ei},overwriteRevalidatingSegmentCacheEntry:function(){return z},pingInvalidationListeners:function(){return H},processRuntimePrefetchStream:function(){return ew},readOrCreateRevalidatingSegmentEntry:function(){return W},readOrCreateRouteCacheEntry:function(){return G},readOrCreateSegmentCacheEntry:function(){return q},readRouteCacheEntry:function(){return B},readSegmentCacheEntry:function(){return $},stripIsPartialByte:function(){return eA},upgradeToPendingSegment:function(){return Z},upsertSegmentEntry:function(){return Q},waitForSegmentCacheEntry:function(){return X},writeDynamicRenderResponseIntoCache:function(){return em},writeRouteIntoCache:function(){return eu},writeStaticStageResponseIntoCache:function(){return eT}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e.r(6372),o=e.r(21768),l=e.r(87288),s=e.r(77709),c=e.r(56655),f=e.r(51191),d=e.r(77048),p=e.r(33906),h=e.r(511),y=e.r(67764),g=e.r(50590),_=e.r(54069),m=e.r(91949),E=e.r(13258),v=e.r(9396),R=e.r(39470),b=e.r(79027),S=e.r(96167),P=e.r(60355),O=e.r(32992),T=e.r(63416);function w(e){return 1e3*Math.max(e,30)}var A=((n={})[n.Empty=0]="Empty",n[n.Pending=1]="Pending",n[n.Fulfilled=2]="Fulfilled",n[n.Rejected=3]="Rejected",n);let j=["",{},null,"metadata-only"],N=(0,h.createCacheMap)(),D=(0,h.createCacheMap)(),C=null,M=0,I=0;function x(){return M}function F(){return I}function U(e,t){M++,I++,(0,m.pingVisibleLinks)(e,t),H(e,t)}function L(e,t){M++,(0,m.pingVisibleLinks)(e,t),H(e,t)}function k(e,t){I++,(0,m.pingVisibleLinks)(e,t),H(e,t)}function H(e,t){if(null!==C){let r=C;for(let n of(C=null,r))(0,s.isPrefetchTaskDirty)(n,e,t)&&function(e){let t=e.onInvalidate;if(null!==t){e.onInvalidate=null;try{t()}catch(e){"function"==typeof reportError?reportError(e):console.error(e)}}}(n)}}function B(e,t){let r=(0,c.getRouteVaryPath)(t.pathname,t.search,t.nextUrl),n=(0,h.getFromCacheMap)(e,M,N,r,!1);return null!==n?n:null}function $(e,t){return(0,h.getFromCacheMap)(e,I,D,t,!1)}function X(e){let t=e.promise;return null===t&&(t=e.promise=(0,R.createPromiseWithResolvers)()),t.promise}function V(){return{canonicalUrl:null,status:0,blockedTasks:null,tree:null,metadata:null,couldBeIntercepted:!0,supportsPerSegmentPrefetching:!1,renderedSearch:null,ref:null,size:0,staleAt:1/0,version:M}}function G(e,t,r){null!==t.onInvalidate&&(null===C?C=new Set([t]):C.add(t));let n=B(e,r);if(null!==n)return n;let a=V(),u=(0,c.getRouteVaryPath)(r.pathname,r.search,r.nextUrl);return(0,h.setInCacheMap)(N,u,a,!1),a}function K(e,t,r){let n=t.search;if(""===n)return null;let a=new URL(t);a.search="";let u=B(e,(0,d.createCacheKey)(a.href,r));if(null===u||2!==u.status)return null;let i=new URL(u.canonicalUrl,t.origin),o=""!==i.search?i.search:n,l=""!==u.renderedSearch?u.renderedSearch:n,s=new URL(u.canonicalUrl,location.origin);return s.search=o,{canonicalUrl:(0,f.createHrefFromUrl)(s),status:2,blockedTasks:null,tree:Y(u.tree,l),metadata:Y(u.metadata,l),couldBeIntercepted:u.couldBeIntercepted,supportsPerSegmentPrefetching:u.supportsPerSegmentPrefetching,hasDynamicRewrite:u.hasDynamicRewrite,renderedSearch:l,ref:null,size:0,staleAt:u.staleAt,version:u.version}}function Y(e,t){let r=null,n=e.slots;if(null!==n)for(let e in r={},n){let a=n[e];r[e]=Y(a,t)}return e.isPage?{requestKey:e.requestKey,segment:e.segment,refreshState:e.refreshState,varyPath:(0,c.clonePageVaryPathWithNewSearchParams)(e.varyPath,t),isPage:!0,slots:r,prefetchHints:e.prefetchHints}:{requestKey:e.requestKey,segment:e.segment,refreshState:e.refreshState,varyPath:e.varyPath,isPage:!1,slots:r,prefetchHints:e.prefetchHints}}function q(e,t,r){let n=$(e,r.varyPath);if(null!==n)return n;let a=(0,c.getSegmentVaryPathForRequest)(t,r),u=J(e);return(0,h.setInCacheMap)(D,a,u,!1),u}function W(e,t,r){var n;let a=(n=r.varyPath,(0,h.getFromCacheMap)(e,I,D,n,!0));if(null!==a)return a;let u=(0,c.getSegmentVaryPathForRequest)(t,r),i=J(e);return(0,h.setInCacheMap)(D,u,i,!0),i}function z(e,t,r){let n=(0,c.getSegmentVaryPathForRequest)(t,r),a=J(e);return(0,h.setInCacheMap)(D,n,a,!0),a}function Q(e,t,r){if((0,h.isValueExpired)(e,I,r))return null;let n=$(e,t);if(null!==n){var a;if(r.fetchStrategy!==n.fetchStrategy&&(a=n.fetchStrategy,!(ar?null:eo(Z(t,v.FetchStrategy.Full),a.rsc,r,!1)}return null}function et(e,t){let r=t.varyPath,n=(0,b.readFromBFCache)(r);if(null!==n){let r=n.navigatedAt+_.STATIC_STALETIME_MS;if(e>r)return null;let a=eo(Z(J(e),v.FetchStrategy.Full),n.rsc,r,!1),u=Q(e,(0,c.getSegmentVaryPathForRequest)(v.FetchStrategy.Full,t),a);if(null!==u&&2===u.status)return u}return null}function er(e){let t=e.blockedTasks;if(null!==t){for(let e of t)(0,s.pingPrefetchTask)(e);e.blockedTasks=null}}function en(e){return{requestKey:y.HEAD_REQUEST_KEY,segment:y.HEAD_REQUEST_KEY,refreshState:null,varyPath:e,isPage:!0,slots:null,prefetchHints:0}}function ea(e,t,r,n,a,u,i){let o=(0,c.getRenderedSearchFromVaryPath)(n)??"";return t.status=2,t.tree=r,t.metadata=en(n),t.staleAt=e+_.STATIC_STALETIME_MS,t.couldBeIntercepted=a,t.canonicalUrl=u,t.renderedSearch=o,t.supportsPerSegmentPrefetching=i,t.hasDynamicRewrite=!1,er(t),t}function eu(e,t,r,n,a,u,i,o){let l=ea(e,V(),n,a,u,i,o),s=l.renderedSearch,f=(0,c.getFulfilledRouteVaryPath)(t,s,r,u);return(0,h.setInCacheMap)(N,f,l,!1),l}function ei(e){e.hasDynamicRewrite=!0}function eo(e,t,r,n){return e.status=2,e.rsc=t,e.staleAt=r,e.isPartial=n,null!==e.promise&&(e.promise.resolve(e),e.promise=null),e}function el(e,t){e.status=3,e.staleAt=t,er(e)}function es(e,t){e.status=3,e.staleAt=t,null!==e.promise&&(e.promise.resolve(null),e.promise=null)}function ec(e,t,r){return ed(e,y.ROOT_SEGMENT_REQUEST_KEY,null,t,r)}function ef(e,t,r,n,a){let u=e.isPage?(0,c.getPartialPageVaryPath)(e.varyPath):(0,c.getPartialLayoutVaryPath)(e.varyPath),i=r[0],o=e.requestKey,l=(0,y.createSegmentRequestKeyPart)(i);return ed(r,(0,y.appendSegmentRequestKeyPart)(o,t,l),u,n,a)}function ed(e,t,r,n,a){let u,i,o,l,s=e[0],f=e[2]??null,d=null!==f?{canonicalUrl:f[0],renderedSearch:f[1]}:null,p=null!==d?d.renderedSearch:n;if(Array.isArray(s)){o=!1;let e=s[1],n=s[0];i=(0,c.appendLayoutVaryPath)(r,e,n),l=(0,c.finalizeLayoutVaryPath)(t,i),u=s}else i=r,t.endsWith(E.PAGE_SEGMENT_KEY)?(o=!0,u=E.PAGE_SEGMENT_KEY,l=(0,c.finalizePageVaryPath)(t,p,i),null===a.metadataVaryPath&&(a.metadataVaryPath=(0,c.finalizeMetadataVaryPath)(t,p,i))):(o=!1,u=s,l=(0,c.finalizeLayoutVaryPath)(t,i));let h=null,g=e[1];for(let e in g){let r=g[e],n=r[0],u=(0,y.createSegmentRequestKeyPart)(n),o=ed(r,(0,y.appendSegmentRequestKeyPart)(t,e,u),i,p,a);null===h?h={[e]:o}:h[e]=o}return{requestKey:t,segment:u,refreshState:d,varyPath:l,isPage:o,slots:h,prefetchHints:e[4]??0}}async function ep(e,t){let r=t.pathname,n=t.search,a=t.nextUrl,u="/_tree",i={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_PREFETCH_HEADER]:"1",[o.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:u};null!==a&&(i[o.NEXT_URL]=a),eP(i);try{let t,s,d=new URL(r+n,location.origin);{let r=await fetch(d,{method:"HEAD"});if(r.status<200||r.status>=400)return el(e,Date.now()+1e4),null;s=r.redirected?new URL(r.url):d,t=await ev(eb(s,u),i)}if(!t||!t.ok||204===t.status||!t.body)return el(e,Date.now()+1e4),null;let g=(0,f.createHrefFromUrl)(s),_=t.headers.get("vary"),m=null!==_&&_.includes(o.NEXT_URL),v=(0,R.createPromiseWithResolvers)(),b="2"===t.headers.get(o.NEXT_DID_POSTPONE_HEADER)||!0;{let n,u,{stream:o,size:s}=await eR(t.body);v.resolve(),(0,h.setSizeInCacheMap)(e,s);let f=await (0,l.createFromNextReadableStream)(o,i,{allowPartialStream:!0});if((t.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??f.buildId)!==(0,O.getNavigationBuildId)())return el(e,Date.now()+1e4),null;let d=(0,p.getRenderedPathname)(t),_=(0,p.getRenderedSearch)(t),R={metadataVaryPath:null},P=(n=d.split("/").filter(e=>""!==e),u=y.ROOT_SEGMENT_REQUEST_KEY,function e(t,r,n,a,u,i,o,l){let s,f,d=null,h=t.slots;if(null!==h)for(let t in s=!1,f=(0,c.finalizeLayoutVaryPath)(a,n),d={},h){let r,s,f,g=h[t],_=g.name,m=g.param;if(null!==m){let e=(0,p.parseDynamicParamFromURLPart)(m.type,u,i),t=null!==m.key?m.key:(0,p.getCacheKeyForDynamicParam)(e,"");f=(0,c.appendLayoutVaryPath)(n,t,_),s=[_,t,m.type,m.siblings],r=!0}else f=n,s=_,r=(0,p.doesStaticSegmentAppearInURL)(_);let E=r?i+1:i,v=(0,y.createSegmentRequestKeyPart)(s),R=(0,y.appendSegmentRequestKeyPart)(a,t,v);d[t]=e(g,s,f,R,u,E,o,l)}else a.endsWith(E.PAGE_SEGMENT_KEY)?(s=!0,f=(0,c.finalizePageVaryPath)(a,o,n),null===l.metadataVaryPath&&(l.metadataVaryPath=(0,c.finalizeMetadataVaryPath)(a,o,n))):(s=!1,f=(0,c.finalizeLayoutVaryPath)(a,n));return{requestKey:a,segment:r,refreshState:null,varyPath:f,isPage:s,slots:d,prefetchHints:t.prefetchHints}}(f.tree,u,null,y.ROOT_SEGMENT_REQUEST_KEY,n,0,_,R)),w=R.metadataVaryPath;if(null===w)return el(e,Date.now()+1e4),null;(0,S.discoverKnownRoute)(Date.now(),r,a,e,P,w,m,g,b,!1)}if(!m){let t=(0,c.getFulfilledRouteVaryPath)(r,n,a,m);(0,h.setInCacheMap)(N,t,e,!1)}return{value:null,closed:v.promise}}catch(t){return el(e,Date.now()+1e4),null}}async function eh(e,t,r,n){let a=new URL(e.canonicalUrl,location.origin),u=r.nextUrl,i=n.requestKey,s=i===y.ROOT_SEGMENT_REQUEST_KEY?"/_index":i,f={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_PREFETCH_HEADER]:"1",[o.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:s};null!==u&&(f[o.NEXT_URL]=u),eP(f);let d=eb(a,s);try{let e=await ev(d,f);if(!e||!e.ok||204===e.status||"2"!==e.headers.get(o.NEXT_DID_POSTPONE_HEADER)&&0||!e.body)return es(t,Date.now()+1e4),null;let r=(0,R.createPromiseWithResolvers)(),{stream:a,size:u}=await eR(e.body);r.resolve(),(0,h.setSizeInCacheMap)(t,u);let i=await (0,l.createFromNextReadableStream)(a,f,{allowPartialStream:!0});if((e.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??i.buildId)!==(0,O.getNavigationBuildId)())return es(t,Date.now()+1e4),null;let s=Date.now(),p=s+w(i.staleTime),y=eo(t,i.rsc,p,i.isPartial);i.varyParams;let g=(0,c.getSegmentVaryPathForRequest)(t.fetchStrategy,n);return Q(s,g,y),{value:y,closed:r.promise}}catch(e){return es(t,Date.now()+1e4),null}}async function ey(e,t,r,n){let a=new URL(e.canonicalUrl,location.origin),u=t.nextUrl,i={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_PREFETCH_HEADER]:"1",[o.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:"/"+E.PAGE_SEGMENT_KEY};null!==u&&(i[o.NEXT_URL]=u),eP(i);try{let t=await ev(a,i);if(!t||!t.ok||204===t.status||"2"!==t.headers.get(o.NEXT_DID_POSTPONE_HEADER)&&0||!t.body)return e_(n,Date.now()+1e4),null;let u=(0,R.createPromiseWithResolvers)(),{stream:s}=await eR(t.body);u.resolve();let c=await (0,l.createFromNextReadableStream)(s,i,{allowPartialStream:!0});if((t.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??c.tree.segment.buildId)!==(0,O.getNavigationBuildId)())return e_(n,Date.now()+1e4),null;let f=Date.now();!function e(t,r,n,a,u){let i=a.segment,o=t+w(i.staleTime),l=u.get(n.requestKey);if(void 0!==l)eo(l,i.rsc,o,i.isPartial);else{let e=q(t,v.FetchStrategy.PPR,n);0===e.status&&eo(Z(e,v.FetchStrategy.PPR),i.rsc,o,i.isPartial)}if(null!==n.slots&&null!==a.slots)for(let i in n.slots){let o=n.slots[i],l=a.slots[i];void 0!==l&&e(t,r,o,l,u)}}(f,e,r,c.tree,n);let d=f+w(c.head.staleTime),p=e.metadata.requestKey,h=n.get(p);if(void 0!==h)eo(h,c.head.rsc,d,c.head.isPartial);else{let t=q(f,v.FetchStrategy.PPR,e.metadata);0===t.status&&eo(Z(t,v.FetchStrategy.PPR),c.head.rsc,d,c.head.isPartial)}return e_(n,Date.now()+1e4),{value:null,closed:u.promise}}catch(e){return e_(n,Date.now()+1e4),null}}async function eg(e,t,r,n,a){let u=e.key,s=new URL(t.canonicalUrl,location.origin),c=u.nextUrl;1===a.size&&a.has(t.metadata.requestKey)&&(n=j);let f={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_STATE_TREE_HEADER]:(0,g.prepareFlightRouterStateForRequest)(n)};switch(null!==c&&(f[o.NEXT_URL]=c),r){case v.FetchStrategy.Full:break;case v.FetchStrategy.PPRRuntime:f[o.NEXT_ROUTER_PREFETCH_HEADER]="2";break;case v.FetchStrategy.LoadingBoundary:f[o.NEXT_ROUTER_PREFETCH_HEADER]="1"}try{let e,u=await ev(s,f);if(!u||!u.ok||!u.body)return e_(a,Date.now()+1e4),null;let o=(0,p.getRenderedSearch)(u);if(o!==t.renderedSearch)return e_(a,Date.now()+1e4),null;let c=(0,R.createPromiseWithResolvers)(),m=null,E=null;if(r===v.FetchStrategy.Full){var d,y,_;let t,r;d=u.body,y=c.resolve,_=function(e){if(null===m)return;let t=e/m.length;for(let e of m)(0,h.setSizeInCacheMap)(e,t)},t=0,r=d.getReader(),e=new ReadableStream({async pull(e){for(;;){let{done:n,value:a}=await r.read();if(!n){e.enqueue(a),_(t+=a.byteLength);continue}e.close(),y();return}}})}else{let{stream:t,size:r}=await eR(u.body);c.resolve(),e=t,E=r}let[S,O]=await Promise.all([(0,l.createFromNextReadableStream)(e,f,{allowPartialStream:!0}),u.cacheData]),w=S.h,A=null!==w?(0,i.readVaryParams)(w):null,j=Date.now(),N=await eO(j,S.s,u),D=r===v.FetchStrategy.PPRRuntime&&(O?.isResponsePartial??!1),C=u.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??S.b,M=(0,g.normalizeFlightData)(S.f);if("string"==typeof M)return e_(a,Date.now()+1e4),null;let I=(0,P.convertServerPatchToFullTree)(j,n,M,o,b.UnknownDynamicStaleTime);if(m=em(j,r,M,C,D,A,N,I,a),null!==E&&null!==m&&m.length>0){let e=E/m.length;for(let t of m)(0,h.setSizeInCacheMap)(t,e)}return{value:null,closed:c.promise}}catch(e){return e_(a,Date.now()+1e4),null}}function e_(e,t){let r=[];for(let n of e.values())1===n.status?es(n,t):2===n.status&&r.push(n);return r}function em(e,t,r,n,a,u,o,l,s){if(n&&n!==(0,O.getNavigationBuildId)())return null!==s&&e_(s,e+1e4),null;let c=l.routeTree,f=null!==l.metadataVaryPath?en(l.metadataVaryPath):null;for(let n of r){let r=n.seedData;if(null!==r){let u=n.segmentPath,l=c;for(let t=0;t1){t=new Uint8Array(a);let e=0;for(let r of n)t.set(r,e),e+=r.byteLength}else t=new Uint8Array(0);return{stream:new ReadableStream({start(e){e.enqueue(t),e.close()}}),size:a}}function eb(e,t){{let r=new URL(e),n=r.pathname.endsWith("/")?r.pathname.slice(0,-1):r.pathname,a=(0,y.convertSegmentPathToStaticExportFilename)(t);return r.pathname=`${n}/${a}`,r}}function eS(e,t){return ee.close()}),isPartial:!1};let a=n[0],u=35===a||126===a,i=u?n.byteLength>1?n.subarray(1):null:n;return{isPartial:!!u&&126===a,stream:new ReadableStream({start(e){i&&e.enqueue(i)},async pull(e){let r=await t.read();r.done?e.close():e.enqueue(r.value)}})}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},87288,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={createFetch:function(){return O},createFromNextReadableStream:function(){return T},decodeStaticStage:function(){return P},fetchServerResponse:function(){return R},processFetch:function(){return b},resolveStaticStageData:function(){return S}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e.r(35326);e.r(12718);let o=e.r(21768),l=e.r(32120),s=e.r(92245),c=e.r(50590),f=e.r(88093),d=e.r(33906),p=e.r(43369),h=e.r(32992),y=e.r(63416);e.r(20896);let g=e.r(79027),_=i.createFromReadableStream,m=i.createFromFetch;function E(e){return(0,d.urlToUrlWithoutFlightMarker)(new URL(e,location.origin)).toString()}let v=!1;async function R(e,t){let{flightRouterState:r,nextUrl:n}=t,a={[o.RSC_HEADER]:"1",[o.NEXT_ROUTER_STATE_TREE_HEADER]:(0,c.prepareFlightRouterStateForRequest)(r,t.isHmrRefresh)};n&&(a[o.NEXT_URL]=n);let u=e;try{(e=new URL(e)).pathname.endsWith("/")?e.pathname+="index.txt":e.pathname+=".txt";let t=await O(e,a,"auto",!0),r=(0,d.urlToUrlWithoutFlightMarker)(new URL(t.url)),n=t.redirected?r:u,i=t.headers.get("content-type")||"",l=!!t.headers.get("vary")?.includes(o.NEXT_URL),s=!!t.headers.get(o.NEXT_DID_POSTPONE_HEADER),f=i.startsWith(o.RSC_CONTENT_TYPE_HEADER);if(f||(f=i.startsWith("text/plain")),!f||!t.ok||!t.body)return e.hash&&(r.hash=e.hash),E(r.toString());let p=t.flightResponsePromise;null===p&&(p=T(t.body,a,{allowPartialStream:s}));let[_,m]=await Promise.all([p,t.cacheData]);if((t.headers.get(y.NEXT_NAV_DEPLOYMENT_ID_HEADER)??_.b)!==(0,h.getNavigationBuildId)())return E(t.url);let v=(0,c.normalizeFlightData)(_.f);if("string"==typeof v)return E(v);let R=null!==m?await S(m,_,a):null;return{flightData:v,canonicalUrl:n,renderedSearch:_.q,couldBeIntercepted:l,supportsPerSegmentPrefetching:_.S,postponed:s,dynamicStaleTime:_.d??g.UnknownDynamicStaleTime,staticStageData:R,runtimePrefetchStream:_.p??null,responseHeaders:t.headers,debugInfo:p._debugInfo??null}}catch(e){return v||console.error(`Failed to fetch RSC payload for ${u}. Falling back to browser navigation.`,e),u.toString()}}async function b(e){return{response:e,cacheData:null}}async function S(e,t,r){let{isResponsePartial:n,responseBodyClone:a}=e;if(a){if(!n)return a.cancel(),{response:t,isResponsePartial:!1};if(void 0!==t.l)return{response:await P(a,t.l,r),isResponsePartial:!0};a.cancel()}return null}async function P(e,t,r){var n,a;let u,i;return T((n=e,a=await t,u=n.getReader(),i=a,new ReadableStream({async pull(e){if(i<=0){u.cancel(),e.close();return}let{done:t,value:r}=await u.read();t?e.close():r.byteLength<=i?(e.enqueue(r),i-=r.byteLength):(e.enqueue(r.subarray(0,i)),i=0,u.cancel(),e.close())},cancel(){u.cancel()}})),r,{allowPartialStream:!0})}async function O(e,t,r,a,u){var i,c;let d=(0,p.getDeploymentId)();d&&(t["x-deployment-id"]=d);let h=new URL(e);await (0,f.setCacheBustingSearchParam)(h,t);let y=fetch(h,{credentials:"same-origin",headers:t,priority:r||void 0,signal:u}).then(b),g=y.then(({response:e})=>e),_=a?(i=g,c=t,m(i,{callServer:l.callServer,findSourceMapURL:s.findSourceMapURL,debugChannel:n&&n(c)})):null,E=await g,v=E.redirected,R=new URL(E.url,h);return R.searchParams.delete(o.NEXT_RSC_UNION_QUERY),{url:R.href,redirected:v,ok:E.ok,headers:E.headers,body:E.body,status:E.status,flightResponsePromise:_,cacheData:y.then(({cacheData:e})=>e)}}function T(e,t,r){return _(e,{callServer:l.callServer,findSourceMapURL:s.findSourceMapURL,debugChannel:n&&n(t),unstable_allowPartialStream:r?.allowPartialStream})}"u">typeof window&&(window.addEventListener("pagehide",()=>{v=!0}),window.addEventListener("pageshow",()=>{v=!1})),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},48919,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let a=t[0],u=r.segment;if(Array.isArray(a)&&Array.isArray(u)){if(a[0]!==u[0]||a[2]!==u[2])return!0}else if(a!==u)return!0;let i=((t[4]??0)&n.PrefetchHint.IsRootLayout)!=0,o=(r.prefetchHints&n.PrefetchHint.IsRootLayout)!=0;if(i)return!o;if(o)return!0;let l=r.slots,s=t[1];if(null!==l)for(let t in l){let r=l[t],n=s[t];if(void 0===n||e(n,r))return!0}return!1}}});let n=e.r(22744);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},94272,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getLastCommittedTree:function(){return i},setLastCommittedTree:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=null;function i(){return u}function o(e){u=e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95871,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={FreshnessPolicy:function(){return b},createInitialCacheNodeForHydration:function(){return P},isDeferredRsc:function(){return L},spawnDynamicRequests:function(){return M},startPPRNavigation:function(){return O}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e.r(22744),o=e.r(13258),l=e.r(56019),s=e.r(51191),c=e.r(87288),f=e.r(41538),d=e.r(88540),p=e.r(48919),h=e.r(94272),y=e.r(60355),g=e.r(20896),_=e.r(9396),m=e.r(96167),E=e.r(63416),v=e.r(56655),R=e.r(79027);var b=((n={})[n.Default=0]="Default",n[n.Hydration=1]="Hydration",n[n.HistoryTraversal=2]="HistoryTraversal",n[n.RefreshAll=3]="RefreshAll",n[n.HMRRefresh=4]="HMRRefresh",n[n.Gesture=5]="Gesture",n);let S=()=>{};function P(e,t,r,n,a){return T(e,t,null,1,r,n,a,!1,{separateRefreshUrls:null,scrollRef:null})}function O(e,t,r,n,a,u,c,f,d,h,y,_,m){let E={canonicalUrl:(0,s.createHrefFromUrl)(t),renderedSearch:r};return function e(t,r,n,a,u,s,c,f,d,h,y,_,m,E,v,R){var b,S,P;let O,A,C,M,I=a[0],x=w(u);if(!(0,l.matchSegment)(x,I))return!f&&(0,p.isNavigatingToNewRootLayout)(a,u)||x===o.NOT_FOUND_SEGMENT_KEY?null:T(t,u,s,c,d,h,y,m,R);let F=u.slots,U=a[1],L=null!==d?d[1]:null,k=f||(u.prefetchHints&i.PrefetchHint.IsRootLayout)!=0,H=!1;switch(c){case 0:case 2:case 1:case 5:H=!1;break;case 3:case 4:H=!0}let B=null===F;if(void 0===n||H||B&&_){let e=N(t,u,null!==d?d[0]:null,s,h,c,y);C=e.cacheNode,M=e.needsDynamicRequest,void 0!==n&&(C.scrollRef=n.scrollRef)}else{b=!1,C=D((S=n).rsc,b?null:S.prefetchRsc,S.head,b?null:S.prefetchHead,S.scrollRef),M=!1}let $=u.refreshState,X=null!=$?$:v;M&&null!==X&&(P=R,O=X.canonicalUrl,null===(A=P.separateRefreshUrls)?P.separateRefreshUrls=new Set([O]):A.add(O));let V={},G=null,K=!1,Y={},q=null;if(null!==F){let a=void 0!==n?n.slots:null;for(let n in C.slots=q={},G=new Map,F){let i=F[n],l=U[n];if(void 0===l)return null;let f=null!==L?L[n]:null,d=l[0],p=w(i),v=h;2!==c&&p===o.DEFAULT_SEGMENT_KEY&&d!==o.DEFAULT_SEGMENT_KEY&&(p=w(i=function(e,t,r,n){let a,u,i=n[2];null!=i?(a=i[0],u=i[1]):(a=r.canonicalUrl,u=r.renderedSearch);let o=(0,g.convertReusedFlightRouterStateToRouteTree)(e,t,n,u,{metadataVaryPath:null});return o.refreshState={canonicalUrl:a,renderedSearch:u},o}(u,n,E,l)),f=null,v=null);let b=e(t,r,null!==a?a[n]:void 0,l,i,s,c,k,f??null,v,y,_,m||M,E,X,R);if(null===b)return null;G.set(n,b),q[n]=b.node;let S=b.route;V[n]=S;let P=b.dynamicRequestTree;null!==P?(K=!0,Y[n]=P):Y[n]=S}}let W=[w(u),V,null!==X?[X.canonicalUrl,X.renderedSearch]:null,null,u.prefetchHints];return{status:+!M,route:W,node:C,dynamicRequestTree:j(W,Y,M,K,m),refreshState:X,children:G}}(e,t,null!==n?n:void 0,a,u,c,f,!1,d,h,y,_,!1,E,null,m)}function T(e,t,r,n,a,u,i,o,l){let s=w(t),c=t.slots,f=null!==a?a[1]:null,d=N(e,t,null!==a?a[0]:null,r,u,n,i),p=d.cacheNode,h=d.needsDynamicRequest;null===c&&function(e,t,r){switch(e){case 0:case 5:case 3:case 4:null===r.scrollRef&&(r.scrollRef={current:!0}),t.scrollRef=r.scrollRef}}(n,p,l);let y={},g=null,_=!1,m={},E=null;if(null!==c)for(let t in p.slots=E={},g=new Map,c){let a=T(e,c[t],r,n,(null!==f?f[t]:null)??null,u,i,o||h,l);g.set(t,a),E[t]=a.node;let s=a.route;y[t]=s;let d=a.dynamicRequestTree;null!==d?(_=!0,m[t]=d):m[t]=s}let v=[s,y,null,null,t.prefetchHints];return{status:+!h,route:v,node:p,dynamicRequestTree:j(v,m,h,_,o),refreshState:null,children:g}}function w(e){if(e.isPage){let t=(0,v.getRenderedSearchFromVaryPath)(e.varyPath);if(null===t)return o.PAGE_SEGMENT_KEY;let r=JSON.stringify(Object.fromEntries(new URLSearchParams(t)));return"{}"!==r?o.PAGE_SEGMENT_KEY+"?"+r:o.PAGE_SEGMENT_KEY}return e.segment}function A(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}function j(e,t,r,n,a){let u=null;return r?(u=A(e,t),a||(u[3]="refetch")):u=n?A(e,t):null,u}function N(e,t,r,n,a,u,i){let o,l,s,c=t.isPage;switch(u){case 0:{let r=(0,R.readFromBFCacheDuringRegularNavigation)(e,t.varyPath);if(null!==r)return{cacheNode:D(r.rsc,r.prefetchRsc,r.head,r.prefetchHead),needsDynamicRequest:!1};break}case 1:{let u=c?a:null;return(0,R.writeToBFCache)(e,t.varyPath,r,null,u,null,i),c&&null!==n&&(0,R.writeHeadToBFCache)(e,n,u,null,i),{cacheNode:D(r,null,u,null),needsDynamicRequest:!1}}case 2:let f=(0,R.readFromBFCache)(t.varyPath);if(null!==f){let e=f.rsc,t=!L(e)||"pending"!==e.status;return{cacheNode:D(f.rsc,t?null:f.prefetchRsc,f.head,t?null:f.prefetchHead),needsDynamicRequest:!1}}}let d=null,p=!0,h=(0,g.readSegmentCacheEntry)(e,t.varyPath);if(null!==h)switch(h.status){case g.EntryStatus.Fulfilled:d=h.rsc,p=h.isPartial;break;case g.EntryStatus.Pending:d=(0,g.waitForSegmentCacheEntry)(h).then(e=>null!==e?e.rsc:null),p=h.isPartial;case g.EntryStatus.Empty:case g.EntryStatus.Rejected:}null!==r?(p?(o=d,l=r):(o=null,l=d),s=!1):(p?(o=d,l=k()):(o=null,l=d),s=p);let y=null,_=null,m=c;if(c){let t=null,r=!0;if(null!==n){let a=(0,g.readSegmentCacheEntry)(e,n);if(null!==a)switch(a.status){case g.EntryStatus.Fulfilled:t=a.rsc,r=a.isPartial;break;case g.EntryStatus.Pending:t=(0,g.waitForSegmentCacheEntry)(a).then(e=>null!==e?e.rsc:null),r=a.isPartial;case g.EntryStatus.Empty:case g.EntryStatus.Rejected:}}null!==a?(r?(y=t,_=a):(y=null,_=t),m=!1):(r?(y=t,_=k()):(y=null,_=t),m=r)}return 5!==u&&((0,R.writeToBFCache)(e,t.varyPath,l,o,_,y,i),c&&null!==n&&(0,R.writeHeadToBFCache)(e,n,_,y,i)),{cacheNode:D(l,o,_,y),needsDynamicRequest:s||m}}function D(e,t,r,n,a=null){return{rsc:e,prefetchRsc:t,head:r,prefetchHead:n,slots:null,scrollRef:a}}let C=!1;function M(e,t,r,n,a,u,i){let o=e.dynamicRequestTree;if(null===o){C=!1;return}let l=F(e,o,t,r,n,u),c=a.separateRefreshUrls,f=null;if(null!==c){f=[];let a=(0,s.createHrefFromUrl)(t);for(let t of c)t!==a&&null!==o&&f.push(F(e,o,new URL(t,location.origin),r,n,u))}I(e,r,l,f,u,i).then(S,S)}async function I(e,t,r,n,a,u){var i,o;let l=await (i=r,o=n,new Promise(e=>{let t=t=>{0===t.exitStatus?0==--n&&e(0):e(t.exitStatus)},r=()=>e(2),n=1;i.then(t,r),null!==o&&(n+=o.length,o.forEach(e=>e.then(t,r)))}));switch(0===l&&(l=function e(t,r,n){var a,u,i;let o,l,s;0===t.status?(t.status=2,a=t.node,u=r,i=n,L(l=a.rsc)&&(null===u?l.resolve(null,i):l.reject(u,i)),L(s=a.head)&&s.resolve(null,i),o=null===t.refreshState?1:2):o=0;let c=t.children;if(null!==c)for(let[,t]of c){let a=e(t,r,n);a>o&&(o=a)}return o}(e,null,null)),l){case 0:C=!1;return;case 1:{let n=await r;x(!1,n.url,t,n.seed,e.route,a,u);return}case 2:{let n=await r;x(!0,n.url,t,n.seed,e.route,a,u);return}default:return l}}function x(e,t,r,n,a,u,i){if(null!==u)(0,g.markRouteEntryAsDynamicRewrite)(u);else if(null!==n){let e=n.metadataVaryPath;if(null!==e){let a=Date.now();(0,m.discoverKnownRoute)(a,t.pathname,r,null,n.routeTree,e,!1,(0,s.createHrefFromUrl)(t),!1,!0)}}(0,g.invalidateRouteCacheEntries)(r,a),e=e||C,C=!0;let o=(0,h.getLastCommittedTree)(),l=null!==o&&a!==o?i:"replace",c={type:d.ACTION_SERVER_PATCH,previousTree:a,url:t,nextUrl:r,seed:n,mpa:e,navigateType:l};(0,f.dispatchAppRouterAction)(c)}async function F(e,t,r,n,a,u){try{let i=await (0,c.fetchServerResponse)(r,{flightRouterState:t,nextUrl:n,isHmrRefresh:4===a});if("string"==typeof i)return{exitStatus:2,url:new URL(i,location.origin),seed:null};let o=Date.now(),s=(0,y.convertServerPatchToFullTree)(o,e.route,i.flightData,i.renderedSearch,i.dynamicStaleTime);if(null!==u&&null!==i.staticStageData){let{response:e,isResponsePartial:r}=i.staticStageData;(0,g.getStaleAt)(o,e.s).then(n=>{let a=i.responseHeaders.get(E.NEXT_NAV_DEPLOYMENT_ID_HEADER)??e.b;(0,g.writeStaticStageResponseIntoCache)(o,e.f,a,e.h,n,t,i.renderedSearch,r)}).catch(()=>{})}null!==u&&null!==i.runtimePrefetchStream&&(0,g.processRuntimePrefetchStream)(o,i.runtimePrefetchStream,t,i.renderedSearch).then(e=>{null!==e&&(0,g.writeDynamicRenderResponseIntoCache)(o,_.FetchStrategy.PPRRuntime,e.flightDatas,e.buildId,e.isResponsePartial,e.headVaryParams,e.staleAt,e.navigationSeed,null)}).catch(()=>{});let f=(0,R.computeDynamicStaleAt)(o,i.dynamicStaleTime);return{exitStatus:+!!function e(t,r,n,a,u,i){0===t.status&&null!==n&&(t.status=1,function(e,t,r,n){let a=e.rsc,u=t[0];if(null===u)return;null===a?e.rsc=u:L(a)&&a.resolve(u,n);let i=e.head;L(i)&&i.resolve(r,n)}(t.node,n,a,i),(0,R.updateBFCacheEntryStaleAt)(r.varyPath,u));let o=t.children,s=r.slots,c=null!==n?n[1]:null,f=!1;if(null!==o)if(null!==s)for(let t in s){let r=s[t],n=null!==c?c[t]:null,d=o.get(t);if(void 0===d)f=!0;else{let t=d.route[0],o=w(r);(0,l.matchSegment)(o,t)&&null!=n&&e(d,r,n,a,u,i)&&(f=!0)}}else null!==s&&(f=!0);return f}(e,s.routeTree,s.data,s.head,f,i.debugInfo),url:new URL(i.canonicalUrl,location.origin),seed:s}}catch{return{exitStatus:2,url:r,seed:null}}}let U=Symbol();function L(e){return e&&"object"==typeof e&&e.tag===U}function k(){let e,t,r=[],n=new Promise((r,n)=>{e=r,t=n});return n.status="pending",n.resolve=(t,a)=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,null!==a&&r.push.apply(r,a),e(t))},n.reject=(e,a)=>{"pending"===n.status&&(n.status="rejected",n.reason=e,null!==a&&r.push.apply(r,a),t(e))},n.tag=U,n._debugInfo=r,n}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3372,(e,t,r)=>{"use strict";function n(e){return e.startsWith("/")?e:`/${e}`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},74180,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={compareAppPaths:function(){return l},normalizeAppPath:function(){return o},normalizeRscURL:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(3372),i=e.r(13258);function o(e){return(0,u.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,i.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:`${e}/${t}`,""))}function l(e,t){let r=e.includes("/@"),n=t.includes("/@");return r&&!n?-1:!r&&n?1:e.localeCompare(t)}function s(e){return e.replace(/\.rsc($|\?)/,"$1")}},91463,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={INTERCEPTION_ROUTE_MARKERS:function(){return i},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(74180),i=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find(e=>i.find(t=>e.startsWith(t)))}function l(e){let t,r,n;for(let a of e.split("/"))if(r=i.find(e=>a.startsWith(e))){[t,n]=e.split(r,2);break}if(!t||!r||!n)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,u.normalizeAppPath)(t),r){case"(.)":n="/"===t?`/${n}`:t+"/"+n;break;case"(..)":if("/"===t)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});n=t.split("/").slice(0,-1).concat(n).join("/");break;case"(...)":n="/"+n;break;case"(..)(..)":let a=t.split("/");if(a.length<=2)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});n=a.slice(0,-2).concat(n).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:n}}},34727,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={computeChangedPath:function(){return p},extractPathFromFlightRouterState:function(){return f},extractSourcePageFromFlightRouterState:function(){return d},getSelectedParams:function(){return function e(t,r={}){for(let n of Object.values(t[1])){let t=n[0],a=Array.isArray(t),u=a?t[1]:t;!u||u.startsWith(i.PAGE_SEGMENT_KEY)||(a&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):a&&(r[t[0]]=t[1]),r=e(n,r))}return r}}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(91463),i=e.r(13258),o=e.r(56019),l=e=>"/"===e[0]?e.slice(1):e,s=e=>"string"==typeof e?"children"===e?"":e:e[1];function c(e){return e.reduce((e,t)=>""===(t=l(t))||(0,i.isGroupSegment)(t)?e:`${e}/${t}`,"")||"/"}function f(e){let t=Array.isArray(e[0])?e[0][1]:e[0];if(t===i.DEFAULT_SEGMENT_KEY||u.INTERCEPTION_ROUTE_MARKERS.some(e=>t.startsWith(e)))return;if(t.startsWith(i.PAGE_SEGMENT_KEY))return"";let r=[s(t)],n=e[1]??{},a=n.children?f(n.children):void 0;if(void 0!==a)r.push(a);else for(let[e,t]of Object.entries(n)){if("children"===e)continue;let n=f(t);void 0!==n&&r.push(n)}return c(r)}function d(e){let t=function e(t){let r=(e=>{if("string"==typeof e)return"children"===e?"":e.startsWith(i.PAGE_SEGMENT_KEY)?"page":e;let[t,,r]=e;switch(r){case"c":return`[...${t}]`;case"ci(..)(..)":return`(..)(..)[...${t}]`;case"ci(.)":return`(.)[...${t}]`;case"ci(..)":return`(..)[...${t}]`;case"ci(...)":return`(...)[...${t}]`;case"oc":return`[[...${t}]]`;case"d":default:return`[${t}]`;case"di(..)(..)":return`(..)(..)[${t}]`;case"di(.)":return`(.)[${t}]`;case"di(..)":return`(..)[${t}]`;case"di(...)":return`(...)[${t}]`}})(t[0]);if(r===i.DEFAULT_SEGMENT_KEY)return;if("page"===r)return[r];let n=t[1]??{},a=n.children?e(n.children):void 0;if(void 0!==a)return""===r?a:[l(r),...a];for(let[t,a]of Object.entries(n)){if("children"===t)continue;let n=e(a);if(void 0!==n)return""===r?n:[l(r),...n]}}(e);return t?`/${t.join("/")}`:void 0}function p(e,t){let r=function e(t,r){let[n,a]=t,[i,l]=r,c=s(n),d=s(i);if(u.INTERCEPTION_ROUTE_MARKERS.some(e=>c.startsWith(e)||d.startsWith(e)))return"";if(!(0,o.matchSegment)(n,i))return f(r)??"";for(let t in a)if(l[t]){let r=e(a[t],l[t]);if(null!==r)return`${s(i)}/${r}`}return null}(e,t);return null==r||"/"===r?r:c(r.split("/"))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},48277,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isJavaScriptURLString",{enumerable:!0,get:function(){return a}});let n=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function a(e){return n.test(""+e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},81400,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isNavigationLocked:function(){return l},startListeningForInstantNavigationCookie:function(){return u},transitionToCapturedSPA:function(){return i},updateCapturedSPAToTree:function(){return o},waitForNavigationLockIfActive:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(){}function i(e,t){}function o(e,t){}function l(){return!1}async function s(){}e.r(21768),e.r(41538),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},60355,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={completeHardNavigation:function(){return b},completeSoftNavigation:function(){return S},completeTraverseNavigation:function(){return P},convertServerPatchToFullTree:function(){return O},navigate:function(){return _},navigateToKnownRoute:function(){return m}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(87288),i=e.r(95871),o=e.r(51191),l=e.r(63416),s=e.r(20896),c=e.r(96167),f=e.r(77048);e.r(77709);let d=e.r(9396);e.r(91949);let p=e.r(88540),h=e.r(34727),y=e.r(48277),g=e.r(79027);function _(e,t,r,n,a,u,i,o,l,c){return function(e,t,r,n,a,u,i,o,l,c){let d=Date.now(),p=t.href,h=(0,f.createCacheKey)(p,i),y=(0,s.readRouteCacheEntry)(d,h);if(null!==y&&y.status===s.EntryStatus.Fulfilled)return E(d,e,t,r,n,i,a,u,o,l,c,y);if(null===y||y.status!==s.EntryStatus.Rejected){let f=(0,s.deprecated_requestOptimisticRouteCacheEntry)(d,t,i);if(null!==f)return E(d,e,t,r,n,i,a,u,o,l,c,f)}return R(d,e,t,r,n,i,a,u,o,l,c).catch(()=>e)}(e,t,r,n,a,u,i,o,l,c)}function m(e,t,r,n,a,u,o,l,s,c,f,d,p,h,y){let g={separateRefreshUrls:null,scrollRef:null},_=r.href===u.href,m=(0,i.startPPRNavigation)(e,u,o,l,s,a.routeTree,a.metadataVaryPath,c,a.data,a.head,a.dynamicStaleAt,_,g);return null!==m?(c!==i.FreshnessPolicy.Gesture&&(0,i.spawnDynamicRequests)(m,r,f,c,g,y,p),S(t,r,f,m.route,m.node,a.renderedSearch,n,p,d,g.scrollRef,h)):b(t,r,p)}function E(e,t,r,n,a,u,i,o,l,s,c,f){let d=f.tree,p=f.canonicalUrl+r.hash,h={renderedSearch:f.renderedSearch,routeTree:d,metadataVaryPath:f.metadata.varyPath,data:null,head:null,dynamicStaleAt:(0,g.computeDynamicStaleAt)(e,g.UnknownDynamicStaleTime)};return m(e,t,r,p,h,n,a,i,o,l,u,s,c,null,f)}let v=["",{},null,"refetch"];async function R(e,t,r,n,a,f,p,h,y,g,_){let E;switch(y){case i.FreshnessPolicy.Default:case i.FreshnessPolicy.HistoryTraversal:case i.FreshnessPolicy.Gesture:E=h;break;case i.FreshnessPolicy.Hydration:case i.FreshnessPolicy.RefreshAll:case i.FreshnessPolicy.HMRRefresh:E=v;break;default:E=h}let R=(0,u.fetchServerResponse)(r,{flightRouterState:E,nextUrl:f}),S=await R;if("string"==typeof S)return b(t,new URL(S,location.origin),_);let{flightData:P,canonicalUrl:T,renderedSearch:w,couldBeIntercepted:A,supportsPerSegmentPrefetching:j,dynamicStaleTime:N,staticStageData:D,runtimePrefetchStream:C,responseHeaders:M,debugInfo:I}=S,x=O(e,h,P,w,N),F=x.metadataVaryPath;if(null!==F){if((0,c.discoverKnownRoute)(e,r.pathname,f,null,x.routeTree,F,A,(0,o.createHrefFromUrl)(T),j,!1),null!==D){let{response:t,isResponsePartial:r}=D;(0,s.getStaleAt)(e,t.s).then(n=>{let a=M.get(l.NEXT_NAV_DEPLOYMENT_ID_HEADER)??t.b;(0,s.writeStaticStageResponseIntoCache)(e,t.f,a,t.h,n,h,w,r)}).catch(()=>{})}null!==C&&(0,s.processRuntimePrefetchStream)(e,C,h,w).then(t=>{null!==t&&(0,s.writeDynamicRenderResponseIntoCache)(e,d.FetchStrategy.PPRRuntime,t.flightDatas,t.buildId,t.isResponsePartial,t.headVaryParams,t.staleAt,t.navigationSeed,null)}).catch(()=>{})}return m(e,t,r,(0,o.createHrefFromUrl)(T),x,n,a,p,h,y,f,g,_,I,null)}function b(e,t,r){return(0,y.isJavaScriptURLString)(t.href)?(console.error("Next.js has blocked a javascript: URL as a security precaution."),e):{canonicalUrl:t.origin===location.origin?(0,o.createHrefFromUrl)(t):t.href,pushRef:{pendingPush:"push"===r,mpaNavigation:!0,preserveCustomHistoryState:!1},renderedSearch:e.renderedSearch,focusAndScrollRef:e.focusAndScrollRef,cache:e.cache,tree:e.tree,nextUrl:e.nextUrl,previousNextUrl:e.previousNextUrl,debugInfo:null}}function S(e,t,r,n,a,u,i,o,l,s,c){let f,d,y=(0,h.computeChangedPath)(e.tree,n)||e.nextUrl,g=new URL(e.canonicalUrl,t),_=t.pathname===g.pathname&&t.search===g.search&&t.hash!==g.hash;if(l===p.ScrollBehavior.NoScroll)null!==s&&(s.current=!1),f=e.focusAndScrollRef.scrollRef,d=!1;else if(_){let t=e.focusAndScrollRef.scrollRef;null!==t&&(t.current=!1),null!==s&&(s.current=!1),f={current:!0},d=!0}else{if(f=s,null!==s){let t=e.focusAndScrollRef.scrollRef;null!==t&&(t.current=!1)}d=!1}return{canonicalUrl:i,renderedSearch:u,pushRef:{pendingPush:"push"===o,mpaNavigation:!1,preserveCustomHistoryState:!1},focusAndScrollRef:{scrollRef:f,forceScroll:d,onlyHashChange:_,hashFragment:l!==p.ScrollBehavior.NoScroll&&""!==t.hash?decodeURIComponent(t.hash.slice(1)):e.focusAndScrollRef.hashFragment},cache:a,tree:n,nextUrl:y,previousNextUrl:r,debugInfo:c}}function P(e,t,r,n,a,u){return{canonicalUrl:(0,o.createHrefFromUrl)(t),renderedSearch:r,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:n,tree:a,nextUrl:u,previousNextUrl:null,debugInfo:null}}function O(e,t,r,n,a){let u=t,i=null,o=null;if(null!==r)for(let{segmentPath:e,tree:t,seedData:a,head:l}of r){let r=function e(t,r,n,a,u,i,o){let l;if(o===u.length)return{tree:n,data:a};let s=u[o],c=t[1],f=null!==r?r[1]:null,d={},p={};for(let t in c){let r=c[t],l=null!==f?f[t]??null:null;if(t===s){let s=e(r,l,n,a,u,i,o+2);d[t]=s.tree,p[t]=s.data}else d[t]=r,p[t]=l}if(l=[t[0],d],2 in t){let e=t[2];null!=e&&(l[2]=[e[0],i])}return 3 in t&&(l[3]=t[3]),4 in t&&(l[4]=t[4]),{tree:l,data:[null,p,null,!0,null]}}(u,i,t,a,e,n,0);u=r.tree,i=r.data,o=l}let l=u,c={metadataVaryPath:null};return{routeTree:(0,s.convertRootFlightRouterStateToRouteTree)(l,n,c),metadataVaryPath:c.metadataVaryPath,data:i,renderedSearch:n,head:o,dynamicStaleAt:(0,g.computeDynamicStaleAt)(e,a)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54069,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DYNAMIC_STALETIME_MS:function(){return l},STATIC_STALETIME_MS:function(){return s},navigateReducer:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(60355),i=e.r(20896),o=e.r(95871),l=1e3*Number("0"),s=(0,i.getStaleTimeMs)(Number("300"));function c(e,t){let{url:r,isExternalUrl:n,navigateType:a,scrollBehavior:i}=t;if(n||document.getElementById("__next-page-redirect"))return(0,u.completeHardNavigation)(e,r,a);let l=new URL(e.canonicalUrl,location.origin),s=e.renderedSearch;return(0,u.navigate)(e,r,l,s,e.cache,e.tree,e.nextUrl,o.FreshnessPolicy.Default,i,a)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},84356,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e([t,r]){if(Array.isArray(t)&&("di(..)(..)"===t[2]||"ci(..)(..)"===t[2]||"di(.)"===t[2]||"ci(.)"===t[2]||"di(..)"===t[2]||"ci(..)"===t[2]||"di(...)"===t[2]||"ci(...)"===t[2])||"string"==typeof t&&(0,n.isInterceptionRouteAppPath)(t))return!0;if(r){for(let t in r)if(e(r[t]))return!0}return!1}}});let n=e.r(91463);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},69845,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={refreshDynamicData:function(){return d},refreshReducer:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(88540),i=e.r(60355),o=e.r(20896),l=e.r(84356),s=e.r(95871),c=e.r(79027);function f(e,t){{let t=e.nextUrl,r=e.tree;(0,o.invalidateSegmentCacheEntries)(t,r)}return d(e,s.FreshnessPolicy.RefreshAll)}function d(e,t){(0,c.invalidateBfCache)();let r=e.nextUrl,n=(0,l.hasInterceptionRouteInCurrentTree)(e.tree)?e.previousNextUrl||r:null,a=e.canonicalUrl,o=new URL(a,location.origin),s=e.renderedSearch,f=e.tree,d=u.ScrollBehavior.NoScroll,p=Date.now(),h=(0,i.convertServerPatchToFullTree)(p,f,null,s,c.UnknownDynamicStaleTime);return(0,i.navigateToKnownRoute)(p,e,o,a,h,o,s,e.cache,f,t,n,d,"replace",null,null)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},91668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverPatchReducer",{enumerable:!0,get:function(){return l}});let n=e.r(51191),a=e.r(88540),u=e.r(60355),i=e.r(69845),o=e.r(95871);function l(e,t){let r=t.mpa,l=new URL(t.url,location.origin),s=t.seed,c=t.navigateType;if(r||null===s)return(0,u.completeHardNavigation)(e,l,c);let f=new URL(e.canonicalUrl,location.origin),d=e.renderedSearch;if(t.previousTree!==e.tree)return(0,i.refreshReducer)(e,{type:a.ACTION_REFRESH});let p=(0,n.createHrefFromUrl)(l),h=t.nextUrl,y=a.ScrollBehavior.Default,g=Date.now();return(0,u.navigateToKnownRoute)(g,e,l,p,s,f,d,e.cache,e.tree,o.FreshnessPolicy.RefreshAll,h,y,c,null,null)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73790,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"restoreReducer",{enumerable:!0,get:function(){return o}});let n=e.r(34727),a=e.r(95871),u=e.r(60355),i=e.r(79027);function o(e,t){let r,o,l=t.historyState;l?(r=l.tree,o=l.renderedSearch):(r=e.tree,o=e.renderedSearch);let s=new URL(e.canonicalUrl,location.origin),c=t.url,f=(0,n.extractPathFromFlightRouterState)(r)??c.pathname,d=Date.now(),p={separateRefreshUrls:null,scrollRef:null},h=(0,u.convertServerPatchToFullTree)(d,r,null,o,i.UnknownDynamicStaleTime),y=(0,a.startPPRNavigation)(d,s,e.renderedSearch,e.cache,e.tree,h.routeTree,h.metadataVaryPath,a.FreshnessPolicy.HistoryTraversal,null,null,h.dynamicStaleAt,!1,p);return null===y?(0,u.completeHardNavigation)(e,c,"replace"):((0,a.spawnDynamicRequests)(y,c,f,a.FreshnessPolicy.HistoryTraversal,p,null,"replace"),(0,u.completeTraverseNavigation)(e,c,o,y.node,y.route,f))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},86720,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hmrRefreshReducer",{enumerable:!0,get:function(){return u}});let n=e.r(69845),a=e.r(95871);function u(e){return(0,n.refreshDynamicData)(e,a.FreshnessPolicy.HMRRefresh)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92838,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UnrecognizedActionError:function(){return u},unstable_isUnrecognizedActionError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});class u extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function i(e){return!!(e&&"object"==typeof e&&e instanceof u)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},27801,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"assignLocation",{enumerable:!0,get:function(){return a}});let n=e.r(5550);function a(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,n.addBasePath)(e),t.href)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},34457,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},62266,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorageInstance}});let n=e.r(34457)},24063,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getRedirectError:function(){return l},getRedirectStatusCodeFromError:function(){return p},getRedirectTypeFromError:function(){return d},getURLFromRedirectError:function(){return f},permanentRedirect:function(){return c},redirect:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(76963),i=e.r(68391),o="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"pathHasPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(72463);function a(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},52817,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hasBasePath",{enumerable:!0,get:function(){return a}});let n=e.r(39584);function a(e){return(0,n.pathHasPrefix)(e,"/mystichearts/demo")}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},87250,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeBasePath",{enumerable:!0,get:function(){return a}}),e.r(52817);let n="/mystichearts/demo";function a(e){return 0===n.length||(e=e.slice(n.length)).startsWith("/")||(e=`/${e}`),e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39747,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={extractInfoFromServerReferenceId:function(){return u},omitUnusedArgs:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}function i(e,t){let r=Array(e.length),n=0;for(let a=0;a=6&&t.hasRestArgs)&&(r[a]=e[a],n=a+1);return r.length=n,r}},39146,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ActionDidNotRevalidate:function(){return u},ActionDidRevalidateDynamicOnly:function(){return o},ActionDidRevalidateStaticAndDynamic:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=0,i=1,o=2},45794,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverActionReducer",{enumerable:!0,get:function(){return C}});let a=e.r(32120),u=e.r(92245),i=e.r(21768),o=e.r(92838),l=e.r(35326),s=e.r(88540),c=e.r(27801),f=e.r(51191),d=e.r(84356),p=e.r(50590),h=e.r(24063),y=e.r(87250),g=e.r(52817),_=e.r(39747),m=e.r(20896),E=e.r(77709),v=e.r(43369),R=e.r(32992),b=e.r(63416),S=e.r(60355),P=e.r(96167),O=e.r(39146),T=e.r(57630),w=e.r(95871),A=e.r(87288),j=e.r(79027),N=l.createFromFetch;async function D(e,t,{actionId:r,actionArgs:s}){let f,d,h,y,g=(0,l.createTemporaryReferenceSet)(),m=(0,_.extractInfoFromServerReferenceId)(r),E=(0,_.omitUnusedArgs)(s,m),S=await (0,l.encodeReply)(E,{temporaryReferences:g}),P={Accept:i.RSC_CONTENT_TYPE_HEADER,[i.ACTION_HEADER]:r,[i.NEXT_ROUTER_STATE_TREE_HEADER]:(0,p.prepareFlightRouterStateForRequest)(e.tree)},T=(0,v.getDeploymentId)();T&&(P["x-deployment-id"]=T),t&&(P[i.NEXT_URL]=t);let w=await fetch(e.canonicalUrl,{method:"POST",headers:P,body:S});if("1"===w.headers.get(i.NEXT_ACTION_NOT_FOUND_HEADER))throw Object.defineProperty(new o.UnrecognizedActionError(`Server Action "${r}" was not found on the server. -Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E715",enumerable:!1,configurable:!0});let j=w.headers.get("x-action-redirect"),[C,M]=j?.split(";")||[];switch(M){case"push":f="push";break;case"replace":f="replace";break;default:f=void 0}let I=!!w.headers.get(i.NEXT_IS_PRERENDER_HEADER),x=O.ActionDidNotRevalidate;try{let e=w.headers.get("x-action-revalidated");if(e){let t=JSON.parse(e);(t===O.ActionDidRevalidateStaticAndDynamic||t===O.ActionDidRevalidateDynamicOnly)&&(x=t)}}catch{}let F=C?(0,c.assignLocation)(C,new URL(e.canonicalUrl,window.location.href)):void 0,U=w.headers.get("content-type"),L=!!(U&&U.startsWith(i.RSC_CONTENT_TYPE_HEADER));if(!L&&!F)throw Object.defineProperty(Error(w.status>=400&&"text/plain"===U?await w.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});let k=!1;if(L){let e=F?(0,A.processFetch)(w).then(({response:e})=>e):Promise.resolve(w),t=await N(e,{callServer:a.callServer,findSourceMapURL:u.findSourceMapURL,temporaryReferences:g,debugChannel:n&&n(P)});d=F?void 0:t.a,k=t.i;let r=w.headers.get(b.NEXT_NAV_DEPLOYMENT_ID_HEADER)??t.b;if(void 0!==r&&r!==(0,R.getNavigationBuildId)());else{let e=(0,p.normalizeFlightData)(t.f);""!==e&&(h=e,y=t.q)}}else d=void 0,h=void 0,y=void 0;return{actionResult:d,actionFlightData:h,actionFlightDataRenderedSearch:y,redirectLocation:F,redirectType:f,revalidationKind:x,isPrerender:I,couldBeIntercepted:k}}function C(e,t){let{resolve:r,reject:n}=t,a=(e.previousNextUrl||e.nextUrl)&&(0,d.hasInterceptionRouteInCurrentTree)(e.tree)?e.previousNextUrl||e.nextUrl:null;return D(e,a,t).then(async({revalidationKind:u,actionResult:i,actionFlightData:o,actionFlightDataRenderedSearch:l,redirectLocation:c,redirectType:d,isPrerender:p,couldBeIntercepted:h})=>{u!==O.ActionDidNotRevalidate&&((0,j.invalidateBfCache)(),t.didRevalidate=!0,u===O.ActionDidRevalidateStaticAndDynamic&&(0,m.invalidateEntirePrefetchCache)(a,e.tree),(0,E.startRevalidationCooldown)());let _=d||"push";if(void 0!==c)if((0,T.isExternalURL)(c))return n(M(c.href,_)),(0,S.completeHardNavigation)(e,c,_);else{let e=(0,f.createHrefFromUrl)(c,!1);n(M((0,g.hasBasePath)(e)?(0,y.removeBasePath)(e):e,_))}else r(i);if(void 0===c&&u===O.ActionDidNotRevalidate&&void 0===o)return e;if(void 0===o&&void 0!==c)return(0,S.completeHardNavigation)(e,c,_);if("string"==typeof o)return(0,S.completeHardNavigation)(e,new URL(o,location.origin),_);let v=new URL(e.canonicalUrl,location.origin),R=e.renderedSearch,b=void 0!==c?c:v,A=e.tree,N=s.ScrollBehavior.Default,D=u===O.ActionDidNotRevalidate?w.FreshnessPolicy.Default:w.FreshnessPolicy.RefreshAll;if(void 0!==o&&void 0!==l){let t=(0,f.createHrefFromUrl)(b),r=Date.now(),n=(0,S.convertServerPatchToFullTree)(r,A,o,l,j.UnknownDynamicStaleTime),u=n.metadataVaryPath;return null!==u&&(0,P.discoverKnownRoute)(r,b.pathname,a,null,n.routeTree,u,h,t,p,!1),(0,S.navigateToKnownRoute)(r,e,b,t,n,v,R,e.cache,A,D,a,N,_,null,null)}return(0,S.navigate)(e,b,v,R,e.cache,A,a,D,N,_)},t=>(n(t),e))}function M(e,t){let r=(0,h.getRedirectError)(e,t);return r.handled=!0,r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},4924,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"reducer",{enumerable:!0,get:function(){return c}});let n=e.r(88540),a=e.r(54069),u=e.r(91668),i=e.r(73790),o=e.r(69845),l=e.r(86720),s=e.r(45794),c="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"prefetch",{enumerable:!0,get:function(){return o}});let n=e.r(57630),a=e.r(77048),u=e.r(77709),i=e.r(9396);function o(e,t,r,o,l){let s=(0,n.createPrefetchURL)(e);if(null===s)return;let c=(0,a.createCacheKey)(s.href,t);(0,u.schedulePrefetchTask)(c,r,o,i.PrefetchPriority.Default,l)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},99781,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createMutableActionQueue:function(){return E},dispatchNavigateAction:function(){return b},dispatchTraverseAction:function(){return S},getCurrentAppRouterState:function(){return v},publicAppRouterInstance:function(){return P}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(88540),i=e.r(4924),o=e.r(71645),l=e.r(64245),s=e.r(9396),c=e.r(1411);e.r(60355);let f=e.r(41538);e.r(96167),e.r(95871);let d=e.r(5550),p=e.r(57630),h=e.r(91949),y=e.r(48277);function g(e,t){null!==e.pending?(e.pending=e.pending.next,null!==e.pending&&_({actionQueue:e,action:e.pending,setState:t})):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:u.ACTION_REFRESH},t))}async function _({actionQueue:e,action:t,setState:r}){let n=e.state;e.pending=t;let a=t.payload,i=e.action(n,a);function o(n){if(t.discarded){t.payload.type===u.ACTION_SERVER_ACTION&&t.payload.didRevalidate&&(e.needsRefresh=!0),g(e,r);return}e.state=n,g(e,r),t.resolve(n)}(0,l.isThenable)(i)?i.then(o,n=>{g(e,r),t.reject(n)}):o(i)}let m=null;function E(e,t){let r={state:e,dispatch:(e,t)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==u.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,o.startTransition)(()=>{r(e)})}let a={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=a,_({actionQueue:e,action:a,setState:r})):t.type===u.ACTION_NAVIGATE||t.type===u.ACTION_RESTORE?(e.pending.discarded=!0,a.next=e.pending.next,_({actionQueue:e,action:a,setState:r})):(null!==e.last&&(e.last.next=a),e.last=a)})(r,e,t),action:async(e,t)=>(0,i.reducer)(e,t),pending:null,last:null,onRouterTransitionStart:null!==t&&"function"==typeof t.onRouterTransitionStart?t.onRouterTransitionStart:null};if("u">typeof window){if(null!==m)throw Object.defineProperty(Error("Internal Next.js Error: createMutableActionQueue was called more than once"),"__NEXT_ERROR_CODE",{value:"E624",enumerable:!1,configurable:!0});m=r}return r}function v(){return null!==m?m.state:null}function R(){return null!==m?m.onRouterTransitionStart:null}function b(e,t,r,n,a){if(a)for(let e of a)(0,o.addTransitionType)(e);let i=new URL((0,d.addBasePath)(e),location.href);(0,h.setLinkForCurrentNavigation)(n);let l=R();null!==l&&l(e,t),(0,f.dispatchAppRouterAction)({type:u.ACTION_NAVIGATE,url:i,isExternalUrl:(0,p.isExternalURL)(i),locationSearch:location.search,scrollBehavior:r,navigateType:t})}function S(e,t){let r=R();null!==r&&r(e,"traverse"),(0,f.dispatchAppRouterAction)({type:u.ACTION_RESTORE,url:new URL(e),historyState:t})}let P={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let r;if((0,y.isJavaScriptURLString)(e))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});let n=function(){if(null===m)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});return m}();switch(t?.kind??u.PrefetchKind.AUTO){case u.PrefetchKind.AUTO:r=s.FetchStrategy.PPR;break;case u.PrefetchKind.FULL:r=s.FetchStrategy.Full;break;default:r=s.FetchStrategy.PPR}(0,c.prefetch)(e,n.state.nextUrl,n.state.tree,r,t?.onInvalidate??null)},replace:(e,t)=>{if((0,y.isJavaScriptURLString)(e))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});(0,o.startTransition)(()=>{b(e,"replace",t?.scroll===!1?u.ScrollBehavior.NoScroll:u.ScrollBehavior.Default,null,t?.transitionTypes)})},push:(e,t)=>{if((0,y.isJavaScriptURLString)(e))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});(0,o.startTransition)(()=>{b(e,"push",t?.scroll===!1?u.ScrollBehavior.NoScroll:u.ScrollBehavior.Default,null,t?.transitionTypes)})},refresh:()=>{(0,o.startTransition)(()=>{(0,f.dispatchAppRouterAction)({type:u.ACTION_REFRESH})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}};"u">typeof window&&window.next&&(window.next.router=P),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},13957,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809)._(e.r(71645)),i=u.default.createContext(null);function o(e){let t=(0,u.useContext)(i);t&&t(e)}},22783,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"notFound",{enumerable:!0,get:function(){return u}});let n=e.r(54394),a=`${n.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;function u(){let e=Object.defineProperty(Error(a),"__NEXT_ERROR_CODE",{value:"E1041",enumerable:!1,configurable:!0});throw e.digest=a,e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},79854,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"forbidden",{enumerable:!0,get:function(){return n}}),e.r(54394).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},22683,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unauthorized",{enumerable:!0,get:function(){return n}}),e.r(54394).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15507,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,a.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=e.r(32061),a=e.r(65713);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63138,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={delayUntilRuntimeStage:function(){return h},getRuntimeStage:function(){return p},isHangingPromiseRejectionError:function(){return i},makeDevtoolsIOAwarePromise:function(){return d},makeHangingPromise:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(42852);function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===o}let o="HANGING_PROMISE_REJECTION";class l extends Error{constructor(e,t){super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`),this.route=e,this.expression=t,this.digest=o}}let s=new WeakMap;function c(e,t,r){if(e.aborted)return Promise.reject(new l(t,r));{let n=new Promise((n,a)=>{let u=a.bind(null,new l(t,r)),i=s.get(e);if(i)i.push(u);else{let t=[u];s.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e{setTimeout(()=>{t(e)},0)})}function p(e){return e.currentStage===u.RenderStage.EarlyStatic||e.currentStage===u.RenderStage.EarlyRuntime?u.RenderStage.EarlyRuntime:u.RenderStage.Runtime}function h(e,t){let{stagedRendering:r}=e;return r?r.waitForStage(p(r)).then(()=>t):t}},67287,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isPostpone",{enumerable:!0,get:function(){return a}});let n=Symbol.for("react.postpone");function a(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}},76353,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DynamicServerError:function(){return i},isDynamicServerError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="DYNAMIC_SERVER_USAGE";class i extends Error{constructor(e){super(`Dynamic server usage: ${e}`),this.description=e,this.digest=u}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},43248,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={StaticGenBailoutError:function(){return i},isStaticGenBailoutError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="NEXT_STATIC_GEN_BAILOUT";class i extends Error{constructor(...e){super(...e),this.code=u}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54839,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={METADATA_BOUNDARY_NAME:function(){return u},OUTLET_BOUNDARY_NAME:function(){return o},ROOT_LAYOUT_BOUNDARY_NAME:function(){return l},VIEWPORT_BOUNDARY_NAME:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="__next_metadata_boundary__",i="__next_viewport_boundary__",o="__next_outlet_boundary__",l="__next_root_layout_boundary__"},29419,(e,t,r)=>{"use strict";var n=e.i(47167);Object.defineProperty(r,"__esModule",{value:!0});var a={atLeastOneTask:function(){return l},scheduleImmediate:function(){return o},scheduleOnNextTick:function(){return i},waitAtLeastOneReactRenderTask:function(){return s}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let i=e=>{Promise.resolve().then(()=>{n.default.nextTick(e)})},o=e=>{setImmediate(e)};function l(){return new Promise(e=>o(e))}function s(){return new Promise(e=>setImmediate(e))}},2897,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"INSTANT_VALIDATION_BOUNDARY_NAME",{enumerable:!0,get:function(){return n}});let n="__next_instant_validation_boundary__"},67673,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,u,i={DynamicHoleKind:function(){return J},Postpone:function(){return j},PreludeState:function(){return eu},abortAndThrowOnSynchronousRequestDataAccess:function(){return A},abortOnSynchronousPlatformIOAccess:function(){return w},accessedDynamicData:function(){return U},annotateDynamicAccess:function(){return $},consumeDynamicAccess:function(){return L},createDynamicTrackingState:function(){return v},createDynamicValidationState:function(){return R},createHangingInputAbortSignal:function(){return B},createInstantValidationState:function(){return Z},createRenderInBrowserAbortSignal:function(){return H},formatDynamicAPIAccesses:function(){return k},getFirstDynamicReason:function(){return b},getNavigationDisallowedDynamicReasons:function(){return es},getStaticShellDisallowedDynamicReasons:function(){return el},isDynamicPostpone:function(){return C},isPrerenderInterruptedError:function(){return F},logDisallowedDynamicError:function(){return ei},markCurrentScopeAsDynamic:function(){return S},postponeWithTracking:function(){return N},throwIfDisallowedDynamic:function(){return eo},throwToInterruptStaticGeneration:function(){return P},trackAllowedDynamicAccess:function(){return Q},trackDynamicDataInDynamicRender:function(){return O},trackDynamicHoleInNavigation:function(){return ee},trackDynamicHoleInRuntimeShell:function(){return er},trackDynamicHoleInStaticShell:function(){return en},trackThrownErrorInNavigation:function(){return et},useDynamicRouteParams:function(){return X},useDynamicSearchParams:function(){return V}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});let l=(n=e.r(71645))&&n.__esModule?n:{default:n},s=e.r(76353),c=e.r(43248),f=e.r(62141),d=e.r(63599),p=e.r(63138),h=e.r(54839),y=e.r(29419),g=e.r(32061),_=e.r(12718),m=e.r(2897),E="function"==typeof l.default.unstable_postpone;function v(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function R(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function b(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function S(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":case"private-cache":return}if(!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return N(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new s.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}function P(e,t,r){let n=Object.defineProperty(new s.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function O(e){switch(e.type){case"cache":case"unstable-cache":case"private-cache":return}}function T(e,t,r){let n=x(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let a=r.dynamicTracking;a&&a.dynamicAccesses.push({stack:a.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function w(e,t,r,n){let a=n.dynamicTracking;T(e,t,n),a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=r)}function A(e,t,r,n){if(!1===n.controller.signal.aborted){T(e,t,n);let a=n.dynamicTracking;a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=r)}throw x(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}function j({reason:e,route:t}){let r=f.workUnitAsyncStorage.getStore();N(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function N(e,t,r){(function(){if(!E)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})})(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),l.default.unstable_postpone(D(e,t))}function D(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function C(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&M(e.message)}function M(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===M(D("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let I="NEXT_PRERENDER_INTERRUPTED";function x(e){let t=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=I,t}function F(e){return"object"==typeof e&&null!==e&&e.digest===I&&"name"in e&&"message"in e&&e instanceof Error}function U(e){return e.length>0}function L(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function k(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: -${t}`))}function H(){let e=new AbortController;return e.abort(Object.defineProperty(new g.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function B(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else if("prerender-runtime"===e.type&&e.stagedRendering){let{stagedRendering:r}=e;r.waitForStage((0,p.getRuntimeStage)(r)).then(()=>(0,y.scheduleOnNextTick)(()=>t.abort()))}else(0,y.scheduleOnNextTick)(()=>t.abort());return t.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function $(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function X(e){let t=d.workAsyncStorage.getStore(),r=f.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&l.default.use((0,p.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return N(t.route,e,r.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function V(e){let t=d.workAsyncStorage.getStore(),r=f.workUnitAsyncStorage.getStore();if(t)switch(!r&&(0,f.throwForMissingRequestStore)(e),r.type){case"validation-client":case"request":return;case"prerender-client":l.default.use((0,p.makeHangingPromise)(r.renderSignal,t.route,e));break;case"prerender-legacy":case"prerender-ppr":if(t.forceStatic)return;throw Object.defineProperty(new g.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let G=/\n\s+at Suspense \(\)/,K=RegExp(`\\n\\s+at Suspense \\(\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(\\))[\\s\\S])*?\\n\\s+at ${h.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),Y=RegExp(`\\n\\s+at ${h.METADATA_BOUNDARY_NAME}[\\n\\s]`),q=RegExp(`\\n\\s+at ${h.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),W=RegExp(`\\n\\s+at ${h.OUTLET_BOUNDARY_NAME}[\\n\\s]`),z=RegExp(`\\n\\s+at ${m.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`);function Q(e,t,r,n){if(!W.test(t)){if(Y.test(t)){r.hasDynamicMetadata=!0;return}if(q.test(t)){r.hasDynamicViewport=!0;return}if(K.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(G.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data was accessed outside of . This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1079",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(a)}}}var J=((a={})[a.Runtime=1]="Runtime",a[a.Dynamic=2]="Dynamic",a);function Z(e){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],createInstantStack:e}}function ee(e,t,r,n,a,u){if(W.test(t))return;if(Y.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateMetadata` or you have file-based metadata such as icons that depend on dynamic params segments.":"Uncached data or `connection()` was accessed inside `generateMetadata`."} Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1076",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicMetadata=n;return}if(q.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateViewport`.":"Uncached data or `connection()` was accessed inside `generateViewport`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1086",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(n);return}let i=z.exec(t);if(i){let e=G.exec(t);if(e&&e.index`.":"Uncached data or `connection()` was accessed outside of ``."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1078",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(o)}function et(e,t,r,n){let a=z.exec(n);if(a){let u=G.exec(n);if(u&&u.index\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1084",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(a)}function en(e,t,r,n){if(!W.test(t)){if(Y.test(t)){r.dynamicMetadata=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1085",enumerable:!1,configurable:!0}),t,null);return}if(q.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1081",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(n);return}if(K.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(G.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1083",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(a)}}}function ea(e,t,r){return null!==r&&(e.cause=r()),e.stack=e.name+": "+e.message+t,e}var eu=((u={})[u.Full=0]="Full",u[u.Empty=1]="Empty",u[u.Errored=2]="Errored",u);function ei(e,t){console.error(t),console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following: - - Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error. - - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function eo(e,t,r,n){if(n.syncDynamicErrorWithStack)throw ei(e,n.syncDynamicErrorWithStack),new c.StaticGenBailoutError;if(0!==t){if(r.hasSuspenseAboveBody)return;let n=r.dynamicErrors;if(n.length>0){for(let t=0;t0)return n;if(1===t)return[Object.defineProperty(new _.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(!1===r.hasAllowedDynamic&&0===r.dynamicErrors.length&&r.dynamicMetadata)return[r.dynamicMetadata];return[]}function es(e,t,r,n,a){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:u}=r;if(u.length>0)return u;if(a.renderedIds.size0)return n;if(1===t)return r.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new _.InvariantError(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})]}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}return[]}},91414,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,i.isNextRouterError)(t)||(0,u.isBailoutToCSRError)(t)||(0,l.isDynamicServerError)(t)||(0,o.isDynamicPostpone)(t)||(0,a.isPostpone)(t)||(0,n.isHangingPromiseRejectionError)(t)||(0,o.isPrerenderInterruptedError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=e.r(63138),a=e.r(67287),u=e.r(32061),i=e.r(65713),o=e.r(67673),l=e.r(76353);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},90508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ReadonlyURLSearchParams:function(){return u.ReadonlyURLSearchParams},RedirectType:function(){return d},forbidden:function(){return l.forbidden},notFound:function(){return o.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},unauthorized:function(){return s.unauthorized},unstable_isUnrecognizedActionError:function(){return f},unstable_rethrow:function(){return c.unstable_rethrow}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(3680),i=e.r(24063),o=e.r(22783),l=e.r(79854),s=e.r(22683),c=e.r(90508);function f(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}let d={push:"push",replace:"replace"};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},76562,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ReadonlyURLSearchParams:function(){return o.ReadonlyURLSearchParams},RedirectType:function(){return f.RedirectType},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},forbidden:function(){return f.forbidden},notFound:function(){return f.notFound},permanentRedirect:function(){return f.permanentRedirect},redirect:function(){return f.redirect},unauthorized:function(){return f.unauthorized},unstable_isUnrecognizedActionError:function(){return c.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return f.unstable_rethrow},useParams:function(){return v},usePathname:function(){return m},useRouter:function(){return E},useSearchParams:function(){return _},useSelectedLayoutSegment:function(){return b},useSelectedLayoutSegments:function(){return R},useServerInsertedHTML:function(){return s.useServerInsertedHTML}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809)._(e.r(71645)),i=e.r(8372),o=e.r(61994),l=e.r(13258),s=e.r(13957),c=e.r(92838),f=e.r(92805),d="u"e?new o.ReadonlyURLSearchParams(e):null,[e])}function m(){return d?.("usePathname()"),(0,u.useContext)(o.PathnameContext)}function E(){let e=(0,u.useContext)(i.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function v(){return d?.("useParams()"),(0,u.useContext)(o.PathParamsContext)}function R(e="children"){d?.("useSelectedLayoutSegments()");let t=(0,u.useContext)(i.LayoutRouterContext);return t?(0,l.getSelectedLayoutSegmentPath)(t.parentTree,e):null}function b(e="children"){d?.("useSelectedLayoutSegment()"),(0,u.useContext)(o.NavigationPromisesContext);let t=R(e);return(0,l.computeSelectedLayoutSegment)(t,e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},58442,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RedirectBoundary:function(){return p},RedirectErrorBoundary:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809),i=e.r(43476),o=u._(e.r(71645)),l=e.r(76562),s=e.r(24063),c=e.r(68391);function f({redirect:e,reset:t,redirectType:r}){let n=(0,l.useRouter)();return(0,o.useEffect)(()=>{o.default.startTransition(()=>{"push"===r?n.push(e,{}):n.replace(e,{}),t()})},[e,r,t,n]),null}class d extends o.default.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if((0,c.isRedirectError)(e)){let t=(0,s.getURLFromRedirectError)(e),r=(0,s.getRedirectTypeFromError)(e);return"handled"in e?{redirect:null,redirectType:null}:{redirect:t,redirectType:r}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,i.jsx)(f,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}}function p({children:e}){let t=(0,l.useRouter)();return(0,i.jsx)(d,{router:t,children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},70725,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRouterCacheKey",{enumerable:!0,get:function(){return a}});let n=e.r(13258);function a(e,t=!1){return Array.isArray(e)?`${e[0]}|${e[1]}|${e[2]}`:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},1244,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},97367,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={MetadataBoundary:function(){return o},OutletBoundary:function(){return s},RootLayoutBoundary:function(){return c},ViewportBoundary:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(54839),i={[u.METADATA_BOUNDARY_NAME]:function({children:e}){return e},[u.VIEWPORT_BOUNDARY_NAME]:function({children:e}){return e},[u.OUTLET_BOUNDARY_NAME]:function({children:e}){return e},[u.ROOT_LAYOUT_BOUNDARY_NAME]:function({children:e}){return e}},o=i[u.METADATA_BOUNDARY_NAME.slice(0)],l=i[u.VIEWPORT_BOUNDARY_NAME.slice(0)],s=i[u.OUTLET_BOUNDARY_NAME.slice(0)],c=i[u.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)]}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/1xsmnrbrzndet.js b/web/mystichearts/demo/_next/static/chunks/1xsmnrbrzndet.js deleted file mode 100644 index b80c5123..00000000 --- a/web/mystichearts/demo/_next/static/chunks/1xsmnrbrzndet.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19873,t=>{"use strict";let e,i,n;var s,r=t.i(47167),o=t.i(43476);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set([...a,"pathRotation"]),h=(t,e,i)=>i>e?e:i"number"==typeof t,parse:parseFloat,transform:t=>t},c={...u,transform:t=>h(0,1,t)},d={...u,default:1},p=t=>Math.round(1e5*t)/1e5,m=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g=(t,e)=>i=>!!("string"==typeof i&&f.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),y=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(m);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},v={...u,transform:t=>Math.round(h(0,255,t))},x={test:g("rgb","red"),parse:y("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+v.transform(t)+", "+v.transform(e)+", "+v.transform(i)+", "+p(c.transform(n))+")"},w={test:g("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:x.transform},b=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),T=b("deg"),P=b("%"),S=b("px"),A=b("vh"),E=b("vw"),M={...P,parse:t=>P.parse(t)/100,transform:t=>P.transform(100*t)},k={test:g("hsl","hue"),parse:y("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+P.transform(p(e))+", "+P.transform(p(i))+", "+p(c.transform(n))+")"},V={test:t=>x.test(t)||w.test(t)||k.test(t),parse:t=>x.test(t)?x.parse(t):k.test(t)?k.parse(t):w.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?x.transform(t):k.transform(t),getAnimatableNone:t=>{let e=V.parse(t);return e.alpha=0,V.transform(e)}},C=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,D="number",R="color",j=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function L(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(j,t=>(V.test(t)?(n.color.push(r),s.push(R),i.push(V.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(D),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function B({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r0},parse:function(t){return L(t).values},createTransformer:function(t){return B(L(t))},getAnimatableNone:function(t){let e=L(t);return B(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:V.test(t)?V.getAnimatableNone(t):t)(t,e.split[i])))}},O=new Set(["brightness","contrast","saturate","opacity"]);function I(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(m)||[];if(!n)return t;let s=i.replace(n,""),r=+!!O.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let N=/\b([a-z-]*)\(.*?\)/gu,W={...F,getAnimatableNone:t=>{let e=t.match(N);return e?e.map(I).join(" "):t}},U={...F,getAnimatableNone:t=>{let e=F.parse(t);return F.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},$={...u,transform:Math.round},z={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:T,pathRotation:T,rotateX:T,rotateY:T,rotateZ:T,scale:d,scaleX:d,scaleY:d,scaleZ:d,skew:T,skewX:T,skewY:T,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:c,originX:M,originY:M,originZ:S,zIndex:$,fillOpacity:c,strokeOpacity:c,numOctaves:$},H={...z,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:W,WebkitFilter:W,mask:U,WebkitMask:U},Y=t=>H[t],X=()=>({translate:0,scale:1,origin:0,originPoint:0}),K=()=>({x:X(),y:X()}),G=()=>({min:0,max:0}),q=()=>({x:G(),y:G()}),Z=t=>!!(t&&t.getVelocity),_=new Set(["width","height","top","left","right","bottom",...a]),J=t=>e=>e.test(t),Q=[u,S,P,T,E,A,{test:t=>"auto"===t,parse:t=>t}],tt=t=>Q.find(J(t)),te=()=>{},ti=()=>{};r.default;let tn=t=>e=>"string"==typeof e&&e.startsWith(t),ts=tn("--"),tr=tn("var(--"),to=t=>!!tr(t)&&ta.test(t.split("/*")[0].trim()),ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tl(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let th=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tu=t=>180*t/Math.PI,tc=t=>tp(tu(Math.atan2(t[1],t[0]))),td={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tc,rotateZ:tc,skewX:t=>tu(Math.atan(t[1])),skewY:t=>tu(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tp=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tf=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tf,scale:t=>(tm(t)+tf(t))/2,rotateX:t=>tp(tu(Math.atan2(t[6],t[5]))),rotateY:t=>tp(tu(Math.atan2(-t[2],t[0]))),rotateZ:tc,rotate:tc,skewX:t=>tu(Math.atan(t[4])),skewY:t=>tu(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ty(t){return+!!t.includes("scale")}function tv(t,e){let i,n;if(!t||"none"===t)return ty(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tg,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=td,n=e}if(!n)return ty(e);let r=i[e],o=n[1].split(",").map(tx);return"function"==typeof r?r(o):o[r]}function tx(t){return parseFloat(t.trim())}let tw=t=>t===u||t===S,tb=new Set(["x","y","z"]),tT=a.filter(t=>!tb.has(t)),tP={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tv(e,"x"),y:(t,{transform:e})=>tv(e,"y")};tP.translateX=tP.x,tP.translateY=tP.y;let tS=t=>t,tA={},tE=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tM(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=tE.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&n?e:i;return s&&r.add(t),a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,n){s=!0;return}n=!0;let r=e;e=i,i=r,e.forEach(a),e.clear(),n=!1,s&&(s=!1,l.process(t))}};return l}(r),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let r=tA.useManualTiming,o=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),h.process(s),u.process(s),c.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tE.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;etypeof requestAnimationFrame?requestAnimationFrame:tS,!0),tR=new Set,tj=!1,tL=!1,tB=!1;function tF(){if(tL){let t=Array.from(tR).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tT.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tL=!1,tj=!1,tR.forEach(t=>t.complete(tB)),tR.clear()}function tO(){tR.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tL=!0)})}class tI{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tR.add(this),tj||(tj=!0,tk.read(tO),tk.resolveKeyframes(tF))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tz=t=>1e3*t;function tH(t,e){-1===t.indexOf(e)&&t.push(e)}function tY(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tX{constructor(){this.subscriptions=[]}add(t){return tH(this.subscriptions,t),()=>tY(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s(void 0===e&&(e=t()),e)}let tq={};function tZ(t,e){let i=tG(t);return()=>tq[e]??i()}let t_=tZ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tJ=tZ(()=>void 0!==window.ViewTimeline,"viewTimeline"),tQ=t=>null!==t;function t0(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(tQ),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}class t1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t2=t=>Array.isArray(t)&&"number"==typeof t[0],t5=tZ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t3=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t4([0,.65,.55,1]),circOut:t4([.55,0,1,.45]),backIn:t4([.31,.01,.66,-.59]),backOut:t4([.33,1.53,.69,.99])};function t6(t){return"function"==typeof t&&"applyToOptions"in t}class t8 extends t1{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,ti("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t6(t)&&t5()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?t5()?t3(e,i):"ease-out":t2(e)?t4(e):Array.isArray(e)?e.map(e=>t(e,i)||t9.easeOut):t9[e]}(a,s);Array.isArray(c)&&(u.easing=c);let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};return h&&(d.pseudoElement=h),t.animate(u,d)}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=t0(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tK(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tz(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t_())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tS):n(this)}}let t7=new Set(["opacity","clipPath","filter","transform"]),{schedule:et,cancel:ee}=tM(queueMicrotask,!1);function ei(){e=void 0}let en={now:()=>(void 0===e&&en.set(tC.isProcessing||tA.useManualTiming?tC.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(ei)}},es=(t,e)=>e?1e3/e*t:0,er={current:void 0};class eo{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=en.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=en.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tX);let i=this.events[t].add(e);return"change"===t?()=>{i(),tk.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return er.current&&er.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=en.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return es(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ea(t,e){return new eo(t,e)}let el=[...Q,V,F],eh=new WeakMap;function eu(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ec(t){return"string"==typeof t||Array.isArray(t)}let ed=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ep=["initial",...ed];function em(t){return eu(t.animate)||ep.some(e=>ec(t[e]))}function ef(t){return!!(em(t)||t.variants)}let eg={current:null},ey={current:!1},ev="u">typeof window;function ex(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ew(t,e,i,n){if("function"==typeof e){let[s,r]=ex(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=ex(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let eb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eT={};class eP{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tI,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=en.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ey.current||function(){if(ey.current=!0,ev)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eg.current=t.matches;t.addEventListener("change",e),e()}else eg.current=!1}(),this.shouldReduceMotion=eg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tV(this.notifyUpdate),tV(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t7.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new t8({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:tz(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=l.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tk.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eT){let e=eT[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ea(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!el.find(J(n))&&F.test(e)&&(i=tW(t,e))}this.setBaseTarget(t,Z(i)?i.get():i)}return Z(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=ew(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||Z(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tX),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){et.render(this.render)}}class eS extends eP{constructor(){super(...arguments),this.KeyframeResolver=t$}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Z(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eA(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eE=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ek=a.length;function eV(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,h=!1;for(let t in e){let i=e[t];if(l.has(t)){o=!0;continue}if(ts(t)){s[t]=i;continue}{let e=eE(i,z[t]);t.startsWith("origin")?(h=!0,r[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r"string"==typeof t&&"svg"===t.toLowerCase();function eF(t,{style:e,vars:i},n,s){let r,o=t.style;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,n),i)o.setProperty(r,i[r])}let eO=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function eI(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eN={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!S.test(t))return t;else t=parseFloat(t);let i=eI(t,e.target.x),n=eI(t,e.target.y);return`${i}% ${n}%`}},eW=(t,e,i)=>t+(e-t)*i,eU={borderRadius:{...eN,applyTo:[...eO]},borderTopLeftRadius:eN,borderTopRightRadius:eN,borderBottomLeftRadius:eN,borderBottomRightRadius:eN,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=F.parse(t);if(n.length>5)return t;let s=F.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=eW(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function e$(t,{layout:e,layoutId:i}){return l.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eU[t]||"opacity"===t)}function ez(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(Z(n[e])||s&&Z(s[e])||e$(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function eH(t,e,i){let n=ez(t,e,i);for(let i in t)(Z(t[i])||Z(e[i]))&&(n[-1!==a.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eY extends eS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.has(e)){let t=Y(e);return t&&t.default||0}return e=eL.has(e)?e:eA(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eH(t,e,i)}build(t,e,i){ej(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eF(t,e,void 0,n),e.attrs)t.setAttribute(eL.has(i)?i:eA(i),e.attrs[i])}mount(t){this.isSVGTag=eB(t.tagName),super.mount(t)}}function eX({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eK(t){return void 0===t||1===t}function eG({scale:t,scaleX:e,scaleY:i}){return!eK(t)||!eK(e)||!eK(i)}function eq(t){return eG(t)||eZ(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eZ(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function e_(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function eJ(t,e=0,i=1,n,s){t.min=e_(t.min,e,i,n,s),t.max=e_(t.max,e,i,n,s)}function eQ(t,{x:e,y:i}){eJ(t.x,e.translate,e.scale,e.originPoint),eJ(t.y,i.translate,i.scale,i.originPoint)}function e0(t,e){t.min+=e,t.max+=e}function e1(t,e,i,n,s=.5){let r=eW(t.min,t.max,s);eJ(t,e,i,r,n)}function e2(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e5(t,e,i){let n=i??t;e1(t.x,e2(e.x,n.x),e.scaleX,e.scale,e.originX),e1(t.y,e2(e.y,n.y),e.scaleY,e.scale,e.originY)}function e3(t,e){return eX(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e4 extends eS{constructor(){super(...arguments),this.type="html",this.renderInstance=eF}readValueFromInstance(t,e){if(l.has(e))return this.projection?.isProjecting?ty(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tv(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(ts(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e3(t,e)}build(t,e,i){eV(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return ez(t,e,i)}}var e9=t.i(71645);let e6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e8(t){if("string"!=typeof t||t.includes("-"));else if(e6.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let e7=(0,e9.createContext)({}),it=(0,e9.createContext)({strict:!1}),ie=(0,e9.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ii=(0,e9.createContext)({});function is(t){return Array.isArray(t)?t.join(" "):t}let ir=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function io(t,e,i){for(let n in e)Z(e[n])||e$(n,i)||(t[n]=e[n])}let ia=()=>({...ir(),attrs:{}}),il=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ih(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||il.has(t)}let iu=t=>!ih(t);try{s=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof s&&(iu=t=>t.startsWith("on")?!ih(t):s(t))}catch{}function ic(t){return Z(t)?t.get():t}let id=(0,e9.createContext)(null);function ip(t){let e=(0,e9.useRef)(null);return null===e.current&&(e.current=t()),e.current}let im=t=>(e,i)=>{let n=(0,e9.useContext)(ii),s=(0,e9.useContext)(id),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=ic(r[t]);let{initial:o,animate:a}=t,l=em(t),h=ef(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!eu(c)){let e=Array.isArray(c)?c:[c];for(let i=0;iiv[e].some(e=>!!t[e])};eT=t,ix=!0}(),eT}let ib=Symbol.for("motionComponentSymbol"),iT="data-"+eA("framerAppearId"),iP=(0,e9.createContext)({});function iS(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iA="u">typeof window?e9.useLayoutEffect:e9.useEffect;function iE(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=iw();for(let i in t)e[i]={...e[i],...t[i]};eT=e}(n);let r=i?"svg"===i:e8(t),a=r?iy:ig;function l(i,n){var l;let h,u,c,d={...(0,e9.useContext)(ie),...i,layoutId:function({layoutId:t}){let e=(0,e9.useContext)(e7).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:p}=d,m=function(t){let{initial:e,animate:i}=function(t,e){if(em(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ec(e)?e:void 0,animate:ec(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e9.useContext)(ii));return(0,e9.useMemo)(()=>({initial:e,animate:i}),[is(e),is(i)])}(i),f=a(i,p);if(!p&&"u">typeof window){(0,e9.useContext)(it).strict;let e=function(t){let{drag:e,layout:i}=iw();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);h=e.MeasureLayout,m.visualElement=function(t,e,i,n,s,r){let{visualElement:o}=(0,e9.useContext)(ii),a=(0,e9.useContext)(it),l=(0,e9.useContext)(id),h=(0,e9.useContext)(ie),u=h.reducedMotion,c=h.skipAnimations,d=(0,e9.useRef)(null),p=(0,e9.useRef)(!1);n=n||a.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:c,isSVG:r}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let m=d.current,f=(0,e9.useContext)(iP);m&&!m.projection&&s&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&iS(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(d.current,i,s,f);let g=(0,e9.useRef)(!1);(0,e9.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[iT],v=(0,e9.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iA(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,e9.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,f,d,s,e.ProjectionNode,r)}return(0,o.jsxs)(ii.Provider,{value:m,children:[h&&m.visualElement?(0,o.jsx)(h,{visualElement:m.visualElement,...d}):null,function(t,e,i,{latestValues:n},s,r=!1,o){let a=(o??e8(t)?function(t,e,i,n){let s=(0,e9.useMemo)(()=>{let i=ia();return ej(i,e,eB(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};io(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},io(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e9.useMemo)(()=>{let i=ir();return eV(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!Z(t[s])&&(iu(s)||!0===i&&ih(s)||!e&&!ih(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),h=t!==e9.Fragment?{...l,...a,ref:i}:{},{children:u}=e,c=(0,e9.useMemo)(()=>Z(u)?u.get():u,[u]);return(0,e9.createElement)(t,{...h,children:c})}(t,i,(l=m.visualElement,u=(0,e9.useRef)(n),(0,e9.useInsertionEffect)(()=>{u.current=n}),c=(0,e9.useRef)(null),(0,e9.useCallback)(t=>{t&&f.onMount?.(t),l&&(t?l.mount(t):l.unmount());let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(c.current=i)}else c.current?(c.current(),c.current=null):e(t);else e&&(e.current=t)},[l])),f,p,e,r)]})}l.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let h=(0,e9.forwardRef)(l);return h[ib]=t,h}class iM{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ik(t,e,i){let n=t.getProps();return ew(n,e,void 0!==i?i:n.custom,t)}function iV(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iC(t,e){let i=t?.[e]??t?.default??t;return i!==t?iV(i,t):i}let iD=t=>Array.isArray(t);function iR(t,e){let i=t.getValue("willChange");if(Z(i)&&i.add)return i.add(e);if(!i&&tA.WillChange){let i=new tA.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let ij=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iL(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iB(t,e){return i=>i>0?e:t}let iF=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},iO=[w,x,k];function iI(t){let e=iO.find(e=>e.test(t));if(te(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===k&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=iL(a,n,t+1/3),r=iL(a,n,t),o=iL(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let iN=(t,e)=>{let i=iI(t),n=iI(e);if(!i||!n)return iB(t,e);let s={...i};return t=>(s.red=iF(i.red,n.red,t),s.green=iF(i.green,n.green,t),s.blue=iF(i.blue,n.blue,t),s.alpha=eW(i.alpha,n.alpha,t),x.transform(s))},iW=new Set(["none","hidden"]);function iU(t,e){return i=>eW(t,e,i)}function i$(t){return"number"==typeof t?iU:"string"==typeof t?to(t)?iB:V.test(t)?iN:iY:Array.isArray(t)?iz:"object"==typeof t?V.test(t)?iN:iH:iB}function iz(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>i$(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let iY=(t,e)=>{let i=F.createTransformer(e),n=L(t),s=L(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return te(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iB(t,e);if(iW.has(t)&&!s.values.length||iW.has(e)&&!n.values.length)return iW.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ij(iz(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tk.update(e,t),stop:()=>tV(e),now:()=>tC.isProcessing?tC.timestamp:en.now()}};function iG(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iq=.01,iZ=2,i_=.005,iJ=.5;function iQ(t,e){return t*Math.sqrt(1-e*e)}let i0=["duration","bounce"],i1=["stiffness","damping","mass"];function i2(t,e){return e.some(e=>void 0!==t[e])}function i5(t=.3,e=.3){let i,n,s,r,o,a,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:c}=l,d=l.keyframes[0],p=l.keyframes[l.keyframes.length-1],m={done:!1,value:d},{stiffness:f,damping:g,mass:y,duration:v,velocity:x,isResolvedFromDuration:w}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i2(t,i1)&&i2(t,i0))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*h(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;te(t<=tz(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=h(.05,1,o),t=h(.01,10,t/1e3),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/iQ(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iQ(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=tz(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),b=x||0,T=g/(2*Math.sqrt(f*y)),P=p-d,S=Math.sqrt(f/y)/1e3,A=5>Math.abs(P);if(u||(u=A?iq:iZ),c||(c=A?i_:iJ),T<1)s=iQ(S,T),r=(b+T*S*P)/s,i=t=>p-Math.exp(-T*S*t)*(r*Math.sin(s*t)+P*Math.cos(s*t)),o=T*S*r+P*s,a=T*S*P-r*s,n=t=>Math.exp(-T*S*t)*(o*Math.sin(s*t)+a*Math.cos(s*t));else if(1===T){i=t=>p-Math.exp(-S*t)*(P+(b+S*P)*t);let t=b+S*P;n=e=>Math.exp(-S*e)*(S*t*e-b)}else{let t=S*Math.sqrt(T*T-1);i=e=>{let i=Math.exp(-T*S*e),n=Math.min(t*e,300);return p-i*((b+T*S*P)*Math.sinh(n)+t*P*Math.cosh(n))/t};let e=(b+T*S*P)/t,s=T*S*e-P*t,r=T*S*P-e*t;n=e=>{let i=Math.exp(-T*S*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let E={calculatedDuration:w&&v||null,velocity:t=>tz(n(t)),next:t=>{if(!w&&T<1){let e=Math.exp(-T*S*t),i=Math.sin(s*t),n=Math.cos(s*t),l=p-e*(r*i+P*n);return m.done=Math.abs(tz(e*(o*i+a*n)))<=u&&Math.abs(p-l)<=c,m.value=m.done?p:l,m}let e=i(t);return w?m.done=t>=v:m.done=Math.abs(tz(n(t)))<=u&&Math.abs(p-e)<=c,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(iG(E),2e4),e=t3(e=>E.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return E}function i3(t,e,i){let n=Math.max(e-5,0);return es(i-t(n),e-n)}function i4({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?y:i},b=t=>{let e;if(e=m.value,void 0!==a&&el){var i;c=t,d=i5({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i){let e=!1;return(d||void 0!==c||(e=!0,w(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),m)}}}i5.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(iG(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,i5);return t.ease=e.ease,t.duration=tz(e.duration),t.type="keyframes",t};let i9=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i6(t,e,i,n){return t===e&&i===n?tS:s=>0===s||1===s?s:i9(function(t,e,i,n,s){let r,o,a=0;do(r=i9(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(s,0,1,t,i),e,n)}let i8=i6(.42,0,1,1),i7=i6(0,0,.58,1),nt=i6(.42,0,.58,1),ne=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ni=t=>e=>1-t(1-e),nn=i6(.33,1.53,.69,.99),ns=ni(nn),nr=ne(ns),no=t=>t>=1?1:(t*=2)<1?.5*ns(t):.5*(2-Math.pow(2,-10*(t-1))),na=t=>1-Math.sin(Math.acos(t)),nl=ni(na),nh=ne(na),nu={linear:tS,easeIn:i8,easeInOut:nt,easeOut:i7,circIn:na,circInOut:nh,circOut:nl,backIn:ns,backInOut:nr,backOut:nn,anticipate:no},nc=t=>{if(t2(t)){ti(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return i6(e,i,n,s)}return"string"==typeof t?(ti(void 0!==nu[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nu[t]):t},nd=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function np(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(ti(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||tA.mix||iX,r=t.length-1;for(let i=0;i{if(o&&i1)for(;nu(h(t[0],t[r-1],e)):u}function nm(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=nd(0,e,n);t.push(eW(i,1,s))}}(e,t.length-1),e}function nf({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nc):nc(n),o={done:!1,value:e[0]},a=np((s=i&&i.length===e.length?i:nm(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||nt).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let ng={decay:i4,inertia:i4,tween:nf,keyframes:nf,spring:i5};function ny(t){"string"==typeof t.type&&(t.type=ng[t.type])}let nv=t=>t/100;class nx extends t1{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==en.now()&&this.tick(en.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;ny(t);let{type:e=nf,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||nf;a!==nf&&"number"!=typeof o[0]&&(this.mixKeyframes=ij(nv,iX(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iG(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let w=this.currentTime,b=n;if(d){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/a)):"mirror"===p&&(b=o)),w=h(0,1,i)*a}x?(this.delayState.value=c[0],i=this.delayState):i=b.next(w),r&&!x&&(i.value=r(i.value));let{done:T}=i;x||null===l||(T=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return P&&f!==i4&&(i.value=t0(c,this.options,y,this.speed)),g&&g(i.value),P&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tz(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i3(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(en.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iK,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(en.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nw={anticipate:no,backInOut:nr,circInOut:nh};class nb extends t8{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nw&&(t.ease=nw[t.ease])}(t),ny(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new nx({...r,autoplay:!1}),a=Math.max(10,en.now()-this.startTime),l=h(0,10,a-10),u=o.sample(a).value,{name:c}=this.options;s&&c&&tK(s,c,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let nT=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(F.test(t)||"0"===t)&&!t.startsWith("url("));function nP(t){t.duration=0,t.type="keyframes"}let nS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nA=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nE=tG(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nM extends t1{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=en.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:h,...u},d=h?.KeyframeResolver||tI;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=en.now();let c=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=nT(s,e),a=nT(r,e);return te(o===a,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=c&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return nE()&&i&&(t7.has(i)||nA.has(i)&&function(t){for(let e=0;e{this.notifyFinished()}).catch(tS),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tB=!0,tO(),tF(),tB=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nk={type:"spring",stiffness:500,damping:25,restSpeed:10},nV={type:"keyframes",duration:.8},nC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nD=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nR=(t,e,i,n={},s,r)=>o=>{let a=iC(n,t)||{},h=a.delay||n.delay||0,{elapsed:u=0}=n;u-=tz(h);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!nD.has(e))return!0;return!1}(a)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?nV:l.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nk:nC)(t,c)),c.duration&&(c.duration=tz(c.duration)),c.repeatDelay&&(c.repeatDelay=tz(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(nP(c),0===c.delay&&(d=!0)),(tA.instantAnimations||tA.skipAnimations||s?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,nP(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!r&&void 0!==e.get()){let t=t0(c.keyframes,a);if(void 0!==t)return void tk.update(()=>{c.onUpdate(t),c.onComplete()})}return a.isSync?new nx(c):new nM(c)};function nj(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?iV(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;n&&(r=n);let c=[],d=s&&t.animationState&&t.animationState.getState()[s],p=r?.path;for(let e in p&&p.animateVisualElement(t,a,r,i,c),a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...iC(r||{},e)};u&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!o.velocity){tk.update(()=>n.set(s));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[iT];if(i){let t=window.MotionHandoffAnimation(i,e,tk);null!==t&&(o.startTime=t,p=!0)}}iR(t,e);let m=h??t.shouldReduceMotion;n.start(nR(e,n,s,m&&_.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&c.push(f)}if(o){let e=()=>tk.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=ik(t,e)||{};for(let e in s={...s,...i}){var r;let i=iD(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ea(i))}}(t,o)});c.length?Promise.all(c).then(e):e()}return c}function nL(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function nB(t,e,i={}){let n=ik(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nj(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nB(l,e,{...o,delay:i+("function"==typeof n?0:n)+nL(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}let nF=ep.length;function nO(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nt.removeEventListener(e,i,n)}let nY={x:!1,y:!1};function nX(t){return t.max-t.min}function nK(t,e,i,n=.5){t.origin=n,t.originPoint=eW(e.min,e.max,t.origin),t.scale=nX(i)/nX(e),t.translate=eW(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nG(t,e,i,n){nK(t.x,e.x,i.x,n?n.originX:void 0),nK(t.y,e.y,i.y,n?n.originY:void 0)}function nq(t,e,i,n=0){t.min=(n?eW(i.min,i.max,n):i.min)+e.min,t.max=t.min+nX(e)}function nZ(t,e,i,n=0){let s=n?eW(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+nX(e)}function n_(t,e,i,n){nZ(t.x,e.x,i.x,n?.x),nZ(t.y,e.y,i.y,n?.y)}let nJ=t=>"object"==typeof t&&null!==t;function nQ(t){return nJ(t)&&"ownerSVGElement"in t}function n0(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let n1=new WeakMap,n2=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:nQ(n)&&"getBBox"in n?n.getBBox()[e]:n[i],n5=n2("inline","width","offsetWidth"),n3=n2("block","height","offsetHeight");function n4({target:t,borderBoxSize:e}){n1.get(t)?.forEach(i=>{i(t,{get width(){return n5(t,e)},get height(){return n3(t,e)}})})}function n9(t){t.forEach(n4)}let n6=new Set;function n8(t,e){let s;return"function"==typeof t?(n6.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n6.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n6.delete(t),n6.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n9)),(s=n0(t)).forEach(t=>{let n=n1.get(t);n||(n=new Set,n1.set(t,n)),n.add(e),i?.observe(t)}),()=>{s.forEach(t=>{let n=n1.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let n7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),st=new Set(["INPUT","SELECT","TEXTAREA"]),se=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function si(t){return{point:{x:t.pageX,y:t.pageY}}}function sn(t,e,i,n){return nH(t,e,t=>se(t)&&i(t,si(t)),n)}let ss=({current:t})=>t?t.ownerDocument.defaultView:null,sr=(t,e)=>Math.abs(t-e),so=new Set(["auto","scroll"]);class sa{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sl(this.lastRawMoveEventInfo,this.transformPagePoint));let i=su(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(sr(t.x,e.x)**2+sr(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=tC;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=sl(e,this.transformPagePoint),tk.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=su("pointercancel"===t.type?this.lastMoveEventInfo:sl(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!se(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const a=sl(si(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tC;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,su(a,this.history));const c={passive:!0,capture:!0};this.removeListeners=ij(sn(this.contextWindow,"pointermove",this.handlePointerMove,c),sn(this.contextWindow,"pointerup",this.handlePointerUp,c),sn(this.contextWindow,"pointercancel",this.handlePointerUp,c)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(so.has(t.overflowX)||so.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tk.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tV(this.updatePoint)}}function sl(t,e){return e?{point:e(t.point)}:t}function sh(t,e){return{x:t.x-e.x,y:t.y-e.y}}function su({point:t},e){return{point:t,delta:sh(t,sc(e)),offset:sh(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=sc(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>tz(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*tz(.1)&&(i=t[1]);let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function sc(t){return t[t.length-1]}function sd(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sp(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min{e&&this.snapToCursor(si(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nY[t])return null;else return nY[t]=!0,()=>{nY[t]=!1};return nY.x||nY.y?null:(nY.x=nY.y=!0,()=>{nY.x=nY.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nz(t=>{let e=this.getAxisMotionValue(t).get()||0;if(P.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nX(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tk.update(()=>s(t,e),!1,!0),iR(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&tk.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new sa(t,{onSessionStart:s,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:ss(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&tk.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!sx(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?eW(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iS(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:sd(t.x,i,s),y:sd(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sm(t,"left","right"),y:sm(t,"top","bottom")}}(e),n!==this.constraints&&!iS(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nz(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iS(e))return!1;let n=e.current;ti(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());let r=function(t,e,i){let n=e3(t,i),{scroll:s}=e;return s&&(e0(n.x,s.offset.x),e0(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:sp(t.x,r.x),y:sp(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eX(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nz(o=>{if(!sx(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iR(this.visualElement,t),i.start(nR(t,i,0,e,this.visualElement,!1))}stopAnimation(){nz(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nz(e=>{let{drag:i}=this.getProps();if(!sx(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-eW(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iS(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nz(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,o,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,o=nX(i),(a=nX(s))>o?r=nd(s.min,s.max-o,i.min):o>a&&(r=nd(i.min,i.max-a,s.min)),h(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nz(e=>{if(!sx(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(eW(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;sg.set(this.visualElement,this);let e=this.visualElement.current,i=sn(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,r=s!==e&&(st.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,o,{dragConstraints:a}=this.getProps();iS(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,r=n8(i,sv(s=()=>this.scalePositionWithinConstraints())),o=n8(n,sv(s)),t=()=>{r(),o()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tk.read(n);let o=nH(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nz(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function sv(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sx(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sw=t=>(e,i)=>{t&&tk.update(()=>t(e,i),!1,!0)},sb={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sT=e9;let sP=!1;class sS extends sT.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sP&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sb.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),sP=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||tk.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),et.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sP=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sA(t){let[e,i]=function(t=!0){let e=(0,e9.useContext)(id);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,e9.useId)();(0,e9.useEffect)(()=>{if(t)return s(r)},[t]);let o=(0,e9.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,sT.useContext)(e7);return(0,o.jsx)(sS,{...t,layoutGroup:n,switchLayoutGroup:(0,sT.useContext)(iP),isPresent:e,safeToRemove:i})}let sE=eO.length,sM=t=>"string"==typeof t?parseFloat(t):t,sk=t=>"number"==typeof t||S.test(t);function sV(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sC=sR(0,.5,nl),sD=sR(.5,.95,tS);function sR(t,e,i){return n=>ne?1:i(nd(t,e,n))}function sj(t,e){t.min=e.min,t.max=e.max}function sL(t,e){sj(t.x,e.x),sj(t.y,e.y)}function sB(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sF(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sO(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(P.test(e)&&(e=parseFloat(e),e=eW(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eW(r.min,r.max,n);t===r&&(a-=e),t.min=sF(t.min,e,i,a,s),t.max=sF(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let sI=["x","scaleX","originX"],sN=["y","scaleY","originY"];function sW(t,e,i,n){sO(t.x,e,sI,i?i.x:void 0,n?n.x:void 0),sO(t.y,e,sN,i?i.y:void 0,n?n.y:void 0)}function sU(t){return 0===t.translate&&1===t.scale}function s$(t){return sU(t.x)&&sU(t.y)}function sz(t,e){return t.min===e.min&&t.max===e.max}function sH(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sY(t,e){return sH(t.x,e.x)&&sH(t.y,e.y)}function sX(t){return nX(t.x)/nX(t.y)}function sK(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sG{constructor(){this.members=[]}add(t){tH(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tY(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tY(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let sq=(t,e)=>t.depth-e.depth;class sZ{constructor(){this.children=[],this.isDirty=!1}add(t){tH(this.children,t),this.isDirty=!0}remove(t){tY(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sq),this.isDirty=!1,this.children.forEach(t)}}let s_=["","X","Y","Z"],sJ=0;function sQ(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function s0({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sJ++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(s5),this.nodes.forEach(ri),this.nodes.forEach(rn),this.nodes.forEach(s3)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;tk.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=en.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tV(r),s(i-250))},tk.setup(r,!0),i=()=>tV(r),sb.hasAnimatedSinceResize&&(sb.hasAnimatedSinceResize=!1,this.nodes.forEach(re))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rh,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!sY(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iC(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||re(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tV(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rs),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[iT];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tk,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nX(this.snapshot.measuredBox.x)||nX(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=q());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sB(this.prevProjectionDelta.x,this.projectionDelta.x),sB(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nG(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&sK(this.projectionDelta.x,this.prevProjectionDelta.x)&&sK(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=K(),this.projectionDelta=K(),this.projectionDeltaWithTransform=K()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,r=s?s.latestValues:{},o={...this.latestValues},a=K();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=q(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(h&&!c&&!0===this.options.crossfade&&!this.path.some(rl));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(s?(a.x.translate=s.x,a.x.scale=eW(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=s.y,a.y.scale=eW(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(ro(a.x,t.x,i),ro(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,g,y,v;n_(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,ra(f.x,g.x,y.x,v),ra(f.y,g.y,y.y,v),n&&(u=this.relativeTarget,m=n,sz(u.x,m.x)&&sz(u.y,m.y))&&(this.isProjectionDirty=!1),n||(n=q()),sL(n,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,n,s,r){s?(t.opacity=eW(0,i.opacity??1,sC(n)),t.opacityExit=eW(e.opacity??1,0,sD(n))):r&&(t.opacity=eW(e.opacity??1,i.opacity??1,n));for(let s=0;s{var e,i,n;let s;sb.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ea(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=Z(e)?e:ea(e)).start(nR("",s,i,n)),s.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rp(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||q();let e=nX(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nX(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sL(e,i),e5(e,s),nG(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sG),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&sQ("z",t,n,this.animationValues);for(let e=0;et.currentAnimation?.stop()),this.root.nodes.forEach(s9),this.root.sharedNodes.clear()}}}function s1(t){t.updateLayout()}function s2(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)nz(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nX(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";sj(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rp(s,e.layoutBox,i)&&nz(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=nX(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=K();nG(o,i,e.layoutBox);let a=K();r?nG(a,t.applyTransform(n,!0),e.measuredBox):nG(a,i,e.layoutBox);let l=!s$(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=t.options.layoutAnchor||void 0,a=q();n_(a,e.layoutBox,s.layoutBox,o);let l=q();n_(l,i,r.layoutBox,o),sY(a,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function s5(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function s3(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function s4(t){t.clearSnapshot()}function s9(t){t.clearMeasurements()}function s6(t){t.isLayoutDirty=!0,t.updateLayout()}function s8(t){t.isLayoutDirty=!1}function s7(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function rt(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function re(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ri(t){t.resolveTargetDelta()}function rn(t){t.calcProjection()}function rs(t){t.resetSkewAndRotation()}function rr(t){t.removeLeadSnapshot()}function ro(t,e,i){t.translate=eW(e.translate,0,i),t.scale=eW(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ra(t,e,i,n){t.min=eW(e.min,i.min,n),t.max=eW(e.max,i.max,n)}function rl(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rh={duration:.45,ease:[.4,0,.1,1]},ru=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rc=ru("applewebkit/")&&!ru("chrome/")?Math.round:tS;function rd(t){t.min=rc(t.min),t.max=rc(t.max)}function rp(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sX(e)-sX(i)))}function rm(t){return t!==t.root&&t.scroll?.wasRoot}let rf=s0({attachResizeListener:(t,e)=>nH(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rg={current:void 0},ry=s0({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rg.current){let t=new rf({});t.mount(window),t.setOptions({layoutScroll:!0}),rg.current=t}return rg.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rv(t,e){let i=n0(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rx(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tk.postRender(()=>s(e,si(e)))}function rw(t){return nJ(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}let rb=(t,e)=>!!e&&(t===e||rb(t,e.parentElement)),rT=new WeakSet;function rP(t){return e=>{"Enter"===e.key&&t(e)}}function rS(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rA(t){return se(t)&&!(nY.x||nY.y)}let rE=new WeakSet;function rM(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&tk.postRender(()=>s(e,si(e)))}let rk=new WeakMap,rV=new WeakMap,rC=t=>{let e=rk.get(t.target);e&&e(t)},rD=t=>{t.forEach(rC)},rR={some:0,all:1},rj=function(t,e){if("u"iE(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,iE(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iM{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nB(t,e,i)));else if("string"==typeof e)n=nB(t,e,i);else{let s="function"==typeof e?ik(t,e,i.custom):e;n=Promise.all(nj(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nU(),n=!0,s=!1,r=e=>(i,n)=>{let s=ik(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;td&&v,P=!1,S=Array.isArray(y)?y:[y],A=S.reduce(r(f),{});!1===x&&(A={});let{prevResolvedValues:E={}}=g,M={...E,...A},k=e=>{T=!0,u.has(e)&&(P=!0,u.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=A[t],i=E[t];if(!c.hasOwnProperty(t))(iD(e)&&iD(i)?!nO(e,i)||b:e!==i)?null!=e?k(t):u.add(t):void 0!==e&&u.has(t)?k(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=A,g.isActive&&(c={...c,...A}),(n||s)&&t.blockInitialAnimation&&(T=!1);let V=w&&b,C=!V||P;T&&C&&h.push(...S.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!V&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=ik(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nL(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=ik(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nU(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iM{constructor(){super(...arguments),this.id=n$++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=ik(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iM{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rR[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rV.has(i)||rV.set(i,{});let n=rV.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(rD,{root:t,...e})),n[s]}(a),rk.set(t,l),e.observe(t),()=>{rk.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iM{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=rv(t,i),o=t=>{let n=t.currentTarget;if(!rA(t)||rE.has(t))return;rT.add(n),i.stopPropagation&&rE.add(t);let r=e(n,t),o={...s,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",h,o),rT.has(n)&&rT.delete(n),rA(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{a(t,n===window||n===document||i.useGlobalTarget||rb(n,t.target))},h=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),rw(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rP(()=>{if(rT.has(i))return;rS(i,"down");let t=rP(()=>{rS(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rS(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),n7.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rM(this.node,e,"Start"),(t,{success:e})=>rM(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iM{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ij(nH(this.node.current,"focus",()=>this.onFocus()),nH(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iM{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=rv(t,i);return n.forEach(t=>{let i,n=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nY.x||nY.y)return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),r}(t,(t,e)=>(rx(this.node,e,"Start"),t=>rx(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iM{constructor(){super(...arguments),this.removePointerDownListener=tS}onPointerDown(t){this.session=new sa(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ss(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sw(t),onStart:sw(e),onMove:sw(i),onEnd:(t,e)=>{delete this.session,n&&tk.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=sn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iM{constructor(t){super(t),this.removeGroupControls=tS,this.removeListeners=tS,this.controls=new sy(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tS}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:ry,MeasureLayout:sA},layout:{ProjectionNode:ry,MeasureLayout:sA}},(t,e)=>e.isSVG??e8(t)?new eY(e):new e4(e,{allowProjection:t!==e9.Fragment}));function rL(t,e){let i,n=()=>{let{currentTime:n}=e,s=(null===n?0:n.value)/100;i!==s&&t(s),i=s};return tk.preUpdate(n,!0),()=>tV(n)}function rB(t){return!("u"({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),rO={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function rI(t,e,i,n){let s=i[e],{length:r,position:o}=rO[e],a=s.current,l=i.time;s.current=Math.abs(t[`scroll${o}`]),s.scrollLength=t[`scroll${r}`]-t[`client${r}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=nd(0,s.scrollLength,s.current);let h=n-l;s.velocity=h>50?0:es(s.current-a,h)}let rN={start:0,center:.5,end:1};function rW(t,e,i=0){let n=0;if(t in rN&&(t=rN[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let rU=[0,0],r$=[[0,0],[1,1]],rz={x:0,y:0},rH=new WeakMap,rY=new WeakMap,rX=new WeakMap,rK=new WeakMap,rG=new WeakMap,rq=t=>t===document.scrollingElement?window:t;function rZ(t,{container:e=document.scrollingElement,trackContentSize:i=!1,...n}={}){if(!e)return tS;let s=rX.get(e);s||(s=new Set,rX.set(e,s));let r=function(t,e,i,n={}){return{measure:e=>{!function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight}(t,n.target,i),rI(t,"x",i,e),rI(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=r$}=i,{target:s=t,axis:r="y"}=i,o="y"===r?"height":"width",a=s!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(rw(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let s=null,r=n.parentNode;for(;!s;)"svg"===r.tagName&&(s=r),r=n.parentNode;n=s}else break;return i}(s,t):rz,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in s&&"svg"!==s.tagName?s.getBBox():{width:s.clientWidth,height:s.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let c=!e[r].interpolate,d=n.length;for(let t=0;te(i)}}(e,t,{time:0,x:rF(),y:rF()},n);if(s.add(r),!rH.has(e)){let t=()=>{for(let t of s)t.measure(tC.timestamp);tk.preUpdate(i)},i=()=>{for(let t of s)t.notify()},n=()=>tk.read(t);rH.set(e,n);let r=rq(e);window.addEventListener("resize",n),e!==document.documentElement&&rY.set(e,n8(e,n)),r.addEventListener("scroll",n),n()}if(i&&!rG.has(e)){let t=rH.get(e),i={width:e.scrollWidth,height:e.scrollHeight};rK.set(e,i);let n=tk.read(()=>{let n=e.scrollWidth,s=e.scrollHeight;(i.width!==n||i.height!==s)&&(t(),i.width=n,i.height=s)},!0);rG.set(e,n)}let o=rH.get(e);return tk.read(o,!1,!0),()=>{tV(o);let t=rX.get(e);if(!t||(t.delete(r),t.size))return;let i=rH.get(e);rH.delete(e),i&&(rq(e).removeEventListener("scroll",i),rY.get(e)?.(),window.removeEventListener("resize",i));let n=rG.get(e);n&&(tV(n),rG.delete(e)),rK.delete(e)}}let r_=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[r$,"contain"]],rJ={start:0,end:1};function rQ(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[e,i]of r_)if(function(t,e){let i=function(t){if(2!==t.length)return;let e=[];for(let i of t)if(Array.isArray(i))e.push(i);else{if("string"!=typeof i)return;let t=function(t){let e=t.trim().split(/\s+/);if(2!==e.length)return;let i=rJ[e[0]],n=rJ[e[1]];if(void 0!==i&&void 0!==n)return[i,n]}(i);if(!t)return;e.push(t)}return e}(t);if(!i)return!1;for(let t=0;t<2;t++){let n=i[t],s=e[t];if(n[0]!==s[0]||n[1]!==s[1])return!1}return!0}(t,e))return{rangeStart:`${i} 0%`,rangeEnd:`${i} 100%`}}let r0=new Map;function r1(t){let e={value:0},i=rZ(i=>{e.value=100*i[t.axis].progress},t);return{currentTime:e,cancel:i}}function r2({source:t,container:e,...i}){let{axis:n}=i;t&&(e=t);let s=r0.get(e);s||(s=new Map,r0.set(e,s));let r=i.target??"self",o=s.get(r);o||(o={},s.set(r,o));let a=n+(i.offset??[]).join(",");return o[a]||(i.target&&rB(i.target)?rQ(i.offset)?o[a]=new ViewTimeline({subject:i.target,axis:n}):o[a]=r1({container:e,...i}):rB()?o[a]=new ScrollTimeline({source:e,axis:n}):o[a]=r1({container:e,...i})),o[a]}function r5(t,{axis:e="y",container:i=document.scrollingElement,...n}={}){let s,r,o;if(!i)return tS;let a={axis:e,container:i,...n};return"function"==typeof t?function(t,e){return 2===t.length||e&&(e.target||e.offset)?rZ(i=>{t(i[e.axis].progress,i)},e):rL(t,r2(e))}(t,a):(s=r2(a),r=a.target?rQ(a.offset):void 0,o=a.target?rB(a.target)&&!!r:rB(),t.attachTimeline({timeline:o?s:void 0,...r&&o&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:t=>(t.pause(),rL(e=>{t.time=t.iterationDuration*e},s))}))}let r3=()=>({scrollX:ea(0),scrollY:ea(0),scrollXProgress:ea(0),scrollYProgress:ea(0)}),r4=t=>!!t&&!t.current;function r9(t,e,i,n){return{factory:s=>{let r,o=()=>{r4(i)||r4(n)?et.read(o):r=r5(s,{...e,axis:t,container:i?.current||void 0,target:n?.current||void 0})};return et.read(o),()=>{ee(o),r?.()}},times:[0,1],keyframes:[0,1],ease:t=>t,duration:1}}function r6(t,e){let i=function(t){let e=ip(()=>ea(t)),{isStatic:i}=(0,e9.useContext)(ie);if(i){let[,i]=(0,e9.useState)(t);(0,e9.useEffect)(()=>e.on("change",i),[])}return e}(e()),n=()=>i.set(e());return n(),iA(()=>{let e=()=>tk.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),tV(n)}}),i}function r8(t,e,i,n){if("function"==typeof t){let e;return er.current=[],t(),e=r6(er.current,t),er.current=void 0,e}if(void 0!==i&&!Array.isArray(i)&&"function"!=typeof e){var s=t,r=e,o=i,a=n;let l=ip(()=>Object.keys(o)),h=ip(()=>({}));for(let t of l)h[t]=r8(s,r,o[t],a);return h}let l="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],s=np(t[1+i],t[2+i],t[3+i]);return e?s(n):s}(e,i,n),h=Array.isArray(t)?r7(t,l):r7([t],([t])=>l(t)),u=Array.isArray(t)?void 0:t.accelerate;return u&&!u.isTransformed&&"function"!=typeof e&&Array.isArray(i)&&n?.clamp!==!1&&(h.accelerate={...u,times:e,keyframes:i,isTransformed:!0,...n?.ease?{ease:n.ease}:{}}),h}function r7(t,e){let i=ip(()=>[]);return r6(t,()=>{i.length=0;let n=t.length;for(let e=0;et.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim();var oe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let oi=(0,e9.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:i=2,absoluteStrokeWidth:n,className:s="",children:r,iconNode:o,...a},l)=>(0,e9.createElement)("svg",{ref:l,...oe,width:e,height:e,stroke:t,strokeWidth:n?24*Number(i)/Number(e):i,className:ot("lucide",s),...a},[...o.map(([t,e])=>(0,e9.createElement)(t,e)),...Array.isArray(r)?r:[r]])),on=(t,e)=>{let i=(0,e9.forwardRef)(({className:i,...n},s)=>(0,e9.createElement)(oi,{ref:s,iconNode:e,className:ot(`lucide-${t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,i),...n}));return i.displayName=`${t}`,i},os=on("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),or=on("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),oo=on("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]),oa=on("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),ol=on("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),oh="/mystichearts/demo",ou={hero:`${oh}/assets/video/hero.mp4`,village:`${oh}/assets/video/product-2.mp4`},oc="cshearer210@gmail.com",od={hidden:{opacity:0,y:28},visible:{opacity:1,y:0}},op=["Central house","Yurts","Tiny homes","Healing modalities"];function om({src:t,className:e="",poster:i}){return(0,o.jsx)("video",{className:`video-plane ${e}`,src:t,poster:i,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata"})}function of({children:t}){return(0,o.jsxs)("div",{className:"section-label",children:[(0,o.jsx)(oo,{size:12}),(0,o.jsx)("span",{children:t})]})}t.s(["MysticHeartsPage",0,function(){let{scrollYProgress:t}=function({container:t,target:e,...i}={}){var n;let s=ip(r3);n=i.offset,!("u"(r.current=r5((t,{x:e,y:i})=>{s.scrollX.set(e.current),s.scrollXProgress.set(e.progress),s.scrollY.set(i.current),s.scrollYProgress.set(i.progress)},{...i,container:t?.current||void 0,target:e?.current||void 0}),()=>{r.current?.()}),[t,e,JSON.stringify(i.offset)]);return iA(()=>{if(o.current=!1,!(r4(t)||r4(e)))return a();o.current=!0},[a]),(0,e9.useEffect)(()=>{let i;if(!o.current)return;let n=()=>{let n=r4(t),s=r4(e);ti(!n,"Container ref is defined but not hydrated","use-scroll-ref"),ti(!s,"Target ref is defined but not hydrated","use-scroll-ref"),n||s||(i=a())};return et.read(n),()=>{ee(n),i?.()}},[a]),s}(),e=r8(t,[0,.6],[1,1.12]),i=r8(t,[0,.7],[1,.42]);return(0,o.jsxs)("main",{className:"min-h-screen overflow-hidden bg-linen text-ink",children:[(0,o.jsx)("nav",{className:"fixed left-0 right-0 top-0 z-50 px-5 py-4 md:px-8",children:(0,o.jsxs)("div",{className:"mx-auto flex max-w-7xl items-center justify-between rounded-full border border-white/25 bg-ink/20 px-4 py-3 text-white shadow-soft backdrop-blur-xl",children:[(0,o.jsxs)("a",{className:"flex items-center gap-2 text-sm font-semibold tracking-[0.18em]",href:"#top",children:[(0,o.jsx)(oa,{size:18,fill:"currentColor"}),"MYSTIC HEARTS"]}),(0,o.jsxs)("a",{className:"nav-cta",href:`mailto:${oc}`,children:["Inquire",(0,o.jsx)(os,{size:16})]})]})}),(0,o.jsxs)("section",{id:"top",className:"hero-section slide",children:[(0,o.jsx)(rj.div,{className:"hero-video-wrap",style:{scale:e,opacity:i},children:(0,o.jsx)(om,{src:ou.hero,poster:`${oh}/assets/images/hero-poster.jpg`})}),(0,o.jsx)("div",{className:"hero-shade"}),(0,o.jsx)("div",{className:"hero-content",children:(0,o.jsxs)(rj.div,{initial:"hidden",animate:"visible",variants:od,transition:{duration:.8,ease:"easeOut"},className:"mx-auto w-full max-w-6xl px-6",children:[(0,o.jsxs)("div",{className:"hero-kicker",children:[(0,o.jsx)(ol,{size:16}),(0,o.jsx)("span",{children:"Mystic Hearts"}),(0,o.jsx)("i",{children:"9-acre healing center"})]}),(0,o.jsxs)("h1",{className:"hero-title",children:["A future village, ",(0,o.jsx)("span",{children:"grounded in the work already beginning."})]}),(0,o.jsx)("p",{className:"hero-copy",children:"A place where people can arrive without performing, receive care without being processed, and take part in a small economy of skill, labor, attention, and reciprocity."}),(0,o.jsx)("div",{className:"hero-notes","aria-label":"Village components",children:op.map(t=>(0,o.jsx)("span",{children:t},t))})]})}),(0,o.jsx)("div",{className:"scroll-cue",children:(0,o.jsx)("span",{})})]}),(0,o.jsxs)("section",{id:"visit",className:"final-cta slide",children:[(0,o.jsx)(om,{src:ou.village}),(0,o.jsx)("div",{className:"final-cta-shade"}),(0,o.jsxs)(rj.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:od,transition:{duration:.75},className:"relative z-10 mx-auto max-w-3xl px-6 text-center text-white",children:[(0,o.jsx)("div",{className:"video-wordmark",children:"Fall 2027"}),(0,o.jsx)("div",{className:"mx-auto mb-6 flex h-12 w-12 items-center justify-center rounded-full border border-white/25 bg-white/12 backdrop-blur-md",children:(0,o.jsx)(or,{size:22})}),(0,o.jsx)(of,{children:"Opening season"}),(0,o.jsx)("h2",{className:"story-title",children:"Coming fall 2027."}),(0,o.jsx)("p",{className:"story-copy",children:"Nine acres of healing land are taking shape: a central house, yurts, and tiny homes, with practitioners holding breathwork, sound, energy work, and somatic practice. The first gatherings will be small and in person. If you want to help build it, practice here, or simply be there when it opens, reach out."}),(0,o.jsxs)("a",{className:"btn btn-primary mx-auto mt-8",href:`mailto:${oc}`,children:["Get in touch",(0,o.jsx)(os,{size:18})]}),(0,o.jsx)("p",{className:"contact-line",children:oc})]})]})]})}],19873)}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/28xk_f13smd0m.js b/web/mystichearts/demo/_next/static/chunks/28xk_f13smd0m.js new file mode 100644 index 00000000..57a127d1 --- /dev/null +++ b/web/mystichearts/demo/_next/static/chunks/28xk_f13smd0m.js @@ -0,0 +1,14 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88143,(t,e,i)=>{"use strict";function n({widthInt:t,heightInt:e,blurWidth:i,blurHeight:s,blurDataURL:r,objectFit:o}){let a=i?40*i:t,l=s?40*s:e,h=a&&l?`viewBox='0 0 ${a} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${h}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${h?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${r}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},87690,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return r},imageConfigDefault:function(){return o}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},8927,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return h}}),t.r(33525);let n=t.r(43369),s=t.r(88143),r=t.r(87690),o=["-moz-initial","fill","none","scale-down",void 0];function a(t){return void 0!==t.default}function l(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function h({src:t,sizes:e,unoptimized:i=!1,priority:u=!1,preload:d=!1,loading:c,className:p,quality:m,width:f,height:g,fill:y=!1,style:v,overrideSrc:x,onLoad:w,onLoadingComplete:b,placeholder:S="empty",blurDataURL:P,fetchPriority:T,decoding:k="async",layout:j,objectFit:E,objectPosition:C,lazyBoundary:A,lazyRoot:M,...V},R){var D;let L,O,N,{imgConf:F,showAltText:B,blurComplete:I,defaultLoader:$}=R,_=F||r.imageConfigDefault;if("allSizes"in _)L=_;else{let t=[..._.deviceSizes,..._.imageSizes].sort((t,e)=>t-e),e=_.deviceSizes.sort((t,e)=>t-e),i=_.qualities?.sort((t,e)=>t-e);L={..._,allSizes:t,deviceSizes:e,qualities:i}}if(void 0===$)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=V.loader||$;delete V.loader,delete V.srcSet;let U="__next_img_default"in z;if(U){if("custom"===L.loader)throw Object.defineProperty(Error(`Image with src "${t}" is missing "loader" prop. +Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let t=z;z=e=>{let{config:i,...n}=e;return t(n)}}if(j){"fill"===j&&(y=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];t&&(v={...v,...t});let i={responsive:"100vw",fill:"100vw"}[j];i&&!e&&(e=i)}let W="",H=l(f),Y=l(g);if((D=t)&&"object"==typeof D&&(a(D)||void 0!==D.src)){let e=a(t)?t.default:t;if(!e.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(O=e.blurWidth,N=e.blurHeight,P=P||e.blurDataURL,W=e.src,!y)if(H||Y){if(H&&!Y){let t=H/e.width;Y=Math.round(e.height*t)}else if(!H&&Y){let t=Y/e.height;H=Math.round(e.width*t)}}else H=e.width,Y=e.height}let X=!u&&!d&&("lazy"===c||void 0===c);(!(t="string"==typeof t?t:W)||t.startsWith("data:")||t.startsWith("blob:"))&&(i=!0,X=!1),L.unoptimized&&(i=!0),U&&!L.dangerouslyAllowSVG&&t.split("?",1)[0].endsWith(".svg")&&(i=!0);let q=l(m),G=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:C}:{},B?{}:{color:"transparent"},v),K=I||"empty"===S?null:"blur"===S?`url("data:image/svg+xml;charset=utf-8,${(0,s.getImageBlurSvg)({widthInt:H,heightInt:Y,blurWidth:O,blurHeight:N,blurDataURL:P||"",objectFit:G.objectFit})}")`:`url("${S}")`,Z=o.includes(G.objectFit)?"fill"===G.objectFit?"100% 100%":"cover":G.objectFit,J=K?{backgroundSize:Z,backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Q=function({config:t,src:e,unoptimized:i,width:s,quality:r,sizes:o,loader:a}){if(i){if(e.startsWith("/")&&!e.startsWith("//")){let t=(0,n.getDeploymentId)();if(t){let i=e.indexOf("?");if(-1!==i){let n=new URLSearchParams(e.slice(i+1));n.get("dpl")||(n.append("dpl",t),e=e.slice(0,i)+"?"+n.toString())}else e+=`?dpl=${t}`}}return{src:e,srcSet:void 0,sizes:void 0}}let{widths:l,kind:h}=function({deviceSizes:t,allSizes:e},i,n){if(n){let i=/(^|\s)(1?\d?\d)vw/g,s=[];for(let t;t=i.exec(n);)s.push(parseInt(t[2]));if(s.length){let i=.01*Math.min(...s);return{widths:e.filter(e=>e>=t[0]*i),kind:"w"}}return{widths:e,kind:"w"}}return"number"!=typeof i?{widths:t,kind:"w"}:{widths:[...new Set([i,2*i].map(t=>e.find(e=>e>=t)||e[e.length-1]))],kind:"x"}}(t,s,o),u=l.length-1;return{sizes:o||"w"!==h?o:"100vw",srcSet:l.map((i,n)=>`${a({config:t,src:e,quality:r,width:i})} ${"w"===h?i:n+1}${h}`).join(", "),src:a({config:t,src:e,quality:r,width:l[u]})}}({config:L,src:t,unoptimized:i,width:H,quality:q,sizes:e,loader:z}),tt=X?"lazy":c;return{props:{...V,loading:tt,fetchPriority:T,width:H,height:Y,decoding:k,className:p,style:{...G,...J},sizes:Q.sizes,srcSet:Q.srcSet,src:x||Q.src},meta:{unoptimized:i,preload:d||u,placeholder:S,fill:y}}}},98879,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let n=t.r(71645),s="u"{}:n.useLayoutEffect,o=s?()=>{}:n.useEffect;function a(t){let{headManager:e,reduceComponentsToState:i}=t;function a(){if(e&&e.mountedInstances){let t=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(t))}}return s&&(e?.mountedInstances?.add(t.children),a()),r(()=>(e?.mountedInstances?.add(t.children),()=>{e?.mountedInstances?.delete(t.children)})),r(()=>(e&&(e._pendingUpdate=a),()=>{e&&(e._pendingUpdate=a)})),o(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},25633,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return f},defaultHead:function(){return d}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=t.r(55682),o=t.r(90809),a=t.r(43476),l=o._(t.r(71645)),h=r._(t.r(98879)),u=t.r(42732);function d(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function c(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===l.default.Fragment?t.concat(l.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}t.r(33525);let p=["name","httpEquiv","charSet","itemProp"];function m(t){let e,i,n,s;return t.reduce(c,[]).reverse().concat(d().reverse()).filter((e=new Set,i=new Set,n=new Set,s={},t=>{let r=!0,o=!1;if(t.key&&"number"!=typeof t.key&&t.key.indexOf("$")>0){o=!0;let i=t.key.slice(t.key.indexOf("$")+1);e.has(i)?r=!1:e.add(i)}switch(t.type){case"title":case"base":i.has(t.type)?r=!1:i.add(t.type);break;case"meta":for(let e=0,i=p.length;e{let i=t.key||e;return l.default.cloneElement(t,{key:i})})}let f=function({children:t}){let e=(0,l.useContext)(u.HeadManagerContext);return(0,a.jsx)(h.default,{reduceComponentsToState:m,headManager:e,children:t})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},18556,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return r}});let n=t.r(55682)._(t.r(71645)),s=t.r(87690),r=n.default.createContext(s.imageConfigDefault)},65856,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return n}});let n=t.r(55682)._(t.r(71645)).default.createContext(null)},70965,(t,e,i)=>{"use strict";function n(t,e){let i=t||75;return e?.qualities?.length?e.qualities.reduce((t,e)=>Math.abs(e-i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let n=t.r(70965),s=t.r(43369);function r({config:t,src:e,width:i,quality:o}){let a=(0,s.getDeploymentId)();if(e.startsWith("/")&&!e.startsWith("//")){let t=e.indexOf("?");if(-1!==t){let i=new URLSearchParams(e.slice(t+1)),n=i.get("dpl");if(n){a=n,i.delete("dpl");let s=i.toString();e=e.slice(0,t)+(s?"?"+s:"")}}}if(e.startsWith("/")&&e.includes("?")&&t.localPatterns?.length===1&&"**"===t.localPatterns[0].pathname&&""===t.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${e}" is using a query string which is not configured in images.localPatterns. +Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(o,t);return`${t.path}?url=${encodeURIComponent(e)}&w=${i}&q=${l}${e.startsWith("/")&&a?`&dpl=${a}`:""}`}r.__next_img_default=!0;let o=r},18581,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=t.r(71645);function s(t,e){let i=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=s.current;e&&(s.current=null,e())}else t&&(i.current=r(t,n)),e&&(s.current=r(e,n))},[t,e])}function r(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},85437,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return w}});let n=t.r(55682),s=t.r(90809),r=t.r(43476),o=s._(t.r(71645)),a=n._(t.r(74080)),l=n._(t.r(25633)),h=t.r(8927),u=t.r(87690),d=t.r(18556);t.r(33525);let c=t.r(65856),p=n._(t.r(1948)),m=t.r(18581),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/mystichearts/demo/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(t,e,i,n,s,r,o){let a=t?.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&s(!0),i?.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,s=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>s,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{s=!0,e.stopPropagation()}})}n?.current&&n.current(t)}}))}function y(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}"u"{let E=(0,o.useCallback)(t=>{t&&(T&&(t.src=t.src),t.complete&&g(t,d,v,x,w,p,S))},[t,d,v,x,w,T,p,S]),C=(0,m.useMergedRef)(j,E);return(0,r.jsx)("img",{...k,...y(u),loading:c,width:s,height:n,decoding:a,"data-nimg":f?"fill":"1",className:l,style:h,sizes:i,srcSet:e,src:t,ref:C,onLoad:t=>{g(t.currentTarget,d,v,x,w,p,S)},onError:t=>{b(!0),"empty"!==d&&w(!0),T&&T(t)}})});function x({isAppRouter:t,imgAttributes:e}){let i={as:"image",imageSrcSet:e.srcSet,imageSizes:e.sizes,crossOrigin:e.crossOrigin,referrerPolicy:e.referrerPolicy,...y(e.fetchPriority)};return t&&a.default.preload?(a.default.preload(e.src,i),null):(0,r.jsx)(l.default,{children:(0,r.jsx)("link",{rel:"preload",href:e.srcSet?void 0:e.src,...i},"__nimg-"+e.src+e.srcSet+e.sizes)})}let w=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(c.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),s=(0,o.useMemo)(()=>{let t=f||n||u.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e),s=t.qualities?.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i,qualities:s,localPatterns:"u"{m.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[y,w]=(0,o.useState)(!1),[b,S]=(0,o.useState)(!1),{props:P,meta:T}=(0,h.getImgProps)(t,{defaultLoader:p.default,imgConf:s,blurComplete:y,showAltText:b});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{...P,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:S,sizesInput:t.sizes,ref:e}),T.preload?(0,r.jsx)(x,{isAppRouter:!i,imgAttributes:P}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},94909,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return u},getImageProps:function(){return h}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=t.r(55682),o=t.r(8927),a=t.r(85437),l=r._(t.r(1948));function h(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/mystichearts/demo/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let u=a.Image},57688,(t,e,i)=>{e.exports=t.r(94909)},19873,t=>{"use strict";let e,i,n;var s,r=t.i(47167),o=t.i(43476);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set([...a,"pathRotation"]),h=(t,e,i)=>i>e?e:i"number"==typeof t,parse:parseFloat,transform:t=>t},d={...u,transform:t=>h(0,1,t)},c={...u,default:1},p=t=>Math.round(1e5*t)/1e5,m=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g=(t,e)=>i=>!!("string"==typeof i&&f.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),y=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(m);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},v={...u,transform:t=>Math.round(h(0,255,t))},x={test:g("rgb","red"),parse:y("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+v.transform(t)+", "+v.transform(e)+", "+v.transform(i)+", "+p(d.transform(n))+")"},w={test:g("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:x.transform},b=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),S=b("deg"),P=b("%"),T=b("px"),k=b("vh"),j=b("vw"),E={...P,parse:t=>P.parse(t)/100,transform:t=>P.transform(100*t)},C={test:g("hsl","hue"),parse:y("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+P.transform(p(e))+", "+P.transform(p(i))+", "+p(d.transform(n))+")"},A={test:t=>x.test(t)||w.test(t)||C.test(t),parse:t=>x.test(t)?x.parse(t):C.test(t)?C.parse(t):w.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?x.transform(t):C.transform(t),getAnimatableNone:t=>{let e=A.parse(t);return e.alpha=0,A.transform(e)}},M=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,V="number",R="color",D=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function L(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(D,t=>(A.test(t)?(n.color.push(r),s.push(R),i.push(A.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(V),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function O({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r0},parse:function(t){return L(t).values},createTransformer:function(t){return O(L(t))},getAnimatableNone:function(t){let e=L(t);return O(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:A.test(t)?A.getAnimatableNone(t):t)(t,e.split[i])))}},F=new Set(["brightness","contrast","saturate","opacity"]);function B(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(m)||[];if(!n)return t;let s=i.replace(n,""),r=+!!F.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let I=/\b([a-z-]*)\(.*?\)/gu,$={...N,getAnimatableNone:t=>{let e=t.match(I);return e?e.map(B).join(" "):t}},_={...N,getAnimatableNone:t=>{let e=N.parse(t);return N.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...u,transform:Math.round},U={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,rotate:S,pathRotation:S,rotateX:S,rotateY:S,rotateZ:S,scale:c,scaleX:c,scaleY:c,scaleZ:c,skew:S,skewX:S,skewY:S,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:d,originX:E,originY:E,originZ:T,zIndex:z,fillOpacity:d,strokeOpacity:d,numOctaves:z},W={...U,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:$,WebkitFilter:$,mask:_,WebkitMask:_},H=t=>W[t],Y=()=>({translate:0,scale:1,origin:0,originPoint:0}),X=()=>({x:Y(),y:Y()}),q=()=>({min:0,max:0}),G=()=>({x:q(),y:q()}),K=t=>!!(t&&t.getVelocity),Z=new Set(["width","height","top","left","right","bottom",...a]),J=t=>e=>e.test(t),Q=[u,T,P,S,j,k,{test:t=>"auto"===t,parse:t=>t}],tt=t=>Q.find(J(t)),te=()=>{},ti=()=>{};r.default;let tn=t=>e=>"string"==typeof e&&e.startsWith(t),ts=tn("--"),tr=tn("var(--"),to=t=>!!tr(t)&&ta.test(t.split("/*")[0].trim()),ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tl(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let th=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tu=t=>180*t/Math.PI,td=t=>tp(tu(Math.atan2(t[1],t[0]))),tc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:td,rotateZ:td,skewX:t=>tu(Math.atan(t[1])),skewY:t=>tu(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tp=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tf=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tf,scale:t=>(tm(t)+tf(t))/2,rotateX:t=>tp(tu(Math.atan2(t[6],t[5]))),rotateY:t=>tp(tu(Math.atan2(-t[2],t[0]))),rotateZ:td,rotate:td,skewX:t=>tu(Math.atan(t[4])),skewY:t=>tu(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ty(t){return+!!t.includes("scale")}function tv(t,e){let i,n;if(!t||"none"===t)return ty(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tg,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tc,n=e}if(!n)return ty(e);let r=i[e],o=n[1].split(",").map(tx);return"function"==typeof r?r(o):o[r]}function tx(t){return parseFloat(t.trim())}let tw=t=>t===u||t===T,tb=new Set(["x","y","z"]),tS=a.filter(t=>!tb.has(t)),tP={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tv(e,"x"),y:(t,{transform:e})=>tv(e,"y")};tP.translateX=tP.x,tP.translateY=tP.y;let tT=t=>t,tk={},tj=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tE(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=tj.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&n?e:i;return s&&r.add(t),a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,n){s=!0;return}n=!0;let r=e;e=i,i=r,e.forEach(a),e.clear(),n=!1,s&&(s=!1,l.process(t))}};return l}(r),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let r=tk.useManualTiming,o=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),h.process(s),u.process(s),d.process(s),c.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tj.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;etypeof requestAnimationFrame?requestAnimationFrame:tT,!0),tR=new Set,tD=!1,tL=!1,tO=!1;function tN(){if(tL){let t=Array.from(tR).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tS.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tL=!1,tD=!1,tR.forEach(t=>t.complete(tO)),tR.clear()}function tF(){tR.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tL=!0)})}class tB{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tR.add(this),tD||(tD=!0,tC.read(tF),tC.resolveKeyframes(tN))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tU=t=>1e3*t;function tW(t,e){-1===t.indexOf(e)&&t.push(e)}function tH(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tY{constructor(){this.subscriptions=[]}add(t){return tW(this.subscriptions,t),()=>tH(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s(void 0===e&&(e=t()),e)}let tG={};function tK(t,e){let i=tq(t);return()=>tG[e]??i()}let tZ=tK(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tJ=t=>null!==t;function tQ(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(tJ),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}class t0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t1=t=>Array.isArray(t)&&"number"==typeof t[0],t2=tK(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t5=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t3([0,.65,.55,1]),circOut:t3([.55,0,1,.45]),backIn:t3([.31,.01,.66,-.59]),backOut:t3([.33,1.53,.69,.99])};function t4(t){return"function"==typeof t&&"applyToOptions"in t}class t6 extends t0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,ti("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t4(t)&&t2()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?t2()?t5(e,i):"ease-out":t1(e)?t3(e):Array.isArray(e)?e.map(e=>t(e,i)||t8.easeOut):t8[e]}(a,s);Array.isArray(d)&&(u.easing=d);let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};return h&&(c.pseudoElement=h),t.animate(u,c)}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=tQ(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tX(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tU(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tZ())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tT):n(this)}}let t9=new Set(["opacity","clipPath","filter","transform"]),{schedule:t7}=tE(queueMicrotask,!1);function et(){e=void 0}let ee={now:()=>(void 0===e&&ee.set(tM.isProcessing||tk.useManualTiming?tM.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(et)}},ei=(t,e)=>e?1e3/e*t:0,en;class es{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ee.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ee.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tY);let i=this.events[t].add(e);return"change"===t?()=>{i(),tC.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return en&&en.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ee.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ei(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function er(t,e){return new es(t,e)}let eo=[...Q,A,N],ea=new WeakMap;function el(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eh(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ed=["initial",...eu];function ec(t){return el(t.animate)||ed.some(e=>eh(t[e]))}function ep(t){return!!(ec(t)||t.variants)}let em={current:null},ef={current:!1},eg="u">typeof window;function ey(){if(ef.current=!0,eg)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>em.current=t.matches;t.addEventListener("change",e),e()}else em.current=!1}function ev(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ex(t,e,i,n){if("function"==typeof e){let[s,r]=ev(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=ev(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let ew=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eb={};class eS{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tB,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=ee.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ef.current||ey(),this.shouldReduceMotion=em.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tA(this.notifyUpdate),tA(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t9.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new t6({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:tU(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=l.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tC.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eb){let e=eb[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=er(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!eo.find(J(n))&&N.test(e)&&(i=t$(t,e))}this.setBaseTarget(t,K(i)?i.get():i)}return K(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=ex(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||K(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tY),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t7.render(this.render)}}class eP extends eS{constructor(){super(...arguments),this.KeyframeResolver=tz}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;K(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eT(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ek=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ej={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eE=a.length;function eC(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,h=!1;for(let t in e){let i=e[t];if(l.has(t)){o=!0;continue}if(ts(t)){s[t]=i;continue}{let e=ek(i,U[t]);t.startsWith("origin")?(h=!0,r[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r"string"==typeof t&&"svg"===t.toLowerCase();function eO(t,{style:e,vars:i},n,s){let r,o=t.style;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,n),i)o.setProperty(r,i[r])}let eN=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function eF(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eB={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!T.test(t))return t;else t=parseFloat(t);let i=eF(t,e.target.x),n=eF(t,e.target.y);return`${i}% ${n}%`}},eI=(t,e,i)=>t+(e-t)*i,e$={borderRadius:{...eB,applyTo:[...eN]},borderTopLeftRadius:eB,borderTopRightRadius:eB,borderBottomLeftRadius:eB,borderBottomRightRadius:eB,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=N.parse(t);if(n.length>5)return t;let s=N.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=eI(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function e_(t,{layout:e,layoutId:i}){return l.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!e$[t]||"opacity"===t)}function ez(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(K(n[e])||s&&K(s[e])||e_(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function eU(t,e,i){let n=ez(t,e,i);for(let i in t)(K(t[i])||K(e[i]))&&(n[-1!==a.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eW extends eP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.has(e)){let t=H(e);return t&&t.default||0}return e=eD.has(e)?e:eT(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eU(t,e,i)}build(t,e,i){eR(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eO(t,e,void 0,n),e.attrs)t.setAttribute(eD.has(i)?i:eT(i),e.attrs[i])}mount(t){this.isSVGTag=eL(t.tagName),super.mount(t)}}function eH({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eY(t){return void 0===t||1===t}function eX({scale:t,scaleX:e,scaleY:i}){return!eY(t)||!eY(e)||!eY(i)}function eq(t){return eX(t)||eG(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eG(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eK(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function eZ(t,e=0,i=1,n,s){t.min=eK(t.min,e,i,n,s),t.max=eK(t.max,e,i,n,s)}function eJ(t,{x:e,y:i}){eZ(t.x,e.translate,e.scale,e.originPoint),eZ(t.y,i.translate,i.scale,i.originPoint)}function eQ(t,e){t.min+=e,t.max+=e}function e0(t,e,i,n,s=.5){let r=eI(t.min,t.max,s);eZ(t,e,i,r,n)}function e1(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e2(t,e,i){let n=i??t;e0(t.x,e1(e.x,n.x),e.scaleX,e.scale,e.originX),e0(t.y,e1(e.y,n.y),e.scaleY,e.scale,e.originY)}function e5(t,e){return eH(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e3 extends eP{constructor(){super(...arguments),this.type="html",this.renderInstance=eO}readValueFromInstance(t,e){if(l.has(e))return this.projection?.isProjecting?ty(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tv(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(ts(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e5(t,e)}build(t,e,i){eC(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return ez(t,e,i)}}var e8=t.i(71645);let e4=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e6(t){if("string"!=typeof t||t.includes("-"));else if(e4.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let e9=(0,e8.createContext)({}),e7=(0,e8.createContext)({strict:!1}),it=(0,e8.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ie=(0,e8.createContext)({});function ii(t){return Array.isArray(t)?t.join(" "):t}let is=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ir(t,e,i){for(let n in e)K(e[n])||e_(n,i)||(t[n]=e[n])}let io=()=>({...is(),attrs:{}}),ia=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function il(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ia.has(t)}let ih=t=>!il(t);try{s=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof s&&(ih=t=>t.startsWith("on")?!il(t):s(t))}catch{}function iu(t){return K(t)?t.get():t}let id=(0,e8.createContext)(null);function ic(t){let e=(0,e8.useRef)(null);return null===e.current&&(e.current=t()),e.current}let ip=t=>(e,i)=>{let n=(0,e8.useContext)(ie),s=(0,e8.useContext)(id),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=iu(r[t]);let{initial:o,animate:a}=t,l=ec(t),h=ep(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!el(d)){let e=Array.isArray(d)?d:[d];for(let i=0;iiy[e].some(e=>!!t[e])};eb=t,iv=!0}(),eb}let iw=Symbol.for("motionComponentSymbol"),ib="data-"+eT("framerAppearId"),iS=(0,e8.createContext)({});function iP(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iT="u">typeof window?e8.useLayoutEffect:e8.useEffect;function ik(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=ix();for(let i in t)e[i]={...e[i],...t[i]};eb=e}(n);let r=i?"svg"===i:e6(t),a=r?ig:im;function l(i,n){var l;let h,u,d,c={...(0,e8.useContext)(it),...i,layoutId:function({layoutId:t}){let e=(0,e8.useContext)(e9).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:p}=c,m=function(t){let{initial:e,animate:i}=function(t,e){if(ec(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eh(e)?e:void 0,animate:eh(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e8.useContext)(ie));return(0,e8.useMemo)(()=>({initial:e,animate:i}),[ii(e),ii(i)])}(i),f=a(i,p);if(!p&&"u">typeof window){(0,e8.useContext)(e7).strict;let e=function(t){let{drag:e,layout:i}=ix();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(c);h=e.MeasureLayout,m.visualElement=function(t,e,i,n,s,r){let{visualElement:o}=(0,e8.useContext)(ie),a=(0,e8.useContext)(e7),l=(0,e8.useContext)(id),h=(0,e8.useContext)(it),u=h.reducedMotion,d=h.skipAnimations,c=(0,e8.useRef)(null),p=(0,e8.useRef)(!1);n=n||a.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:d,isSVG:r}),p.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let m=c.current,f=(0,e8.useContext)(iS);m&&!m.projection&&s&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&iP(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(c.current,i,s,f);let g=(0,e8.useRef)(!1);(0,e8.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[ib],v=(0,e8.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iT(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,e8.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,f,c,s,e.ProjectionNode,r)}return(0,o.jsxs)(ie.Provider,{value:m,children:[h&&m.visualElement?(0,o.jsx)(h,{visualElement:m.visualElement,...c}):null,function(t,e,i,{latestValues:n},s,r=!1,o){let a=(o??e6(t)?function(t,e,i,n){let s=(0,e8.useMemo)(()=>{let i=io();return eR(i,e,eL(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ir(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},ir(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e8.useMemo)(()=>{let i=is();return eC(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!K(t[s])&&(ih(s)||!0===i&&il(s)||!e&&!il(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),h=t!==e8.Fragment?{...l,...a,ref:i}:{},{children:u}=e,d=(0,e8.useMemo)(()=>K(u)?u.get():u,[u]);return(0,e8.createElement)(t,{...h,children:d})}(t,i,(l=m.visualElement,u=(0,e8.useRef)(n),(0,e8.useInsertionEffect)(()=>{u.current=n}),d=(0,e8.useRef)(null),(0,e8.useCallback)(t=>{t&&f.onMount?.(t),l&&(t?l.mount(t):l.unmount());let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(d.current=i)}else d.current?(d.current(),d.current=null):e(t);else e&&(e.current=t)},[l])),f,p,e,r)]})}l.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let h=(0,e8.forwardRef)(l);return h[iw]=t,h}class ij{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iE(t,e,i){let n=t.getProps();return ex(n,e,void 0!==i?i:n.custom,t)}function iC(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iA(t,e){let i=t?.[e]??t?.default??t;return i!==t?iC(i,t):i}let iM=t=>Array.isArray(t);function iV(t,e){let i=t.getValue("willChange");if(K(i)&&i.add)return i.add(e);if(!i&&tk.WillChange){let i=new tk.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iR=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iD(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iL(t,e){return i=>i>0?e:t}let iO=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},iN=[w,x,C];function iF(t){let e=iN.find(e=>e.test(t));if(te(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===C&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=iD(a,n,t+1/3),r=iD(a,n,t),o=iD(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let iB=(t,e)=>{let i=iF(t),n=iF(e);if(!i||!n)return iL(t,e);let s={...i};return t=>(s.red=iO(i.red,n.red,t),s.green=iO(i.green,n.green,t),s.blue=iO(i.blue,n.blue,t),s.alpha=eI(i.alpha,n.alpha,t),x.transform(s))},iI=new Set(["none","hidden"]);function i$(t,e){return i=>eI(t,e,i)}function i_(t){return"number"==typeof t?i$:"string"==typeof t?to(t)?iL:A.test(t)?iB:iW:Array.isArray(t)?iz:"object"==typeof t?A.test(t)?iB:iU:iL}function iz(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>i_(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let iW=(t,e)=>{let i=N.createTransformer(e),n=L(t),s=L(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return te(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iL(t,e);if(iI.has(t)&&!s.values.length||iI.has(e)&&!n.values.length)return iI.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iR(iz(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tC.update(e,t),stop:()=>tA(e),now:()=>tM.isProcessing?tM.timestamp:ee.now()}};function iX(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iq=.01,iG=2,iK=.005,iZ=.5;function iJ(t,e){return t*Math.sqrt(1-e*e)}let iQ=["duration","bounce"],i0=["stiffness","damping","mass"];function i1(t,e){return e.some(e=>void 0!==t[e])}function i2(t=.3,e=.3){let i,n,s,r,o,a,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:d}=l,c=l.keyframes[0],p=l.keyframes[l.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:g,mass:y,duration:v,velocity:x,isResolvedFromDuration:w}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i1(t,i0)&&i1(t,iQ))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*h(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;te(t<=tU(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=h(.05,1,o),t=h(.01,10,t/1e3),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/iJ(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iJ(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=tU(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),b=x||0,S=g/(2*Math.sqrt(f*y)),P=p-c,T=Math.sqrt(f/y)/1e3,k=5>Math.abs(P);if(u||(u=k?iq:iG),d||(d=k?iK:iZ),S<1)s=iJ(T,S),r=(b+S*T*P)/s,i=t=>p-Math.exp(-S*T*t)*(r*Math.sin(s*t)+P*Math.cos(s*t)),o=S*T*r+P*s,a=S*T*P-r*s,n=t=>Math.exp(-S*T*t)*(o*Math.sin(s*t)+a*Math.cos(s*t));else if(1===S){i=t=>p-Math.exp(-T*t)*(P+(b+T*P)*t);let t=b+T*P;n=e=>Math.exp(-T*e)*(T*t*e-b)}else{let t=T*Math.sqrt(S*S-1);i=e=>{let i=Math.exp(-S*T*e),n=Math.min(t*e,300);return p-i*((b+S*T*P)*Math.sinh(n)+t*P*Math.cosh(n))/t};let e=(b+S*T*P)/t,s=S*T*e-P*t,r=S*T*P-e*t;n=e=>{let i=Math.exp(-S*T*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let j={calculatedDuration:w&&v||null,velocity:t=>tU(n(t)),next:t=>{if(!w&&S<1){let e=Math.exp(-S*T*t),i=Math.sin(s*t),n=Math.cos(s*t),l=p-e*(r*i+P*n);return m.done=Math.abs(tU(e*(o*i+a*n)))<=u&&Math.abs(p-l)<=d,m.value=m.done?p:l,m}let e=i(t);return w?m.done=t>=v:m.done=Math.abs(tU(n(t)))<=u&&Math.abs(p-e)<=d,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(iX(j),2e4),e=t5(e=>j.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return j}function i5(t,e,i){let n=Math.max(e-5,0);return ei(i-t(n),e-n)}function i3({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?y:i},b=t=>{let e;if(e=m.value,void 0!==a&&el){var i;d=t,c=i2({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i){let e=!1;return(c||void 0!==d||(e=!0,w(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}i2.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(iX(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,i2);return t.ease=e.ease,t.duration=tU(e.duration),t.type="keyframes",t};let i8=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i4(t,e,i,n){return t===e&&i===n?tT:s=>0===s||1===s?s:i8(function(t,e,i,n,s){let r,o,a=0;do(r=i8(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(s,0,1,t,i),e,n)}let i6=i4(.42,0,1,1),i9=i4(0,0,.58,1),i7=i4(.42,0,.58,1),nt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ne=t=>e=>1-t(1-e),ni=i4(.33,1.53,.69,.99),nn=ne(ni),ns=nt(nn),nr=t=>t>=1?1:(t*=2)<1?.5*nn(t):.5*(2-Math.pow(2,-10*(t-1))),no=t=>1-Math.sin(Math.acos(t)),na=ne(no),nl=nt(no),nh={linear:tT,easeIn:i6,easeInOut:i7,easeOut:i9,circIn:no,circInOut:nl,circOut:na,backIn:nn,backInOut:ns,backOut:ni,anticipate:nr},nu=t=>{if(t1(t)){ti(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return i4(e,i,n,s)}return"string"==typeof t?(ti(void 0!==nh[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nh[t]):t},nd=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function nc({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nu):nu(n),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(ti(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||tk.mix||iH,r=t.length-1;for(let i=0;i{if(o&&i1)for(;nu(h(t[0],t[r-1],e)):u}((s=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=nd(0,e,n);t.push(eI(i,1,s))}}(r=[0],e.length-1),r),s.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||i7).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let np={decay:i3,inertia:i3,tween:nc,keyframes:nc,spring:i2};function nm(t){"string"==typeof t.type&&(t.type=np[t.type])}let nf=t=>t/100;class ng extends t0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ee.now()&&this.tick(ee.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nm(t);let{type:e=nc,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||nc;a!==nc&&"number"!=typeof o[0]&&(this.mixKeyframes=iR(nf,iH(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iX(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:d,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let w=this.currentTime,b=n;if(c){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/a)):"mirror"===p&&(b=o)),w=h(0,1,i)*a}x?(this.delayState.value=d[0],i=this.delayState):i=b.next(w),r&&!x&&(i.value=r(i.value));let{done:S}=i;x||null===l||(S=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return P&&f!==i3&&(i.value=tQ(d,this.options,y,this.speed)),g&&g(i.value),P&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tU(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i5(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ee.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iY,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ee.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let ny={anticipate:nr,backInOut:ns,circInOut:nl};class nv extends t6{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ny&&(t.ease=ny[t.ease])}(t),nm(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new ng({...r,autoplay:!1}),a=Math.max(10,ee.now()-this.startTime),l=h(0,10,a-10),u=o.sample(a).value,{name:d}=this.options;s&&d&&tX(s,d,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let nx=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(N.test(t)||"0"===t)&&!t.startsWith("url("));function nw(t){t.duration=0,t.type="keyframes"}let nb=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nS=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nP=tq(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nT extends t0{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ee.now();const d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:h,...u},c=h?.KeyframeResolver||tB;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=ee.now();let d=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=nx(s,e),a=nx(r,e);return te(o===a,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return nP()&&i&&(t9.has(i)||nS.has(i)&&function(t){for(let e=0;e{this.notifyFinished()}).catch(tT),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tO=!0,tF(),tN(),tO=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nk={type:"spring",stiffness:500,damping:25,restSpeed:10},nj={type:"keyframes",duration:.8},nE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nC=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nA=(t,e,i,n={},s,r)=>o=>{let a=iA(n,t)||{},h=a.delay||n.delay||0,{elapsed:u=0}=n;u-=tU(h);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!nC.has(e))return!0;return!1}(a)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?nj:l.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nk:nE)(t,d)),d.duration&&(d.duration=tU(d.duration)),d.repeatDelay&&(d.repeatDelay=tU(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(nw(d),0===d.delay&&(c=!0)),(tk.instantAnimations||tk.skipAnimations||s?.shouldSkipAnimations||a.skipAnimations)&&(c=!0,nw(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,c&&!r&&void 0!==e.get()){let t=tQ(d.keyframes,a);if(void 0!==t)return void tC.update(()=>{d.onUpdate(t),d.onComplete()})}return a.isSync?new ng(d):new nT(d)};function nM(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?iC(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;n&&(r=n);let d=[],c=s&&t.animationState&&t.animationState.getState()[s],p=r?.path;for(let e in p&&p.animateVisualElement(t,a,r,i,d),a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...iA(r||{},e)};u&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!o.velocity){tC.update(()=>n.set(s));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[ib];if(i){let t=window.MotionHandoffAnimation(i,e,tC);null!==t&&(o.startTime=t,p=!0)}}iV(t,e);let m=h??t.shouldReduceMotion;n.start(nA(e,n,s,m&&Z.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&d.push(f)}if(o){let e=()=>tC.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=iE(t,e)||{};for(let e in s={...s,...i}){var r;let i=iM(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,er(i))}}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function nV(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function nR(t,e,i={}){let n=iE(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nM(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nR(l,e,{...o,delay:i+("function"==typeof n?0:n)+nV(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}let nD=ed.length;function nL(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nt.removeEventListener(e,i,n)}let nz={x:!1,y:!1};function nU(t){return t.max-t.min}function nW(t,e,i,n=.5){t.origin=n,t.originPoint=eI(e.min,e.max,t.origin),t.scale=nU(i)/nU(e),t.translate=eI(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nH(t,e,i,n){nW(t.x,e.x,i.x,n?n.originX:void 0),nW(t.y,e.y,i.y,n?n.originY:void 0)}function nY(t,e,i,n=0){t.min=(n?eI(i.min,i.max,n):i.min)+e.min,t.max=t.min+nU(e)}function nX(t,e,i,n=0){let s=n?eI(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+nU(e)}function nq(t,e,i,n){nX(t.x,e.x,i.x,n?.x),nX(t.y,e.y,i.y,n?.y)}let nG=t=>"object"==typeof t&&null!==t;function nK(t){return nG(t)&&"ownerSVGElement"in t}function nZ(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let nJ=new WeakMap,nQ=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:nK(n)&&"getBBox"in n?n.getBBox()[e]:n[i],n0=nQ("inline","width","offsetWidth"),n1=nQ("block","height","offsetHeight");function n2({target:t,borderBoxSize:e}){nJ.get(t)?.forEach(i=>{i(t,{get width(){return n0(t,e)},get height(){return n1(t,e)}})})}function n5(t){t.forEach(n2)}let n3=new Set;function n8(t,e){let s;return"function"==typeof t?(n3.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n3.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n3.delete(t),n3.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n5)),(s=nZ(t)).forEach(t=>{let n=nJ.get(t);n||(n=new Set,nJ.set(t,n)),n.add(e),i?.observe(t)}),()=>{s.forEach(t=>{let n=nJ.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let n4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n6=new Set(["INPUT","SELECT","TEXTAREA"]),n9=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n7(t){return{point:{x:t.pageX,y:t.pageY}}}function st(t,e,i,n){return n_(t,e,t=>n9(t)&&i(t,n7(t)),n)}let se=({current:t})=>t?t.ownerDocument.defaultView:null,si=(t,e)=>Math.abs(t-e),sn=new Set(["auto","scroll"]);class ss{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sr(this.lastRawMoveEventInfo,this.transformPagePoint));let i=sa(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(si(t.x,e.x)**2+si(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=tM;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=sr(e,this.transformPagePoint),tC.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sa("pointercancel"===t.type?this.lastMoveEventInfo:sr(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!n9(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const a=sr(n7(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tM;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,sa(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=iR(st(this.contextWindow,"pointermove",this.handlePointerMove,d),st(this.contextWindow,"pointerup",this.handlePointerUp,d),st(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(sn.has(t.overflowX)||sn.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tC.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tA(this.updatePoint)}}function sr(t,e){return e?{point:e(t.point)}:t}function so(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sa({point:t},e){return{point:t,delta:so(t,sl(e)),offset:so(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=sl(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>tU(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*tU(.1)&&(i=t[1]);let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function sl(t){return t[t.length-1]}function sh(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function su(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min{e&&this.snapToCursor(n7(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nz[t])return null;else return nz[t]=!0,()=>{nz[t]=!1};return nz.x||nz.y?null:(nz.x=nz.y=!0,()=>{nz.x=nz.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n$(t=>{let e=this.getAxisMotionValue(t).get()||0;if(P.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nU(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tC.update(()=>s(t,e),!1,!0),iV(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&tC.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new ss(t,{onSessionStart:s,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:se(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&tC.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!sg(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?eI(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iP(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:sh(t.x,i,s),y:sh(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sd(t,"left","right"),y:sd(t,"top","bottom")}}(e),n!==this.constraints&&!iP(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&n$(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iP(e))return!1;let n=e.current;ti(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());let r=function(t,e,i){let n=e5(t,i),{scroll:s}=e;return s&&(eQ(n.x,s.offset.x),eQ(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:su(t.x,r.x),y:su(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eH(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(n$(o=>{if(!sg(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iV(this.visualElement,t),i.start(nA(t,i,0,e,this.visualElement,!1))}stopAnimation(){n$(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){n$(e=>{let{drag:i}=this.getProps();if(!sg(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-eI(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iP(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n$(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,o,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,o=nU(i),(a=nU(s))>o?r=nd(s.min,s.max-o,i.min):o>a&&(r=nd(i.min,i.max-a,s.min)),h(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),n$(e=>{if(!sg(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(eI(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;sp.set(this.visualElement,this);let e=this.visualElement.current,i=st(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,r=s!==e&&(n6.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,o,{dragConstraints:a}=this.getProps();iP(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,r=n8(i,sf(s=()=>this.scalePositionWithinConstraints())),o=n8(n,sf(s)),t=()=>{r(),o()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tC.read(n);let o=n_(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n$(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function sf(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sg(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sy=t=>(e,i)=>{t&&tC.update(()=>t(e,i),!1,!0)},sv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sx=e8;function sw(t=!0){let e=(0,e8.useContext)(id);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,e8.useId)();(0,e8.useEffect)(()=>{if(t)return s(r)},[t]);let o=(0,e8.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}let sb=!1;class sS extends sx.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sb&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),sb=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||tC.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),t7.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sb=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sP(t){let[e,i]=sw(),n=(0,sx.useContext)(e9);return(0,o.jsx)(sS,{...t,layoutGroup:n,switchLayoutGroup:(0,sx.useContext)(iS),isPresent:e,safeToRemove:i})}let sT=eN.length,sk=t=>"string"==typeof t?parseFloat(t):t,sj=t=>"number"==typeof t||T.test(t);function sE(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sC=sM(0,.5,na),sA=sM(.5,.95,tT);function sM(t,e,i){return n=>ne?1:i(nd(t,e,n))}function sV(t,e){t.min=e.min,t.max=e.max}function sR(t,e){sV(t.x,e.x),sV(t.y,e.y)}function sD(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sL(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sO(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(P.test(e)&&(e=parseFloat(e),e=eI(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eI(r.min,r.max,n);t===r&&(a-=e),t.min=sL(t.min,e,i,a,s),t.max=sL(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let sN=["x","scaleX","originX"],sF=["y","scaleY","originY"];function sB(t,e,i,n){sO(t.x,e,sN,i?i.x:void 0,n?n.x:void 0),sO(t.y,e,sF,i?i.y:void 0,n?n.y:void 0)}function sI(t){return 0===t.translate&&1===t.scale}function s$(t){return sI(t.x)&&sI(t.y)}function s_(t,e){return t.min===e.min&&t.max===e.max}function sz(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sU(t,e){return sz(t.x,e.x)&&sz(t.y,e.y)}function sW(t){return nU(t.x)/nU(t.y)}function sH(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sY{constructor(){this.members=[]}add(t){tW(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tH(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tH(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let sX=(t,e)=>t.depth-e.depth;class sq{constructor(){this.children=[],this.isDirty=!1}add(t){tW(this.children,t),this.isDirty=!0}remove(t){tH(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sX),this.isDirty=!1,this.children.forEach(t)}}let sG=["","X","Y","Z"],sK=0;function sZ(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sJ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sK++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(s1),this.nodes.forEach(rt),this.nodes.forEach(re),this.nodes.forEach(s2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;tC.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=ee.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tA(r),s(i-250))},tC.setup(r,!0),i=()=>tA(r),sv.hasAnimatedSinceResize&&(sv.hasAnimatedSinceResize=!1,this.nodes.forEach(s7))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||ra,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!sU(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iA(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||s7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tA(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ri),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[ib];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tC,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nU(this.snapshot.measuredBox.x)||nU(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=G());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sD(this.prevProjectionDelta.x,this.projectionDelta.x),sD(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nH(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&sH(this.projectionDelta.x,this.prevProjectionDelta.x)&&sH(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=X(),this.projectionDelta=X(),this.projectionDeltaWithTransform=X()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,r=s?s.latestValues:{},o={...this.latestValues},a=X();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=G(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(ro));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(s?(a.x.translate=s.x,a.x.scale=eI(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=s.y,a.y.scale=eI(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(rs(a.x,t.x,i),rs(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,g,y,v;nq(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,rr(f.x,g.x,y.x,v),rr(f.y,g.y,y.y,v),n&&(u=this.relativeTarget,m=n,s_(u.x,m.x)&&s_(u.y,m.y))&&(this.isProjectionDirty=!1),n||(n=G()),sR(n,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,n,s,r){s?(t.opacity=eI(0,i.opacity??1,sC(n)),t.opacityExit=eI(e.opacity??1,0,sA(n))):r&&(t.opacity=eI(e.opacity??1,i.opacity??1,n));for(let s=0;s{var e,i,n;let s;sv.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=er(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=K(e)?e:er(e)).start(nA("",s,i,n)),s.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rd(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||G();let e=nU(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nU(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sR(e,i),e2(e,s),nH(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sY),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&sZ("z",t,n,this.animationValues);for(let e=0;et.currentAnimation?.stop()),this.root.nodes.forEach(s3),this.root.sharedNodes.clear()}}}function sQ(t){t.updateLayout()}function s0(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)n$(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nU(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";sV(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rd(s,e.layoutBox,i)&&n$(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=nU(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=X();nH(o,i,e.layoutBox);let a=X();r?nH(a,t.applyTransform(n,!0),e.measuredBox):nH(a,i,e.layoutBox);let l=!s$(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=t.options.layoutAnchor||void 0,a=G();nq(a,e.layoutBox,s.layoutBox,o);let l=G();nq(l,i,r.layoutBox,o),sU(a,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function s1(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function s2(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function s5(t){t.clearSnapshot()}function s3(t){t.clearMeasurements()}function s8(t){t.isLayoutDirty=!0,t.updateLayout()}function s4(t){t.isLayoutDirty=!1}function s6(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function s9(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function s7(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rt(t){t.resolveTargetDelta()}function re(t){t.calcProjection()}function ri(t){t.resetSkewAndRotation()}function rn(t){t.removeLeadSnapshot()}function rs(t,e,i){t.translate=eI(e.translate,0,i),t.scale=eI(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rr(t,e,i,n){t.min=eI(e.min,i.min,n),t.max=eI(e.max,i.max,n)}function ro(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ra={duration:.45,ease:[.4,0,.1,1]},rl=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rh=rl("applewebkit/")&&!rl("chrome/")?Math.round:tT;function ru(t){t.min=rh(t.min),t.max=rh(t.max)}function rd(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sW(e)-sW(i)))}function rc(t){return t!==t.root&&t.scroll?.wasRoot}let rp=sJ({attachResizeListener:(t,e)=>n_(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rm={current:void 0},rf=sJ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rm.current){let t=new rp({});t.mount(window),t.setOptions({layoutScroll:!0}),rm.current=t}return rm.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rg(t,e){let i=nZ(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ry(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tC.postRender(()=>s(e,n7(e)))}function rv(t){return nG(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}let rx=(t,e)=>!!e&&(t===e||rx(t,e.parentElement)),rw=new WeakSet;function rb(t){return e=>{"Enter"===e.key&&t(e)}}function rS(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rP(t){return n9(t)&&!(nz.x||nz.y)}let rT=new WeakSet;function rk(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&tC.postRender(()=>s(e,n7(e)))}let rj=new WeakMap,rE=new WeakMap,rC=t=>{let e=rj.get(t.target);e&&e(t)},rA=t=>{t.forEach(rC)},rM={some:0,all:1},rV=function(t,e){if("u"ik(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,ik(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends ij{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nR(t,e,i)));else if("string"==typeof e)n=nR(t,e,i);else{let s="function"==typeof e?iE(t,e,i.custom):e;n=Promise.all(nM(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nB(),n=!0,s=!1,r=e=>(i,n)=>{let s=iE(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tc&&v,P=!1,T=Array.isArray(y)?y:[y],k=T.reduce(r(f),{});!1===x&&(k={});let{prevResolvedValues:j={}}=g,E={...j,...k},C=e=>{S=!0,u.has(e)&&(P=!0,u.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=k[t],i=j[t];if(!d.hasOwnProperty(t))(iM(e)&&iM(i)?!nL(e,i)||b:e!==i)?null!=e?C(t):u.add(t):void 0!==e&&u.has(t)?C(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=k,g.isActive&&(d={...d,...k}),(n||s)&&t.blockInitialAnimation&&(S=!1);let A=w&&b,M=!A||P;S&&M&&h.push(...T.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!A&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=iE(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nV(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=iE(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nB(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();el(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ij{constructor(){super(...arguments),this.id=nI++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iE(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends ij{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rM[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rE.has(i)||rE.set(i,{});let n=rE.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(rA,{root:t,...e})),n[s]}(a),rj.set(t,l),e.observe(t),()=>{rj.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends ij{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=rg(t,i),o=t=>{let n=t.currentTarget;if(!rP(t)||rT.has(t))return;rw.add(n),i.stopPropagation&&rT.add(t);let r=e(n,t),o={...s,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",h,o),rw.has(n)&&rw.delete(n),rP(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{a(t,n===window||n===document||i.useGlobalTarget||rx(n,t.target))},h=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),rv(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rb(()=>{if(rw.has(i))return;rS(i,"down");let t=rb(()=>{rS(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rS(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),n4.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rk(this.node,e,"Start"),(t,{success:e})=>rk(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends ij{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iR(n_(this.node.current,"focus",()=>this.onFocus()),n_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ij{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=rg(t,i);return n.forEach(t=>{let i,n=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nz.x||nz.y)return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),r}(t,(t,e)=>(ry(this.node,e,"Start"),t=>ry(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ij{constructor(){super(...arguments),this.removePointerDownListener=tT}onPointerDown(t){this.session=new ss(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:se(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sy(t),onStart:sy(e),onMove:sy(i),onEnd:(t,e)=>{delete this.session,n&&tC.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=st(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ij{constructor(t){super(t),this.removeGroupControls=tT,this.removeListeners=tT,this.controls=new sm(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tT}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rf,MeasureLayout:sP},layout:{ProjectionNode:rf,MeasureLayout:sP}},(t,e)=>e.isSVG??e6(t)?new eW(e):new e3(e,{allowProjection:t!==e8.Fragment})),rR=(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim();var rD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let rL=(0,e8.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:i=2,absoluteStrokeWidth:n,className:s="",children:r,iconNode:o,...a},l)=>(0,e8.createElement)("svg",{ref:l,...rD,width:e,height:e,stroke:t,strokeWidth:n?24*Number(i)/Number(e):i,className:rR("lucide",s),...a},[...o.map(([t,e])=>(0,e8.createElement)(t,e)),...Array.isArray(r)?r:[r]])),rO=(t,e)=>{let i=(0,e8.forwardRef)(({className:i,...n},s)=>(0,e8.createElement)(rL,{ref:s,iconNode:e,className:rR(`lucide-${t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,i),...n}));return i.displayName=`${t}`,i},rN=rO("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),rF=rO("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),rB=rO("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var rI=t.i(57688);let r$=rO("Feather",[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]]),r_=rO("Footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]),rz="https://koordi.handprotocol.org".replace(/\/+$/,""),rU="koordi_pk_live_LnbCYp2NxpqJGjCB1QySALn-xdCcSqDq",rW=null;function rH(){return rW||(rW=new Promise((t,e)=>{if(customElements.get("koordi-booking"))return t();let i=document.createElement("script");i.src=`${rz}/widget.js`,i.defer=!0,i.onload=()=>t(),i.onerror=()=>e(Error("koordi widget did not load")),document.head.appendChild(i)}))}function rY({fallbackEmail:t}){let[e,i]=(0,e8.useState)("loading");return((0,e8.useEffect)(()=>{let t=!0;return rH().then(()=>t&&i("ready"),()=>t&&i("failed")),()=>{t=!1}},[]),rU&&"failed"!==e)?(0,o.jsxs)("div",{className:"koordi-shell","data-status":e,children:["loading"===e&&(0,o.jsx)("p",{className:"door-fallback",children:"Opening the calendar…"}),(0,e8.createElement)("koordi-booking",{"data-key":rU,"data-api":rz,"data-lang":"en","data-heading":"3"})]}):(0,o.jsxs)("p",{className:"door-fallback",children:["Visits are arranged by hand for now. Write to"," ",(0,o.jsx)("a",{href:`mailto:${t}`,children:t})," and we will find a day together."]})}function rX({onHello:t,onVisit:e}){let[i,n]=(0,e8.useState)("loading");return((0,e8.useEffect)(()=>{let t=!0;return rH().then(()=>t&&n(customElements.get("koordi-gatherings")?"ready":"missing"),()=>t&&n("failed")),()=>{t=!1}},[]),rU&&"failed"!==i&&"missing"!==i)?(0,o.jsxs)("div",{className:"koordi-shell","data-status":i,children:["loading"===i&&(0,o.jsx)("p",{className:"door-fallback",children:"Opening the calendar…"}),(0,e8.createElement)("koordi-gatherings",{"data-key":rU,"data-api":rz,"data-lang":"en","data-heading":"3","data-limit":"12","data-empty":"Nothing on the calendar yet. First gatherings open fall 2027."})]}):(0,o.jsxs)("div",{className:"door-done",children:[(0,o.jsx)("h3",{children:"The calendar is being set."}),(0,o.jsxs)("p",{children:["First gatherings open fall 2027. If you would like first word when dates are posted,"," ",(0,o.jsx)("button",{type:"button",className:"link-btn",onClick:t,children:"say hello"})," ","and tick keep me posted. The land is open to visit in the meantime:"," ",(0,o.jsx)("button",{type:"button",className:"link-btn",onClick:e,children:"choose a day"}),"."]})]})}var rq=e8;function rG(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class rK extends rq.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(rv(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=rv(t)&&t.offsetWidth||0,n=rv(t)&&t.offsetHeight||0,s=getComputedStyle(e),r=this.props.sizeRef.current;r.height=parseFloat(s.height),r.width=parseFloat(s.width),r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left,r.bottom=n-r.height-r.top,r.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function rZ({children:t,isPresent:e,anchorX:i,anchorY:n,root:s,pop:r}){let a=(0,rq.useId)(),l=(0,rq.useRef)(null),h=(0,rq.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,rq.useContext)(it),d=function(...t){return e8.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=rG(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e{let{width:t,height:o,top:d,left:c,right:p,bottom:m,direction:f}=h.current;if(e||!1===r||!l.current||!t||!o)return;let g="rtl"===f,y="left"===i?g?`right: ${p}`:`left: ${c}`:g?`left: ${c}`:`right: ${p}`,v="bottom"===n?`bottom: ${m}`:`top: ${d}`;l.current.dataset.motionPopId=a;let x=document.createElement("style");u&&(x.nonce=u);let w=s??document.head;return w.appendChild(x),x.sheet&&x.sheet.insertRule(` + [data-motion-pop-id="${a}"] { + position: absolute !important; + width: ${t}px !important; + height: ${o}px !important; + ${y}px !important; + ${v}px !important; + } + `),()=>{l.current?.removeAttribute("data-motion-pop-id"),w.contains(x)&&w.removeChild(x)}},[e]),(0,o.jsx)(rK,{isPresent:e,childRef:l,sizeRef:h,pop:r,children:!1===r?t:rq.cloneElement(t,{ref:d})})}let rJ=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:s,presenceAffectsLayout:r,mode:a,anchorX:l,anchorY:h,root:u})=>{let d=ic(rQ),c=(0,e8.useId)(),p=(0,e8.useRef)(i),m=(0,e8.useRef)(n);iT(()=>{p.current=i,m.current=n});let f=!0,g=(0,e8.useMemo)(()=>(f=!1,{id:c,initial:e,isPresent:i,custom:s,onExitComplete:t=>{for(let e of(d.set(t,!0),d.values()))if(!e)return;n&&n()},register:t=>(d.set(t,!1),()=>{d.delete(t),p.current||d.size||m.current?.()})}),[i,d,n]);return r&&f&&(g={...g}),(0,e8.useMemo)(()=>{d.forEach((t,e)=>d.set(e,!1))},[i]),e8.useEffect(()=>{i||d.size||!n||n()},[i]),t=(0,o.jsx)(rZ,{pop:"popLayout"===a,isPresent:i,anchorX:l,anchorY:h,root:u,children:t}),(0,o.jsx)(id.Provider,{value:g,children:t})};function rQ(){return new Map}let r0=t=>t.key||"";function r1(t){let e=[];return e8.Children.forEach(t,t=>{(0,e8.isValidElement)(t)&&e.push(t)}),e}let r2=({children:t,custom:e,initial:i=!0,onExitComplete:n,presenceAffectsLayout:s=!0,mode:r="sync",propagate:a=!1,anchorX:l="left",anchorY:h="top",root:u})=>{let[d,c]=sw(a),p=(0,e8.useMemo)(()=>r1(t),[t]),m=a&&!d?[]:p.map(r0),f=(0,e8.useRef)(!0),g=(0,e8.useRef)(p),y=ic(()=>new Map),v=(0,e8.useRef)(new Set),[x,w]=(0,e8.useState)(p),[b,S]=(0,e8.useState)(p);iT(()=>{f.current=!1,g.current=p;for(let t=0;t{let x=r0(t),w=(!a||!!d)&&(p===b||m.includes(x));return(0,o.jsx)(rJ,{isPresent:w,initial:(!f.current||!!i)&&void 0,custom:e,presenceAffectsLayout:s,mode:r,root:u,onExitComplete:w?void 0:()=>{if(v.current.has(x)||!y.has(x))return;v.current.add(x),y.set(x,!0);let t=!0;y.forEach(e=>{e||(t=!1)}),t&&(T?.(),S(g.current),a&&c?.(),n&&n())},anchorX:l,anchorY:h,children:t},x)})})},r5=rO("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function r3({open:t,label:e,tabs:i,onClose:n,children:s}){let r=(0,e8.useRef)(null),a=(0,e8.useCallback)(()=>{n();let t=r.current;t&&"function"==typeof t.focus&&t.focus()},[n]);return(0,e8.useEffect)(()=>{if(!t)return;r.current=document.activeElement;let e=document.body.style.overflow;document.body.style.overflow="hidden";let i=t=>"Escape"===t.key&&a();return window.addEventListener("keydown",i),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",i)}},[t,a]),(0,o.jsx)(r2,{children:t&&(0,o.jsx)(rV.div,{className:"modal-veil",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.35},onMouseDown:t=>t.target===t.currentTarget&&a(),children:(0,o.jsxs)(rV.section,{role:"dialog","aria-modal":"true","aria-label":e,className:"modal",initial:{opacity:0,y:26,scale:.985},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:14,scale:.99},transition:{duration:.45,ease:[.2,.7,.2,1]},children:[(0,o.jsx)("div",{className:"modal-tabs",children:i}),(0,o.jsx)("button",{className:"modal-close",onClick:a,type:"button","aria-label":"Close",children:(0,o.jsx)(r5,{size:18})}),(0,o.jsx)("div",{className:"modal-body",children:s})]})})})}function r8({items:t,current:e,onPick:i,label:n}){return(0,o.jsx)("div",{className:"modal-doors",role:"tablist","aria-label":n,children:t.map(t=>(0,o.jsxs)("button",{role:"tab","aria-selected":e===t.key,className:"door-tab",onClick:()=>i(t.key),type:"button",children:[t.icon,(0,o.jsx)("span",{children:t.label})]},t.key))})}function r4({id:t,children:e,dir:i=1}){return(0,o.jsx)(r2,{mode:"wait",initial:!1,children:(0,o.jsx)(rV.div,{initial:{opacity:0,x:12*i},animate:{opacity:1,x:0},exit:{opacity:0,x:-12*i},transition:{duration:.28},children:e},t)})}function r6({children:t,className:e="modal-title"}){let i=(0,e8.useRef)(null);return(0,e8.useEffect)(()=>{let t=window.setTimeout(()=>i.current?.focus(),60);return()=>window.clearTimeout(t)},[]),(0,o.jsx)("h2",{ref:i,tabIndex:-1,className:e,children:t})}let r9=[{key:"whatson",label:"What's on",icon:(0,o.jsx)(rB,{size:15})},{key:"hello",label:"Say hello",icon:(0,o.jsx)(r$,{size:15})}],r7=[{key:"whatson",label:"Join a gathering",hint:"Circles, workshops, community days on the board.",icon:(0,o.jsx)(rF,{size:18})},{key:"visit",label:"Come out to the land",hint:"A walk and a conversation, on a day of your own.",icon:(0,o.jsx)(r_,{size:18})}];function ot({current:t,onPick:e}){return(0,o.jsx)("div",{className:"ways",role:"tablist","aria-label":"Two ways onto the land",children:r7.map(i=>(0,o.jsxs)("button",{role:"tab","aria-selected":t===i.key,className:"way",type:"button",onClick:()=>e(i.key),children:[(0,o.jsx)("span",{className:"way-icon",children:i.icon}),(0,o.jsxs)("span",{className:"way-words",children:[(0,o.jsx)("strong",{children:i.label}),(0,o.jsx)("small",{children:i.hint})]})]},i.key))})}function oe({fallbackEmail:t}){let[e,i]=(0,e8.useState)("idle"),[n,s]=(0,e8.useState)({name:"",email:"",note:"",keepPosted:!0});async function r(t){if(t.preventDefault(),"sending"===e)return;let n=new FormData(t.currentTarget);if(String(n.get("website")||"").trim())return;let r=String(n.get("name")||"").trim(),o=String(n.get("email")||"").trim(),a=String(n.get("note")||"").trim(),l="on"===n.get("keepPosted");s({name:r,email:o,note:a,keepPosted:l}),i("sending");let h=[`From: ${r} <${o}>`,l?"Wants to hear what's unfolding.":"","",a].filter((t,e)=>""!==t||2===e).join("\n");try{let t=await fetch(`${window.location.origin}/.netlify/functions/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:h,name:r,path:window.location.pathname,title:document.title,source:"mystichearts",website:""})});i(t.ok?"sent":"failed")}catch{i("failed")}}if("sent"===e)return(0,o.jsxs)("div",{className:"door-done",children:[(0,o.jsx)("h3",{children:"Received, with thanks."}),(0,o.jsx)("p",{children:"A person reads every note. You will hear back from us, not from a machine."})]});let a=`mailto:${t}?subject=${encodeURIComponent("Hello from the Mystic Hearts site")}&body=${encodeURIComponent(`${n.note} + +${n.name} +${n.email}`)}`;return(0,o.jsxs)("form",{className:"hello-form",onSubmit:r,children:[(0,o.jsxs)("div",{className:"field-row",children:[(0,o.jsxs)("label",{className:"field",children:[(0,o.jsx)("span",{children:"Your name"}),(0,o.jsx)("input",{name:"name",type:"text",autoComplete:"name",required:!0,maxLength:120,defaultValue:n.name})]}),(0,o.jsxs)("label",{className:"field",children:[(0,o.jsx)("span",{children:"Email"}),(0,o.jsx)("input",{name:"email",type:"email",autoComplete:"email",required:!0,maxLength:200,defaultValue:n.email})]})]}),(0,o.jsxs)("label",{className:"field",children:[(0,o.jsx)("span",{children:"What brings you here"}),(0,o.jsx)("textarea",{name:"note",required:!0,minLength:4,maxLength:2e3,rows:5,defaultValue:n.note,placeholder:"Visiting, joining the community, attending a gathering, exploring residency, or a question about the land…"})]}),(0,o.jsxs)("label",{className:"tick",children:[(0,o.jsx)("input",{name:"keepPosted",type:"checkbox",defaultChecked:n.keepPosted}),(0,o.jsx)("span",{children:"Keep me posted on what is unfolding on the land."})]}),(0,o.jsx)("input",{className:"hp",name:"website",type:"text",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),"failed"===e&&(0,o.jsxs)("p",{className:"door-error",children:["That did not go through. You can ",(0,o.jsx)("a",{href:a,children:"send it by email"})," instead."]}),(0,o.jsxs)("div",{className:"door-actions",children:[(0,o.jsxs)("button",{className:"btn btn-gold",type:"submit",disabled:"sending"===e,children:["sending"===e?"Sending…":"Send",(0,o.jsx)(rN,{size:18})]}),(0,o.jsx)("span",{className:"door-fine",children:"We never share your details."})]})]})}function oi({door:t,onClose:e,onSwitch:i,fallbackEmail:n}){let s=t??"hello",r="hello"===s?"hello":"whatson";return(0,o.jsx)(r3,{open:null!==t,label:"Get in touch",onClose:e,tabs:(0,o.jsx)(r8,{items:r9,current:r,onPick:i,label:"How to reach us"}),children:(0,o.jsxs)(r4,{id:r,children:["hello"===r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"modal-kicker",children:"Come home to the collective"}),(0,o.jsxs)(r6,{children:["Tell us what you are ",(0,o.jsx)("em",{children:"carrying."})]}),(0,o.jsx)("p",{className:"modal-lede",children:"Whether you are interested in visiting, joining our community, attending a gathering, or exploring residency, we would love to hear from you."}),(0,o.jsx)(oe,{fallbackEmail:n})]}),"whatson"===r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"modal-kicker",children:"On the land"}),(0,o.jsxs)(r6,{children:["What is ",(0,o.jsx)("em",{children:"unfolding."})]}),(0,o.jsx)("p",{className:"modal-lede",children:"Two ways in: take a seat at something already on the calendar, or choose a day of your own to walk the land. A person confirms either by hand, and the address comes with the yes."}),(0,o.jsx)(ot,{current:s,onPick:i}),(0,o.jsxs)("div",{className:"way-panel",children:["whatson"===s&&(0,o.jsx)(rX,{onHello:()=>i("hello"),onVisit:()=>i("visit")}),"visit"===s&&(0,o.jsx)(rY,{fallbackEmail:n})]},s)]})]})})}let on=[{key:"vision",label:"Our vision"},{key:"principles",label:"How we live"},{key:"land",label:"The land"},{key:"gatherings",label:"Gatherings"}],os=["Mystic Hearts Healing Collective is a 10-acre sanctuary in East Austin devoted to collective healing, embodied living, and a more compassionate, connected world.","We hold space for individuals and communities to gather, grow, and remember, through nature, meaningful gatherings, and the wisdom of a diverse community of healers."],or=["Healing people.","Healthier communities.","A brighter tomorrow."],oo=[["Acceptance and inclusivity","Meeting every background, perspective, and spiritual tradition with an open heart."],["Sobriety and presence","Honoring full, clear presence in our mind, body, and interactions."],["Dedication to healing","Committing continuously to personal growth, self-healing, and honoring the sanctity of life."],["Non-violent communication","Expressing needs and resolving conflicts through compassionate, respectful, and peaceful dialogue."],["Reverence for land and community","Tending with care to our 10 acres of East Austin soil, our animal kin, and one another."],["Self-responsibility","Owning our emotional impact, personal boundaries, triggers, feelings, and inner state."],["Stewardship","Ensuring our actions leave a sustainable, harmonious mark on the environment and surrounding neighborhood."],["Reciprocity","Energy, compensation, care, and labor flow mutually between resident healers, visitors, and the land."],["Confidentiality","What is shared in session or ceremony stays within the circle, honoring the privacy of every participant."]],oa=[["The Healing House","Private sessions, bodywork, and small group offerings."],["Main House","A welcoming home for community meals, gatherings, and collaboration."],["Large Gathering Yurt","A spacious ceremonial space for workshops, events, and community."],["Short-Term Stay Yurts","Cozy, nature-immersed stays for visitors and community members."],["Pool and Hot Tub","A place to relax, refresh, and connect under the Texas sky."],["Bathhouse","Beautiful and eco-conscious facilities to support our community."],["Event Lawn","Wide open ground for festivals, ceremonies, movement, and celebration."]],ol=["Workshops and classes","Retreats and gatherings","Embodied living","Life transitions","Community meals","Healing arts and modalities","Integration and ongoing support"],oh="Host a gathering on the land",ou="Request the Gathering Yurt, Healing House, or Event Lawn for your workshop, circle, or session. We confirm every request personally.";function od(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"modal-kicker",children:"Our vision"}),(0,o.jsxs)(r6,{children:["People. Land. Healing."," ",(0,o.jsx)("em",{className:"line",children:"A more connected world."})]}),(0,o.jsx)("div",{className:"prose",children:os.map(t=>(0,o.jsx)("p",{children:t},t))}),(0,o.jsx)("blockquote",{className:"pull",children:"A sanctuary for a kinder, more connected tomorrow."}),(0,o.jsx)("p",{className:"tagline",children:or.map(t=>(0,o.jsx)("span",{children:t},t))}),(0,o.jsx)("p",{className:"fine",children:"An interfaith, sober sanctuary. East Austin, Texas. Address provided upon booking or a scheduled visit."})]})}function oc(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"modal-kicker",children:"Community principles"}),(0,o.jsx)(r6,{children:"How we live together"}),(0,o.jsx)("p",{className:"modal-lede",children:"Our principles guide how we show up, with care for ourselves, for each other, and for the land. They create the foundation for a safe, inclusive, and thriving community."}),(0,o.jsx)("ol",{className:"principles",children:oo.map(([t,e],i)=>(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"num",children:String(i+1).padStart(2,"0")}),(0,o.jsx)("span",{className:"name",children:t}),(0,o.jsx)("span",{className:"meaning",children:e})]},t))})]})}function op({onVisit:t}){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"modal-kicker",children:"Grounds and sanctuary spaces"}),(0,o.jsx)(r6,{children:"A sacred home on 10 acres"}),(0,o.jsx)("p",{className:"modal-lede",children:"Our land offers a variety of spaces for healing, gathering, resting, and creating. From intimate rooms to open ground, every corner is an invitation to slow down and reconnect."}),(0,o.jsx)("ul",{className:"spaces",children:oa.map(([t,e])=>(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"name",children:t}),(0,o.jsx)("span",{className:"meaning",children:e})]},t))}),(0,o.jsx)("div",{className:"door-actions",children:(0,o.jsxs)("button",{className:"btn btn-gold",type:"button",onClick:t,children:[(0,o.jsx)(rF,{size:18}),"Walk the land with us"]})})]})}function om({onVisit:t,onHello:e}){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"modal-kicker",children:"Gatherings and offerings"}),(0,o.jsx)(r6,{children:"Spiritual and practical integration for real life"}),(0,o.jsx)("p",{className:"modal-lede",children:"We host workshops, classes, retreats, and community gatherings that support embodied living, personal and collective healing, and life transitions. Our offerings weave together the spiritual and the practical, helping you bring what you learn into everyday life."}),(0,o.jsx)("ul",{className:"kinds",children:ol.map(t=>(0,o.jsx)("li",{children:t},t))}),(0,o.jsx)("p",{className:"fine",children:"First gatherings open fall 2027. The calendar fills from bookings on the land."}),(0,o.jsxs)("div",{className:"host",children:[(0,o.jsx)("h3",{children:oh}),(0,o.jsx)("p",{children:ou}),(0,o.jsxs)("div",{className:"door-actions",children:[(0,o.jsxs)("button",{className:"btn btn-gold",type:"button",onClick:t,children:["Request the land",(0,o.jsx)(rN,{size:18})]}),(0,o.jsx)("button",{className:"btn btn-glass",type:"button",onClick:e,children:"Ask a question"})]})]})]})}function of({chapter:t,onClose:e,onSwitch:i,onVisit:n,onHello:s}){let r=t??"vision";return(0,o.jsx)(r3,{open:null!==t,label:"About Mystic Hearts",onClose:e,tabs:(0,o.jsx)(r8,{items:on,current:r,onPick:i,label:"Chapters"}),children:(0,o.jsxs)(r4,{id:r,children:["vision"===r&&(0,o.jsx)(od,{}),"principles"===r&&(0,o.jsx)(oc,{}),"land"===r&&(0,o.jsx)(op,{onVisit:n}),"gatherings"===r&&(0,o.jsx)(om,{onVisit:n,onHello:s})]})})}let og=t=>`/mystichearts/demo${t}`,oy=[.2,.7,.2,1],ov={hidden:{opacity:0,y:22},visible:(t=0)=>({opacity:1,y:0,transition:{duration:.9,delay:t,ease:oy}})};function ox(){let t=(0,e8.useRef)(null),e=function(){ef.current||ey();let[t]=(0,e8.useState)(em.current);return t}();return(0,e8.useEffect)(()=>{let i=t.current;if(i){if(i.muted=!0,e)return void i.pause();i.play().catch(()=>{})}},[e]),(0,o.jsxs)("video",{ref:t,className:"hero-video",poster:og("/assets/images/hero-pergola-poster.jpg"),autoPlay:!e,muted:!0,loop:!0,playsInline:!0,preload:"auto","aria-hidden":"true",children:[(0,o.jsx)("source",{src:og("/assets/video/hero-pergola.webm"),type:"video/webm"}),(0,o.jsx)("source",{src:og("/assets/video/hero-pergola.mp4"),type:"video/mp4"})]})}t.s(["MysticHeartsPage",0,function(){let[t,e]=(0,e8.useState)(null),[i,n]=(0,e8.useState)(null),s=t=>{n(null),e(t)};return(0,o.jsxs)("main",{className:"stage","data-sheet":null!==t||null!==i?"open":"closed",children:[(0,o.jsx)(ox,{}),(0,o.jsx)("div",{className:"stage-shade","aria-hidden":"true"}),(0,o.jsx)("div",{className:"stage-grain","aria-hidden":"true"}),(0,o.jsxs)("header",{className:"stage-head",children:[(0,o.jsx)(rV.a,{href:"#",className:"brand",variants:ov,initial:"hidden",animate:"visible",custom:.1,children:(0,o.jsx)(rI.default,{src:og("/assets/images/logo-gold.png"),alt:"Mystic Hearts Healing Collective",width:132,height:132,priority:!0,className:"brand-mark"})}),(0,o.jsxs)(rV.div,{className:"head-right",variants:ov,initial:"hidden",animate:"visible",custom:.25,children:[(0,o.jsx)("span",{className:"brand-place",children:"East Austin, Texas"}),(0,o.jsxs)("button",{className:"btn btn-glass btn-small",type:"button",onClick:()=>s("hello"),children:["Get in touch",(0,o.jsx)(rN,{size:16})]})]})]}),(0,o.jsxs)("section",{className:"stage-center",children:[(0,o.jsx)(rV.p,{className:"kicker",variants:ov,initial:"hidden",animate:"visible",custom:.35,children:"Ten acres of healing land"}),(0,o.jsxs)(rV.h1,{className:"headline",variants:ov,initial:"hidden",animate:"visible",custom:.5,children:["A divine dream, ",(0,o.jsx)("em",{children:"made real"})," in East Austin."]}),(0,o.jsx)(rV.p,{className:"lede",variants:ov,initial:"hidden",animate:"visible",custom:.7,children:"A sober, interfaith home where people gather to heal, to practice, and to live more connected to the land and to each other."}),(0,o.jsxs)(rV.div,{className:"doors",variants:ov,initial:"hidden",animate:"visible",custom:.9,children:[(0,o.jsxs)("button",{className:"btn btn-gold",type:"button",onClick:()=>s("whatson"),children:[(0,o.jsx)(rB,{size:18}),"What's on at the land"]}),(0,o.jsxs)("button",{className:"btn btn-glass",type:"button",onClick:()=>s("visit"),children:[(0,o.jsx)(rF,{size:18}),"Visit the land"]})]})]}),(0,o.jsx)(rV.nav,{className:"stage-foot","aria-label":"About the collective",variants:ov,initial:"hidden",animate:"visible",custom:1.15,children:on.map(t=>(0,o.jsx)("button",{type:"button",className:"chapter-link",onClick:()=>n(t.key),children:t.label},t.key))}),(0,o.jsx)(of,{chapter:i,onClose:()=>n(null),onSwitch:n,onVisit:()=>s("visit"),onHello:()=>s("hello")}),(0,o.jsx)(oi,{door:t,onClose:()=>e(null),onSwitch:e,fallbackEmail:"cshearer210@gmail.com"})]})}],19873)}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/3dpzi432m30f4.js b/web/mystichearts/demo/_next/static/chunks/3dpzi432m30f4.js new file mode 100644 index 00000000..9c90c059 --- /dev/null +++ b/web/mystichearts/demo/_next/static/chunks/3dpzi432m30f4.js @@ -0,0 +1,5 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12718,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"InvariantError",{enumerable:!0,get:function(){return n}});class n extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}},32061,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={BailoutToCSRError:function(){return l},isBailoutToCSRError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="BAILOUT_TO_CLIENT_SIDE_RENDERING";class l extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=u}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===u}},64893,(e,t,r)=>{"use strict";var n=e.r(74080),a={stream:!0},u=Object.prototype.hasOwnProperty;function l(t){var r=e.r(t);return"function"!=typeof r.then||"fulfilled"===r.status?null:(r.then(function(e){r.status="fulfilled",r.value=e},function(e){r.status="rejected",r.reason=e}),r)}var i=new WeakSet,o=new WeakSet;function s(){}function c(t){for(var r=t[1],n=[],a=0;af||35===f||114===f||120===f?(h=f,f=3,s++):(h=0,f=3);continue;case 2:44===(_=o[s++])?f=4:p=p<<4|(96<_?_-87:_-48);continue;case 3:_=o.indexOf(10,s);break;case 4:(_=s+p)>o.length&&(_=-1)}var m=o.byteOffset+s;if(-1<_)p=new Uint8Array(o.buffer,m,_-s),98===h?Z(e,i,_===g?p:p.slice()):function(e,t,r,n,u,l){switch(n){case 65:Z(e,r,eu(u,l).buffer);return;case 79:el(e,r,u,l,Int8Array,1);return;case 111:Z(e,r,0===u.length?l:eu(u,l));return;case 85:el(e,r,u,l,Uint8ClampedArray,1);return;case 83:el(e,r,u,l,Int16Array,2);return;case 115:el(e,r,u,l,Uint16Array,2);return;case 76:el(e,r,u,l,Int32Array,4);return;case 108:el(e,r,u,l,Uint32Array,4);return;case 71:el(e,r,u,l,Float32Array,4);return;case 103:el(e,r,u,l,Float64Array,8);return;case 77:el(e,r,u,l,BigInt64Array,8);return;case 109:el(e,r,u,l,BigUint64Array,8);return;case 86:el(e,r,u,l,DataView,1);return}t=e._stringDecoder;for(var i="",o=0;o{"use strict";t.exports=e.r(64893)},35326,(e,t,r)=>{"use strict";t.exports=e.r(21413)},54394,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HTTPAccessErrorStatus:function(){return u},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return i},getAccessFallbackErrorTypeByStatus:function(){return c},getAccessFallbackHTTPStatus:function(){return s},isHTTPAccessFallbackError:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},l=new Set(Object.values(u)),i="NEXT_HTTP_ERROR_FALLBACK";function o(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===i&&l.has(Number(r))}function s(e){return Number(e.digest.split(";")[1])}function c(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},76963,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RedirectStatusCode",{enumerable:!0,get:function(){return a}});var n,a=((n={})[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68391,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={REDIRECT_ERROR_CODE:function(){return l},isRedirectError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(76963),l="NEXT_REDIRECT";function i(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,n]=t,a=t.slice(2,-2).join(";"),i=Number(t.at(-2));return r===l&&("replace"===n||"push"===n)&&"string"==typeof a&&!isNaN(i)&&i in u.RedirectStatusCode}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},65713,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNextRouterError",{enumerable:!0,get:function(){return u}});let n=e.r(54394),a=e.r(68391);function u(e){return(0,a.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3680,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReadonlyURLSearchParams",{enumerable:!0,get:function(){return a}});class n extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new n}delete(){throw new n}set(){throw new n}sort(){throw new n}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},61994,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={NavigationPromisesContext:function(){return c},PathParamsContext:function(){return s},PathnameContext:function(){return o},ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},SearchParamsContext:function(){return i},createDevToolsInstrumentedPromise:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(71645),l=e.r(3680),i=(0,u.createContext)(null),o=(0,u.createContext)(null),s=(0,u.createContext)(null),c=(0,u.createContext)(null);function f(e,t){let r=Promise.resolve(t);return r.status="fulfilled",r.value=t,r.displayName=`${e} (SSR)`,r}},45955,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},21768,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ACTION_HEADER:function(){return l},FLIGHT_HEADERS:function(){return g},NEXT_ACTION_NOT_FOUND_HEADER:function(){return S},NEXT_ACTION_REVALIDATED_HEADER:function(){return T},NEXT_DID_POSTPONE_HEADER:function(){return E},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return f},NEXT_HMR_REFRESH_HEADER:function(){return c},NEXT_HTML_REQUEST_ID_HEADER:function(){return O},NEXT_INSTANT_PREFETCH_HEADER:function(){return p},NEXT_INSTANT_TEST_COOKIE:function(){return y},NEXT_IS_PRERENDER_HEADER:function(){return b},NEXT_REQUEST_ID_HEADER:function(){return P},NEXT_REWRITTEN_PATH_HEADER:function(){return v},NEXT_REWRITTEN_QUERY_HEADER:function(){return R},NEXT_ROUTER_PREFETCH_HEADER:function(){return o},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return s},NEXT_ROUTER_STALE_TIME_HEADER:function(){return m},NEXT_ROUTER_STATE_TREE_HEADER:function(){return i},NEXT_RSC_UNION_QUERY:function(){return _},NEXT_URL:function(){return d},RSC_CONTENT_TYPE_HEADER:function(){return h},RSC_HEADER:function(){return u}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="rsc",l="next-action",i="next-router-state-tree",o="next-router-prefetch",s="next-router-segment-prefetch",c="next-hmr-refresh",f="__next_hmr_refresh_hash__",d="next-url",h="text/x-component",p="next-instant-navigation-testing-prefetch",y="next-instant-navigation-testing",g=[u,i,o,c,s],_="_rsc",m="x-nextjs-stale-time",E="x-nextjs-postponed",v="x-nextjs-rewritten-path",R="x-nextjs-rewritten-query",b="x-nextjs-prerender",S="x-nextjs-action-not-found",P="x-nextjs-request-id",O="x-nextjs-html-request-id",T="x-action-revalidated";("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39470,(e,t,r)=>{"use strict";function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createPromiseWithResolvers",{enumerable:!0,get:function(){return n}})},42852,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={RenderStage:function(){return o},StagedRenderingController:function(){return s}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let l=e.r(12718),i=e.r(39470);var o=((n={})[n.Before=1]="Before",n[n.EarlyStatic=2]="EarlyStatic",n[n.Static=3]="Static",n[n.EarlyRuntime=4]="EarlyRuntime",n[n.Runtime=5]="Runtime",n[n.Dynamic=6]="Dynamic",n[n.Abandoned=7]="Abandoned",n);class s{constructor(e,t,r){this.abortSignal=e,this.abandonController=t,this.shouldTrackSyncIO=r,this.currentStage=1,this.syncInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.staticStageListeners=[],this.earlyRuntimeStageListeners=[],this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.staticStagePromise=(0,i.createPromiseWithResolvers)(),this.earlyRuntimeStagePromise=(0,i.createPromiseWithResolvers)(),this.runtimeStagePromise=(0,i.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,i.createPromiseWithResolvers)(),e&&e.addEventListener("abort",()=>{let{reason:t}=e;this.staticStagePromise.promise.catch(c),this.staticStagePromise.reject(t),this.earlyRuntimeStagePromise.promise.catch(c),this.earlyRuntimeStagePromise.reject(t),this.runtimeStagePromise.promise.catch(c),this.runtimeStagePromise.reject(t),this.dynamicStagePromise.promise.catch(c),this.dynamicStagePromise.reject(t)},{once:!0}),t&&t.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(e,t){if(this.currentStage>=e)t();else if(3===e)this.staticStageListeners.push(t);else if(4===e)this.earlyRuntimeStageListeners.push(t);else if(5===e)this.runtimeStageListeners.push(t);else if(6===e)this.dynamicStageListeners.push(t);else throw Object.defineProperty(new l.InvariantError(`Invalid render stage: ${e}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}shouldTrackSyncInterrupt(){if(!this.shouldTrackSyncIO)return!1;switch(this.currentStage){case 1:case 5:case 6:case 7:default:return!1;case 2:case 3:case 4:return!0}}syncInterruptCurrentStageWithReason(e){if(1!==this.currentStage&&7!==this.currentStage){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=e,this.currentStage=7;return}switch(this.currentStage){case 2:case 3:case 4:this.syncInterruptReason=e,this.advanceStage(6);return;case 5:return}}}getSyncInterruptReason(){return this.syncInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){let{currentStage:e}=this;switch(e){case 2:this.resolveStaticStage();case 3:this.resolveEarlyRuntimeStage();case 4:this.resolveRuntimeStage();case 5:this.currentStage=7;return}}advanceStage(e){if(e<=this.currentStage)return;let t=this.currentStage;if(this.currentStage=e,t<3&&e>=3&&this.resolveStaticStage(),t<4&&e>=4&&this.resolveEarlyRuntimeStage(),t<5&&e>=5&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),t<6&&e>=6){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveStaticStage(){let e=this.staticStageListeners;for(let t=0;t{n.then(e.bind(null,u),t)}),void 0!==a&&(l.displayName=a),l);return this.abortSignal&&i.catch(c),i}}function c(){}},62141,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getCacheSignal:function(){return m},getDraftModeProviderForCacheScope:function(){return g},getHmrRefreshHash:function(){return h},getPrerenderResumeDataCache:function(){return f},getRenderResumeDataCache:function(){return d},getServerComponentsHmrCache:function(){return y},getStagedRenderingController:function(){return _},isHmrRefresh:function(){return p},isInEarlyRenderStage:function(){return o},throwForMissingRequestStore:function(){return s},throwInvariantForMissingStore:function(){return c},workUnitAsyncStorage:function(){return u.workUnitAsyncStorageInstance}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(45955);e.r(21768);let l=e.r(12718),i=e.r(42852);function o(e){let t=e.stagedRendering;return!!t&&(t.currentStage===i.RenderStage.EarlyStatic||t.currentStage===i.RenderStage.EarlyRuntime)}function s(e){throw Object.defineProperty(Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function c(){throw Object.defineProperty(new l.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function f(e){switch(e.type){case"prerender":case"prerender-runtime":case"prerender-ppr":case"prerender-client":case"validation-client":return e.prerenderResumeDataCache;case"request":if(e.prerenderResumeDataCache)return e.prerenderResumeDataCache;case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function d(e){switch(e.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":case"validation-client":if(e.renderResumeDataCache)return e.renderResumeDataCache;case"prerender-ppr":return e.prerenderResumeDataCache??null;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":case"generate-static-params":return null;default:return e}}function h(e){}function p(e){return!1}function y(e){}function g(e,t){if(e.isDraftMode)switch(t.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return t.draftMode}}function _(e){switch(e.type){case"request":case"prerender-runtime":return e.stagedRendering??null;case"prerender":case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function m(e){switch(e.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":return e.cacheSignal;case"request":if(e.cacheSignal)return e.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}},90373,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useUntrackedPathname",{enumerable:!0,get:function(){return u}});let n=e.r(71645),a=e.r(61994);function u(){return!function(){if("u"0}}return!1}()?(0,n.useContext)(a.PathnameContext):null}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},51191,(e,t,r)=>{"use strict";function n(e,t=!0){return e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},78377,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={handleHardNavError:function(){return l},useNavFailureHandler:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});e.r(71645);let u=e.r(51191);function l(e){return!!(e&&"u">typeof window)&&!!window.next.__pendingUrl&&(0,u.createHrefFromUrl)(new URL(window.location.href))!==(0,u.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function i(){}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},26935,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return n}});let n=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},82604,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HTML_LIMITED_BOT_UA_RE:function(){return u.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return i},getBotType:function(){return c},isBot:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(26935),l=/Googlebot(?!-)|Googlebot$/i,i=u.HTML_LIMITED_BOT_UA_RE.source;function o(e){return u.HTML_LIMITED_BOT_UA_RE.test(e)}function s(e){return l.test(e)||o(e)}function c(e){return l.test(e)?"dom":o(e)?"html":void 0}},8372,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={AppRouterContext:function(){return l},GlobalLayoutRouterContext:function(){return o},LayoutRouterContext:function(){return i},MissingSlotContext:function(){return c},TemplateContext:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(55682)._(e.r(71645)),l=u.default.createContext(null),i=u.default.createContext(null),o=u.default.createContext(null),s=u.default.createContext(null),c=u.default.createContext(new Set)},72383,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ErrorBoundary:function(){return y},ErrorBoundaryHandler:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809),l=e.r(43476),i=u._(e.r(71645)),o=e.r(90373),s=e.r(65713);e.r(78377);let c=e.r(12354),f=e.r(82604),d=e.r(8372),h="u">typeof window&&(0,f.isBot)(window.navigator.userAgent);class p extends i.default.Component{static{this.contextType=d.AppRouterContext}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.unstable_retry=()=>{(0,i.startTransition)(()=>{this.context?.refresh(),this.reset()})},this.state={error:null,previousPathname:this.props.pathname}}static getDerivedStateFromError(e){if((0,s.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error&&!h?((0,c.handleISRError)({error:this.state.error}),(0,l.jsxs)(l.Fragment,{children:[this.props.errorStyles,this.props.errorScripts,(0,l.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset,unstable_retry:this.unstable_retry})]})):this.props.children}}function y({errorComponent:e,errorStyles:t,errorScripts:r,children:n}){let a=(0,o.useUntrackedPathname)();return e?(0,l.jsx)(p,{pathname:a,errorComponent:e,errorStyles:t,errorScripts:r,children:n}):(0,l.jsx)(l.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88540,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,u={ACTION_HMR_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return o},ACTION_REFRESH:function(){return i},ACTION_RESTORE:function(){return s},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchKind:function(){return h},ScrollBehavior:function(){return p}};for(var l in u)Object.defineProperty(r,l,{enumerable:!0,get:u[l]});let i="refresh",o="navigate",s="restore",c="server-patch",f="hmr-refresh",d="server-action";var h=((n={}).AUTO="auto",n.FULL="full",n),p=((a={})[a.Default=0]="Default",a[a.NoScroll=1]="NoScroll",a);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},64245,(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isThenable",{enumerable:!0,get:function(){return n}})},41538,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={dispatchAppRouterAction:function(){return s},dispatchGestureState:function(){return f},refreshOnInstantNavigationUnlock:function(){return o},useActionQueue:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809)._(e.r(71645)),l=e.r(64245);e.r(88540);let i=null;function o(){}function s(e){if(null===i)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});i(e)}let c=null;function f(e){if(null===c)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});c(e)}function d(e){let[t,r]=u.default.useState(e.state),[n,a]=(0,u.useOptimistic)(t);"u">typeof window&&(c=a),"u">typeof window&&(i=t=>e.dispatch(t,r));let o=(0,u.useMemo)(()=>n,[n]);return(0,l.isThenable)(o)?(0,u.use)(o):o}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32120,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"callServer",{enumerable:!0,get:function(){return l}});let n=e.r(71645),a=e.r(88540),u=e.r(41538);async function l(e,t){return new Promise((r,l)=>{(0,n.startTransition)(()=>{(0,u.dispatchAppRouterAction)({type:a.ACTION_SERVER_ACTION,actionId:e,actionArgs:t,resolve:r,reject:l})})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92245,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findSourceMapURL",{enumerable:!0,get:function(){return n}});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},13258,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DEFAULT_SEGMENT_KEY:function(){return f},NOT_FOUND_SEGMENT_KEY:function(){return d},PAGE_SEGMENT_KEY:function(){return c},addSearchParamsIfPageSegment:function(){return o},computeSelectedLayoutSegment:function(){return s},getSegmentValue:function(){return u},getSelectedLayoutSegmentPath:function(){return function e(t,r,n=!0,a=[]){let l;if(n)l=t[1][r];else{let e=t[1];l=e.children??Object.values(e)[0]}if(!l)return a;let i=u(l[0]);return!i||i.startsWith(c)?a:(a.push(i),e(l,r,!1,a))}},isGroupSegment:function(){return l},isParallelRouteSegment:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(e){return Array.isArray(e)?e[1]:e}function l(e){return"("===e[0]&&e.endsWith(")")}function i(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(c)){let e=JSON.stringify(t);return"{}"!==e?c+"?"+e:c}return e}function s(e,t){if(!e||0===e.length)return null;let r="children"===t?e[0]:e[e.length-1];return r===f?null:r}let c="__PAGE__",f="__DEFAULT__",d="/_not-found"},67764,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HEAD_REQUEST_KEY:function(){return i},ROOT_SEGMENT_REQUEST_KEY:function(){return l},appendSegmentRequestKeyPart:function(){return s},convertSegmentPathToStaticExportFilename:function(){return d},createSegmentRequestKeyPart:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(13258),l="",i="/_head";function o(e){if("string"==typeof e)return e.startsWith(u.PAGE_SEGMENT_KEY)?u.PAGE_SEGMENT_KEY:"/_not-found"===e?"_not-found":f(e);let t=e[0];return"$"+e[2]+"$"+f(t)}function s(e,t,r){return e+"/"+("children"===t?r:`@${f(t)}/${r}`)}let c=/^[a-zA-Z0-9\-_@]+$/;function f(e){return c.test(e)?e:"!"+btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function d(e){return`__next${e.replace(/\//g,".")}.txt`}},33906,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={doesStaticSegmentAppearInURL:function(){return d},getCacheKeyForDynamicParam:function(){return h},getParamValueFromCacheKey:function(){return y},getRenderedPathname:function(){return s},getRenderedSearch:function(){return o},parseDynamicParamFromURLPart:function(){return f},urlSearchParamsToParsedUrlQuery:function(){return g},urlToUrlWithoutFlightMarker:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(13258),l=e.r(67764),i=e.r(21768);function o(e){let t=e.headers.get(i.NEXT_REWRITTEN_QUERY_HEADER);return null!==t?""===t?"":"?"+t:p(new URL(e.url)).search}function s(e){return e.headers.get(i.NEXT_REWRITTEN_PATH_HEADER)??p(new URL(e.url)).pathname}function c(e){try{return encodeURIComponent(decodeURIComponent(e))}catch{return e}}function f(e,t,r){switch(e){case"c":return rc(e)):[];case"ci(..)(..)":case"ci(.)":case"ci(..)":case"ci(...)":{let n=e.length-2;return r0===t?c(e.slice(n)):c(e)):[]}case"oc":return rc(e)):null;case"d":if(r>=t.length)return"";return c(t[r]);case"di(..)(..)":case"di(.)":case"di(..)":case"di(...)":{let n=e.length-2;if(r>=t.length)return"";return c(t[r].slice(n))}default:return""}}function d(e){return!(e===l.ROOT_SEGMENT_REQUEST_KEY||e.startsWith(u.PAGE_SEGMENT_KEY)||"("===e[0]&&e.endsWith(")"))&&e!==u.DEFAULT_SEGMENT_KEY&&"/_not-found"!==e}function h(e,t){return"string"==typeof e?(0,u.addSearchParamsIfPageSegment)(e,Object.fromEntries(new URLSearchParams(t))):null===e?"":e.join("/")}function p(e){let t=new URL(e);if(t.searchParams.delete(i.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function y(e,t){return"c"===t||"oc"===t?e.split("/"):e}function g(e){let t={};for(let[r,n]of e.entries())void 0===t[r]?t[r]=n:Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n];return t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},50590,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createInitialRSCPayloadFromFallbackPrerender:function(){return s},getFlightDataPartsFromPath:function(){return o},getNextFlightSegmentPath:function(){return c},normalizeFlightData:function(){return f},prepareFlightRouterStateForRequest:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(13258),l=e.r(33906),i=e.r(51191);function o(e){let[t,r,n,a]=e.slice(-4),u=e.slice(0,-4);return{pathToSegment:u.slice(0,-1),segmentPath:u,segment:u[u.length-1]??"",tree:t,seedData:r,head:n,isHeadPartial:a,isRootRender:4===e.length}}function s(e,t){let r=(0,l.getRenderedPathname)(e),n=(0,l.getRenderedSearch)(e),a=(0,i.createHrefFromUrl)(new URL(location.href)),u=t.f[0],o=u[0],s={c:a.split("/"),q:n,i:t.i,f:[[function e(t,r,n,a){let u,i,o=t[0];if("string"==typeof o)u=o,i=(0,l.doesStaticSegmentAppearInURL)(o);else{let e=o[0],t=o[2],s=o[3],c=(0,l.parseDynamicParamFromURLPart)(t,n,a);u=[e,(0,l.getCacheKeyForDynamicParam)(c,r),t,s],i=!0}let s=i?a+1:a,c=t[1],f={};for(let t in c){let a=c[t];f[t]=e(a,r,n,s)}return[u,f,null,t[3],t[4]]}(o,n,r.split("/").filter(e=>""!==e),0),u[1],u[2],u[2]]],m:t.m,G:t.G,S:t.S,h:t.h};return t.b&&(s.b=t.b),s}function c(e){return e.slice(2)}function f(e){return"string"==typeof e?e:e.map(e=>o(e))}function d(e,t){return t?encodeURIComponent(JSON.stringify(e)):encodeURIComponent(JSON.stringify(function e(t){let[r,n,a,l,i]=t,o=function(e){if("string"==typeof e)return e.startsWith(u.PAGE_SEGMENT_KEY+"?")?u.PAGE_SEGMENT_KEY:e;let[t,r,n]=e;return[t,r,n,null]}(r),s={};for(let[t,r]of Object.entries(n))s[t]=e(r);let c=[o,s];return l&&(c[2]=null,c[3]=l),void 0!==i&&(c[4]=i),c}(e)))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},19921,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={djb2Hash:function(){return u},hexHash:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(e){let t=5381;for(let r=0;r>>0}function l(e){return u(e).toString(36).slice(0,5)}},86051,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={computeCacheBustingSearchParam:function(){return c},computeLegacyCacheBustingSearchParam:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(19921),l=new TextEncoder;function i(e){return void 0===e?"0":Array.isArray(e)?e.join(","):e}function o(e,t,r,n){return(void 0===e||"0"===e)&&void 0===t&&void 0===r&&void 0===n?null:[e??"0",i(t),i(r),i(n)].join(",")}async function s(e){var t=new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",l.encode(e))).subarray(0,12);let r="";for(let e=0;e{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={setCacheBustingSearchParam:function(){return o},setCacheBustingSearchParamWithHash:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(86051),l=e.r(21768);async function i(e){return"function"==typeof globalThis.crypto?.subtle?.digest?(0,u.computeCacheBustingSearchParam)(e[l.NEXT_ROUTER_PREFETCH_HEADER],e[l.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],e[l.NEXT_ROUTER_STATE_TREE_HEADER],e[l.NEXT_URL]):(0,u.computeLegacyCacheBustingSearchParam)(e[l.NEXT_ROUTER_PREFETCH_HEADER],e[l.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],e[l.NEXT_ROUTER_STATE_TREE_HEADER],e[l.NEXT_URL])}let o=async(e,t)=>{s(e,await i(t))},s=(e,t)=>{let r=e.search,n=(r.startsWith("?")?r.slice(1):r).split("&").filter(e=>e&&!e.startsWith(`${l.NEXT_RSC_UNION_QUERY}=`));t.length>0?n.push(`${l.NEXT_RSC_UNION_QUERY}=${t}`):n.push(`${l.NEXT_RSC_UNION_QUERY}`),e.search=n.length?`?${n.join("&")}`:""};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32992,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getNavigationBuildId:function(){return i},setNavigationBuildId:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="";function l(e){u=e}function i(){return u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63416,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ACTION_SUFFIX:function(){return g},APP_DIR_ALIAS:function(){return B},CACHE_ONE_YEAR_SECONDS:function(){return C},DOT_NEXT_ALIAS:function(){return L},ESLINT_DEFAULT_DIRS:function(){return ei},GSP_NO_RETURNED_VALUE:function(){return et},GSSP_COMPONENT_MEMBER_ERROR:function(){return ea},GSSP_NO_RETURNED_VALUE:function(){return er},HTML_CONTENT_TYPE_HEADER:function(){return l},INFINITE_CACHE:function(){return D},INSTRUMENTATION_HOOK_FILENAME:function(){return U},JSON_CONTENT_TYPE_HEADER:function(){return i},MATCHED_PATH_HEADER:function(){return c},MIDDLEWARE_FILENAME:function(){return M},MIDDLEWARE_LOCATION_REGEXP:function(){return I},NEXT_BODY_SUFFIX:function(){return E},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return j},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return b},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return S},NEXT_CACHE_ROOT_PARAM_TAG_ID:function(){return N},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return A},NEXT_CACHE_TAGS_HEADER:function(){return R},NEXT_CACHE_TAG_MAX_ITEMS:function(){return T},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return _},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return s},NEXT_META_SUFFIX:function(){return m},NEXT_NAV_DEPLOYMENT_ID_HEADER:function(){return v},NEXT_QUERY_PARAM_PREFIX:function(){return o},NEXT_RESUME_HEADER:function(){return P},NEXT_RESUME_STATE_LENGTH_HEADER:function(){return O},NON_STANDARD_NODE_ENV:function(){return eu},PAGES_DIR_ALIAS:function(){return k},PRERENDER_REVALIDATE_HEADER:function(){return f},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return d},PROXY_FILENAME:function(){return x},PROXY_LOCATION_REGEXP:function(){return F},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return W},ROOT_DIR_ALIAS:function(){return H},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return q},RSC_ACTION_ENCRYPTION_ALIAS:function(){return Y},RSC_ACTION_PROXY_ALIAS:function(){return V},RSC_ACTION_VALIDATE_ALIAS:function(){return X},RSC_CACHE_WRAPPER_ALIAS:function(){return G},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return K},RSC_MOD_REF_PROXY_ALIAS:function(){return $},RSC_SEGMENTS_DIR_SUFFIX:function(){return h},RSC_SEGMENT_SUFFIX:function(){return p},RSC_SUFFIX:function(){return y},SERVER_PROPS_EXPORT_ERROR:function(){return ee},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return Q},SERVER_PROPS_SSG_CONFLICT:function(){return J},SERVER_RUNTIME:function(){return eo},SSG_FALLBACK_EXPORT_ERROR:function(){return el},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return z},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Z},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return u},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return en},WEBPACK_LAYERS:function(){return ef},WEBPACK_RESOURCE_QUERIES:function(){return ed},WEB_SOCKET_MAX_RECONNECTIONS:function(){return es}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="text/plain",l="text/html; charset=utf-8",i="application/json; charset=utf-8",o="nxtP",s="nxtI",c="x-matched-path",f="x-prerender-revalidate",d="x-prerender-revalidate-if-generated",h=".segments",p=".segment.rsc",y=".rsc",g=".action",_=".json",m=".meta",E=".body",v="x-nextjs-deployment-id",R="x-next-cache-tags",b="x-next-revalidated-tags",S="x-next-revalidate-tag-token",P="next-resume",O="x-next-resume-state-length",T=128,w=256,A=1024,j="_N_T_",N="_N_RP_",C=31536e3,D=0xfffffffe,M="middleware",I=`(?:src/)?${M}`,x="proxy",F=`(?:src/)?${x}`,U="instrumentation",k="private-next-pages",L="private-dot-next",H="private-next-root-dir",B="private-next-app-dir",$="private-next-rsc-mod-ref-proxy",X="private-next-rsc-action-validate",V="private-next-rsc-server-reference",G="private-next-rsc-cache-wrapper",K="private-next-rsc-track-dynamic-import",Y="private-next-rsc-action-encryption",q="private-next-rsc-action-client-wrapper",W="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",z="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",Q="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",J="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Z="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",ee="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",et="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",er="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",en="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",ea="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",eu='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',el="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ei=["app","pages","components","lib","src"],eo={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},es=12,ec={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ef={...ec,GROUP:{builtinReact:[ec.reactServerComponents,ec.actionBrowser],serverOnly:[ec.reactServerComponents,ec.actionBrowser,ec.instrument,ec.middleware],neutralTarget:[ec.apiNode,ec.apiEdge],clientOnly:[ec.serverSideRendering,ec.appPagesBrowser],bundled:[ec.reactServerComponents,ec.actionBrowser,ec.serverSideRendering,ec.appPagesBrowser,ec.shared,ec.instrument,ec.middleware],appPages:[ec.reactServerComponents,ec.serverSideRendering,ec.appPagesBrowser,ec.actionBrowser]}},ed={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},6372,(e,t,r)=>{"use strict";function n(e){return(e.then(a),"fulfilled"!==e.status)?null:e.value}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"readVaryParams",{enumerable:!0,get:function(){return n}});let a=()=>{}},22744,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PrefetchHint",{enumerable:!0,get:function(){return a}});var n,a=((n={})[n.HasRuntimePrefetch=1]="HasRuntimePrefetch",n[n.SubtreeHasInstant=2]="SubtreeHasInstant",n[n.SegmentHasLoadingBoundary=4]="SegmentHasLoadingBoundary",n[n.SubtreeHasLoadingBoundary=8]="SubtreeHasLoadingBoundary",n[n.IsRootLayout=16]="IsRootLayout",n[n.ParentInlinedIntoSelf=32]="ParentInlinedIntoSelf",n[n.InlinedIntoChild=64]="InlinedIntoChild",n[n.HeadInlinedIntoSelf=128]="HeadInlinedIntoSelf",n[n.HeadOutlined=256]="HeadOutlined",n)},56019,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"matchSegment",{enumerable:!0,get:function(){return n}});let n=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1];("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77048,(e,t,r)=>{"use strict";function n(e,t){let r=new URL(e);return{pathname:r.pathname,search:r.search,nextUrl:t}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createCacheKey",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},9396,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,u,l={FetchStrategy:function(){return c},NavigationResultTag:function(){return o},PrefetchPriority:function(){return s}};for(var i in l)Object.defineProperty(r,i,{enumerable:!0,get:l[i]});var o=((n={})[n.MPA=0]="MPA",n[n.Success=1]="Success",n[n.NoOp=2]="NoOp",n[n.Async=3]="Async",n),s=((a={})[a.Intent=2]="Intent",a[a.Default=1]="Default",a[a.Background=0]="Background",a),c=((u={})[u.LoadingBoundary=0]="LoadingBoundary",u[u.PPR=1]="PPR",u[u.PPRRuntime=2]="PPRRuntime",u[u.Full=3]="Full",u);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},511,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={Fallback:function(){return l},createCacheMap:function(){return o},deleteFromCacheMap:function(){return h},deleteMapEntry:function(){return p},getFromCacheMap:function(){return s},isValueExpired:function(){return c},setInCacheMap:function(){return f},setSizeInCacheMap:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(73861),l={},i={};function o(){return{parent:null,key:null,value:null,map:null,prev:null,next:null,size:0}}function s(e,t,r,n,a){let o=function e(t,r,n,a,u,o){let s,f;if(null!==a)s=a.value,f=a.parent;else if(u&&o!==i)s=i,f=null;else return null===n.value?n:c(t,r,n.value)?(p(n),null):n;let d=n.map;if(null!==d){let n=d.get(s);if(void 0!==n){let a=e(t,r,n,f,u,s);if(null!==a)return a}let a=d.get(l);if(void 0!==a)return e(t,r,a,f,u,s)}return null}(e,t,r,n,a,0);return null===o||null===o.value?null:((0,u.lruPut)(o),o.value)}function c(e,t,r){return r.staleAt<=e||r.version{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cleanup:function(){return h},deleteFromLru:function(){return f},lruPut:function(){return s},updateLruSize:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(511),l=e.r(77709),i=null,o=0;function s(e){if(i===e)return;let t=e.prev,r=e.next;if(null===r||null===t?(o+=e.size,d()):(t.next=r,r.prev=t),null===i)e.prev=e,e.next=e;else{let t=i.prev;e.prev=t,null!==t&&(t.next=e),e.next=i,i.prev=e}i=e}function c(e,t){let r=e.size;e.size=t,null!==e.next&&(o=o-r+t,d())}function f(e){let t=e.next,r=e.prev;null!==t&&null!==r&&(o-=e.size,e.next=null,e.prev=null,i===e?t===i?i=null:(i=t,r.next=t,t.prev=r):(r.next=t,t.prev=r))}function d(){o<=0x3200000||(0,l.pingPrefetchScheduler)()}function h(){if(!(o<=0x3200000))for(;o>0x2d00000&&null!==i;){let e=i.prev;null!==e&&(0,u.deleteMapEntry)(e)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77709,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelPrefetchTask:function(){return R},isPrefetchTaskDirty:function(){return S},pingPrefetchScheduler:function(){return O},pingPrefetchTask:function(){return j},reschedulePrefetchTask:function(){return b},schedulePrefetchTask:function(){return v},startRevalidationCooldown:function(){return E}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(22744),l=e.r(56019),i=e.r(20896),o=e.r(77048),s=e.r(9396),c=e.r(13258),f=e.r(73861),d="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e})),h=[],p=0,y=0,g=!1,_=null,m=null;function E(){null!==m&&clearTimeout(m),m=setTimeout(()=>{m=null,O()},300)}function v(e,t,r,n,a,u){let l={key:e,treeAtTimeOfPrefetch:t,routeCacheVersion:(0,i.getCurrentRouteCacheVersion)(),segmentCacheVersion:(0,i.getCurrentSegmentCacheVersion)(),priority:n,phase:1,hasBackgroundWork:!1,spawnedRuntimePrefetches:null,fetchStrategy:r,sortId:y++,isCanceled:!1,onInvalidate:a,_heapIndex:-1};return P(l),L(h,l),O(),l}function R(e){e.isCanceled=!0,function(e,t){let r=t._heapIndex;if(-1!==r&&(t._heapIndex=-1,0!==e.length)){let n=e.pop();n!==t&&(e[r]=n,n._heapIndex=r,V(e,n,r))}}(h,e)}function b(e,t,r,n){e.isCanceled=!1,e.phase=1,e.sortId=y++,e.priority=e===_?s.PrefetchPriority.Intent:n,e.treeAtTimeOfPrefetch=t,e.fetchStrategy=r,P(e),-1!==e._heapIndex?$(h,e):L(h,e),O()}function S(e,t,r){return e.routeCacheVersion!==(0,i.getCurrentRouteCacheVersion)()||e.segmentCacheVersion!==(0,i.getCurrentSegmentCacheVersion)()||e.treeAtTimeOfPrefetch!==r||e.key.nextUrl!==t}function P(e){e.priority===s.PrefetchPriority.Intent&&e!==_&&(null!==_&&_.priority!==s.PrefetchPriority.Background&&(_.priority=s.PrefetchPriority.Default,$(h,_)),_=e)}function O(){g||(g=!0,d(N))}function T(e){return null===m&&(e.priority===s.PrefetchPriority.Intent?p<12:p<4)}function w(e){return p++,e.then(e=>null===e?(A(),null):(e.closed.then(A),e.value))}function A(){p--,O()}function j(e){e.isCanceled||-1!==e._heapIndex||(L(h,e),O())}function N(){g=!1;let e=Date.now(),t=H(h);for(;null!==t&&T(t);){t.routeCacheVersion=(0,i.getCurrentRouteCacheVersion)(),t.segmentCacheVersion=(0,i.getCurrentSegmentCacheVersion)();let r=function(e,t){let r=t.key,n=(0,i.readOrCreateRouteCacheEntry)(e,t,r),a=function(e,t,r){switch(r.status){case i.EntryStatus.Empty:w((0,i.fetchRouteOnCacheMiss)(r,t.key)),r.staleAt=e+6e4,r.status=i.EntryStatus.Pending;case i.EntryStatus.Pending:{let e=r.blockedTasks;return null===e?r.blockedTasks=new Set([t]):e.add(t),1}case i.EntryStatus.Rejected:break;case i.EntryStatus.Fulfilled:{let o;if(0!==t.phase)return 2;if(!T(t))return 0;let c=r.tree;switch(o=c.prefetchHints&u.PrefetchHint.SubtreeHasInstant?s.FetchStrategy.PPR:t.fetchStrategy===s.FetchStrategy.PPR?r.supportsPerSegmentPrefetching?s.FetchStrategy.PPR:s.FetchStrategy.LoadingBoundary:t.fetchStrategy){case s.FetchStrategy.PPR:{var n,a,l;if(I(n=e,a=t,l=r,(0,i.readOrCreateSegmentCacheEntry)(n,s.FetchStrategy.PPR,l.metadata),a.key,l.metadata),0===function e(t,r,n,a,l){let o=(0,i.readOrCreateSegmentCacheEntry)(t,r.fetchStrategy,l);I(t,r,n,o,r.key,l);let s=a[1],c=l.slots;if(null!==c)for(let a in c){if(!T(r))return 0;let l=c[a],o=l.segment,f=s[a],d=f?.[0];if(0===(void 0!==d&&U(n,o,d)?e(t,r,n,f,l):function e(t,r,n,a){if(a.prefetchHints&u.PrefetchHint.HasRuntimePrefetch)return null===r.spawnedRuntimePrefetches?r.spawnedRuntimePrefetches=new Set([a.requestKey]):r.spawnedRuntimePrefetches.add(a.requestKey),2;let l=(0,i.readOrCreateSegmentCacheEntry)(t,r.fetchStrategy,a);if(I(t,r,n,l,r.key,a),null!==a.slots){if(!T(r))return 0;for(let u in a.slots)if(0===e(t,r,n,a.slots[u]))return 0}return 2}(t,r,n,l)))return 0}return 2}(e,t,r,t.treeAtTimeOfPrefetch,c))return 0;let o=t.spawnedRuntimePrefetches;if(null!==o){let n=new Map;D(e,t,r,n,s.FetchStrategy.PPRRuntime);let a=function e(t,r,n,a,u,l){if(u.has(a.requestKey))return M(t,r,n,a,!1,l,s.FetchStrategy.PPRRuntime);let i={},o=a.slots;if(null!==o)for(let a in o){let s=o[a];i[a]=e(t,r,n,s,u,l)}return[a.segment,i,null,null]}(e,t,r,c,o,n);n.size>0&&w((0,i.fetchSegmentPrefetchesUsingDynamicRequest)(t,r,s.FetchStrategy.PPRRuntime,a,n))}return 2}case s.FetchStrategy.Full:case s.FetchStrategy.PPRRuntime:case s.FetchStrategy.LoadingBoundary:{let n=new Map;D(e,t,r,n,o);let a=function e(t,r,n,a,l,o,c){let f=a[1],d=l.slots,h={};if(null!==d)for(let a in d){let l=d[a],p=l.segment,y=f[a],g=y?.[0];if(void 0!==g&&U(n,p,g)){let u=e(t,r,n,y,l,o,c);h[a]=u}else switch(c){case s.FetchStrategy.LoadingBoundary:{let e=(l.prefetchHints&(u.PrefetchHint.SegmentHasLoadingBoundary|u.PrefetchHint.SubtreeHasLoadingBoundary))!=0?function e(t,r,n,a,l,o){let c=null===l?"inside-shared-layout":null,f=(0,i.readOrCreateSegmentCacheEntry)(t,r.fetchStrategy,a);switch(f.status){case i.EntryStatus.Empty:o.set(a.requestKey,(0,i.upgradeToPendingSegment)(f,s.FetchStrategy.LoadingBoundary)),"refetch"!==l&&(c=l="refetch");break;case i.EntryStatus.Fulfilled:if((a.prefetchHints&u.PrefetchHint.SegmentHasLoadingBoundary)!=0)return(0,i.convertRouteTreeToFlightRouterState)(a);case i.EntryStatus.Pending:case i.EntryStatus.Rejected:}let d={};if(null!==a.slots)for(let u in a.slots){let i=a.slots[u];d[u]=e(t,r,n,i,l,o)}return[a.segment,d,null,c]}(t,r,n,l,null,o):(0,i.convertRouteTreeToFlightRouterState)(l);h[a]=e;break}case s.FetchStrategy.PPRRuntime:{let e=M(t,r,n,l,!1,o,c);h[a]=e;break}case s.FetchStrategy.Full:{let e=M(t,r,n,l,!1,o,c);h[a]=e}}}return[l.segment,h,null,null]}(e,t,r,t.treeAtTimeOfPrefetch,c,n,o);return n.size>0&&w((0,i.fetchSegmentPrefetchesUsingDynamicRequest)(t,r,o,a,n)),2}}}}return 2}(e,t,n);if(0!==a&&""!==r.search){let n=new URL(r.pathname,location.origin),a=(0,o.createCacheKey)(n.href,r.nextUrl),u=(0,i.readOrCreateRouteCacheEntry)(e,t,a);switch(u.status){case i.EntryStatus.Empty:C(t)&&(u.status=i.EntryStatus.Pending,w((0,i.fetchRouteOnCacheMiss)(u,a)));case i.EntryStatus.Pending:case i.EntryStatus.Fulfilled:case i.EntryStatus.Rejected:}}return a}(e,t),n=t.hasBackgroundWork;switch(t.hasBackgroundWork=!1,t.spawnedRuntimePrefetches=null,r){case 0:return;case 1:B(h),t=H(h);continue;case 2:1===t.phase?(t.phase=0,$(h,t)):n?(t.priority=s.PrefetchPriority.Background,$(h,t)):B(h),t=H(h);continue}}null===t&&0===p&&(0,f.cleanup)()}function C(e){return e.priority===s.PrefetchPriority.Background||(e.hasBackgroundWork=!0,!1)}function D(e,t,r,n,a){M(e,t,r,r.metadata,!1,n,a===s.FetchStrategy.LoadingBoundary?s.FetchStrategy.Full:a)}function M(e,t,r,n,a,u,l){let o=(0,i.readOrCreateSegmentCacheEntry)(e,l,n),c=null;switch(o.status){case i.EntryStatus.Empty:if(l===s.FetchStrategy.Full&&null!==(0,i.attemptToFulfillDynamicSegmentFromBFCache)(e,o,n))break;c=(0,i.upgradeToPendingSegment)(o,l);break;case i.EntryStatus.Fulfilled:if(o.isPartial&&(0,i.canNewFetchStrategyProvideMoreContent)(o.fetchStrategy,l)){if(l===s.FetchStrategy.Full&&null!==(0,i.attemptToUpgradeSegmentFromBFCache)(e,n))break;c=F(e,n,l)}break;case i.EntryStatus.Pending:case i.EntryStatus.Rejected:(0,i.canNewFetchStrategyProvideMoreContent)(o.fetchStrategy,l)&&(c=F(e,n,l))}let f={};if(null!==n.slots)for(let i in n.slots){let o=n.slots[i];f[i]=M(e,t,r,o,a||null!==c,u,l)}null!==c&&u.set(n.requestKey,c);let d=a||null===c?null:"refetch";return[n.segment,f,null,d]}function I(e,t,r,n,a,u){switch(n.status){case i.EntryStatus.Empty:w((0,i.fetchSegmentOnCacheMiss)(r,(0,i.upgradeToPendingSegment)(n,s.FetchStrategy.PPR),a,u));break;case i.EntryStatus.Pending:switch(n.fetchStrategy){case s.FetchStrategy.PPR:case s.FetchStrategy.PPRRuntime:case s.FetchStrategy.Full:break;case s.FetchStrategy.LoadingBoundary:C(t)&&x(e,r,a,u);break;default:n.fetchStrategy}break;case i.EntryStatus.Rejected:switch(n.fetchStrategy){case s.FetchStrategy.PPR:case s.FetchStrategy.PPRRuntime:case s.FetchStrategy.Full:break;case s.FetchStrategy.LoadingBoundary:x(e,r,a,u);break;default:n.fetchStrategy}case i.EntryStatus.Fulfilled:}}function x(e,t,r,n){let a=(0,i.readOrCreateRevalidatingSegmentEntry)(e,s.FetchStrategy.PPR,n);switch(a.status){case i.EntryStatus.Empty:w((0,i.fetchSegmentOnCacheMiss)(t,(0,i.upgradeToPendingSegment)(a,s.FetchStrategy.PPR),r,n));case i.EntryStatus.Pending:case i.EntryStatus.Fulfilled:case i.EntryStatus.Rejected:}}function F(e,t,r){let n=(0,i.readOrCreateRevalidatingSegmentEntry)(e,r,t);if(n.status===i.EntryStatus.Empty)return(0,i.upgradeToPendingSegment)(n,r);if((0,i.canNewFetchStrategyProvideMoreContent)(n.fetchStrategy,r)){let n=(0,i.overwriteRevalidatingSegmentCacheEntry)(e,r,t);return(0,i.upgradeToPendingSegment)(n,r)}switch(n.status){case i.EntryStatus.Pending:case i.EntryStatus.Fulfilled:case i.EntryStatus.Rejected:default:return null}}function U(e,t,r){return r===c.PAGE_SEGMENT_KEY?t===(0,c.addSearchParamsIfPageSegment)(c.PAGE_SEGMENT_KEY,Object.fromEntries(new URLSearchParams(e.renderedSearch))):(0,l.matchSegment)(r,t)}function k(e,t){let r=t.priority-e.priority;if(0!==r)return r;let n=t.phase-e.phase;return 0!==n?n:t.sortId-e.sortId}function L(e,t){let r=e.length;e.push(t),t._heapIndex=r,X(e,t,r)}function H(e){return 0===e.length?null:e[0]}function B(e){if(0===e.length)return null;let t=e[0];t._heapIndex=-1;let r=e.pop();return r!==t&&(e[0]=r,r._heapIndex=0,V(e,r,0)),t}function $(e,t){let r=t._heapIndex;-1!==r&&(0===r?V(e,t,0):k(e[r-1>>>1],t)>0?X(e,t,r):V(e,t,r))}function X(e,t,r){let n=r;for(;n>0;){let r=n-1>>>1,a=e[r];if(!(k(a,t)>0))return;e[r]=t,t._heapIndex=r,e[n]=a,a._heapIndex=n,n=r}}function V(e,t,r){let n=r,a=e.length,u=a>>>1;for(;nk(u,t))lk(i,u)?(e[n]=i,i._heapIndex=n,e[l]=t,t._heapIndex=l,n=l):(e[n]=u,u._heapIndex=n,e[r]=t,t._heapIndex=r,n=r);else{if(!(lk(i,t)))return;e[n]=i,i._heapIndex=n,e[l]=t,t._heapIndex=l,n=l}}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},56655,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={appendLayoutVaryPath:function(){return c},clonePageVaryPathWithNewSearchParams:function(){return _},finalizeLayoutVaryPath:function(){return f},finalizeMetadataVaryPath:function(){return y},finalizePageVaryPath:function(){return h},getFulfilledRouteVaryPath:function(){return s},getFulfilledSegmentVaryPath:function(){return function e(t,r){return{id:t.id,value:null===t.id||r.has(t.id)?t.value:l.Fallback,parent:null===t.parent?null:e(t.parent,r)}}},getPartialLayoutVaryPath:function(){return d},getPartialPageVaryPath:function(){return p},getRenderedSearchFromVaryPath:function(){return m},getRouteVaryPath:function(){return o},getSegmentVaryPathForRequest:function(){return g}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(9396),l=e.r(511),i=e.r(67764);function o(e,t,r){return{id:null,value:e,parent:{id:"?",value:t,parent:{id:null,value:r,parent:null}}}}function s(e,t,r,n){return{id:null,value:e,parent:{id:"?",value:t,parent:{id:null,value:n?r:l.Fallback,parent:null}}}}function c(e,t,r){return{id:r,value:t,parent:e}}function f(e,t){return{id:null,value:e,parent:t}}function d(e){return e.parent}function h(e,t,r){return{id:null,value:e,parent:{id:"?",value:t,parent:r}}}function p(e){return e.parent.parent}function y(e,t,r){return{id:null,value:e+i.HEAD_REQUEST_KEY,parent:{id:"?",value:t,parent:r}}}function g(e,t){let r=t.varyPath;if(t.isPage&&e!==u.FetchStrategy.Full&&e!==u.FetchStrategy.PPRRuntime){let e=r.parent.parent;return{id:null,value:r.value,parent:{id:"?",value:l.Fallback,parent:e}}}return r}function _(e,t){let r=e.parent;return{id:null,value:e.value,parent:{id:"?",value:t,parent:r.parent}}}function m(e){let t=e.parent.value;return"string"==typeof t?t:null}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},72463,(e,t,r)=>{"use strict";function n(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parsePath",{enumerable:!0,get:function(){return n}})},41858,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(72463);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:u}=(0,n.parsePath)(e);return`${t}${r}${a}${u}`}},38281,(e,t,r)=>{"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},82823,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let n=e.r(38281),a=e.r(72463),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:u}=(0,a.parsePath)(e);return`${(0,n.removeTrailingSlash)(t)}${r}${u}`};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},5550,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addBasePath",{enumerable:!0,get:function(){return u}});let n=e.r(41858),a=e.r(82823);function u(e,t){return(0,a.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,"/mystichearts/demo"))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},57630,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createPrefetchURL:function(){return o},isExternalURL:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(82604),l=e.r(5550);function i(e){return e.origin!==window.location.origin}function o(e){let t;if((0,u.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,l.addBasePath)(e),window.location.href)}catch(t){throw Object.defineProperty(Error(`Cannot prefetch '${e}' because it cannot be converted to a URL.`),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return i(t)?null:t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},91949,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={IDLE_LINK_STATUS:function(){return f},PENDING_LINK_STATUS:function(){return c},getLinkForCurrentNavigation:function(){return p},mountFormInstance:function(){return R},mountLinkInstance:function(){return v},onLinkVisibilityChanged:function(){return S},onNavigationIntent:function(){return P},pingVisibleLinks:function(){return T},setLinkForCurrentNavigation:function(){return d},unmountLinkForCurrentNavigation:function(){return h},unmountPrefetchableInstance:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(9396),l=e.r(77048),i=e.r(77709),o=e.r(71645),s=null,c={pending:!0},f={pending:!1};function d(e){(0,o.startTransition)(()=>{s?.setOptimisticLinkStatus(f),e?.setOptimisticLinkStatus(c),s=e})}function h(e){s===e&&(s=null)}function p(){return s}let y="function"==typeof WeakMap?new WeakMap:new Map,g=new Set,_="function"==typeof IntersectionObserver?new IntersectionObserver(function(e){for(let t of e){let e=t.intersectionRatio>0;S(t.target,e)}},{rootMargin:"200px"}):null;function m(e,t){void 0!==y.get(e)&&b(e),y.set(e,t),null!==_&&_.observe(e)}function E(t){if(!("u">typeof window))return null;{let{createPrefetchURL:r}=e.r(57630);try{return r(t)}catch{return("function"==typeof reportError?reportError:console.error)(`Cannot prefetch '${t}' because it cannot be converted to a URL.`),null}}}function v(e,t,r,n,a,u){if(a){let a=E(t);if(null!==a){let t={router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:a.href,setOptimisticLinkStatus:u};return m(e,t),t}}return{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:null,setOptimisticLinkStatus:u}}function R(e,t,r,n){let a=E(t);null===a||m(e,{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:a.href,setOptimisticLinkStatus:null})}function b(e){let t=y.get(e);if(void 0!==t){y.delete(e),g.delete(t);let r=t.prefetchTask;null!==r&&(0,i.cancelPrefetchTask)(r)}null!==_&&_.unobserve(e)}function S(e,t){let r=y.get(e);void 0!==r&&(r.isVisible=t,t?g.add(r):g.delete(r),O(r,u.PrefetchPriority.Default))}function P(e,t){let r=y.get(e);void 0!==r&&void 0!==r&&O(r,u.PrefetchPriority.Intent)}function O(t,r){if("u">typeof window){let n=t.prefetchTask;if(!t.isVisible){null!==n&&(0,i.cancelPrefetchTask)(n);return}let{getCurrentAppRouterState:a}=e.r(99781),u=a();if(null!==u){let e=u.tree;if(null===n){let n=u.nextUrl,a=(0,l.createCacheKey)(t.prefetchHref,n);t.prefetchTask=(0,i.schedulePrefetchTask)(a,e,t.fetchStrategy,r,null)}else(0,i.reschedulePrefetchTask)(n,e,t.fetchStrategy,r)}}}function T(e,t){for(let r of g){let n=r.prefetchTask;if(null!==n&&!(0,i.isPrefetchTaskDirty)(n,e,t))continue;null!==n&&(0,i.cancelPrefetchTask)(n);let a=(0,l.createCacheKey)(r.prefetchHref,e);r.prefetchTask=(0,i.schedulePrefetchTask)(a,t,r.fetchStrategy,u.PrefetchPriority.Default,null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},79027,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UnknownDynamicStaleTime:function(){return i},computeDynamicStaleAt:function(){return o},invalidateBfCache:function(){return f},readFromBFCache:function(){return y},readFromBFCacheDuringRegularNavigation:function(){return g},updateBFCacheEntryStaleAt:function(){return p},writeHeadToBFCache:function(){return h},writeToBFCache:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(54069),l=e.r(511),i=-1;function o(e,t){return t!==i?e+1e3*t:e+u.DYNAMIC_STALETIME_MS}let s=(0,l.createCacheMap)(),c=0;function f(){"u">typeof window&&c++}function d(e,t,r,n,a,u,i){if("u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={discoverKnownRoute:function(){return c},matchKnownRoute:function(){return d},resetKnownRoutes:function(){return h}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(20896),l=e.r(33906),i=e.r(56655);function o(){return{staticChildren:null,dynamicChild:null,dynamicChildParamName:null,dynamicChildParamType:null,pattern:null}}let s=o();function c(e,t,r,n,a,l,i,o,c,d){let h=t.split("/").filter(e=>""!==e),p=h.length>0?h[0]:null,y=h.length>0?h.slice(1):[];if(null!==n){let h=(0,u.fulfillRouteCacheEntry)(e,n,a,l,i,o,c);return d&&(h.hasDynamicRewrite=!0),f(s,a,p,y,h,e,t,r,a,l,i,o,c,d),h}return f(s,a,p,y,null,e,t,r,a,l,i,o,c,d)}function f(e,t,r,n,a,i,s,c,d,h,p,y,g,_){let m,E,v=t.segment,R=null,b=null,S=null;"string"==typeof v?m=(0,l.doesStaticSegmentAppearInURL)(v):(R=v[0],b=v[2],S=v[3],m=!0);let P=e,O=r,T=n;if(m){if(null===R&&r!==v)return null!==a?a:(0,u.writeRouteIntoCache)(i,s,c,d,h,p,y,g);if(null!==R&&null!==b){if(P=function(e,t,r){if(null!==e.dynamicChild)return e.dynamicChild;let n=o();return e.dynamicChild=n,e.dynamicChildParamName=t,e.dynamicChildParamType=r,n}(e,R,b),null!==S)for(let t of(null===e.staticChildren&&(e.staticChildren=new Map),S))e.staticChildren.has(t)||e.staticChildren.set(t,o())}else{null===e.staticChildren&&(e.staticChildren=new Map);let t=e.staticChildren.get(r);void 0===t&&(t=o(),e.staticChildren.set(r,t)),P=t}O=n.length>0?n[0]:null,T=n.length>0?n.slice(1):[]}let w=t.slots,A=null;if(null!==w){for(let e in w){let t=w[e];null===t.refreshState&&(A=f(P,t,O,T,a,i,s,c,d,h,p,y,g,_))}return null!==A?A:null!==a?a:(0,u.writeRouteIntoCache)(i,s,c,d,h,p,y,g)}return null!==P.pattern?(_&&(P.pattern.hasDynamicRewrite=!0),P.pattern):(E=null!==a?a:(0,u.writeRouteIntoCache)(i,s,c,d,h,p,y,g),_&&(E.hasDynamicRewrite=!0),P.pattern=E,E)}function d(e,t){let r=e.split("/").filter(e=>""!==e),n=new Map,a=function e(t,r,n,a){let u=n{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={EntryStatus:function(){return A},attemptToFulfillDynamicSegmentFromBFCache:function(){return ee},attemptToUpgradeSegmentFromBFCache:function(){return et},canNewFetchStrategyProvideMoreContent:function(){return eS},convertReusedFlightRouterStateToRouteTree:function(){return ef},convertRootFlightRouterStateToRouteTree:function(){return ec},convertRouteTreeToFlightRouterState:function(){return function e(t){let r={};if(null!==t.slots)for(let n in t.slots)r[n]=e(t.slots[n]);return[t.segment,r,null,null]}},createDetachedSegmentCacheEntry:function(){return J},createMetadataRouteTree:function(){return en},deprecated_requestOptimisticRouteCacheEntry:function(){return K},fetchInlinedSegmentsOnCacheMiss:function(){return ey},fetchRouteOnCacheMiss:function(){return eh},fetchSegmentOnCacheMiss:function(){return ep},fetchSegmentPrefetchesUsingDynamicRequest:function(){return eg},fulfillRouteCacheEntry:function(){return ea},getCurrentRouteCacheVersion:function(){return x},getCurrentSegmentCacheVersion:function(){return F},getStaleAt:function(){return eO},getStaleTimeMs:function(){return w},invalidateEntirePrefetchCache:function(){return U},invalidateRouteCacheEntries:function(){return k},invalidateSegmentCacheEntries:function(){return L},markRouteEntryAsDynamicRewrite:function(){return el},overwriteRevalidatingSegmentCacheEntry:function(){return z},pingInvalidationListeners:function(){return H},processRuntimePrefetchStream:function(){return ew},readOrCreateRevalidatingSegmentEntry:function(){return W},readOrCreateRouteCacheEntry:function(){return G},readOrCreateSegmentCacheEntry:function(){return q},readRouteCacheEntry:function(){return B},readSegmentCacheEntry:function(){return $},stripIsPartialByte:function(){return eA},upgradeToPendingSegment:function(){return Z},upsertSegmentEntry:function(){return Q},waitForSegmentCacheEntry:function(){return X},writeDynamicRenderResponseIntoCache:function(){return em},writeRouteIntoCache:function(){return eu},writeStaticStageResponseIntoCache:function(){return eT}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let l=e.r(6372),i=e.r(21768),o=e.r(87288),s=e.r(77709),c=e.r(56655),f=e.r(51191),d=e.r(77048),h=e.r(33906),p=e.r(511),y=e.r(67764),g=e.r(50590),_=e.r(54069),m=e.r(91949),E=e.r(13258),v=e.r(9396),R=e.r(39470),b=e.r(79027),S=e.r(96167),P=e.r(60355),O=e.r(32992),T=e.r(63416);function w(e){return 1e3*Math.max(e,30)}var A=((n={})[n.Empty=0]="Empty",n[n.Pending=1]="Pending",n[n.Fulfilled=2]="Fulfilled",n[n.Rejected=3]="Rejected",n);let j=["",{},null,"metadata-only"],N=(0,p.createCacheMap)(),C=(0,p.createCacheMap)(),D=null,M=0,I=0;function x(){return M}function F(){return I}function U(e,t){M++,I++,(0,m.pingVisibleLinks)(e,t),H(e,t)}function k(e,t){M++,(0,m.pingVisibleLinks)(e,t),H(e,t)}function L(e,t){I++,(0,m.pingVisibleLinks)(e,t),H(e,t)}function H(e,t){if(null!==D){let r=D;for(let n of(D=null,r))(0,s.isPrefetchTaskDirty)(n,e,t)&&function(e){let t=e.onInvalidate;if(null!==t){e.onInvalidate=null;try{t()}catch(e){"function"==typeof reportError?reportError(e):console.error(e)}}}(n)}}function B(e,t){let r=(0,c.getRouteVaryPath)(t.pathname,t.search,t.nextUrl),n=(0,p.getFromCacheMap)(e,M,N,r,!1);return null!==n?n:null}function $(e,t){return(0,p.getFromCacheMap)(e,I,C,t,!1)}function X(e){let t=e.promise;return null===t&&(t=e.promise=(0,R.createPromiseWithResolvers)()),t.promise}function V(){return{canonicalUrl:null,status:0,blockedTasks:null,tree:null,metadata:null,couldBeIntercepted:!0,supportsPerSegmentPrefetching:!1,renderedSearch:null,ref:null,size:0,staleAt:1/0,version:M}}function G(e,t,r){null!==t.onInvalidate&&(null===D?D=new Set([t]):D.add(t));let n=B(e,r);if(null!==n)return n;let a=V(),u=(0,c.getRouteVaryPath)(r.pathname,r.search,r.nextUrl);return(0,p.setInCacheMap)(N,u,a,!1),a}function K(e,t,r){let n=t.search;if(""===n)return null;let a=new URL(t);a.search="";let u=B(e,(0,d.createCacheKey)(a.href,r));if(null===u||2!==u.status)return null;let l=new URL(u.canonicalUrl,t.origin),i=""!==l.search?l.search:n,o=""!==u.renderedSearch?u.renderedSearch:n,s=new URL(u.canonicalUrl,location.origin);return s.search=i,{canonicalUrl:(0,f.createHrefFromUrl)(s),status:2,blockedTasks:null,tree:Y(u.tree,o),metadata:Y(u.metadata,o),couldBeIntercepted:u.couldBeIntercepted,supportsPerSegmentPrefetching:u.supportsPerSegmentPrefetching,hasDynamicRewrite:u.hasDynamicRewrite,renderedSearch:o,ref:null,size:0,staleAt:u.staleAt,version:u.version}}function Y(e,t){let r=null,n=e.slots;if(null!==n)for(let e in r={},n){let a=n[e];r[e]=Y(a,t)}return e.isPage?{requestKey:e.requestKey,segment:e.segment,refreshState:e.refreshState,varyPath:(0,c.clonePageVaryPathWithNewSearchParams)(e.varyPath,t),isPage:!0,slots:r,prefetchHints:e.prefetchHints}:{requestKey:e.requestKey,segment:e.segment,refreshState:e.refreshState,varyPath:e.varyPath,isPage:!1,slots:r,prefetchHints:e.prefetchHints}}function q(e,t,r){let n=$(e,r.varyPath);if(null!==n)return n;let a=(0,c.getSegmentVaryPathForRequest)(t,r),u=J(e);return(0,p.setInCacheMap)(C,a,u,!1),u}function W(e,t,r){var n;let a=(n=r.varyPath,(0,p.getFromCacheMap)(e,I,C,n,!0));if(null!==a)return a;let u=(0,c.getSegmentVaryPathForRequest)(t,r),l=J(e);return(0,p.setInCacheMap)(C,u,l,!0),l}function z(e,t,r){let n=(0,c.getSegmentVaryPathForRequest)(t,r),a=J(e);return(0,p.setInCacheMap)(C,n,a,!0),a}function Q(e,t,r){if((0,p.isValueExpired)(e,I,r))return null;let n=$(e,t);if(null!==n){var a;if(r.fetchStrategy!==n.fetchStrategy&&(a=n.fetchStrategy,!(ar?null:ei(Z(t,v.FetchStrategy.Full),a.rsc,r,!1)}return null}function et(e,t){let r=t.varyPath,n=(0,b.readFromBFCache)(r);if(null!==n){let r=n.navigatedAt+_.STATIC_STALETIME_MS;if(e>r)return null;let a=ei(Z(J(e),v.FetchStrategy.Full),n.rsc,r,!1),u=Q(e,(0,c.getSegmentVaryPathForRequest)(v.FetchStrategy.Full,t),a);if(null!==u&&2===u.status)return u}return null}function er(e){let t=e.blockedTasks;if(null!==t){for(let e of t)(0,s.pingPrefetchTask)(e);e.blockedTasks=null}}function en(e){return{requestKey:y.HEAD_REQUEST_KEY,segment:y.HEAD_REQUEST_KEY,refreshState:null,varyPath:e,isPage:!0,slots:null,prefetchHints:0}}function ea(e,t,r,n,a,u,l){let i=(0,c.getRenderedSearchFromVaryPath)(n)??"";return t.status=2,t.tree=r,t.metadata=en(n),t.staleAt=e+_.STATIC_STALETIME_MS,t.couldBeIntercepted=a,t.canonicalUrl=u,t.renderedSearch=i,t.supportsPerSegmentPrefetching=l,t.hasDynamicRewrite=!1,er(t),t}function eu(e,t,r,n,a,u,l,i){let o=ea(e,V(),n,a,u,l,i),s=o.renderedSearch,f=(0,c.getFulfilledRouteVaryPath)(t,s,r,u);return(0,p.setInCacheMap)(N,f,o,!1),o}function el(e){e.hasDynamicRewrite=!0}function ei(e,t,r,n){return e.status=2,e.rsc=t,e.staleAt=r,e.isPartial=n,null!==e.promise&&(e.promise.resolve(e),e.promise=null),e}function eo(e,t){e.status=3,e.staleAt=t,er(e)}function es(e,t){e.status=3,e.staleAt=t,null!==e.promise&&(e.promise.resolve(null),e.promise=null)}function ec(e,t,r){return ed(e,y.ROOT_SEGMENT_REQUEST_KEY,null,t,r)}function ef(e,t,r,n,a){let u=e.isPage?(0,c.getPartialPageVaryPath)(e.varyPath):(0,c.getPartialLayoutVaryPath)(e.varyPath),l=r[0],i=e.requestKey,o=(0,y.createSegmentRequestKeyPart)(l);return ed(r,(0,y.appendSegmentRequestKeyPart)(i,t,o),u,n,a)}function ed(e,t,r,n,a){let u,l,i,o,s=e[0],f=e[2]??null,d=null!==f?{canonicalUrl:f[0],renderedSearch:f[1]}:null,h=null!==d?d.renderedSearch:n;if(Array.isArray(s)){i=!1;let e=s[1],n=s[0];l=(0,c.appendLayoutVaryPath)(r,e,n),o=(0,c.finalizeLayoutVaryPath)(t,l),u=s}else l=r,t.endsWith(E.PAGE_SEGMENT_KEY)?(i=!0,u=E.PAGE_SEGMENT_KEY,o=(0,c.finalizePageVaryPath)(t,h,l),null===a.metadataVaryPath&&(a.metadataVaryPath=(0,c.finalizeMetadataVaryPath)(t,h,l))):(i=!1,u=s,o=(0,c.finalizeLayoutVaryPath)(t,l));let p=null,g=e[1];for(let e in g){let r=g[e],n=r[0],u=(0,y.createSegmentRequestKeyPart)(n),i=ed(r,(0,y.appendSegmentRequestKeyPart)(t,e,u),l,h,a);null===p?p={[e]:i}:p[e]=i}return{requestKey:t,segment:u,refreshState:d,varyPath:o,isPage:i,slots:p,prefetchHints:e[4]??0}}async function eh(e,t){let r=t.pathname,n=t.search,a=t.nextUrl,u="/_tree",l={[i.RSC_HEADER]:"1",[i.NEXT_ROUTER_PREFETCH_HEADER]:"1",[i.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:u};null!==a&&(l[i.NEXT_URL]=a),eP(l);try{let t,s,d=new URL(r+n,location.origin);{let r=await fetch(d,{method:"HEAD"});if(r.status<200||r.status>=400)return eo(e,Date.now()+1e4),null;s=r.redirected?new URL(r.url):d,t=await ev(eb(s,u),l)}if(!t||!t.ok||204===t.status||!t.body)return eo(e,Date.now()+1e4),null;let g=(0,f.createHrefFromUrl)(s),_=t.headers.get("vary"),m=null!==_&&_.includes(i.NEXT_URL),v=(0,R.createPromiseWithResolvers)(),b="2"===t.headers.get(i.NEXT_DID_POSTPONE_HEADER)||!0;{let n,u,{stream:i,size:s}=await eR(t.body);v.resolve(),(0,p.setSizeInCacheMap)(e,s);let f=await (0,o.createFromNextReadableStream)(i,l,{allowPartialStream:!0});if((t.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??f.buildId)!==(0,O.getNavigationBuildId)())return eo(e,Date.now()+1e4),null;let d=(0,h.getRenderedPathname)(t),_=(0,h.getRenderedSearch)(t),R={metadataVaryPath:null},P=(n=d.split("/").filter(e=>""!==e),u=y.ROOT_SEGMENT_REQUEST_KEY,function e(t,r,n,a,u,l,i,o){let s,f,d=null,p=t.slots;if(null!==p)for(let t in s=!1,f=(0,c.finalizeLayoutVaryPath)(a,n),d={},p){let r,s,f,g=p[t],_=g.name,m=g.param;if(null!==m){let e=(0,h.parseDynamicParamFromURLPart)(m.type,u,l),t=null!==m.key?m.key:(0,h.getCacheKeyForDynamicParam)(e,"");f=(0,c.appendLayoutVaryPath)(n,t,_),s=[_,t,m.type,m.siblings],r=!0}else f=n,s=_,r=(0,h.doesStaticSegmentAppearInURL)(_);let E=r?l+1:l,v=(0,y.createSegmentRequestKeyPart)(s),R=(0,y.appendSegmentRequestKeyPart)(a,t,v);d[t]=e(g,s,f,R,u,E,i,o)}else a.endsWith(E.PAGE_SEGMENT_KEY)?(s=!0,f=(0,c.finalizePageVaryPath)(a,i,n),null===o.metadataVaryPath&&(o.metadataVaryPath=(0,c.finalizeMetadataVaryPath)(a,i,n))):(s=!1,f=(0,c.finalizeLayoutVaryPath)(a,n));return{requestKey:a,segment:r,refreshState:null,varyPath:f,isPage:s,slots:d,prefetchHints:t.prefetchHints}}(f.tree,u,null,y.ROOT_SEGMENT_REQUEST_KEY,n,0,_,R)),w=R.metadataVaryPath;if(null===w)return eo(e,Date.now()+1e4),null;(0,S.discoverKnownRoute)(Date.now(),r,a,e,P,w,m,g,b,!1)}if(!m){let t=(0,c.getFulfilledRouteVaryPath)(r,n,a,m);(0,p.setInCacheMap)(N,t,e,!1)}return{value:null,closed:v.promise}}catch(t){return eo(e,Date.now()+1e4),null}}async function ep(e,t,r,n){let a=new URL(e.canonicalUrl,location.origin),u=r.nextUrl,l=n.requestKey,s=l===y.ROOT_SEGMENT_REQUEST_KEY?"/_index":l,f={[i.RSC_HEADER]:"1",[i.NEXT_ROUTER_PREFETCH_HEADER]:"1",[i.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:s};null!==u&&(f[i.NEXT_URL]=u),eP(f);let d=eb(a,s);try{let e=await ev(d,f);if(!e||!e.ok||204===e.status||"2"!==e.headers.get(i.NEXT_DID_POSTPONE_HEADER)&&0||!e.body)return es(t,Date.now()+1e4),null;let r=(0,R.createPromiseWithResolvers)(),{stream:a,size:u}=await eR(e.body);r.resolve(),(0,p.setSizeInCacheMap)(t,u);let l=await (0,o.createFromNextReadableStream)(a,f,{allowPartialStream:!0});if((e.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??l.buildId)!==(0,O.getNavigationBuildId)())return es(t,Date.now()+1e4),null;let s=Date.now(),h=s+w(l.staleTime),y=ei(t,l.rsc,h,l.isPartial);l.varyParams;let g=(0,c.getSegmentVaryPathForRequest)(t.fetchStrategy,n);return Q(s,g,y),{value:y,closed:r.promise}}catch(e){return es(t,Date.now()+1e4),null}}async function ey(e,t,r,n){let a=new URL(e.canonicalUrl,location.origin),u=t.nextUrl,l={[i.RSC_HEADER]:"1",[i.NEXT_ROUTER_PREFETCH_HEADER]:"1",[i.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]:"/"+E.PAGE_SEGMENT_KEY};null!==u&&(l[i.NEXT_URL]=u),eP(l);try{let t=await ev(a,l);if(!t||!t.ok||204===t.status||"2"!==t.headers.get(i.NEXT_DID_POSTPONE_HEADER)&&0||!t.body)return e_(n,Date.now()+1e4),null;let u=(0,R.createPromiseWithResolvers)(),{stream:s}=await eR(t.body);u.resolve();let c=await (0,o.createFromNextReadableStream)(s,l,{allowPartialStream:!0});if((t.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??c.tree.segment.buildId)!==(0,O.getNavigationBuildId)())return e_(n,Date.now()+1e4),null;let f=Date.now();!function e(t,r,n,a,u){let l=a.segment,i=t+w(l.staleTime),o=u.get(n.requestKey);if(void 0!==o)ei(o,l.rsc,i,l.isPartial);else{let e=q(t,v.FetchStrategy.PPR,n);0===e.status&&ei(Z(e,v.FetchStrategy.PPR),l.rsc,i,l.isPartial)}if(null!==n.slots&&null!==a.slots)for(let l in n.slots){let i=n.slots[l],o=a.slots[l];void 0!==o&&e(t,r,i,o,u)}}(f,e,r,c.tree,n);let d=f+w(c.head.staleTime),h=e.metadata.requestKey,p=n.get(h);if(void 0!==p)ei(p,c.head.rsc,d,c.head.isPartial);else{let t=q(f,v.FetchStrategy.PPR,e.metadata);0===t.status&&ei(Z(t,v.FetchStrategy.PPR),c.head.rsc,d,c.head.isPartial)}return e_(n,Date.now()+1e4),{value:null,closed:u.promise}}catch(e){return e_(n,Date.now()+1e4),null}}async function eg(e,t,r,n,a){let u=e.key,s=new URL(t.canonicalUrl,location.origin),c=u.nextUrl;1===a.size&&a.has(t.metadata.requestKey)&&(n=j);let f={[i.RSC_HEADER]:"1",[i.NEXT_ROUTER_STATE_TREE_HEADER]:(0,g.prepareFlightRouterStateForRequest)(n)};switch(null!==c&&(f[i.NEXT_URL]=c),r){case v.FetchStrategy.Full:break;case v.FetchStrategy.PPRRuntime:f[i.NEXT_ROUTER_PREFETCH_HEADER]="2";break;case v.FetchStrategy.LoadingBoundary:f[i.NEXT_ROUTER_PREFETCH_HEADER]="1"}try{let e,u=await ev(s,f);if(!u||!u.ok||!u.body)return e_(a,Date.now()+1e4),null;let i=(0,h.getRenderedSearch)(u);if(i!==t.renderedSearch)return e_(a,Date.now()+1e4),null;let c=(0,R.createPromiseWithResolvers)(),m=null,E=null;if(r===v.FetchStrategy.Full){var d,y,_;let t,r;d=u.body,y=c.resolve,_=function(e){if(null===m)return;let t=e/m.length;for(let e of m)(0,p.setSizeInCacheMap)(e,t)},t=0,r=d.getReader(),e=new ReadableStream({async pull(e){for(;;){let{done:n,value:a}=await r.read();if(!n){e.enqueue(a),_(t+=a.byteLength);continue}e.close(),y();return}}})}else{let{stream:t,size:r}=await eR(u.body);c.resolve(),e=t,E=r}let[S,O]=await Promise.all([(0,o.createFromNextReadableStream)(e,f,{allowPartialStream:!0}),u.cacheData]),w=S.h,A=null!==w?(0,l.readVaryParams)(w):null,j=Date.now(),N=await eO(j,S.s,u),C=r===v.FetchStrategy.PPRRuntime&&(O?.isResponsePartial??!1),D=u.headers.get(T.NEXT_NAV_DEPLOYMENT_ID_HEADER)??S.b,M=(0,g.normalizeFlightData)(S.f);if("string"==typeof M)return e_(a,Date.now()+1e4),null;let I=(0,P.convertServerPatchToFullTree)(j,n,M,i,b.UnknownDynamicStaleTime);if(m=em(j,r,M,D,C,A,N,I,a),null!==E&&null!==m&&m.length>0){let e=E/m.length;for(let t of m)(0,p.setSizeInCacheMap)(t,e)}return{value:null,closed:c.promise}}catch(e){return e_(a,Date.now()+1e4),null}}function e_(e,t){let r=[];for(let n of e.values())1===n.status?es(n,t):2===n.status&&r.push(n);return r}function em(e,t,r,n,a,u,i,o,s){if(n&&n!==(0,O.getNavigationBuildId)())return null!==s&&e_(s,e+1e4),null;let c=o.routeTree,f=null!==o.metadataVaryPath?en(o.metadataVaryPath):null;for(let n of r){let r=n.seedData;if(null!==r){let u=n.segmentPath,o=c;for(let t=0;t1){t=new Uint8Array(a);let e=0;for(let r of n)t.set(r,e),e+=r.byteLength}else t=new Uint8Array(0);return{stream:new ReadableStream({start(e){e.enqueue(t),e.close()}}),size:a}}function eb(e,t){{let r=new URL(e),n=r.pathname.endsWith("/")?r.pathname.slice(0,-1):r.pathname,a=(0,y.convertSegmentPathToStaticExportFilename)(t);return r.pathname=`${n}/${a}`,r}}function eS(e,t){return ee.close()}),isPartial:!1};let a=n[0],u=35===a||126===a,l=u?n.byteLength>1?n.subarray(1):null:n;return{isPartial:!!u&&126===a,stream:new ReadableStream({start(e){l&&e.enqueue(l)},async pull(e){let r=await t.read();r.done?e.close():e.enqueue(r.value)}})}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},87288,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var a={createFetch:function(){return O},createFromNextReadableStream:function(){return T},decodeStaticStage:function(){return P},fetchServerResponse:function(){return R},processFetch:function(){return b},resolveStaticStageData:function(){return S}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let l=e.r(35326);e.r(12718);let i=e.r(21768),o=e.r(32120),s=e.r(92245),c=e.r(50590),f=e.r(88093),d=e.r(33906),h=e.r(43369),p=e.r(32992),y=e.r(63416);e.r(20896);let g=e.r(79027),_=l.createFromReadableStream,m=l.createFromFetch;function E(e){return(0,d.urlToUrlWithoutFlightMarker)(new URL(e,location.origin)).toString()}let v=!1;async function R(e,t){let{flightRouterState:r,nextUrl:n}=t,a={[i.RSC_HEADER]:"1",[i.NEXT_ROUTER_STATE_TREE_HEADER]:(0,c.prepareFlightRouterStateForRequest)(r,t.isHmrRefresh)};n&&(a[i.NEXT_URL]=n);let u=e;try{(e=new URL(e)).pathname.endsWith("/")?e.pathname+="index.txt":e.pathname+=".txt";let t=await O(e,a,"auto",!0),r=(0,d.urlToUrlWithoutFlightMarker)(new URL(t.url)),n=t.redirected?r:u,l=t.headers.get("content-type")||"",o=!!t.headers.get("vary")?.includes(i.NEXT_URL),s=!!t.headers.get(i.NEXT_DID_POSTPONE_HEADER),f=l.startsWith(i.RSC_CONTENT_TYPE_HEADER);if(f||(f=l.startsWith("text/plain")),!f||!t.ok||!t.body)return e.hash&&(r.hash=e.hash),E(r.toString());let h=t.flightResponsePromise;null===h&&(h=T(t.body,a,{allowPartialStream:s}));let[_,m]=await Promise.all([h,t.cacheData]);if((t.headers.get(y.NEXT_NAV_DEPLOYMENT_ID_HEADER)??_.b)!==(0,p.getNavigationBuildId)())return E(t.url);let v=(0,c.normalizeFlightData)(_.f);if("string"==typeof v)return E(v);let R=null!==m?await S(m,_,a):null;return{flightData:v,canonicalUrl:n,renderedSearch:_.q,couldBeIntercepted:o,supportsPerSegmentPrefetching:_.S,postponed:s,dynamicStaleTime:_.d??g.UnknownDynamicStaleTime,staticStageData:R,runtimePrefetchStream:_.p??null,responseHeaders:t.headers,debugInfo:h._debugInfo??null}}catch(e){return v||console.error(`Failed to fetch RSC payload for ${u}. Falling back to browser navigation.`,e),u.toString()}}async function b(e){return{response:e,cacheData:null}}async function S(e,t,r){let{isResponsePartial:n,responseBodyClone:a}=e;if(a){if(!n)return a.cancel(),{response:t,isResponsePartial:!1};if(void 0!==t.l)return{response:await P(a,t.l,r),isResponsePartial:!0};a.cancel()}return null}async function P(e,t,r){var n,a;let u,l;return T((n=e,a=await t,u=n.getReader(),l=a,new ReadableStream({async pull(e){if(l<=0){u.cancel(),e.close();return}let{done:t,value:r}=await u.read();t?e.close():r.byteLength<=l?(e.enqueue(r),l-=r.byteLength):(e.enqueue(r.subarray(0,l)),l=0,u.cancel(),e.close())},cancel(){u.cancel()}})),r,{allowPartialStream:!0})}async function O(e,t,r,a,u){var l,c;let d=(0,h.getDeploymentId)();d&&(t["x-deployment-id"]=d);let p=new URL(e);await (0,f.setCacheBustingSearchParam)(p,t);let y=fetch(p,{credentials:"same-origin",headers:t,priority:r||void 0,signal:u}).then(b),g=y.then(({response:e})=>e),_=a?(l=g,c=t,m(l,{callServer:o.callServer,findSourceMapURL:s.findSourceMapURL,debugChannel:n&&n(c)})):null,E=await g,v=E.redirected,R=new URL(E.url,p);return R.searchParams.delete(i.NEXT_RSC_UNION_QUERY),{url:R.href,redirected:v,ok:E.ok,headers:E.headers,body:E.body,status:E.status,flightResponsePromise:_,cacheData:y.then(({cacheData:e})=>e)}}function T(e,t,r){return _(e,{callServer:o.callServer,findSourceMapURL:s.findSourceMapURL,debugChannel:n&&n(t),unstable_allowPartialStream:r?.allowPartialStream})}"u">typeof window&&(window.addEventListener("pagehide",()=>{v=!0}),window.addEventListener("pageshow",()=>{v=!1})),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},48919,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let a=t[0],u=r.segment;if(Array.isArray(a)&&Array.isArray(u)){if(a[0]!==u[0]||a[2]!==u[2])return!0}else if(a!==u)return!0;let l=((t[4]??0)&n.PrefetchHint.IsRootLayout)!=0,i=(r.prefetchHints&n.PrefetchHint.IsRootLayout)!=0;if(l)return!i;if(i)return!0;let o=r.slots,s=t[1];if(null!==o)for(let t in o){let r=o[t],n=s[t];if(void 0===n||e(n,r))return!0}return!1}}});let n=e.r(22744);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},94272,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getLastCommittedTree:function(){return l},setLastCommittedTree:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=null;function l(){return u}function i(e){u=e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95871,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a={FreshnessPolicy:function(){return b},createInitialCacheNodeForHydration:function(){return P},isDeferredRsc:function(){return k},spawnDynamicRequests:function(){return M},startPPRNavigation:function(){return O}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let l=e.r(22744),i=e.r(13258),o=e.r(56019),s=e.r(51191),c=e.r(87288),f=e.r(41538),d=e.r(88540),h=e.r(48919),p=e.r(94272),y=e.r(60355),g=e.r(20896),_=e.r(9396),m=e.r(96167),E=e.r(63416),v=e.r(56655),R=e.r(79027);var b=((n={})[n.Default=0]="Default",n[n.Hydration=1]="Hydration",n[n.HistoryTraversal=2]="HistoryTraversal",n[n.RefreshAll=3]="RefreshAll",n[n.HMRRefresh=4]="HMRRefresh",n[n.Gesture=5]="Gesture",n);let S=()=>{};function P(e,t,r,n,a){return T(e,t,null,1,r,n,a,!1,{separateRefreshUrls:null,scrollRef:null})}function O(e,t,r,n,a,u,c,f,d,p,y,_,m){let E={canonicalUrl:(0,s.createHrefFromUrl)(t),renderedSearch:r};return function e(t,r,n,a,u,s,c,f,d,p,y,_,m,E,v,R){var b,S,P;let O,A,D,M,I=a[0],x=w(u);if(!(0,o.matchSegment)(x,I))return!f&&(0,h.isNavigatingToNewRootLayout)(a,u)||x===i.NOT_FOUND_SEGMENT_KEY?null:T(t,u,s,c,d,p,y,m,R);let F=u.slots,U=a[1],k=null!==d?d[1]:null,L=f||(u.prefetchHints&l.PrefetchHint.IsRootLayout)!=0,H=!1;switch(c){case 0:case 2:case 1:case 5:H=!1;break;case 3:case 4:H=!0}let B=null===F;if(void 0===n||H||B&&_){let e=N(t,u,null!==d?d[0]:null,s,p,c,y);D=e.cacheNode,M=e.needsDynamicRequest,void 0!==n&&(D.scrollRef=n.scrollRef)}else{b=!1,D=C((S=n).rsc,b?null:S.prefetchRsc,S.head,b?null:S.prefetchHead,S.scrollRef),M=!1}let $=u.refreshState,X=null!=$?$:v;M&&null!==X&&(P=R,O=X.canonicalUrl,null===(A=P.separateRefreshUrls)?P.separateRefreshUrls=new Set([O]):A.add(O));let V={},G=null,K=!1,Y={},q=null;if(null!==F){let a=void 0!==n?n.slots:null;for(let n in D.slots=q={},G=new Map,F){let l=F[n],o=U[n];if(void 0===o)return null;let f=null!==k?k[n]:null,d=o[0],h=w(l),v=p;2!==c&&h===i.DEFAULT_SEGMENT_KEY&&d!==i.DEFAULT_SEGMENT_KEY&&(h=w(l=function(e,t,r,n){let a,u,l=n[2];null!=l?(a=l[0],u=l[1]):(a=r.canonicalUrl,u=r.renderedSearch);let i=(0,g.convertReusedFlightRouterStateToRouteTree)(e,t,n,u,{metadataVaryPath:null});return i.refreshState={canonicalUrl:a,renderedSearch:u},i}(u,n,E,o)),f=null,v=null);let b=e(t,r,null!==a?a[n]:void 0,o,l,s,c,L,f??null,v,y,_,m||M,E,X,R);if(null===b)return null;G.set(n,b),q[n]=b.node;let S=b.route;V[n]=S;let P=b.dynamicRequestTree;null!==P?(K=!0,Y[n]=P):Y[n]=S}}let W=[w(u),V,null!==X?[X.canonicalUrl,X.renderedSearch]:null,null,u.prefetchHints];return{status:+!M,route:W,node:D,dynamicRequestTree:j(W,Y,M,K,m),refreshState:X,children:G}}(e,t,null!==n?n:void 0,a,u,c,f,!1,d,p,y,_,!1,E,null,m)}function T(e,t,r,n,a,u,l,i,o){let s=w(t),c=t.slots,f=null!==a?a[1]:null,d=N(e,t,null!==a?a[0]:null,r,u,n,l),h=d.cacheNode,p=d.needsDynamicRequest;null===c&&function(e,t,r){switch(e){case 0:case 5:case 3:case 4:null===r.scrollRef&&(r.scrollRef={current:!0}),t.scrollRef=r.scrollRef}}(n,h,o);let y={},g=null,_=!1,m={},E=null;if(null!==c)for(let t in h.slots=E={},g=new Map,c){let a=T(e,c[t],r,n,(null!==f?f[t]:null)??null,u,l,i||p,o);g.set(t,a),E[t]=a.node;let s=a.route;y[t]=s;let d=a.dynamicRequestTree;null!==d?(_=!0,m[t]=d):m[t]=s}let v=[s,y,null,null,t.prefetchHints];return{status:+!p,route:v,node:h,dynamicRequestTree:j(v,m,p,_,i),refreshState:null,children:g}}function w(e){if(e.isPage){let t=(0,v.getRenderedSearchFromVaryPath)(e.varyPath);if(null===t)return i.PAGE_SEGMENT_KEY;let r=JSON.stringify(Object.fromEntries(new URLSearchParams(t)));return"{}"!==r?i.PAGE_SEGMENT_KEY+"?"+r:i.PAGE_SEGMENT_KEY}return e.segment}function A(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}function j(e,t,r,n,a){let u=null;return r?(u=A(e,t),a||(u[3]="refetch")):u=n?A(e,t):null,u}function N(e,t,r,n,a,u,l){let i,o,s,c=t.isPage;switch(u){case 0:{let r=(0,R.readFromBFCacheDuringRegularNavigation)(e,t.varyPath);if(null!==r)return{cacheNode:C(r.rsc,r.prefetchRsc,r.head,r.prefetchHead),needsDynamicRequest:!1};break}case 1:{let u=c?a:null;return(0,R.writeToBFCache)(e,t.varyPath,r,null,u,null,l),c&&null!==n&&(0,R.writeHeadToBFCache)(e,n,u,null,l),{cacheNode:C(r,null,u,null),needsDynamicRequest:!1}}case 2:let f=(0,R.readFromBFCache)(t.varyPath);if(null!==f){let e=f.rsc,t=!k(e)||"pending"!==e.status;return{cacheNode:C(f.rsc,t?null:f.prefetchRsc,f.head,t?null:f.prefetchHead),needsDynamicRequest:!1}}}let d=null,h=!0,p=(0,g.readSegmentCacheEntry)(e,t.varyPath);if(null!==p)switch(p.status){case g.EntryStatus.Fulfilled:d=p.rsc,h=p.isPartial;break;case g.EntryStatus.Pending:d=(0,g.waitForSegmentCacheEntry)(p).then(e=>null!==e?e.rsc:null),h=p.isPartial;case g.EntryStatus.Empty:case g.EntryStatus.Rejected:}null!==r?(h?(i=d,o=r):(i=null,o=d),s=!1):(h?(i=d,o=L()):(i=null,o=d),s=h);let y=null,_=null,m=c;if(c){let t=null,r=!0;if(null!==n){let a=(0,g.readSegmentCacheEntry)(e,n);if(null!==a)switch(a.status){case g.EntryStatus.Fulfilled:t=a.rsc,r=a.isPartial;break;case g.EntryStatus.Pending:t=(0,g.waitForSegmentCacheEntry)(a).then(e=>null!==e?e.rsc:null),r=a.isPartial;case g.EntryStatus.Empty:case g.EntryStatus.Rejected:}}null!==a?(r?(y=t,_=a):(y=null,_=t),m=!1):(r?(y=t,_=L()):(y=null,_=t),m=r)}return 5!==u&&((0,R.writeToBFCache)(e,t.varyPath,o,i,_,y,l),c&&null!==n&&(0,R.writeHeadToBFCache)(e,n,_,y,l)),{cacheNode:C(o,i,_,y),needsDynamicRequest:s||m}}function C(e,t,r,n,a=null){return{rsc:e,prefetchRsc:t,head:r,prefetchHead:n,slots:null,scrollRef:a}}let D=!1;function M(e,t,r,n,a,u,l){let i=e.dynamicRequestTree;if(null===i){D=!1;return}let o=F(e,i,t,r,n,u),c=a.separateRefreshUrls,f=null;if(null!==c){f=[];let a=(0,s.createHrefFromUrl)(t);for(let t of c)t!==a&&null!==i&&f.push(F(e,i,new URL(t,location.origin),r,n,u))}I(e,r,o,f,u,l).then(S,S)}async function I(e,t,r,n,a,u){var l,i;let o=await (l=r,i=n,new Promise(e=>{let t=t=>{0===t.exitStatus?0==--n&&e(0):e(t.exitStatus)},r=()=>e(2),n=1;l.then(t,r),null!==i&&(n+=i.length,i.forEach(e=>e.then(t,r)))}));switch(0===o&&(o=function e(t,r,n){var a,u,l;let i,o,s;0===t.status?(t.status=2,a=t.node,u=r,l=n,k(o=a.rsc)&&(null===u?o.resolve(null,l):o.reject(u,l)),k(s=a.head)&&s.resolve(null,l),i=null===t.refreshState?1:2):i=0;let c=t.children;if(null!==c)for(let[,t]of c){let a=e(t,r,n);a>i&&(i=a)}return i}(e,null,null)),o){case 0:D=!1;return;case 1:{let n=await r;x(!1,n.url,t,n.seed,e.route,a,u);return}case 2:{let n=await r;x(!0,n.url,t,n.seed,e.route,a,u);return}default:return o}}function x(e,t,r,n,a,u,l){if(null!==u)(0,g.markRouteEntryAsDynamicRewrite)(u);else if(null!==n){let e=n.metadataVaryPath;if(null!==e){let a=Date.now();(0,m.discoverKnownRoute)(a,t.pathname,r,null,n.routeTree,e,!1,(0,s.createHrefFromUrl)(t),!1,!0)}}(0,g.invalidateRouteCacheEntries)(r,a),e=e||D,D=!0;let i=(0,p.getLastCommittedTree)(),o=null!==i&&a!==i?l:"replace",c={type:d.ACTION_SERVER_PATCH,previousTree:a,url:t,nextUrl:r,seed:n,mpa:e,navigateType:o};(0,f.dispatchAppRouterAction)(c)}async function F(e,t,r,n,a,u){try{let l=await (0,c.fetchServerResponse)(r,{flightRouterState:t,nextUrl:n,isHmrRefresh:4===a});if("string"==typeof l)return{exitStatus:2,url:new URL(l,location.origin),seed:null};let i=Date.now(),s=(0,y.convertServerPatchToFullTree)(i,e.route,l.flightData,l.renderedSearch,l.dynamicStaleTime);if(null!==u&&null!==l.staticStageData){let{response:e,isResponsePartial:r}=l.staticStageData;(0,g.getStaleAt)(i,e.s).then(n=>{let a=l.responseHeaders.get(E.NEXT_NAV_DEPLOYMENT_ID_HEADER)??e.b;(0,g.writeStaticStageResponseIntoCache)(i,e.f,a,e.h,n,t,l.renderedSearch,r)}).catch(()=>{})}null!==u&&null!==l.runtimePrefetchStream&&(0,g.processRuntimePrefetchStream)(i,l.runtimePrefetchStream,t,l.renderedSearch).then(e=>{null!==e&&(0,g.writeDynamicRenderResponseIntoCache)(i,_.FetchStrategy.PPRRuntime,e.flightDatas,e.buildId,e.isResponsePartial,e.headVaryParams,e.staleAt,e.navigationSeed,null)}).catch(()=>{});let f=(0,R.computeDynamicStaleAt)(i,l.dynamicStaleTime);return{exitStatus:+!!function e(t,r,n,a,u,l){0===t.status&&null!==n&&(t.status=1,function(e,t,r,n){let a=e.rsc,u=t[0];if(null===u)return;null===a?e.rsc=u:k(a)&&a.resolve(u,n);let l=e.head;k(l)&&l.resolve(r,n)}(t.node,n,a,l),(0,R.updateBFCacheEntryStaleAt)(r.varyPath,u));let i=t.children,s=r.slots,c=null!==n?n[1]:null,f=!1;if(null!==i)if(null!==s)for(let t in s){let r=s[t],n=null!==c?c[t]:null,d=i.get(t);if(void 0===d)f=!0;else{let t=d.route[0],i=w(r);(0,o.matchSegment)(i,t)&&null!=n&&e(d,r,n,a,u,l)&&(f=!0)}}else null!==s&&(f=!0);return f}(e,s.routeTree,s.data,s.head,f,l.debugInfo),url:new URL(l.canonicalUrl,location.origin),seed:s}}catch{return{exitStatus:2,url:r,seed:null}}}let U=Symbol();function k(e){return e&&"object"==typeof e&&e.tag===U}function L(){let e,t,r=[],n=new Promise((r,n)=>{e=r,t=n});return n.status="pending",n.resolve=(t,a)=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,null!==a&&r.push.apply(r,a),e(t))},n.reject=(e,a)=>{"pending"===n.status&&(n.status="rejected",n.reason=e,null!==a&&r.push.apply(r,a),t(e))},n.tag=U,n._debugInfo=r,n}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3372,(e,t,r)=>{"use strict";function n(e){return e.startsWith("/")?e:`/${e}`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},74180,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={compareAppPaths:function(){return o},normalizeAppPath:function(){return i},normalizeRscURL:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(3372),l=e.r(13258);function i(e){return(0,u.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,l.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:`${e}/${t}`,""))}function o(e,t){let r=e.includes("/@"),n=t.includes("/@");return r&&!n?-1:!r&&n?1:e.localeCompare(t)}function s(e){return e.replace(/\.rsc($|\?)/,"$1")}},91463,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={INTERCEPTION_ROUTE_MARKERS:function(){return l},extractInterceptionRouteInformation:function(){return o},isInterceptionRouteAppPath:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(74180),l=["(..)(..)","(.)","(..)","(...)"];function i(e){return void 0!==e.split("/").find(e=>l.find(t=>e.startsWith(t)))}function o(e){let t,r,n;for(let a of e.split("/"))if(r=l.find(e=>a.startsWith(e))){[t,n]=e.split(r,2);break}if(!t||!r||!n)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,u.normalizeAppPath)(t),r){case"(.)":n="/"===t?`/${n}`:t+"/"+n;break;case"(..)":if("/"===t)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});n=t.split("/").slice(0,-1).concat(n).join("/");break;case"(...)":n="/"+n;break;case"(..)(..)":let a=t.split("/");if(a.length<=2)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});n=a.slice(0,-2).concat(n).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:n}}},34727,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={computeChangedPath:function(){return h},extractPathFromFlightRouterState:function(){return f},extractSourcePageFromFlightRouterState:function(){return d},getSelectedParams:function(){return function e(t,r={}){for(let n of Object.values(t[1])){let t=n[0],a=Array.isArray(t),u=a?t[1]:t;!u||u.startsWith(l.PAGE_SEGMENT_KEY)||(a&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):a&&(r[t[0]]=t[1]),r=e(n,r))}return r}}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(91463),l=e.r(13258),i=e.r(56019),o=e=>"/"===e[0]?e.slice(1):e,s=e=>"string"==typeof e?"children"===e?"":e:e[1];function c(e){return e.reduce((e,t)=>""===(t=o(t))||(0,l.isGroupSegment)(t)?e:`${e}/${t}`,"")||"/"}function f(e){let t=Array.isArray(e[0])?e[0][1]:e[0];if(t===l.DEFAULT_SEGMENT_KEY||u.INTERCEPTION_ROUTE_MARKERS.some(e=>t.startsWith(e)))return;if(t.startsWith(l.PAGE_SEGMENT_KEY))return"";let r=[s(t)],n=e[1]??{},a=n.children?f(n.children):void 0;if(void 0!==a)r.push(a);else for(let[e,t]of Object.entries(n)){if("children"===e)continue;let n=f(t);void 0!==n&&r.push(n)}return c(r)}function d(e){let t=function e(t){let r=(e=>{if("string"==typeof e)return"children"===e?"":e.startsWith(l.PAGE_SEGMENT_KEY)?"page":e;let[t,,r]=e;switch(r){case"c":return`[...${t}]`;case"ci(..)(..)":return`(..)(..)[...${t}]`;case"ci(.)":return`(.)[...${t}]`;case"ci(..)":return`(..)[...${t}]`;case"ci(...)":return`(...)[...${t}]`;case"oc":return`[[...${t}]]`;case"d":default:return`[${t}]`;case"di(..)(..)":return`(..)(..)[${t}]`;case"di(.)":return`(.)[${t}]`;case"di(..)":return`(..)[${t}]`;case"di(...)":return`(...)[${t}]`}})(t[0]);if(r===l.DEFAULT_SEGMENT_KEY)return;if("page"===r)return[r];let n=t[1]??{},a=n.children?e(n.children):void 0;if(void 0!==a)return""===r?a:[o(r),...a];for(let[t,a]of Object.entries(n)){if("children"===t)continue;let n=e(a);if(void 0!==n)return""===r?n:[o(r),...n]}}(e);return t?`/${t.join("/")}`:void 0}function h(e,t){let r=function e(t,r){let[n,a]=t,[l,o]=r,c=s(n),d=s(l);if(u.INTERCEPTION_ROUTE_MARKERS.some(e=>c.startsWith(e)||d.startsWith(e)))return"";if(!(0,i.matchSegment)(n,l))return f(r)??"";for(let t in a)if(o[t]){let r=e(a[t],o[t]);if(null!==r)return`${s(l)}/${r}`}return null}(e,t);return null==r||"/"===r?r:c(r.split("/"))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},48277,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isJavaScriptURLString",{enumerable:!0,get:function(){return a}});let n=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function a(e){return n.test(""+e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},81400,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isNavigationLocked:function(){return o},startListeningForInstantNavigationCookie:function(){return u},transitionToCapturedSPA:function(){return l},updateCapturedSPAToTree:function(){return i},waitForNavigationLockIfActive:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(){}function l(e,t){}function i(e,t){}function o(){return!1}async function s(){}e.r(21768),e.r(41538),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},60355,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={completeHardNavigation:function(){return b},completeSoftNavigation:function(){return S},completeTraverseNavigation:function(){return P},convertServerPatchToFullTree:function(){return O},navigate:function(){return _},navigateToKnownRoute:function(){return m}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(87288),l=e.r(95871),i=e.r(51191),o=e.r(63416),s=e.r(20896),c=e.r(96167),f=e.r(77048);e.r(77709);let d=e.r(9396);e.r(91949);let h=e.r(88540),p=e.r(34727),y=e.r(48277),g=e.r(79027);function _(e,t,r,n,a,u,l,i,o,c){return function(e,t,r,n,a,u,l,i,o,c){let d=Date.now(),h=t.href,p=(0,f.createCacheKey)(h,l),y=(0,s.readRouteCacheEntry)(d,p);if(null!==y&&y.status===s.EntryStatus.Fulfilled)return E(d,e,t,r,n,l,a,u,i,o,c,y);if(null===y||y.status!==s.EntryStatus.Rejected){let f=(0,s.deprecated_requestOptimisticRouteCacheEntry)(d,t,l);if(null!==f)return E(d,e,t,r,n,l,a,u,i,o,c,f)}return R(d,e,t,r,n,l,a,u,i,o,c).catch(()=>e)}(e,t,r,n,a,u,l,i,o,c)}function m(e,t,r,n,a,u,i,o,s,c,f,d,h,p,y){let g={separateRefreshUrls:null,scrollRef:null},_=r.href===u.href,m=(0,l.startPPRNavigation)(e,u,i,o,s,a.routeTree,a.metadataVaryPath,c,a.data,a.head,a.dynamicStaleAt,_,g);return null!==m?(c!==l.FreshnessPolicy.Gesture&&(0,l.spawnDynamicRequests)(m,r,f,c,g,y,h),S(t,r,f,m.route,m.node,a.renderedSearch,n,h,d,g.scrollRef,p)):b(t,r,h)}function E(e,t,r,n,a,u,l,i,o,s,c,f){let d=f.tree,h=f.canonicalUrl+r.hash,p={renderedSearch:f.renderedSearch,routeTree:d,metadataVaryPath:f.metadata.varyPath,data:null,head:null,dynamicStaleAt:(0,g.computeDynamicStaleAt)(e,g.UnknownDynamicStaleTime)};return m(e,t,r,h,p,n,a,l,i,o,u,s,c,null,f)}let v=["",{},null,"refetch"];async function R(e,t,r,n,a,f,h,p,y,g,_){let E;switch(y){case l.FreshnessPolicy.Default:case l.FreshnessPolicy.HistoryTraversal:case l.FreshnessPolicy.Gesture:E=p;break;case l.FreshnessPolicy.Hydration:case l.FreshnessPolicy.RefreshAll:case l.FreshnessPolicy.HMRRefresh:E=v;break;default:E=p}let R=(0,u.fetchServerResponse)(r,{flightRouterState:E,nextUrl:f}),S=await R;if("string"==typeof S)return b(t,new URL(S,location.origin),_);let{flightData:P,canonicalUrl:T,renderedSearch:w,couldBeIntercepted:A,supportsPerSegmentPrefetching:j,dynamicStaleTime:N,staticStageData:C,runtimePrefetchStream:D,responseHeaders:M,debugInfo:I}=S,x=O(e,p,P,w,N),F=x.metadataVaryPath;if(null!==F){if((0,c.discoverKnownRoute)(e,r.pathname,f,null,x.routeTree,F,A,(0,i.createHrefFromUrl)(T),j,!1),null!==C){let{response:t,isResponsePartial:r}=C;(0,s.getStaleAt)(e,t.s).then(n=>{let a=M.get(o.NEXT_NAV_DEPLOYMENT_ID_HEADER)??t.b;(0,s.writeStaticStageResponseIntoCache)(e,t.f,a,t.h,n,p,w,r)}).catch(()=>{})}null!==D&&(0,s.processRuntimePrefetchStream)(e,D,p,w).then(t=>{null!==t&&(0,s.writeDynamicRenderResponseIntoCache)(e,d.FetchStrategy.PPRRuntime,t.flightDatas,t.buildId,t.isResponsePartial,t.headVaryParams,t.staleAt,t.navigationSeed,null)}).catch(()=>{})}return m(e,t,r,(0,i.createHrefFromUrl)(T),x,n,a,h,p,y,f,g,_,I,null)}function b(e,t,r){return(0,y.isJavaScriptURLString)(t.href)?(console.error("Next.js has blocked a javascript: URL as a security precaution."),e):{canonicalUrl:t.origin===location.origin?(0,i.createHrefFromUrl)(t):t.href,pushRef:{pendingPush:"push"===r,mpaNavigation:!0,preserveCustomHistoryState:!1},renderedSearch:e.renderedSearch,focusAndScrollRef:e.focusAndScrollRef,cache:e.cache,tree:e.tree,nextUrl:e.nextUrl,previousNextUrl:e.previousNextUrl,debugInfo:null}}function S(e,t,r,n,a,u,l,i,o,s,c){let f,d,y=(0,p.computeChangedPath)(e.tree,n)||e.nextUrl,g=new URL(e.canonicalUrl,t),_=t.pathname===g.pathname&&t.search===g.search&&t.hash!==g.hash;if(o===h.ScrollBehavior.NoScroll)null!==s&&(s.current=!1),f=e.focusAndScrollRef.scrollRef,d=!1;else if(_){let t=e.focusAndScrollRef.scrollRef;null!==t&&(t.current=!1),null!==s&&(s.current=!1),f={current:!0},d=!0}else{if(f=s,null!==s){let t=e.focusAndScrollRef.scrollRef;null!==t&&(t.current=!1)}d=!1}return{canonicalUrl:l,renderedSearch:u,pushRef:{pendingPush:"push"===i,mpaNavigation:!1,preserveCustomHistoryState:!1},focusAndScrollRef:{scrollRef:f,forceScroll:d,onlyHashChange:_,hashFragment:o!==h.ScrollBehavior.NoScroll&&""!==t.hash?decodeURIComponent(t.hash.slice(1)):e.focusAndScrollRef.hashFragment},cache:a,tree:n,nextUrl:y,previousNextUrl:r,debugInfo:c}}function P(e,t,r,n,a,u){return{canonicalUrl:(0,i.createHrefFromUrl)(t),renderedSearch:r,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:n,tree:a,nextUrl:u,previousNextUrl:null,debugInfo:null}}function O(e,t,r,n,a){let u=t,l=null,i=null;if(null!==r)for(let{segmentPath:e,tree:t,seedData:a,head:o}of r){let r=function e(t,r,n,a,u,l,i){let o;if(i===u.length)return{tree:n,data:a};let s=u[i],c=t[1],f=null!==r?r[1]:null,d={},h={};for(let t in c){let r=c[t],o=null!==f?f[t]??null:null;if(t===s){let s=e(r,o,n,a,u,l,i+2);d[t]=s.tree,h[t]=s.data}else d[t]=r,h[t]=o}if(o=[t[0],d],2 in t){let e=t[2];null!=e&&(o[2]=[e[0],l])}return 3 in t&&(o[3]=t[3]),4 in t&&(o[4]=t[4]),{tree:o,data:[null,h,null,!0,null]}}(u,l,t,a,e,n,0);u=r.tree,l=r.data,i=o}let o=u,c={metadataVaryPath:null};return{routeTree:(0,s.convertRootFlightRouterStateToRouteTree)(o,n,c),metadataVaryPath:c.metadataVaryPath,data:l,renderedSearch:n,head:i,dynamicStaleAt:(0,g.computeDynamicStaleAt)(e,a)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54069,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DYNAMIC_STALETIME_MS:function(){return o},STATIC_STALETIME_MS:function(){return s},navigateReducer:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(60355),l=e.r(20896),i=e.r(95871),o=1e3*Number("0"),s=(0,l.getStaleTimeMs)(Number("300"));function c(e,t){let{url:r,isExternalUrl:n,navigateType:a,scrollBehavior:l}=t;if(n||document.getElementById("__next-page-redirect"))return(0,u.completeHardNavigation)(e,r,a);let o=new URL(e.canonicalUrl,location.origin),s=e.renderedSearch;return(0,u.navigate)(e,r,o,s,e.cache,e.tree,e.nextUrl,i.FreshnessPolicy.Default,l,a)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},84356,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e([t,r]){if(Array.isArray(t)&&("di(..)(..)"===t[2]||"ci(..)(..)"===t[2]||"di(.)"===t[2]||"ci(.)"===t[2]||"di(..)"===t[2]||"ci(..)"===t[2]||"di(...)"===t[2]||"ci(...)"===t[2])||"string"==typeof t&&(0,n.isInterceptionRouteAppPath)(t))return!0;if(r){for(let t in r)if(e(r[t]))return!0}return!1}}});let n=e.r(91463);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},69845,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={refreshDynamicData:function(){return d},refreshReducer:function(){return f}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(88540),l=e.r(60355),i=e.r(20896),o=e.r(84356),s=e.r(95871),c=e.r(79027);function f(e,t){{let t=e.nextUrl,r=e.tree;(0,i.invalidateSegmentCacheEntries)(t,r)}return d(e,s.FreshnessPolicy.RefreshAll)}function d(e,t){(0,c.invalidateBfCache)();let r=e.nextUrl,n=(0,o.hasInterceptionRouteInCurrentTree)(e.tree)?e.previousNextUrl||r:null,a=e.canonicalUrl,i=new URL(a,location.origin),s=e.renderedSearch,f=e.tree,d=u.ScrollBehavior.NoScroll,h=Date.now(),p=(0,l.convertServerPatchToFullTree)(h,f,null,s,c.UnknownDynamicStaleTime);return(0,l.navigateToKnownRoute)(h,e,i,a,p,i,s,e.cache,f,t,n,d,"replace",null,null)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},91668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverPatchReducer",{enumerable:!0,get:function(){return o}});let n=e.r(51191),a=e.r(88540),u=e.r(60355),l=e.r(69845),i=e.r(95871);function o(e,t){let r=t.mpa,o=new URL(t.url,location.origin),s=t.seed,c=t.navigateType;if(r||null===s)return(0,u.completeHardNavigation)(e,o,c);let f=new URL(e.canonicalUrl,location.origin),d=e.renderedSearch;if(t.previousTree!==e.tree)return(0,l.refreshReducer)(e,{type:a.ACTION_REFRESH});let h=(0,n.createHrefFromUrl)(o),p=t.nextUrl,y=a.ScrollBehavior.Default,g=Date.now();return(0,u.navigateToKnownRoute)(g,e,o,h,s,f,d,e.cache,e.tree,i.FreshnessPolicy.RefreshAll,p,y,c,null,null)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73790,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"restoreReducer",{enumerable:!0,get:function(){return i}});let n=e.r(34727),a=e.r(95871),u=e.r(60355),l=e.r(79027);function i(e,t){let r,i,o=t.historyState;o?(r=o.tree,i=o.renderedSearch):(r=e.tree,i=e.renderedSearch);let s=new URL(e.canonicalUrl,location.origin),c=t.url,f=(0,n.extractPathFromFlightRouterState)(r)??c.pathname,d=Date.now(),h={separateRefreshUrls:null,scrollRef:null},p=(0,u.convertServerPatchToFullTree)(d,r,null,i,l.UnknownDynamicStaleTime),y=(0,a.startPPRNavigation)(d,s,e.renderedSearch,e.cache,e.tree,p.routeTree,p.metadataVaryPath,a.FreshnessPolicy.HistoryTraversal,null,null,p.dynamicStaleAt,!1,h);return null===y?(0,u.completeHardNavigation)(e,c,"replace"):((0,a.spawnDynamicRequests)(y,c,f,a.FreshnessPolicy.HistoryTraversal,h,null,"replace"),(0,u.completeTraverseNavigation)(e,c,i,y.node,y.route,f))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},86720,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hmrRefreshReducer",{enumerable:!0,get:function(){return u}});let n=e.r(69845),a=e.r(95871);function u(e){return(0,n.refreshDynamicData)(e,a.FreshnessPolicy.HMRRefresh)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92838,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UnrecognizedActionError:function(){return u},unstable_isUnrecognizedActionError:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});class u extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function l(e){return!!(e&&"object"==typeof e&&e instanceof u)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},27801,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"assignLocation",{enumerable:!0,get:function(){return a}});let n=e.r(5550);function a(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,n.addBasePath)(e),t.href)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},34457,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},62266,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorageInstance}});let n=e.r(34457)},24063,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getRedirectError:function(){return o},getRedirectStatusCodeFromError:function(){return h},getRedirectTypeFromError:function(){return d},getURLFromRedirectError:function(){return f},permanentRedirect:function(){return c},redirect:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(76963),l=e.r(68391),i="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"pathHasPrefix",{enumerable:!0,get:function(){return a}});let n=e.r(72463);function a(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},52817,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hasBasePath",{enumerable:!0,get:function(){return a}});let n=e.r(39584);function a(e){return(0,n.pathHasPrefix)(e,"/mystichearts/demo")}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},87250,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeBasePath",{enumerable:!0,get:function(){return a}}),e.r(52817);let n="/mystichearts/demo";function a(e){return 0===n.length||(e=e.slice(n.length)).startsWith("/")||(e=`/${e}`),e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39747,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={extractInfoFromServerReferenceId:function(){return u},omitUnusedArgs:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function u(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}function l(e,t){let r=Array(e.length),n=0;for(let a=0;a=6&&t.hasRestArgs)&&(r[a]=e[a],n=a+1);return r.length=n,r}},39146,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ActionDidNotRevalidate:function(){return u},ActionDidRevalidateDynamicOnly:function(){return i},ActionDidRevalidateStaticAndDynamic:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=0,l=1,i=2},45794,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverActionReducer",{enumerable:!0,get:function(){return D}});let a=e.r(32120),u=e.r(92245),l=e.r(21768),i=e.r(92838),o=e.r(35326),s=e.r(88540),c=e.r(27801),f=e.r(51191),d=e.r(84356),h=e.r(50590),p=e.r(24063),y=e.r(87250),g=e.r(52817),_=e.r(39747),m=e.r(20896),E=e.r(77709),v=e.r(43369),R=e.r(32992),b=e.r(63416),S=e.r(60355),P=e.r(96167),O=e.r(39146),T=e.r(57630),w=e.r(95871),A=e.r(87288),j=e.r(79027),N=o.createFromFetch;async function C(e,t,{actionId:r,actionArgs:s}){let f,d,p,y,g=(0,o.createTemporaryReferenceSet)(),m=(0,_.extractInfoFromServerReferenceId)(r),E=(0,_.omitUnusedArgs)(s,m),S=await (0,o.encodeReply)(E,{temporaryReferences:g}),P={Accept:l.RSC_CONTENT_TYPE_HEADER,[l.ACTION_HEADER]:r,[l.NEXT_ROUTER_STATE_TREE_HEADER]:(0,h.prepareFlightRouterStateForRequest)(e.tree)},T=(0,v.getDeploymentId)();T&&(P["x-deployment-id"]=T),t&&(P[l.NEXT_URL]=t);let w=await fetch(e.canonicalUrl,{method:"POST",headers:P,body:S});if("1"===w.headers.get(l.NEXT_ACTION_NOT_FOUND_HEADER))throw Object.defineProperty(new i.UnrecognizedActionError(`Server Action "${r}" was not found on the server. +Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E715",enumerable:!1,configurable:!0});let j=w.headers.get("x-action-redirect"),[D,M]=j?.split(";")||[];switch(M){case"push":f="push";break;case"replace":f="replace";break;default:f=void 0}let I=!!w.headers.get(l.NEXT_IS_PRERENDER_HEADER),x=O.ActionDidNotRevalidate;try{let e=w.headers.get("x-action-revalidated");if(e){let t=JSON.parse(e);(t===O.ActionDidRevalidateStaticAndDynamic||t===O.ActionDidRevalidateDynamicOnly)&&(x=t)}}catch{}let F=D?(0,c.assignLocation)(D,new URL(e.canonicalUrl,window.location.href)):void 0,U=w.headers.get("content-type"),k=!!(U&&U.startsWith(l.RSC_CONTENT_TYPE_HEADER));if(!k&&!F)throw Object.defineProperty(Error(w.status>=400&&"text/plain"===U?await w.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});let L=!1;if(k){let e=F?(0,A.processFetch)(w).then(({response:e})=>e):Promise.resolve(w),t=await N(e,{callServer:a.callServer,findSourceMapURL:u.findSourceMapURL,temporaryReferences:g,debugChannel:n&&n(P)});d=F?void 0:t.a,L=t.i;let r=w.headers.get(b.NEXT_NAV_DEPLOYMENT_ID_HEADER)??t.b;if(void 0!==r&&r!==(0,R.getNavigationBuildId)());else{let e=(0,h.normalizeFlightData)(t.f);""!==e&&(p=e,y=t.q)}}else d=void 0,p=void 0,y=void 0;return{actionResult:d,actionFlightData:p,actionFlightDataRenderedSearch:y,redirectLocation:F,redirectType:f,revalidationKind:x,isPrerender:I,couldBeIntercepted:L}}function D(e,t){let{resolve:r,reject:n}=t,a=(e.previousNextUrl||e.nextUrl)&&(0,d.hasInterceptionRouteInCurrentTree)(e.tree)?e.previousNextUrl||e.nextUrl:null;return C(e,a,t).then(async({revalidationKind:u,actionResult:l,actionFlightData:i,actionFlightDataRenderedSearch:o,redirectLocation:c,redirectType:d,isPrerender:h,couldBeIntercepted:p})=>{u!==O.ActionDidNotRevalidate&&((0,j.invalidateBfCache)(),t.didRevalidate=!0,u===O.ActionDidRevalidateStaticAndDynamic&&(0,m.invalidateEntirePrefetchCache)(a,e.tree),(0,E.startRevalidationCooldown)());let _=d||"push";if(void 0!==c)if((0,T.isExternalURL)(c))return n(M(c.href,_)),(0,S.completeHardNavigation)(e,c,_);else{let e=(0,f.createHrefFromUrl)(c,!1);n(M((0,g.hasBasePath)(e)?(0,y.removeBasePath)(e):e,_))}else r(l);if(void 0===c&&u===O.ActionDidNotRevalidate&&void 0===i)return e;if(void 0===i&&void 0!==c)return(0,S.completeHardNavigation)(e,c,_);if("string"==typeof i)return(0,S.completeHardNavigation)(e,new URL(i,location.origin),_);let v=new URL(e.canonicalUrl,location.origin),R=e.renderedSearch,b=void 0!==c?c:v,A=e.tree,N=s.ScrollBehavior.Default,C=u===O.ActionDidNotRevalidate?w.FreshnessPolicy.Default:w.FreshnessPolicy.RefreshAll;if(void 0!==i&&void 0!==o){let t=(0,f.createHrefFromUrl)(b),r=Date.now(),n=(0,S.convertServerPatchToFullTree)(r,A,i,o,j.UnknownDynamicStaleTime),u=n.metadataVaryPath;return null!==u&&(0,P.discoverKnownRoute)(r,b.pathname,a,null,n.routeTree,u,p,t,h,!1),(0,S.navigateToKnownRoute)(r,e,b,t,n,v,R,e.cache,A,C,a,N,_,null,null)}return(0,S.navigate)(e,b,v,R,e.cache,A,a,C,N,_)},t=>(n(t),e))}function M(e,t){let r=(0,p.getRedirectError)(e,t);return r.handled=!0,r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},4924,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"reducer",{enumerable:!0,get:function(){return c}});let n=e.r(88540),a=e.r(54069),u=e.r(91668),l=e.r(73790),i=e.r(69845),o=e.r(86720),s=e.r(45794),c="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"prefetch",{enumerable:!0,get:function(){return i}});let n=e.r(57630),a=e.r(77048),u=e.r(77709),l=e.r(9396);function i(e,t,r,i,o){let s=(0,n.createPrefetchURL)(e);if(null===s)return;let c=(0,a.createCacheKey)(s.href,t);(0,u.schedulePrefetchTask)(c,r,i,l.PrefetchPriority.Default,o)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},99781,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createMutableActionQueue:function(){return E},dispatchNavigateAction:function(){return b},dispatchTraverseAction:function(){return S},getCurrentAppRouterState:function(){return v},publicAppRouterInstance:function(){return P}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(88540),l=e.r(4924),i=e.r(71645),o=e.r(64245),s=e.r(9396),c=e.r(1411);e.r(60355);let f=e.r(41538);e.r(96167),e.r(95871);let d=e.r(5550),h=e.r(57630),p=e.r(91949),y=e.r(48277);function g(e,t){null!==e.pending?(e.pending=e.pending.next,null!==e.pending&&_({actionQueue:e,action:e.pending,setState:t})):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:u.ACTION_REFRESH},t))}async function _({actionQueue:e,action:t,setState:r}){let n=e.state;e.pending=t;let a=t.payload,l=e.action(n,a);function i(n){if(t.discarded){t.payload.type===u.ACTION_SERVER_ACTION&&t.payload.didRevalidate&&(e.needsRefresh=!0),g(e,r);return}e.state=n,g(e,r),t.resolve(n)}(0,o.isThenable)(l)?l.then(i,n=>{g(e,r),t.reject(n)}):i(l)}let m=null;function E(e,t){let r={state:e,dispatch:(e,t)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==u.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,i.startTransition)(()=>{r(e)})}let a={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=a,_({actionQueue:e,action:a,setState:r})):t.type===u.ACTION_NAVIGATE||t.type===u.ACTION_RESTORE?(e.pending.discarded=!0,a.next=e.pending.next,_({actionQueue:e,action:a,setState:r})):(null!==e.last&&(e.last.next=a),e.last=a)})(r,e,t),action:async(e,t)=>(0,l.reducer)(e,t),pending:null,last:null,onRouterTransitionStart:null!==t&&"function"==typeof t.onRouterTransitionStart?t.onRouterTransitionStart:null};if("u">typeof window){if(null!==m)throw Object.defineProperty(Error("Internal Next.js Error: createMutableActionQueue was called more than once"),"__NEXT_ERROR_CODE",{value:"E624",enumerable:!1,configurable:!0});m=r}return r}function v(){return null!==m?m.state:null}function R(){return null!==m?m.onRouterTransitionStart:null}function b(e,t,r,n,a){if(a)for(let e of a)(0,i.addTransitionType)(e);let l=new URL((0,d.addBasePath)(e),location.href);(0,p.setLinkForCurrentNavigation)(n);let o=R();null!==o&&o(e,t),(0,f.dispatchAppRouterAction)({type:u.ACTION_NAVIGATE,url:l,isExternalUrl:(0,h.isExternalURL)(l),locationSearch:location.search,scrollBehavior:r,navigateType:t})}function S(e,t){let r=R();null!==r&&r(e,"traverse"),(0,f.dispatchAppRouterAction)({type:u.ACTION_RESTORE,url:new URL(e),historyState:t})}let P={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let r;if((0,y.isJavaScriptURLString)(e))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});let n=function(){if(null===m)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});return m}();switch(t?.kind??u.PrefetchKind.AUTO){case u.PrefetchKind.AUTO:r=s.FetchStrategy.PPR;break;case u.PrefetchKind.FULL:r=s.FetchStrategy.Full;break;default:r=s.FetchStrategy.PPR}(0,c.prefetch)(e,n.state.nextUrl,n.state.tree,r,t?.onInvalidate??null)},replace:(e,t)=>{if((0,y.isJavaScriptURLString)(e))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});(0,i.startTransition)(()=>{b(e,"replace",t?.scroll===!1?u.ScrollBehavior.NoScroll:u.ScrollBehavior.Default,null,t?.transitionTypes)})},push:(e,t)=>{if((0,y.isJavaScriptURLString)(e))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});(0,i.startTransition)(()=>{b(e,"push",t?.scroll===!1?u.ScrollBehavior.NoScroll:u.ScrollBehavior.Default,null,t?.transitionTypes)})},refresh:()=>{(0,i.startTransition)(()=>{(0,f.dispatchAppRouterAction)({type:u.ACTION_REFRESH})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}};"u">typeof window&&window.next&&(window.next.router=P),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},13957,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ServerInsertedHTMLContext:function(){return l},useServerInsertedHTML:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809)._(e.r(71645)),l=u.default.createContext(null);function i(e){let t=(0,u.useContext)(l);t&&t(e)}},22783,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"notFound",{enumerable:!0,get:function(){return u}});let n=e.r(54394),a=`${n.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;function u(){let e=Object.defineProperty(Error(a),"__NEXT_ERROR_CODE",{value:"E1041",enumerable:!1,configurable:!0});throw e.digest=a,e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},79854,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"forbidden",{enumerable:!0,get:function(){return n}}),e.r(54394).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},22683,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unauthorized",{enumerable:!0,get:function(){return n}}),e.r(54394).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15507,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,a.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=e.r(32061),a=e.r(65713);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63138,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={delayUntilRuntimeStage:function(){return p},getRuntimeStage:function(){return h},isHangingPromiseRejectionError:function(){return l},makeDevtoolsIOAwarePromise:function(){return d},makeHangingPromise:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(42852);function l(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===i}let i="HANGING_PROMISE_REJECTION";class o extends Error{constructor(e,t){super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`),this.route=e,this.expression=t,this.digest=i}}let s=new WeakMap;function c(e,t,r){if(e.aborted)return Promise.reject(new o(t,r));{let n=new Promise((n,a)=>{let u=a.bind(null,new o(t,r)),l=s.get(e);if(l)l.push(u);else{let t=[u];s.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e{setTimeout(()=>{t(e)},0)})}function h(e){return e.currentStage===u.RenderStage.EarlyStatic||e.currentStage===u.RenderStage.EarlyRuntime?u.RenderStage.EarlyRuntime:u.RenderStage.Runtime}function p(e,t){let{stagedRendering:r}=e;return r?r.waitForStage(h(r)).then(()=>t):t}},67287,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isPostpone",{enumerable:!0,get:function(){return a}});let n=Symbol.for("react.postpone");function a(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}},76353,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DynamicServerError:function(){return l},isDynamicServerError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="DYNAMIC_SERVER_USAGE";class l extends Error{constructor(e){super(`Dynamic server usage: ${e}`),this.description=e,this.digest=u}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},43248,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={StaticGenBailoutError:function(){return l},isStaticGenBailoutError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="NEXT_STATIC_GEN_BAILOUT";class l extends Error{constructor(...e){super(...e),this.code=u}}function i(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54839,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={METADATA_BOUNDARY_NAME:function(){return u},OUTLET_BOUNDARY_NAME:function(){return i},ROOT_LAYOUT_BOUNDARY_NAME:function(){return o},VIEWPORT_BOUNDARY_NAME:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u="__next_metadata_boundary__",l="__next_viewport_boundary__",i="__next_outlet_boundary__",o="__next_root_layout_boundary__"},29419,(e,t,r)=>{"use strict";var n=e.i(47167);Object.defineProperty(r,"__esModule",{value:!0});var a={atLeastOneTask:function(){return o},scheduleImmediate:function(){return i},scheduleOnNextTick:function(){return l},waitAtLeastOneReactRenderTask:function(){return s}};for(var u in a)Object.defineProperty(r,u,{enumerable:!0,get:a[u]});let l=e=>{Promise.resolve().then(()=>{n.default.nextTick(e)})},i=e=>{setImmediate(e)};function o(){return new Promise(e=>i(e))}function s(){return new Promise(e=>setImmediate(e))}},2897,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"INSTANT_VALIDATION_BOUNDARY_NAME",{enumerable:!0,get:function(){return n}});let n="__next_instant_validation_boundary__"},67673,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,a,u,l={DynamicHoleKind:function(){return J},Postpone:function(){return j},PreludeState:function(){return eu},abortAndThrowOnSynchronousRequestDataAccess:function(){return A},abortOnSynchronousPlatformIOAccess:function(){return w},accessedDynamicData:function(){return U},annotateDynamicAccess:function(){return $},consumeDynamicAccess:function(){return k},createDynamicTrackingState:function(){return v},createDynamicValidationState:function(){return R},createHangingInputAbortSignal:function(){return B},createInstantValidationState:function(){return Z},createRenderInBrowserAbortSignal:function(){return H},formatDynamicAPIAccesses:function(){return L},getFirstDynamicReason:function(){return b},getNavigationDisallowedDynamicReasons:function(){return es},getStaticShellDisallowedDynamicReasons:function(){return eo},isDynamicPostpone:function(){return D},isPrerenderInterruptedError:function(){return F},logDisallowedDynamicError:function(){return el},markCurrentScopeAsDynamic:function(){return S},postponeWithTracking:function(){return N},throwIfDisallowedDynamic:function(){return ei},throwToInterruptStaticGeneration:function(){return P},trackAllowedDynamicAccess:function(){return Q},trackDynamicDataInDynamicRender:function(){return O},trackDynamicHoleInNavigation:function(){return ee},trackDynamicHoleInRuntimeShell:function(){return er},trackDynamicHoleInStaticShell:function(){return en},trackThrownErrorInNavigation:function(){return et},useDynamicRouteParams:function(){return X},useDynamicSearchParams:function(){return V}};for(var i in l)Object.defineProperty(r,i,{enumerable:!0,get:l[i]});let o=(n=e.r(71645))&&n.__esModule?n:{default:n},s=e.r(76353),c=e.r(43248),f=e.r(62141),d=e.r(63599),h=e.r(63138),p=e.r(54839),y=e.r(29419),g=e.r(32061),_=e.r(12718),m=e.r(2897),E="function"==typeof o.default.unstable_postpone;function v(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function R(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function b(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function S(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":case"private-cache":return}if(!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return N(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new s.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}function P(e,t,r){let n=Object.defineProperty(new s.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function O(e){switch(e.type){case"cache":case"unstable-cache":case"private-cache":return}}function T(e,t,r){let n=x(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let a=r.dynamicTracking;a&&a.dynamicAccesses.push({stack:a.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function w(e,t,r,n){let a=n.dynamicTracking;T(e,t,n),a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=r)}function A(e,t,r,n){if(!1===n.controller.signal.aborted){T(e,t,n);let a=n.dynamicTracking;a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=r)}throw x(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}function j({reason:e,route:t}){let r=f.workUnitAsyncStorage.getStore();N(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function N(e,t,r){(function(){if(!E)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})})(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),o.default.unstable_postpone(C(e,t))}function C(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function D(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&M(e.message)}function M(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===M(C("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let I="NEXT_PRERENDER_INTERRUPTED";function x(e){let t=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=I,t}function F(e){return"object"==typeof e&&null!==e&&e.digest===I&&"name"in e&&"message"in e&&e instanceof Error}function U(e){return e.length>0}function k(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function L(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: +${t}`))}function H(){let e=new AbortController;return e.abort(Object.defineProperty(new g.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function B(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else if("prerender-runtime"===e.type&&e.stagedRendering){let{stagedRendering:r}=e;r.waitForStage((0,h.getRuntimeStage)(r)).then(()=>(0,y.scheduleOnNextTick)(()=>t.abort()))}else(0,y.scheduleOnNextTick)(()=>t.abort());return t.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function $(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function X(e){let t=d.workAsyncStorage.getStore(),r=f.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&o.default.use((0,h.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return N(t.route,e,r.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function V(e){let t=d.workAsyncStorage.getStore(),r=f.workUnitAsyncStorage.getStore();if(t)switch(!r&&(0,f.throwForMissingRequestStore)(e),r.type){case"validation-client":case"request":return;case"prerender-client":o.default.use((0,h.makeHangingPromise)(r.renderSignal,t.route,e));break;case"prerender-legacy":case"prerender-ppr":if(t.forceStatic)return;throw Object.defineProperty(new g.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new _.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let G=/\n\s+at Suspense \(\)/,K=RegExp(`\\n\\s+at Suspense \\(\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(\\))[\\s\\S])*?\\n\\s+at ${p.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),Y=RegExp(`\\n\\s+at ${p.METADATA_BOUNDARY_NAME}[\\n\\s]`),q=RegExp(`\\n\\s+at ${p.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),W=RegExp(`\\n\\s+at ${p.OUTLET_BOUNDARY_NAME}[\\n\\s]`),z=RegExp(`\\n\\s+at ${m.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`);function Q(e,t,r,n){if(!W.test(t)){if(Y.test(t)){r.hasDynamicMetadata=!0;return}if(q.test(t)){r.hasDynamicViewport=!0;return}if(K.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(G.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data was accessed outside of . This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1079",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(a)}}}var J=((a={})[a.Runtime=1]="Runtime",a[a.Dynamic=2]="Dynamic",a);function Z(e){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],createInstantStack:e}}function ee(e,t,r,n,a,u){if(W.test(t))return;if(Y.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateMetadata` or you have file-based metadata such as icons that depend on dynamic params segments.":"Uncached data or `connection()` was accessed inside `generateMetadata`."} Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1076",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicMetadata=n;return}if(q.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateViewport`.":"Uncached data or `connection()` was accessed inside `generateViewport`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1086",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(n);return}let l=z.exec(t);if(l){let e=G.exec(t);if(e&&e.index`.":"Uncached data or `connection()` was accessed outside of ``."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1078",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(i)}function et(e,t,r,n){let a=z.exec(n);if(a){let u=G.exec(n);if(u&&u.index\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1084",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(a)}function en(e,t,r,n){if(!W.test(t)){if(Y.test(t)){r.dynamicMetadata=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1085",enumerable:!1,configurable:!0}),t,null);return}if(q.test(t)){let n=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1081",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(n);return}if(K.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(G.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let a=ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1083",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(a)}}}function ea(e,t,r){return null!==r&&(e.cause=r()),e.stack=e.name+": "+e.message+t,e}var eu=((u={})[u.Full=0]="Full",u[u.Empty=1]="Empty",u[u.Errored=2]="Errored",u);function el(e,t){console.error(t),console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following: + - Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error. + - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function ei(e,t,r,n){if(n.syncDynamicErrorWithStack)throw el(e,n.syncDynamicErrorWithStack),new c.StaticGenBailoutError;if(0!==t){if(r.hasSuspenseAboveBody)return;let n=r.dynamicErrors;if(n.length>0){for(let t=0;t0)return n;if(1===t)return[Object.defineProperty(new _.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(!1===r.hasAllowedDynamic&&0===r.dynamicErrors.length&&r.dynamicMetadata)return[r.dynamicMetadata];return[]}function es(e,t,r,n,a){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:u}=r;if(u.length>0)return u;if(a.renderedIds.size0)return n;if(1===t)return r.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new _.InvariantError(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})]}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}return[]}},91414,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,l.isNextRouterError)(t)||(0,u.isBailoutToCSRError)(t)||(0,o.isDynamicServerError)(t)||(0,i.isDynamicPostpone)(t)||(0,a.isPostpone)(t)||(0,n.isHangingPromiseRejectionError)(t)||(0,i.isPrerenderInterruptedError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=e.r(63138),a=e.r(67287),u=e.r(32061),l=e.r(65713),i=e.r(67673),o=e.r(76353);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},90508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ReadonlyURLSearchParams:function(){return u.ReadonlyURLSearchParams},RedirectType:function(){return d},forbidden:function(){return o.forbidden},notFound:function(){return i.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},unauthorized:function(){return s.unauthorized},unstable_isUnrecognizedActionError:function(){return f},unstable_rethrow:function(){return c.unstable_rethrow}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(3680),l=e.r(24063),i=e.r(22783),o=e.r(79854),s=e.r(22683),c=e.r(90508);function f(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}let d={push:"push",replace:"replace"};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},76562,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return f.RedirectType},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},forbidden:function(){return f.forbidden},notFound:function(){return f.notFound},permanentRedirect:function(){return f.permanentRedirect},redirect:function(){return f.redirect},unauthorized:function(){return f.unauthorized},unstable_isUnrecognizedActionError:function(){return c.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return f.unstable_rethrow},useParams:function(){return v},usePathname:function(){return m},useRouter:function(){return E},useSearchParams:function(){return _},useSelectedLayoutSegment:function(){return b},useSelectedLayoutSegments:function(){return R},useServerInsertedHTML:function(){return s.useServerInsertedHTML}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809)._(e.r(71645)),l=e.r(8372),i=e.r(61994),o=e.r(13258),s=e.r(13957),c=e.r(92838),f=e.r(92805),d="u"e?new i.ReadonlyURLSearchParams(e):null,[e])}function m(){return d?.("usePathname()"),(0,u.useContext)(i.PathnameContext)}function E(){let e=(0,u.useContext)(l.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function v(){return d?.("useParams()"),(0,u.useContext)(i.PathParamsContext)}function R(e="children"){d?.("useSelectedLayoutSegments()");let t=(0,u.useContext)(l.LayoutRouterContext);return t?(0,o.getSelectedLayoutSegmentPath)(t.parentTree,e):null}function b(e="children"){d?.("useSelectedLayoutSegment()"),(0,u.useContext)(i.NavigationPromisesContext);let t=R(e);return(0,o.computeSelectedLayoutSegment)(t,e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},58442,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RedirectBoundary:function(){return h},RedirectErrorBoundary:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(90809),l=e.r(43476),i=u._(e.r(71645)),o=e.r(76562),s=e.r(24063),c=e.r(68391);function f({redirect:e,reset:t,redirectType:r}){let n=(0,o.useRouter)();return(0,i.useEffect)(()=>{i.default.startTransition(()=>{"push"===r?n.push(e,{}):n.replace(e,{}),t()})},[e,r,t,n]),null}class d extends i.default.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if((0,c.isRedirectError)(e)){let t=(0,s.getURLFromRedirectError)(e),r=(0,s.getRedirectTypeFromError)(e);return"handled"in e?{redirect:null,redirectType:null}:{redirect:t,redirectType:r}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,l.jsx)(f,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}}function h({children:e}){let t=(0,o.useRouter)();return(0,l.jsx)(d,{router:t,children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},70725,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRouterCacheKey",{enumerable:!0,get:function(){return a}});let n=e.r(13258);function a(e,t=!1){return Array.isArray(e)?`${e[0]}|${e[1]}|${e[2]}`:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},1244,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},97367,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={MetadataBoundary:function(){return i},OutletBoundary:function(){return s},RootLayoutBoundary:function(){return c},ViewportBoundary:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let u=e.r(54839),l={[u.METADATA_BOUNDARY_NAME]:function({children:e}){return e},[u.VIEWPORT_BOUNDARY_NAME]:function({children:e}){return e},[u.OUTLET_BOUNDARY_NAME]:function({children:e}){return e},[u.ROOT_LAYOUT_BOUNDARY_NAME]:function({children:e}){return e}},i=l[u.METADATA_BOUNDARY_NAME.slice(0)],o=l[u.VIEWPORT_BOUNDARY_NAME.slice(0)],s=l[u.OUTLET_BOUNDARY_NAME.slice(0)],c=l[u.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)]}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/3ll07n217cgxf.js b/web/mystichearts/demo/_next/static/chunks/3ll07n217cgxf.js new file mode 100644 index 00000000..7e306dc5 --- /dev/null +++ b/web/mystichearts/demo/_next/static/chunks/3ll07n217cgxf.js @@ -0,0 +1,31 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,43369,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var o={getAssetToken:function(){return a},getAssetTokenQuery:function(){return c},getDeploymentId:function(){return u},getDeploymentIdQuery:function(){return s}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});function u(){return n}function s(e=!1){let t=n;return t?`${e?"&":"?"}dpl=${t}`:""}function a(){return!1}function c(e=!1){return""}"u">typeof window?(n=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId):n=void 0},18800,(e,t,r)=>{"use strict";var n=e.r(71645);function o(e){var t="https://react.dev/errors/"+e;if(1{"use strict";!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(18800)},90809,(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}r._=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var s=i?Object.getOwnPropertyDescriptor(e,u):null;s&&(s.get||s.set)?Object.defineProperty(o,u,s):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}},35451,(e,t,r)=>{var n={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var a=[],c=!1,l=-1;function f(){c&&n&&(c=!1,n.length?a=n.concat(a):l=-1,a.length&&d())}function d(){if(!c){var e=s(f);c=!0;for(var t=a.length;t;){for(n=a,a=[];++l1)for(var r=1;r{"use strict";var n,o;t.exports=(null==(n=e.g.process)?void 0:n.env)&&"object"==typeof(null==(o=e.g.process)?void 0:o.env)?e.g.process:e.r(35451)},55682,(e,t,r)=>{"use strict";r._=function(e){return e&&e.__esModule?e:{default:e}}},45689,(e,t,r)=>{"use strict";var n=Symbol.for("react.transitional.element");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return{$$typeof:n,type:e,key:o,ref:void 0!==(t=r.ref)?t:null,props:r}}r.Fragment=Symbol.for("react.fragment"),r.jsx=o,r.jsxs=o},43476,(e,t,r)=>{"use strict";t.exports=e.r(45689)},50740,(e,t,r)=>{"use strict";var n=e.i(47167),o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),h=Symbol.for("react.view_transition"),b=Symbol.iterator,v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function x(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||v}function S(){}function O(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||v}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=x.prototype;var j=O.prototype=new S;j.constructor=O,m(j,x.prototype),j.isPureReactComponent=!0;var E=Array.isArray;function T(){}var w={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function C(e,t,r){var n=r.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:r}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function A(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function H(e,t,r){if(null==e)return e;var n=[],u=0;return!function e(t,r,n,u,s){var a,c,l,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case i:d=!0;break;case y:return e((d=t._init)(t._payload),r,n,u,s)}}if(d)return s=s(t),d=""===u?"."+A(t,0):u,E(s)?(n="",null!=d&&(n=d.replace(k,"$&/")+"/"),e(s,r,n,"",function(e){return e})):null!=s&&(P(s)&&(a=s,c=n+(null==s.key||t&&t.key===s.key?"":(""+s.key).replace(k,"$&/")+"/")+d,s=C(a.type,c,a.props)),r.push(s)),1;d=0;var p=""===u?".":u+":";if(E(t))for(var g=0;g{"use strict";t.exports=e.r(50740)},90317,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return c},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class u{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}static bind(e){return e}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return s?new s:new u}function c(e){return s?s.bind(e):u.bind(e)}function l(){return s?s.snapshot():function(e,...t){return e(...t)}}},42344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},63599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(42344)},12354,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"handleISRError",{enumerable:!0,get:function(){return o}});let n="u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=e.r(55682)._(e.r(71645)).default.createContext({})},18576,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={WarningIcon:function(){return a},errorStyles:function(){return u},errorThemeCss:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});e.r(55682);let i=e.r(43476);e.r(71645);let u={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},s=` +:root { + --next-error-bg: #fff; + --next-error-text: #171717; + --next-error-title: #171717; + --next-error-message: #171717; + --next-error-digest: #666666; + --next-error-btn-text: #fff; + --next-error-btn-bg: #171717; + --next-error-btn-border: none; + --next-error-btn-secondary-text: #171717; + --next-error-btn-secondary-bg: transparent; + --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08); +} +@media (prefers-color-scheme: dark) { + :root { + --next-error-bg: #0a0a0a; + --next-error-text: #ededed; + --next-error-title: #ededed; + --next-error-message: #ededed; + --next-error-digest: #a0a0a0; + --next-error-btn-text: #0a0a0a; + --next-error-btn-bg: #ededed; + --next-error-btn-border: none; + --next-error-btn-secondary-text: #ededed; + --next-error-btn-secondary-bg: transparent; + --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14); + } +} +body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); } +`.replace(/\n\s*/g,"");function a(){return(0,i.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:u.icon,children:(0,i.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68027,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}}),e.r(55682);let n=e.r(43476);e.r(71645);let o=e.r(12354),i=e.r(18576),u=function({error:e}){let t=e?.digest,r=!!t;return(0,o.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:i.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:i.errorStyles.container,children:(0,n.jsxs)("div",{style:i.errorStyles.card,children:[(0,n.jsx)(i.WarningIcon,{}),(0,n.jsx)("h1",{style:i.errorStyles.title,children:"This page couldn’t load"}),(0,n.jsx)("p",{style:i.errorStyles.message,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:i.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:i.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:i.errorStyles.button,children:"Reload"})}),!r&&(0,n.jsx)("button",{type:"button",style:i.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,n.jsxs)("p",{style:i.errorStyles.digestFooter,children:["ERROR ",t]})]})]})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}]); \ No newline at end of file diff --git a/web/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css b/web/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css deleted file mode 100644 index 3e9c870c..00000000 --- a/web/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css +++ /dev/null @@ -1,3 +0,0 @@ -@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/2c55a0e60120577a-s.0-dom-5bn10r2.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/9c72aa0f40e4eef8-s.1y4-pdgsjb-pw.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/ad66f9afd8947f86-s.3lvt2whj97whp.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/5476f68d60460930-s.2uwcyprjm3xu3.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/2bbe8d2671613f1f-s.0k62hbripvv8p.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/1bffadaabf893a1e-s.3-6t-g6q0vh0a.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter Fallback;src:local(Arial);ascent-override:90.44%;descent-override:22.52%;line-gap-override:0.0%;size-adjust:107.12%}.inter_fd091ad6-module__giF-bG__className{font-family:Inter,Inter Fallback;font-style:normal}.inter_fd091ad6-module__giF-bG__variable{--font-sans:"Inter", "Inter Fallback"} -@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/9cc5c0547f229dea-s.00y8kskkn0hyx.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/b0947914c9718a1e-s.1xjn85gt7t6qs.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/d0b60be57f16ee32-s.1xtu7gopqv2u0.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/1f9e983605289f29-s.3aak_kra40y8r.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:400;font-display:swap;src:url(../media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/9cc5c0547f229dea-s.00y8kskkn0hyx.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/b0947914c9718a1e-s.1xjn85gt7t6qs.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/d0b60be57f16ee32-s.1xtu7gopqv2u0.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/1f9e983605289f29-s.3aak_kra40y8r.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(../media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/9cc5c0547f229dea-s.00y8kskkn0hyx.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/b0947914c9718a1e-s.1xjn85gt7t6qs.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/d0b60be57f16ee32-s.1xtu7gopqv2u0.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/1f9e983605289f29-s.3aak_kra40y8r.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(../media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/9cc5c0547f229dea-s.00y8kskkn0hyx.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/b0947914c9718a1e-s.1xjn85gt7t6qs.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/d0b60be57f16ee32-s.1xtu7gopqv2u0.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/1f9e983605289f29-s.3aak_kra40y8r.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(../media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cormorant Garamond Fallback;src:local(Times New Roman);ascent-override:95.27%;descent-override:29.59%;line-gap-override:0.0%;size-adjust:96.98%}.cormorant_garamond_eff11090-module__P8UEha__className{font-family:Cormorant Garamond,Cormorant Garamond Fallback;font-style:normal}.cormorant_garamond_eff11090-module__P8UEha__variable{--font-display:"Cormorant Garamond", "Cormorant Garamond Fallback"} -*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--font-sans), Inter, system-ui, sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-6{margin-bottom:1.5rem}.mt-8{margin-top:2rem}.flex{display:flex}.hidden{display:none}.h-12{height:3rem}.min-h-screen{min-height:100vh}.w-12{width:3rem}.w-full{width:100%}.max-w-3xl{max-width:48rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-white\/25{border-color:#ffffff40}.bg-ink\/20{background-color:#15130f33}.bg-linen{--tw-bg-opacity:1;background-color:rgb(251 247 238/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.font-semibold{font-weight:600}.tracking-\[0\.18em\]{letter-spacing:.18em}.text-ink{--tw-text-opacity:1;color:rgb(21 19 15/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.shadow-soft{--tw-shadow:0 18px 60px #4b3c2a29;--tw-shadow-colored:0 18px 60px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur:blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--selection:#d9a44159;background:#fbf7ee}*{box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:var(--font-sans), system-ui, sans-serif;background:radial-gradient(circle at 18% 10%,#d9a44124,#0000 28rem),radial-gradient(circle at 85% 4%,#8f3d451f,#0000 28rem),#fbf7ee;margin:0}::selection{background:var(--selection)}a{color:inherit;text-decoration:none}.video-plane{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;display:block}.hero-section{isolation:isolate;background:#15130f;place-items:center;min-height:100svh;display:grid;position:relative;overflow:hidden}.hero-video-wrap,.hero-shade,.hero-content,.scroll-cue{position:absolute;inset:0}.hero-shade{z-index:1;background:linear-gradient(90deg,#0d0a07c2,#0d0a0740 48%,#0d0a0794),linear-gradient(#0d0a077a,#0d0a0714 42%,#0d0a07ad)}.hero-video-wrap{z-index:0}.hero-content{z-index:2;align-items:center;padding-top:5rem;display:flex}.hero-title,.story-title{max-width:980px;font-family:var(--font-display), Georgia, serif;letter-spacing:0;font-size:clamp(2.6rem,5.4vw,5.6rem);font-weight:500;line-height:.98}.hero-title{color:#fff;text-shadow:0 10px 34px #00000073}.hero-title span{color:#ffffffc7;font-style:italic;font-weight:400;display:inline}.hero-title-backdrop{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:linear-gradient(#100c087a,#100c0833);border-radius:.18em;margin-bottom:.18em;margin-left:-.14em;margin-right:-.08em;padding:.04em .18em .08em;display:inline-block;box-shadow:0 .3em 1.2em #00000038}.hero-kicker{color:#ffffffe6;letter-spacing:.16em;text-transform:uppercase;border-bottom:1px solid #ffffff3d;align-items:center;gap:.7rem;margin-bottom:1.2rem;padding-bottom:.72rem;font-size:.82rem;display:inline-flex}.hero-kicker i{color:#ffffff9e;font-family:var(--font-display), Georgia, serif;letter-spacing:0;text-transform:none;font-size:1.05rem;font-style:italic}.hero-copy,.story-copy{color:#ffffffd1;max-width:640px;margin-top:1.5rem;font-size:clamp(.98rem,1.4vw,1.12rem);line-height:1.75}.hero-notes{flex-wrap:wrap;gap:.55rem;max-width:680px;margin-top:1.35rem;display:flex}.hero-notes span,.story-annotations span{color:#ffffffc7;letter-spacing:.1em;text-transform:uppercase;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffff14;border:1px solid #ffffff38;border-radius:999px;padding:.52rem .75rem;font-size:.76rem;font-weight:700}.story-copy{margin-left:auto;margin-right:auto}.btn,.nav-cta{border-radius:999px;justify-content:center;align-items:center;gap:.6rem;min-height:3rem;padding:.85rem 1.25rem;font-size:.94rem;font-weight:700;transition:transform .18s,border-color .18s,background-color .18s;display:inline-flex}.btn:hover,.nav-cta:hover{transform:translateY(-2px)}.btn-primary{color:#241b11;background:#f8e3a4;box-shadow:0 16px 44px #00000047}.btn-ghost{color:#fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffff1a;border:1px solid #ffffff57}.nav-cta{color:#fff;background:#ffffff1f;border:1px solid #ffffff3d;min-height:2.5rem;padding:.55rem .9rem}.scroll-cue{z-index:3;pointer-events:none;justify-content:center;align-items:flex-end;padding-bottom:2rem;display:flex}.scroll-cue span{background:linear-gradient(#0000,#ffffffbf,#0000);width:1px;height:4.5rem}.section-pad{padding:clamp(5rem,10vw,9rem) 0}.section-label{color:#8f3d45;letter-spacing:.2em;text-transform:uppercase;align-items:center;gap:.55rem;margin-bottom:1rem;font-size:.75rem;font-weight:800;display:inline-flex}.story-section .section-label,.gallery-section .section-label,.final-cta .section-label{color:#ffffffc7}.section-title{max-width:820px;font-family:var(--font-display), Georgia, serif;letter-spacing:0;font-size:clamp(2.5rem,7vw,6.4rem);font-weight:500;line-height:.9}.section-copy{color:#15130fad;max-width:720px;margin-top:1.35rem;font-size:clamp(1rem,1.7vw,1.16rem);line-height:1.8}.field-note-panel{background:linear-gradient(135deg,#ffffffb3,#f8e3a433),#ffffff85;border:1px solid #8f3d4529;border-radius:1.4rem;max-width:690px;margin-top:1.7rem;padding:1.15rem 1.25rem;box-shadow:0 18px 54px #543e2814}.field-note-panel span{color:#8f3d45;letter-spacing:.16em;text-transform:uppercase;font-size:.72rem;font-weight:800;display:block}.field-note-panel p{color:#15130fb8;font-family:var(--font-display), Georgia, serif;margin-top:.5rem;font-size:clamp(1.35rem,2.4vw,1.85rem);line-height:1.2}.offering-card{background:linear-gradient(135deg,#ffffffc7,#fffaef7a),#ffffff8f;border:1px solid #5f463724;border-radius:1.35rem;grid-template-columns:auto 1fr;gap:1rem;padding:1.15rem;display:grid;position:relative;overflow:hidden;box-shadow:0 16px 50px #543e2812}.offering-card:before{content:"";pointer-events:none;background:radial-gradient(circle at 94% 18%,#d9a4412e,#0000 11rem);position:absolute;inset:0}.offering-card h3{font-family:var(--font-display), Georgia, serif;margin:0;font-size:1.45rem;font-weight:600;line-height:1.05}.offering-card p{color:#15130fa3;margin:.32rem 0 0;line-height:1.65}.offering-card small{color:#8f3d45c7;letter-spacing:.12em;text-transform:uppercase;margin-top:.75rem;font-size:.72rem;font-weight:800;line-height:1.45;display:block}.offering-icon{color:#8f3d45;background:#efe0c4;border-radius:999px;place-items:center;width:2.8rem;height:2.8rem;display:grid}.cinema-frame{background:#15130f;border:1px solid #ffffffb3;border-radius:2rem;position:relative;overflow:hidden;box-shadow:0 26px 90px #3425173d}.cinema-frame:after,.gallery-tile:after{content:"";pointer-events:none;background:linear-gradient(#0000 45%,#0a0806b8);position:absolute;inset:0}.frame-caption{z-index:2;color:#fff;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#0a080657;border:1px solid #ffffff2e;border-radius:999px;justify-content:space-between;gap:1rem;padding:.72rem 1rem;font-size:.82rem;display:flex;position:absolute;bottom:1.1rem;left:1.1rem;right:1.1rem}.frame-caption span:last-child{color:#ffffffad}.frame-poem{z-index:2;color:#fff;max-width:min(24rem,100% - 2.2rem);position:absolute}.frame-poem-top{top:1.15rem;left:1.15rem}.frame-poem span{color:#ffffffad;letter-spacing:.16em;text-transform:uppercase;margin-bottom:.45rem;font-size:.72rem;font-weight:800;display:block}.frame-poem strong{font-family:var(--font-display), Georgia, serif;text-shadow:0 12px 36px #00000057;font-size:clamp(1.7rem,4vw,3.2rem);font-weight:500;line-height:.98;display:block}.story-section,.final-cta{isolation:isolate;background:#15130f;place-items:center;min-height:100svh;display:grid;position:relative;overflow:hidden}.story-video,.story-overlay,.final-cta>.video-plane,.final-cta-shade{position:absolute;inset:0}.story-video{z-index:0}.story-overlay,.final-cta-shade{z-index:1;background:radial-gradient(circle,#15130f33,#15130fd1),linear-gradient(#15130f33,#15130fc7)}.video-wordmark{pointer-events:none;z-index:-1;color:#ffffff0e;width:100vw;font-family:var(--font-display), Georgia, serif;letter-spacing:0;text-align:center;white-space:nowrap;font-size:clamp(4.5rem,13vw,12rem);font-style:italic;font-weight:400;line-height:.8;position:absolute;top:50%;left:50%;transform:translate(-50%,-58%)}.story-annotations{flex-wrap:wrap;justify-content:center;gap:.55rem;margin-top:2rem;display:flex}.process-header{gap:2rem;display:grid}.process-manifesto{color:#fff;background:#15130f;border-radius:1.8rem;align-self:end;padding:clamp(1.25rem,3vw,1.8rem);box-shadow:0 24px 70px #543e282e}.process-manifesto p{color:#ffffffbd;font-size:1rem;line-height:1.75}.process-manifesto dl{gap:.7rem;margin-top:1.35rem;display:grid}.process-manifesto div{border-top:1px solid #ffffff21;justify-content:space-between;gap:1rem;padding-top:.75rem;display:flex}.process-manifesto dt{color:#ffffff7a;letter-spacing:.13em;text-transform:uppercase;font-size:.72rem;font-weight:800}.process-manifesto dd{color:#ffffffe0;text-align:right}.timeline-grid{gap:1rem;margin-top:3.5rem;display:grid}.timeline-card{background:linear-gradient(160deg,#ffffffdb,#fff5e17a),#ffffff8f;border:1px solid #5f463721;border-radius:1.5rem;gap:.45rem;min-height:17rem;padding:clamp(1.15rem,3vw,1.7rem);display:grid;position:relative;overflow:hidden;box-shadow:0 14px 44px #543e2812}.timeline-card:after{content:"";background:#d9a4411a;border:1px solid #8f3d4524;border-radius:999px;width:9rem;height:9rem;position:absolute;bottom:-3.6rem;right:-3.4rem}.timeline-card span{color:#8f3d45;font-family:var(--font-display), Georgia, serif;opacity:.42;font-size:clamp(3rem,6vw,5.6rem);font-weight:400;line-height:.8}.timeline-card h3{font-family:var(--font-display), Georgia, serif;font-size:clamp(1.75rem,3vw,2.55rem);font-weight:600;line-height:1}.timeline-card p{color:#15130fa3;max-width:42rem;line-height:1.7}.gallery-section{color:#fff;background:radial-gradient(circle at 85% 10%,#d9a4412e,#0000 28rem),#15130f;padding:clamp(5rem,10vw,9rem) 0}.gallery-grid{grid-auto-rows:minmax(240px,34vw);gap:1rem;display:grid}.gallery-tile{background:#2b2119;border-radius:1.4rem;min-height:250px;position:relative;overflow:hidden}.gallery-tile div{z-index:2;color:#ffffffe6;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffff21;border-radius:999px;align-items:center;gap:.55rem;width:fit-content;padding:.7rem .9rem;font-size:.9rem;font-weight:700;display:inline-flex;position:absolute;bottom:1rem;left:1rem;right:1rem}.final-cta{min-height:100svh}html{scroll-snap-type:y proximity}.slide{scroll-snap-align:start}.contact-line{color:#fff9;letter-spacing:.04em;margin-top:1rem;font-size:.85rem}.final-cta>.video-plane{z-index:0}@media (min-width:760px){.process-header{grid-template-columns:minmax(0,.92fr) minmax(20rem,.58fr);align-items:end}.timeline-grid,.gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.gallery-tile-large{grid-area:span 2/span 2}.gallery-tile-wide{grid-column:span 2}}@media (max-width:640px){nav{padding:.75rem .75rem 0}nav>div{padding:.62rem .72rem}nav a:first-child{letter-spacing:.12em;gap:.45rem;font-size:.72rem}nav a:first-child svg{width:.95rem;height:.95rem}.hero-section{min-height:100svh}.hero-shade{background:linear-gradient(#0d0a07d1,#0d0a0747 24%,#0d0a07e6),linear-gradient(90deg,#0d0a07c7,#0d0a073d 55%,#0d0a0794)}.hero-content{align-items:flex-end;padding-top:5.6rem;padding-bottom:4.2rem}.hero-content>div,.story-section>div:last-child,.final-cta>div:last-child{padding-left:1.15rem;padding-right:1.15rem}.hero-title,.story-title{font-size:clamp(2rem,9vw,2.6rem);line-height:1.02}.hero-title-backdrop{background:linear-gradient(#100c088f,#100c0842);margin-left:-.08em;margin-right:-.02em;padding:.06em .18em .1em}.hero-copy,.story-copy{margin-top:1rem;font-size:.98rem;line-height:1.58}.hero-kicker{display:none}.hero-kicker i{font-size:.92rem}.hero-notes{gap:.42rem;margin-top:.95rem}.hero-notes span,.story-annotations span{letter-spacing:.08em;padding:.42rem .58rem;font-size:.62rem}.btn{width:100%;min-height:2.85rem;padding:.78rem 1rem}.scroll-cue{display:none}.section-pad,.gallery-section{padding:4.25rem 0}.section-pad>div,.gallery-section>div{padding-left:1rem;padding-right:1rem}.section-label{letter-spacing:.16em;margin-bottom:.75rem;font-size:.64rem}.section-title{font-size:clamp(2.35rem,12vw,3.65rem);line-height:.95}.section-copy{margin-top:1rem;font-size:.98rem;line-height:1.65}.field-note-panel{border-radius:1.05rem;margin-top:1.15rem;padding:.95rem}.field-note-panel p{font-size:1.28rem;line-height:1.16}.offering-card{border-radius:1.05rem;grid-template-columns:1fr;gap:.7rem;padding:.95rem}.offering-icon{width:2.35rem;height:2.35rem}.offering-card h3{font-size:1.32rem}.offering-card p{font-size:.94rem;line-height:1.55}.offering-card small{letter-spacing:.1em;margin-top:.55rem;font-size:.63rem}.cinema-frame{border-radius:1.25rem;min-height:28rem}.frame-poem-top{top:.9rem;left:.9rem}.frame-poem span{letter-spacing:.13em;margin-bottom:.32rem;font-size:.62rem}.frame-poem strong{max-width:13rem;font-size:2rem}.frame-caption{border-radius:.95rem;flex-direction:column;align-items:flex-start;gap:.22rem;padding:.68rem .78rem;font-size:.74rem;bottom:.8rem;left:.8rem;right:.8rem}.story-section,.final-cta{min-height:100svh}.story-overlay,.final-cta-shade{background:radial-gradient(circle,#15130f1f,#15130fdb),linear-gradient(#15130f3d,#15130fd6)}.video-wordmark{opacity:.9;white-space:normal;font-size:clamp(3.2rem,17vw,4.6rem);top:43%}.story-annotations{margin-top:1.35rem}.process-header{gap:1.3rem}.process-manifesto{border-radius:1.15rem;padding:1rem}.process-manifesto p{font-size:.94rem;line-height:1.58}.process-manifesto dl{margin-top:1rem}.process-manifesto div{gap:.25rem;display:grid}.process-manifesto dd{text-align:left}.timeline-grid{margin-top:1.35rem}.timeline-card{border-radius:1.05rem;min-height:12rem;padding:1rem}.timeline-card span{font-size:3.15rem}.timeline-card h3{font-size:1.68rem}.timeline-card p{font-size:.94rem;line-height:1.55}.gallery-grid{grid-auto-rows:auto;gap:.75rem}.gallery-tile{border-radius:1.05rem;min-height:17rem}.gallery-tile-large{min-height:25rem}.gallery-tile div{white-space:normal;max-width:calc(100% - 1.5rem);padding:.58rem .72rem;bottom:.75rem;left:.75rem;right:.75rem}.nav-cta{gap:0;font-size:0}.nav-cta svg{margin:0}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.video-plane{animation:none}}@media (min-width:768px){.md\:px-8{padding-left:2rem;padding-right:2rem}} diff --git a/web/mystichearts/demo/_next/static/chunks/turbopack-400ms40upx2az.js b/web/mystichearts/demo/_next/static/chunks/turbopack-0lmc14yuanx27.js similarity index 63% rename from web/mystichearts/demo/_next/static/chunks/turbopack-400ms40upx2az.js rename to web/mystichearts/demo/_next/static/chunks/turbopack-0lmc14yuanx27.js index ed19674d..67b667a9 100644 --- a/web/mystichearts/demo/_next/static/chunks/turbopack-400ms40upx2az.js +++ b/web/mystichearts/demo/_next/static/chunks/turbopack-0lmc14yuanx27.js @@ -1 +1 @@ -(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/1jq4o6yq14o4c.js","static/chunks/1nlxobah3y6an.js","static/chunks/3rxl-jt3pdxgx.js"],runtimeModuleIds:[94553]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/mystichearts/demo/_next/",r=function(){if(null!=self.TURBOPACK_ASSET_SUFFIX)return self.TURBOPACK_ASSET_SUFFIX;let e=document?.currentScript?.getAttribute?.("src")??"",t=e.indexOf("?");return t>=0?e.slice(t):""}(),n=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];var o,l=((o=l||{})[o.Runtime=0]="Runtime",o[o.Parent=1]="Parent",o[o.Update=2]="Update",o);let i=new WeakMap;function s(e,t){this.m=e,this.e=t}let u=s.prototype,a=Object.prototype.hasOwnProperty,c="u">typeof Symbol&&Symbol.toStringTag;function f(e,t,r){a.call(e,t)||Object.defineProperty(e,t,r)}function p(e,t){let r=e[t];return r||(r=h(t),e[t]=r),r}function h(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function d(e,t){f(e,"__esModule",{value:!0}),c&&f(e,c,{value:"Module"});let r=0;for(;rObject.getPrototypeOf(e):e=>e.__proto__,y=[null,b({}),b([]),b(b)];function g(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!y.includes(t);t=b(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),d(t,n),t}function O(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=g(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function w(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function j(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}u.i=O,u.A=function(e){return this.r(e)(O.bind(this))},u.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},u.r=function(e){return B(e,this.m).exports},u.f=function(e){function t(t){if(t=w(t),a.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=w(t),a.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let k=Symbol("turbopack queues"),U=Symbol("turbopack exports"),C=Symbol("turbopack error");function P(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}u.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:l,reject:i,promise:s}=j(),u=Object.assign(s,{[U]:r.exports,[k]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),a={get:()=>u,set(e){e!==u&&(u[U]=e)}};Object.defineProperty(r,"exports",a),Object.defineProperty(r,"namespaceObject",a),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(k in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[U]:{},[k]:e=>e(t)};return e.then(e=>{r[U]=e,P(t)},e=>{r[C]=e,P(t)}),r}}return{[U]:e,[k]:()=>{}}}),r=()=>t.map(e=>{if(e[C])throw e[C];return e[U]}),{promise:l,resolve:i}=j(),s=Object.assign(()=>i(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[k](u)),s.queueCount?l:r()},function(e){e?i(u[C]=e):l(u[U]),P(n)}),n&&-1===n.status&&(n.status=0)};let v=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function R(e,t){throw Error(`Invariant: ${t(e)}`)}v.prototype=URL.prototype,u.U=v,u.z=function(e){throw Error("dynamic usage of require is not supported")},u.g=globalThis;let S=s.prototype,$=new Map;u.M=$;let E=new Map,_=new Map;async function T(e,t,r){let n;if("string"==typeof r)return M(e,t,q(r));let o=r.included||[],l=o.map(e=>!!$.has(e)||E.get(e));if(l.length>0&&l.every(e=>e))return void await Promise.all(l);let i=r.moduleChunks||[],s=i.map(e=>_.get(e)).filter(e=>e);if(s.length>0){if(s.length===i.length)return void await Promise.all(s);let r=new Set;for(let e of i)_.has(e)||r.add(e);for(let n of r){let r=M(e,t,q(n));_.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=M(e,t,q(r.path)),i))_.has(o)||_.set(o,n)}for(let e of o)E.has(e)||E.set(e,n);await n}S.l=function(e){return T(l.Parent,this.m.id,e)};let x=Promise.resolve(void 0),A=new WeakMap;function M(t,r,n){let o=e.loadChunkCached(t,n),i=A.get(o);if(void 0===i){let e=A.set.bind(A,o,x);i=o.then(e).catch(e=>{let o;switch(t){case l.Runtime:o=`as a runtime dependency of chunk ${r}`;break;case l.Parent:o=`from module ${r}`;break;case l.Update:o="from an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}let i=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw i.name="ChunkLoadError",i}),A.set(o,i)}return i}function q(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}S.L=function(e){return M(l.Parent,this.m.id,e)},S.R=function(e){let t=this.r(e);return t?.default??t},S.P=function(e){return`/ROOT/${e??""}`},S.q=function(e,t){m.call(this,`${e}${r}`,t)},S.b=function(e,t,o,l){let i="SharedWorker"===e.name,s=[o.map(e=>q(e)).reverse(),r];for(let e of n)s.push(globalThis[e]);let u=new URL(q(t),location.origin),a=JSON.stringify(s);return i?u.searchParams.set("params",a):u.hash="#params="+encodeURIComponent(a),new e(u,l?{...l,type:void 0}:void 0)};let N=/\.js(?:\?[^#]*)?(?:#.*)?$/,K=/\.css(?:\?[^#]*)?(?:#.*)?$/;function L(e){return K.test(e)}u.w=function(t,r,n){return e.loadWebAssembly(l.Parent,this.m.id,t,r,n)},u.u=function(t,r){return e.loadWebAssemblyModule(l.Parent,this.m.id,t,r)};let I={};u.c=I;let B=(e,t)=>{let r=I[e];if(r){if(r.error)throw r.error;return r}return W(e,l.Parent,t.id)};function W(e,t,r){let n=$.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let o=h(e),l=o.exports;I[e]=o;let i=new s(o,l);try{n(i,o,l)}catch(e){throw o.error=e,e}return o.namespaceObject&&o.exports!==o.namespaceObject&&g(o.exports,o.namespaceObject),o}function F(t){let r,n=function(e){if("string"==typeof e)return e;if(e)return{src:e.getAttribute("src")};if("u">typeof TURBOPACK_NEXT_CHUNK_URLS)return{src:TURBOPACK_NEXT_CHUNK_URLS.pop()};throw Error("chunk path empty but not in a worker")}(t[0]);return 2===t.length?r=t[1]:(r=void 0,!function(e,t){let r=1;for(;r{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},X.set(e,t)}return t}e={async registerChunk(e,r){let n=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(e.src.replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(e);if(D("string"==typeof e?q(e):e.src).resolve(),null!=r){for(let e of r.otherChunks)D(q("string"==typeof e?e:e.path));if(await Promise.all(r.otherChunks.map(e=>T(l.Runtime,n,e))),r.runtimeModuleIds.length>0)for(let e of r.runtimeModuleIds)!function(e,t){let r=I[t];if(r){if(r.error)throw r.error;return}W(t,l.Runtime,e)}(n,e)}},loadChunkCached:(e,t)=>(function(e,t){let r=D(t);if(r.loadingStarted)return r.promise;if(e===l.Runtime)return r.loadingStarted=!0,L(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(L(t));else if(N.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(L(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(N.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let l=fetch(q(r)),{instance:i}=await WebAssembly.instantiateStreaming(l,o);return i.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(q(r));return await WebAssembly.compileStreaming(o)}};let H=globalThis.TURBOPACK;globalThis.TURBOPACK={push:F},H.forEach(F)})(); \ No newline at end of file +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/3ll07n217cgxf.js","static/chunks/3dpzi432m30f4.js","static/chunks/0iec5q4ack_04.js"],runtimeModuleIds:[94553]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/mystichearts/demo/_next/",r=function(){if(null!=self.TURBOPACK_ASSET_SUFFIX)return self.TURBOPACK_ASSET_SUFFIX;let e=document?.currentScript?.getAttribute?.("src")??"",t=e.indexOf("?");return t>=0?e.slice(t):""}(),n=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];var o,i=((o=i||{})[o.Runtime=0]="Runtime",o[o.Parent=1]="Parent",o[o.Update=2]="Update",o);let l=new WeakMap;function s(e,t){this.m=e,this.e=t}let u=s.prototype,a=Object.prototype.hasOwnProperty,c="u">typeof Symbol&&Symbol.toStringTag;function f(e,t,r){a.call(e,t)||Object.defineProperty(e,t,r)}function p(e,t){let r=e[t];return r||(r=h(t),e[t]=r),r}function h(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function d(e,t){f(e,"__esModule",{value:!0}),c&&f(e,c,{value:"Module"});let r=0;for(;rObject.getPrototypeOf(e):e=>e.__proto__,y=[null,b({}),b([]),b(b)];function g(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!y.includes(t);t=b(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),d(t,n),t}function O(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=g(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function w(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function k(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}u.i=O,u.A=function(e){return this.r(e)(O.bind(this))},u.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},u.r=function(e){return B(e,this.m).exports},u.f=function(e){function t(t){if(t=w(t),a.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=w(t),a.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let j=Symbol("turbopack queues"),U=Symbol("turbopack exports"),C=Symbol("turbopack error");function P(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}u.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:i,reject:l,promise:s}=k(),u=Object.assign(s,{[U]:r.exports,[j]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),a={get:()=>u,set(e){e!==u&&(u[U]=e)}};Object.defineProperty(r,"exports",a),Object.defineProperty(r,"namespaceObject",a),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(j in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[U]:{},[j]:e=>e(t)};return e.then(e=>{r[U]=e,P(t)},e=>{r[C]=e,P(t)}),r}}return{[U]:e,[j]:()=>{}}}),r=()=>t.map(e=>{if(e[C])throw e[C];return e[U]}),{promise:i,resolve:l}=k(),s=Object.assign(()=>l(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[j](u)),s.queueCount?i:r()},function(e){e?l(u[C]=e):i(u[U]),P(n)}),n&&-1===n.status&&(n.status=0)};let v=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function R(e,t){throw Error(`Invariant: ${t(e)}`)}v.prototype=URL.prototype,u.U=v,u.z=function(e){throw Error("dynamic usage of require is not supported")},u.g=globalThis;let S=s.prototype,$=new Map;u.M=$;let _=new Map,E=new Map;async function T(e,t,r){let n;if("string"==typeof r)return M(e,t,N(r));let o=r.included||[],i=o.map(e=>!!$.has(e)||_.get(e));if(i.length>0&&i.every(e=>e))return void await Promise.all(i);let l=r.moduleChunks||[],s=l.map(e=>E.get(e)).filter(e=>e);if(s.length>0){if(s.length===l.length)return void await Promise.all(s);let r=new Set;for(let e of l)E.has(e)||r.add(e);for(let n of r){let r=M(e,t,N(n));E.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=M(e,t,N(r.path)),l))E.has(o)||E.set(o,n)}for(let e of o)_.has(e)||_.set(e,n);await n}S.l=function(e){return T(i.Parent,this.m.id,e)};let A=Promise.resolve(void 0),x=new WeakMap;function M(t,r,n){let o=e.loadChunkCached(t,n),l=x.get(o);if(void 0===l){let e=x.set.bind(x,o,A);l=o.then(e).catch(e=>{let o;switch(t){case i.Runtime:o=`as a runtime dependency of chunk ${r}`;break;case i.Parent:o=`from module ${r}`;break;case i.Update:o="from an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}let l=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw l.name="ChunkLoadError",l}),x.set(o,l)}return l}function N(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}S.L=function(e){return M(i.Parent,this.m.id,e)},S.R=function(e){let t=this.r(e);return t?.default??t},S.P=function(e){return`/ROOT/${e??""}`},S.q=function(e,t){m.call(this,`${e}${r}`,t)},S.b=function(e,t,o,i){let l="SharedWorker"===e.name,s=[o.map(e=>N(e)).reverse(),r];for(let e of n)s.push(globalThis[e]);let u=new URL(N(t),location.origin),a=JSON.stringify(s);return l?u.searchParams.set("params",a):u.hash="#params="+encodeURIComponent(a),new e(u,i?{...i,type:void 0}:void 0)};let q=/\.js(?:\?[^#]*)?(?:#.*)?$/,K=/\.css(?:\?[^#]*)?(?:#.*)?$/;function L(e){return K.test(e)}u.w=function(t,r,n){return e.loadWebAssembly(i.Parent,this.m.id,t,r,n)},u.u=function(t,r){return e.loadWebAssemblyModule(i.Parent,this.m.id,t,r)};let I={};u.c=I;let B=(e,t)=>{let r=I[e];if(r){if(r.error)throw r.error;return r}return W(e,i.Parent,t.id)};function W(e,t,r){let n=$.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let o=h(e),i=o.exports;I[e]=o;let l=new s(o,i);try{n(l,o,i)}catch(e){throw o.error=e,e}return o.namespaceObject&&o.exports!==o.namespaceObject&&g(o.exports,o.namespaceObject),o}function F(t){let r,n=function(e){if("string"==typeof e)return e;if(e)return{src:e.getAttribute("src")};if("u">typeof TURBOPACK_NEXT_CHUNK_URLS)return{src:TURBOPACK_NEXT_CHUNK_URLS.pop()};throw Error("chunk path empty but not in a worker")}(t[0]);return 2===t.length?r=t[1]:(r=void 0,!function(e,t){let r=1;for(;r{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},X.set(e,t)}return t}e={async registerChunk(e,r){let n=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(e.src.replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(e);if(D("string"==typeof e?N(e):e.src).resolve(),null!=r){for(let e of r.otherChunks)D(N("string"==typeof e?e:e.path));if(await Promise.all(r.otherChunks.map(e=>T(i.Runtime,n,e))),r.runtimeModuleIds.length>0)for(let e of r.runtimeModuleIds)!function(e,t){let r=I[t];if(r){if(r.error)throw r.error;return}W(t,i.Runtime,e)}(n,e)}},loadChunkCached:(e,t)=>(function(e,t){let r=D(t);if(r.loadingStarted)return r.promise;if(e===i.Runtime)return r.loadingStarted=!0,L(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(L(t));else if(q.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(L(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(q.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let i=fetch(N(r)),{instance:l}=await WebAssembly.instantiateStreaming(i,o);return l.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(N(r));return await WebAssembly.compileStreaming(o)}};let H=globalThis.TURBOPACK;globalThis.TURBOPACK={push:F},H.forEach(F)})(); \ No newline at end of file diff --git a/web/mystichearts/demo/_not-found.html b/web/mystichearts/demo/_not-found.html index d84e440d..2ad6e768 100644 --- a/web/mystichearts/demo/_not-found.html +++ b/web/mystichearts/demo/_not-found.html @@ -1 +1 @@ -404: This page could not be found.Mystic Hearts | 9-acre healing center

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Mystic Hearts Healing Collective | East Austin

404

This page could not be found.

\ No newline at end of file diff --git a/web/mystichearts/demo/_not-found.txt b/web/mystichearts/demo/_not-found.txt index 19dd486a..941ef9a9 100644 --- a/web/mystichearts/demo/_not-found.txt +++ b/web/mystichearts/demo/_not-found.txt @@ -1,15 +1,15 @@ 1:"$Sreact.fragment" -2:I[39756,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -3:I[37457,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -4:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"OutletBoundary"] +2:I[39756,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +3:I[37457,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +4:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"OutletBoundary"] 5:"$Sreact.suspense" -8:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"ViewportBoundary"] -a:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"MetadataBoundary"] -c:I[68027,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default",1] -:HL["/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","style"] -0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children: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":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$@7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0_aG6iR2-rf-y-sYU86Nu"} +8:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"ViewportBoundary"] +a:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"MetadataBoundary"] +c:I[68027,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default",1] +:HL["/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","style"] +0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children: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":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$@7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"C5OCFGpdAm0y76Hzc7huT"} d:[] 7:"$Wd" 9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] 6:null -b:[["$","title","0",{"children":"Mystic Hearts | 9-acre healing center"}],["$","meta","1",{"name":"description","content":"A cinematic preview of Mystic Hearts, a 9-acre healing center taking shape with a house, yurts, tiny homes, and practitioner-led healing modalities."}]] +b:[["$","title","0",{"children":"Mystic Hearts Healing Collective | East Austin"}],["$","meta","1",{"name":"description","content":"Ten acres of healing land in East Austin: a sober, interfaith home where people gather to heal, to practice, and to live more connected to the land and to each other."}]] diff --git a/web/mystichearts/demo/_not-found/__next._full.txt b/web/mystichearts/demo/_not-found/__next._full.txt index 19dd486a..941ef9a9 100644 --- a/web/mystichearts/demo/_not-found/__next._full.txt +++ b/web/mystichearts/demo/_not-found/__next._full.txt @@ -1,15 +1,15 @@ 1:"$Sreact.fragment" -2:I[39756,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -3:I[37457,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -4:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"OutletBoundary"] +2:I[39756,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +3:I[37457,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +4:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"OutletBoundary"] 5:"$Sreact.suspense" -8:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"ViewportBoundary"] -a:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"MetadataBoundary"] -c:I[68027,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default",1] -:HL["/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","style"] -0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children: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":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$@7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0_aG6iR2-rf-y-sYU86Nu"} +8:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"ViewportBoundary"] +a:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"MetadataBoundary"] +c:I[68027,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default",1] +:HL["/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","style"] +0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children: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":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$@7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"C5OCFGpdAm0y76Hzc7huT"} d:[] 7:"$Wd" 9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] 6:null -b:[["$","title","0",{"children":"Mystic Hearts | 9-acre healing center"}],["$","meta","1",{"name":"description","content":"A cinematic preview of Mystic Hearts, a 9-acre healing center taking shape with a house, yurts, tiny homes, and practitioner-led healing modalities."}]] +b:[["$","title","0",{"children":"Mystic Hearts Healing Collective | East Austin"}],["$","meta","1",{"name":"description","content":"Ten acres of healing land in East Austin: a sober, interfaith home where people gather to heal, to practice, and to live more connected to the land and to each other."}]] diff --git a/web/mystichearts/demo/_not-found/__next._head.txt b/web/mystichearts/demo/_not-found/__next._head.txt index d62b59d1..068d19bc 100644 --- a/web/mystichearts/demo/_not-found/__next._head.txt +++ b/web/mystichearts/demo/_not-found/__next._head.txt @@ -1,5 +1,5 @@ 1:"$Sreact.fragment" -2:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"ViewportBoundary"] -3:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"MetadataBoundary"] +2:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"ViewportBoundary"] +3:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"MetadataBoundary"] 4:"$Sreact.suspense" -0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Mystic Hearts | 9-acre healing center"}],["$","meta","1",{"name":"description","content":"A cinematic preview of Mystic Hearts, a 9-acre healing center taking shape with a house, yurts, tiny homes, and practitioner-led healing modalities."}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"0_aG6iR2-rf-y-sYU86Nu"} +0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Mystic Hearts Healing Collective | East Austin"}],["$","meta","1",{"name":"description","content":"Ten acres of healing land in East Austin: a sober, interfaith home where people gather to heal, to practice, and to live more connected to the land and to each other."}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"C5OCFGpdAm0y76Hzc7huT"} diff --git a/web/mystichearts/demo/_not-found/__next._index.txt b/web/mystichearts/demo/_not-found/__next._index.txt index 3192055d..9d26ff5e 100644 --- a/web/mystichearts/demo/_not-found/__next._index.txt +++ b/web/mystichearts/demo/_not-found/__next._index.txt @@ -1,5 +1,5 @@ 1:"$Sreact.fragment" -2:I[39756,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -3:I[37457,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -:HL["/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","style"] -0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"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."}]}]]}]}]],[]]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"0_aG6iR2-rf-y-sYU86Nu"} +2:I[39756,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +3:I[37457,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +:HL["/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","style"] +0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","async":true}],["$","script","script-1",{"src":"/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"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."}]}]]}]}]],[]]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"C5OCFGpdAm0y76Hzc7huT"} diff --git a/web/mystichearts/demo/_not-found/__next._not-found.__PAGE__.txt b/web/mystichearts/demo/_not-found/__next._not-found.__PAGE__.txt index b1418957..2ad7e163 100644 --- a/web/mystichearts/demo/_not-found/__next._not-found.__PAGE__.txt +++ b/web/mystichearts/demo/_not-found/__next._not-found.__PAGE__.txt @@ -1,5 +1,5 @@ 1:"$Sreact.fragment" -2:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"OutletBoundary"] +2:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"OutletBoundary"] 3:"$Sreact.suspense" -0:{"rsc":["$","$1","c",{"children":[[["$","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."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"0_aG6iR2-rf-y-sYU86Nu"} +0:{"rsc":["$","$1","c",{"children":[[["$","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."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"C5OCFGpdAm0y76Hzc7huT"} 4:null diff --git a/web/mystichearts/demo/_not-found/__next._not-found.txt b/web/mystichearts/demo/_not-found/__next._not-found.txt index f8651f60..dba9fe50 100644 --- a/web/mystichearts/demo/_not-found/__next._not-found.txt +++ b/web/mystichearts/demo/_not-found/__next._not-found.txt @@ -1,5 +1,5 @@ 1:"$Sreact.fragment" -2:I[39756,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -3:I[37457,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] +2:I[39756,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +3:I[37457,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] 4:[] -0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"0_aG6iR2-rf-y-sYU86Nu"} +0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"C5OCFGpdAm0y76Hzc7huT"} diff --git a/web/mystichearts/demo/_not-found/__next._tree.txt b/web/mystichearts/demo/_not-found/__next._tree.txt index 2afa1c5e..40af1a19 100644 --- a/web/mystichearts/demo/_not-found/__next._tree.txt +++ b/web/mystichearts/demo/_not-found/__next._tree.txt @@ -1,2 +1,2 @@ -:HL["/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","style"] -0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"/_not-found","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"0_aG6iR2-rf-y-sYU86Nu"} +:HL["/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","style"] +0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"/_not-found","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"C5OCFGpdAm0y76Hzc7huT"} diff --git a/web/mystichearts/demo/assets/images/hero-pergola-poster.jpg b/web/mystichearts/demo/assets/images/hero-pergola-poster.jpg new file mode 100644 index 00000000..8122e445 Binary files /dev/null and b/web/mystichearts/demo/assets/images/hero-pergola-poster.jpg differ diff --git a/web/mystichearts/demo/assets/images/hero-poster.jpg b/web/mystichearts/demo/assets/images/hero-poster.jpg deleted file mode 100644 index e2970202..00000000 Binary files a/web/mystichearts/demo/assets/images/hero-poster.jpg and /dev/null differ diff --git a/web/mystichearts/demo/assets/images/logo-cream.png b/web/mystichearts/demo/assets/images/logo-cream.png new file mode 100644 index 00000000..ee4e8ec6 Binary files /dev/null and b/web/mystichearts/demo/assets/images/logo-cream.png differ diff --git a/web/mystichearts/demo/assets/images/logo-gold.png b/web/mystichearts/demo/assets/images/logo-gold.png new file mode 100644 index 00000000..d65e0d99 Binary files /dev/null and b/web/mystichearts/demo/assets/images/logo-gold.png differ diff --git a/web/mystichearts/demo/assets/video/hero-pergola.mp4 b/web/mystichearts/demo/assets/video/hero-pergola.mp4 new file mode 100644 index 00000000..87e7360a Binary files /dev/null and b/web/mystichearts/demo/assets/video/hero-pergola.mp4 differ diff --git a/web/mystichearts/demo/assets/video/hero-pergola.webm b/web/mystichearts/demo/assets/video/hero-pergola.webm new file mode 100644 index 00000000..8e174fec Binary files /dev/null and b/web/mystichearts/demo/assets/video/hero-pergola.webm differ diff --git a/web/mystichearts/demo/assets/video/hero.mp4 b/web/mystichearts/demo/assets/video/hero.mp4 deleted file mode 100644 index 30f8da68..00000000 Binary files a/web/mystichearts/demo/assets/video/hero.mp4 and /dev/null differ diff --git a/web/mystichearts/demo/assets/video/product-1.mp4 b/web/mystichearts/demo/assets/video/product-1.mp4 deleted file mode 100644 index b9028bab..00000000 Binary files a/web/mystichearts/demo/assets/video/product-1.mp4 and /dev/null differ diff --git a/web/mystichearts/demo/assets/video/product-2.mp4 b/web/mystichearts/demo/assets/video/product-2.mp4 deleted file mode 100644 index cdaea36e..00000000 Binary files a/web/mystichearts/demo/assets/video/product-2.mp4 and /dev/null differ diff --git a/web/mystichearts/demo/index.html b/web/mystichearts/demo/index.html index e0238e5e..3a89250d 100644 --- a/web/mystichearts/demo/index.html +++ b/web/mystichearts/demo/index.html @@ -1 +1 @@ -Mystic Hearts | 9-acre healing center
Mystic Hearts9-acre healing center

A future village, grounded in the work already beginning.

A place where people can arrive without performing, receive care without being processed, and take part in a small economy of skill, labor, attention, and reciprocity.

Central houseYurtsTiny homesHealing modalities
Fall 2027

Coming fall 2027.

Nine acres of healing land are taking shape: a central house, yurts, and tiny homes, with practitioners holding breathwork, sound, energy work, and somatic practice. The first gatherings will be small and in person. If you want to help build it, practice here, or simply be there when it opens, reach out.

Get in touch

cshearer210@gmail.com

\ No newline at end of file +Mystic Hearts Healing Collective | East Austin
Mystic Hearts Healing Collective
East Austin, Texas

Ten acres of healing land

A divine dream, made real in East Austin.

A sober, interfaith home where people gather to heal, to practice, and to live more connected to the land and to each other.

\ No newline at end of file diff --git a/web/mystichearts/demo/index.txt b/web/mystichearts/demo/index.txt index b2f48981..763179fb 100644 --- a/web/mystichearts/demo/index.txt +++ b/web/mystichearts/demo/index.txt @@ -1,16 +1,16 @@ 1:"$Sreact.fragment" -2:I[39756,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -3:I[37457,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default"] -4:I[19873,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js","/mystichearts/demo/_next/static/chunks/1xsmnrbrzndet.js"],"MysticHeartsPage"] -5:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"OutletBoundary"] +2:I[39756,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +3:I[37457,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default"] +4:I[19873,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js","/mystichearts/demo/_next/static/chunks/28xk_f13smd0m.js"],"MysticHeartsPage"] +5:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"OutletBoundary"] 6:"$Sreact.suspense" -8:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"ViewportBoundary"] -a:I[97367,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"MetadataBoundary"] -c:I[68027,["/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js"],"default",1] -:HL["/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","style"] +8:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"ViewportBoundary"] +a:I[97367,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"MetadataBoundary"] +c:I[68027,["/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js"],"default",1] +:HL["/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","style"] :HL["/mystichearts/demo/_next/static/media/01e4147cff8141ee-s.p.3huc2loe0ie8a.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/mystichearts/demo/_next/static/media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/158myu8e_yme3.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{}],[["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/1xsmnrbrzndet.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/41eeb7hs31q5k.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0_aG6iR2-rf-y-sYU86Nu"} +0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/1d4h-sglyo8ft.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/mystichearts/demo/_next/static/chunks/14mumt5_n0xhi.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_fd091ad6-module__giF-bG__variable cormorant_garamond_eff11090-module__P8UEha__variable","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{}],[["$","script","script-0",{"src":"/mystichearts/demo/_next/static/chunks/28xk_f13smd0m.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[["$","link","0",{"rel":"stylesheet","href":"/mystichearts/demo/_next/static/chunks/19a7t5i3dmy_i.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"C5OCFGpdAm0y76Hzc7huT"} 9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] 7:null -b:[["$","title","0",{"children":"Mystic Hearts | 9-acre healing center"}],["$","meta","1",{"name":"description","content":"A cinematic preview of Mystic Hearts, a 9-acre healing center taking shape with a house, yurts, tiny homes, and practitioner-led healing modalities."}]] +b:[["$","title","0",{"children":"Mystic Hearts Healing Collective | East Austin"}],["$","meta","1",{"name":"description","content":"Ten acres of healing land in East Austin: a sober, interfaith home where people gather to heal, to practice, and to live more connected to the land and to each other."}]] diff --git a/yuhm/DEPLOY.md b/yuhm/DEPLOY.md index 3f6ca671..a1586e08 100644 --- a/yuhm/DEPLOY.md +++ b/yuhm/DEPLOY.md @@ -38,6 +38,10 @@ The browser receives only the anon key. The service-role key stays in the HAND C In the HAND Supabase dashboard, open **Authentication > Sign In / Providers > Email** and turn off **Confirm email**. yuhm signup expects `signUp` to return a session immediately. The client then opens `/app/`; standard `username`, `new-password`, and form-submit metadata lets the member's browser offer to save the credentials locally. +Auth email (password resets) is sent through Resend, set under **Authentication > Emails > SMTP Settings**: host `smtp.resend.com`, port `465`, user `resend`, and a send-only Resend key named `supabase-auth-smtp`. Without custom SMTP, Supabase caps the whole project at 2 auth emails per hour. With Confirm email on and no SMTP, signup fails with "We could not finish creating your account" and then "email rate limit exceeded" (seen 2026-10-06). + +The sender name is `Yuhm Network`. The auth email templates (password reset, confirm email, sign-in link, email change, invite) are branded and kept in `docs/auth-email/`, one HTML file per template plus `subjects.json`. They are applied by hand: paste each file into **Authentication > Emails > Templates**, or PATCH `mailer_templates__content` and `mailer_subjects_` on the management API. Editing a file here changes nothing until it is applied. + In **Authentication > URL Configuration**, set: ```text diff --git a/yuhm/DESIGN.md b/yuhm/DESIGN.md index bead9d2a..67294b63 100644 --- a/yuhm/DESIGN.md +++ b/yuhm/DESIGN.md @@ -3,6 +3,12 @@ Derived from `src/styles.css` (live code) and `docs/WXLOVE-THEME-OPTIMIZATION.md` (token decision). The landing/public entry is the **brand** surface; the dashboard is **product**. +**2026-09-08:** the sign-in screen, the food finder (`SimpleExperience`), the guest sign-in sheet, and +the finder's location dialog now wear the brand theme too (oat ground `#fbf6ea`/`#fffdf6`, cacao ink +`#46312a`, garden-green actions `#2d6b50` with the hero-CTA offset shadow, Baloo 2 display). A person +sees one yuhm from the landing through signing in and into the task. Only the coordinator dashboard +(`mode=advanced`) keeps the product theme below. The shared lockup is `src/YuhmBrand.tsx`. + ## Color | Token | Value | Role | @@ -22,7 +28,8 @@ Landing is warm cream with forest structure; coral is precious. Dot-grid texture ## Typography -- **Space Grotesk** — display: h1 (clamp 3.5–7.5rem, -.07em tracking, .9 line), card titles. +- **Baloo 2** — display on brand surfaces (landing, world, sign-in, finder): rounded, 700–800 weight, near-zero tracking. +- **Space Grotesk** — display on the dashboard: h1 (clamp 3.5–7.5rem, -.07em tracking, .9 line), card titles. - **DM Sans** — body/UI. - **DM Mono** — eyebrows/kickers/metadata, uppercase, wide tracking, 9–10px. diff --git a/yuhm/HANDOFF.md b/yuhm/HANDOFF.md index 250b97eb..067c4f38 100644 --- a/yuhm/HANDOFF.md +++ b/yuhm/HANDOFF.md @@ -1,6 +1,6 @@ # yuhm Handoff -Last updated: 2026-08-24 +Last updated: 2026-10-06 > **Renamed 2026-08-24.** This product was WXL:FOOD ("W Xtra Love") until 2026-08-24, when it became **yuhm** (the yuhm network) — yum with the om at its center, Austin's regenerative food network. The live host moved from `wxl.handprotocol.org` to `yuhm.handprotocol.org` (the old host 301-redirects). Applied Supabase migrations keep their historical `NNN_wxl_*` filenames, historical plans keep their `plans/00X-wxl-*` names, and docs dated before the rename may still say WXL. @@ -8,6 +8,82 @@ This is the working orientation document for `yuhm/`. Read it before changing th Public-facing product behavior and safety boundaries are maintained in `docs/LIVING-DOCS.md`. Keep it current when a feature promise or workflow changes. It is intended to become the source for a future HTML documentation page. +## Sign-in fix and calmer sign-in design: live 2026-10-06 + +Signup was failing because Confirm email had been turned on in the HAND Supabase project and auth email was capped at 2 per hour. Confirm email is off again, auth email goes through Resend, and the sign-in card and guest sheet were simplified (commit `47edb4ab6`, deployed). Details, gotchas, and three small items waiting on koH: `_handoff-2026-10-06-auth-signin.md`. + +## Pickup runs: in progress, first browser pass done 2026-10-06 (not deployed, 050 not applied) + +koH asked for a run-sheet tool for someone picking food up anywhere and sharing it out to several families, with Oak Hill Baptist as the test case, then added a living docs page with wireframes and explainer videos. + +- **Session handoff (read first when resuming):** `_handoff-2026-09-30-pickup-runs.md` (its top update section is current). Plan and design brief: `../plans/006-yuhm-pickup-runs.md`. Product description: the Pickup runs section of `docs/LIVING-DOCS.md`. +- **Done and committed** (`8b011531a`, `6c8c1eee7`): migration `../command/supabase/migrations/050_yuhm_food_runs.sql` with its acceptance test, all logic and every screen under `src/runs/`, the `/app/?mode=run` route. 198 tests pass, `tsc` clean. +- **Browser pass, 2026-10-06:** the whole practice run (ask, pick up, split, deliver, finish) plus Families, Seeds, Advanced, and Plan a run, at 390 and 1280 wide, and in Spanish. No console errors, no horizontal overflow. Five fixes landed in `6c8c1eee7`. +- **Not done:** screen tests, entry links (Contribute tab, member menus, coordinator dashboard), the living docs page with wireframes, the videos. **050 is not applied to production and nothing is deployed.** + +## Gatherings beta, coordinated by koord: plan only, 2026-09-20 (nothing built) + +koH asked to plan the booking system (`../koord/`, renamed from `book/`) into the yuhm work, starting with a beta for gatherings and classes. First worked case: a food prep gathering where each attendee says what they want to prepare, gets an itemized order, picks a source per line (bring, network with a pickup, or buy through a shared grocery run), and finds their items in a numbered bin on arrival. + +- **Plan:** `../plans/005-yuhm-gatherings-koord.md` (the nine-step flow, what 033 already provides, where koord and THE MISSION fit, SQL sketch for ten new tables, functions, notifications, phases G0 to G4, nine decisions, risks). +- **Reuse found:** migration 033 already has `food_venues`, `food_events`, items, invites, RSVPs, assignments, and the `potluck` lane gate; 034 has `plan_food_potluck()` and `release_food_event_location()`. Only the undeployed coordination API uses them today. +- **Settled by koH, 2026-09-20:** grocery money settles directly between people, by hand. The first implementation is a paid checklist the money holder ticks (paid, covered, shop anyway, drop), then a second tick for settled. No processor, no stored payment handles, HAND holds no money (koord record 0004 ruling 4). +- **Proposed, still open:** koord runs as a library inside yuhm (yuhm's tables are the store, Resend is koord's first real channel). +- **Demo:** five gathering screens are the last group in THE MISSION demo (artifact version 3, same link as below): the gathering, build my order, paid checklist with a settle tab, shop run with a sort sheet, pick up my bin with the balance. Source: `prototypes/the-mission/gather.js` + `gather.css`, plugged in through `window.YUHM_DEMO_EXT` in `mission.js`. **Republishing now needs four files** in the `files` map: `mission.css`, `mission.js`, `gather.css`, `gather.js`. `preview.mjs` walks the gathering flow too and checks that the shares equal the receipt. +- **Fixed along the way:** `.p-body > * { flex-shrink: 0 }` in `mission.css`. Tall phone screens were squashing children with `overflow: hidden` instead of scrolling. Still open in the core demo: a direct child of `.p-body` that sets `transform` (the thank-you note's tilt) loses it when the enter animation ends; use the `rotate` property instead, as `.bin-tag` does. +- **Plain-language intro (artifact version 4):** koH found the page's first paragraph too obscure for someone who does not know yuhm. It now opens with what yuhm is (a free food network for Austin, no account to find food), then what the page is (a demo and plan for two unbuilt ideas, THE MISSION and Gatherings). +- **Session handoff (read first when resuming):** `_handoff-2026-09-20-gatherings-koord.md` covers the settled and open decisions, the findings not to rediscover, the demo's extension hook and gotchas, what was verified, and how to republish. +- **Next step:** koH settles the remaining eight decisions in plan 005; where koord runs comes first because it unblocks storage. Not in the demo yet: the organizer's create flow and the koord time poll. + +## THE MISSION: demo and plan only, 2026-09-19 (nothing in the app changed) + +koH asked to gamify the first-visit sign-in and add an opt-in gamified layer, "THE MISSION": missions tied to the route a person picks, offered delivery-app style, with Duolingo-style engagement, plus a plan for the database, notifications, and a WhatsApp chat with an agent. This session produced a clickable demo and a plan. No app code, no migration, no deploy. + +- **Demo:** https://claude.ai/artifact/FwbwZigM85r1ECY2D2PB4Q (private to koH). Source: `prototypes/the-mission/` (`index.html`, `mission.css`, `mission.js`), outside the Vite build and the Netlify publish dir. Twelve screens in a phone frame with per-screen notes (what it borrows, what it writes, what it notifies), then the plan. All phone content is labeled sample. +- **Plan:** `../plans/004-yuhm-the-mission.md` (ground rules, first-visit flow, vocabulary, SQL sketch for ten new tables, functions, notification pipeline and caps, WhatsApp helper, phases, nine open decisions with recommendations, risks). +- **Load-bearing choices in the proposal:** finding food never shows any of it; opt-in is separate from the account; email + password and the one-step Continue form are untouched (the route pick and a two-minute "first bite" come before the form); weekly rhythm with automatic rest weeks instead of a daily streak; circle goals instead of a leaderboard; seeds live in the existing `food_reputation_ledger`; notifications ride the existing `food_outbox` and `food_contact_channels`; the helper is bounded by `food_agent_mandates`. +- **WhatsApp reality check (verified 2026-09-19):** the official Groups API caps groups at 8 including the business number, needs a verified-badge account, and has no buttons; marketing templates to US numbers have been paused since April 2025. So: one-to-one helper on the Cloud API with utility templates only, human-run announcement groups per circle, and nudges by email or in-app only. +- **Design pass, 2026-09-20 (artifact version 2):** koH asked for a less generic look. The page now opens on a drenched garden-green field with poster-scale type; inside the phone, routes are produce-colored sticker tiles, stamps are embroidered patches generated in SVG, the offer is a perforated ticket, the weekly rhythm is a punch card. Small labels use Barlow Condensed in place of DM Mono as a proposal (one token, `--label`). +- **Session handoff (read first when resuming):** `_handoff-2026-09-20-the-mission.md` covers what was verified and what was not, how to preview (`prototypes/the-mission/preview.mjs`) and republish to the same link, code gotchas, and an offered but unbuilt idea: make the nine decisions answerable on the artifact page with its shared database. +- **Next step:** koH reviews the demo and settles the nine decisions; then phase 1 (join flow, opt-in, bites, progress; in-app only). Start Meta business verification early, it is the slow part. + +## One theme from landing to task, 2026-09-08 (same-day follow-up) + +Detailed session handoff for this pass: `_handoff-2026-09-08-one-theme.md` (status, file-by-file changes, tokens, what is still unverified, how to resume). + +koH's desktop review: the landing looked right, but clicking Sign in dropped into a different-looking product (sage, Space Grotesk, 11px type), and on the living world at bare `/app/` the only Sign in link sat at the bottom of the docked panel (~2100px down). Fixed as one pass: + +- **Shared brand lockup.** `src/YuhmBrand.tsx` (bowl mark + Baloo wordmark + tagline) now heads the landing nav, the sign-in card, and the finder header. The landing keeps its scoped `.landing-brand` rules; other surfaces use the unscoped `.yuhm-lockup` rules. +- **Brand theme on every pre-login and first post-login surface.** An override block at the end of `src/styles.css` ("One yuhm from landing to task") re-skins `.login-page`/`.login-card`, the `.simple-app` shell (header, tabs, finder, action flows, cards, `.simple-primary`), the guest `.simple-sheet` + `.sheet-auth`, and the finder's location dialog (`.simple-app .access-card`) with the world/landing tokens (oat `#fbf6ea`/`#fffdf6`, cacao `#46312a`, garden green actions `#2d6b50` with the hero-CTA 3D shadow, Baloo 2 display). Layout rules are untouched; only colors, type, radii, shadows changed. The coordinator dashboard (`mode=advanced`) deliberately keeps its tool theme. The phone food map (`MapLab` product shell) was not re-skinned. +- **Sign in at the top, everywhere, with a way back.** World topbar: guests get a green **Sign in** pill (`signInHref('/app/?mode=world')`), members get an initials pill with a small menu (Find food, Command center, Sign out); on phones the pill keeps its label while the other topbar buttons stay icon-only, and the circle name hides under 480px so four controls fit. Finder header: guests get a **Sign in** pill carrying the current path as `return=`; the guest account menu (and the stale "WX" avatar) is gone; members keep the initials menu, which now has **Sign out**. Dashboard `AuthPrompt` and the sidebar "Browsing openly" card, the world "More ways" link, and the MapLab account link all pass `return=`. `AuthPrompt` shows one door ("Sign in or create an account") plus the updates link instead of separate Log in / Create an account. +- **Sign-in card fits a 640px-tall laptop viewport** (tighter spacing, 31px title, two-line `login.continueCopy` EN/ES). +- Strings: `common.signOut`, `world.topbar.*` (EN + ES). `getMemberIdentity` initials fallback is no longer `WX`. + +Tests 126 → 130 (`src/AuthFunnel.test.tsx` "sign in is one tap from the top of every pre-login surface": world topbar + panel links, finder header pill, member menu sign-out, dashboard prompt return). Two older assertions updated: the finder's advanced-mode gate now goes through the footer link (guests no longer have a header menu), and the dashboard guest profile link carries `return=`. + +Verified in headless Chromium at 1440×900, 1280×640, 430×932, 390×844. Not changed: the geolocation dialog at `intent=food` still opens as a modal (it is now on-theme); the phone MapLab shell keeps its own look. + +## Onboarding funnel pass, 2026-09-08 + +Goal: the shortest path from arriving to doing the task. Before, a guest who wanted to contribute went landing → scroll to "What brings you here today?" → pick a card → fill the form → Review → interstitial sheet → "Sign in to continue" → login page → choose log in vs sign up → submit → land on the intent tab → redo Review → sheet → "Open secure next step" → dashboard (seven screens). Bare `/app/` also ran a four-step world intro. + +What changed: + +- **Landing hero carries the decision.** Two doors above the fold: **Find food near me** (primary, guest, `/app/?mode=anonymous&intent=food`, real listings) and **Sign in** (`/app/?mode=login`). The "Enter the living map" hero CTA is gone; the world is still reachable from the banner in the paths section and from bare `/app/`. The three path cards remain as optional deep links (tests unchanged). +- **One sign-in step, no mode toggle.** `src/AuthForm.tsx` (`EmailContinueForm`) is email + password + **Continue**. `continueWithEmail` in `src/lib/auth.ts` signs in, and when no account matches it creates one with the same credentials (confirm-email is off, so the session is immediate). A wrong password on an existing account gets an "already has a yuhm account" message rather than a duplicate. `signup=1` still flips autocomplete to `new-password` and labels the button "Create account". Email+password stays the mechanism: passwordless was removed deliberately (see "Product decisions made"). +- **Return to the exact destination.** `return=` now carries a full in-app path (`resolveReturnPath` accepts `/app/...` only, maps legacy intent names, falls back to the finder). The login screen uses `navigate(..., { replace: true })` instead of a full reload. `mode=reset` opens the reset screen directly. +- **No interstitial for members; inline sign-in for guests.** In `SimpleExperience`, `openSimpleAction` navigates members straight to the destination. Guests see the sheet with the title/copy plus the Continue form inline; on success they land on the destination without leaving the page. `simple.sheet.signInToContinue` was retired. +- **World intro is one screen.** `WorldOnboarding` now shows role chips with the matched first invitation previewing inline, then Step in / Skip. The privacy (location) and reveal steps were removed with their strings; `onDone` still receives `(role, null)`. Location can return later as an on-map control. +- **Copy.** "Browse anonymously" → "Browse as a guest" / "Mirar como invitado"; new `login.title`, `login.continue`, `login.continueCopy`, `login.existingAccount`, `login.notConfigured`, `landing.hero.findFood`, `simple.sheet.authCopy` (EN + ES). + +**Same-day fixes from koH's phone test (Brave on iOS):** +- *Autofilled email + password but Continue stayed disabled.* Password managers write straight into the DOM without firing React change events, so a controlled form's state-based `disabled` never cleared (the pre-existing login had the same pattern). `EmailContinueForm` is now uncontrolled: values are read from `FormData` at submit (`readField` helper), the button is disabled only while busy, and the reset / updates forms read the submitted value the same way. Regression test: "accepts browser-autofilled credentials that never fired a change event". +- *"Browse as a guest" opened an oversized map.* iOS zooms the page when a focused field is under 16px, and because routing is client-side the zoom survives into the next screen. Almost every field was 11 to 14px. One rule at the end of `styles.css` (`@media (pointer: coarse), (max-width: 759px)`) holds all text fields, selects, and textareas at 16px on touch screens; desktop keeps the compact sizes. Verified with touch emulation that the map itself has no horizontal overflow at 390px. + +Tests: 126 (was 108). New `src/AuthFunnel.test.tsx` mocks the Supabase client to cover member-skips-sheet, inline sign-in, one-button account creation, existing-account error, and legacy return mapping. `src/lib/auth.test.ts` covers `continueWithEmail`, `resolveReturnPath`, `signInHref`. + +Not changed (candidates for a follow-up): the geolocation consent dialog at `intent=food` still opens as a modal before the map; `AuthPrompt` in the dashboard and the "Sign in" links in MapLab/world panels do not pass a `return`; the hero doors are not yet verified against the live Supabase project (log in / create account on yuhm.handprotocol.org after deploy). + ## Living-map world experience, 2026-08-24 (now the default app) An immersive "cooperative living world" surface that is now the **default app experience**: bare `/app/` and `/app/?mode=anonymous` always open it, on every viewport (`mode=world` is an equivalent alias). The saved `yuhm:experience-mode` preference no longer influences routing; the dashboard is reached only through explicit `mode=advanced` or `workspace=` URLs (one tap away via the world's Command center link), so the flag writes in SimpleExperience, MapLab, and DashboardApp are now vestigial and can be retired in a cleanup pass. The landing hero carries a primary "Enter the living map" CTA into `/app/`, and first entry runs the find-your-yuhm onboarding (stored once in `yuhm:world-intro`; replayable from the profile panel). It presents yuhm as a living neighborhood food ecosystem rather than pins on a map. The focused flows keep their URLs: `intent=food` still opens the zero-friction classic finder (command-bar map on phones), `intent=contribute/gather/request` are unchanged, auth modes are unchanged, and `mode=advanced`/`workspace=` (or the persisted `yuhm:experience-mode`) still open the dashboard. The world links back out through a "More ways to take part" block (Find food, Contribute, Gather, Requests, Sign in) and a "Classic food finder" note on the map. Note: successful login redirects to `/app/`, so signed-in members without the advanced preference now land in the world. @@ -177,7 +253,7 @@ After reviewing those recommendations, choose one bounded target and use `$impro - Posting, replying, supporting, offering help, and nominating sources require an authenticated Supabase session. - When an anonymous visitor attempts a write action, the app opens a clear account prompt with login and account-creation choices. - Write access is determined from the actual Supabase session, not from the `mode` query parameter. -- Successful login redirects to `/app/`. It does not redirect back into anonymous mode. +- Successful sign-in returns to the in-app `return=` path when one was given, otherwise to the food finder (`/app/?intent=food`). It never follows a foreign URL. - Public source information can be read without an account, but a source does not become verified through community nomination alone. - The future source-intelligence agent must remain human-reviewed. See `docs/FOOD-SOURCE-AGENT.md`. @@ -207,8 +283,8 @@ After reviewing those recommendations, choose one bounded target and use `$impro | `/app/` | Always the living-map world experience, on every viewport; the dashboard is explicit only (`mode=advanced` or `workspace=`) | | `/app/?mode=anonymous` | Same living-map world; a valid Supabase session still determines write access on other surfaces | | `/app/?mode=world` | Explicit world alias (same as `/app/`) | -| `/app/?mode=login` | Email and password login | -| `/app/?mode=login&signup=1` | Account creation | +| `/app/?mode=login` | One-step sign in (email + password + Continue; creates the account when none matches). `return=/app/...` brings the person back where they were | +| `/app/?mode=login&signup=1` | Same one-step form; asks the browser for a new password and labels the button Create account | | `/app/?mode=reset` | Request a password-reset email | | `/app/?mode=recovery` | Set a new password after following the recovery link | | `/app/?mode=anonymous&intent=food` | Public food-finding entry; phones open the command-bar map and adaptive result sheet | diff --git a/yuhm/_handoff-2026-09-08-onboarding-funnel.md b/yuhm/_handoff-2026-09-08-onboarding-funnel.md new file mode 100644 index 00000000..5c55a6e1 --- /dev/null +++ b/yuhm/_handoff-2026-09-08-onboarding-funnel.md @@ -0,0 +1,56 @@ +# Handoff — yuhm onboarding funnel (sign in or browse, then do the task) + +Date: 2026-09-08 +Mission: koH asked to cut yuhm's onboarding from "choose a path → find out more → log in → redo the action" to the fastest path: sign in immediately or browse as a guest, then do the task. + +## STATUS: DONE, COMMITTED, DEPLOYED + +- Commit `6e1b31b8a` on `agent/yuhm-network`, pushed to origin (branch in sync). `main` untouched — yuhm deploys from the CLI, not from main. +- Live at https://yuhm.handprotocol.org (Netlify deploy `6aa0756141ee9a9995e19c1c`). Verified on the live host: new hero/login copy in the served JS, the 16px touch-field rule in the served CSS, the Supabase project ref in the bundle, CSP + HSTS headers, wxl → yuhm 301. +- Tests 108 → 126 (`VITE_SUPABASE_URL= VITE_SUPABASE_ANON_KEY= npx vitest run`), `tsc --noEmit` clean, `npm run build` clean. +- Full technical write-up: the "Onboarding funnel pass, 2026-09-08" section at the top of `HANDOFF.md`. Do not redo it. + +## What shipped (one line each) + +- Landing hero = two doors above the fold: **Find food near me** (guest, `/app/?mode=anonymous&intent=food`) and **Sign in** (`/app/?mode=login`). Path cards stay as optional deep links; "Enter the living map" left the hero (world still at bare `/app/` + the banner). +- One sign-in step: `src/AuthForm.tsx` (`EmailContinueForm`) = email + password + Continue. `continueWithEmail` (`src/lib/auth.ts`) signs in, else creates the account with the same credentials; `user_already_exists` → "already has a yuhm account". No log-in/sign-up toggle. Email+password stays (passwordless removed earlier as a product decision — see HANDOFF "Product decisions made"). +- `return=` carries a full `/app/...` path (`resolveReturnPath`); legacy intent names still map; foreign URLs fall back to `/app/?intent=food`. `mode=reset` opens the reset screen directly. +- `SimpleExperience`: members skip the interstitial sheet (straight to the destination); guests get the Continue form inline in the sheet and land on the destination. +- World intro: one screen (role chips + inline first-invitation preview + Step in / Skip). Privacy and reveal steps removed with their strings. +- Phone fixes (Brave/iOS): auth inputs are uncontrolled (`FormData` at submit, `readField`) so password-manager autofill enables Continue; global rule at the end of `styles.css` keeps every text field/select/textarea at 16px under `(pointer: coarse), (max-width: 759px)` so iOS does not zoom on focus and carry the zoom into the next screen. + +## NOT yet verified (first thing next session, or koH on the phone) + +1. Live Supabase behaviour of the one-button auth: sign in with a saved account, then create a brand-new account through the same Continue button. The logic assumes `invalid_credentials` for an unknown email and `user_already_exists` on a duplicate signup, with **Confirm email OFF**. Only exercised against a mocked client so far. +2. On a phone: autofilled fields → Continue tappable; Sign in → Browse as a guest → map at normal size (the zoom bug). + +## Open follow-ups (koH may want next; none started) + +- Make the geolocation consent dialog at `intent=food` non-blocking (show the Austin map, offer "Near me" as a button) — it is the last modal between "Find food near me" and the map. +- Pass `return=` from the dashboard `AuthPrompt` (`src/prompts.tsx`), MapLab account link, and the world "More ways" Sign in link (`signInHref` helper exists in `src/lib/auth.ts`). +- World: location control on the map if wanted (removed from the intro; `onDone(role, null)` for now). +- HANDOFF.md "Current stack" still says "Successful login redirects to `/app/`" and lists `signup=1` as "Account creation" — both are now nuances of the one-step form; tidy when next editing that section. + +## Ground rules / gotchas + +- Another Claude session shares this checkout (unrelated modified files at repo root, `command/`, `clients/`, `threehandshealing/`, untracked `yuhm/tsetup.7.1.3.tar.xz` 78 MB). Stage by explicit path only. Never commit the tarball. +- Tests: a populated `.env.local` flips `foodDbConfigured` and breaks App.test gates — always run with `VITE_SUPABASE_URL= VITE_SUPABASE_ANON_KEY= npx vitest run`. The build, however, NEEDS `.env.local` (Supabase config is baked at build time; verify `grep -o vconmgerblqbworcqkvr dist/assets/index-*.js` before any deploy). +- Deploy = manual CLI with the **cryptokoh** Netlify token (CLI login is zantrra): `NETLIFY_AUTH_TOKEN=$(python3 -c "import json; cfg=json.load(open('$HOME/.config/netlify/config.json')); print([u['auth']['token'] for uid,u in cfg['users'].items() if uid.startswith('65ff678f')][0])") netlify deploy --prod --site 56ee91bf-bf15-472d-8c1c-d6c30af05d6c --dir dist --message "..."`. Headers/redirects ship from `public/_headers` + `public/_redirects`. +- Git push: SSH fails; push over HTTPS as cryptokoh and CLEAR the global gh helper first or it hands git the zantrra account (403): `git -c credential.helper= -c credential.helper='!f() { echo username=cryptokoh; echo password=$(gh auth token -u cryptokoh); }; f' push https://github.com/HandProtocol/handprotocol.git HEAD:agent/yuhm-network`. +- Visual QA: gstack `/browse` daemon is broken here; drive Playwright from `/home/koh/.claude/skills/gstack/node_modules/playwright/index.mjs` with `chromiumSandbox: false, args: ['--no-sandbox']`, Bash with `dangerouslyDisableSandbox: true`, serving `dist` via `npx vite preview --port 4173`. Use `devices['iPhone 13']` to get `pointer: coarse`. +- Vocabulary: Reciprocates / Contributors. Never name specific AI models in public copy. No ultracode / Workflow runs (koH, 2026-09-04). + +## Suggested next-session start + +Read this file, then `HANDOFF.md` top section. If koH reports the phone test passed, pick one follow-up above (the geolocation dialog is the highest-leverage funnel item left). If the live auth misbehaves, start in `src/lib/auth.ts` `continueWithEmail` and check the Supabase project's auth settings (Confirm email must be OFF; see HANDOFF "Important auth and database risks to verify"). + +--- + +## Same-day follow-up: one theme from landing to task (koH's desktop review) + +koH: "it shows a different style theme before you actually login ... confusing with the flow of signing in as you have to go all the way down. lets make sure to streamline our design." Done in the same session; full handoff in `_handoff-2026-09-08-one-theme.md`, summary in `HANDOFF.md` "One theme from landing to task, 2026-09-08". + +- `src/YuhmBrand.tsx` shared lockup; brand-theme override block at the end of `src/styles.css`; world topbar account control in `src/world/WorldExperience.tsx` + `world.css`. +- Sign in is now at the top of the world, the finder, and the dashboard prompt/sidebar, always with `return=` back to the same screen. Members get Sign out in the finder menu and the world menu. +- Tests 130 (was 126). Build clean. Screens checked at 1440×900, 1280×640, 430×932, 390×844. +- The coordinator dashboard keeps its tool theme on purpose; the phone MapLab shell was not re-skinned (candidate for a later pass if koH wants the phone map on-theme too). diff --git a/yuhm/_handoff-2026-09-08-one-theme.md b/yuhm/_handoff-2026-09-08-one-theme.md new file mode 100644 index 00000000..92163987 --- /dev/null +++ b/yuhm/_handoff-2026-09-08-one-theme.md @@ -0,0 +1,135 @@ +# Handoff — yuhm: one theme from landing to task, Sign in at the top of every surface + +Date: 2026-09-08 (same day as, and directly after, the onboarding funnel pass in `_handoff-2026-09-08-onboarding-funnel.md`) +Branch: `agent/yuhm-network` · Worktree: `handprotocol/yuhm` + +Mission, in koH's words: "look at our current ux with desktop, its kind of confusing as it shows a different style theme before you actually login, the theme before is okay but its kind of confusing with the flow of signing in as you have to go all the way down. lets make sure to streamline our design." + +## STATUS: DONE, COMMITTED, PUSHED, DEPLOYED + +| Item | State | +|---|---| +| Commit | `d6ed1dccf` on `agent/yuhm-network` (19 files, +350 / -41). `main` untouched; yuhm deploys from the CLI, never from `main`. | +| Push | Pushed over HTTPS as cryptokoh to `HEAD:agent/yuhm-network`; `git ls-remote` confirms the remote head is `d6ed1dccf`. Note: pushing to the explicit URL does not update the local `origin/agent/yuhm-network` tracking ref, so `git status -sb` may still say "ahead". Trust `git ls-remote https://github.com/HandProtocol/handprotocol.git agent/yuhm-network`. | +| Deploy | Netlify production deploy `6aa0879864ea332f04fdb3f2` on site `56ee91bf-bf15-472d-8c1c-d6c30af05d6c`, live at https://yuhm.handprotocol.org. | +| Live check | Served CSS contains `.yuhm-lockup`; served JS contains the one-door prompt copy and `mode=login&return=`; Supabase project ref `vconmgerblqbworcqkvr` is baked in. Live screenshots of `/app/?mode=login` (1440×900) and `/app/?mode=anonymous&intent=food` (1366×768) match the local build. | +| Tests | 130 passing across 16 files (was 126). Run with `VITE_SUPABASE_URL= VITE_SUPABASE_ANON_KEY= npx vitest run`. | +| Checks | `npx tsc --noEmit` clean · `npm run build` clean (the 985 kB main-chunk advisory is pre-existing and non-blocking) · `git diff --check` clean. | + +## The problem, as observed on desktop before the pass + +Headless-Chromium screenshots at 1440×900 and 1366×768 confirmed koH's report exactly: + +| Surface | Before | After | +|---|---|---| +| Landing `/` | Warm yuhm brand theme (oat ground, cacao ink, Baloo 2, coral scribble). Two hero doors: Find food near me / Sign in. **Fine, unchanged.** | Unchanged apart from the shared lockup component. | +| Living world `/app/` (default app, also where the landing banner goes) | Warm theme, so it matched the landing. But the topbar had only Pulse and "Your presence" (a sample-world profile). The only **Sign in** link was in "More ways to take part" at the bottom of the docked panel, measured at ~2110px from the top of the panel's scroll. | Green **Sign in** pill in the topbar for guests; initials pill with a small menu (Find food · Command center · Sign out) for members. Bottom link kept, now also return-aware. | +| Sign in `/app/?mode=login` | Different theme entirely: sage `#eef3ec` page, Space Grotesk headline, DM Mono "yuhm /THE OM IN YUM ♥" wordmark, 11–12px labels and buttons. Felt like leaving the product. | Same brand theme as the landing: oat ground with the landing's radial glow, the shared bowl+wordmark lockup, Baloo 2 title, 15px inputs, green Continue with the hero-CTA offset shadow, outlined "Browse as a guest". Fits a 640px-tall viewport. | +| Food finder `/app/?mode=anonymous&intent=food` (where "Find food near me" and a successful sign-in land) | White/sage product theme, Space Grotesk, a black "WX" avatar (WXL-era initials) that opened a settings menu with no visible sign-in. Location dialog on top in the sage theme. | Oat/cacao theme, shared lockup, green **Sign in** pill for guests (return-aware), member initials menu with Sign out. Filters, cards, tabs, action heroes, forms, sheet, and the location dialog re-skinned. | +| Guest sign-in sheet (Contribute → Set up Contributor profile, etc.) | White card, Space Grotesk. | Oat card, Baloo heading, same green Continue as the sign-in page. | +| Coordinator dashboard `/app/?mode=advanced` | Dark-green sidebar tool theme. | **Deliberately unchanged** (tool surface). Guest sidebar card now shows a user icon instead of "WX" and links to sign-in with a return path. | +| Phone food map (MapLab command-bar shell, ≤759px at `intent=food`) | White shell, own look. | **Not re-skinned.** Only its account link now carries a return path. | + +## What changed, file by file + +### New +- `src/YuhmBrand.tsx` — the one brand lockup: `BowlMark` + rounded "yuhm" wordmark + tagline (default "regenerative food network · Austin"), `aria-label="yuhm home"`, links to `/`. Class `yuhm-lockup` plus any `className` passed in. Used by the landing nav (with `className="landing-brand"` so the landing's scoped rules still win there), the sign-in card, and the finder header. + +### Components +- `src/LandingPage.tsx` — nav brand replaced by ``. No visual change on the landing. +- `src/LoginScreen.tsx` — `.login-wordmark` replaced by ``. No logic change. +- `src/SimpleExperience.tsx` — + - `herePath` = current `path` + `?params` from `useRoute()`; every header sign-in link is `signInHref(herePath)` so the person returns to the same screen. + - Header: ``; guests (`authReady && !member`) get `Sign in`; members get the initials button + menu (display name, "Signed in as {email}", Send feedback, Turn on advanced workspace, **Sign out**). The guest account menu and the "WX" fallback are gone; guests reach the advanced workspace from the footer link, as before. + - `signOut()` calls `foodDb?.auth.signOut()`; `AuthProvider`'s `onAuthStateChange` clears `member`. +- `src/world/WorldExperience.tsx` — `useAuth()` added. Topbar: guest `Sign in` pill → `signInHref('/app/?mode=world')`; member pill (`world-avatar` initials + display name) toggles `#world-account-menu` (Find food → `/app/?mode=anonymous&intent=food`, Command center → `/app/?mode=advanced`, Sign out → `foodDb?.auth.signOut()`). +- `src/world/panels.tsx` — the "More ways" Sign in link is now `signInHref('/app/?mode=world')`. +- `src/world/worldStrings.ts` — new keys (EN + ES): `world.topbar.signIn`, `world.topbar.account`, `world.topbar.signedIn` (`{name}`), `world.topbar.finder`, `world.topbar.commandCenter`, `world.topbar.signOut`. +- `src/prompts.tsx` — `AuthPrompt` reads `useRoute()` and builds `herePath`; actions are now one door "Sign in or create an account" (`signInHref(herePath)`) plus "Email me yuhm updates". The separate "Log in" and "Create an account" links were removed because the one-step form already does both. Copy explains it brings you back here. +- `src/DashboardApp.tsx` — guest sidebar card ("Browsing openly · Sign in to coordinate") links to `signInHref(window.location.pathname + window.location.search)`; avatar is a `CircleUserRound` icon instead of "WX". +- `src/map-lab/MapLab.tsx` — the account link (`map-lab-account`) uses `signInHref(...)` with the current location. + +### Logic and strings +- `src/lib/auth.ts` — `getMemberIdentity` initials fallback `'WX'` → `'Y'` (practically unreachable; display name always falls back to "yuhm member"). `signInHref` and `resolveReturnPath` unchanged and now used everywhere. +- `src/i18n.tsx` — `common.signOut` (EN "Sign out" / ES "Cerrar sesión"); `login.continueCopy` shortened to two lines (EN "Your email and a password. New here? That creates your account. Already a member? It signs you in." / ES equivalent). + +### Styles +- `src/styles.css` lines 1579–1708, block titled **"One yuhm from landing to task (2026-09-08)"**. Override-only, appended at the end so equal-specificity rules win; layout rules earlier in the file are untouched. Sub-sections: + - `.yuhm-lockup` base rules (unscoped; the landing's `.food-entry-page .landing-brand …` rules are more specific and keep the landing as it was). + - Sign in: `.login-page` (oat + radial glow), `.login-card` (450px, 26px radius, `#e8dcc0` border), `.login-card h1` Baloo 31px, 15px inputs with `#52734d` focus ring, `.login-submit` / `.login-anonymous` as hero-CTA twins (green filled / green outlined, offset shadows), `.login-switch`, error/success chips. Reduced-motion guard. + - Finder shell: `.simple-app` token redefinition (`--simple-ink #3b2a22`, `--simple-muted #7d6b57`, `--simple-green #2d6b50`, `--simple-green-dark #1f4a37`, `--simple-warm #fff3dc`, new `--simple-line #ecdfc4`, `--simple-paper #fffdf6`; background `#fbf6ea`), translucent oat sticky header, `.simple-signin` pill, member `.simple-account` + menu + `.simple-signout`, tabs, eyebrows, Baloo on every heading selector that used Space Grotesk, search, filters, finder frame borders, result cards, action heroes (`.contribute-hero`, `.gather-hero`, `.request-hero`), action switch, form cards, `.simple-primary`, footer. + - Guest sheet: `.simple-sheet*` and `.sheet-auth*`. + - Location dialog, scoped as `.simple-app .access-card …` so the dashboard's own `AuthPrompt` (same `.access-card` class) keeps the tool theme. + - `@media (max-width: 480px)`: hide the lockup tagline in the finder header and the sign-in card; tighter `.simple-signin`. +- `src/world/world.css` lines 491–519: `.world-signin`, `.world-account`, `.world-avatar`, `.world-account-menu`; phone rules keep the Sign in label and member initials visible while the other topbar pills stay icon-only (`.world-top-button span { display: none }` from the existing ≤759px block), tighten topbar gaps, and hide `.world-brand-copy` under 480px so four controls fit on one line (the circle name repeats as the panel heading directly below). + +### Tests +- `src/AuthFunnel.test.tsx` — `resetHarness()` extracted (also clears the `signOut` mock); new `describe('sign in is one tap from the top of every pre-login surface')` with four tests: world topbar + panel links carry `return=%2Fapp%2F%3Fmode%3Dworld`; finder header pill carries the current path; a member sees the account menu (initial "N" for neighbor@…) and Sign out calls `auth.signOut` once; the dashboard prompt's single door carries `return=…mode%3Dadvanced%26workspace%3Dcommunity` and there is no separate "Create an account" link. +- `src/App.test.tsx` — "keeps advanced coordination behind an explicit display setting" now asserts the guest header shows Sign in and no account menu, and reaches the advanced workspace via the footer "Advanced workspace" link (still sets `yuhm:experience-mode`). "links anonymous visitors from the profile card to sign in" expects `/app/?mode=login&return=%2Fapp%2F%3Fmode%3Dadvanced`. + +### Docs +- `HANDOFF.md` — new top section "One theme from landing to task, 2026-09-08" (links here); `Last updated` bumped; routes table rows for `mode=login` and `signup=1` rewritten; the "Successful login redirects to `/app/`" product decision corrected to the `return=` behaviour. +- `DESIGN.md` — brand-vs-product paragraph updated; Baloo 2 added to Typography as the brand display face. +- `_handoff-2026-09-08-onboarding-funnel.md` — short "same-day follow-up" stub pointing here. + +## Design decisions to keep consistent + +- **Two themes, one rule.** Brand theme for every surface a member or guest meets on the way to a task: landing, world, sign-in, finder, sheets, dialogs inside the finder. Product/tool theme only for the coordinator dashboard (`mode=advanced` / `workspace=`). New public or member-facing surfaces should use the brand tokens below. +- **Brand tokens** (mirror `.world-app` custom properties in `world.css` and the landing v2 block): oat ground `#fbf6ea`, paper `#fffdf6`, warm `#fff3dc`, line `#e8dcc0` / `#ecdfc4`, cacao heading `#46312a`, ink `#3b2a22`, muted `#7d6b57`, eyebrow `#8a6d3b`, garden green `#52734d` (chips/selected), action green `#2d6b50` with `#1f4a37` offset shadow (`box-shadow: 0 4px 0 #1f4a37`), coral error `#a63c1e` on `#fbe6df`. Display: Baloo 2 700–800, near-zero tracking. Body: DM Sans. Eyebrows: DM Mono uppercase. Radii 16–26px. +- **Sign in is a first-class control in the top bar of every pre-login surface**, always built with `signInHref()` so the person returns exactly where they were. Build the path from `useRoute()` where available (`SimpleExperience`, `AuthPrompt`), or `window.location` where the component already uses it (`DashboardApp`, `MapLab`). `resolveReturnPath` only accepts `/app/...`, so foreign URLs fall back to the finder. +- **Guests never see an account menu**, only Sign in. Members see initials + menu; Sign out lives in that menu (finder and world). The dashboard already had its own sign-out. +- **One door.** With the one-step `EmailContinueForm`, never present separate "Log in" and "Create an account" choices again (`AuthPrompt` was the last place). +- **Email + password stays** (product decision; no magic links). `signup=1` only changes autocomplete and the button label. + +## Verification performed + +- Headless Chromium (Playwright from `/home/koh/.claude/skills/gstack/node_modules/playwright/index.mjs`, `chromiumSandbox: false`, `--no-sandbox`, Bash with `dangerouslyDisableSandbox`) against `npx vite preview --port 4173` serving `dist`: + - 1440×900: landing, sign-in, world after intro (topbar and panel bottom), finder with location dialog dismissed, Contribute tab, guest sheet (I can deliver → Set up Contributor profile), dashboard. + - 1366×768 and 1280×640: landing above the fold, sign-in card (scrollHeight 651 at 640px tall; "Browse as a guest" visible). + - 430×932 and 390×844: world topbar on one line with Sign in labelled; sign-in card; phone finder (MapLab shell, unchanged). +- Live host after deploy: served asset names, CSS/JS content checks, and two live screenshots (see Status). +- Test suite, tsc, build, `git diff --check`. + +Screenshot scripts used this session live only in the session scratchpad (not in the repo). To reproduce: build, run `npx vite preview --port 4173 --strictPort`, then a small Playwright script with `chromium.launch({ chromiumSandbox: false, args: ['--no-sandbox'] })`, `newContext({ viewport })`, `page.goto(url, { waitUntil: 'networkidle' })`, `page.screenshot(...)`. For the world after the intro, click the "Skip to the map" button or seed `localStorage['yuhm:world-intro'] = '{"role":"eat"}'`. For the finder without the location dialog, seed `sessionStorage['yuhm:location-choice'] = 'complete'`. + +## NOT verified (be honest about these first) + +1. **Member-state visuals were only exercised in jsdom tests, not screenshotted.** The finder header initials button + menu (with Sign out) and the world topbar initials pill + menu render correctly in tests, but nobody has looked at them in a browser with a real session. First thing after koH signs in on the live site: check both menus at desktop and phone widths. +2. **Live Supabase auth is still unexercised** (carried from the funnel handoff): sign in with a saved account, then create a brand-new account through the same Continue button. The logic assumes `invalid_credentials` for an unknown email and `user_already_exists` on a duplicate signup, with **Confirm email OFF** in the Supabase project. +3. Dashboard guest sidebar card (icon avatar) sits below the fold at 1440×900 and was not screenshotted; the `.avatar` class is `display: grid; place-items: center`, so the icon should centre. +4. New Spanish strings (`world.topbar.*`, `common.signOut`, shortened `login.continueCopy`) were written by me, not reviewed by a Spanish speaker. +5. Reset / recovery / updates screens on the sign-in card share the restyled `.login-card` rules but were not screenshotted this pass. + +## Open follow-ups (koH may want next; none started) + +1. **Phone food map on-theme.** `MapLab` (`src/map-lab/`, own CSS chunk) is the shell phones get at `intent=food`. It still has its white look; re-skin it with the brand tokens if koH wants the phone path to match desktop. +2. **Geolocation dialog non-blocking.** `intent=food` still opens the location consent modal before the map (now on-theme). Highest-leverage funnel item left: show the Austin map immediately and offer "Near me" as a button. +3. **Vestigial `yuhm:experience-mode` writes** (`enableAdvancedMode` in `SimpleExperience`, flags in MapLab/DashboardApp) can be retired; routing no longer reads them (see HANDOFF "Living-map world experience"). +4. **World member menu destinations** are a judgement call (Find food, Command center, Sign out). If a member-shaped default for the world emerges, revisit. +5. Optional cleanup: the old sage `.login-*`, `.simple-*` base rules earlier in `styles.css` are now overridden rather than replaced. Folding the override block into the base rules would shrink the CSS but is a larger, riskier diff; only do it with screenshots at the same five viewports. + +## Ground rules / gotchas + +- **Shared checkout.** Another Claude session mutates the same repo (root docs, `command/`, `clients/`, `threehandshealing/`, untracked 78 MB `yuhm/tsetup.7.1.3.tar.xz`). Stage by explicit path only. Never commit the tarball. +- **Tests vs build env.** A populated `.env.local` flips `foodDbConfigured` and breaks App.test gates → always `VITE_SUPABASE_URL= VITE_SUPABASE_ANON_KEY= npx vitest run`. The build NEEDS `.env.local` (config is baked at build time) → `grep -o vconmgerblqbworcqkvr dist/assets/index-*.js` before any deploy. +- **Deploy** (manual CLI, cryptokoh token; CLI login is zantrra): + ``` + NETLIFY_AUTH_TOKEN=$(python3 -c "import json; cfg=json.load(open('$HOME/.config/netlify/config.json')); print([u['auth']['token'] for uid,u in cfg['users'].items() if uid.startswith('65ff678f')][0])") netlify deploy --prod --site 56ee91bf-bf15-472d-8c1c-d6c30af05d6c --dir dist --message "..." + ``` + Headers/redirects ship from `public/_headers` + `public/_redirects`. +- **Push** (SSH fails; clear the global gh helper or it hands git the zantrra account and 403s): + ``` + git -c credential.helper= -c credential.helper='!f() { echo username=cryptokoh; echo password=$(gh auth token -u cryptokoh); }; f' push https://github.com/HandProtocol/handprotocol.git HEAD:agent/yuhm-network + ``` + This leaves `origin/agent/yuhm-network` stale locally; verify with `git ls-remote` rather than `git status -sb`. +- **CSS override pattern.** The codebase evolves themes by appending override blocks (landing v2, this pass). Equal-specificity rules win by order, so keep new overrides at the end of the file and match the selector shape of the rule you are overriding. Scope shared dialog classes (`.access-card`) under the surface (`.simple-app …`) so the dashboard is not dragged along. +- **World topbar on phones.** The existing `.world-top-button span { display: none }` rule under 759px hides every pill label; any new topbar control needs an explicit exception if its label must stay visible (see `.world-signin` rules). +- **Visual QA.** gstack `/browse` daemon is broken on this machine; drive Playwright directly as described above. Use `devices['iPhone 13']` when you need `pointer: coarse`. +- **Vocabulary and voice.** Reciprocates / Contributors. Never name specific AI models in public copy. No ultracode / Workflow runs (koH, 2026-09-04). + +## Suggested next-session start + +Read this file, then `HANDOFF.md` top two sections. Then: +1. If koH has signed in on the live site: screenshot the finder header and world topbar in the member state (desktop + 390px), fix anything off, and mark item 1 under "NOT verified" as done. +2. If live auth misbehaves: start in `src/lib/auth.ts` `continueWithEmail` and check the Supabase project's auth settings (Confirm email must be OFF). +3. Otherwise pick one follow-up: the phone MapLab re-skin (design continuity) or the non-blocking geolocation dialog (funnel), and do it as its own bounded pass with the same five-viewport screenshot check. diff --git a/yuhm/_handoff-2026-09-20-gatherings-koord.md b/yuhm/_handoff-2026-09-20-gatherings-koord.md new file mode 100644 index 00000000..e26a1680 --- /dev/null +++ b/yuhm/_handoff-2026-09-20-gatherings-koord.md @@ -0,0 +1,97 @@ +# Session handoff: yuhm gatherings beta, coordinated by koord (plan + demo screens) + +Session: 2026-09-20, after the THE MISSION session. Branch `agent/yuhm-network`. Written so the next session can start cold after `/clear`. Read `_handoff-2026-09-20-the-mission.md` too if the work touches the demo's first twelve screens. + +## Status in one paragraph + +koH asked to plan the booking system (`handprotocol/book`, renamed `koord/` the same day) into the yuhm work, and to present a beta for **gatherings and classes**, starting with a **food prep gathering**: each attendee says what they want to prepare, the app writes their itemized order, each person chooses how the food arrives (bring their own, source it from the network with a pickup, or pay for groceries that one or several shoppers buy), and on arrival their items are there to pick. This session produced a build plan, five clickable demo screens, and a plain-language intro on the artifact page. koH settled one decision (how money moves). **Nothing in the app changed: no `src/` edits, no migration, no deploy, no commits. No koord code changed.** + +## What exists + +| Thing | Where | +| --- | --- | +| Build plan | `plans/005-yuhm-gatherings-koord.md` (what already exists, the nine-step flow, the choices that carry weight, where koord and THE MISSION fit, SQL sketch for nine new tables, functions, notifications, phases G0 to G4, nine decisions, risks) | +| Demo | https://claude.ai/artifact/FwbwZigM85r1ECY2D2PB4Q, **version 4**. The five gathering screens are the last rail group, "Gatherings beta". Version 3 added them; version 4 rewrote the intro. Shared as "anyone with the link". | +| Demo source | `yuhm/prototypes/the-mission/`: new `gather.js` and `gather.css`; small edits to `mission.js` (extension hook), `mission.css` (one scroll fix), `index.html` (intro, TOC entry, `#gather` section, script and stylesheet tags), `preview.mjs` (gathering walkthrough) | +| Companion line in plan 004 | header of `plans/004-yuhm-the-mission.md` | +| Pointer in the living handoff | top section of `yuhm/HANDOFF.md` | +| Pointer in koord | one sentence in the "Where the layer runs" row of `koord/HANDOFF.md`, Open decisions | +| Memory | `hand-yuhm-gatherings-plan.md` (indexed in `MEMORY.md`) | + +All of it is untracked or uncommitted. `prototypes/` sits outside the Vite build and the Netlify publish dir. + +## Decisions + +**Settled by koH, 2026-09-20.** "yes direct settle works. for first implementation, we can have a check list of users who have paid where we do it manually." So: + +- People pay each other outside the app (cash, Venmo, Cash App, Zelle). yuhm moves no money, stores no payment handles, checks no payment. HAND never holds the pot (koord record 0004, ruling 4). +- One **money holder** per gathering, the organizer unless they name someone. They tick a checklist by hand: `paid`, `covered`, `shop_anyway` (they vouch), or `dropped`. After the receipt, a second hand tick: `settled`. +- Every tick records who and when, writes an append-only audit row, and can be undone. The attendee sees "marked paid" or "not marked yet" on their own order. +- Only ticked, covered, and vouched orders reach the shop list, so a shopper never fronts money for a stranger. +- The plan has no payments or settlements table for this version (nine new tables, not ten). Stripe on the organizer's own account is phase G3 and needs a `/hand-tax` pass first. + +**Still open (end of plan 005, each with a recommendation):** where koord runs for yuhm [as a library inside yuhm; yuhm's tables are the store]; buffer on estimates [15 percent, rounded up to the dollar]; no refund on bought lines after the cutoff [yes, with name-a-collector and release-to-the-table]; pantry supplied by the host kitchen or pooled [organizer chooses, default pooled]; sort at the venue by bin or bag per person in the store [at the venue]; free-text dishes in the beta [allowed, they do not merge]; who can organize [coordinators only during the supervised pilot]; gatherings on the public food map [yes, a plain listing, when free or with covered spots]. **Where koord runs unblocks storage, so it comes first. Do not start G1 before it is answered.** + +## Findings that must not be rediscovered + +- **Migration 033 already has the gathering spine**: `food_venues` (a private home needs a host and a verification), `food_events` (capacity, `dietary_profile`, `address_release_at`, status ladder), `food_event_items`, `food_event_invites`, `food_event_rsvps` (waitlist), `food_event_assignments`, and the `potluck` lane in `food_lane_readiness`. 034 has `plan_food_potluck()` and `release_food_event_location()`. Only the undeployed coordination API (`yuhm/services/coordination-api`) uses them. Plan 003 phase 1 item 4 already said "Gather becomes real" on these tables. Do not design a new events table. +- **`food_payment_orders` (033) does not fit pooled groceries.** It requires a `commitment_id` and carries a HAND fee (5 percent, capped at $3). Plan 003 also lists a Stripe reconciliation defect to fix before Stripe goes live. +- **"Source it from our app" is first-generation work that is live**: inventory lots and allocations (031), harvest runs (030), rescues (028), drop-offs (040). +- **koord holds no state.** Pure tested modules for delivery, coordination, and events; no storage, no channel plugin, no API. Cold start: `cd koord && node src/cli.mjs status`, then `node src/cli.mjs decision list`. Record 0004 is accepted and marked never re-propose. Records 0001 to 0003, 0007, 0008 are proposed and unreviewed. + +## The design, in the choices that must stay consistent + +- The **source is per line, not per person**: `bring`, `network`, `buy`, `pantry`. +- **Recipe kits on a small item catalog**, written in units a store sells. That is what lets twelve lists add up into one. Free-text lines only merge on an exact match. A helper-drafted kit (later) is always confirmed by the person, and allergens come from confirmed lines. +- **Discrete items belong to a bin; pantry items are pooled** (three people need cumin, the shopper buys one jar) and split evenly. Package rounding: you pay for what was bought for you. +- **The cutoff is the commitment** (default 48 hours before). Four deadlines: cutoff, shop window (ends at most 90 minutes before start when there are chilled lines), start, settle by. +- **Dignity**: "cover me this time" is visible to the organizer and the money holder only; bins are numbers so no names sit on the sort table; the shopper sees bins, never names, never who paid. +- **Shares must equal the receipt to the cent**; the rounding remainder goes to the pot. +- **Food safety is in the model**: `temperature_class` per item, a cooler step, a short window, an allergen notice computed from locked orders, 033's private-home rules. +- **THE MISSION's rules hold**: attending never enrolls anyone; every attendee can claim a role; seeds only for people who opted in; a gathering may show on the food map as a plain listing with no game UI. +- **koord is the engine, yuhm the first host**: time poll, RSVP rules, share codes, reminders, deadline notices, and the delivery policy (quiet hours, caps, consent) come from koord; notices become rows in `food_outbox`, the same pipeline plan 004 builds. A notice carries a type and a key, not order contents. +- A gathering creates missions: `source_type` `shop_run` plus templates `gathering-shop`, `gathering-pickup`, `gathering-sort`, `gathering-setup`, `gathering-cleanup`, `gathering-host`, `teach-a-class`. Shoppers are thanked in seeds only; paying them raises worker classification questions. + +## The demo screens + +1. **The gathering**: ticket header (when, neighborhood, orders lock, spots, covered spots, host), the menu of three kits, open roles anyone can claim. +2. **Build my order**: batch steppers per dish; lines generate and merge; Bring / Network / Buy on every line (Network disabled when nothing is listed nearby); one swap control; a till-slip share (groceries, pantry split, 15 percent buffer); private "Cover me this time"; lock, then a confirmation with the paid state. +3. **Paid checklist** (viewing as Rosa, the money holder): tally band, tick rows with bin chip and audit line, "Skip ahead to pay-by (demo)" reveals Shop anyway and Drop; second tab "After: settle" with balances and settled ticks. +4. **Shop run** (viewing as a shopper): consolidated list by store section with bins and a per-line ceiling, chilled banner, "Can't find the chipotles?" swap, receipt step; second tab is the sort sheet (item, then bin chips with quantities). +5. **Pick up my bin**: a corn hanging tag with the bin number, pick list with check tiles, network lines and bring lines in their own groups, the balance slip, leftovers and compost. + +All names and prices are invented and the page says so. + +## Verified and not verified + +Verified with `preview.mjs` (headless Chromium, 1400 wide and 400 wide): no console errors; no horizontal overflow at phone width, including on a gathering screen; the whole path works (claim a role, join, add a dish, change a source, lock, tick paid, pay-by with shop anyway and drop, swap, tick all, receipt, sort sheet, pick, settle tab, settle tick); the settle tab's shares sum to its receipt total (a rendering check: both come from the same function, so it is not a test of the real invariant, which belongs to the build). + +Not verified: dark mode; a real phone; Safari and Firefox (the slip's zigzag edge and the ticket use gradients and masks); the published page as koH sees it; the three mermaid diagrams (they render only on the published page). Not in the demo: the organizer's create flow and the koord time poll. + +## How to resume + +- Preview locally: `node yuhm/prototypes/the-mission/preview.mjs ` with the Bash sandbox disabled. Screenshots `p13` to `p17b` and `p15b` are the gathering screens. +- Republish to the **same link**: `Artifact` publish with `url: https://claude.ai/artifact/FwbwZigM85r1ECY2D2PB4Q`, `file_path` = the `index.html`, `root` = the folder, `files: {"mission.css": "mission.css", "mission.js": "mission.js", "gather.css": "gather.css", "gather.js": "gather.js"}`. A new session must first read the artifact, **and the publish guard refuses until each already-published file has been read by `path`** (use `action: read` with `paths`), then diff them against the local copies before sending. A change to `index.html` alone can be published without `files`; the others are kept. Omit `icon` and `capabilities`. + +## Gotchas in the demo code + +- **Extension hook.** `gather.js` loads before `mission.js` and pushes one function onto `window.YUHM_DEMO_EXT`. `mission.js` calls it with `{ icon, shell, seedsTag, patch, state, render }` and merges the returned `{ group, screens, views, notes, actions, state }`. `SCREENS` and `GROUPS` are now derived from `CORE_SCREENS` and `CORE_GROUPS`. All gathering state lives in `state.g` and changes through `set()`, which replaces the object. +- **Action arguments.** The core dispatcher splits `data-act` on the first `:` only, so two-part arguments use a pipe: `gdish:beans|1`, `gsrc:lime|network`. +- **Rail width.** `.rail-row li` is 20 percent wide, so a group of five fits one row. A sixth screen wraps. +- **Scroll fix.** `.p-body > * { flex-shrink: 0 }` in `mission.css`. Without it, tall screens squash children that have `overflow: hidden` instead of scrolling, and clicks land on the wrong element. +- **Rotation.** The screen-enter animation ends on `transform: none`, which wipes a `transform: rotate()` on any direct child of `.p-body`. `.bin-tag` uses the `rotate` property instead. The core demo's thank-you note (`.thanks`) still has this bug. +- **Skipping ahead.** `ensureOnList()` and `ensureShopped()` carry the viewer through skipped steps when they jump straight to the shop or the bin screen, the same idea as the core demo auto-completing the first bite. +- The viewer's own order is named "Sam (you)" because the checklist is the money holder's screen. +- Preview labels must be unique substrings: "Pick up my bin" was chosen because "Arrive" is already a screen. + +## Environment notes + +- **GateGuard fired about twenty-five times this session, and the fix is to relaunch.** Memory (`machine-ecc-disabled`) explains it: ECC was switched off on 2026-09-19, but the disable only reaches `claude` processes started after it, and `/clear` does not reload plugins. This terminal's process predates the switch. **Quit and relaunch claude in this terminal** and GateGuard, the `ecc:*` agents, and the StrategicCompact notes go away. If you cannot relaunch: the first Bash call, the first edit of each existing file, and every new file are refused once; state the facts it asks for (callers or importers, affected functions, data files, the user's instruction verbatim), then retry the identical call. It re-arms after each new user message. +- **Memory index compacted.** A hook flagged `MEMORY.md` at 19.6KB against a 24.4KB read limit. It is now about 17KB: all 78 entries kept, hooks shortened, trimmed detail confirmed present in the topic files first (three phrases that were not stayed in the index). +- Another Claude session may share this checkout: stage by path, never `git add -A`. +- Headless Chromium needs the Bash sandbox disabled on this machine. +- koH's standing preferences that applied: momentum over questions, no multi-agent Workflow runs, no specific AI model names in public copy, buttons not prose for owner flows. + +## Paste this to start the next session + +> Read `yuhm/_handoff-2026-09-20-gatherings-koord.md` and `plans/005-yuhm-gatherings-koord.md`. We have a plan and five demo screens for yuhm's gatherings beta, coordinated by koord; money is direct settle with a hand-ticked paid checklist; nothing is built. [Then one of: "Here are my answers to the open decisions: …" / "Add the organizer's create flow and the time poll to the demo" / "Record koord-as-a-library as a koord decision and design the host adapter" / "More changes to the demo: …" / "Start G1."] diff --git a/yuhm/_handoff-2026-09-20-the-mission.md b/yuhm/_handoff-2026-09-20-the-mission.md new file mode 100644 index 00000000..2e21f7e0 --- /dev/null +++ b/yuhm/_handoff-2026-09-20-the-mission.md @@ -0,0 +1,83 @@ +# Session handoff: yuhm THE MISSION (demo + plan + design pass) + +Session: 2026-09-19 into 2026-09-20. Branch `agent/yuhm-network`. Written so the next session can start cold after `/clear`. + +## Status in one paragraph + +koH asked to gamify yuhm's first-visit sign-in and add an opt-in gamified layer called **THE MISSION** (missions tied to the route a person picks, delivery-app style offers, Duolingo-style engagement, email and WhatsApp notifications, an agent people can talk to). This session produced a clickable demo, a build plan, and a second design pass on the demo after koH asked for it to look less like a standard AI-generated page. **Nothing in the app changed: no `src/` edits, no migration, no deploy, no commits.** koH called the first version "really good"; the redesign was delivered and has had no feedback yet. The next real step is koH settling nine open decisions; then phase 1. + +## What exists + +| Thing | Where | +| --- | --- | +| Demo (private artifact, version 2) | https://claude.ai/artifact/FwbwZigM85r1ECY2D2PB4Q | +| Demo source | `yuhm/prototypes/the-mission/` : `index.html` (masthead, stage, the whole plan as HTML), `mission.css`, `mission.js`, `preview.mjs` | +| Build plan | `plans/004-yuhm-the-mission.md` (ground rules, vocabulary, first-visit flow, SQL sketch for ten tables, functions, notification pipeline and caps, WhatsApp helper, phases, nine decisions, risks) | +| Pointer in the living handoff | top section of `yuhm/HANDOFF.md` | +| Memory | `hand-yuhm-the-mission.md` (indexed in `MEMORY.md`) | + +All of it is untracked or uncommitted. `prototypes/` sits outside the Vite build and outside the Netlify publish dir, so a yuhm deploy does not ship it. + +## The proposal, in the choices that must stay consistent + +- Finding food never shows any game UI. `PRODUCT.md` already lists delivery-app urgency as an anti-reference. Plan 004 says a test should enforce this. +- Opt-in is separate from the account. Pause and leave are one tap each. +- Email + password and the one-step `EmailContinueForm` are untouched. The order changes: route pick, then a two-minute "first bite" (which doubles as the capabilities profile), then the form framed as "save your seeds". +- Vocabulary: routes (the same six as `WorldRole`), bites / runs / shifts / pair-ups, seeds, weekly rhythm with automatic rest weeks (not a daily streak), stamps, circle goal (no individual leaderboard). +- Reuse over new tables: seeds in `food_reputation_ledger`, notifications through `food_outbox` and `food_contact_channels`, the WhatsApp thread in `food_conversations` / `food_messages`, the helper bounded by `food_agent_mandates`, rescues keep `claim_food_rescue()` and friends. Ten new tables total. +- Bites are generated from real gaps in the public directory, which is what solves the cold start. +- WhatsApp facts, checked 2026-09-19, re-check at setup: the official Groups API caps a group at 8 including the business number, needs an Official Business Account badge, and has no buttons; marketing templates to US numbers have been paused since April 2025; a US utility template is about $0.006; replies inside 24 hours are free. Hence: a one-to-one helper on the Cloud API with utility templates only, a human-run announcement group per circle, nudges and check-ins by email or in-app only. Meta business verification is the slow part. + +## The design pass (artifact version 2) + +koH's ask: "polish the design a little better, use some nicer components, make it look a little less like the standard claude designs." Done with `/impeccable polish` (plus its `bolder` and `brand` references). + +What made version 1 read as generic: cream ground with a terracotta headline word, small uppercase mono labels, pill chips, every block in the same thin rounded card, three identical stat tiles, a side-stripe callout. + +What version 2 does: + +- **Page:** masthead and phone stage share one drenched garden-green field (`--field: #173f31`) with a dot grid; "THE MISSION" at poster scale in oat and corn; a tilted scalloped patch "Demo + plan / Not built yet"; the screen selector is a rail of numbered stops in three labeled groups (First visit, The loop, Staying in touch) on a shared five-column grid; ground rules on a cacao band, plan on oat, the nine decisions close the page on a full corn band; ledger-ruled tables; phase timeline with colored numerals; callouts are filled blocks (the side stripe is banned by impeccable). +- **Phone components:** device frame with status bar, notch, home indicator; produce-colored sticker route tiles (`LOOK` map in `mission.js`: tomato, leaf, corn, aubergine, pea, carrot) whose color follows the person through later screens via `--rc` / `--rt` set on `#phone`; `patch()` generates embroidered stamps in SVG (scalloped path, stitched ring, text on two arcs); the offer is a perforated ticket (two half-width radial-gradient masks, `--stub` height); the weekly rhythm is a punch card (`.passport`, level `ring()`, seven punches, goal pips); "I'm free now" is a pressable bar with a radar pulse; check tiles instead of native checkboxes; calendar chips on slots; seed count-up and a handwritten taped note on the Done screen; WhatsApp typing dots and message bar. +- **Type:** Baloo 2 display, DM Sans body, **Barlow Condensed for small labels in place of DM Mono** (a proposal; the footer says so; one token, `--label`, to swap back), Caveat only for the thank-you note. +- Motion eases out with no bounce and turns off under `prefers-reduced-motion`. + +## Verified and not verified + +Verified with `preview.mjs` (headless Chromium, 1400 wide and 400 wide): no console errors, no horizontal overflow at phone width, all twelve screens render, the full accept → checklist → done path works, WhatsApp replies resolve (English and the Spanish pause), all six route tiles fit one screen. + +Not verified: dark mode (tokens are coded, never looked at); the three mermaid diagrams (they render only on the published page, not locally); a real phone; Safari and Firefox (the ticket uses CSS masks); the artifact page as koH sees it after publish. + +## Open items + +1. **Nine decisions for koH** (end of plan 004 and the corn band on the page), each with a recommendation: the words; whether the Eat route gets missions; weekly vs daily; leaderboard; whether seeds ever convert (run past `/hand-tax` first); WhatsApp scope; "Take part" on the second landing door; who creates missions at launch; the helper's name. **Do not start phase 1 until these are settled.** +2. **Offered, not built: make the decisions answerable on the page.** koH asked how artifacts save answers. The explanation given: a published page is static unless it declares a capability. For this, declare `capabilities: {db: {}}`; in the page `const db = await claude.use("db")` (it resolves later and may be `null`, so render first and light up); write one doc per decision (for example `decisions/3` → `{choice: 'agree'|'change', note}`); show a "6 of 9 settled" tally; read the answers back from a session with the `ArtifactData` tool (load it with ToolSearch). Saving to the db does not wake a session: koH says "read my decisions", or sends an artifact comment to Claude. Load the `artifact-capabilities` skill and read its `db.d.ts` before writing the code. The last message asked koH whether to build this; no answer yet. +3. Start Meta business verification early if WhatsApp stays in scope (needs entity documents; the 501(c)(3) filing is in progress). + +## Addendum, later on 2026-09-20: gatherings added (artifact version 3) + +A later session planned koord-coordinated gatherings (`plans/005-yuhm-gatherings-koord.md`) and added a fourth screen group, "Gatherings beta", to this demo. New files: `gather.js`, `gather.css`. `mission.js` gained an extension hook (`window.YUHM_DEMO_EXT`; `SCREENS` and `GROUPS` are now built from `CORE_SCREENS` / `CORE_GROUPS` plus extensions). **The republish `files` map below now needs four entries:** `mission.css`, `mission.js`, `gather.css`, `gather.js`. The publish guard also wants each already-published file read by `path` first. Details in the top section of `yuhm/HANDOFF.md`. + +## How to resume + +- Preview locally: `node yuhm/prototypes/the-mission/preview.mjs ` with the Bash sandbox disabled. `index.html` has no doctype or body on purpose: the artifact host wraps it, and `preview.mjs` builds the same wrapper. +- Republish to the **same link** from a new session: `Artifact` publish with `url: https://claude.ai/artifact/FwbwZigM85r1ECY2D2PB4Q`, `file_path` = the `index.html`, `root` = the folder, `files: {"mission.css": "mission.css", "mission.js": "mission.js"}`. Read the artifact first (a new session must, or the publish is refused). Omit `icon` and `capabilities` to keep what it has. +- Artifact rules that bit or nearly bit: external scripts and styles only from the allowlisted CDNs and Google Fonts; one invalid family name in a Google Fonts URL fails the whole stylesheet; keep a 16px side gutter (here it is the three-column grid on `.field` and `.plan > section`). + +## Gotchas in the demo code + +- `render()` replaces the phone's innerHTML on every action. Timers scheduled by an action must not be cleared by `render()` (that was a real bug: WhatsApp replies and the free-now search never resolved). Only the hold countdown (`holdTimer`) is per-render; `later()` callbacks settle state and repaint only if their screen is still showing. +- The enter animation is keyed on `#phone[data-enter="1"]`, set only when the screen changes, so in-screen taps do not replay it. `bite-done` sets `lastScreen = null` on purpose so the stamp animates. +- Jumping to a screen at or after "Save your spot" auto-completes the first bite so the board never shows 0 seeds; reaching Done awards the mission once (`missionDone`). +- Any test script must re-query the check tiles after each tap (the list goes stale). +- `.rail-row li.seen` must not outrank `[aria-current]` (selector order bug, fixed with `:not([aria-current])`). + +## Environment notes + +- Memory (`machine-ecc-disabled`) says the ECC plugin was switched off machine-wide on 2026-09-19. Its GateGuard "present these facts" write gate was still firing in this session to the very end, so expect it to be gone only in sessions started after the switch; if it still fires, state callers, no-duplicate, data files, and the verbatim instruction, then retry the same write. +- Another Claude session may be working in this checkout: stage by path, never `git add -A`. +- yuhm deploys are manual CLI and nothing here needs one. +- koH's standing preferences that applied: momentum over questions, no multi-agent Workflow runs, no specific AI model names in public copy (the helper is "the yuhm helper"). + +## Paste this to start the next session + +> Read `yuhm/_handoff-2026-09-20-the-mission.md` and `plans/004-yuhm-the-mission.md`. We have a demo and plan for yuhm's opt-in THE MISSION layer; nothing is built. [Then one of: "Here are my answers to the nine decisions: …" / "Make the nine decisions answerable on the artifact page with the db capability" / "More design changes to the demo: …" / "Start phase 1."] diff --git a/yuhm/_handoff-2026-09-30-pickup-runs.md b/yuhm/_handoff-2026-09-30-pickup-runs.md new file mode 100644 index 00000000..f0b1759b --- /dev/null +++ b/yuhm/_handoff-2026-09-30-pickup-runs.md @@ -0,0 +1,157 @@ +# Session handoff: yuhm pickup runs (run sheet), living docs, explainer videos + +Written 2026-10-01, at koH's request, so the work can continue after `/clear`. Branch `agent/yuhm-network`. Model in use: Fable 5.1. + +## Update, 2026-10-06: browser pass done (read this first) + +Committed and pushed: `8b011531a` (all the work) and `6c8c1eee7` (fixes). The whole practice run was walked in headless Chromium at 390 and 1280 wide and in Spanish (browser locale es-US): ask, checklist sheet, pick up, split, deliver, finish, Families, Seeds, Advanced, Plan a run. No console errors, no horizontal overflow, text fields at 16px. + +Fixed: phone header overflow at 390 (sync pill goes icon-only under 480px); Next up said the window was open when the runner arrived early (`reminders.ts`, with a test); forgotten families showed the stored English "A family" and "AF" initials (now `stopName()` in `helpers.ts` and an icon sticker); the step rail line painted over the done checks; Spanish "Voy solo" is now "Sin ayuda". + +Checked and left as is: the split honours never-needs, allergies, and microwave-only on the Oak Hill sample; Finish run works with a family still waiting (there is a waiting message); practice families stay out of the Families tab; toasts close after 6 s. + +The walk script is not in the repo; it lived in the session scratchpad. The local database container `yuhm-runs-pg` is gone: run `../command/supabase/tests/rebuild-local-db.sh` before the acceptance or parity tests. + +Next, in order: screen tests (including one proving `intent=food` shows nothing from the run sheet, and one in Spanish), entry links, then ask koH before applying 050 or deploying. Then the living docs page with wireframes, then the videos. `docs/LIVING-DOCS.md` now has a Pickup runs section. + +## Update, later on 2026-10-01: read this first, it supersedes the lists below + +The session stopped here when the account's usage limit was reached a second time. + +**Now done and tested (198 tests pass, 1 skipped; `npx tsc --noEmit` clean):** + +- All logic under `yuhm/src/runs/`: `messages.ts`, `portioning.ts`, `reminders.ts`, `repository.ts`, `store.ts` (offline queue), `snapshot.ts` (guest run sheet to changes), `sample.ts` (the Oak Hill practice run), each with tests. `testing/fakeServer.ts` is the test stand-in for the database. +- Every screen is **written and compiles**: `RunsApp.tsx` (shell, tabs, notices), `RunsHome.tsx`, `RunWizard.tsx`, `RunDetails.tsx`, `RunView.tsx`, `NextUp.tsx`, `stages/AskStage.tsx`, `PickupStage.tsx`, `SplitStage.tsx`, `DeliverStage.tsx`, `FinishView.tsx`, `FamilySheet.tsx` (profile and the ten-question checklist), `FamiliesTab.tsx`, `ProgressTab.tsx`, `AdvancedTab.tsx`, `AdvancedRun.tsx`, `AdvancedRules.tsx`, plus `ui.tsx`, `contact.tsx`, `context.tsx`, `helpers.ts`, `runs.css`. +- The route is wired: `/app/?mode=run` in `src/App.tsx`. + +**Not done. The screens have never been opened in a browser.** Treat the look and the flows as unverified. + +1. Browser pass first. Start the dev server with the Supabase env blank (`VITE_SUPABASE_URL= VITE_SUPABASE_ANON_KEY= npx vite --port 5199 --strictPort --host 127.0.0.1`), which gives guest mode with no calls to production. Drive Playwright with `--no-sandbox` (memory `machine-headless-chromium-sandbox`) at 390 wide and 1280 wide. Walk: welcome, "Try a practice run", Ask (contact button, answers, the checklist sheet), Pick up, Split, Deliver, Finish, then Families, Seeds, Advanced, and plan a real run. Fix what it shows. +2. Screen tests (none exist yet), including one proving `intent=food` shows nothing from the run sheet or the game, and one in Spanish. +3. Entry points: a link from the Contribute tab's delivery side in `SimpleExperience.tsx`, the world member menu, and a `workspace=runs` item in the coordinator dashboard (`sampleData.ts` `View`, `DashboardApp.tsx`). +4. Optional: PostgREST in front of the local container to prove the real API path. +5. The living docs page with wireframes, then the explainer videos. +6. Update `docs/LIVING-DOCS.md`, `command/supabase/migrations/README.md`, memory. Then tell koH and ask before applying 050 or deploying. + +Notes: `runStrings.ts` is about 1,500 lines. Sheets close with `history.back()` when this session opened them (`helpers.ts` `openSheet` / `closeSheet`). The `Sheet` is a custom dialog with a focus trap, not a native ``. Do not stop the dev server with `pkill -f` from the same shell command that names it: the pattern matches the shell itself. + +## What koH asked for, in order + +1. **A pickup-run tool** (set with `/goal`, so a stop hook holds the session until it is done). An organizer for someone picking food up from anywhere and sharing it out to several families. Test case: koH picks up at Oak Hill Baptist. It must split the haul into family portions, remind the runner who to contact and which portion goes where, keep a per-family checklist (what they never need, what they do not want, questions to ask them), check things off, give points even for a hard pickup window, apply "all of our gamified settings", include "an advanced control", and have the database and every screen "perfect". +2. **A full living docs page** of all our systems, with wireframes of all of it. Read as all of yuhm. koH has not confirmed that scope. +3. **Explainer videos** made with "a ffmpeg claude tool". Read as the HyperFrames video skills. Start at `/hyperframes-read-first`. Not yet checked. + +## Status in one paragraph + +The database layer is finished and tested. The app's logic layer is about two thirds written and what exists is tested, including a test that proves the phone and the database compute the same result for the whole Oak Hill run. **No screen exists yet**, the tool is not reachable from the app, and the docs page and videos are not started. Nothing is applied to production, nothing is deployed, nothing is committed. + +## What exists + +| Thing | Where | State | +| --- | --- | --- | +| Migration | `command/supabase/migrations/050_yuhm_food_runs.sql` | Done. Applies after 001 to 049 on the local Supabase Postgres image, and re-applies cleanly. **Not applied to production.** | +| Database test | `command/supabase/tests/food_runs_acceptance.sql` | Passes. Its checks were confirmed live by changing expected numbers and watching it fail. | +| Local database script | `command/supabase/tests/rebuild-local-db.sh` | Builds container `yuhm-runs-pg` (port 127.0.0.1:54329) with every migration. The container was left running. | +| Plan and design brief | `plans/006-yuhm-pickup-runs.md` | Written. The design brief in it is Claude's, not confirmed by koH. | +| Types and catalogs | `yuhm/src/runs/model.ts` | Done. Includes the `Op` / `Change` types that mirror the SQL changes. | +| Time helpers | `yuhm/src/runs/time.ts` | Done. No tests of its own. | +| Seeds and stamps | `yuhm/src/runs/scoring.ts` | Done, tested. | +| Change engine | `yuhm/src/runs/engine.ts` | Done, tested (14 tests in `engine.test.ts`). | +| Phone-vs-database test | `yuhm/src/runs/dbParity.test.ts` | Passes against the local container. Skipped unless `YUHM_RUNS_DB` is set. | +| Test fixture | `yuhm/src/runs/testing/oakHill.ts` | The Oak Hill run as a list of changes, shared by the tests. | +| The split | `yuhm/src/runs/portioning.ts` | Written, type-checks, **no tests yet**. | +| Next-up list and calendar file | `yuhm/src/runs/reminders.ts` | Written, type-checks, **no tests yet**. | +| All copy, English and Spanish | `yuhm/src/runs/runStrings.ts` | Written for the planned screens. Expect to add keys while building. | + +Last check before this handoff: `npx tsc --noEmit` clean; full yuhm suite 144 passed, 1 skipped (the parity test, which then passed on its own with the database named). + +## Still to build, in order + +1. `messages.ts`: prefilled messages in the family's language and the links that open them (see "Messages" below). Tests. +2. Tests for `portioning.ts` and `reminders.ts`. +3. `repository.ts`: calls to the database functions, with an injectable client so tests can fake it. +4. `store.ts`: the offline queue (see "Store" below). Tests. +5. `sample.ts`: the Oak Hill practice run as changes (`is_practice: true` on the run and its five sample families, no phone numbers). +6. Screens and `runs.css` (see "Screens" below). Route `/app/?mode=run` in `src/App.tsx`. A link from the Contribute tab and the member menus. A `workspace=runs` board in the coordinator dashboard. +7. Screen tests, including one that proves the food finder (`intent=food`) shows nothing from the run tool or the game. +8. Browser pass with headless Chromium at phone and desktop widths (memory `machine-headless-chromium-sandbox`: drive Playwright directly with `--no-sandbox`). Fix what it shows. +9. Optional but valuable: put PostgREST in front of the local container and run the real client against it, to prove the real API path. +10. The living docs page with wireframes of every yuhm system. Source text: `yuhm/docs/LIVING-DOCS.md` (its front matter says `canonical_path: /docs/`). +11. The explainer videos. +12. Update `yuhm/HANDOFF.md`, `yuhm/docs/LIVING-DOCS.md`, `command/supabase/migrations/README.md`, and memory. Then tell koH what is ready and ask before applying 050 to production or deploying. + +## What migration 050 does + +- **Run tables**, private to the runner who owns them (no anonymous read, no coordinator read): `food_run_households`, `food_runs`, `food_run_items`, `food_run_stops`, `food_run_portions`, `food_run_settings`, `food_run_events` (receipts plus activity log; ids only, never a name or a number). +- **Game tables**: `food_mission_enrollments` and `food_mission_stamps` (plan 004's columns), `food_mission_pauses`, `food_run_rules` (one row of seed values a coordinator can tune). Seeds go to the existing `food_reputation_ledger`, only for people who opted in. +- **One write path**: `apply_food_run_changes(p_changes jsonb, p_return_board boolean)`. Each change has a client `key` (replays are skipped), an `op`, and the phone's own `at` timestamp (kept when it is at most 90 days old and not in the future). Each change runs in its own savepoint. Refused ones come back in `failed` with the reason and do not block the rest. `outputs` holds the answer of `run.complete`. With `p_return_board` the fresh board comes back in the same call. +- **The changes**: `household.save`, `household.forget`, `run.save`, `run.status`, `run.check`, `run.leftovers`, `run.complete`, `run.delete`, `item.save`, `item.delete`, `stop.save`, `stop.order`, `stop.contact`, `stop.delivery`, `stop.intake`, `stop.delete`, `portion.set`, `portion.replace`, `settings.save`. +- **Reads**: `get_food_run_board()` (everything the app needs in one call), `get_food_run(id)` (one run plus its activity log), `get_food_run_circle_week()` (anonymous weekly totals). +- **Game functions**: `enroll_food_mission(goal)`, `set_food_mission_status('paused'|'active'|'left', until)`, `set_food_mission_goal(goal)`, `get_food_mission_progress()`. +- **Coordinators** (profile role `admin`): `set_food_run_rules(jsonb)`, `get_food_run_network(weeks)`. **Worker**: `prune_food_run_events()`. +- **Rules worth knowing**: a finished or cancelled run is read-only until reopened; a family marked "only for this run" is deleted when the run completes; practice runs and practice families never mix with real ones and never count; the weekly rhythm is read from the ledger, so deleting a run never erases it; finish seeds and the tough-window bonus need at least one family fed. +- **The numbers the tests pin**: the Oak Hill run earns 91 seeds, 126 with its seven first stamps (first run, full circle, zero waste, early bird, tight window, bilingual, cold keeper). + +## Decisions made without koH (say so when reporting) + +- "Apply all of our gamified settings" was taken as permission to build on plan 004's **recommended** answers: seeds, weekly rhythm, stamps, a circle goal in place of a leaderboard, seeds are never money, opting in is separate from the account. Plan 004 still lists its nine decisions as open. +- Seed values: ask 2 per family, checklist 3, pickup 10, delivered 5 per family, everyone who said yes got theirs 10, no waste 5, finish 10, each new stamp 5. Tough-window bonus 5 each, capped at 20. +- "An advanced control" was read two ways, and both are planned: an Advanced tab for the runner, and seed rules a coordinator can tune. +- A guest can build a run on their phone before signing in, then save it by signing in. +- Email reminders are left for later. Version one reminds through a calendar file with alarms and through alerts while the app is open. The yuhm Netlify functions have no service key today. +- The design skill (`/impeccable craft`) wants koH to confirm a design brief and wants image mock-ups. koH said to keep going without pausing, so the brief in `plans/006` is self-authored and unconfirmed, and no mock-ups were made (this environment cannot generate images). + +## Design decisions already made for the client + +**Store.** Two modes. Signed in: the phone keeps `base` (the server's last board) and `pending` (unsent changes), and shows `replay(base, pending)`. A tap applies through the engine at once, joins the queue, and a flush sends up to 100 changes with `p_return_board = true`; the answer replaces `base`, acknowledged changes leave the queue, `failed` ones are dropped with a visible notice. With no signal the queue waits and retries on reconnect and on focus. Cache key per user in localStorage. Guest: the same engine applied straight to a state saved under a guest key, no queue. On sign-in, offer to bring the guest data in by turning the guest state into changes (a `snapshotToOps` function: families, runs, items, stops, then the check-offs with their recorded times as `at`). On sign-out, clear the cache unless unsent changes remain. + +**Finishing a run.** `run.complete` is just another change. The engine returns a projected result at once (`projected: true`); the server's answer replaces it when the flush returns. In guest mode the finish screen says what the run would plant and offers sign-in. + +**Messages.** Six templates (ask, confirm, on my way, delivered, the questions, missed you), each in English and Spanish, with `{name}`, `{me}`, `{source}`, `{day}`, `{time}`, `{items}`. Links: `sms:?&body=`, `https://wa.me/?text=`, `tel:`, `mailto:`. One message per family, never a group message (it would expose numbers). Practice families have no number, so the screen shows the message instead of sending it. Tapping a contact button marks the family asked, with an undo. + +**Screens.** Route `/app/?mode=run`, with `tab=families|progress|advanced`, `run=`, `stage=ask|pickup|split|deliver`, `family=`, `new=1`, so the back button works. A tab bar at the thumb on phones. A run shows a ticket header (place, window countdown, status), a four-step rail, one "Next up" card whose button does the step, then the stage's list. + +- Ask: a row per family with a produce-colored sticker, what they skip, a contact button, then one-tap answers. A sheet holds the ten-question checklist; each answer saves on tap and updates the family's profile. +- Pick up: "I am here", a short checklist, a stepper per item for what actually arrived, quick-add tiles for common items. +- Split: "Suggest a split", then one numbered bag per family with steppers. Items left out show why. Problems (an allergy conflict, more given out than there is, leftovers) sit at the top. +- Deliver: the route in order with move earlier and later buttons, "On my way" (opens the message), "Delivered", "No one home", a cold-food timer, then one leftovers question and "Finish run". +- Finish: the drenched green field from THE MISSION demo, stamps, the seed count and where it came from. +- Families tab, Seeds tab (punch card, stamps, circle goal, pause and leave, or the opt-in card), Advanced tab (timing, sharing rules, message wording, manual overrides and a portions grid, activity log, export and erase, seed rules). + +**Look.** yuhm's brand theme (oat `#fbf6ea`, cacao ink `#3b2a22`, garden green `#2d6b50`, Baloo 2 for display, DM Sans for body, DM Mono for small labels) with THE MISSION demo's components (`yuhm/prototypes/the-mission/mission.css` and `mission.js` hold the sticker, ticket, punch card, patch SVG and bag tag). Rows, not cards. Fixed type scale. No em dashes in copy. Every text field at least 16px. Buttons at least 44px. Honor `prefers-reduced-motion`. + +## Things found along the way + +- **Baseline tests need the Supabase env blank**: `VITE_SUPABASE_URL= VITE_SUPABASE_ANON_KEY= npx vitest run`. With `yuhm/.env.local` loaded, 7 tests in `src/App.test.tsx` fail. That was already true before this session, and CI has no env. +- The parity test caught a real mismatch on its first run: the database's finish answer left out the seeds from stamps. Fixed in the migration. +- Ledger rows written in one transaction share `created_at`, so a run's stored `awards` list is in key order, not plan order. Compare it as a set and sort it for display. +- SQL `btrim` strips spaces only; the engine mirrors that (`stripSpaces`). Tag lists are sorted with `collate "C"` so both sides agree on order. +- Two other podman containers were running (`fable-dbcore-pg`, `fable-dbyuhm-a-pg`). They are not from this work. Leave them alone. +- Production's `schema_migrations` shows 043 to 049 and 041 but no row for 042. Not investigated. +- The Write tool refuses a file that a script changed until it is read again. +- `yuhm/src/runs/runStrings.ts` is about 1,500 lines. It is a catalog, so that is acceptable, but it could be split into one file per language. + +## Rules that still hold + +- Do not apply 050 to production or deploy without telling koH first. Take the migration number again at apply time (client sites share the folder; 050 was free on 2026-09-30). +- yuhm deploys are manual (memory `hand-yuhm-deploy`). Production SQL goes through the management API (memory `hand-supabase-mgmt-api-access`). Migrate first, deploy second. +- Another session may share this checkout: stage by path, never `git add -A`. +- No multi-agent Workflow runs (memory `feedback-no-ultracode-workflows`). No specific AI model names in public copy. Momentum over questions. +- Family details are private to the runner. Families never see game screens. Nothing from the tool appears in the food finder. + +## How to resume + +```bash +cd /home/koh/Documents/handprotocol/yuhm +VITE_SUPABASE_URL= VITE_SUPABASE_ANON_KEY= npx vitest run # 144 pass, 1 skipped +npx tsc --noEmit # clean +../command/supabase/tests/rebuild-local-db.sh # only if the container is gone +podman exec -i yuhm-runs-pg psql -U postgres -h localhost -d postgres -v ON_ERROR_STOP=1 -q < ../command/supabase/tests/food_runs_acceptance.sql +YUHM_RUNS_DB=yuhm-runs-pg VITE_SUPABASE_URL= VITE_SUPABASE_ANON_KEY= npx vitest run src/runs/dbParity.test.ts +``` + +Any change to the migration means: rebuild the container, re-run the acceptance test, re-run the parity test. + +## Paste this to start the next session + +> Read `yuhm/_handoff-2026-09-30-pickup-runs.md` (the update section at the top first) and `plans/006-yuhm-pickup-runs.md`. yuhm's pickup-run tool is written end to end and passes 198 tests, but its screens have never been opened in a browser. Start the dev server with the Supabase env blank, walk the practice run in headless Chromium at phone and desktop widths, and fix what you see. Then add the screen tests and the entry links, build the living docs page with wireframes of every yuhm system, and make the explainer videos. Keep going without stopping to ask. Do not apply 050 to production or deploy without telling me first. diff --git a/yuhm/_handoff-2026-10-06-auth-signin.md b/yuhm/_handoff-2026-10-06-auth-signin.md new file mode 100644 index 00000000..04eba691 --- /dev/null +++ b/yuhm/_handoff-2026-10-06-auth-signin.md @@ -0,0 +1,77 @@ +# yuhm handoff: sign-in fix, Resend auth email, calmer sign-in design (2026-10-06) + +Status: **done and live.** Commit `47edb4ab6` on `agent/yuhm-network`, pushed, deployed to https://yuhm.handprotocol.org. Three small follow-ups wait on koH (bottom of this file). + +## What koH reported + +Login and signup were failing on yuhm: "We could not finish creating your account. Please try again or contact yuhm." The night before it said "email rate limit exceeded". koH asked whether to switch to magic links. + +## Cause + +Not the app code. Two settings on the shared HAND Supabase project (`vconmgerblqbworcqkvr`): + +1. **Confirm email was on** (`mailer_autoconfirm = false`). yuhm's one-step Continue (`src/lib/auth.ts`, `continueWithEmail`) assumes it is off: it signs up, expects a session, and otherwise signs in with the same password. With confirmation on, the account was created unconfirmed and the sign-in was refused with `email_not_confirmed`, which `getAuthErrorMessage` shows as "We could not finish creating your account". +2. **No custom SMTP.** Supabase's built-in mailer allows 2 auth emails per hour for the whole project (their docs: "2 emails per hour with the built-in email provider", "not meant for production use"). Every failed signup sent a confirmation email, so two attempts used the hour. + +Nobody knows when Confirm email was turned on. The last account created without a confirmation email is from 2026-05-22; the first with one is 2026-07-23. + +## What was changed on Supabase (live, no migration) + +All through the management API (`PATCH /v1/projects//config/auth`; access method in the memory note `hand-supabase-mgmt-api-access`). + +| Setting | Before | Now | +|---|---|---| +| `mailer_autoconfirm` | false | **true** (dashboard: Confirm email OFF) | +| `smtp_host` / `smtp_port` / `smtp_user` | none | `smtp.resend.com` / `465` / `resend` | +| `smtp_pass` | none | send-only Resend key named **`supabase-auth-smtp`**, limited to `handprotocol.org` | +| `smtp_admin_email` / `smtp_sender_name` | none | `hand@handprotocol.org` / `Yuhm Network` (koH's choice, set later the same day) | +| `rate_limit_email_sent` | 2 per hour | 30 per hour (adjustable now) | + +Also: two stuck unconfirmed accounts were confirmed by hand (`update auth.users set email_confirmed_at = now()`), so the passwords those people typed now work. One account with a mistyped `gmai.com` address was left unconfirmed. + +Command Center shares these auth users. Its `handle_new_user()` trigger starts every signup as `pending`, so turning confirmation off grants nobody access there. Its auth emails now carry the sender name `Yuhm Network` and the yuhm-branded templates below. + +## Branded auth emails (same day, after koH received the first reset email) + +koH asked for the sender to read "Yuhm Network" and for a proper email with a footer "from yuhm network by HAND". Five templates were restyled and applied to Supabase: password reset, confirm email, sign-in link, email change, invite. Each has the yuhm wordmark, one heading, one sentence, one green button, a one-line Spanish version, a "didn't ask for this?" line, and the footer "yuhm network by HAND" with links. Sources live in `docs/auth-email/` (`.html`, `subjects.json`); they are applied by hand, see `DEPLOY.md`. Only the reset email is sent today. The notification and verification-code templates are still Supabase's stock ones and are not in use. A test reset email was accepted through the new template; how it renders in Gmail and Apple Mail was not checked by me. + +## Sign-in design pass (commit `47edb4ab6`) + +koH: the login "feels a little overwhelming". Both sign-in surfaces were cut down. + +- **Sign-in page** (`src/LoginScreen.tsx`): one-line heading ("Welcome to yuhm." / "Qué bueno verte."), one line of copy, no eyebrow on the main screen. "Browse as a guest" and "Just want email updates?" are two quiet links on one row (`.login-alt`, `.login-alt-link`); the outlined guest button now shows only on the reset and updates screens. +- **Guest sheet** (`src/SimpleExperience.tsx`): the second explanatory paragraph is gone; one small note sits under the password field. +- **Shared form** (`src/AuthForm.tsx`, `EmailContinueForm`): two new optional props. `passwordAside` renders beside the Password label (forgot-password goes there); `note` renders one quiet line under the password field. The password input is now linked to its label by `useId`, not nested in it. Label text is unchanged, so `getByLabelText('Email address' | 'Password')` still works. +- **Strings** (`src/i18n.tsx`, EN + ES): `login.title`, `login.continueCopy`, `login.signupCopy`, `login.updatesSwitch`, `simple.sheet.authCopy` shortened. `login.enterNetwork` is no longer used. +- **Styles**: one block at the end of the login section of `src/styles.css`, headed "Calmer sign-in". +- **Docs**: `DEPLOY.md` now records the Resend SMTP setup and the failure it prevents. + +## Verification + +- Signup and login against the live project by API: session returned both times. +- Three password-reset emails in a row through Supabase to a Resend test inbox: all accepted (the old cap stopped at two). +- `tsc --noEmit` clean. 130 of 130 tests pass on a clean export of the commit. +- Deployed from that clean export (CLI deploy, cryptokoh token, per `DEPLOY.md`). Live bundle carries the new heading and the Supabase ref; security headers present; `wxl` host still redirects. +- On the live site at phone width, a throwaway `@handprotocol.org` account was created through the real form: no error, session stored, landed on `/app/?intent=food`. All test accounts were deleted. +- Not checked: a reset email arriving in a real inbox (delivery and spam placement). + +## Things that will trip you up + +- **Seven tests in `src/App.test.tsx` fail when `yuhm/.env.local` exists.** They assert the "needs the yuhm database" gates, which only show when no database is configured. Move `.env.local` aside to run the suite, and put it back before building: a build without it ships a bundle with no database connection. +- **`netlify deploy` now runs the build itself** in the folder it is called from, so `.env.local` must be present there. +- **Deploy from a clean export, not this checkout.** The working tree holds unfinished pickup-runs work (`src/App.tsx`, `src/runs/`). `git archive yuhm | tar -x -C ` plus a copy of `.env.local` worked. +- **Do not start a dev server and stop it with `pkill -f` from the same shell line pattern**: the pattern matches the calling shell too. +- **When reading Netlify env vars, select the one key by exact name.** A filter on `RESEND`/`EMAIL` printed two other secrets into a session transcript (see follow-ups). + +## Decisions made with koH + +- Email and password stays. Magic links were considered and set aside; with Resend in place they are now possible if koH asks again. +- Auth email goes through Resend. Self-hosting mail on the VPS was discussed and not pursued (deliverability and upkeep). + +## Waiting on koH + +1. **Rotate two Resend secrets** that were printed into a local session transcript on 2026-10-06: `RESEND_FULL_ACCESS_API_KEY` and `RESEND_WEBHOOK_SECRET` (both live in the `handprotocol` Netlify site's env vars). Rotate in Resend, then update Netlify. +2. **Try one real "Forgot password?"** on the live site with a personal inbox, to confirm the email arrives and is not in spam. +3. **Command Center auth emails** now arrive as "Yuhm Network" with yuhm branding, because the project has one sender and one template set. Fine while Command Center sends none; revisit if it starts to. + +Not started, only noted: the stray `gmai.com` account could be deleted; `login.enterNetwork` could be removed from the string catalog. diff --git a/yuhm/docs/LIVING-DOCS.md b/yuhm/docs/LIVING-DOCS.md index a1c05342..b806c59b 100644 --- a/yuhm/docs/LIVING-DOCS.md +++ b/yuhm/docs/LIVING-DOCS.md @@ -2,7 +2,7 @@ title: yuhm Living Documentation description: Current product behavior, community workflows, safety boundaries, and development status for yuhm. status: living -last_updated: 2026-08-11 +last_updated: 2026-10-06 canonical_path: /docs/ --- @@ -44,16 +44,19 @@ Status labels used throughout this document: - **Needs migration:** Implemented in code, but requires the latest database migration before production use. - **Ready to deploy:** Implemented and connected to the production database, but the current application files still need deployment. - **Prototype:** Visible for evaluation, but not yet a complete persisted workflow. +- **In progress:** Being built in code. Not deployed, and its migration is not applied. - **Planned:** Documented direction, not yet implemented. | Area | Status | Current behavior | |---|---|---| -| Public landing page | Live | Starts with three direct paths: find food, contribute food or delivery help, and gather around a shared table. | -| Public app shell | Live | Phones use a full-screen command-bar map as the Find food base. Its menu keeps Find food, Contribute, Gather, Requests, account state, and Advanced mode reachable. Other intents retain their focused mobile layouts while they are migrated into the shell. | +| Public landing page | Live | Opens on two doors above the fold: **Find food near me** (no account) and **Sign in**. The find, contribute, and gather path cards remain below as optional deep links. | +| Living world | Live | Bare `/app/` opens the living map on every viewport, with a short one-screen intro and a **Sign in** pill in its top bar for guests. | +| Public app shell | Live | Focused intents keep their own layouts. On phones, Find food uses a full-screen command-bar map. Its menu keeps Find food, Contribute, Gather, Requests, account state, and Advanced mode reachable. Other intents retain their focused mobile layouts while they are migrated into the shell. | | Experience modes | Live | The public interface is the default. Advanced mode is an explicit, remembered entry to coordination, routes, inventory, and reporting, with a visible return to the public interface. | | Gather experience | Prototype | Shows clearly labeled sample gathering patterns and uses focused action sheets for joining or planning. It does not claim that sample gatherings are scheduled events. | | WaterDrop link | Live | Opens the WaterDrop river stewardship app. | -| Email and password authentication | Live | Signup creates a session immediately, login uses email and password, reset and recovery remain email-based, and members can sign out. | +| Email and password authentication | Live | One **Continue** form takes an email and password: it signs an existing member in, or creates the account with the same details. No email confirmation step. Reset and recovery remain email-based, and members can sign out. | +| Account email | Live | Password-reset and other account emails are sent through Resend, branded as Yuhm Network, with a Spanish line in each. | | Email-only updates | Live | Visitors can submit only an email to hear about platform progress and future offerings. This does not create an account or grant write access. | | Member identity and profile readiness | Needs migration | The interface uses the active Supabase identity. Migration 026 backfills any missing profile rows required by food-record foreign keys. | | Public community requests | Live | Loads public requests from Supabase when configured. | @@ -76,6 +79,9 @@ Status labels used throughout this document: | Harvest runs | Needs migration | Coordinators plan private food delivery, opt-in compost return, and compost drop-off stops, then assign one eligible Contributor. Assigned people record ordered outcomes, while safety checkpoints and incidents block unsafe completion. | | Inventory | Needs migration | Coordinators receive only accepted rescues, reserve and distribute quantities, record storage checks and holds, and preserve every balance in a ledger. | | Impact reports | Prototype | No complete auditable reporting view exists yet. | +| Pickup runs (run sheet) | In progress | A runner's own tool for one pickup shared out to several families: ask each family, count the haul, split it fairly, deliver, finish. Works on the phone without an account as a practice or guest run. Not deployed; migration 050 is not applied. See [Pickup runs](#pickup-runs). | +| THE MISSION | Planned | An opt-in game layer with missions, seeds, and stamps. Plan and clickable demo only. | +| Gatherings | Planned | Food prep gatherings and classes, where each attendee builds an itemized order and money settles directly between people. Plan and demo only. | ## Access and accounts @@ -85,9 +91,9 @@ Visitors who only want to follow yuhm can join the updates list with one email a The bottom-right bell keeps this signup available throughout yuhm. Its second panel accepts public product feedback without requiring an account. Feedback is sent to HAND Command Center and the HAND operations inbox. If the shared feedback service cannot be reached, the note stays in the current browser and retries after reconnection or focus. -The public entry presents three starting choices: find food, contribute, or gather. On phones, Find food opens the full-screen command-bar map. Its Menu sheet keeps Find food, Contribute, Gather, Requests, account state, and Advanced mode reachable without permanently consuming map space. Contribute keeps food drafts, delivery-run previews, compost-return guidance, and Contributor setup prompts in its focused mobile layout. Gather uses the same focused pattern for shared meals. Requests has a short privacy-aware composer and a readable list of open needs. These remaining intents will move into the shared mobile shell incrementally. Drafts survive the sign-in handoff in the current browser session. Intent parameters select the public experience only and never grant write access. +The landing page offers two doors: **Find food near me**, which opens the finder with no account, and **Sign in**. The find, contribute, and gather path cards below them remain as deep links. On phones, Find food opens the full-screen command-bar map. Its Menu sheet keeps Find food, Contribute, Gather, Requests, account state, and Advanced mode reachable without permanently consuming map space. Contribute keeps food drafts, delivery-run previews, compost-return guidance, and Contributor setup prompts in its focused mobile layout. Gather uses the same focused pattern for shared meals. Requests has a short privacy-aware composer and a readable list of open needs. These remaining intents will move into the shared mobile shell incrementally. Drafts survive the sign-in handoff in the current browser session. Intent parameters select the public experience only and never grant write access. -The public interface is the default, including at `/app/`. The mobile Menu includes an explicit **Advanced mode** entry for coordination, routes, inventory, and reports. The advanced interface labels itself clearly and includes a **Use simple mode** control that clears the remembered advanced preference. Legacy links with a specific `workspace` parameter still open the requested operational tool directly. +Bare `/app/` opens the living world. The coordinator dashboard opens only when asked for (`mode=advanced` or a `workspace` link). The mobile Menu includes an explicit **Advanced mode** entry for coordination, routes, inventory, and reports. The advanced interface labels itself clearly and includes a **Use simple mode** control that clears the remembered advanced preference. Legacy links with a specific `workspace` parameter still open the requested operational tool directly. Location sharing remains optional. On phones, yuhm asks only after the visitor presses Locate in the command bar. When allowed, yuhm centers the map and sorts matching listings by distance. The visitor's coordinates remain in browser memory for that calculation and are not written to Supabase, local storage, an account, or an engagement event. Denial, timeout, or ignoring Locate leaves the complete Austin map available. @@ -109,9 +115,9 @@ An authenticated account is required to: Write access always follows the active Supabase session. A query parameter does not grant write access. -New accounts do not require an email-confirmation step. A successful signup starts the member session, sends a best-effort notice through HAND's existing operations-email path, and returns to the relevant simple intent when one was provided, otherwise it opens Find food. The signup fields use standard password-manager metadata so the browser can offer to save the password locally. Whether that prompt appears is controlled by the member's browser and password-manager settings. +Sign-in is one step. The **Continue** form takes an email and password: an existing member is signed in, and an unknown email gets a new account with the same details. There is no separate sign-up form and no email-confirmation step. Every surface shows **Sign in** at the top for guests, and sign-in returns the member to where they started. A successful signup starts the member session, sends a best-effort notice through HAND's existing operations-email path, and returns to the relevant simple intent when one was provided, otherwise it opens Find food. The signup fields use standard password-manager metadata so the browser can offer to save the password locally. Whether that prompt appears is controlled by the member's browser and password-manager settings. -Password-reset emails return to `https://yuhm.handprotocol.org/app/?mode=recovery`, where the member chooses a new password. After a successful update, yuhm ends the recovery session and opens the login page so the member can sign in with the new password. The production callback must remain in the Supabase redirect allowlist. +Account emails (password reset, and the confirmation, sign-in link, email change, and invite templates kept ready) are sent through Resend from `hand@handprotocol.org` as Yuhm Network, with a one-line Spanish version and a short footer. Password-reset emails return to `https://yuhm.handprotocol.org/app/?mode=recovery`, where the member chooses a new password. After a successful update, yuhm ends the recovery session and opens the login page so the member can sign in with the new password. The production callback must remain in the Supabase redirect allowlist. The command center waits for Supabase session restoration before deciding whether write actions are available. Authenticated members see their current account identity and can sign out from the navigation account menu. Signing out keeps public browsing open and removes write access. @@ -167,6 +173,23 @@ Every submission requires the member to confirm that the destination is a commun The recognition board ranks Contributors by completed drop-off count. Signed-in members can view the complete internal board. Public recognition is a separate, reversible account choice and is off by default. The public board includes only Contributors who opt in. Public map records from a non-opted-in Contributor use the generic name `yuhm Contributor`. +## Pickup runs + +> **Status: in progress.** Built in code and tested. Not deployed, and migration 050 is not applied. + +The run sheet, at `/app/?mode=run`, is a tool for one person who picks food up once and shares it out to several families. A run moves through four steps: + +1. **Ask.** Each family on the run gets a contact button that opens a prefilled message in their language (text, WhatsApp, call, or email), then a one-tap answer: Yes, Not this time, or No answer. A ten-question checklist records what each family never needs, does not want, or cannot eat. +2. **Pick up.** The runner marks arrival, works through a short checklist, and counts what actually arrived. +3. **Split.** Suggest a split gives every family that can take an item one before anyone gets two, with the rest following household size. Allergies, things a family never needs, and cooking limits keep items out of a bag, and each left-out item shows why. Bags can be adjusted by hand. +4. **Deliver.** The route in order, with On my way, Delivered, and No one home, a cold-food timer, and one leftovers question before Finish run. + +A practice run at Oak Hill Baptist with five sample families can be tried without an account. Nothing in a practice run is sent to anyone or counts toward anything. A guest can plan a real run on their phone and save it by signing in. The phone keeps working without a signal and catches up when it reconnects. + +**Privacy.** Family details belong to the runner alone. Coordinators cannot read them, families never see game screens, and nothing from the run sheet appears in the food finder. Messages go to one family at a time, never as a group, so numbers are never shared. A family kept only for one run is forgotten when that run finishes and is shown afterward only as "A family". + +**Seeds.** Runners who opt in earn seeds for asking, picking up, delivering, finishing, and for hard runs (cold food, doing it alone, a tight window). Seeds are thanks, not money. There is no public ranking, and opting in is separate from having an account. + ## `FOOD IS HERE!` alerts `FOOD IS HERE!` is for public, time-sensitive food availability. @@ -487,6 +510,17 @@ Sample content should remain labeled until it is replaced by auditable records. 4. Verify Resend delivery on a Netlify deploy preview. 5. Add automated accessibility checks at desktop and 360px widths. +### Finish and pilot pickup runs + +1. Add screen tests, including one proving the food finder shows nothing from the run sheet or the game. +2. Link the run sheet from the Contribute tab, the member menus, and the coordinator dashboard. +3. Apply migration 050 to production, then deploy, then run the Oak Hill Baptist pickup as the first real run. + +### Decide THE MISSION and gatherings + +1. Settle the open decisions in plans 004 and 005. Where the booking service (koord) runs comes first. +2. Start Meta business verification early if the WhatsApp helper stays in scope. + ## Documentation maintenance When product behavior changes: @@ -501,6 +535,22 @@ When this document becomes HTML, preserve the headings and anchors so existing l ## Change log +### 2026-10-06 + +- Fixed signup: the one-step Continue form works again with email confirmation off. Account email now goes through Resend and is branded Yuhm Network. +- Simplified the sign-in page and the guest sign-in sheet. +- Pickup runs (in progress): the first browser pass of the practice run at phone and desktop widths, in English and Spanish, with fixes to the phone header, the pickup-window reminder, and forgotten-family names. + +### 2026-09-08 + +- Cut onboarding to two doors (Find food near me, Sign in) and one Continue step. +- Gave the sign-in page, finder, and guest sheet the landing page's brand theme, with Sign in at the top of every surface. + +### 2026-08-24 + +- Renamed WXL:FOOD to yuhm. The live host moved to `yuhm.handprotocol.org`, and the old host redirects. +- Made the living world the default `/app/` experience. + ### 2026-08-11 - Brought live community food spots and FOOD IS HERE alerts to the anonymous simple finder and mobile map, with a countdown banner toward each alert's six-hour expiry. diff --git a/yuhm/docs/auth-email/confirmation.html b/yuhm/docs/auth-email/confirmation.html new file mode 100644 index 00000000..b85c42f0 --- /dev/null +++ b/yuhm/docs/auth-email/confirmation.html @@ -0,0 +1,33 @@ + + + + + + +Confirm your email. + + +
One tap to confirm your email and finish your Yuhm account.
+ + +
+ + + + +
Yuhm.
+

Confirm your email.

+

Welcome to Yuhm. Tap the button to confirm this email address and finish setting up your account.

+
+Confirm my email +
+

En español: toca el botón para confirmar tu correo y terminar de crear tu cuenta de Yuhm.

+

Didn't sign up for Yuhm? Ignore this email and nothing happens.

+
+Yuhm Network by HAND
+Neighbors moving good food to each other in Austin, Texas.
+yuhm.handprotocol.org +
+
+ + diff --git a/yuhm/docs/auth-email/email_change.html b/yuhm/docs/auth-email/email_change.html new file mode 100644 index 00000000..b82c6328 --- /dev/null +++ b/yuhm/docs/auth-email/email_change.html @@ -0,0 +1,33 @@ + + + + + + +Confirm your new email. + + +
One tap to confirm the new email on your Yuhm account.
+ + +
+ + + + +
Yuhm.
+

Confirm your new email.

+

You asked to change the email on your Yuhm account to {{ .NewEmail }}. Tap the button to confirm it.

+
+Confirm new email +
+

En español: toca el botón para confirmar el correo nuevo de tu cuenta de Yuhm.

+

Didn't ask for this? Ignore this email and your account email stays the same.

+
+Yuhm Network by HAND
+Neighbors moving good food to each other in Austin, Texas.
+yuhm.handprotocol.org +
+
+ + diff --git a/yuhm/docs/auth-email/invite.html b/yuhm/docs/auth-email/invite.html new file mode 100644 index 00000000..adadbd6b --- /dev/null +++ b/yuhm/docs/auth-email/invite.html @@ -0,0 +1,33 @@ + + + + + + +You are invited. + + +
One tap to accept your invitation to Yuhm.
+ + +
+ + + + +
Yuhm.
+

You are invited.

+

Someone invited you to Yuhm, Austin's neighbor-to-neighbor food network. Tap the button to accept and set up your account.

+
+Accept the invitation +
+

En español: toca el botón para aceptar la invitación y crear tu cuenta de Yuhm.

+

Not expecting this? Ignore this email and nothing happens.

+
+Yuhm Network by HAND
+Neighbors moving good food to each other in Austin, Texas.
+yuhm.handprotocol.org +
+
+ + diff --git a/yuhm/docs/auth-email/magic_link.html b/yuhm/docs/auth-email/magic_link.html new file mode 100644 index 00000000..96ed6b46 --- /dev/null +++ b/yuhm/docs/auth-email/magic_link.html @@ -0,0 +1,33 @@ + + + + + + +Your sign-in link. + + +
One tap to sign in to Yuhm.
+ + +
+ + + + +
Yuhm.
+

Your sign-in link.

+

Tap the button to sign in to Yuhm. No password needed.

+
+Sign in to Yuhm +
+

En español: toca el botón para entrar a Yuhm. No necesitas contraseña.

+

Didn't ask for this? Ignore this email. The link works once and expires in an hour.

+
+Yuhm Network by HAND
+Neighbors moving good food to each other in Austin, Texas.
+yuhm.handprotocol.org +
+
+ + diff --git a/yuhm/docs/auth-email/recovery.html b/yuhm/docs/auth-email/recovery.html new file mode 100644 index 00000000..05d2fdbe --- /dev/null +++ b/yuhm/docs/auth-email/recovery.html @@ -0,0 +1,33 @@ + + + + + + +Choose a new password. + + +
One tap to set a new password for your Yuhm account.
+ + +
+ + + + +
Yuhm.
+

Choose a new password.

+

Someone asked to reset the password for your Yuhm account. Tap the button and pick a new one.

+
+Choose a new password +
+

En español: toca el botón para elegir una contraseña nueva para tu cuenta de Yuhm.

+

Didn't ask for this? Ignore this email and your password stays the same. The link works once and expires in an hour.

+
+Yuhm Network by HAND
+Neighbors moving good food to each other in Austin, Texas.
+yuhm.handprotocol.org +
+
+ + diff --git a/yuhm/docs/auth-email/subjects.json b/yuhm/docs/auth-email/subjects.json new file mode 100644 index 00000000..e773ae01 --- /dev/null +++ b/yuhm/docs/auth-email/subjects.json @@ -0,0 +1,7 @@ +{ + "recovery": "Choose a new Yuhm password", + "confirmation": "Confirm your email for Yuhm", + "magic_link": "Your Yuhm sign-in link", + "email_change": "Confirm your new email for Yuhm", + "invite": "You are invited to Yuhm" +} diff --git a/yuhm/prototypes/the-mission/gather.css b/yuhm/prototypes/the-mission/gather.css new file mode 100644 index 00000000..0c7366f3 --- /dev/null +++ b/yuhm/prototypes/the-mission/gather.css @@ -0,0 +1,82 @@ +/* Gatherings (beta) screens. Loaded after mission.css and built on its tokens. + Dark surfaces mark someone else's tools (the money holder, the shopper); corn marks your bin. */ +.persona { display: flex; align-items: center; gap: 8px; margin: -6px 0 -2px; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--card); font-size: .84rem; } +.persona b { font-weight: 700; } + +.item.claimed .dot { background: var(--action); color: #fff; } +.item.claimed small { color: var(--action); } +.ck small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-soft); } + +/* batches stepper */ +.qty { flex: none; display: flex; align-items: center; gap: 8px; } +.qty button { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); display: grid; place-items: center; box-shadow: 0 3px 0 var(--ink); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); } +.qty button:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); } +.qty button[disabled] { opacity: .3; cursor: not-allowed; box-shadow: none; } +.qty b { min-width: 1.2ch; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1; font-variant-numeric: tabular-nums; } + +/* order lines, a source on every one */ +.lines { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; } +.line { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 8px; } +.line + .line { border-top: 1px solid var(--line); } +.line-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 10px; font-size: .92rem; } +.line-top b { font-weight: 600; } +.line-top span { color: var(--ink-soft); font-size: .82rem; white-space: nowrap; } +.line-top i { font-style: normal; font-family: var(--display); font-weight: 700; min-width: 3.4ch; text-align: right; font-variant-numeric: tabular-nums; } +.line small { font-size: .78rem; color: var(--ink-soft); } +.src { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 12px; background: #eadfc4; } +.src button { border: 0; background: none; border-radius: 9px; min-height: 34px; font-weight: 600; font-size: .8rem; color: var(--ink-soft); transition: background 160ms, color 160ms; } +.src button[aria-checked="true"] { background: var(--ink); color: var(--card); } +.src button[disabled] { opacity: .38; cursor: not-allowed; text-decoration: line-through; } +.cold { font-style: normal; font-family: var(--label); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: #efe6f4; color: var(--ink); padding: 1px 6px; border-radius: 4px; } + +/* a till slip: shares, receipts, balances */ +.slip { position: relative; background: var(--card); padding: 14px 16px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 7px; font-size: .9rem; border-radius: 14px 14px 0 0; filter: drop-shadow(0 2px 0 rgba(59, 41, 34, .16)) drop-shadow(0 10px 10px rgba(59, 41, 34, .1)); } +.slip::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; background: linear-gradient(135deg, var(--card) 50%, transparent 50%) 0 0 / 8px 8px repeat-x, linear-gradient(225deg, var(--card) 50%, transparent 50%) 0 0 / 8px 8px repeat-x; } +.slip > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } +.slip span { color: var(--ink-soft); } +.slip b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } +.slip .tot { border-top: 2px dashed #cdbf9f; margin-top: 3px; padding-top: 9px; } +.slip .tot span { color: var(--ink); font-weight: 600; } +.slip .tot b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; } + +/* the money holder's checklist */ +.tally { display: flex; background: var(--ink); color: var(--card); border-radius: 16px; padding: 12px 4px; } +.tally div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-inline: 12px; } +.tally div + div { border-left: 2px dashed rgba(255, 253, 246, .3); } +.tally b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; color: var(--corn); font-variant-numeric: tabular-nums; } +.tally span { font-size: .78rem; opacity: .85; } +.led { display: grid; grid-template-columns: 26px 26px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 10px 12px; font-size: .92rem; } +.led .box, .shop-row .box { width: 26px; height: 26px; padding: 0; border-radius: 8px; border: 2px solid var(--ink); background: var(--card); display: grid; place-items: center; color: transparent; } +.led .box[aria-pressed="true"], .shop-row[aria-pressed="true"] .box { background: var(--action); border-color: var(--action); color: #fff; } +.led.covered .box[aria-pressed="true"] { background: var(--tomato); border-color: var(--tomato); } +.led.keep .box { border-style: dashed; } +.led .who { font-weight: 600; min-width: 0; } +.led small { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-soft); } +.led > b { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; } +.led.drop .who, .led.drop > b { opacity: .5; text-decoration: line-through; } +.led-acts { grid-column: 3 / -1; display: flex; gap: 8px; padding-top: 2px; } +.led-acts button { border: 2px solid var(--ink); background: var(--card); border-radius: 10px; padding: 5px 10px; font-weight: 600; font-size: .8rem; box-shadow: 0 2px 0 var(--ink); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); } +.led-acts button:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); } +.bin { flex: none; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 4px; border-radius: 8px; background: var(--ink); color: var(--card); font-family: var(--display); font-weight: 800; font-size: .92rem; line-height: 1; } + +/* the shopper's list and the sort sheet */ +.shop-row { width: 100%; background: none; border: 0; text-align: left; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; font-size: .92rem; font-weight: 500; transition: background 160ms; } +.shop-row:hover { background: var(--corn-tint); } +.shop-row small { display: inline-block; width: 100%; font-weight: 400; font-size: .76rem; color: var(--ink-soft); } +.shop-row .amt { text-align: right; } +.shop-row .amt b { font-family: var(--display); font-weight: 700; } +.shop-row[aria-pressed="true"] > span:nth-child(2) { color: var(--ink-soft); text-decoration: line-through; } +.sort-row { padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; font-size: .92rem; } +.sort-row .row span { color: var(--ink-soft); font-size: .82rem; } +.chips { display: flex; flex-wrap: wrap; gap: 6px; } +.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 2px; border-radius: 10px; background: var(--ground); border: 1px solid var(--line); font-size: .8rem; font-weight: 500; } + +/* your bin: a hanging tag */ +.bin-tag { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 16px; background: var(--corn); color: var(--cacao); border-radius: 12px 22px 22px 12px; padding: 12px 18px 12px 34px; rotate: -1.4deg; /* not transform: the screen-enter animation ends on transform: none */ box-shadow: 0 5px 0 #a97a0c, 0 16px 18px -14px rgba(59, 41, 34, .6); } +.bin-tag::before { content: ''; position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 12px; height: 12px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 2px 0 rgba(59, 41, 34, .35); } +.bin-tag b { grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 5.4rem; line-height: .82; padding-top: .08em; } +.bin-tag .lab { align-self: end; } +.bin-tag small { align-self: start; font-size: .84rem; line-height: 1.3; } + +/* the gatherings band in the plan below the demo */ +#gather .eyebrow { background: var(--mint); } diff --git a/yuhm/prototypes/the-mission/gather.js b/yuhm/prototypes/the-mission/gather.js new file mode 100644 index 00000000..020baeb1 --- /dev/null +++ b/yuhm/prototypes/the-mission/gather.js @@ -0,0 +1,297 @@ +/* Gatherings (beta): five screens added to THE MISSION demo through its extension hook. + Everything here is sample content; nothing talks to Supabase. Plan: plans/005-yuhm-gatherings-koord.md */ +(() => { + 'use strict' + + // Icon paths from lucide (ISC) that the core demo does not already carry. + const GP = { + cart: '', + receipt: '', + minus: '', + plus: '', + eye: '', + } + + const ME = 4 + const PANTRY_CENTS = 150 + const PANTRY_REAL = 138 + const BUFFER = 1.15 + const CEILING = 1.25 + const SWAP_REAL = 219 + const MAX_BATCHES = 3 + const ON_LIST = ['paid', 'covered', 'keep'] + const SECTIONS = ['Produce', 'Meat and dairy', 'Cans and dry'] + const MAKE_LOOK = 'style="--rc:#f5c451;--rt:#fcefc9"' + + // A small catalog in units a store sells. cents = the estimate, real = what the receipt said. + const ITEMS = { + onion: { name: 'Yellow onions', unit: 'each', sec: 'Produce', cents: 79, real: 72 }, + garlic: { name: 'Garlic heads', unit: 'each', sec: 'Produce', cents: 68, real: 68 }, + jalapeno: { name: 'Jalapeños', unit: 'each', sec: 'Produce', cents: 20, real: 18, net: true }, + cilantro: { name: 'Cilantro', unit: 'bunch', sec: 'Produce', cents: 78, real: 78, net: true }, + roma: { name: 'Roma tomatoes', unit: 'each', sec: 'Produce', cents: 40, real: 45, net: true }, + lime: { name: 'Limes', unit: 'each', sec: 'Produce', cents: 33, real: 25, net: true }, + chicken: { name: 'Chicken thighs', unit: 'lb', sec: 'Meat and dairy', cents: 399, real: 429, cold: true }, + bacon: { name: 'Bacon, 12 oz', unit: 'each', sec: 'Meat and dairy', cents: 399, real: 379, cold: true }, + chipotle: { name: 'Chipotles in adobo', unit: 'can', sec: 'Cans and dry', cents: 229, real: 249 }, + 'tomato-can': { name: 'Crushed tomatoes, 28 oz', unit: 'can', sec: 'Cans and dry', cents: 189, real: 179 }, + pinto: { name: 'Pinto beans', unit: 'lb', sec: 'Cans and dry', cents: 148, real: 148 }, + rice: { name: 'Long grain rice', unit: 'lb', sec: 'Cans and dry', cents: 109, real: 109 }, + } + const KITS = [ + { id: 'tinga', name: 'Chicken tinga', serves: 6, mins: 50, lines: [['chicken', 2], ['onion', 2], ['chipotle', 1], ['tomato-can', 1], ['garlic', 1]] }, + { id: 'beans', name: 'Charro beans', serves: 8, mins: 90, lines: [['pinto', 1], ['bacon', 1], ['onion', 1], ['jalapeno', 2], ['cilantro', 1], ['roma', 3]] }, + { id: 'rice', name: 'Cilantro lime rice', serves: 8, mins: 30, lines: [['rice', 2], ['lime', 3], ['cilantro', 1]] }, + ] + const OTHERS = [ + { bin: 1, name: 'Marisol', dishes: { tinga: 1, rice: 1 }, src: {} }, + { bin: 2, name: 'Deshawn', dishes: { beans: 2 }, src: {} }, + { bin: 3, name: 'Priya', dishes: { rice: 2 }, src: {} }, + { bin: 5, name: 'Tomás', dishes: { tinga: 2 }, src: {} }, + { bin: 6, name: 'Ana', dishes: { beans: 1, rice: 1 }, src: {} }, + { bin: 7, name: 'Lee', dishes: { tinga: 1, beans: 1 }, src: {} }, + ] + const ROLES = [['shop', 'Shop run · the grocery', 'Sat 10 am · about an hour', 40, 'cart'], ['sort', 'Sort the bins', 'Sun 1:15 pm · 30 min', 20, 'box'], ['clean', 'Cleanup crew', 'Sun 5 to 5:45 pm', 25, 'sprout']] + const AUDIT = { paid: 'ticked by Rosa · today 3:42 pm', covered: 'covered by the pot · only you see this', keep: 'shop anyway · Rosa vouched', drop: 'dropped from the shop list' } + + const money = (cents) => `$${(cents / 100).toFixed(2)}` + const PLURAL = { bunch: 'bunches', can: 'cans', jar: 'jars' } + const amount = (qty, unit) => `${qty} ${qty === 1 ? unit : PLURAL[unit] ?? unit}` + const toggled = (list, value) => (list.includes(value) ? list.filter((entry) => entry !== value) : [...list, value]) + + window.YUHM_DEMO_EXT = [...(window.YUHM_DEMO_EXT ?? []), ({ icon, shell, seedsTag, patch, state }) => { + const gi = (name, size = 18) => (GP[name] ? `` : icon(name, size)) + const g = () => state.g + const set = (changes) => { state.g = { ...state.g, ...changes } } + + /* ---------- orders and money ---------- */ + // One order's lines: the same item from two dishes merges into one line. + const linesFor = (order) => { + const qty = KITS.flatMap((kit) => kit.lines.map(([key, n]) => [key, n * (order.dishes[kit.id] ?? 0)])) + .reduce((sum, [key, n]) => ({ ...sum, [key]: (sum[key] ?? 0) + n }), {}) + return Object.keys(ITEMS).filter((key) => qty[key] > 0).map((key) => ({ key, qty: qty[key], source: order.src[key] ?? 'buy' })) + } + const buying = (order) => linesFor(order).filter((line) => line.source === 'buy') + const cooking = (order) => Object.values(order.dishes).some((n) => n > 0) + const swappedLine = (key) => key === 'chipotle' && g().swapped + const realOf = (key) => (swappedLine(key) ? SWAP_REAL : ITEMS[key].real) + const itemName = (key) => (swappedLine(key) ? 'Chipotle salsa' : ITEMS[key].name) + const unitOf = (key) => (swappedLine(key) ? 'jar' : ITEMS[key].unit) + const share = (order) => { + const sub = buying(order).reduce((sum, line) => sum + line.qty * ITEMS[line.key].cents, 0) + const pantry = cooking(order) ? PANTRY_CENTS : 0 + return { sub, pantry, total: Math.ceil(((sub + pantry) * BUFFER) / 100) * 100 } + } + const realShare = (order) => buying(order).reduce((sum, line) => sum + line.qty * realOf(line.key), 0) + (cooking(order) ? PANTRY_REAL : 0) + // Named as the money holder would see it, since the checklist is her screen. + const mine = () => ({ bin: ME, name: 'Sam (you)', dishes: g().dishes, src: g().src }) + const orders = () => [...OTHERS, mine()].sort((a, b) => a.bin - b.bin) + const onList = () => orders().filter((order) => ON_LIST.includes(g().paid[order.bin])) + const receiptTotal = () => onList().reduce((sum, order) => sum + realShare(order), 0) + const shopRows = () => { + const parts = onList().flatMap((order) => buying(order).map((line) => ({ ...line, bin: order.bin }))) + return Object.keys(ITEMS).map((key) => ({ key, parts: parts.filter((part) => part.key === key) })) + .map((row) => ({ ...row, qty: row.parts.reduce((sum, part) => sum + part.qty, 0) })).filter((row) => row.qty > 0) + } + // Jumping straight to a later screen: carry the viewer through the steps they skipped. + const ensureOnList = () => { if (!ON_LIST.includes(g().paid[ME])) set({ paid: { ...g().paid, [ME]: g().cover ? 'covered' : 'paid' } }) } + const ensureShopped = () => { ensureOnList(); if (!g().receipt) set({ bought: shopRows().map((row) => row.key), receipt: true }) } + + /* ---------- components ---------- */ + const persona = (html) => `
${gi('eye', 15)}${html}
` + const bin = (n) => `${n}` + const slip = (rows, total) => `
${rows.map(([label, value]) => `
${label}${value}
`).join('')}
${total[0]}${total[1]}
` + const segs = (act, current, options) => `
${options.map(([id, label]) => ``).join('')}
` + const tally = (left, right) => `
${[left, right].map(([big, small]) => `
${big}${small}
`).join('')}
` + const plainList = (lines, glyph, note) => `
${lines.map((line) => `
${gi(glyph, 17)}${ITEMS[line.key].name}${amount(line.qty, ITEMS[line.key].unit)} · ${note}
`).join('')}
` + + const dishRow = (kit) => { + const n = g().dishes[kit.id] ?? 0 + return `
${gi('chef', 17)}${kit.name}${n ? `${n} batch${n > 1 ? 'es' : ''} · serves ${n * kit.serves}` : `a batch serves ${kit.serves}`} + ${n}
` + } + + const lineRow = (line) => { + const item = ITEMS[line.key] + const cost = line.source === 'buy' ? money(line.qty * item.cents) : line.source === 'network' ? 'free' : 'yours' + const option = (id, label, off) => `` + return `
${item.name}${amount(line.qty, item.unit)}${item.cold ? ' chilled' : ''}${cost}
+
${option('bring', 'Bring')}${option('network', 'Network', !item.net)}${option('buy', 'Buy')}
+ ${line.source === 'network' ? 'From the Saturday pool table. A runner brings it to the kitchen.' : ''}
` + } + + const paidRow = (order) => { + const mark = g().paid[order.bin] ?? null + const asked = order.bin === ME && g().cover && !mark + const late = g().payBy && !mark ? `` : '' + return `
+ ${bin(order.bin)}${order.name}${mark ? AUDIT[mark] : asked ? 'asked to be covered' : 'not marked yet'}${money(share(order).total)}${late}
` + } + + const settleRow = (order) => { + const mark = g().paid[order.bin] + const diff = share(order).total - realShare(order) + const owed = mark === 'covered' ? 'covered · nothing to settle' : mark === 'keep' ? `collect ${money(realShare(order))} · vouched, not paid yet` : diff >= 0 ? `hand back ${money(diff)}` : `collect ${money(-diff)}` + const done = g().settled.includes(order.bin) + return `
+ ${bin(order.bin)}${order.name}${done ? 'settled · ticked by Rosa' : owed}${money(realShare(order))}
` + } + + const shopRow = (row) => { + const item = ITEMS[row.key] + const where = swappedLine(row.key) ? 'swap for chipotles in adobo · every bin said swaps are fine' : `bins ${[...new Set(row.parts.map((part) => part.bin))].join(', ')}` + return `` + } + const shopSection = (sec, rows) => { + const inSec = rows.filter((row) => ITEMS[row.key].sec === sec) + const cantFind = sec === 'Cans and dry' && !g().swapped && !g().receipt && inSec.some((row) => row.key === 'chipotle') + return inSec.length ? `
${sec}
${inSec.map(shopRow).join('')}
${cantFind ? '' : ''}
` : '' + } + const sortRow = (row) => `
${itemName(row.key)}${amount(row.qty, unitOf(row.key))}
${row.parts.map((part) => `${bin(part.bin)}${amount(part.qty, unitOf(row.key))}`).join('')}
` + + const pickRow = (line) => `` + + /* ---------- screens ---------- */ + const views = { + gather: () => shell(` +
+
Gathering · food prep · beta${gi('chef', 22)}

Sunday batch cook

+
${gi('clock', 13)}When
Sun Sep 27, 2 to 5 pm
${gi('pin', 13)}Where
Eastside partner kitchen
+
${gi('lock', 13)}Orders lock
Fri Sep 25, 2 pm
${gi('users', 13)}Spots
7 of 12 taken
+
Covered spots2 open
HostRosa
+
+

${gi('lock', 16)}The street address goes to confirmed people on Saturday evening.

+
On the menupick any, in batches
${KITS.map((kit) => `
${gi('chef', 17)}${kit.name}one batch serves ${kit.serves} · about ${kit.mins} min
`).join('')}
+
Roles still openanyone coming can claim
${ROLES.map(([id, title, when, seeds, glyph]) => ``).join('')}
+

Seeds land only if you joined THE MISSION. Coming to cook never enrolls you.

`, + ``), + + order: () => { + const me = mine(); const lines = linesFor(me); const s = share(me); const due = g().cover ? 0 : s.total + const mark = g().paid[ME] + const potRow = g().cover ? [['Covered by the pot', `−${money(s.total)}`]] : [] + if (g().locked) return shell(` +
${patch('Order in', 'bin at cutoff', 'chef', '#f5c451', 132, 'stamped')}

Order in

+

You can change it until Friday 2 pm. Then it locks and you get a bin number.

+ ${slip([[`${buying(me).length} lines to buy, pantry, buffer`, money(s.total)], ...potRow], ['Your share', money(due)])} +
${mark === 'paid' ? 'Marked paid by Rosa.' : mark === 'covered' || g().cover ? 'Covered. Nothing to pay.' : 'Not marked yet.'} ${g().cover ? 'Only Rosa sees that you asked.' : 'Pay Rosa however you two agree: cash, Venmo, Cash App, Zelle. yuhm moves no money. She ticks you off by hand.'}
`, + ``) + const list = lines.length ? ` +
Your lista source for every line
${lines.map(lineRow).join('')} +
Pantry: cumin, oil, saltbought once${money(s.pantry)}
Split evenly across everyone cooking. It stays at the kitchen.
+
If something is out${segs('gsubs', g().subs, [['ok', 'Swap it'], ['ask', 'Ask me'], ['skip', 'Skip it']])}
+ ${slip([[`Groceries to buy · ${buying(me).length} lines`, money(s.sub)], ['Pantry split', money(s.pantry)], ['Buffer, comes back at settle', money(s.total - s.sub - s.pantry)], ...potRow], ['Your share', money(due)])} +
Cover me this timeOnly Rosa sees this. 2 covered spots open.
` + : '
Pick at least one dish. Your itemized list builds itself from the recipe.
' + return shell(` + Sunday batch cook · your order +

What will you make?

+
${KITS.map(dishRow).join('')}
+ ${list}`, + ``) + }, + + paid: () => { + const list = orders(); const marks = g().paid + const inHand = list.filter((order) => marks[order.bin] === 'paid').reduce((sum, order) => sum + share(order).total, 0) + const due = list.filter((order) => !['covered', 'drop'].includes(marks[order.bin])).reduce((sum, order) => sum + share(order).total, 0) + const before = ` + ${tally([`${onList().length} of ${list.length}`, 'on the shop list'], [money(inHand), `in hand of ${money(due)}`])} +
${list.map(paidRow).join('')}
+

${g().payBy ? 'Pay-by has passed. For anyone unticked, vouch for them or let the order drop. A shopper never fronts money for a stranger.' : 'Tap a box when someone pays you. Every tick is stamped with who and when, and can be undone.'}

` + const after = g().receipt ? ` + ${tally([money(receiptTotal()), 'receipt total'], [`${g().settled.length} of ${onList().length}`, 'settled'])} +
${onList().map(settleRow).join('')}
+

Real prices replaced the estimates. The shares add up to the receipt to the cent. Settle in person and tick the box.

` + : '
Nothing to settle yet. Balances show here once a shopper sends the receipt.
' + const foot = g().paidTab === 'before' + ? `` + : `` + return shell(` + ${persona('Viewing as Rosa, the money holder')} +

Who has paid

+ ${segs('gpaidtab', g().paidTab, [['before', 'Before the shop'], ['after', 'After: settle']])} + ${g().paidTab === 'before' ? before : after}`, foot) + }, + + shop: () => { + ensureOnList() + const rows = shopRows(); const allIn = rows.every((row) => g().bought.includes(row.key)) + const chilled = rows.filter((row) => ITEMS[row.key].cold).length + const listTab = ` + ${chilled ? `` : ''} + ${SECTIONS.map((sec) => shopSection(sec, rows)).join('')} +
Pantry, bought once: cumin, oil, salt. Split evenly, stays at the kitchen.
+ ${g().receipt ? `${slip([['Lines bought', String(rows.length)], ['Swaps', g().swapped ? '1' : '0']], ['Receipt', money(receiptTotal())])}

Receipt in. Shares are recalculated and Rosa has the balances. Attendees see totals, never the photo.

` : ''}` + const sortTab = `
${rows.map(sortRow).join('')}

Read it item by item at the sorting table. Numbers on the bins, no names.

` + const foot = g().receipt ? `` + : `` + return shell(` + ${persona('Viewing as a shopper. Bins only, never names')} +

Shop run · the grocery

+ ${segs('gshoptab', g().shopTab, [['list', 'Shop list'], ['sort', 'Sort sheet']])} + ${g().shopTab === 'sort' ? sortTab : listTab}`, foot) + }, + + pick: () => { + ensureShopped() + const me = mine(); const lines = linesFor(me); const s = share(me); const real = realShare(me) + const covered = g().paid[ME] === 'covered'; const diff = s.total - real + const by = (source) => lines.filter((line) => line.source === source) + const checked = by('buy').filter((line) => g().picked.includes(line.key)).length + const balance = covered ? slip([['Real cost of your lines', money(real)], ['Covered by the pot', `−${money(real)}`]], ['Your balance', money(0)]) + : slip([['You paid Rosa', money(s.total)], ['Real cost of your lines', money(real)]], [diff >= 0 ? 'Coming back to you' : 'Still owed', money(Math.abs(diff))]) + return shell(` +
${ME}Your binSunday batch cook · the table by the door
+ ${by('buy').length ? `
In your bin${checked} of ${by('buy').length} checked
${by('buy').map(pickRow).join('')}
` : ''} + ${by('network').length ? `
From the network${plainList(by('network'), 'sprout', 'Saturday pool table, brought by a runner')}
` : ''} + ${by('bring').length ? `
You are bringing${plainList(by('bring'), 'bag', 'from your own kitchen')}
` : ''} + ${balance} +

${g().settled.includes(ME) ? 'Settled. Ticked by Rosa.' : covered ? 'Nothing to settle.' : 'Rosa settles in person and ticks it by hand.'}

+
${patch('Full circle', 'nothing wasted', 'sprout', '#b9d99b', 58)}

After the cook

Extra portions go to the Chestnut fridge. Scraps go to compost.

`, + ``) + }, + } + + const notes = { + gather: ['The gathering: a page, a menu, open roles', 'A food prep gathering is a plain page anyone can read. It shows when, the neighborhood, when orders lock, the menu of recipe kits, and the roles that still need someone. Classes and potlucks use the same page with a different kind.', ['Reuses', 'Migration 033 already has the spine: food_events, food_venues, food_event_rsvps with a waitlist, food_event_assignments. This adds a kind, the cutoff times, and a money holder.'], ['koord', 'RSVP rules, the share link, and the pick-a-date poll come from koord’s plan and poll modules, running as a library inside yuhm.'], ['Guardrail', 'Coming to cook never enrolls anyone in THE MISSION. Every attendee can claim a role; seeds land only for people who opted in. The street address waits for address_release_at.']], + order: ['Build my order: dishes in, an itemized list out', 'Pick dishes in batches. Each recipe kit scales into lines, the same item from two dishes merges into one line, and every line gets its own source: bring it, take it from the network, or buy it through the shared grocery run. Most people will mix all three.', ['Writes', 'food_prep_orders, food_prep_order_dishes, and food_prep_order_lines with a source per line. Kits point at food_catalog_items, which is what lets twelve lists add up into one.'], ['Money', 'Your share is the buy lines, plus an even pantry split, plus a 15 percent buffer rounded up to the dollar. The buffer comes back at settle.'], ['Guardrail', 'Network is greyed out unless something real is listed nearby this week. “Cover me this time” is visible to the organizer and the money holder only.'], ['Demo note', 'The build keeps a swap choice on every line. Here it is one control.']], + paid: ['The paid checklist: ticked by hand', 'koH’s call on 20 Sep: money moves outside the app, and the money holder ticks who has paid. No payment handles are stored, nothing is processed, yuhm holds no money. A second tab holds the same kind of tick for settling up after the receipt.', ['Writes', 'food_prep_order_private.paid_state and settled, each with who ticked and when, plus an append-only audit row per change. mark_food_prep_paid() and mark_food_prep_settled() answer only to the organizer and the money holder.'], ['Notifies', 'The attendee sees “marked paid” or “not marked yet” on their own order, so a missed tick gets caught before the shop run, not at the door.'], ['Guardrail', 'Only ticked, covered, and vouched orders reach the shop list, so a shopper never fronts money for a stranger. A cover request shows here and nowhere else.']], + shop: ['The shop run: one list, bins instead of names', 'Everyone’s buy lines merge into one list in store order, with a ceiling on each line. One shopper or several can split it by store. The sort sheet is the same data turned around: item by item, which bins, how much each.', ['Writes', 'food_shop_runs; line states and real prices through record_food_shop_line(); the receipt through attach_food_shop_receipt() into a private bucket.'], ['Mission', 'A shop run is a mission: source_type = shop_run, template gathering-shop. Anyone attending can claim it, and enrolled movers also see it on their board.'], ['Guardrail', 'The shopper sees bin numbers, never names, and never who paid. Chilled lines add the cooler step and shorten the window. Pantry items are bought once and split.']], + pick: ['Pick up my bin: your items, then your balance', 'On arrival the screen says which bin is yours and lists what is in it to check off. A missing or swapped line says why. Lines from the network and lines you are bringing sit in their own groups. Below that, the real cost against what you paid.', ['Writes', 'record_food_pick() per line. settle_food_gathering() replaces estimates with real prices and asserts that the shares equal the receipt to the cent.'], ['Notifies', '“Shopping done: bin 4, one change” when the run is delivered, then “your balance” at settle. Both pass through koord’s delivery policy, so quiet hours, caps, and consent hold.'], ['After', 'Extra portions go to a fridge or an inventory lot, scraps to compost. Real prices update the catalog, so the next estimate is closer.']], + } + + const actions = { + gjoin: () => { set({ rsvp: true }); state.screen = 'order' }, + grole: (id) => set({ roles: toggled(g().roles, id) }), + gdish: (arg) => { const [id, by] = arg.split('|'); set({ dishes: { ...g().dishes, [id]: Math.max(0, Math.min(MAX_BATCHES, (g().dishes[id] ?? 0) + Number(by))) } }) }, + gsrc: (arg) => { const [key, source] = arg.split('|'); set({ src: { ...g().src, [key]: source } }) }, + gsubs: (choice) => set({ subs: choice }), + gcover: () => set({ cover: !g().cover }), + glock: () => set({ locked: true, rsvp: true }), + gunlock: () => set({ locked: false }), + gpaid: (arg) => { const n = Number(arg); const on = ['paid', 'covered'].includes(g().paid[n]); set({ paid: { ...g().paid, [n]: on ? null : n === ME && g().cover ? 'covered' : 'paid' } }) }, + gkeep: (arg) => set({ paid: { ...g().paid, [Number(arg)]: 'keep' } }), + gdrop: (arg) => set({ paid: { ...g().paid, [Number(arg)]: 'drop' } }), + gpayby: () => set({ payBy: !g().payBy }), + gpaidtab: (tab) => set({ paidTab: tab }), + gshoptab: (tab) => set({ shopTab: tab }), + gbuy: (key) => { if (!g().receipt) set({ bought: toggled(g().bought, key) }) }, + gbuyall: () => set({ bought: shopRows().map((row) => row.key) }), + gswap: () => set({ swapped: true, bought: g().bought.includes('chipotle') ? g().bought : [...g().bought, 'chipotle'] }), + greceipt: () => set({ receipt: true }), + gpick: (key) => set({ picked: toggled(g().picked, key) }), + gsettle: (arg) => set({ settled: toggled(g().settled, Number(arg)) }), + gsettleview: () => { set({ paidTab: 'after' }); state.screen = 'paid' }, + } + + return { + group: 'Gatherings beta', + screens: [['gather', 'The gathering'], ['order', 'Build my order'], ['paid', 'Paid checklist'], ['shop', 'Shop run'], ['pick', 'Pick up my bin']], + views, notes, actions, + state: { g: { rsvp: false, roles: [], dishes: { tinga: 1, rice: 1 }, src: { cilantro: 'network', rice: 'bring' }, subs: 'ok', cover: false, locked: false, paid: { 1: 'paid', 2: 'paid', 3: 'covered', 5: 'paid' }, payBy: false, paidTab: 'before', shopTab: 'list', bought: [], swapped: false, receipt: false, picked: [], settled: [] } }, + } + }] +})() diff --git a/yuhm/prototypes/the-mission/index.html b/yuhm/prototypes/the-mission/index.html new file mode 100644 index 00000000..23ee3dff --- /dev/null +++ b/yuhm/prototypes/the-mission/index.html @@ -0,0 +1,396 @@ +The yuhm Mission + + + + + +
+
+ yuhm · UX demo and build plan · 19 Sep 2026 · gatherings added 20 Sep +
+

THE MISSION

+ +
+

yuhm is a free food network for Austin, Texas. Open it and you see free food near you: community fridges, pantries, shared harvests. No account needed. Neighbors who want to help use the same app to move food to where it is needed: rescuing day-old bread, sharing garden extras, cooking together, and returning scraps to the soil.

+

This page is a clickable demo and a build plan for two ideas. Neither is built yet. THE MISSION is for neighbors who want to help: say yes once, and yuhm offers you small, clear tasks nearby, like checking that a fridge is stocked or driving bread across town, at a weekly pace you choose. Gatherings is for cooking together: each person says what they want to make, gets an itemized grocery list, and finds their items waiting in a numbered bin. The task flow borrows what works from DoorDash and Duolingo and leaves their pressure tactics behind. Finding food never becomes a game.

+ +
+ +
+
+
+ +
+
+
+
+ +
+
+

Ground rules

+

Five lines the design does not cross

+
    +
  • Finding food is never a game.The finder, the map, and FOOD IS HERE alerts stay exactly as they are. No seeds, no prompts, no account wall. A test will assert it.
  • +
  • A separate yes.An account does not enroll anyone. THE MISSION is its own opt-in, and pause and leave are one tap each.
  • +
  • Mechanics, not manipulation.PRODUCT.md already lists delivery-app urgency as an anti-reference. We take accept, steps, done, and a weekly rhythm. We leave countdown panic, guilt messages, and acceptance-rate penalties.
  • +
  • An honest board.Only real missions. Samples are labeled. A quiet neighborhood says it is quiet instead of inventing activity.
  • +
  • Private by default.Neighborhood-level until acceptance. No public ranking of people. Shared goals belong to the circle.
  • +
+
+ +
+

First visit

+

Landing to first mission in five screens

+

Sign-up stays one step. What changes is the order: the person commits to a route and finishes something before the form appears, so the form reads as keeping what they earned.

+
+ + + + + + + + + +
ScreenWhat the person doesWhat changes in the codeData
ArriveSees two doors. Second door reads Take part on a first visit.LandingPage.tsx: label and href (/app/?mode=join) keyed on yuhm:first-visit. Sign in becomes a text link.None
Pick a routeTaps one of six routes.New src/mission/JoinFlow.tsx. Reuses WorldRole and the role icons from world/views.tsx.localStorage draft
First biteAnswers one route-shaped question. Earns 10 seeds.Bite definitions in src/mission/bites.ts, EN and ES.localStorage draft
Save your spotEmail, password, Continue.AuthForm.tsx gains an optional header slot. return=/app/?mode=join&step=optin.Auth user, profile, participant. Draft claimed.
Opt inChooses a rhythm and channels, or taps Not now.New src/mission/OptIn.tsx calling enroll_food_mission().Enrollment, prefs, channel consent
Mission boardLands on the board.App.tsx sends enrolled members to mode=mission by default. World, finder, and dashboard stay one tap away.Reads only
+

Members who already have accounts see one quiet card in the world profile panel and the finder member menu: “THE MISSION. See what it is.” It opens the same opt-in screen. Nothing else announces it.

+
+ +
+

Game system

+

Bites, runs, seeds, and a weekly rhythm

+

Four mission sizes

+
+ + + + + + + +
SizeWhat it isTimeSeedsExample
BiteAn in-app task generated from real gaps in the data2 to 3 min10 to 15Confirm a fridge’s hours, translate a listing, nominate a source
RunA real-world errand with a pickup and a drop30 to 60 min30 to 50Bakery rescue to a fridge, compost return
ShiftA scheduled block at one spot1 to 3 h40 to 80Kitchen prep, pool-table host, harvest morning
Pair-upA run or shift done with a named neighbor. Also the training path.Varies+10 eachFirst run alongside an experienced courier
+
Bites solve the cold start. A mission board with no missions is dead on day one. Bites are generated from the public directory (hundreds of real listings whose hours need confirming, Spanish translations that are missing, sources nobody has nominated yet), so the board has real, useful work from the first hour, before a single rescue is posted.
+ +

Six routes, each with its own missions

+
+ + + + + + + + + +
RouteFirst bite (doubles as profile)Typical missionsBuilt from
EatHow was the fridge last time?Fridge checks, hours confirmations, passing an alert to a neighborfood_locations, food_verifications, food_alerts
GrowWhat do you have extra of?Harvest shares, harvest-run stops, seed and start swapsfood_harvest_runs, food_harvest_run_stops
MakeWhat can your kitchen do?Kitchen shifts, batch cooking for a gathering, portion and labelfood_events, food_event_assignments
MoveWhat wheels do you have?Rescue runs, deliveries to neighbors (trust tier 2 and up), compost returnsfood_rescues, food_requests, compost returns (037)
ShareWhat could you share this month?Stock a fridge, log a drop-off, lend freezer spacefood_dropoffs, food_inventory_lots
OrganizeWhere would you gather people?Host a pool table, run the welcome table, plan a potluckfood_events, food_venues
+ +
+
+

Seeds and levels

+

Seeds are recognition. They have no cash value, are never required for anything, and are never taken away. They are stored as recognition_points in the ledger that already exists. Reliability is a separate, private signal the dispatcher uses; nobody ever sees it as a score.

+

Levels: Seed 0 · Sprout 50 · Vine 150 · Bloom 400 · Harvest 900 · Perennial 2,000. Levels are thanks. Safety gates stay on trust_tier, which coordinators set.

+
+
+

Weekly rhythm, with rest built in

+

A week counts when at least one mission of any size is completed (Monday to Sunday, Austin time). The 1, 2, or 3 goal fills the ring; it never breaks the rhythm. One rest week is banked for every four active weeks (two at most) and spent automatically. Pausing freezes the rhythm. If it does end, the app says “new rhythm, week 1” and keeps the longest one on the profile. No message ever mentions losing it.

+
+
+

Stamps and the circle goal

+

Stamps mark firsts and milestones: First bite, First rescue, Full circle (a compost return after a rescue), Bilingual (ten translations), Four-week rhythm. The circle goal is one shared weekly target per neighborhood circle, such as pounds moved. It takes the place a leaderboard would. The existing opt-in drop-off board from migration 040 stays as it is.

+
+
+

Keeping it fair

+

Bites cap at five a day. An hours change needs two independent confirmations and each location has a 14-day cooldown. Seeds for runs land when the receiving side confirms or a coordinator reviews. The ledger is append-only with idempotency keys, so retries never double-pay.

+
+
+
+ +
+

Borrowed and left

+

What we take from DoorDash and Duolingo, and what we leave

+
+ + + + + + + + + + + + + + + + + +
Their mechanicThe yuhm versionLeft behind
DoorDash · Dash Now“I’m free now” switch with an end timeSurge pressure, hotspots
DoorDash · offer card with countdownMission offer with a calm hold: 15 min for same-day, hours for scheduledRed timers, 40-second decisions
DoorDash · accept or declineAccept or Pass. Pass is free and says so.Acceptance-rate penalties
DoorDash · pickup and drop-off stepsCheckpoints with light evidence from the templateMandatory photos everywhere. Photos only where food safety needs them.
DoorDash · scheduled dashesClaim a slot this weekPenalties for unscheduling early
DoorDash · earnings summaryImpact summary: pounds, neighbors, seeds, a thank-you noteMoney framing
DoorDash · customer ratingsPrivate reliability signal for the dispatcherPublic star ratings
Duolingo · goal before accountRoute before account
Duolingo · lesson before sign-upFirst bite before sign-up, then “save your seeds”
Duolingo · daily goal and streakWeekly rhythm with automatic rest weeksDaily streak anxiety, paid streak repair
Duolingo · XP and levelsSeeds and growth levelsHearts, energy, anything that blocks taking part
Duolingo · daily and friend questsBites and pair-ups
Duolingo · leaguesOne shared circle goalRanking people, promotion and demotion
Duolingo · remindersFewer messages when someone drifts, then silenceGuilt copy, escalating pings
+
+ +
+

Data model

+

Ten new tables on top of what migrations 032 to 034 already built

+

Most of the hard parts exist. The coordination migrations already created a participants table, an append-only reputation ledger with recognition points, a leased outbox queue, consent-aware contact channels with quiet hours and encrypted addresses, conversation and message tables, and agent mandates with an action log. Rescues already have claim, checkpoint, and release functions. THE MISSION adds the mission layer and wires into those.

+
+erDiagram
+  food_participants ||--o| food_mission_enrollments : "opts in"
+  food_mission_templates ||--o{ food_missions : shapes
+  food_missions ||--|| food_mission_private : "hides details in"
+  food_missions ||--o{ food_mission_offers : "is offered as"
+  food_missions ||--o{ food_mission_assignments : "is taken as"
+  food_participants ||--o{ food_mission_offers : receives
+  food_participants ||--o{ food_mission_assignments : does
+  food_mission_assignments ||--o{ food_mission_checkpoints : records
+  food_mission_assignments ||--o{ food_reputation_ledger : "earns seeds in"
+  food_participants ||--|| food_mission_progress : "cached totals"
+  food_participants ||--o{ food_mission_stamps : earns
+  food_participants ||--o{ food_contact_channels : "is reached by"
+  food_participants ||--o{ food_notification_prefs : chooses
+  food_outbox ||--o{ food_notification_log : "is delivered as"
+      
+
+ + + + + + + + + + + + + + +
New tableJobKey columns
food_mission_enrollmentsThe opt-in. One row per participant.participant_id (unique), status active/paused/left, routes[], rhythm_goal 1–3, zone (neighborhood, never an address), capabilities jsonb, available_until, paused_until, consent_version
food_mission_templatesThe catalog of mission kinds.slug, route, size bite/run/shift/pair, title_en, title_es, steps jsonb (with evidence rules), base_seeds, est_minutes, min_trust_tier, requires jsonb, cooldown, ledger_event_type
food_missionsOne concrete mission.template_id, source_type + source_id (rescue, harvest_stop, dropoff, request, event, compost, location_check, manual), zone, window_start/end, urgency now/today/scheduled, slots_total, slots_filled, state, public_summary jsonb
food_mission_privateAddress, contact, notes. No direct reads.mission_id, address, contact, notes. Returned only by get_food_mission_private() to assignees and coordinators, like get_food_rescue_private() today.
food_mission_offersThe dispatch record.mission_id, participant_id (unique together), channel, offered_at, expires_at, state offered/seen/accepted/passed/expired, pass_reason
food_mission_assignmentsAn accepted mission.mission_id, participant_id (unique together), state accepted/under_way/completed/released/no_show, accepted_at, completed_at, release_reason, seeds_awarded
food_mission_checkpointsAppend-only step events.assignment_id, step_key, evidence jsonb, idempotency_key (unique)
food_mission_progressA rebuildable cache. The ledger is the truth.participant_id, seeds_total, level, rhythm_weeks, longest_rhythm, rest_weeks, last_active_week, missions_completed
food_mission_stampsStamps earned.participant_id, stamp_slug (unique together), awarded_at, evidence_id
food_notification_prefsWho wants what, where.participant_id, category, channel (unique together), enabled
food_notification_logEvery send and every suppression.participant_id, category, channel, mission_id, outbox_id, provider_message_id, state, suppressed_reason (quiet_hours, cap, paused, no_consent)
+
+
+

Reused as it is

+
    +
  • food_participants and ensure_food_participant()
  • +
  • food_reputation_ledger holds seeds, with evidence_type = 'mission_assignment'
  • +
  • food_outbox with lease_food_outbox() and complete_food_outbox() is the notification queue
  • +
  • food_contact_channels holds consent, language, quiet hours, encrypted address
  • +
  • food_conversations and food_messages hold the WhatsApp thread
  • +
  • food_agent_mandates and food_agent_actions bound and audit the helper
  • +
  • claim_food_rescue(), record_food_rescue_checkpoint(), release_food_rescue() stay the source of truth for rescues
  • +
+
+
+

Small alterations

+
    +
  • food_contact_channels.channel_type: add whatsapp and push
  • +
  • food_conversations.active_channel and food_messages.channel: add whatsapp
  • +
  • food_reputation_ledger.event_type: add mission_bonus for stamps and rhythm milestones
  • +
+

Functions, in the repo’s naming

+

For members: enroll_food_mission, update_food_mission_enrollment, leave_food_mission, list_food_missions, accept_food_mission, pass_food_mission, get_food_mission_private, record_food_mission_checkpoint, release_food_mission, get_food_mission_progress, set_food_notification_prefs. For workers only (is_food_worker_caller()): dispatch_food_missions, expire_food_mission_offers, roll_food_mission_week, generate_food_bites.

+
+
+
    +
  • No double-booking. accept_food_mission locks the mission row (select … for update), checks the slot count and the offer’s expiry, then writes the assignment and bumps the count in one transaction.
  • +
  • Completion is one transaction: assignment, ledger row, progress cache, stamps, outbox row. Either all of it lands or none of it does.
  • +
  • Row-level security. People read only their own enrollment, offers, assignments, checkpoints, progress, prefs, and log. Open missions expose public_summary only. Every write goes through a security-definer function. Coordinators (role = 'admin') manage templates and missions.
  • +
  • Migration. The next free number is 049 today, but koord/ and the client sites share the folder, so take the number at build time. Validate the whole chain in the podman Supabase image first. Migrate first, deploy second.
  • +
  • No dependency on the undeployed services. The 032 to 036 tables are applied but only the Dockerized coordination API uses them. Phase 1 reaches them through new functions from the browser, the same way the first-generation workflows do.
  • +
+
+ +
+

Notifications

+

One pipeline, three channels, hard caps

+
+ + + + + + + + +
ChannelReachCostSetupRole
In the appMembers with yuhm openFreePart of the boardAlways on. The source of truth.
Email (Resend)Every accountAlready wiredLowDefault. Scheduled offers, reminders with a calendar file, receipts, Sunday digest, check-in.
WhatsApp 1:1Opt-in. Strong with Spanish-speaking neighbors.About $0.006 per utility template in the US. Replies inside 24 h are free.Medium to high: Meta business verification, a dedicated number, template approvalTime-sensitive offers, reminders, and conversation with the helper
Web pushPhones that installed the PWA (iOS needs Add to Home Screen)FreeMedium: service worker, keysLater phase. Good for “I’m free now” offers.
SMSEveryonePer message, plus 10DLC registrationHighNot planned
+
+ + + + + + + + + + +
MessageTriggerChannelsCapTone
OfferDispatcher finds a matchWhatsApp first for now and today, email for scheduled3 a day, never in quiet hoursFour facts, accept or pass
Reminder24 h and 2 h before an accepted missionThe person’s channel, plus .ics2 per missionWhat to bring, how to release
ReceiptCompletionApp and email1 per missionSeeds, impact, the thank-you note
Sunday digestSunday 5 pmEmail1 a weekYour week, the circle’s week, open slots
Mid-week nudgeWednesday, goal not met, not pausedApp and email only1 a week“Two open slots near you.” Never “you are about to lose.”
Check-inThree quiet weeksEmailOnce, then silenceKeep, pause, or stop. No answer means auto-pause.
Circle milestoneCircle goal metApp and digest1 a weekShared credit
+
+flowchart LR
+  E[Mission event] --> O[food_outbox row]
+  O --> X[mission-notify function, every 5 min]
+  X --> P{Prefs, consent, quiet hours, caps}
+  P -->|allowed| A[In the app]
+  P -->|allowed| M[Email via Resend]
+  P -->|allowed| W[WhatsApp utility template]
+  P -->|held or dropped| S[Suppressed, with the reason]
+  A --> L[food_notification_log]
+  M --> L
+  W --> L
+  S --> L
+      
+
    +
  • Quiet hours default to 9 pm to 8 am Austin time. The per-channel override already exists on food_contact_channels.
  • +
  • One-tap links are signed and expiring, the same pattern the booking engine uses. They call the same functions as the app, so an email Accept and an in-app Accept cannot both win the last slot.
  • +
  • Meta has paused marketing templates to US numbers since April 2025, so nudges and check-ins never go over WhatsApp. Only utility messages about missions the person opted into do. Confirm the current policy and rate card when we set up.
  • +
  • Every email carries Pause and Stop. Every WhatsApp thread honors STOP, ALTO, PAUSE, and PAUSA as plain keywords, without involving the model.
  • +
+
+ +
+

WhatsApp helper

+

A one-to-one helper now, group news through people

+
The group-chat idea has a hard limit. On the official Cloud API, groups cap at 8 members including the business number, need an Official Business Account (the verified badge), and cannot show buttons. Libraries that pose as a phone can sit in any group, but they break WhatsApp’s terms and get numbers banned, which is not a risk to take with the network’s main line. So the helper lives in one-to-one threads, and each circle gets a human-run announcement group where a coordinator posts the weekly update the dashboard writes for them. A run crew of seven or fewer could get an official group later, if HAND earns the badge.
+
+sequenceDiagram
+  participant N as Neighbor on WhatsApp
+  participant C as Meta Cloud API
+  participant H as whatsapp-webhook function
+  participant G as Helper, background function
+  participant D as Supabase functions
+  N->>C: taps Accept
+  C->>H: signed webhook
+  H->>D: store the message, match the phone fingerprint to a participant
+  H-->>C: 200 OK within seconds
+  H->>G: hand off
+  G->>D: accept_food_mission under the neighbor's mandate
+  D-->>G: private pickup details
+  G->>C: reply with the details
+  C->>N: It's yours. Pickup at...
+      
+
+
+

What the helper can do

+

Each tool is one of the functions above, run under that person’s mandate: list my missions and offers, accept, pass, release, record a checkpoint (“picked up”), report my rhythm and seeds, pause and resume, change my rhythm goal, stop WhatsApp, find food near a neighborhood from the public directory, and hand off to a coordinator.

+
+
+

What it must never do

+
    +
  • Act for anyone but the number it is talking to
  • +
  • Share another person’s name, number, or address
  • +
  • Reveal an address before acceptance
  • +
  • Pretend to be a person. It says it is automated and offers a human at any time.
  • +
  • Handle safety, illness, allergy, conflict, or urgent need alone. It gives the food map link first, then flags a coordinator.
  • +
  • Name a specific AI model in public copy (existing HAND rule)
  • +
+
+
+
    +
  • Where it runs. A Netlify function verifies Meta’s signature, stores the message, answers 200, and triggers a background function that runs the helper and replies. Same repo, no new servers. When the coordination stack moves to OVH (plan 003, phase 3) the helper can move next to HandAI.
  • +
  • Long pole: Meta business verification. It wants legal-entity documents. The Texas Certificate of Formation and the EIN should be enough, but it can take days to weeks, so start it during phase 1. Also needed: a number that has never been on WhatsApp, display-name review for “yuhm”, and five utility templates in English and Spanish (offer, reminder, receipt, released, opt-in confirmation).
  • +
  • Cost sketch. 100 opted-in neighbors at about six templates a week is roughly 600 × $0.006, under $4 a week. Replies are free. Model usage for conversation is the larger line, held down by keyword shortcuts and short context.
  • +
  • Phone numbers are sensitive. Stored encrypted (address_ciphertext), matched by keyed fingerprint, deleted on leave.
  • +
+
+ +
+

Gatherings beta

+

Cook together, each from your own list

+

Added 20 Sep 2026. koord, the booking and coordination layer, will sit under every HAND feature in time. The first thing it powers in yuhm is a beta for gatherings and classes, and the first worked case is a food prep gathering: each person says what they want to prepare, the app writes their itemized list, and on the day their items wait in a numbered bin. The five screens are the last group in the demo above.

+

Nine steps, four deadlines

+
+ + + + + + + + + + + + +
StepWhat happensWho
CreateType, venue, capacity, a time or a koord time poll, a menu of recipe kits, the cutoff, covered spots, a money holder.Organizer
Join and orderPick dishes in batches. Kits scale into lines. Every line gets a source: bring, network, buy, or pantry.Attendee
CutoffOrders lock, 48 hours before by default. Network lines become allocations and pickup runs, buy lines group into shop runs by store, each order gets a bin number and a share.The app
PayPeople pay the money holder however they agree. The money holder ticks a checklist by hand. The app moves no money.Money holder
ShopOne consolidated list in store order, a ceiling per line, real prices entered, a receipt photo.One or several shoppers
SortA sort sheet, item by item: which bins, how much each. Numbers, not names.A sorter
Arrive“You are bin 4” and a list to check off. A missing or swapped line says why.Attendee
SettleReal prices replace estimates. Shares must equal the receipt to the cent. The difference changes hands in person and gets a second tick.Money holder
AfterExtra portions to a fridge or an inventory lot, scraps to compost, recognition to the ledger, real prices back into the catalog.Everyone
+
+
+

Choices that carry the weight

+
    +
  • The source is per line, not per person. Bring my own rice, network cilantro, buy the chicken.
  • +
  • Recipe kits on a small item catalog, written in units a store sells. That is what lets twelve lists add up into one.
  • +
  • Pantry items are pooled. Three people need cumin and the shopper buys one jar. Everything else: you pay for what was bought for you.
  • +
  • The cutoff is the commitment. Cancel freely before it. After it your buy lines are owed, and you can name someone to collect your bin.
  • +
  • Covered spots stay private. Only the organizer and the money holder see who asked.
  • +
  • Food safety is in the model: a temperature class per item, a cooler step, a short shop window, and an allergen notice computed from the locked orders.
  • +
+
+
+

What is already there

+
    +
  • Migration 033 has the gathering spine: food_venues, food_events, invites, RSVPs with a waitlist, assignments, and a potluck lane gate. Only the undeployed coordination API uses it today.
  • +
  • “Source it from our app” is live first-generation work: inventory lots, harvest runs, rescues, drop-offs.
  • +
  • koord brings the time poll, RSVP rules, reminders, deadline notices, and the delivery policy (quiet hours, caps, consent). Proposed: it runs as a library inside yuhm, with yuhm’s tables as the store.
  • +
  • A gathering creates missions: shop run, pickup, sort, setup, cleanup, host, teach. Attending never enrolls anyone.
  • +
+
+
+
Money, settled by koH on 20 SepDirect settle, done by hand. The first implementation is a checklist the money holder ticks: paid, covered, shop anyway, or drop, then a second tick for settled. Every tick records who and when and can be undone. No payment handles stored, no processor, and HAND never holds the pot. Stripe on the organizer’s own account is a later phase and needs a /hand-tax pass first.
+

Still open for koH

+
    +
  • Where koord runs for yuhm. Recommendation: as a library inside yuhm.
  • +
  • Buffer on estimates. Recommendation: 15 percent, rounded up to the dollar, returned at settle.
  • +
  • No refund on bought lines after the cutoff. Recommendation: yes, with name-a-collector and release-to-the-table.
  • +
  • Pantry: host kitchen supplies it, or pooled and split. Recommendation: the organizer chooses, default pooled.
  • +
  • Sorting at the venue by bin, or bagged per person in the store. Recommendation: at the venue.
  • +
  • Free-text dishes in the beta. Recommendation: allowed, but they do not merge.
  • +
  • Who can organize. Recommendation: coordinators only during the supervised pilot.
  • +
  • Gatherings on the public food map. Recommendation: yes, as a plain listing, when free or with covered spots.
  • +
+
+ +
+

Build phases

+

Each phase ships something people can use

+
    +
  1. Sign off on this demo

    Settle the decisions below. Start Meta business verification in parallel, because it is slow and blocks nothing else.
  2. +
  3. Join flow, opt-in, bites, progress

    In-app only. Migration for enrollments, templates, missions, assignments, checkpoints, progress, stamps. Bites generated from directory gaps. No dispatcher, no cold-start risk.Done when: a new visitor goes landing, first bite, account, opt-in, second bite, and sees their rhythm, in English and Spanish; a test proves the guest food finder shows no mission UI.
  4. +
  5. Runs, shifts, offers, email

    Offers table, the dispatcher as a scheduled function, adapters for rescues, harvest runs, and drop-offs, a “Make this a mission” button on the coordinator boards, one-tap email links, reminders with calendar files, Sunday digest, check-in.Done when: a coordinator posts a rescue, a matched neighbor accepts from an email, completes it on a phone, and the ledger, rhythm, and receipt all agree.
  6. +
  7. WhatsApp helper, one-to-one

    Webhook, templates, helper tools, keyword shortcuts, a handoff inbox in the dashboard.Done when: accept, pass, pause, and “talk to a person” all work in English and Spanish from a real phone, and every action appears in food_agent_actions.
  8. +
  9. Circles, pair-ups, push, smarter matching

    Circle goals from real totals, pair-up missions, web push for “I’m free now”, and the OR-Tools matching worker taking over multi-stop runs.
  10. +
+

How we will know it works

+

Opt-in rate among new accounts. Share of visitors who finish the first bite before sign-up. Sign-up conversion after the first bite against today’s funnel. Missions completed per week. Offer acceptance rate. Time to fill a rescue. Four-week rhythm retention. Pause and leave rates. Unsubscribes and complaints. Share of completions that began from a notification. One counter-metric: guest use of the food finder must not drop.

+
+ +
+

Decisions for koH

+

Nine calls to make before phase 1

+
    +
  • The words: seeds, rhythm, bites, stamps.RecommendationKeep them and add them to the world glossary next to Circle, Spot, Pool, Run.
  • +
  • Does the Eat route get missions at all?RecommendationYes, bites only, and offered only after a successful food search. Never before, never as a condition.
  • +
  • Weekly rhythm or a daily streak?RecommendationWeekly. Food work runs on a weekly beat, and daily streaks are where the guilt lives.
  • +
  • An individual leaderboard?RecommendationNo. Circle goals only. The existing opt-in drop-off board stays.
  • +
  • Do seeds ever convert into anything?RecommendationNot in version 1. Anything of value to volunteers raises tax and fairness questions; run it past /hand-tax before promising it.
  • +
  • WhatsApp scope.RecommendationOne-to-one helper plus human-run announcement groups. Start Meta verification now.
  • +
  • “Take part” on the second landing door for first-time visitors.RecommendationYes, with Sign in kept as a text link right under it.
  • +
  • Who creates missions at launch?RecommendationBites generate themselves. Runs and shifts come from coordinators through one “Make this a mission” button on the rescue, harvest, and event boards.
  • +
  • The helper’s name and voice.Recommendation“The yuhm helper”, plainspoken, bilingual, always clear that it is automated.
  • +
+
+ +

Everything in the phone is sample content and is labeled that way. The build plan with the SQL sketch and file-by-file notes lives in the repo at plans/004-yuhm-the-mission.md; the gatherings plan is plans/005-yuhm-gatherings-koord.md; this page’s source is yuhm/prototypes/the-mission/. Grocery prices in the gathering screens are invented. WhatsApp limits and prices were checked against public sources on 19 Sep 2026 and should be confirmed again at setup. In this demo the small labels use a condensed face where the app uses DM Mono; that is a proposal, and it is one token to swap back.

+
+ + + diff --git a/yuhm/prototypes/the-mission/mission.css b/yuhm/prototypes/the-mission/mission.css new file mode 100644 index 00000000..db24ad09 --- /dev/null +++ b/yuhm/prototypes/the-mission/mission.css @@ -0,0 +1,440 @@ +/* THE MISSION — UX demo. yuhm's palette, pushed: a drenched garden-green stage, produce-colored + routes, and components shaped like real things (patches, tickets, punch cards, stickers). */ +:root { + --ground: #fbf6ea; --card: #fffdf6; --ink: #3b2922; --ink-soft: #6b564b; --line: #e4d8bd; --rule: #3b2922; + --field: #173f31; --field-hi: #21523f; --field-ink: #fbf3df; --field-soft: #b9d2be; --field-line: rgba(251, 243, 223, .2); + --action: #2d6b50; --action-deep: #1f4a37; --link: #2d6b50; + --tomato: #e2603f; --corn: #f0b429; --mint: #a9c98b; --cacao: #3b2922; + --tomato-tint: #fbe3d9; --corn-tint: #fbedc4; --green-tint: #e4efe1; + --band-dark: #2f211b; --band-dark-ink: #fbf3df; --band-dark-soft: #cdb9a6; + --code-bg: #f1e7d0; + --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif; + --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; + --label: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif; + --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; + --ease: cubic-bezier(0.16, 1, 0.3, 1); + --gutter: clamp(16px, 4vw, 48px); +} +@media (prefers-color-scheme: dark) { + :root:not([data-theme="light"]) { + --ground: #1d1511; --card: #2a1e18; --ink: #f6ead6; --ink-soft: #c9b5a3; --line: #47352b; --rule: #f6ead6; + --field: #11281f; --field-hi: #1a3a2d; --link: #86cba7; + --tomato-tint: #4a2a20; --corn-tint: #43371a; --green-tint: #223a2e; --band-dark: #120c09; --code-bg: #33261f; + } +} +:root[data-theme="dark"] { + --ground: #1d1511; --card: #2a1e18; --ink: #f6ead6; --ink-soft: #c9b5a3; --line: #47352b; --rule: #f6ead6; + --field: #11281f; --field-hi: #1a3a2d; --link: #86cba7; + --tomato-tint: #4a2a20; --corn-tint: #43371a; --green-tint: #223a2e; --band-dark: #120c09; --code-bg: #33261f; +} + +*, *::before, *::after { box-sizing: border-box; } +body { background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; } +a { color: var(--link); text-underline-offset: 3px; } +:focus-visible { outline: 3px solid var(--corn); outline-offset: 3px; border-radius: 6px; } +button { font: inherit; color: inherit; cursor: pointer; } +svg.i { flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } +h1, h2, h3, h4 { font-family: var(--display); line-height: 1.04; margin: 0; text-wrap: balance; } +p { margin: 0; } +code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .82em; background: var(--code-bg); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; } +.lab { font-family: var(--label); font-weight: 700; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; } + +/* One gutter for every band: content sits in the middle column. */ +.field, .plan > section { display: grid; grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 1160px) minmax(var(--gutter), 1fr); } +.field > *, .plan > section > * { grid-column: 2; min-width: 0; } + +/* ---------- the green field: masthead + stage ---------- */ +.field { + background: radial-gradient(ellipse 60% 46% at 22% 74%, var(--field-hi), transparent 70%), + radial-gradient(circle at 1px 1px, rgba(251, 243, 223, .1) 1px, transparent 1.6px) 0 0 / 22px 22px, var(--field); + color: var(--field-ink); padding-block: 34px 72px; row-gap: 44px; +} +.field a { color: var(--field-ink); } +.field code { background: rgba(0, 0, 0, .28); color: #f6dc9a; } +.mast { display: flex; flex-direction: column; gap: 18px; } +.mast .lab { color: var(--field-soft); } +.title-row { display: flex; align-items: flex-end; gap: clamp(10px, 3vw, 36px); flex-wrap: wrap; } +h1 { font-size: clamp(3.7rem, 13.5vw, 10.5rem); font-weight: 800; line-height: .8; letter-spacing: -.02em; padding-top: .12em; } +h1 em { font-style: normal; color: var(--corn); display: block; } +.mast-patch { transform: rotate(11deg); margin-bottom: clamp(4px, 2vw, 26px); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); } +.mast-patch svg { width: clamp(104px, 15vw, 176px); height: auto; display: block; } +.mast .lede { max-width: 58ch; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.45; color: var(--field-soft); } +.mast .lede strong { color: var(--field-ink); font-weight: 600; } +.toc { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0; margin: 0; list-style: none; font-family: var(--label); font-weight: 600; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; } +.toc a { text-decoration: none; border-bottom: 2px solid var(--field-line); padding-bottom: 1px; transition: border-color 160ms; } +.toc a:hover { border-color: var(--corn); } + +.stage { display: grid; grid-template-columns: minmax(300px, 414px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; } +@media (max-width: 900px) { .stage { grid-template-columns: minmax(0, 1fr); } } + +/* screen rail */ +.director { display: flex; flex-direction: column; gap: 30px; min-width: 0; } +.rail { display: flex; flex-direction: column; gap: 14px; } +.rail-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 10px; } +.rail-row > .lab { color: var(--corn); padding-top: 8px; } +.rail-row ol { list-style: none; margin: 0; padding: 0; display: flex; } +.rail-row li { flex: 0 0 20%; min-width: 0; position: relative; } +.rail-row li::before { content: ''; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--field-line); } +.rail-row li:first-child::before { left: 50%; } +.rail-row li:last-child::before { right: 50%; } +.rail-row button { position: relative; width: 100%; background: none; border: 0; padding: 0 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--field-soft); font-size: .78rem; line-height: 1.2; text-align: center; } +.rail-row button b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1rem; background: var(--field); border: 2px solid var(--field-line); color: var(--field-ink); transition: transform 220ms var(--ease), background 220ms, border-color 220ms; } +.rail-row button:hover b { border-color: var(--corn); } +.rail-row button[aria-current="step"] { color: var(--field-ink); font-weight: 600; } +.rail-row button[aria-current="step"] b { background: var(--corn); border-color: var(--corn); color: var(--cacao); transform: scale(1.18); } +.rail-row li.seen button:not([aria-current]) b { background: var(--field-hi); border-color: var(--field-soft); } +@media (max-width: 560px) { .rail-row { grid-template-columns: 1fr; gap: 6px; } .rail-row > .lab { padding-top: 0; } } + +.notes { display: flex; flex-direction: column; gap: 16px; } +.notes .lab { color: var(--field-soft); } +.notes h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); font-weight: 800; } +.notes > p { max-width: 60ch; font-size: 1.05rem; color: #e6efe0; } +.notes dl { margin: 6px 0 0; display: grid; grid-template-columns: 104px 1fr; gap: 0; } +.notes dt, .notes dd { border-top: 1px solid var(--field-line); padding-block: 12px; margin: 0; } +.notes dt { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--corn); padding-top: 15px; } +.notes dd { font-size: .96rem; max-width: 58ch; color: #e6efe0; } +@media (max-width: 520px) { .notes dl { grid-template-columns: 1fr; } .notes dd { border-top: 0; padding-top: 0; } .notes dt { padding-bottom: 4px; } } +.nav-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; } +.nav-row button { border: 2px solid var(--field-line); background: transparent; color: var(--field-ink); border-radius: 14px; padding: 10px 18px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; transition: transform 140ms var(--ease), box-shadow 140ms var(--ease); } +.nav-row button.primary { background: var(--corn); border-color: var(--corn); color: var(--cacao); box-shadow: 0 4px 0 #a97a0c; } +.nav-row button.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #a97a0c; } +.nav-row button[disabled] { opacity: .35; cursor: not-allowed; } + +/* ---------- device ---------- */ +.device { position: relative; width: 100%; max-width: 414px; margin-inline: auto; padding: 11px; border-radius: 56px; background: #17100c; box-shadow: inset 0 0 0 2px #46352b, 0 50px 70px -36px rgba(0, 0, 0, .7), 0 22px 30px -20px rgba(0, 0, 0, .55); } +.device::before { content: ''; position: absolute; top: 23px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 99px; background: #17100c; z-index: 6; } +.phone { + /* The phone depicts the product, which is a light surface: pin the tokens. */ + --ground: #fbf6ea; --card: #fffdf6; --ink: #3b2922; --ink-soft: #6b564b; --line: #e4d8bd; + --action: #2d6b50; --action-deep: #1f4a37; --link: #2d6b50; --green-tint: #e4efe1; + --tomato-tint: #fbe3d9; --corn-tint: #fbedc4; --code-bg: #f1e7d0; + --rc: #b79ac6; --rt: #efe6f4; + height: 772px; border-radius: 46px; overflow: hidden; position: relative; + display: flex; flex-direction: column; background: var(--ground); color: var(--ink); +} +.phone::after { content: ''; position: absolute; bottom: 7px; left: 50%; translate: -50% 0; width: 124px; height: 4px; border-radius: 99px; background: rgba(59, 41, 34, .32); z-index: 6; pointer-events: none; } +.sb { flex: none; height: 48px; padding: 8px 28px 0; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 13.5px; background: var(--card); } +.sb.wa { background: #1f4a37; color: #fff; } +.sb-r { display: flex; align-items: center; gap: 6px; } +.p-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 20px 12px; background: var(--card); border-bottom: 1px solid var(--line); } +.lockup { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; color: #4a332a; display: flex; align-items: baseline; gap: 5px; } +.lockup .heart { color: var(--tomato); font-size: .72em; } +.tag { font-family: var(--label); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--corn); color: var(--cacao); white-space: nowrap; transform: rotate(-2deg); display: inline-block; } +.p-body { flex: 1; overflow-y: auto; padding: 20px 20px 10px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; } +/* A tall screen scrolls. Without this, children with overflow: hidden (lists, tickets) get squashed instead. */ +.p-body > * { flex-shrink: 0; } +.phone[data-enter="1"] .p-body > * { animation: enter 420ms var(--ease) both; } +.phone[data-enter="1"] .p-body > *:nth-child(2) { animation-delay: 40ms; } +.phone[data-enter="1"] .p-body > *:nth-child(3) { animation-delay: 80ms; } +.phone[data-enter="1"] .p-body > *:nth-child(n+4) { animation-delay: 120ms; } +@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } } +.p-body > h2 { font-size: 1.85rem; font-weight: 800; } +.p-body > h2.big { font-size: 2.5rem; line-height: .95; } +.p-body p.sub { color: var(--ink-soft); font-size: .96rem; } +.p-foot { flex: none; padding: 12px 20px 26px; display: flex; flex-direction: column; gap: 10px; } +.kick { font-family: var(--label); font-weight: 700; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); } + +.p-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; border: 0; border-radius: 18px; padding: 14px 18px; min-height: 54px; font-family: var(--display); font-weight: 700; font-size: 1.18rem; background: var(--action); color: #fff; box-shadow: 0 5px 0 var(--action-deep); transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), filter 140ms; } +.p-btn:hover { filter: brightness(1.06); } +.p-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--action-deep); } +.p-btn.quiet { background: var(--card); color: var(--ink); box-shadow: 0 5px 0 #d5c7a6; border: 2px solid var(--ink); } +.p-btn.quiet:active { box-shadow: 0 1px 0 #d5c7a6; } +.p-btn[disabled] { opacity: .4; cursor: not-allowed; filter: none; } +.p-link { background: none; border: 0; padding: 6px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; font-size: .93rem; align-self: center; } +.seeds { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1; color: var(--cacao); background: var(--corn); border-radius: 99px; padding: 5px 10px 4px 8px; white-space: nowrap; } +.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; } + +/* landing hero inside the phone */ +.hero-art { position: relative; height: 118px; margin: -4px -20px 0; overflow: hidden; } +.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; } + +/* join trail */ +.trail { list-style: none; margin: 0; padding: 0; display: flex; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); } +.trail li { flex: 1; position: relative; padding-top: 18px; text-align: center; } +.trail li::before { content: ''; position: absolute; top: 5px; left: -50%; right: 50%; height: 4px; background: var(--line); border-radius: 9px; } +.trail li:first-child::before { display: none; } +.trail li::after { content: ''; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); } +.trail li.on { color: var(--ink); } +.trail li.on::before { background: var(--action); } +.trail li.on::after { background: var(--action); border-color: var(--action); } +.trail li.now::after { background: var(--corn); border-color: var(--ink); } + +/* route sticker tiles */ +.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 4px 2px; } +.route { position: relative; text-align: left; background: var(--c); color: var(--cacao); border: 4px solid #fffdf6; border-radius: 22px; padding: 12px 12px 13px; display: flex; flex-direction: column; gap: 3px; transform: rotate(var(--tilt)); box-shadow: 0 2px 0 rgba(59, 41, 34, .22), 0 12px 16px -12px rgba(59, 41, 34, .55); transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); } +.route:hover { transform: rotate(0deg) translateY(-3px); } +.route strong { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1; margin-top: 2px; } +.route small { font-size: .8rem; line-height: 1.25; } +.route[aria-checked="true"] { transform: rotate(0deg) scale(1.04); box-shadow: 0 0 0 3px var(--cacao), 0 14px 18px -12px rgba(59, 41, 34, .6); z-index: 1; } +.route .tick { position: absolute; top: -10px; right: -8px; width: 30px; height: 30px; border-radius: 50%; background: var(--cacao); color: #fffdf6; display: grid; place-items: center; animation: thunk 360ms var(--ease) both; } + +.opts { display: flex; flex-wrap: wrap; gap: 9px; } +.opt { border: 2px solid var(--ink); background: var(--card); border-radius: 14px; padding: 10px 14px; font-weight: 500; font-size: .96rem; box-shadow: 0 3px 0 var(--ink); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background 160ms; display: inline-flex; align-items: center; gap: 6px; } +.opt[aria-pressed="true"] { background: var(--rc); transform: translateY(3px); box-shadow: 0 0 0 var(--ink); font-weight: 700; } +.bite-q { background: var(--rt); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 14px; } +.bite-q h2 { font-size: 1.55rem; font-weight: 800; } + +/* patches (stamps) */ +.patch { display: block; } +.patch-t { font-family: var(--label); font-weight: 700; font-size: 11px; letter-spacing: 1.6px; fill: #3b2922; text-transform: uppercase; } +.stamped { animation: thunk 520ms var(--ease) both; filter: drop-shadow(0 6px 0 rgba(59, 41, 34, .16)); } +@keyframes thunk { from { transform: scale(1.7) rotate(-14deg); opacity: 0; } 55% { opacity: 1; } to { transform: scale(1) rotate(-6deg); opacity: 1; } } +.route .tick { animation-name: tick; } +@keyframes tick { from { transform: scale(0); } to { transform: scale(1); } } +.cele { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; position: relative; padding-top: 4px; } +.cele h2 { font-size: 2.3rem; font-weight: 800; line-height: .95; } +.burst { position: absolute; top: 70px; left: 50%; width: 0; height: 0; pointer-events: none; } +.burst i { position: absolute; width: 10px; height: 10px; border-radius: 50% 0 50% 50%; background: var(--corn); animation: fly 1000ms var(--ease) both; } +.burst i:nth-child(odd) { background: var(--tomato); } +.burst i:nth-child(3n) { background: var(--mint); } +@keyframes fly { from { transform: translate(0, 0) scale(.3); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1) rotate(220deg); opacity: 0; } } +.count { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: .9; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; } +.count small { font-family: var(--label); font-size: 14px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); align-self: flex-end; padding-bottom: 5px; } + +/* save + fields */ +.keep { background: var(--rt); border-radius: 20px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; } +.keep svg.patch { flex: none; transform: rotate(-8deg); } +.keep b { font-family: var(--display); font-size: 1.1rem; line-height: 1.1; display: block; } +.keep span { font-size: .86rem; color: var(--ink-soft); } +.field-in { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .86rem; } +.field-in input { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 13px 14px; } +.field-in input::placeholder { color: #a08f80; } + +/* opt-in */ +.cadence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; } +.cadence button { border: 2px solid var(--ink); background: var(--card); border-radius: 16px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; box-shadow: 0 4px 0 var(--ink); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background 160ms; } +.cadence .pips { display: flex; gap: 4px; height: 14px; align-items: center; } +.cadence .pips i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); } +.cadence strong { font-family: var(--display); font-size: 1.05rem; line-height: 1; } +.cadence small { font-size: .74rem; color: var(--ink-soft); } +.cadence button[aria-pressed="true"] { background: var(--corn); transform: translateY(4px); box-shadow: 0 0 0 var(--ink); } +.group { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; } +.group > * + * { border-top: 1px solid var(--line); } +.group h3 { font-size: 1.05rem; padding: 12px 14px 0; border: 0; } +.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .95rem; padding: 11px 14px; } +.switch-row small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .8rem; } +.switch { flex: none; width: 50px; height: 30px; border-radius: 99px; border: 2px solid var(--ink); background: var(--card); position: relative; transition: background 200ms; } +.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform 240ms var(--ease); } +.switch[aria-checked="true"] { background: var(--action); } +.switch[aria-checked="true"]::after { transform: translateX(20px); background: #fff; } +.switch[disabled] { opacity: .55; cursor: default; } +.pledge { list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 9px; font-size: .9rem; background: var(--green-tint); border-radius: 18px; } +.pledge li { display: flex; gap: 9px; align-items: flex-start; } +.pledge li svg { color: var(--action); margin-top: 2px; } +.mission-mark { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: .82; letter-spacing: -.01em; } +.mission-mark span { color: var(--tomato); display: block; } + +/* board */ +.passport { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; position: relative; } +.passport::before { content: ''; position: absolute; inset: 5px; border: 1.5px dashed #cdbf9f; border-radius: 16px; pointer-events: none; } +.lvl { grid-row: span 2; display: flex; flex-direction: column; align-items: center; gap: 2px; } +.lvl b { font-family: var(--display); font-size: 1rem; line-height: 1; } +.lvl small { font-size: .68rem; color: var(--ink-soft); } +.pp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } +.pp-head h3 { font-size: 1.2rem; } +.punch { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; } +.punch li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: var(--label); font-weight: 700; font-size: 11px; color: var(--ink-soft); } +.punch i { width: 100%; max-width: 28px; aspect-ratio: 1; border-radius: 50%; border: 2px solid #cdbf9f; display: grid; place-items: center; color: #fff; font-style: normal; } +.punch li.on i { background: var(--action); border-color: var(--action); } +.punch li.now i { border: 2px dashed var(--ink); background: var(--corn-tint); } +.goal { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; border-top: 1.5px dashed #cdbf9f; padding-top: 9px; margin-top: 3px; font-size: .88rem; } +.goal .pips { display: flex; gap: 5px; } +.goal .pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); } +.goal .pips i.on { background: var(--ink); } +.free { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; border: 2px solid var(--ink); border-radius: 18px; padding: 12px 14px; background: var(--card); box-shadow: 0 4px 0 var(--ink); transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background 220ms, color 220ms; } +.free b { font-family: var(--display); font-size: 1.1rem; line-height: 1.1; display: block; } +.free small { display: block; font-size: .8rem; line-height: 1.3; color: var(--ink-soft); } +.free .knob { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--card); display: grid; place-items: center; position: relative; } +.free[aria-checked="true"] { background: var(--action); color: #fff; transform: translateY(4px); box-shadow: 0 0 0 var(--ink); border-color: var(--action-deep); } +.free[aria-checked="true"] small { color: #d5ead9; } +.free[aria-checked="true"] .knob { background: #fff; color: var(--action); } +.free[aria-checked="true"] .knob::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: radar 1.6s ease-out infinite; } +@keyframes radar { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } } +.shelf { display: flex; flex-direction: column; gap: 9px; } +.shelf > .kick { display: flex; justify-content: space-between; } +.list { background: var(--card); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; } +.list > * + * { border-top: 1px solid var(--line); } +.item { width: 100%; background: none; border: 0; text-align: left; display: flex; align-items: center; gap: 11px; padding: 11px 12px; font-size: .92rem; font-weight: 500; transition: background 160ms; } +button.item:hover { background: var(--corn-tint); } +.item > span:nth-child(2) { flex: 1; min-width: 0; } +.item small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .78rem; } +.item .dot { flex: none; width: 34px; height: 34px; border-radius: 12px; background: var(--rt); display: grid; place-items: center; } +.item.done { color: var(--ink-soft); } +.item.done > span:nth-child(2) { text-decoration: line-through; } +.item.done .dot { background: var(--action); color: #fff; } +.cal { flex: none; width: 40px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--ink); text-align: center; background: var(--card); } +.cal em { display: block; font-style: normal; font-family: var(--label); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--tomato); color: #fff; line-height: 1.5; } +.cal b { display: block; font-family: var(--display); font-size: 1.1rem; line-height: 1.35; } +.circle { background: var(--field, #173f31); color: #fbf3df; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 9px; } +.phone .circle { background: #173f31; } +.circle p { font-size: .86rem; color: #cfe2d2; } +.crates { height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; } +.crates span { display: block; height: 100%; border-radius: 99px; background: repeating-linear-gradient(-45deg, #f0b429 0 8px, #f6c955 8px 16px); } +.searching { display: flex; align-items: center; gap: 10px; font-size: .92rem; padding: 16px; border-radius: 18px; border: 2px dashed #cdbf9f; color: var(--ink-soft); } +.quiet-note { padding: 14px 16px; border-radius: 18px; background: var(--green-tint); font-size: .92rem; } + +/* ticket */ +.ticket-wrap { filter: drop-shadow(0 3px 0 rgba(59, 41, 34, .2)) drop-shadow(0 14px 14px rgba(59, 41, 34, .16)); display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; transition: transform 240ms var(--ease); } +button.ticket-wrap:hover { transform: translateY(-3px) rotate(-.6deg); } +.ticket { --stub: 76px; background: var(--card); border-radius: 20px; overflow: hidden; + -webkit-mask: radial-gradient(circle 11px at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat; + mask: radial-gradient(circle 11px at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat; } +.tk-head { background: var(--rc); color: var(--cacao); padding: 14px 16px 13px; display: flex; flex-direction: column; gap: 4px; } +.tk-head h2, .tk-head h3 { font-size: 1.5rem; font-weight: 800; line-height: 1; } +.tk-head .row { align-items: center; } +.tk-facts { margin: 0; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; } +.tk-facts div { display: flex; flex-direction: column; gap: 1px; min-width: 0; } +.tk-facts dt { display: flex; align-items: center; gap: 5px; font-family: var(--label); font-weight: 700; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); } +.tk-facts dd { margin: 0; font-weight: 600; font-size: .93rem; line-height: 1.3; } +.tk-stub { height: var(--stub); border-top: 2px dashed #cdbf9f; margin-inline: 14px; padding-inline: 2px; display: flex; align-items: center; justify-content: space-between; gap: 12px; } +.tk-stub div { display: flex; flex-direction: column; } +.tk-stub .lab { font-size: 11px; color: var(--ink-soft); } +.tk-stub b { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; } +.ticket.compact { --stub: 50px; } +.ticket.compact .tk-head h3 { font-size: 1.25rem; } +.ticket.compact .tk-stub b { font-size: 1.05rem; } +.lockline { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); } +.lockline svg { margin-top: 2px; color: var(--ink); } + +/* active mission */ +.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; } +.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 16px; position: relative; } +.steps li::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: -2px; width: 6px; border-radius: 9px; background: var(--line); } +.steps li:last-child::before { display: none; } +.steps li.past::before { background: var(--action); } +.steps .node { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); background: var(--card); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .95rem; color: var(--ink-soft); z-index: 1; } +.steps li.past .node { background: var(--action); border-color: var(--action); color: #fff; } +.steps li.live .node { border-color: var(--ink); background: var(--rc); color: var(--cacao); box-shadow: 0 0 0 5px var(--rt); } +.steps h4 { margin: 5px 0 2px; font-size: 1.12rem; } +.steps li:not(.live):not(.past) h4 { color: var(--ink-soft); font-weight: 600; } +.steps p { font-size: .88rem; color: var(--ink-soft); } +.steps li.live .body { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 8px 12px 12px; margin-top: -4px; } +.cks { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; } +.ck { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 13px; border: 2px solid var(--line); background: var(--ground); font-weight: 500; font-size: .92rem; transition: background 160ms, border-color 160ms; } +.ck .box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--ink); display: grid; place-items: center; color: transparent; background: var(--card); } +.ck[aria-pressed="true"] { background: var(--green-tint); border-color: var(--action); } +.ck[aria-pressed="true"] .box { background: var(--action); border-color: var(--action); color: #fff; } + +/* done */ +.ringrow { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 12px 14px; } +.ringrow b { font-family: var(--display); font-size: 1.2rem; line-height: 1.1; display: block; } +.ringrow span { font-size: .85rem; color: var(--ink-soft); } +.thanks { position: relative; margin: 8px 6px 0; background: #fff8d9; color: #3b2922; padding: 20px 18px 14px; transform: rotate(-1.6deg); box-shadow: 0 10px 16px -10px rgba(59, 41, 34, .5); font-family: var(--hand); font-weight: 600; font-size: 1.5rem; line-height: 1.12; text-align: left; } +.thanks::before { content: ''; position: absolute; top: -11px; left: 50%; translate: -50% 0; width: 84px; height: 24px; background: rgba(169, 201, 139, .75); transform: rotate(2deg); } +.thanks cite { display: block; font-family: var(--body); font-style: normal; font-weight: 500; font-size: .76rem; color: #6b564b; margin-top: 8px; } +.loop { display: flex; align-items: center; gap: 12px; background: var(--green-tint); border-radius: 18px; padding: 12px 14px; text-align: left; } +.loop h3 { font-size: 1.05rem; } +.loop p { font-size: .84rem; color: var(--ink-soft); } + +/* email */ +.segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #eadfc4; border-radius: 14px; padding: 4px; gap: 2px; } +.segs button { border: 0; background: none; border-radius: 11px; padding: 8px 4px; font-weight: 600; font-size: .8rem; color: var(--ink-soft); transition: background 180ms, color 180ms; } +.segs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(59, 41, 34, .22); } +.mail { background: #fff; border-radius: 18px; overflow: hidden; font-size: .92rem; color: #33251f; box-shadow: 0 2px 0 rgba(59, 41, 34, .14), 0 14px 22px -16px rgba(59, 41, 34, .5); } +.mail header { padding: 14px; display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 10px; align-items: center; border-bottom: 1px solid #efe6d2; } +.mail .av { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: #173f31; color: #fbf3df; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; } +.mail header b { font-size: .92rem; } +.mail header time { font-size: .74rem; color: #8a786c; } +.mail header span { grid-column: 2 / -1; font-size: .78rem; color: #7d6a5f; } +.mail h3 { font-size: 1.3rem; padding: 14px 14px 0; } +.mail .m-body { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 10px; } +.mail .m-btns { display: flex; flex-wrap: wrap; gap: 8px; } +.mail .m-btns span { border-radius: 12px; padding: 10px 16px; font-family: var(--display); font-weight: 700; background: #2d6b50; color: #fff; box-shadow: 0 3px 0 #1f4a37; } +.mail .m-btns span.alt { background: #fbf6ea; color: #3b2922; box-shadow: 0 3px 0 #d5c7a6; } +.mail footer { padding: 11px 14px; font-size: .74rem; color: #8a786c; background: #faf5e8; } + +/* whatsapp */ +.wa-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 16px 12px; background: #1f4a37; color: #fff; } +.wa-head .av { width: 38px; height: 38px; border-radius: 50%; background: #fbf6ea; color: #4a332a; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; } +.wa-head b { display: block; line-height: 1.2; } +.wa-head small { display: block; opacity: .8; font-size: .74rem; } +.wa-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; background: radial-gradient(circle at 2px 2px, rgba(59, 41, 34, .06) 1.5px, transparent 2px) 0 0 / 20px 20px, #efe6d3; } +.msg { max-width: 84%; padding: 8px 11px; border-radius: 14px; font-size: .9rem; line-height: 1.4; background: #fff; color: #33251f; align-self: flex-start; border-top-left-radius: 4px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); animation: enter 300ms var(--ease) both; } +.msg.me { align-self: flex-end; background: #d6ecd0; border-radius: 14px; border-top-right-radius: 4px; } +.msg .qr { display: flex; flex-direction: column; margin-top: 8px; } +.msg .qr button { border: 0; border-top: 1px solid #ece3d2; background: none; padding: 8px 0 5px; color: #1f6f9c; font-weight: 600; font-size: .92rem; } +.msg.typing { display: flex; gap: 4px; padding: 12px; } +.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #a39486; animation: blink 1.1s infinite both; } +.msg.typing i:nth-child(2) { animation-delay: .18s; } .msg.typing i:nth-child(3) { animation-delay: .36s; } +@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } } +.wa-suggest { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 9px 12px 4px; background: #f6efe0; scrollbar-width: none; } +.wa-suggest button { flex: none; border: 1.5px solid #cdbf9f; background: #fffdf6; border-radius: 99px; padding: 7px 12px; font-size: .84rem; font-weight: 500; } +.wa-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 24px; background: #f6efe0; } +.wa-bar span { flex: 1; background: #fff; border-radius: 99px; padding: 9px 14px; font-size: .88rem; color: #a39486; } +.wa-bar i { width: 38px; height: 38px; border-radius: 50%; background: #1f4a37; color: #fff; display: grid; place-items: center; } + +.banner { background: var(--tomato-tint); border-radius: 16px; padding: 11px 13px; font-size: .88rem; display: flex; gap: 9px; align-items: flex-start; } +.pause-tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; } +.pause-tile p { font-size: .88rem; color: var(--ink-soft); } +.danger { color: #a63a1f; } + +/* ---------- plan ---------- */ +.plan { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 110px); padding-block: clamp(56px, 7vw, 96px) 0; } +.plan > section { row-gap: 22px; scroll-margin-top: 24px; } +.plan > section > p, .plan > section > ul:not([class]), .plan > section > ol:not([class]) { max-width: 68ch; } +.plan ul:not([class]) { margin: 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 8px; } +.plan ul:not([class]) li::marker { color: var(--tomato); } +.plan .eyebrow { justify-self: start; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; background: var(--corn); color: var(--cacao); padding: 2px 11px; border-radius: 4px; transform: rotate(-1.6deg); margin-bottom: -4px; } +.plan h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.7rem); font-weight: 800; line-height: .95; letter-spacing: -.01em; max-width: 18ch; } +.plan h3 { font-size: 1.45rem; font-weight: 700; margin-top: 14px; } + +#rules { background: var(--band-dark); color: var(--band-dark-ink); padding-block: clamp(56px, 7vw, 92px); margin-top: calc(-1 * clamp(56px, 7vw, 96px)); } +#rules .eyebrow { background: var(--tomato); color: #fff; } +.rules { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px clamp(28px, 5vw, 72px); } +.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 6px 12px; align-content: start; } +.rules li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--dot, var(--corn)); margin-top: 7px; } +.rules li:nth-child(1) { --dot: #f08a6c; } .rules li:nth-child(2) { --dot: #8cc084; } .rules li:nth-child(3) { --dot: #f5c451; } +.rules li:nth-child(4) { --dot: #b79ac6; } .rules li:nth-child(5) { --dot: #f3a552; } +.rules b { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); line-height: 1.05; } +.rules span { grid-column: 2; font-size: .98rem; color: var(--band-dark-soft); max-width: 46ch; } + +.table-scroll { overflow-x: auto; } +table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 660px; border-top: 3px solid var(--rule); } +th { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; text-align: left; padding: 10px 16px 9px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; } +td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; } +td:first-child { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; min-width: 8ch; } +td:first-child code { font-size: .8rem; font-weight: 400; } +tbody tr { transition: background 140ms; } +tbody tr:hover { background: color-mix(in srgb, var(--corn) 12%, transparent); } +td.no { color: var(--ink-soft); } +td.no:not(:empty)::before { content: '✕'; color: var(--tomato); font-weight: 700; margin-right: 7px; } +.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px clamp(28px, 4vw, 56px); } +.two > div { border-top: 3px solid var(--rule); padding-top: 4px; display: flex; flex-direction: column; gap: 10px; } +.two h3 { margin-top: 8px; } +.diagram { overflow-x: auto; border: 2px solid var(--rule); border-radius: 22px; background: var(--card); padding: 18px; } +.callout { background: var(--corn-tint); border-radius: 22px; padding: 20px 22px; max-width: 74ch; font-size: 1.02rem; position: relative; } +.callout b:first-child { display: block; font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.1; margin-bottom: 6px; } +.callout.warn { background: var(--tomato-tint); } +.phases { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; counter-reset: ph -1; } +.phases li { counter-increment: ph; display: grid; grid-template-columns: clamp(56px, 8vw, 96px) 1fr; gap: 0 18px; padding-bottom: 30px; position: relative; } +.phases li::before { content: counter(ph); width: clamp(48px, 6vw, 68px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ground); font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); z-index: 1; } +.phases li:nth-child(2)::before { background: #8cc084; color: var(--cacao); } .phases li:nth-child(3)::before { background: #f5c451; color: var(--cacao); } +.phases li:nth-child(4)::before { background: #b79ac6; color: var(--cacao); } .phases li:nth-child(5)::before { background: #f3a552; color: var(--cacao); } +.phases li::after { content: ''; position: absolute; top: 8px; bottom: -8px; left: calc(clamp(48px, 6vw, 68px) / 2 - 2px); width: 4px; background: var(--line); } +.phases li:last-child::after { display: none; } +.phases li > div { display: flex; flex-direction: column; gap: 6px; max-width: 70ch; padding-top: 8px; } +.phases h3 { margin: 0; } +.phases small { color: var(--ink-soft); font-size: .95rem; } +.phases small b { color: var(--ink); } + +#decisions { background: var(--corn); color: var(--cacao); padding-block: clamp(56px, 7vw, 92px); } +#decisions .eyebrow { background: var(--cacao); color: var(--corn); } +#decisions code { background: rgba(59, 41, 34, .12); } +.decisions { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; counter-reset: dq; } +.decisions li { counter-increment: dq; padding: 18px 0; border-top: 2px solid rgba(59, 41, 34, .85); display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.25fr); gap: 6px 22px; align-items: start; } +.decisions li::before { content: counter(dq); font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; } +.decisions b { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; } +.decisions span { font-size: 1rem; } +.decisions span i { font-style: normal; font-family: var(--label); font-weight: 700; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; background: var(--cacao); color: var(--corn); padding: 1px 8px; border-radius: 4px; display: inline-block; margin: 0 8px 4px 0; } +@media (max-width: 700px) { .decisions li { grid-template-columns: 30px 1fr; } .decisions span { grid-column: 2; } } +.foot { width: min(1160px, 100% - 2 * var(--gutter)); margin: -24px auto 0; padding-bottom: 56px; font-size: .88rem; color: var(--ink-soft); } + +@media (max-width: 480px) { + .device { padding: 8px; border-radius: 46px; } + .phone { border-radius: 38px; height: 730px; } + .device::before { top: 18px; } +} +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { animation: none !important; transition: none !important; } + .stamped { transform: rotate(-6deg); } +} diff --git a/yuhm/prototypes/the-mission/mission.js b/yuhm/prototypes/the-mission/mission.js new file mode 100644 index 00000000..1cf4d1ec --- /dev/null +++ b/yuhm/prototypes/the-mission/mission.js @@ -0,0 +1,413 @@ +/* THE MISSION — clickable UX demo. Everything here is sample content; nothing talks to Supabase. */ +(() => { + 'use strict' + + // Icon paths from lucide (ISC), the same set the app already ships. + const P = { + check: '', + clock: '', + pin: '', + truck: '', + users: '', + sprout: '', + bell: '', + utensils: '', + chef: '', + heart: '', + leaf: '', + arrow: '', + back: '', + lock: '', + box: '', + bag: '', + radar: '', + pause: '', + send: '', + languages: '', + } + const icon = (name, size = 18) => `` + + // Produce-colored routes: tomato, leaf, corn, aubergine, pea, carrot. [fill, tint, tilt] + const LOOK = { eat: ['#f08a6c', '#fde6dc', -2.2], grow: ['#8cc084', '#e3f1df', 1.6], make: ['#f5c451', '#fcefc9', -1.2], move: ['#b79ac6', '#efe6f4', 2], share: ['#b9d99b', '#edf6e2', -1.8], organize: ['#f3a552', '#fde9d0', 1.4] } + + const ROUTES = [ + { id: 'eat', label: 'Eat', icon: 'utensils', copy: 'Find food, help others find it', + bite: { q: 'Last time you stopped by a community fridge, how was it?', opts: ['Well stocked', 'A few things', 'Empty', "Haven't been yet"] }, + mission: { title: 'Fridge check: Chestnut fridge', when: 'Any time today', dist: '0.4 mi · 15 min', needs: 'Just your phone', moves: 'Keeps one listing honest for everyone after you', seeds: 20, stamp: 'First check', + steps: [['Walk to the fridge', 'The exact spot shows here now that you have accepted.', "I'm here"], ['Note what is inside', 'A quick look. No need to touch anything.', 'Noted', ['Fridge is running and clean', 'Shelves photographed', 'Hours on the door match the listing']], ['Send the update', 'Your note goes to the listing and to the fridge host.', 'Send it']], + thanks: ['Thanks for checking on us. We restocked an hour after your note.', 'Fridge host, Chestnut'] } }, + { id: 'grow', label: 'Grow', icon: 'sprout', copy: 'Share your garden’s extra', + bite: { q: 'What do you have more of than you can eat?', opts: ['Tomatoes and peppers', 'Herbs', 'Figs, citrus, pecans', 'Eggs', 'Nothing yet'] }, + mission: { title: 'Harvest share: Saturday pool table', when: 'Sat Sep 26, 9 to 10 am', dist: '0.8 mi · 45 min', needs: 'Bags or a crate', moves: 'About 12 lb of garden extras', seeds: 35, stamp: 'First harvest', + steps: [['Pick and bag', 'Whatever you can spare this week.', 'Bagged', ['Soil rinsed off', 'Bagged by type', 'Date written on the bag']], ['Bring it to the pool table', 'The exact spot shows here now that you have accepted.', "I'm here"], ['Hand off to the pool host', 'They weigh it in so the circle can count it.', 'Handed off']], + thanks: ['Your peppers were gone in ten minutes. Bring more any time.', 'Pool host, Eastside'] } }, + { id: 'make', label: 'Make', icon: 'chef', copy: 'Cook or bake for a gathering', + bite: { q: 'What can your kitchen do?', opts: ['Batch cooking', 'Baking', 'Canning and preserving', 'Prep and chopping', 'Washing up'] }, + mission: { title: 'Kitchen shift: soup night prep', when: 'Thu Sep 24, 5 to 7 pm', dist: '1.4 mi · 2 hours', needs: 'Closed shoes, hair tied back', moves: 'About 60 portions of soup', seeds: 45, stamp: 'First shift', + steps: [['Arrive and wash in', 'The kitchen address shows here now that you have accepted.', 'Washed in', ['Hands washed', 'Hair tied back', 'Closed shoes on']], ['Cook with the crew', 'The kitchen lead hands out stations.', 'Shift done'], ['Portion and label', 'Every container gets a date and an allergen note.', 'All labeled']], + thanks: ['Sixty bowls went out warm. The crew says you chop fast.', 'Kitchen lead'] } }, + { id: 'move', label: 'Move', icon: 'truck', copy: 'Carry food to where it is needed', + bite: { q: 'What wheels do you have?', opts: ['On foot', 'Bike', 'Cargo bike', 'Car', 'Truck or van'] }, + mission: { title: 'Rescue run: bakery to fridge', when: 'Today, 4:30 to 5:30 pm', dist: '2.1 mi · 40 min', needs: 'Car or cargo bike, can lift 25 lb', moves: 'About 60 lb of day-old bread', seeds: 40, stamp: 'First rescue', + steps: [['Pick up at the bakery', 'The address and the contact show here now that you have accepted.', 'Picked up', ['Crates counted (4)', 'Bags sealed', 'Pickup photo taken']], ['Drive to the fridge', 'The fridge host gets a heads-up that you are on the way.', "I'm here"], ['Stock and hand off', 'Bread on the top shelf, oldest in front.', 'Handed off']], + thanks: ['The bread shelf was empty this morning. It is full now. Thank you.', 'Fridge host, Eastside'] } }, + { id: 'share', label: 'Share', icon: 'heart', copy: 'Stock a fridge, pass it along', + bite: { q: 'What could you share this month?', opts: ['Pantry staples', 'Garden extras', 'Fridge or freezer space', 'A ride', 'My time'] }, + mission: { title: 'Stock the fridge: pantry staples', when: 'Any time before Friday', dist: '0.6 mi · 20 min', needs: 'Sealed, in-date items', moves: 'About 10 lb of staples', seeds: 25, stamp: 'First drop', + steps: [['Gather your items', 'Rice, beans, pasta, canned fish, peanut butter all go fast.', 'Packed', ['Everything sealed', 'Dates checked', 'Nothing home-canned']], ['Drop at the fridge', 'The exact spot shows here now that you have accepted.', "I'm here"], ['Shelve and snap a photo', 'The photo updates the listing for the next neighbor.', 'Stocked']], + thanks: ["Somebody's dinner tonight started on your shelf.", 'Fridge host'] } }, + { id: 'organize', label: 'Organize', icon: 'users', copy: 'Bring neighbors to the table', + bite: { q: 'Where would you gather people?', opts: ['My block', 'A park', 'A church or school', 'An apartment courtyard', 'Not sure yet'] }, + mission: { title: 'Welcome table: Saturday pool', when: 'Sat Sep 26, 9 to 11 am', dist: '0.8 mi · 2 hours', needs: 'A friendly face. Spanish is a plus', moves: 'Around 40 neighbors welcomed', seeds: 40, stamp: 'First welcome', + steps: [['Set up the table', 'The exact spot shows here now that you have accepted.', 'Set up', ['Sign is out', 'Sign-in sheet ready', 'Water and shade sorted']], ['Welcome neighbors', 'Say hello, point to the table, answer what you can.', 'Wrapped up'], ['Close out', 'Send the visitor count so the circle can plan next week.', 'Count sent']], + thanks: ['Three new families came back because someone said hello.', 'Circle organizer'] } }, + ] + const BOARD_BITES = [['Confirm hours at a fridge near you', '2 min', 10, 'clock'], ['Translate one listing into Spanish', '3 min', 10, 'languages'], ['Nominate a food source you know', '2 min', 15, 'pin']] + const LEVELS = [['Seed', 0], ['Sprout', 50], ['Vine', 150], ['Bloom', 400], ['Harvest', 900], ['Perennial', 2000]] + const CORE_SCREENS = [['arrive', 'Arrive'], ['route', 'Pick a route'], ['bite', 'First bite'], ['save', 'Save your spot'], ['optin', 'Opt in'], ['board', 'Mission board'], ['offer', 'The offer'], ['active', 'On a mission'], ['done', 'Done'], ['email', 'Email'], ['whatsapp', 'WhatsApp'], ['controls', 'Controls']] + const CORE_GROUPS = [['First visit', 0, 5], ['The loop', 5, 9], ['Staying in touch', 9, 12]] + + const state = { screen: 'arrive', route: 'move', picked: [], biteDone: false, seeds: 0, done: 0, optedIn: null, goal: 2, email: true, whatsapp: false, free: false, offerReady: false, passed: false, step: 0, checks: [], missionDone: false, miniDone: [], mailTab: 'offer', chat: null, paused: false, left: false, foodNote: false, seen: ['arrive'] } + // Pending replies are never cancelled: they settle state even if the viewer moved on, + // and only repaint when their screen is still showing. Only the hold countdown is per-render. + let holdTimer = null + let lastScreen = null + let countFrom = null + let uid = 0 + const later = (fn, ms) => { setTimeout(fn, ms) } + const reduced = () => window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches + + const route = () => ROUTES.find((r) => r.id === state.route) + const level = () => { + const at = LEVELS.reduce((found, entry, i) => (state.seeds >= entry[1] ? i : found), 0) + const next = LEVELS[at + 1] + const span = next ? next[1] - LEVELS[at][1] : 1 + return { name: LEVELS[at][0], next: next ? next[0] : null, toNext: next ? next[1] - state.seeds : 0, pct: next ? Math.round(((state.seeds - LEVELS[at][1]) / span) * 100) : 100 } + } + + /* ---------- components ---------- */ + const seedsTag = (n) => `${icon('leaf', 14)}+${n}` + const statusBar = (cls = '') => `
9:41
` + const top = (right = 'Sample data') => `${statusBar()}
yuhm♥${right}
` + const shell = (body, foot = '', right) => `${top(right)}
${body}
${foot ? `
${foot}
` : ''}` + const trail = (n) => `
    ${['Route', 'First bite', 'Save'].map((l, i) => `
  1. ${l}
  2. `).join('')}
` + const switchRow = (label, sub, on, key) => `
${label}${sub}
` + const burst = () => Array.from({ length: 16 }, (_, i) => { const a = (i / 16) * Math.PI * 2; return `` }).join('') + + // An embroidered-patch stamp: scalloped edge, stitched ring, text on two arcs. + function patch(topText, bottomText, iconName, fill, size = 132, cls = '') { + const id = `pt${++uid}`; const n = 20; const R = 54; const c = 66 + const pts = Array.from({ length: n }, (_, i) => { const a = (i / n) * Math.PI * 2 - Math.PI / 2; return [(c + R * Math.cos(a)).toFixed(2), (c + R * Math.sin(a)).toFixed(2)] }) + const r = (R * Math.sin(Math.PI / n)).toFixed(2) + const d = `M${pts[0][0]} ${pts[0][1]}${pts.map((_, i) => { const p = pts[(i + 1) % n]; return `A${r} ${r} 0 0 1 ${p[0]} ${p[1]}` }).join('')}Z` + return ` + + + ${topText} + ${bottomText} + ${P[iconName]}` + } + const ring = (pct, inner) => { const r = 24; const c = 2 * Math.PI * r; return `` } + const factList = (m) => `
${icon('clock', 13)}When
${m.when}
${icon('pin', 13)}How far
${m.dist}
${icon('bag', 13)}You need
${m.needs}
${icon('box', 13)}It moves
${m.moves}
` + const cadence = () => `
${[[1, 'Easy'], [2, 'Steady'], [3, 'All in']].map(([n, l]) => ``).join('')}
` + const heroArt = `
` + + /* ---------- screens ---------- */ + const VIEWS = { + arrive: () => shell(` + ${heroArt} +

Food, shared full circle.

+

Find food near you, or take part in moving it. Nothing good goes to waste.

+ + ${state.foodNote ? '
Unchanged. Straight to the map. No account, no seeds, no prompts to join. A hungry neighbor never meets a game.
' : ''} + + `), + + route: () => shell(` + ${trail(1)} +

How do you want to take part?

+
${ROUTES.map((r) => ` + `).join('')}
+

Pick one to start. You can add more later.

`, + ``), + + bite: () => { + const b = route().bite + if (state.biteDone) return shell(` + ${trail(2)} +
${burst()}
+ ${patch('First bite', 'yuhm · Austin', 'leaf', LOOK[state.route][0], 150, 'stamped')} +

First mission done

${seedsTag(10)} +

That was a bite: two minutes, and yuhm already knows what to offer you. Runs and shifts are the bigger ones.

`, + ``) + return shell(` + ${trail(2)} +
First bite · ${route().label} · 2 min${seedsTag(10)} +

${b.q}

+
${b.opts.map((o, i) => ``).join('')}
+

Your answer shapes which missions you get offered. Change it any time.

`, + ``) + }, + + save: () => shell(` + ${trail(3)} +
${patch('First bite', 'yuhm · Austin', 'leaf', LOOK[state.route][0], 64)}
${state.seeds || 10} seeds and a stamp${route().label} route. An account keeps them.
+

Save your spot

+

One step. If this email already has a yuhm account, this signs you in.

+ + `, + ``), + + optin: () => shell(` + Optional · your account works either way +
Join theMISSION?
${patch('Opt in', 'Pause any time', route().icon, LOOK[state.route][0], 92)}
+

Missions matched to your ${route().label} route, near your neighborhood, at a rhythm you choose.

+
Your weekly rhythm${cadence()}
+
How may we reach you?
+ ${switchRow('In the app', 'Always on', true, null)} + ${switchRow('Email', 'Offers, reminders, a Sunday digest', state.email, 'email')} + ${switchRow('WhatsApp', 'Offers and a helper you can talk to', state.whatsapp, 'whatsapp')}
+
    +
  • ${icon('check', 17)}Passing on a mission never costs you anything.
  • +
  • ${icon('check', 17)}Pause or leave in one tap. Quiet from 9 pm to 8 am.
  • +
  • ${icon('check', 17)}Addresses stay hidden until you accept.
  • +
  • ${icon('check', 17)}Seeds are thanks, not money. No public ranking.
`, + ``), + + board: () => { + if (state.optedIn === false) return shell(` +

You're in. No missions.

+

Your account works like it does today: post, request, gather, coordinate. THE MISSION waits in your profile as one quiet card, and nothing will message you about it.

+
${icon('sprout')}THE MISSIONMissions near you, at your rhythm. See what it is.${icon('arrow', 16)}
`, + ``) + const lv = level(); const m = route().mission + const now = state.missionDone ? '
Nothing held for you right now. New missions show here the moment they match.
' + : state.passed ? '
Passed. No harm done. It went to the next neighbor.
' + : state.offerReady || !state.free ? `` + : `
${icon('radar', 20)}Looking for missions near Eastside…
` + return shell(` + ${state.paused ? `` : ''} +
+
${ring(lv.pct, 'leaf')}${lv.name}${lv.next ? `${lv.toNext} to ${lv.next}` : 'top level'}
+

Week 1 rhythm

${`${icon('leaf', 14)}${state.seeds}`}
+
    ${['M', 'T', 'W', 'T', 'F', 'S', 'S'].map((d, i) => `
  1. ${i === 5 && state.done ? icon('check', 13) : ''}${d}
  2. `).join('')}
+
${Math.min(state.done, state.goal)} of ${state.goal} this week${Array.from({ length: state.goal }, (_, i) => ``).join('')}
+
+ +
For you now${now}
+
Bitestwo minutes each
${BOARD_BITES.map((b, i) => ``).join('')}
+
Claim a slot this week
+
Sun20Compost return4 pm · 1 spot left${seedsTag(30)}
+
Sat26Eastside pool table9 am · 2 spots left${seedsTag(35)}
+
Eastside Circle this weekSample

310 of 500 lb moved together. No ranking, one shared goal.

`, + '', `Sample data`) + }, + + offer: () => { + const m = route().mission + return shell(` +
+
${route().label} · held for you${icon(route().icon, 22)}

${m.title}

+ ${factList(m)} +
Seeds+${m.seeds}
Hold ends in14:59
+
+

${icon('lock', 16)}Exact addresses and contacts appear after you accept. Until then it is neighborhood-level only.

+

Not a fit? Passing is free. It goes to the next neighbor and nothing is held against you.

`, + ``) + }, + + active: () => { + const m = route().mission + const live = Math.min(state.step, m.steps.length - 1) + const items = [`
  • ${icon('check', 16)}

    Accepted

    Details unlocked. Reminder set for 2 hours before.

  • `] + .concat(m.steps.map((s, i) => { + const cls = i < live ? 'past' : i === live ? 'live' : '' + const checks = i === live && s[3] ? `
    ${s[3].map((c, n) => ``).join('')}
    ` : '' + return `
  • ${i < live ? icon('check', 16) : i + 1}

    ${s[0]}

    ${i <= live ? `

    ${s[1]}

    ` : ''}${checks}
  • ` + })) + const s = m.steps[live] + const ready = !s[3] || s[3].every((_, n) => state.checks.includes(n)) + return shell(` +
    On a mission · ${route().label}${seedsTag(m.seeds)}
    +

    ${m.title}

    +
      ${items.join('')}
    `, + ``) + }, + + done: () => { + const m = route().mission; const lv = level() + return shell(` +
    ${burst()}
    + ${patch(m.stamp, 'yuhm · Austin', route().icon, LOOK[state.route][0], 156, 'stamped')} +

    Mission done

    +
    ${icon('leaf', 30)}${state.seeds}seeds
    +

    ${m.moves}. ${Math.min(state.done, state.goal)} of ${state.goal} this week, and your rhythm holds.

    +
    ${ring(lv.pct, 'sprout')}
    ${lv.name}${lv.next ? `${lv.toNext} seeds until you grow to ${lv.next}` : 'Top level'}
    +
    ${m.thanks[0]}${m.thanks[1]} · sample note
    +
    ${patch('Full circle', 'back to soil', 'sprout', '#b9d99b', 58)}

    Take the scraps to compost

    ${seedsTag(15)}

    What is left returns to the soil. Optional, ten minutes.

    `, + ``) + }, + + email: () => { + const m = route().mission + const MAILS = { + offer: ['A mission near Eastside', '3:58 pm', m.title, `

    ${m.when}
    ${m.dist}
    You need: ${m.needs}
    It moves: ${m.moves}

    Held for you until 4:15 pm. Passing is free.

    AcceptPass
    `, 'One tap, no login. The address arrives after you accept.'], + reminder: ['In 2 hours', '2:30 pm', m.title, `

    ${m.when}. Calendar file attached.

    Bring: ${m.needs}.

    See the stepsI can't make it
    `, 'Releasing early costs nothing. It goes straight back to the board.'], + digest: ['Your week with yuhm', 'Sun 5:00 pm', 'Week 1 of your rhythm', `

    You: ${Math.max(state.done, 1)} mission${Math.max(state.done, 1) === 1 ? '' : 's'} and ${Math.max(state.seeds, 10)} seeds.

    Eastside Circle: 310 lb moved, 4 fridges checked. (sample)

    Open next week: Compost return Sun 4 pm · Pool table Sat 9 am

    Claim a slot
    `, 'Sundays at 5 pm. One email a week, never more.'], + checkin: ['Still want missions?', 'Wed 10:00 am', 'Either answer is fine', `

    You have not picked one up in three weeks, which is completely okay. Life is full.

    Should we keep sending them?

    Keep them comingPause a monthStop missions
    `, 'If we do not hear back, we go quiet on our own. Your account and history stay.'], + } + const mail = MAILS[state.mailTab] + return shell(` +

    What lands in the inbox

    +
    ${[['offer', 'Offer'], ['reminder', 'Reminder'], ['digest', 'Digest'], ['checkin', 'Check-in']].map(([id, l]) => ``).join('')}
    +
    y${mail[0]}yuhm <missions@yuhm.handprotocol.org>

    ${mail[2]}

    ${mail[3]}
    ${mail[4]} · Pause · Stop mission email
    `) + }, + + whatsapp: () => `${statusBar('wa')} + + + + `, + + controls: () => shell(` +

    Your controls

    + ${state.left ? '' : ''} +
    Weekly rhythm${cadence()}
    +
    Reach me by
    ${switchRow('In the app', 'Always on', true, null)}${switchRow('Email', 'Offers, reminders, Sunday digest', state.email, 'email')}${switchRow('WhatsApp', 'Offers and the helper', state.whatsapp, 'whatsapp')} +
    Quiet hoursNothing is sent in between9 pm to 8 am
    +
    Take a break

    ${state.paused ? 'Paused until Oct 3. No offers, no nudges. Your rhythm is frozen, not broken.' : 'Pausing freezes your rhythm and stops every mission message.'}

    +
    `, + ``), + } + + const NOTES = { + arrive: ['Arrive: two doors, one new label', 'The landing keeps its two doors. Find food stays exactly as it is: no account, no game, straight to the map. For first-time visitors the second door changes from Sign in to Take part, and Sign in drops to a text link for returning members.', ['Borrowed', 'Nothing yet. The rule on this screen is restraint.'], ['Writes', 'Nothing. A first-visit flag in localStorage (yuhm:first-visit) decides which label the second door wears.'], ['Guardrail', 'Find food never shows seeds, streaks, or prompts to join. Tap it to see.']], + route: ['Pick a route: commitment before paperwork', 'Six routes, the same six the living world already uses (WorldRole: eat, grow, make, move, share, organize). Each gets a produce color that follows the person through every later screen: the first bite, the ticket, the stamps.', ['Borrowed', 'Duolingo asks what you want to learn before it asks who you are.'], ['Writes', 'Nothing yet. The choice rides in localStorage (yuhm:mission-draft) until the account exists.']], + bite: ['First bite: a mission before the account', 'A two-minute mission finished before sign-up. It is the profile form in disguise: the answer becomes the capabilities the dispatcher matches on (wheels, kitchen skills, what they grow). Finishing it earns the first 10 seeds and the first stamp.', ['Borrowed', 'Duolingo lets you finish a lesson, then offers to save your progress. People protect what they have already earned.'], ['Writes', 'Draft only. On account creation the draft is claimed: capabilities go to food_mission_enrollments, the seeds go to food_reputation_ledger as training_completed.']], + save: ['Save your spot: the same one-step form', 'This is the existing EmailContinueForm, untouched: email, password, Continue. It signs in or creates the account. The only change is a header showing what the person is about to keep. Email and password stays the mechanism.', ['Borrowed', 'The save-your-progress moment. Sign-up reads as keeping something, not as paperwork.'], ['Writes', 'Supabase auth user, command.profiles, then the existing ensure_food_participant(). The draft is claimed right after.'], ['Guardrail', 'No new fields. The September funnel pass cut sign-up to one step and this keeps it there.']], + optin: ['Opt in: a separate yes', 'An account does not enroll anyone. This screen says what the person gets, asks for a rhythm, asks how yuhm may reach them, and states four promises. Not now is a full-size button, and it leads to the normal app.', ['Borrowed', 'Duolingo’s goal picker (casual, regular, serious), changed from daily to weekly because food work runs on a weekly beat.'], ['Writes', 'food_mission_enrollments (status, routes, rhythm goal, zone, consent version). One food_notification_prefs row per category and channel. A WhatsApp number goes to food_contact_channels, encrypted, with consent time recorded.'], ['Notifies', 'A welcome email listing this week’s open slots. WhatsApp sends its own opt-in confirmation.']], + board: ['Mission board: home for members who opted in', 'A punch card on top: level ring, the week’s punches, the goal. Then one ticket held for you, bites that take two minutes, and slots to claim. The I’m free now bar is the volunteer version of going online. The circle goal is shared progress, not a ranking.', ['Borrowed', 'DoorDash: Dash Now, scheduled shifts, the offer card. Duolingo: streak counter, daily quests, goal ring.'], ['Writes', 'The bar sets available_until on the enrollment. Everything else is one read: list_food_missions().'], ['Guardrail', 'Only real missions appear. A quiet zone says it is quiet. Bites always exist because the public directory always has hours to confirm, so the board is never empty and never fake.']], + offer: ['The offer: a ticket you can accept or pass', 'One ticket, four facts: when, how far, what you need, what it moves. The hold on the stub is calm and long: 15 minutes for same-day rescues, hours for scheduled work. Pass is free and says so. The exact address stays hidden until acceptance.', ['Borrowed', 'DoorDash’s offer card and countdown, without the red urgency or the acceptance-rate penalty.'], ['Writes', 'food_mission_offers moves to accepted or passed. Accept locks the mission row, fills a slot, creates food_mission_assignments, and for rescues calls the existing claim_food_rescue().'], ['Notifies', 'Accept schedules the 24-hour and 2-hour reminders. Pass re-offers to the next neighbor.']], + active: ['On a mission: one live step', 'A route line with one stop live at a time. A stop can ask for light evidence: a checklist, a count, a photo. Releasing is always visible, and releasing early costs nothing.', ['Borrowed', 'DoorDash’s pickup and drop-off flow, with a confirmation at each stop.'], ['Writes', 'Each tap appends to food_mission_checkpoints with an idempotency key, so a double tap on bad signal never double-counts. Rescue missions also call the existing record_food_rescue_checkpoint().'], ['Notifies', 'The coordinator sees progress live. The receiving spot gets a heads-up at the on-the-way step.'], ['Guardrail', 'Food-safety checklists live on the mission template, so a cold-chain run always asks about the cooler.']], + done: ['Done: the payoff', 'A stamp thunks down, the seeds count up, the week gets its punch, and a real thank-you note shows when there is one. Then one optional next step, the compost return, which closes the loop back to soil.', ['Borrowed', 'Duolingo’s lesson-complete screen. DoorDash’s delivery summary, with impact where earnings would be.'], ['Writes', 'One transaction: assignment completed, a ledger row (delivery_completed, points), the food_mission_progress cache, a stamp if earned, and an outbox row for the receipt.'], ['Notifies', 'A receipt on the person’s chosen channel. No upsell.']], + email: ['Email: four messages, all one-tap', 'Email is the default channel because Resend is already wired. Every email works without a login: signed links accept, pass, pause, or stop. Scheduled missions attach a calendar file. The fourth tab matters most: after three quiet weeks yuhm asks once, and silence means it goes quiet.', ['Borrowed', 'Duolingo’s reminder cadence, turned around: fewer messages when someone drifts, never more.'], ['Writes', 'food_notification_log on every send and every suppression. One-tap links hit a Netlify function that verifies the signature and calls the same RPCs as the app.']], + whatsapp: ['WhatsApp: a one-to-one helper', 'Opt-in only. The helper sends offers and reminders as approved utility templates with quick-reply buttons, and answers questions in English or Spanish. It can do only what the person could do in the app, and it hands off to a coordinator on request or when something sounds like safety or urgent need. Tap the buttons and suggestions to try it.', ['Borrowed', 'DoorDash’s text-message offer loop, moved to the app many Austin neighbors already live in.'], ['Writes', 'Rows in food_messages under one food_conversations thread. Every action lands in food_agent_actions under a food_agent_mandates grant.'], ['Guardrail', 'Official Cloud API only. A bot inside a big neighborhood group is not possible there (groups cap at 8 people and need a verified business badge), so circle-wide news goes to a human-run announcement group.']], + controls: ['Controls: pause and leave are one tap', 'Rhythm, channels, quiet hours, pause, leave. Pausing freezes the rhythm instead of breaking it. Leaving keeps the account and the history, deletes the phone number, and stops every mission message.', ['Borrowed', 'Duolingo’s streak freeze, made automatic and generous.'], ['Writes', 'food_mission_enrollments.status and paused_until, food_notification_prefs, and on leave a hard delete of the WhatsApp row in food_contact_channels.']], + } + + // Extensions (gather.js) add a group of screens without touching the core flow. Each one is a + // function that takes the shared components and returns { group, screens, views, notes, state, actions }. + const EXT = (window.YUHM_DEMO_EXT ?? []).map((extend) => extend({ icon, shell, seedsTag, patch, state, render: () => render() })) + const SCREENS = EXT.reduce((all, ext) => [...all, ...ext.screens], CORE_SCREENS) + const GROUPS = EXT.reduce((all, ext) => [...all, [ext.group, all.at(-1)[2], all.at(-1)[2] + ext.screens.length]], CORE_GROUPS) + const merged = (key) => Object.assign({}, ...EXT.map((ext) => ext[key])) + const views = { ...VIEWS, ...merged('views') } + const notesFor = { ...NOTES, ...merged('notes') } + const extActions = merged('actions') + Object.assign(state, merged('state')) + + const phone = document.getElementById('phone') + const stepper = document.getElementById('stepper') + const notes = document.getElementById('notes') + const mastPatch = document.getElementById('mast-patch') + const index = () => SCREENS.findIndex((s) => s[0] === state.screen) + + function seedChat() { + const r = route(); const m = r.mission + state.chat = [{ who: 'bot', html: `A mission near Eastside fits your ${r.label} route:
    ${m.title}
    ${m.when} · ${m.dist}
    ${m.moves}.
    Want it?`, qr: [['Accept', 'accept'], ['Pass', 'pass'], ['Tell me more', 'bring']] }] + } + function reply(key) { + const m = route().mission; const lv = level() + return { + accept: ['Accept', `It's yours. ${m.title}, ${m.when}. The spot is on E 11th (sample), shown only now that you have accepted. I'll remind you 2 hours before. Reply DROP any time to release it, no hard feelings.`], + pass: ['Pass', 'No problem, passed. It goes to the next neighbor and costs you nothing. If it was the wrong kind of mission, tell me what did not fit and I will adjust.'], + bring: ['What do I need to bring?', `${m.needs}. ${m.moves}. Anything else you want to know before you decide?`], + pausa: ['Pausa por dos semanas', 'Listo. Pausé tus misiones por dos semanas, hasta el 3 de octubre. No te escribo hasta entonces y tu ritmo queda guardado. Responde VOLVER cuando quieras regresar.'], + rhythm: ["What's my rhythm?", `Week 1 of your rhythm, ${Math.min(state.done, state.goal)} of ${state.goal} missions this week. ${state.seeds} seeds${lv.next ? `, ${lv.toNext} more and you grow to ${lv.next}` : ''}.`], + person: ['Talk to a person', 'Of course. I flagged this chat for a coordinator, and a person will answer here, usually within a few hours. If anyone needs food right now, the map is open with no sign-in: yuhm.handprotocol.org'], + }[key] + } + + function countUp() { + const el = document.getElementById('seedcount') + if (!el || countFrom === null) return + const from = countFrom; const to = state.seeds; countFrom = null + if (reduced()) return + const t0 = performance.now() + const tick = (t) => { const k = Math.min(1, (t - t0) / 900); const e = 1 - Math.pow(1 - k, 4); el.textContent = String(Math.round(from + (to - from) * e)); if (k < 1) requestAnimationFrame(tick) } + el.textContent = String(from); requestAnimationFrame(tick) + } + + function render() { + if (holdTimer) { clearInterval(holdTimer); holdTimer = null } + const pastSave = index() >= SCREENS.findIndex((s) => s[0] === 'save') + if (pastSave && !state.biteDone) { state.biteDone = true; state.seeds += 10; state.done += 1 } + if (state.screen === 'whatsapp' && !state.chat) seedChat() + if (state.screen === 'done' && !state.missionDone) { countFrom = state.seeds; state.missionDone = true; state.seeds += route().mission.seeds; state.done += 1 } + if (!state.seen.includes(state.screen)) state.seen = [...state.seen, state.screen] + phone.dataset.enter = lastScreen === state.screen ? '0' : '1' + lastScreen = state.screen + phone.style.setProperty('--rc', LOOK[state.route][0]); phone.style.setProperty('--rt', LOOK[state.route][1]) + phone.innerHTML = views[state.screen]() + const at = index() + stepper.innerHTML = GROUPS.map(([label, a, b]) => `
    ${label}
      ${SCREENS.slice(a, b).map((s, i) => `
    1. `).join('')}
    `).join('') + const n = notesFor[state.screen] + notes.innerHTML = `Screen ${at + 1} of ${SCREENS.length}

    ${n[0]}

    ${n[1]}

    ${n.slice(2).map(([k, v]) => `
    ${k}
    ${v}
    `).join('')}
    + ` + if (state.screen === 'offer') { + let left = 899 + holdTimer = setInterval(() => { left = Math.max(0, left - 1); const el = document.getElementById('hold'); if (el) el.textContent = `${Math.floor(left / 60)}:${String(left % 60).padStart(2, '0')}` }, 1000) + } + if (state.screen === 'done') countUp() + const log = document.getElementById('wa-log'); if (log) log.scrollTop = log.scrollHeight + } + + function act(name, arg) { + const A = { + food: () => { state.foodNote = !state.foodNote }, + route: () => { if (state.route !== arg) { state.route = arg; state.picked = []; state.chat = null; state.step = 0; state.checks = [] } }, + pick: () => { const i = Number(arg); state.picked = state.picked.includes(i) ? state.picked.filter((p) => p !== i) : [...state.picked, i] }, + 'bite-done': () => { if (!state.biteDone) { state.biteDone = true; state.seeds += 10; state.done += 1 }; lastScreen = null }, + goal: () => { state.goal = Number(arg) }, + sw: () => { + state[arg] = !state[arg] + if (arg === 'free' && state.free && !state.missionDone) { state.offerReady = false; state.passed = false; later(() => { state.offerReady = true; if (state.screen === 'board') render() }, 1900) } + }, + join: () => { state.optedIn = true; state.left = false; state.screen = 'board' }, + notnow: () => { state.optedIn = false; state.screen = 'board' }, + mini: () => { const i = Number(arg); if (!state.miniDone.includes(i)) { state.miniDone = [...state.miniDone, i]; state.seeds += BOARD_BITES[i][2]; state.done += 1 } }, + accept: () => { state.step = 0; state.checks = []; state.screen = 'active' }, + pass: () => { state.passed = true; state.screen = 'board' }, + ck: () => { const i = Number(arg); state.checks = state.checks.includes(i) ? state.checks.filter((c) => c !== i) : [...state.checks, i] }, + step: () => { state.checks = []; if (state.step >= route().mission.steps.length - 1) state.screen = 'done'; else state.step += 1 }, + release: () => { state.passed = true; state.step = 0; state.checks = []; state.screen = 'board' }, + mail: () => { state.mailTab = arg }, + pause: () => { state.paused = !state.paused }, + leave: () => { state.left = !state.left; if (state.left) state.whatsapp = false }, + say: () => { + const r = reply(arg) + state.chat = [...state.chat.map((c) => ({ ...c, qr: null })), { who: 'me', html: r[0] }, { who: 'bot', typing: true }] + later(() => { state.chat = [...state.chat.filter((c) => !c.typing), { who: 'bot', html: r[1] }]; if (state.screen === 'whatsapp') render() }, 1100) + }, + } + const run = A[name] ?? extActions[name] + if (run) { run(arg); render() } + } + + document.addEventListener('click', (event) => { + const el = event.target instanceof Element ? event.target.closest('[data-go],[data-act],[data-nav]') : null + if (!el || el.disabled) return + if (el.dataset.go) { if (state.optedIn === null && ['board', 'offer', 'active', 'done'].includes(el.dataset.go)) state.optedIn = true; state.screen = el.dataset.go; render(); return } + if (el.dataset.nav) { const next = SCREENS[index() + Number(el.dataset.nav)]; if (next) { if (state.optedIn === false && next[0] !== 'board') state.optedIn = true; state.screen = next[0]; render() } return } + const [name, arg] = el.dataset.act.split(':') + act(name, arg) + }) + + if (mastPatch) mastPatch.innerHTML = patch('Demo + plan', 'Not built yet', 'sprout', '#f08a6c', 176) + const start = (data) => { if (data && data.state) Object.assign(state, data.state); render() } + try { window.claude?.hot?.snapshot?.(() => ({ state })) } catch { /* preview without the runtime */ } + if (window.claude?.hot?.ready) window.claude.hot.ready(start) + else start(window.claude?.hot?.data ?? {}) +})() diff --git a/yuhm/prototypes/the-mission/preview.mjs b/yuhm/prototypes/the-mission/preview.mjs new file mode 100644 index 00000000..8de0778d --- /dev/null +++ b/yuhm/prototypes/the-mission/preview.mjs @@ -0,0 +1,86 @@ +// Local preview and screenshots for the THE MISSION demo. +// The published artifact wraps index.html in a doctype/head/body; this builds the same wrapper, +// clicks through the flow in headless Chromium, and reports console errors and phone-width overflow. +// +// Usage: node preview.mjs +// On this machine Chromium needs --no-sandbox, and the Claude Code Bash sandbox must be disabled for the call. +import { chromium } from '/home/koh/.claude/skills/gstack/node_modules/playwright/index.mjs' +import { copyFileSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs' +import { dirname, join, resolve } from 'node:path' +import { fileURLToPath } from 'node:url' + +const here = dirname(fileURLToPath(import.meta.url)) +const out = resolve(process.argv[2] ?? join(here, '.preview')) +mkdirSync(out, { recursive: true }) +for (const file of ['mission.css', 'mission.js', 'gather.css', 'gather.js']) copyFileSync(join(here, file), join(out, file)) +const head = '' +writeFileSync(join(out, 'index.html'), `${head}${readFileSync(join(here, 'index.html'), 'utf8')}`) + +const browser = await chromium.launch({ chromiumSandbox: false, args: ['--no-sandbox'] }) +const errors = [] +const page = await browser.newPage({ viewport: { width: 1400, height: 920 } }) +page.on('console', (message) => { if (message.type() === 'error') errors.push(message.text()) }) +page.on('pageerror', (error) => errors.push(`PAGEERROR ${error.message}`)) +await page.goto(`file://${out}/index.html`) +await page.waitForTimeout(1500) +await page.screenshot({ path: join(out, 'desktop-top.png') }) + +const device = page.locator('.device') +const go = async (label) => { await page.click(`#stepper button:has-text("${label}")`); await page.waitForTimeout(700) } +const unticked = '#phone .ck[aria-pressed="false"]' + +await go('Pick a route'); await device.screenshot({ path: join(out, 'p02-route.png') }) +await go('First bite'); await page.click('#phone [data-act="pick:3"]'); await page.click('#phone [data-act="bite-done"]') +await page.waitForTimeout(1300); await device.screenshot({ path: join(out, 'p03-bite-done.png') }) +await go('Opt in'); await device.screenshot({ path: join(out, 'p05-optin.png') }) +await go('Mission board'); await device.screenshot({ path: join(out, 'p06-board.png') }) +await go('The offer'); await device.screenshot({ path: join(out, 'p07-offer.png') }) +await page.click('#phone [data-act="accept"]'); await page.waitForTimeout(600) +await device.screenshot({ path: join(out, 'p08-active.png') }) +for (let step = 0; step < 3; step += 1) { + // The checklist re-renders after every tap, so always re-query instead of holding a list. + while (await page.locator(unticked).count()) await page.locator(unticked).first().click() + await page.click('#phone [data-act="step"]'); await page.waitForTimeout(400) +} +await page.waitForTimeout(1500); await device.screenshot({ path: join(out, 'p09-done.png') }) +await go('Email'); await device.screenshot({ path: join(out, 'p10-email.png') }) +await go('WhatsApp'); await page.click('#phone [data-act="say:accept"]'); await page.waitForTimeout(1500) +await page.click('#phone [data-act="say:pausa"]'); await page.waitForTimeout(1500) +await device.screenshot({ path: join(out, 'p11-whatsapp.png') }) +await go('Controls'); await device.screenshot({ path: join(out, 'p12-controls.png') }) + +// Gatherings: order, lock, the money holder's checklist, the shop run, the bin, the settle tab. +const tap = async (act) => { await page.click(`#phone [data-act="${act}"]`); await page.waitForTimeout(150) } +const toBottom = () => page.evaluate(() => { const body = document.querySelector('#phone .p-body'); body.scrollTop = body.scrollHeight }) +const cents = (text) => Math.round(Number(text.replace(/[^0-9.]/g, '')) * 100) +await go('The gathering'); await device.screenshot({ path: join(out, 'p13-gather.png') }) +await tap('grole:sort'); await tap('gjoin') +await tap('gdish:beans|1'); await tap('gsrc:lime|network'); await device.screenshot({ path: join(out, 'p14-order.png') }) +await toBottom(); await device.screenshot({ path: join(out, 'p14b-order-share.png') }) +await tap('glock'); await page.waitForTimeout(800); await device.screenshot({ path: join(out, 'p14c-order-locked.png') }) +await go('Paid checklist'); await tap('gpaid:4'); await tap('gpayby'); await tap('gkeep:6'); await tap('gdrop:7') +await device.screenshot({ path: join(out, 'p15-paid.png') }) +await go('Shop run'); await tap('gswap'); await tap('gbuyall'); await device.screenshot({ path: join(out, 'p16-shop.png') }) +await tap('greceipt'); await tap('gshoptab:sort'); await device.screenshot({ path: join(out, 'p16b-sort.png') }) +await go('Pick up my bin'); await device.screenshot({ path: join(out, 'p17-pick.png') }) +await toBottom(); await device.screenshot({ path: join(out, 'p17b-balance.png') }) +await tap('gsettleview'); await tap('gsettle:4'); await device.screenshot({ path: join(out, 'p15b-settle.png') }) +const receipt = cents(await page.locator('#phone .tally b').first().innerText()) +const shares = (await page.locator('#phone .led > b').allInnerTexts()).reduce((sum, text) => sum + cents(text), 0) +const moneyCheck = receipt === shares ? `ok (${receipt} cents)` : `MISMATCH receipt ${receipt} vs shares ${shares}` + +for (const id of ['rules', 'game', 'gather', 'phases', 'decisions']) { + await page.evaluate((target) => document.getElementById(target).scrollIntoView(), id) + await page.waitForTimeout(300); await page.screenshot({ path: join(out, `plan-${id}.png`) }) +} + +const mobile = await browser.newPage({ viewport: { width: 400, height: 900 } }) +await mobile.goto(`file://${out}/index.html`); await mobile.waitForTimeout(1200) +await mobile.screenshot({ path: join(out, 'mobile-top.png') }) +const overflow = await mobile.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth) +await mobile.click('#stepper button:has-text("Build my order")'); await mobile.waitForTimeout(600) +const gatherOverflow = await mobile.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth) +await mobile.locator('.device').screenshot({ path: join(out, 'mobile-order.png') }) +await browser.close() + +process.stdout.write(`screenshots: ${out}\nmobile horizontal overflow px: ${overflow} (gathering screen: ${gatherOverflow})\nshares equal the receipt: ${moneyCheck}\nconsole errors: ${JSON.stringify(errors)}\n`) diff --git a/yuhm/src/App.test.tsx b/yuhm/src/App.test.tsx index 18f6d3ae..a32b1b29 100644 --- a/yuhm/src/App.test.tsx +++ b/yuhm/src/App.test.tsx @@ -1,4 +1,4 @@ -import { fireEvent, render, screen, waitFor } from '@testing-library/react' +import { fireEvent, render, screen, waitFor, within } from '@testing-library/react' import userEvent from '@testing-library/user-event' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import App from './App' @@ -183,6 +183,32 @@ describe('yuhm entry points and interaction gates', () => { expect(screen.getByRole('link', { name: /Get yuhm updates/i })).toHaveAttribute('href', '/app/?mode=login&updates=1') }) + it('opens two doors above the fold: browse as a guest or sign in', () => { + render() + expect(screen.getByRole('link', { name: /Find food near me/i })).toHaveAttribute('href', '/app/?mode=anonymous&intent=food') + const signInLinks = screen.getAllByRole('link', { name: /^Sign in/i }) + expect(signInLinks.length).toBeGreaterThanOrEqual(2) + for (const link of signInLinks) expect(link).toHaveAttribute('href', '/app/?mode=login') + }) + + it('signs in or creates the account from one form with no mode toggle', () => { + window.history.replaceState({}, '', '/app/?mode=login') + render() + + expect(screen.getByRole('heading', { level: 1, name: 'Welcome to yuhm.' })).toBeInTheDocument() + expect(screen.getByLabelText('Password')).toHaveAttribute('autocomplete', 'current-password') + expect(screen.getByRole('button', { name: /Continue/ })).toBeInTheDocument() + expect(screen.queryByRole('button', { name: /New here\? Create an account/i })).not.toBeInTheDocument() + expect(screen.queryByRole('button', { name: /Already have an account/i })).not.toBeInTheDocument() + expect(screen.getByRole('link', { name: /Browse as a guest/i })).toHaveAttribute('href', '/app/?mode=anonymous&intent=food') + }) + + it('opens the reset screen directly from mode=reset', () => { + window.history.replaceState({}, '', '/app/?mode=reset') + render() + expect(screen.getByRole('heading', { level: 1, name: 'Reset your password.' })).toBeInTheDocument() + }) + it('routes each landing choice to the relevant workspace', () => { window.history.replaceState({}, '', '/app/?mode=anonymous&intent=contribute') const { unmount } = render() @@ -239,8 +265,12 @@ describe('yuhm entry points and interaction gates', () => { expect(screen.getByText(/Food out, compost back/i)).toBeInTheDocument() expect(screen.getByText(/sealed compost pickup/i)).toBeInTheDocument() await userEvent.click(screen.getByRole('button', { name: /Set up Contributor profile/i })) - expect(screen.getByRole('dialog', { name: /Ready to deliver food and return compost/i })).toBeInTheDocument() - expect(screen.getByRole('link', { name: /Sign in to continue/i })).toHaveAttribute('href', '/app/?mode=login&return=contribute') + const sheet = screen.getByRole('dialog', { name: /Ready to deliver food and return compost/i }) + expect(within(sheet).getByLabelText('Email address')).toBeInTheDocument() + expect(within(sheet).getByLabelText('Password')).toHaveAttribute('autocomplete', 'current-password') + expect(within(sheet).getByRole('button', { name: /Continue/ })).toBeEnabled() + expect(within(sheet).getByRole('link', { name: /Forgot password/i })).toHaveAttribute('href', '/app/?mode=reset') + expect(screen.queryByRole('link', { name: /Sign in to continue/i })).not.toBeInTheDocument() }) it('keeps all four public intents one tap away', async () => { @@ -298,11 +328,12 @@ describe('yuhm entry points and interaction gates', () => { sessionStorage.setItem('yuhm:location-choice', 'complete') render() - await userEvent.click(screen.getByRole('button', { name: /Open account and display settings/i })) - expect(screen.getByText('Simple mode')).toBeInTheDocument() - const advancedLink = screen.getByRole('link', { name: /Turn on advanced workspace/i }) + // Guests see one clear Sign in control in the header; the coordinator + // workspace stays an explicit choice from the footer. + expect(screen.getByRole('link', { name: /^Sign in/ })).toBeInTheDocument() + expect(screen.queryByRole('button', { name: /Open account and display settings/i })).not.toBeInTheDocument() + const advancedLink = screen.getByRole('link', { name: /^Advanced workspace$/i }) expect(advancedLink).toHaveAttribute('href', '/app/?mode=advanced') - expect(screen.getByText(/Coordination, routes, inventory, and reports/i)).toBeInTheDocument() advancedLink.addEventListener('click', (event) => event.preventDefault()) await userEvent.click(advancedLink) expect(localStorage.getItem('yuhm:experience-mode')).toBe('advanced') @@ -392,7 +423,7 @@ describe('yuhm entry points and interaction gates', () => { window.history.replaceState({}, '', '/app/?mode=advanced') render() - expect(screen.getByRole('link', { name: /Browsing openly/i })).toHaveAttribute('href', '/app/?mode=login') + expect(screen.getByRole('link', { name: /Browsing openly/i })).toHaveAttribute('href', '/app/?mode=login&return=%2Fapp%2F%3Fmode%3Dadvanced') }) it('opens the mobile navigation drawer from the top bar', async () => { diff --git a/yuhm/src/App.tsx b/yuhm/src/App.tsx index 8c317293..ec6857d4 100644 --- a/yuhm/src/App.tsx +++ b/yuhm/src/App.tsx @@ -10,6 +10,7 @@ import { DashboardApp } from './DashboardApp' const MapLab = lazy(() => import('./map-lab/MapLab').then((module) => ({ default: module.MapLab }))) const WorldExperience = lazy(() => import('./world/WorldExperience').then((module) => ({ default: module.WorldExperience }))) +const RunsApp = lazy(() => import('./runs/RunsApp').then((module) => ({ default: module.RunsApp }))) // Re-exported so tests and callers keep a single import point. export { CommunityBoard } from './CommunityBoard' @@ -46,12 +47,15 @@ function AppRoutes() { const consumerIntent = intent === 'food' || intent === 'contribute' || intent === 'gather' || intent === 'request' ? intent : null const advancedMode = mode === 'advanced' || Boolean(workspace) const isMapLab = path.startsWith('/app') && mode === 'map-lab' + // The run sheet: a runner's own tool for one pickup shared out to several families. + const isRun = path.startsWith('/app') && mode === 'run' // The living world is the default app experience: bare /app/ and the anonymous // entry always open it, on every viewport. The dashboard is explicit only // (mode=advanced or workspace=); focused intents, auth, and map-lab keep // their existing routes. const isWorld = path.startsWith('/app') && !isMapLab + && !isRun && (mode === 'world' || (!authMode && !advancedMode && !consumerIntent)) const isMobileMap = path.startsWith('/app') && mobileViewport @@ -59,7 +63,9 @@ function AppRoutes() { && !advancedMode && !isWorld && consumerIntent === 'food' - const page = isWorld + const page = isRun + ? Opening your run sheet…
    }> + : isWorld ? Loading the living map…}> : isMapLab ? Loading map lab…}> @@ -68,7 +74,7 @@ function AppRoutes() { : path.startsWith('/app') ? authMode ? : advancedMode ? : : - return <>{page}{!isMapLab && } + return <>{page}{!isMapLab && } } function App() { diff --git a/yuhm/src/AuthForm.tsx b/yuhm/src/AuthForm.tsx new file mode 100644 index 00000000..be377b6d --- /dev/null +++ b/yuhm/src/AuthForm.tsx @@ -0,0 +1,69 @@ +import { useId, useState, type FormEvent, type ReactNode } from 'react' +import { ArrowUpRight } from 'lucide-react' +import { foodDb } from './lib/foodRepository' +import { continueWithEmail } from './lib/auth' +import { notifyYuhmAccountSignup } from './lib/feedback' +import { useI18n } from './i18n' + +type EmailContinueFormProps = { + /** `signup` asks the browser for a new password and labels the button "Create account"; the logic is the same either way. */ + hint?: 'continue' | 'signup' + onSuccess: (status: 'signed_in' | 'created') => void + /** Small action shown beside the password label (forgot-password). */ + passwordAside?: ReactNode + /** One quiet line under the password field, for newcomers. */ + note?: string + /** Rendered inside the form after the submit button. */ + footer?: ReactNode + className?: string +} + +/** Reads a text field straight from the submitted form, so browser autofill counts even when no change event fired. */ +export function readField(form: HTMLFormElement, name: string) { + return String(new FormData(form).get(name) ?? '').trim() +} + +/** + * The one sign-in step used everywhere: email + password + Continue. It signs + * a member in, or creates the account when none matches, so nobody has to pick + * "log in" versus "sign up" before they can act. + * + * The fields are uncontrolled on purpose: password managers fill them without + * firing React change events, so the button must never depend on React state + * to become clickable. + */ +export function EmailContinueForm({ hint = 'continue', onSuccess, passwordAside, note, footer, className = '' }: EmailContinueFormProps) { + const { t } = useI18n() + const passwordId = useId() + const [error, setError] = useState('') + const [busy, setBusy] = useState(false) + + const submit = async (event: FormEvent) => { + event.preventDefault() + const form = event.currentTarget + const email = readField(form, 'email') + const password = String(new FormData(form).get('password') ?? '') + setError('') + if (!email || !password) { setError(t('login.missingFields')); return } + if (!foodDb) { setError(t('login.notConfigured')); return } + setBusy(true) + const result = await continueWithEmail(foodDb.auth, email, password) + setBusy(false) + if (result.status === 'error') { + setError(result.reason === 'existing_account' ? t('login.existingAccount') : result.message) + return + } + if (result.status === 'created') void notifyYuhmAccountSignup(email) + onSuccess(result.status) + } + + return
    + +
    {passwordAside}
    + + {note &&

    {note}

    } + {error &&

    {error}

    } + + {footer} +
    +} diff --git a/yuhm/src/AuthFunnel.test.tsx b/yuhm/src/AuthFunnel.test.tsx new file mode 100644 index 00000000..a6d9b904 --- /dev/null +++ b/yuhm/src/AuthFunnel.test.tsx @@ -0,0 +1,200 @@ +import { render, screen, waitFor, within } from '@testing-library/react' +import userEvent from '@testing-library/user-event' +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' + +const member = vi.hoisted(() => ({ id: 'member-1', email: 'neighbor@handprotocol.org', user_metadata: {} })) +const session = vi.hoisted(() => ({ access_token: 'token', user: { id: 'member-1', email: 'neighbor@handprotocol.org', user_metadata: {} } })) +const authState = vi.hoisted(() => ({ signedIn: false })) + +const mockDb = vi.hoisted(() => { + const channel = { on: vi.fn(() => channel), subscribe: vi.fn(() => channel) } + return { + channel: vi.fn(() => channel), + removeChannel: vi.fn(async () => 'ok'), + auth: { + getSession: vi.fn(async () => ({ data: { session: authState.signedIn ? session : null } })), + onAuthStateChange: vi.fn(() => ({ data: { subscription: { unsubscribe: vi.fn() } } })), + signInWithPassword: vi.fn(), + signUp: vi.fn(), + signOut: vi.fn(async () => ({ error: null })), + }, + } +}) + +vi.mock('./lib/foodRepository', async (importOriginal) => ({ + ...(await importOriginal()), + foodDbConfigured: true, + foodDb: mockDb, + loadFoodSpots: vi.fn(async () => ({ data: [], error: null })), + loadFoodAlerts: vi.fn(async () => ({ data: [], error: null })), + loadFoodRequests: vi.fn(async () => ({ data: [], error: null })), + loadFoodDropoffs: vi.fn(async () => ({ data: [], error: null })), +})) + +vi.mock('./FoodMap', () => ({ + FoodMap: ({ locations }: { locations: Array<{ id: string }> }) =>
    , +})) + +import App from './App' + +const invalidCredentials = { code: 'invalid_credentials', message: 'Invalid login credentials' } + +function resetHarness() { + authState.signedIn = false + mockDb.auth.signInWithPassword.mockReset() + mockDb.auth.signUp.mockReset() + mockDb.auth.signOut.mockClear() + localStorage.clear() + sessionStorage.clear() + Object.defineProperty(window, 'innerWidth', { value: 1024, configurable: true }) + vi.stubGlobal('fetch', vi.fn().mockResolvedValue(new Response('{}', { status: 200 }))) +} + +describe('onboarding funnel: sign in once, land on the task', () => { + beforeEach(resetHarness) + + afterEach(() => { + vi.unstubAllGlobals() + }) + + it('takes a signed-in member straight to the destination with no interstitial', async () => { + authState.signedIn = true + window.history.replaceState({}, '', '/app/?mode=anonymous&intent=contribute') + render() + await waitFor(() => expect(screen.getByRole('button', { name: 'Open account and display settings' })).toHaveTextContent('N')) + + await userEvent.click(screen.getByRole('tab', { name: /I can deliver/i })) + await userEvent.click(screen.getByRole('button', { name: /Set up Contributor profile/i })) + + expect(screen.queryByRole('dialog', { name: /Ready to deliver/i })).not.toBeInTheDocument() + expect(window.location.search).toContain('mode=advanced') + expect(window.location.search).toContain('workspace=volunteer') + }) + + it('lets a guest sign in inside the sheet and lands them on the destination', async () => { + mockDb.auth.signInWithPassword.mockResolvedValue({ data: { user: member, session }, error: null }) + window.history.replaceState({}, '', '/app/?mode=anonymous&intent=contribute') + render() + + await userEvent.click(screen.getByRole('tab', { name: /I can deliver/i })) + await userEvent.click(screen.getByRole('button', { name: /Set up Contributor profile/i })) + const sheet = await screen.findByRole('dialog', { name: /Ready to deliver food and return compost/i }) + await userEvent.type(within(sheet).getByLabelText('Email address'), 'neighbor@handprotocol.org') + await userEvent.type(within(sheet).getByLabelText('Password'), 'community-food') + await userEvent.click(within(sheet).getByRole('button', { name: /Continue/ })) + + expect(mockDb.auth.signInWithPassword).toHaveBeenCalledWith({ email: 'neighbor@handprotocol.org', password: 'community-food' }) + await waitFor(() => expect(window.location.search).toContain('workspace=volunteer')) + expect(screen.queryByRole('dialog', { name: /Ready to deliver/i })).not.toBeInTheDocument() + expect(mockDb.auth.signUp).not.toHaveBeenCalled() + }) + + it('creates the account from the same Continue button when the email is new', async () => { + mockDb.auth.signInWithPassword.mockResolvedValue({ data: { user: null, session: null }, error: invalidCredentials }) + mockDb.auth.signUp.mockResolvedValue({ data: { user: member, session }, error: null }) + window.history.replaceState({}, '', '/app/?mode=login&return=%2Fapp%2F%3Fmode%3Dadvanced%26workspace%3Drescue%26action%3Dsubmit') + render() + + await userEvent.type(screen.getByLabelText('Email address'), 'new-neighbor@handprotocol.org') + await userEvent.type(screen.getByLabelText('Password'), 'community-food') + await userEvent.click(screen.getByRole('button', { name: /Continue/ })) + + expect(mockDb.auth.signUp).toHaveBeenCalledWith({ email: 'new-neighbor@handprotocol.org', password: 'community-food' }) + await waitFor(() => expect(window.location.search).toContain('workspace=rescue')) + expect(window.location.search).toContain('action=submit') + }) + + it('explains a wrong password on an existing account instead of creating a duplicate', async () => { + mockDb.auth.signInWithPassword.mockResolvedValue({ data: { user: null, session: null }, error: invalidCredentials }) + mockDb.auth.signUp.mockResolvedValue({ data: { user: null, session: null }, error: { code: 'user_already_exists', message: 'User already registered' } }) + window.history.replaceState({}, '', '/app/?mode=login') + render() + + await userEvent.type(screen.getByLabelText('Email address'), 'neighbor@handprotocol.org') + await userEvent.type(screen.getByLabelText('Password'), 'wrong-password') + await userEvent.click(screen.getByRole('button', { name: /Continue/ })) + + expect(await screen.findByRole('alert')).toHaveTextContent(/already has a yuhm account/i) + expect(window.location.search).toContain('mode=login') + expect(screen.getByRole('button', { name: /Forgot password/i })).toBeInTheDocument() + }) + + it('accepts browser-autofilled credentials that never fired a change event', async () => { + mockDb.auth.signInWithPassword.mockResolvedValue({ data: { user: member, session }, error: null }) + window.history.replaceState({}, '', '/app/?mode=login') + render() + + // Password managers write straight to the DOM; React sees no input event. + const emailField = screen.getByLabelText('Email address') as HTMLInputElement + const passwordField = screen.getByLabelText('Password') as HTMLInputElement + emailField.value = 'neighbor@handprotocol.org' + passwordField.value = 'community-food' + + const button = screen.getByRole('button', { name: /Continue/ }) + expect(button).toBeEnabled() + await userEvent.click(button) + + expect(mockDb.auth.signInWithPassword).toHaveBeenCalledWith({ email: 'neighbor@handprotocol.org', password: 'community-food' }) + await waitFor(() => expect(window.location.search).toBe('?intent=food')) + }) + + it('maps a legacy intent return onto the focused flow', async () => { + mockDb.auth.signInWithPassword.mockResolvedValue({ data: { user: member, session }, error: null }) + window.history.replaceState({}, '', '/app/?mode=login&return=contribute') + render() + + await userEvent.type(screen.getByLabelText('Email address'), 'neighbor@handprotocol.org') + await userEvent.type(screen.getByLabelText('Password'), 'community-food') + await userEvent.click(screen.getByRole('button', { name: /Continue/ })) + + await waitFor(() => expect(window.location.search).toBe('?intent=contribute')) + }) +}) + +describe('sign in is one tap from the top of every pre-login surface', () => { + beforeEach(resetHarness) + afterEach(() => { vi.unstubAllGlobals() }) + + it('offers Sign in at the top of the living world and brings the person back to it', async () => { + localStorage.setItem('yuhm:world-intro', JSON.stringify({ role: 'eat' })) + window.history.replaceState({}, '', '/app/') + render() + + const links = await screen.findAllByRole('link', { name: /^Sign in$/ }) + expect(links.some((link) => link.closest('.world-topbar'))).toBe(true) + for (const link of links) expect(link).toHaveAttribute('href', '/app/?mode=login&return=%2Fapp%2F%3Fmode%3Dworld') + }) + + it('offers Sign in in the finder header and returns to the same screen afterwards', async () => { + sessionStorage.setItem('yuhm:location-choice', 'complete') + window.history.replaceState({}, '', '/app/?mode=anonymous&intent=food') + render() + + expect(await screen.findByRole('link', { name: /^Sign in/ })).toHaveAttribute('href', '/app/?mode=login&return=%2Fapp%2F%3Fmode%3Danonymous%26intent%3Dfood') + expect(screen.queryByRole('button', { name: 'Open account and display settings' })).not.toBeInTheDocument() + }) + + it('gives a signed-in member an account menu with sign out instead of a Sign in button', async () => { + authState.signedIn = true + sessionStorage.setItem('yuhm:location-choice', 'complete') + window.history.replaceState({}, '', '/app/?mode=anonymous&intent=food') + render() + + const account = await screen.findByRole('button', { name: 'Open account and display settings' }) + expect(account).toHaveTextContent('N') + expect(screen.queryByRole('link', { name: /^Sign in/ })).not.toBeInTheDocument() + await userEvent.click(account) + await userEvent.click(screen.getByRole('button', { name: 'Sign out' })) + expect(mockDb.auth.signOut).toHaveBeenCalledTimes(1) + }) + + it('sends the dashboard account prompt back to the same workspace after signing in', async () => { + window.history.replaceState({}, '', '/app/?mode=advanced&workspace=community') + render() + + await userEvent.click(await screen.findByRole('button', { name: /FOOD IS HERE/i })) + const dialog = screen.getByRole('dialog', { name: /Join the network/i }) + expect(within(dialog).getByRole('link', { name: /Sign in or create an account/i })).toHaveAttribute('href', '/app/?mode=login&return=%2Fapp%2F%3Fmode%3Dadvanced%26workspace%3Dcommunity') + expect(within(dialog).queryByRole('link', { name: /^Create an account/i })).not.toBeInTheDocument() + }) +}) diff --git a/yuhm/src/DashboardApp.tsx b/yuhm/src/DashboardApp.tsx index 5cbc9e2f..eb810630 100644 --- a/yuhm/src/DashboardApp.tsx +++ b/yuhm/src/DashboardApp.tsx @@ -1,11 +1,11 @@ import { lazy, Suspense, useEffect, useMemo, useState } from 'react' import { Activity, ArrowUpRight, Bell, Boxes, ChevronDown, ChevronLeft, ChevronRight, CircleHelp, Clock3, - HandHeart, Leaf, MapPin, Menu, MessageCircle, MousePointerClick, Plus, Route, Settings, ShieldCheck, Users, Warehouse, X, Zap, + CircleUserRound, HandHeart, Leaf, MapPin, Menu, MessageCircle, MousePointerClick, Plus, Route, Settings, ShieldCheck, Users, Warehouse, X, Zap, } from 'lucide-react' import { foodDbConfigured, loadFoodDropoffs, loadFoodRequests, loadFoodSpots, foodDb, type FoodSpotRecord } from './lib/foodRepository' import { useEngagement } from './lib/engagement' -import { getMemberIdentity } from './lib/auth' +import { getMemberIdentity, signInHref } from './lib/auth' import { useFoodAlerts } from './lib/useFoodAlerts' import { AddSpotModal, AlertCenter, FoodAlertsBoard, FoodAlertsOverview, FoodHereModal } from './CommunityTools' import { openCommunityContact } from './CommunityContactWidget' @@ -216,7 +216,7 @@ export function DashboardApp() { } label="Inventory" onClick={() => openView('inventory')} /> } label="Drop-off log" onClick={() => openView('dropoffs')} /> -
    {clicks} community clicks
    {!authReady ?
    ··Checking sessionRestoring account access
    : isAuthenticated ?
    {accountOpen &&

    {memberIdentity.email}

    }
    : WXBrowsing openlySign in to coordinate}

    Build{__YUHM_BUILD_ID__}

    +
    {clicks} community clicks
    {!authReady ?
    ··Checking sessionRestoring account access
    : isAuthenticated ?
    {accountOpen &&

    {memberIdentity.email}

    }
    : Browsing openlySign in to coordinate}

    Build{__YUHM_BUILD_ID__}

    {menuOpen && {t('common.signIn')}HAND Protocol
    @@ -202,7 +200,8 @@ export function LandingPage() { animate={{ opacity: 1, y: 0 }} transition={{ ...springy, delay: 0.92 }} > - {t('landing.world.action')} + {t('landing.hero.findFood')} + {t('common.signIn')} ('login') + const [screen, setScreen] = useState('continue') const [notice, setNotice] = useState('') const [error, setError] = useState('') const [busy, setBusy] = useState(false) + const signupHint = params.get('signup') === '1' useEffect(() => { - const params = new URLSearchParams(window.location.search) const hashParams = new URLSearchParams(window.location.hash.replace(/^#/, '')) - if (params.get('mode') === 'recovery' || hashParams.get('type') === 'recovery') setAuthMode('recovery') - else if (params.get('updates') === '1') setAuthMode('updates') - else if (params.get('signup') === '1') setAuthMode('signup') - }, []) + if (params.get('mode') === 'recovery' || hashParams.get('type') === 'recovery') setScreen('recovery') + else if (params.get('mode') === 'reset') setScreen('reset') + else if (params.get('updates') === '1') setScreen('updates') + }, [params]) - const submitAuth = async (event: React.FormEvent) => { - event.preventDefault() - setError('') - setNotice('') - if (!foodDb) { setError('Login is not configured on this deployment yet. You can still browse anonymously.'); return } - setBusy(true) - const result = authMode === 'signup' - ? await createAccountAndSession(foodDb.auth, email.trim(), password) - : await foodDb.auth.signInWithPassword({ email: email.trim(), password }) - setBusy(false) - if (result.error) setError(getAuthErrorMessage(result.error, authMode === 'signup' ? 'signup' : 'login')) - else if (!result.data.session) setError('Your account was created, but yuhm could not log you in. Please try logging in.') - else { - if (authMode === 'signup') void notifyYuhmAccountSignup(email) - const returnIntent = new URLSearchParams(window.location.search).get('return') - const destination = returnIntent === 'food' || returnIntent === 'contribute' || returnIntent === 'gather' || returnIntent === 'request' - ? `/app/?intent=${returnIntent}` - : '/app/?intent=food' - window.location.assign(destination) - } - } + const switchTo = (next: Screen) => { setScreen(next); setError(''); setNotice('') } + const finishSignIn = () => navigate(resolveReturnPath(params.get('return')), { replace: true }) - const sendReset = async (event: React.FormEvent) => { + const sendReset = async (event: React.FormEvent) => { event.preventDefault() + const address = readField(event.currentTarget, 'email') setError('') setNotice('') + if (!address) { setError(t('login.missingFields')); return } if (!foodDb) { setError('Login is not configured on this deployment yet.'); return } setBusy(true) - const { error: authError } = await foodDb.auth.resetPasswordForEmail(email.trim(), { redirectTo: getRecoveryRedirectUrl(window.location.origin) }) + const { error: authError } = await foodDb.auth.resetPasswordForEmail(address, { redirectTo: getRecoveryRedirectUrl(window.location.origin) }) setBusy(false) if (authError) setError(authError.message) else setNotice('If an account exists for that email, you will receive a password reset link.') } - const joinUpdates = async (event: React.FormEvent) => { + const joinUpdates = async (event: React.FormEvent) => { event.preventDefault() - const website = String(new FormData(event.currentTarget as HTMLFormElement).get('website') || '') + const address = readField(event.currentTarget, 'updates-email') + const website = String(new FormData(event.currentTarget).get('website') || '') setError('') setNotice('') - if (!isValidUpdatesEmail(email)) { setError('Please enter a valid email address.'); return } + if (!isValidUpdatesEmail(address)) { setError('Please enter a valid email address.'); return } setBusy(true) try { - const result = await subscribeForUpdates(email, website) + const result = await subscribeForUpdates(address, website) setNotice(result === 'already_subscribed' ? 'That email is already on the yuhm updates list.' : 'You are on the list. We will email when there is meaningful platform progress or a future offering.') @@ -94,13 +86,24 @@ export function LoginScreen() { else window.location.assign('/app/?mode=login') } - const isRecovery = authMode === 'recovery' - const isReset = authMode === 'reset' - const isUpdates = authMode === 'updates' - return
    -

    {isRecovery ? 'Choose a new password' : isReset ? 'Account recovery' : isUpdates ? 'Stay in the loop' : t('login.enterNetwork')}

    -

    {isRecovery ? 'Set a new password.' : isReset ? 'Reset your password.' : isUpdates ? 'Get yuhm updates.' : authMode === 'signup' ? t('login.createAccount') : t('login.welcomeBack')}

    - {isRecovery ?

    Choose a new password for your yuhm account.

    {error &&

    {error}

    }{notice &&

    {notice}

    }
    : isReset ?

    Enter your email and we will send a secure link to choose a new password.

    {error &&

    {error}

    }{notice &&

    {notice}

    }
    : isUpdates ?

    Hear about meaningful platform progress and future yuhm offerings. This only joins the email list. It does not create an account.

    {error &&

    {error}

    }{notice &&

    {notice}

    }

    We will only use this email for yuhm updates. Unsubscribe in any message.

    :

    {authMode === 'signup' ? t('login.signupCopy') : t('login.loginCopy')}

    {error &&

    {error}

    }{notice &&

    {notice}

    }{authMode === 'login' && }
    } - {!isRecovery && {t('login.browseAnonymously')} } + const isRecovery = screen === 'recovery' + const isReset = screen === 'reset' + const isUpdates = screen === 'updates' + return
    + {(isRecovery || isReset || isUpdates) &&

    {isRecovery ? 'Choose a new password' : isReset ? 'Account recovery' : 'Stay in the loop'}

    } +

    {isRecovery ? 'Set a new password.' : isReset ? 'Reset your password.' : isUpdates ? 'Get yuhm updates.' : signupHint ? t('login.createAccount') : t('login.title')}

    + {isRecovery ?

    Choose a new password for your yuhm account.

    {error &&

    {error}

    }{notice &&

    {notice}

    }
    : isReset ?

    Enter your email and we will send a secure link to choose a new password.

    {error &&

    {error}

    }{notice &&

    {notice}

    }
    : isUpdates ?

    Hear about meaningful platform progress and future yuhm offerings. This only joins the email list. It does not create an account.

    {error &&

    {error}

    }{notice &&

    {notice}

    }

    We will only use this email for yuhm updates. Unsubscribe in any message.

    : <> +

    {signupHint ? t('login.signupCopy') : t('login.continueCopy')}

    + switchTo('reset')}>{t('login.forgot')}} + /> +
    + {t('login.browseAnonymously')} + +
    + } + {(isReset || isUpdates) && {t('login.browseAnonymously')} }
    } diff --git a/yuhm/src/SimpleExperience.tsx b/yuhm/src/SimpleExperience.tsx index f0ac67dd..85744455 100644 --- a/yuhm/src/SimpleExperience.tsx +++ b/yuhm/src/SimpleExperience.tsx @@ -1,7 +1,7 @@ import { lazy, Suspense, useEffect, useMemo, useState } from 'react' import { ArrowUpRight, CalendarDays, ChevronDown, ChevronRight, Clock3, HandHeart, Leaf, MapPin, MessageCircle, Navigation, Package, Search, Settings, ShieldCheck, Truck, Users, X } from 'lucide-react' -import { foodDbConfigured, loadFoodSpots, type FoodAlertRecord, type FoodSpotRecord } from './lib/foodRepository' -import { getMemberIdentity } from './lib/auth' +import { foodDb, foodDbConfigured, loadFoodSpots, type FoodAlertRecord, type FoodSpotRecord } from './lib/foodRepository' +import { getMemberIdentity, signInHref } from './lib/auth' import { useFoodAlerts } from './lib/useFoodAlerts' import { openCommunityContact } from './CommunityContactWidget' import type { FoodMapLocation } from './FoodMap' @@ -13,6 +13,8 @@ import { LanguageToggle, useI18n, type MessageKey } from './i18n' import { FoodAlertBanner } from './FoodAlertBanner' import { LocationPrompt } from './prompts' import { useAuth } from './AuthProvider' +import { EmailContinueForm } from './AuthForm' +import { YuhmBrand } from './YuhmBrand' const FoodMap = lazy(() => import('./FoodMap').then((module) => ({ default: module.FoodMap }))) @@ -25,7 +27,7 @@ const filterLabelKeys: Record = { export function SimpleExperience({ initialIntent }: { initialIntent: ConsumerIntent }) { const { t } = useI18n() - const { params, navigate } = useRoute() + const { path, params, navigate } = useRoute() const { member, authReady } = useAuth() const routeIntent = params.get('intent') const intent: ConsumerIntent = routeIntent === 'food' || routeIntent === 'contribute' || routeIntent === 'gather' || routeIntent === 'request' ? routeIntent : initialIntent @@ -75,10 +77,25 @@ export function SimpleExperience({ initialIntent }: { initialIntent: ConsumerInt return matchesQuery && matchesListingFilter(location, foodFilter, alertSpotIds) }), [allLocations, query, foodFilter, alertSpotIds]) + // Signing in from this screen brings the person straight back to it. + const herePath = `${path}${params.toString() ? `?${params.toString()}` : ''}` + const signOut = async () => { + setAccountMenuOpen(false) + await foodDb?.auth.signOut() + } const chooseIntent = (nextIntent: ConsumerIntent) => { navigate(`/app/?mode=anonymous&intent=${nextIntent}`) } - const openSimpleAction = (eyebrow: string, title: string, copy: string, advancedHref: string) => setActionSheet({ eyebrow, title, copy, advancedHref }) + // Members go straight to the destination. Guests get the one sign-in step + // inline in the sheet, then land on that same destination. + const openSimpleAction = (eyebrow: string, title: string, copy: string, advancedHref: string) => { + if (authReady && member) { navigate(advancedHref); return } + setActionSheet({ eyebrow, title, copy, advancedHref }) + } + const continueToAction = (advancedHref: string) => { + setActionSheet(null) + navigate(advancedHref) + } const enableAdvancedMode = () => { localStorage.setItem('yuhm:experience-mode', 'advanced') } @@ -112,9 +129,9 @@ export function SimpleExperience({ initialIntent }: { initialIntent: ConsumerInt return
    - yuhmFOOD + -
    {accountMenuOpen &&

    {t('simple.account.eyebrow')}

    {t('simple.account.simpleMode')}{member ? t('simple.account.signedInAs', { name: getMemberIdentity(member).displayName }) : t('simple.account.anonymous')}{authReady && !member && {t('common.signIn')} }{t('simple.account.advanced')}{t('simple.account.advancedDetail')}
    }
    +
    {authReady && !member && {t('common.signIn')} }{member &&
    {accountMenuOpen &&

    {t('simple.account.eyebrow')}

    {getMemberIdentity(member).displayName}{t('simple.account.signedInAs', { name: getMemberIdentity(member).email || getMemberIdentity(member).displayName })}{t('simple.account.advanced')}{t('simple.account.advancedDetail')}
    }
    }
    } diff --git a/yuhm/src/YuhmBrand.tsx b/yuhm/src/YuhmBrand.tsx new file mode 100644 index 00000000..50afd5c5 --- /dev/null +++ b/yuhm/src/YuhmBrand.tsx @@ -0,0 +1,20 @@ +import { BowlMark } from './LandingDecor' + +type YuhmBrandProps = { + /** Small line under the wordmark. Defaults to the network tagline used on the landing. */ + tagline?: string + className?: string + href?: string +} + +/** + * The one brand lockup (bowl mark + rounded wordmark + tagline) shared by the + * landing, the sign-in screen, and the food finder, so a person sees the same + * yuhm from the first page through signing in and into the task. + */ +export function YuhmBrand({ tagline = 'regenerative food network · Austin', className = '', href = '/' }: YuhmBrandProps) { + return + + yuhm{tagline} + +} diff --git a/yuhm/src/i18n.tsx b/yuhm/src/i18n.tsx index a87a430d..13d674dc 100644 --- a/yuhm/src/i18n.tsx +++ b/yuhm/src/i18n.tsx @@ -7,6 +7,7 @@ const en = { // Shared 'brand.tagline': 'the om in yum', 'common.signIn': 'Sign in', + 'common.signOut': 'Sign out', 'common.feedback': 'Feedback', 'common.navigate': 'Navigate', 'common.hours': 'Hours', @@ -36,6 +37,7 @@ const en = { 'landing.title': 'Food, shared\nfull circle.', 'landing.intro': 'Find food nearby, ask your community for what is needed, or help good food reach more neighbors. Nothing good goes to waste — what is left returns to the soil.', 'landing.proof': 'Public food information is open to everyone. You only need an account when you are ready to post or coordinate.', + 'landing.hero.findFood': 'Find food near me', 'landing.flow.label': 'How food moves through the network', 'landing.flow.grow': 'Grow', 'landing.flow.pool': 'Pool', @@ -164,7 +166,7 @@ const en = { 'simple.request.offerCopy': 'An account is required to offer food, transportation, storage, or volunteer time. The request stays open in simple mode.', 'simple.sheet.checking': 'Checking your account…', 'simple.sheet.openNext': 'Open secure next step', - 'simple.sheet.signInToContinue': 'Sign in to continue', + 'simple.sheet.authCopy': 'New here? This creates your account.', 'simple.sheet.keepBrowsing': 'Keep browsing', 'simple.account.label': 'Open account and display settings', 'simple.account.eyebrow': 'Your experience', @@ -231,20 +233,21 @@ const en = { // Login 'login.enterNetwork': 'Enter the network', - 'login.welcomeBack': 'Welcome back.', + 'login.title': 'Welcome to yuhm.', 'login.createAccount': 'Create your account.', 'login.emailLabel': 'Email address', 'login.passwordLabel': 'Password', - 'login.logIn': 'Log in', + 'login.continue': 'Continue', 'login.create': 'Create account', 'login.wait': 'Please wait…', 'login.forgot': 'Forgot password?', - 'login.switchToLogin': 'Already have an account? Log in', - 'login.switchToSignup': 'New here? Create an account', - 'login.updatesSwitch': 'Skip the account. Get email updates', - 'login.browseAnonymously': 'Browse anonymously', - 'login.loginCopy': 'Log in with your email and password.', - 'login.signupCopy': 'Create an account with your email and a password. Your browser can offer to save it on this device.', + 'login.updatesSwitch': 'Just want email updates?', + 'login.browseAnonymously': 'Browse as a guest', + 'login.continueCopy': 'Sign in or sign up. Same step.', + 'login.signupCopy': 'An email and a password. That is all it takes.', + 'login.existingAccount': 'That email already has a yuhm account. Check your password or reset it.', + 'login.notConfigured': 'Sign-in is not set up on this deployment yet. You can still browse as a guest.', + 'login.missingFields': 'Enter your email and a password to continue.', } as const export type MessageKey = keyof typeof en @@ -252,6 +255,7 @@ export type MessageKey = keyof typeof en const es: Record = { 'brand.tagline': 'el om en el ñam', 'common.signIn': 'Iniciar sesión', + 'common.signOut': 'Cerrar sesión', 'common.feedback': 'Comentarios', 'common.navigate': 'Cómo llegar', 'common.hours': 'Horario', @@ -278,6 +282,7 @@ const es: Record = { 'landing.title': 'Comida compartida\nen círculo completo.', 'landing.intro': 'Encuentra comida cerca, pide a tu comunidad lo que hace falta o ayuda a que la buena comida llegue a más vecinos. Nada bueno se desperdicia: lo que sobra vuelve a la tierra.', 'landing.proof': 'La información pública sobre comida está abierta a todos. Solo necesitas una cuenta cuando quieras publicar o coordinar.', + 'landing.hero.findFood': 'Buscar comida cerca', 'landing.flow.label': 'Cómo se mueve la comida por la red', 'landing.flow.grow': 'Cultiva', 'landing.flow.pool': 'Reúne', @@ -405,7 +410,7 @@ const es: Record = { 'simple.request.offerCopy': 'Se necesita una cuenta para ofrecer comida, transporte, almacenamiento o tiempo voluntario. La petición sigue abierta en modo simple.', 'simple.sheet.checking': 'Verificando tu cuenta…', 'simple.sheet.openNext': 'Abrir el siguiente paso seguro', - 'simple.sheet.signInToContinue': 'Inicia sesión para continuar', + 'simple.sheet.authCopy': '¿Primera vez? Así se crea tu cuenta.', 'simple.sheet.keepBrowsing': 'Seguir mirando', 'simple.account.label': 'Abrir ajustes de cuenta y pantalla', 'simple.account.eyebrow': 'Tu experiencia', @@ -469,20 +474,21 @@ const es: Record = { 'map.noLive': 'No hay lugares comunitarios en vivo ahora. Mostrando el directorio base de Austin.', 'login.enterNetwork': 'Entra a la red', - 'login.welcomeBack': 'Bienvenido de nuevo.', + 'login.title': 'Qué bueno verte.', 'login.createAccount': 'Crea tu cuenta.', 'login.emailLabel': 'Correo electrónico', 'login.passwordLabel': 'Contraseña', - 'login.logIn': 'Iniciar sesión', + 'login.continue': 'Continuar', 'login.create': 'Crear cuenta', 'login.wait': 'Un momento…', 'login.forgot': '¿Olvidaste tu contraseña?', - 'login.switchToLogin': '¿Ya tienes cuenta? Inicia sesión', - 'login.switchToSignup': '¿Primera vez? Crea una cuenta', - 'login.updatesSwitch': 'Sin cuenta. Recibir noticias por correo', - 'login.browseAnonymously': 'Navegar de forma anónima', - 'login.loginCopy': 'Inicia sesión con tu correo y contraseña.', - 'login.signupCopy': 'Crea una cuenta con tu correo y una contraseña. Tu navegador puede ofrecer guardarla en este dispositivo.', + 'login.updatesSwitch': '¿Solo quieres noticias por correo?', + 'login.browseAnonymously': 'Mirar como invitado', + 'login.continueCopy': 'Entra o crea tu cuenta. Es el mismo paso.', + 'login.signupCopy': 'Un correo y una contraseña. Con eso basta.', + 'login.existingAccount': 'Ese correo ya tiene una cuenta de yuhm. Revisa tu contraseña o restablécela.', + 'login.notConfigured': 'El inicio de sesión aún no está configurado en este sitio. Puedes seguir mirando como invitado.', + 'login.missingFields': 'Escribe tu correo y una contraseña para continuar.', } const catalogs: Record> = { en, es } diff --git a/yuhm/src/lib/auth.test.ts b/yuhm/src/lib/auth.test.ts index e9f4c2f8..aba03990 100644 --- a/yuhm/src/lib/auth.test.ts +++ b/yuhm/src/lib/auth.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it, vi } from 'vitest' -import { createAccountAndSession, getAuthErrorMessage, getMemberIdentity, getRecoveryRedirectUrl, updatePasswordAndSignOut } from './auth' +import { continueWithEmail, createAccountAndSession, getAuthErrorMessage, getMemberIdentity, getRecoveryRedirectUrl, resolveReturnPath, signInHref, updatePasswordAndSignOut } from './auth' const credentials = { email: 'neighbor@example.org', password: 'community-food' } const user = { id: 'member-1' } @@ -101,3 +101,82 @@ describe('getMemberIdentity', () => { expect(getMemberIdentity({ email: 'eastside.kitchen@example.org', user_metadata: {} } as never).displayName).toBe('eastside kitchen') }) }) + +describe('continueWithEmail', () => { + const invalidCredentials = { code: 'invalid_credentials', message: 'Invalid login credentials' } + + it('signs an existing member in with one step', async () => { + const signInWithPassword = vi.fn().mockResolvedValue({ data: { user, session }, error: null }) + const signUp = vi.fn() + + const result = await continueWithEmail({ signUp, signInWithPassword } as never, credentials.email, credentials.password) + + expect(result).toEqual({ status: 'signed_in' }) + expect(signUp).not.toHaveBeenCalled() + }) + + it('creates the account when no member matches the email', async () => { + const signInWithPassword = vi.fn().mockResolvedValue({ data: { user: null, session: null }, error: invalidCredentials }) + const signUp = vi.fn().mockResolvedValue({ data: { user, session }, error: null }) + + const result = await continueWithEmail({ signUp, signInWithPassword } as never, credentials.email, credentials.password) + + expect(signUp).toHaveBeenCalledWith(credentials) + expect(result).toEqual({ status: 'created' }) + }) + + it('explains a wrong password on an existing account instead of creating a duplicate', async () => { + const signInWithPassword = vi.fn().mockResolvedValue({ data: { user: null, session: null }, error: invalidCredentials }) + const signUp = vi.fn().mockResolvedValue({ data: { user: null, session: null }, error: { code: 'user_already_exists', message: 'User already registered' } }) + + const result = await continueWithEmail({ signUp, signInWithPassword } as never, credentials.email, credentials.password) + + expect(result).toMatchObject({ status: 'error', reason: 'existing_account' }) + }) + + it('treats a failed retry after an obfuscated signup as a wrong password', async () => { + const signInWithPassword = vi.fn().mockResolvedValue({ data: { user: null, session: null }, error: invalidCredentials }) + const signUp = vi.fn().mockResolvedValue({ data: { user, session: null }, error: null }) + + const result = await continueWithEmail({ signUp, signInWithPassword } as never, credentials.email, credentials.password) + + expect(signInWithPassword).toHaveBeenCalledTimes(2) + expect(result).toMatchObject({ status: 'error', reason: 'existing_account' }) + }) + + it('surfaces other provider errors without attempting signup', async () => { + const signInWithPassword = vi.fn().mockResolvedValue({ data: { user: null, session: null }, error: { code: 'over_request_rate_limit', message: 'Too many requests' } }) + const signUp = vi.fn() + + const result = await continueWithEmail({ signUp, signInWithPassword } as never, credentials.email, credentials.password) + + expect(signUp).not.toHaveBeenCalled() + expect(result).toEqual({ status: 'error', reason: 'other', message: 'Too many requests' }) + }) +}) + +describe('resolveReturnPath', () => { + it('returns the exact in-app destination the person was headed to', () => { + expect(resolveReturnPath('/app/?mode=advanced&workspace=rescue&action=submit')).toBe('/app/?mode=advanced&workspace=rescue&action=submit') + }) + + it('maps legacy intent names onto the focused flows', () => { + expect(resolveReturnPath('contribute')).toBe('/app/?intent=contribute') + expect(resolveReturnPath('request')).toBe('/app/?intent=request') + }) + + it('falls back to the food finder for missing, foreign, or malformed destinations', () => { + expect(resolveReturnPath(null)).toBe('/app/?intent=food') + expect(resolveReturnPath('https://evil.example/app/')).toBe('/app/?intent=food') + expect(resolveReturnPath('//evil.example/app/')).toBe('/app/?intent=food') + expect(resolveReturnPath('/admin')).toBe('/app/?intent=food') + expect(resolveReturnPath('/app/?x=1 javascript:')).toBe('/app/?intent=food') + }) +}) + +describe('signInHref', () => { + it('carries the destination through the login screen', () => { + expect(signInHref('/app/?mode=advanced&workspace=volunteer')).toBe('/app/?mode=login&return=%2Fapp%2F%3Fmode%3Dadvanced%26workspace%3Dvolunteer') + expect(signInHref()).toBe('/app/?mode=login') + }) +}) diff --git a/yuhm/src/lib/auth.ts b/yuhm/src/lib/auth.ts index 894ea6f1..fbca08be 100644 --- a/yuhm/src/lib/auth.ts +++ b/yuhm/src/lib/auth.ts @@ -51,7 +51,66 @@ export function getMemberIdentity(user: User | null) { .filter(Boolean) .slice(0, 2) .map((part) => part[0]?.toUpperCase()) - .join('') || 'WX' + .join('') || 'Y' return { displayName, email, initials } } + +type ContinueAuth = Pick + +export type ContinueWithEmailResult = + | { status: 'signed_in' | 'created' } + | { status: 'error'; reason: 'existing_account' | 'other'; message: string } + +const INVALID_CREDENTIALS = /invalid login credentials|invalid_credentials/i +const EXISTING_ACCOUNT = /already (been )?registered|already exists|user_already_exists/i + +function isInvalidCredentials(error: { code?: string; message?: string }) { + return error.code === 'invalid_credentials' || INVALID_CREDENTIALS.test(error.message ?? '') +} + +function isExistingAccount(error: { code?: string; message?: string }) { + return error.code === 'user_already_exists' || EXISTING_ACCOUNT.test(error.message ?? '') +} + +export const EXISTING_ACCOUNT_MESSAGE = 'That email already has a yuhm account. Check your password or reset it.' + +/** + * One "Continue" action for members and newcomers alike: sign in with the + * email and password, and when no account matches, create one with those same + * credentials. Only a wrong password on an existing account needs a second try. + */ +export async function continueWithEmail(auth: ContinueAuth, email: string, password: string): Promise { + const login = await auth.signInWithPassword({ email, password }) + if (login.data.session) return { status: 'signed_in' } + if (login.error && !isInvalidCredentials(login.error)) return { status: 'error', reason: 'other', message: getAuthErrorMessage(login.error, 'login') } + + const signup = await createAccountAndSession(auth, email, password) + if (signup.data.session) return { status: 'created' } + // Signup refused or the retry still failed: the email belongs to an existing + // account and the password did not match it. + if (signup.error && (isExistingAccount(signup.error) || isInvalidCredentials(signup.error))) return { status: 'error', reason: 'existing_account', message: EXISTING_ACCOUNT_MESSAGE } + if (signup.error) return { status: 'error', reason: 'other', message: getAuthErrorMessage(signup.error, 'signup') } + return { status: 'error', reason: 'other', message: 'Your account was created, but yuhm could not sign you in. Please try again.' } +} + +export const DEFAULT_RETURN_PATH = '/app/?intent=food' + +const LEGACY_RETURN_INTENTS = new Set(['food', 'contribute', 'gather', 'request']) +const IN_APP_PATH = /^\/app\/[^\s\\]*$/ + +/** + * Where to land after signing in: the exact in-app destination the person was + * headed to, a legacy intent name, or the food finder. Foreign origins and + * protocol-relative URLs never pass through. + */ +export function resolveReturnPath(raw: string | null | undefined, fallback = DEFAULT_RETURN_PATH) { + if (!raw) return fallback + if (LEGACY_RETURN_INTENTS.has(raw)) return `/app/?intent=${raw}` + return IN_APP_PATH.test(raw) ? raw : fallback +} + +/** Login-screen URL that brings the person back to `returnTo` once signed in. */ +export function signInHref(returnTo?: string) { + return returnTo ? `/app/?mode=login&return=${encodeURIComponent(returnTo)}` : '/app/?mode=login' +} diff --git a/yuhm/src/map-lab/MapLab.tsx b/yuhm/src/map-lab/MapLab.tsx index 41aaacb3..002b1001 100644 --- a/yuhm/src/map-lab/MapLab.tsx +++ b/yuhm/src/map-lab/MapLab.tsx @@ -23,7 +23,7 @@ import { import { animate, motion, useDragControls, useMotionValue, useReducedMotion } from 'motion/react' import type { User } from '@supabase/supabase-js' import { foodDbConfigured, loadFoodSpots, type FoodAlertRecord } from '../lib/foodRepository' -import { getMemberIdentity } from '../lib/auth' +import { getMemberIdentity, signInHref } from '../lib/auth' import { useFoodAlerts } from '../lib/useFoodAlerts' import { distanceMiles, @@ -581,7 +581,7 @@ function MenuContent({ member, authReady, onClose, onNavigate, product }: { memb -
    {!authReady ? t('map.checkingAccount') : identity?.displayName ?? t('map.browsingOpenly')}{identity ? identity.email : t('map.signInWhenReady')}{!member && authReady && {t('common.signIn')}}
    +
    {!authReady ? t('map.checkingAccount') : identity?.displayName ?? t('map.browsingOpenly')}{identity ? identity.email : t('map.signInWhenReady')}{!member && authReady && {t('common.signIn')}}
    {product && ♥

    Account needed

    Join the network to take action.

    Anonymous browsing is open to everyone. Create an account or log in to post rescues, reply to requests, offer help, and nominate food sources.

    Log in Create an account Email me yuhm updates
    Updates do not create an account or unlock posting.
    + const { path, params } = useRoute() + const herePath = `${path}${params.toString() ? `?${params.toString()}` : ''}` + return
    motion.requestClose()}>
    event.stopPropagation()}>♥

    Account needed

    Join the network to take action.

    Anonymous browsing is open to everyone. One step with your email and a password signs you in or creates your account, then brings you right back here to post rescues, reply to requests, offer help, and nominate food sources.

    Sign in or create an account Email me yuhm updates
    Updates do not create an account or unlock posting.
    } export function LocationPrompt({ motion, onLocated, onSkip }: { motion: DialogMotionControls; onLocated: (latitude: number, longitude: number) => void; onSkip: () => void }) { diff --git a/yuhm/src/runs/AdvancedRules.tsx b/yuhm/src/runs/AdvancedRules.tsx new file mode 100644 index 00000000..7c639bca --- /dev/null +++ b/yuhm/src/runs/AdvancedRules.tsx @@ -0,0 +1,88 @@ +/** + * How seeds are counted. Everyone can read the rules. A coordinator can + * change them, and sees totals for the whole network with no names in them. + */ +import { useEffect, useState } from 'react' +import { useRuns } from './context' +import { shortDate } from './helpers' +import type { Rules } from './model' +import type { NetworkPayload } from './repository' +import { useRunText, type RunKey } from './runStrings' +import { Banner, Button, Stepper, Switch } from './ui' + +type NumberRule = Exclude + +const RULES: Array<{ key: NumberRule; max: number; step?: number }> = [ + { key: 'seeds_ask', max: 100 }, { key: 'seeds_intake', max: 100 }, { key: 'seeds_pickup', max: 100 }, { key: 'seeds_delivered', max: 100 }, + { key: 'seeds_full_circle', max: 100 }, { key: 'seeds_no_waste', max: 100 }, { key: 'seeds_tough_each', max: 100 }, { key: 'seeds_tough_cap', max: 200, step: 5 }, + { key: 'seeds_complete', max: 100 }, { key: 'seeds_stamp', max: 100 }, { key: 'intake_threshold', max: 10 }, { key: 'circle_goal', max: 100000, step: 5 }, +] + +export function AdvancedRules() { + const { t, lang } = useRunText() + const { snapshot, state, store, toast } = useRuns() + const [network, setNetwork] = useState(null) + const [draft, setDraft] = useState(state.rules) + const [seen, setSeen] = useState(state.rules) + const [busy, setBusy] = useState(false) + if (state.rules !== seen) { setSeen(state.rules); setDraft(state.rules) } + + // Only a coordinator's account can load the network totals; that answer is what unlocks editing. + useEffect(() => { + if (snapshot.mode !== 'account') { setNetwork(null); return } + let active = true + store.loadNetwork(8).then((loaded) => { if (active) setNetwork(loaded) }).catch(() => { if (active) setNetwork(null) }) + return () => { active = false } + }, [snapshot.mode, snapshot.userId, store]) + + const coordinator = network !== null + const changed = RULES.some((rule) => draft[rule.key] !== state.rules[rule.key]) || draft.stamps_enabled !== state.rules.stamps_enabled + const save = async () => { + setBusy(true) + const patch: Partial = { stamps_enabled: draft.stamps_enabled } + for (const rule of RULES) patch[rule.key] = draft[rule.key] + const result = await store.saveRules(patch) + setBusy(false) + toast(result.error ?? t('adv.rulesSaved')) + } + + return
    +

    {t('adv.rulesCopy')}

    + {coordinator && {t('adv.rulesCoordinator')}} +
      + {RULES.map((rule) =>
    • + {t(`rule.${rule.key}` as RunKey)} + {coordinator + ? setDraft({ ...draft, [rule.key]: value })} /> + : {state.rules[rule.key]}} +
    • )} +
    • + {coordinator + ? setDraft({ ...draft, stamps_enabled: value })} label={t('rule.stamps_enabled')} /> + : <>{t('rule.stamps_enabled')}{state.rules.stamps_enabled ? '✓' : '–'}} +
    • +
    + {coordinator && } + + {network &&
    +

    {t('adv.network')}

    +

    {t('adv.networkCopy')}

    +

    {t('net.enrolled', { count: network.enrolled })} · {t('net.open', { count: network.open_runs })}

    +
    + + + + + + + {[...network.weeks].reverse().map((week) => + + + )} + +
    {t('net.week')}{t('net.runs')}{t('net.tough')}{t('net.families')}{t('net.people')}{t('net.seeds')}
    {shortDate(lang, `${week.week_start}T12:00:00`)}{week.runs}{week.tough_runs}{week.families}{week.people}{week.seeds}
    +
    +
    } +
    +} diff --git a/yuhm/src/runs/AdvancedRun.tsx b/yuhm/src/runs/AdvancedRun.tsx new file mode 100644 index 00000000..cf2a5dd5 --- /dev/null +++ b/yuhm/src/runs/AdvancedRun.tsx @@ -0,0 +1,153 @@ +/** + * Advanced controls for one run: change it, reopen it, cancel or delete it, + * set any check-off by hand, edit every portion in a grid, and read what was + * done and when. + */ +import { useEffect, useState } from 'react' +import { Pencil, RotateCcw, Trash2 } from 'lucide-react' +import { useRoute } from '../router' +import { useRuns } from './context' +import { clock, dayLabel, runHref, stopName, windowLabel } from './helpers' +import { itemQty, type ContactState, type DeliveryState, type Run, type RunEvent } from './model' +import { partsOf } from './portioning' +import { RunDetailsSheet } from './RunDetails' +import { hasRunKey, runText, useRunText, type RunKey } from './runStrings' +import { Banner, Button } from './ui' + +const CONTACT_STATES: ContactState[] = ['to_ask', 'asked', 'confirmed', 'declined', 'no_answer'] +const DELIVERY_STATES: DeliveryState[] = ['pending', 'packed', 'on_the_way', 'delivered', 'missed'] + +function ActivityLog({ run }: { run: Run }) { + const { t, lang } = useRunText() + const { snapshot, store, now } = useRuns() + const [events, setEvents] = useState(null) + const account = snapshot.mode === 'account' + + useEffect(() => { + if (!account) return + let active = true + store.loadRunEvents(run.id).then((loaded) => { if (active) setEvents(loaded) }).catch(() => { if (active) setEvents(null) }) + return () => { active = false } + }, [account, store, run.id, snapshot.pending]) + + if (!account || events === null) return

    {t('adv.activityOnline')}

    + if (!events.length) return

    {t('adv.activityEmpty')}

    + const words = (event: RunEvent): string => { + const key = `log.${event.op}` + if (!hasRunKey(key)) return event.op + const summary = event.summary as Record + const state = typeof summary.state === 'string' && hasRunKey(`chip.${summary.state}`) ? runText(lang, `chip.${summary.state}` as RunKey) : '' + const to = typeof summary.to === 'string' && hasRunKey(`status.${summary.to}`) ? runText(lang, `status.${summary.to}` as RunKey) : '' + const check = typeof summary.check === 'string' && hasRunKey(`check.${summary.check}`) ? runText(lang, `check.${summary.check}` as RunKey) : '' + return t(key, { ...summary, state, to, check }) + } + return
      + {events.map((event, index) =>
    1. + + {words(event)} +
    2. )} +
    +} + +export function AdvancedRun({ run }: { run: Run }) { + const { t, lang } = useRunText() + const { state, dispatch, now, toast } = useRuns() + const { navigate } = useRoute() + const [editing, setEditing] = useState(false) + const [deleting, setDeleting] = useState(false) + const [reason, setReason] = useState('') + const parts = partsOf(state, run.id) + const open = run.status === 'planned' || run.status === 'pickup' || run.status === 'delivering' + + const remove = () => { + if (!dispatch({ op: 'run.delete', id: run.id }).error) { toast(t('toast.deleted')); navigate(runHref({ tab: 'advanced' }), { replace: true }) } + } + const quantity = (stopId: string, itemId: string): number => + parts.portions.find((portion) => portion.stop_id === stopId && portion.item_id === itemId)?.quantity ?? 0 + + return
    +

    {run.source_name} · {windowLabel(lang, run, now)} · {t(`status.${run.status}` as RunKey)}

    + +
    + {open && } + {run.status === 'completed' && } + {run.status === 'cancelled' && } + {open && + setReason(event.target.value)} /> + + } +
    + + {open && parts.stops.length > 0 &&
    +

    {t('adv.states')}

    +

    {t('adv.statesHint')}

    +
    + + + + {parts.stops.map((stop) => + + + + )} + +
    {t('tabs.families')}{t('adv.contactState')}{t('adv.deliveryState')}
    {stopName(stop, t)}
    +
    +
    } + + {parts.items.length > 0 && parts.stops.length > 0 &&
    +

    {t('adv.grid')}

    +

    {t('adv.gridHint')}

    +
    + + + + {parts.stops.map((stop) => )} + + + + + {parts.items.map((item) => { + const given = parts.stops.reduce((sum, stop) => sum + (stop.contact_state === 'declined' ? 0 : quantity(stop.id, item.id)), 0) + const left = Math.round((itemQty(item) - given) * 10) / 10 + return + + {parts.stops.map((stop) => )} + + + + })} + +
    {t('adv.gridItem')}{stop.bag ?? ''} {stopName(stop, t)}{t('adv.gridHave')}{t('adv.gridLeft')}
    {item.name} + { const next = Number(event.target.value); if (Number.isFinite(next) && next >= 0) dispatch({ op: 'portion.set', run_id: run.id, stop_id: stop.id, item_id: item.id, quantity: next, locked: true }) }} /> + {itemQty(item)}{left}
    +
    +
    } + +
    +

    {t('adv.activity')}

    + +
    + +
    + {deleting + ? + {t('adv.deleteAsk')} +

    {t('adv.deleteCopy')}

    +
    + + +
    +
    + : } +
    + + {editing && setEditing(false)} />} +
    +} diff --git a/yuhm/src/runs/AdvancedTab.tsx b/yuhm/src/runs/AdvancedTab.tsx new file mode 100644 index 00000000..91c537b4 --- /dev/null +++ b/yuhm/src/runs/AdvancedTab.tsx @@ -0,0 +1,188 @@ +/** + * Advanced: everything the run sheet decides on its own, in one place to + * change it. Timing and reminders, how food is shared out, the wording of + * every message, one run's controls, the data on this phone, and how seeds + * are counted. + */ +import { useState } from 'react' +import { CalendarPlus, Download, ShieldCheck, Trash2 } from 'lucide-react' +import type { Lang } from '../i18n' +import { AdvancedRules } from './AdvancedRules' +import { AdvancedRun } from './AdvancedRun' +import { useRuns } from './context' +import { download, windowLabel } from './helpers' +import { DEFAULT_TEMPLATES, TEMPLATE_KEYS, buildMessage } from './messages' +import { householdSize, type Prefs, type Run, type TemplateKey } from './model' +import { useCalendarDownload } from './NextUp' +import { currentRun } from './reminders' +import { useRunText, type RunKey } from './runStrings' +import { Banner, Button, Eyebrow, Field, Segmented, Stepper, Switch } from './ui' + +function CalendarButton({ run }: { run: Run }) { + const { t } = useRunText() + const save = useCalendarDownload(run) + return
    + +

    {t('adv.calendarHint')}

    +
    +} + +const csvCell = (value: string | number | null | undefined): string => `"${String(value ?? '').replace(/"/g, '""')}"` + +export function AdvancedTab({ runId }: { runId: string | null }) { + const { t, lang } = useRunText() + const { snapshot, state, prefs, dispatch, store, now, runnerName, toast } = useRuns() + const [messageLang, setMessageLang] = useState(lang) + const [erasing, setErasing] = useState(false) + const [alertsBlocked, setAlertsBlocked] = useState(false) + const runs = Object.values(state.runs).sort((a, b) => Date.parse(b.pickup_starts_at) - Date.parse(a.pickup_starts_at)) + const [picked, setPicked] = useState(runId) + const run = (picked && state.runs[picked]) || currentRun(state, now) || runs[0] || null + const save = (patch: Partial) => { dispatch({ op: 'settings.save', prefs: patch }) } + + const setAlerts = async (on: boolean) => { + if (!on) { save({ alerts: false }); return } + if (typeof Notification === 'undefined') { setAlertsBlocked(true); return } + const permission = Notification.permission === 'granted' ? 'granted' : await Notification.requestPermission() + setAlertsBlocked(permission !== 'granted') + if (permission === 'granted') save({ alerts: true }) + } + + const setTemplate = (key: TemplateKey, text: string | null) => { + const templates = { ...prefs.templates, [key]: { ...prefs.templates[key] } } + if (text === null || !text.trim() || text.trim() === DEFAULT_TEMPLATES[key][messageLang]) delete templates[key]![messageLang] + else templates[key]![messageLang] = text.trim() + save({ templates }) + } + + const sampleRun = run ?? { source_name: 'Oak Hill Baptist', pickup_starts_at: new Date(now.getTime() + 86400000).toISOString(), pickup_ends_at: new Date(now.getTime() + 86400000 + 1800000).toISOString() } + const preview = (key: TemplateKey): string => buildMessage(key, { + name: 'Rosa', language: messageLang, run: sampleRun, lines: [], runnerName, templates: prefs.templates, now, + }).text + + const exportJson = () => { + const { households, runs: allRuns, items, stops, portions, settings } = state + download('yuhm-run-sheet.json', JSON.stringify({ exported_at: now.toISOString(), households: Object.values(households), runs: Object.values(allRuns), items: Object.values(items), stops: Object.values(stops), portions: Object.values(portions), settings }, null, 2), 'application/json') + } + const exportCsv = () => { + const header = ['name', 'people', 'language', 'reach', 'contact', 'place', 'neighborhood', 'allergies', 'does_not_eat', 'never_needs', 'especially_needs', 'kitchen', 'notes'] + const rows = Object.values(state.households).filter((household) => !household.is_practice).map((household) => [ + household.label, householdSize(household), household.language, household.contact_method, household.contact_value, household.place, household.neighborhood, + household.allergies.join('; '), household.avoids.join('; '), household.never_needs.join('; '), household.wants.join('; '), household.kitchen.join('; '), household.notes, + ].map(csvCell).join(',')) + download('yuhm-families.csv', [header.join(','), ...rows].join('\r\n'), 'text/csv') + } + + return
    +
    + {t('run.name')} +

    {t('adv.title')}

    +

    {t('adv.copy')}

    +
    + +
    + {t('adv.timing')} +
    + + save({ contactLeadHours: Number(value) })} + options={[6, 12, 24, 48].map((hours) => ({ value: String(hours), label: t('adv.hours', { count: hours }) }))} /> + + + save({ followUpMinutes: Number(value) })} + options={[60, 120, 240].map((minutes) => ({ value: String(minutes), label: minutes === 60 ? t('adv.hour') : t('adv.hours', { count: minutes / 60 }) }))} /> + +
    + {t('adv.travel')} + save({ travelMinutes: value })} /> +
    + + save({ coldMinutes: Number(value) })} + options={[60, 90, 120].map((minutes) => ({ value: String(minutes), label: t('adv.minutes', { count: minutes }) }))} /> + + + {alertsBlocked &&

    {t('adv.alertsBlocked')}

    } + save({ quietHours: value })} label={t('adv.quiet')} disabled={!prefs.alerts} /> + {run && (run.status === 'planned' || run.status === 'pickup') && } +
    +
    + +
    + {t('adv.sharing')} +
    + + save({ splitBy: value })} + options={[{ value: 'people', label: t('adv.splitPeople') }, { value: 'household', label: t('adv.splitHousehold') }]} /> + +
    + {t('adv.reserve')} + save({ reserveEach: value })} /> +
    + save({ onlyConfirmed: value })} label={t('adv.onlyConfirmed')} /> + save({ respectWants: value })} label={t('adv.respectWants')} /> +
    +
    + +
    + {t('adv.messages')} +
    + + { const value = event.target.value.trim(); if (value !== (prefs.myName ?? '')) save({ myName: value || null }) }} /> + + +

    {t('adv.placeholders')}

    + {TEMPLATE_KEYS.map((key) => { + const own = prefs.templates[key]?.[messageLang] + return
    + +