{"version":3,"file":"WimAppKit.DAPYJXE6.mjs","names":["useContext","useState","useRef","useCallback","useLayoutEffect","useEffect"],"sources":["https:/framerusercontent.com/modules/tQKxioVQhniiFakg2cdA/nSdacZSrX0j7IoppCuhS/WimAppKit.js"],"sourcesContent":["// ============================================================================\n// WimAppKit.tsx — THE shared Gen-2 kernel. Every Gen-2 app imports this and\n// nothing else for its window. One copy of the window contract, not nine.\n//\n// Exports ONE object (AK). An exported React component would show up as a\n// separate insertable component in Framer's assets panel — that panel is\n// cluttered enough. Import it as:\n//     import { AK } from \"./WimAppKit.tsx\"\n//     const { useWimApp, WimWindow, CloseDot } = AK\n//\n// Specs this file implements verbatim (Notion, Master Build Plan):\n//   \"Gen-2 Apps — Why & The Rules\"  (RULE 0: never override WindowManager)\n//   \"Gen-2 App Chrome — the exact window, close button and colour spec\"\n//   \"BUG (fixed) — Gen-2 app re-opens itself and can never be closed\"\n//   \"BUG (fixed) — Gen-2 app opens on the WRONG folder (hash vs __wimApp)\"\n//\n// THE CONTRACT\n//   open   : observe window.__wimApp + \"wim-window-change\". On that event trust\n//            __wimApp ONLY (the hash is cleared a tick later and re-reading it\n//            re-opened the window). The hash is for cold deep links only, and\n//            only until WindowManager has published __wimApp once.\n//   close  : window.wimCloseApp(). Never our own hash surgery.\n//   mobile : below DESKTOP_MIN a browser Back / edge swipe closes INSTANTLY.\n//            WindowManager's closeWithoutAnim is module-private, so we mirror\n//            it: popstate/hashchange marks navBack for one tick, and the\n//            decision is taken in the SAME render where `open` flips false.\n//   mount  : NEVER unmount the window (the AnimatePresence trap). It stays\n//            mounted at scale(0.3) while closed, so measure with offsetWidth,\n//            never getBoundingClientRect.\n//   z      : overlay 5, chrome 10. Never higher.\n// ============================================================================\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useLayoutEffect,useRef,useCallback,useContext,createContext}from\"react\";import{createPortal}from\"react-dom\";import{motion}from\"framer-motion\";/* ---------------- Tokens (Gen-2 App Chrome — copy, do not interpret) ------ */const KEY_RED=\"#BE0A0A\";const BRIGHT_RED=\"#E50914\";const YELLOW=\"#FEBC2E\";const WIN_RADIUS=28;const WIN_BORDER=\"0.5px solid rgba(245,245,245,0.30)\";const WIN_RADIUS_PHONE=20;const WIN_SHADOW=\"rgba(0,0,0,0.25) 0px 0px 3px 0px, rgba(0,0,0,0.40) 0px 36px 100px 0px, rgba(255,255,255,0.10) 0px 0px 3px 0px inset\";const WINDOW_BG={background:\"rgba(0,0,0,0.3)\",blur:\"25px\"};const SPRING={type:\"spring\",stiffness:260,damping:26};const HIDDEN={opacity:0,scale:.3};const SHOWN={opacity:1,scale:1};const EASE_CINE=[.22,1,.36,1];const BD_DUR=.2;const CLOSE_ANIM_MS=420;const OVERLAY_Z=5;/* WIM 2026-09-06: \"the exit button in all apps seems to be broken — I can't see\n   it and I'm not able to click it anymore. It's really important that this one\n   is ALWAYS on the very top and you can always close apps when you click it.\"\n   10 was low enough for ordinary app content to bury it (the BTS paper alone\n   stacks to 3, and anything with its own z-index above 10 covered it). The close\n   dot is the one control that can never be unreachable, so it sits above\n   everything inside the window. It is still far below the sheet portal's z, so\n   an open sheet's own close dot still wins where it should. */const TOP_Z=2e6;const DESKTOP_MIN=1024;const CHROME={inset:12,box:30,dot:14,gap:8};/* WindowManager's WINDOWED box: 70% of the viewport, never past 840px. */const WINDOWED_MAX_W=840;const WINDOWED={width:`min(70%, ${WINDOWED_MAX_W}px)`,height:\"70%\"};const FULLSCREEN={width:\"100%\",height:\"100%\"};const DRAG_H=44;const DRAG_INSET=64;const INTER=\"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\";const BEBAS=\"'Bebas Neue', 'Oswald', Impact, sans-serif\";const MONT=\"'Montserrat', -apple-system, 'Helvetica Neue', sans-serif\";const MONO=\"'SF Mono', ui-monospace, 'Courier New', monospace\";/* ---------------- Backend ------------------------------------------------ */const SUPA=\"https://cgoexjurgqwzrdjnflxv.supabase.co\";const FN=SUPA+\"/functions/v1\";const STORAGE=SUPA+\"/storage/v1/object/public\";const OUTSETA_TOKEN_KEY=\"Outseta.nocode.accessToken\";/* Publishable key — safe in the browser by design (same one VinylApp ships). */const PUBLISHABLE_KEY=\"sb_publishable_WoMZsJf7CLj-fFbUjJSnHg_c82alVhO\";/* ---------------- 2026-10-03 Supabase login: token refresher -------------- *//* Supabase access tokens live 1 hour. The login flow mirrors the access token\n   into OUTSETA_TOKEN_KEY (read by ~32 files) and keeps the refresh token in\n   wim_sb_refresh / wim_sb_exp (seconds). Installed once per page (guarded by\n   window.__wimSbRefresh): on load, every 5 minutes and when the tab becomes\n   visible, renew if under 15 minutes remain. Single-flight, never throws. *//* 2026-10-04 guard: the Outseta SDK (still loaded site-wide) calls\n   wim.outseta.com/api/v1/nocode/validate-token on every page load. A Supabase\n   JWT fails that check and the SDK runs setAccessToken(null) ->\n   localStorage.removeItem(OUTSETA_TOKEN_KEY). Block ONLY removals whose call\n   stack comes from cdn.outseta.com while the stored token is a Supabase JWT.\n   Our own logout code (not from cdn.outseta.com) still removes it. */function installSbTokenGuard(){try{if(typeof window===\"undefined\")return;const w=window;if(w.__wimSbTokenGuard)return;w.__wimSbTokenGuard=true;const proto=Storage.prototype;const orig=proto.removeItem;proto.removeItem=function(key){try{if(key===OUTSETA_TOKEN_KEY&&this===window.localStorage){const v=window.localStorage.getItem(OUTSETA_TOKEN_KEY)||\"\";const part=v.split(\".\")[1]||\"\";const payload=JSON.parse(atob(part.replace(/-/g,\"+\").replace(/_/g,\"/\")));const iss=String(payload&&payload.iss||\"\");const stack=String(new Error().stack||\"\");if(iss.indexOf(\".supabase.co/auth/v1\")>=0&&stack.indexOf(\"cdn.outseta.com\")>=0){return undefined;}}}catch{}return orig.apply(this,arguments);};}catch{}}installSbTokenGuard();function installSbRefresher(){try{if(typeof window===\"undefined\")return;const w=window;if(w.__wimSbRefresh)return;w.__wimSbRefresh=true;let busy=false;const check=async()=>{if(busy)return;busy=true;try{const access=localStorage.getItem(OUTSETA_TOKEN_KEY);const refresh=localStorage.getItem(\"wim_sb_refresh\");if(!refresh)return;/* 2026-10-04: access token missing while the refresh token\n                   is still here = something other than our logout wiped it\n                   (the Outseta SDK's validate-token on page load). Our\n                   logout removes wim_sb_refresh too, so recover instead of\n                   wiping the session. */const exp=Number(localStorage.getItem(\"wim_sb_exp\"));if(access&&exp&&exp-Date.now()/1e3>=900)return;const res=await fetch(SUPA+\"/auth/v1/token?grant_type=refresh_token\",{method:\"POST\",headers:{apikey:PUBLISHABLE_KEY,\"Content-Type\":\"application/json\"},body:JSON.stringify({refresh_token:refresh})});if(res.status===200){const d=await res.json().catch(()=>null);if(d&&typeof d.access_token===\"string\"&&d.access_token){localStorage.setItem(OUTSETA_TOKEN_KEY,d.access_token);if(d.refresh_token)localStorage.setItem(\"wim_sb_refresh\",d.refresh_token);if(d.expires_at!=null)localStorage.setItem(\"wim_sb_exp\",String(d.expires_at));}}else if(res.status===400||res.status===401){localStorage.removeItem(\"wim_sb_refresh\");localStorage.removeItem(\"wim_sb_exp\");}}catch{}finally{busy=false;}};check();/* Outseta's validate-token clear lands ~1s after load; re-check so a\n           wipe that slipped past the guard is healed within seconds. */setTimeout(check,2500);setTimeout(check,8e3);setInterval(check,5*60*1e3);document.addEventListener(\"visibilitychange\",()=>{if(document.visibilityState===\"visible\")check();});}catch{}}installSbRefresher();/* ---------------- Router wiring (names owned by WindowManager) ------------ */const EVT=\"wim-window-change\";const RB_EVT=\"wim-redbox-access\";const MEMBER_EVT=\"wim-member-access\";const LOCKED_EVT=\"wim:openLockedModal\";/* ---------------- Invented polish (NOT in Gen-1) -------------------------- *//* WIM, 2026-09-02: \"if there are main things, like user things missing, that\n   just feel intuitive for most people, you can definitely come up with that and\n   build it in — just flag what you invented so we can always go back.\"\n   So: every addition that did NOT exist in the original Framer apps is gated on\n   this ONE flag and marked \"+ POLISH\" at the call site. Flip it to false and the\n   whole Universe falls back to exactly what Gen-1 did, in every app at once.\n   Nothing here changes data, gating, money or copy — only affordances. */const POLISH=true;/* ---------------- Env ---------------------------------------------------- */const isBrowser=()=>typeof window!==\"undefined\";/* 2026-10-04 TOUCH VISUAL FIXES (phones only, pointer: coarse). Lives here\n   because every Gen-2 app loads this file. Selectors deliberately repeat\n   Gen2Launch's \"wim-lock-light\" prefix PLUS extra attributes, so they win on\n   specificity over its older Files rule (which painted every blurred layer\n   one flat light grey and let the white body show through).\n   - Files (light skin only; the dark \"WIM SSD\" skin uses blur(34px) and is\n     untouched): header band solid near-white, list body + shell solid grey,\n     one step darker than the header.\n   - \"My Files\" title: 20px text on a 20px line-height plus a 5px top pad\n     inside a clipped 26px row cut the descenders off. Line-height 24, no pad.\n   - Menu bar (\"Bar\"): no backdrop blur on the bar, any child, or its direct\n     wrapper. */const TOUCH_FIX_ID=\"wim-touch-fixes\";const FILES_SCOPE=\"html.wim-files-open body > div:not(#main)\";const TOUCH_FIX_CSS=/* Files light skin. Header band (blur 30px) stays white. Body, shell and\n       the pill buttons (blur 20px) share ONE grey, rgb(226,226,228) - the\n       grey the pills already showed on phones. The Go-to-Path panel (blur\n       50px) is not matched, so it keeps its own light skin. flex-shrink: 0 is\n       what the header band, the crumb bar and the pill groups carry - it keeps\n       the preview's \"1 / 4\" counter (also blur 30px) out of the white rule. *//* 2026-10-04: targeted by data-wim-files marks set in FilesApp/FilesCore6 only,\n       so no other overlay (e.g. the ask-why popup, blur 25px) is ever painted. */'html.wim-files-open [data-wim-files=\"shell\"][style*=\"blur(25px)\"]{background-color:rgb(226,226,228)!important}'+'html.wim-files-open [data-wim-files=\"pill\"][style*=\"blur(20px)\"]{background-color:rgb(226,226,228)!important}'+'html.wim-files-open [data-wim-files=\"band\"][style*=\"blur(30px)\"]{background-color:rgb(252,252,253)!important}'+'html.wim-files-open [data-wim-files=\"body\"][style*=\"rgba(255, 255, 255, 0.74)\"]{background-color:rgb(226,226,228)!important}'+FILES_SCOPE+' span[style*=\"font-size: 20px\"][style*=\"line-height: 20px\"]{line-height:24px!important}'+FILES_SCOPE+' div[style*=\"padding-top: 5px\"]:has(> span[style*=\"font-size: 20px\"]){padding-top:0!important}'+/* Menu bar. On phones the bar's root carries data-framer-name=\"Phone\"\n       (its variant name), not \"Bar\" - measured 2026-10-04 in an iPhone\n       viewport: nav.framer-OhQza with inline backdrop-filter blur(3px). The\n       component class framer-OhQza is the stable hook. */'html body nav.framer-OhQza,html body nav.framer-OhQza *,html body [data-framer-name=\"Bar\"],html body [data-framer-name=\"Bar\"] *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}';function installTouchFixes(){if(typeof window===\"undefined\"||typeof document===\"undefined\")return;try{if(!window.matchMedia||!window.matchMedia(\"(pointer: coarse)\").matches)return;if(document.getElementById(TOUCH_FIX_ID))return;const st=document.createElement(\"style\");st.id=TOUCH_FIX_ID;st.textContent=TOUCH_FIX_CSS;(document.head||document.documentElement).appendChild(st);}catch(e){}}installTouchFixes();/* 2026-10-04 CRASH-LOOP BREAKER (touch only). If iOS killed the last page\n   (Gen2Launch's crash probe left an unclean breadcrumb under 2 minutes ago),\n   Safari reloads the SAME url - #music, #universedrops... - and the heavy app\n   that just crashed opens again by itself: a crash loop. Runs at module load,\n   before WindowManager reads the hash, and drops the hash so the visitor lands\n   on the Universe home instead. Reads the probe's key; never writes it. */function installCrashLoopBreaker(){if(typeof window===\"undefined\")return;const w=window;if(w.__wimCrashLoopChecked)return;w.__wimCrashLoopChecked=true;try{if(!window.matchMedia||!window.matchMedia(\"(pointer: coarse)\").matches)return;if(!window.location.hash)return;const prev=JSON.parse(localStorage.getItem(\"wim_crash_probe\")||\"null\");if(!prev||prev.clean||!(Date.now()-prev.t<12e4))return;w.__wimCrashLoopBroken=window.location.hash;window.history.replaceState(window.history.state,\"\",window.location.pathname+window.location.search);}catch(e){}}installCrashLoopBreaker();/* Touch devices: true on phones/tablets. Used to keep only the OPEN app's\n   content mounted (see WimWindow). */function isTouchDevice(){if(typeof window===\"undefined\")return false;try{return window.matchMedia(\"(pointer: coarse)\").matches;}catch(e){return false;}}function onCanvas(){if(!isBrowser())return true;try{return!!window.__framerCanvas||location.hostname.includes(\"framercanvas\");}catch{return false;}}function getToken(){if(!isBrowser())return null;try{return localStorage.getItem(OUTSETA_TOKEN_KEY);}catch{return null;}}/* Authenticated call to an Edge Function. Resolves null on no token / error. */function fnFetch(path,init){const t=getToken();if(!t)return Promise.resolve(null);const headers={...init&&init.headers?init.headers:{},Authorization:\"Bearer \"+t};return fetch(FN+(path.charAt(0)===\"/\"?path:\"/\"+path),{...init||{},headers}).then(r=>r.ok?r.json():null).catch(()=>null);}/* Public call with the publishable key (no user token needed). */function pubFetch(url,init){const headers={...init&&init.headers?init.headers:{},apikey:PUBLISHABLE_KEY,Authorization:\"Bearer \"+PUBLISHABLE_KEY};return fetch(url,{...init||{},headers}).then(r=>r.ok?r.json():null).catch(()=>null);}/* ---------------- Singleton hooks (installed ONCE for every app) ---------- */let lastDown=null;let navBack=false;if(isBrowser()&&!window.__wimAppKitHooks){window.__wimAppKitHooks=true;window.addEventListener(\"pointerdown\",e=>{if(typeof e.clientX===\"number\")lastDown={x:e.clientX,y:e.clientY};},true);const markBack=()=>{navBack=true;setTimeout(()=>{navBack=false;},0);};window.addEventListener(\"popstate\",markBack,true);window.addEventListener(\"hashchange\",markBack,true);}/* Several apps share one module instance only if Framer dedupes it; if it does\n   not, each copy keeps its own lastDown, which is still correct. */function getLastDown(){return lastDown;}function isNavBack(){return navBack;}/* ---------------- Viewport --------------------------------------------- *//* Layout effects run BEFORE the browser paints; plain effects run after. On the\n   server there is no layout pass, so fall back to useEffect there to keep React\n   quiet. */const useIsoLayoutEffect=typeof window!==\"undefined\"?useLayoutEffect:useEffect;function useIsDesktop(){const pv=useContext(PreviewCtx);const[d,setD]=useState(true);/* Before paint, not after — see the long note on useBp. */useIsoLayoutEffect(()=>{if(!isBrowser())return;const read=()=>setD(window.innerWidth>=DESKTOP_MIN);read();window.addEventListener(\"resize\",read);return()=>window.removeEventListener(\"resize\",read);},[]);return pv&&pv.active?pv.bp===\"desktop\":d;}/* Framer's own breakpoints, measured off the live site's stylesheet:\n   desktop (min-width:1200px) / tablet (810-1199.98px) / phone (max-width:809.98px).\n   Every Gen-2 app lays out against these three so a window matches the frame\n   tree the canvas would have rendered at the same width. */const BP_TABLET_MIN=810;const BP_DESKTOP_MIN=1200;function readBp(){if(!isBrowser())return\"desktop\";const w=window.innerWidth;return w>=BP_DESKTOP_MIN?\"desktop\":w>=BP_TABLET_MIN?\"tablet\":\"phone\";}const PreviewCtx=/*#__PURE__*/createContext(null);function usePreview(){return useContext(PreviewCtx);}const PREVIEW_DIMS={desktop:{w:1440,h:900},tablet:{w:834,h:1112},phone:{w:390,h:844}};function useBp(){const pv=useContext(PreviewCtx);const[bp,setBp]=useState(\"desktop\");/* WIM 2026-09-07: \"it randomly jumps around when I close or open it.\"\n       This is why. The state seeds to \"desktop\" on EVERY mount (it has to —\n       reading window during render would break hydration on the static site),\n       and it used to be corrected in a plain effect, i.e. AFTER the first paint.\n       So on a phone the card painted one frame as the wide desktop card and then\n       snapped. Inside a Framer variant transition that measures height, that one\n       frame is the jump — and it looked random because it depended on whether\n       the transition had taken its measurement yet. A LAYOUT effect corrects it\n       before anything is painted, so there is nothing to see and nothing to\n       mis-measure. Every app that calls useBp gets this, not just Give Seconds. */useIsoLayoutEffect(()=>{if(!isBrowser())return;const read=()=>setBp(readBp());read();window.addEventListener(\"resize\",read);window.addEventListener(\"orientationchange\",read);return()=>{window.removeEventListener(\"resize\",read);window.removeEventListener(\"orientationchange\",read);};},[]);return pv&&pv.active?pv.bp:bp;}function useIsPhone(){return useBp()===\"phone\";}/* offsetWidth/offsetHeight ignore transforms — the closed window sits at\n   scale(0.3) and a bounding rect would report a third of the real box. */function useBoxSize(ref,active){const[size,setSize]=useState({w:0,h:0});useEffect(()=>{if(!isBrowser())return;const read=()=>{const el=ref.current;if(el&&el.offsetWidth>0)setSize({w:el.offsetWidth,h:el.offsetHeight});};read();const t1=setTimeout(read,60);const t2=setTimeout(read,400);window.addEventListener(\"resize\",read);let ro=null;if(ref.current&&typeof ResizeObserver!==\"undefined\"){ro=new ResizeObserver(read);ro.observe(ref.current);}return()=>{clearTimeout(t1);clearTimeout(t2);window.removeEventListener(\"resize\",read);if(ro)ro.disconnect();};},[ref,active]);return size;}/* ---------------- The app slot ------------------------------------------ */function baseOf(v){return v?String(v).split(\"/\")[0].trim():\"\";}function refOf(v){if(!v)return\"\";const i=String(v).indexOf(\"/\");return i<0?\"\":String(v).slice(i+1);}/*\n * useWimApp(\"popcorn\", [\"popcorns\"]) → { open, ref, origin, close, reopenKey }\n *   open  : the app slot names us (base id, so \"btsdrops/<slug>\" counts)\n *   ref   : the sub-resource after the first \"/\" (\"\" when none)\n *   origin: the pointer-down that launched us, for transformOrigin\n *   close : asks WindowManager. Falls back to local state only if the router\n *           is somehow absent (canvas preview, unit tests).\n *//* Every app also answers to \"<id>-g2\" (test ids used by Gen2Launch.tsx so a\n   Gen-2 app can be opened side by side with the old window during rollout). *//* ---------------- ROLLOUT SWITCH ----------------------------------------\n   WIM 2026-09-05: BTS Drops (Gen-2) ships WITH the release - the Gen-1 one\n   \"still sucks\". Everything else waits until after.\n   The wall that ships is the ORIGINAL The_wall.tsx, which now carries the \"+\"\n   and the Give Seconds sheet itself, so the Gen-2 Wall must NOT claim\n   \"thewall\" or it would override the one that ships.\n   An app id listed here claims the PLAIN id, so it is the app that opens.\n   An app id NOT listed still answers to \"<id>-g2\", so it stays testable next\n   to the original, but the plain id falls through to the Gen-1 window.\n   To ship another app: add its id, push, publish. To pull one back: remove it.\n   No canvas surgery either way. *//* WIM 2026-09-06: the account widget's Settings button calls openApp(\"settings\"),\n   so Gen-2 Settings has to own the plain \"settings\" id to be the thing it opens. *//* WIM 2026-09-07 (REVERTED, same day): Universe Drops was added here briefly to\n   route around its German crash by handing the plain id to Gen-2 instead — but\n   WIM did not ask for Gen-2 to replace Gen-1 on his home screen, and Gen-2's\n   look is not what's meant to ship right now. He wants the ORIGINAL (Gen-1)\n   Universe Drops kept live and its actual crash fixed in place, not swapped\n   out. Removed. Do NOT add \"universedrops\" back here without WIM explicitly\n   asking for the Gen-2 app to go live — this switch changes what real visitors\n   see, not just an internal wiring detail.\n   SUPERSEDED 2026-09-09: WIM explicitly asked — \"the full seven apps are\n   already there, you just have to replace the name of them... no longer gen2\n   and instead naming the other ones for legacy then removing the -g2 there.\"\n   That is exactly the explicit ask this note was waiting for. *//* WIM 2026-09-07: Vinyl's TV was already calling wimOpenApp(\"popcorn\") (the\n   plain id, not \"popcorn-g2\") to hand off to the music video — and Popcorn's\n   own file header already says it \"Replaces PopcornApp.tsx ... app id\n   'popcorn'\". Both assumed this switch already listed it. It didn't, so every\n   TV click was landing on the old Gen-1 Popcorn window instead — Vinyl closing\n   itself correctly (single app slot) while the \"wrong\" Popcorn (or nothing\n   usable) came up behind it read as \"the app just crashes/closes\". Adding\n   \"popcorn\" here is the one missing step from Popcorn's own GO LIVE recipe —\n   no canvas surgery, per that recipe. *//* WIM 2026-09-09 (round 15): \"the full seven apps are already there, you just\n   have to replace the name of them\" — explicit go-live for the remaining four.\n   thewall / about / universedrops / redboxes join the three already live.\n   Confirmed safe by reading WindowManager.tsx directly: every real dock-icon\n   opener (OpenWall, OpenAboutUs, OpenUniverseDrops, OpenRedBoxGallery) already\n   calls openApp() with the PLAIN id and nothing else — no -g2 special-casing\n   anywhere in WindowManager — so flipping the switch here is genuinely the\n   only step, exactly as this file's own recipe promises. Red Boxes keeps its\n   existing Insider+ gate and BTS Drops keeps its existing Member+ gate,\n   unchanged — this switch only decides Gen-1 vs Gen-2, never who gets in. */const GEN2_LIVE=[\"btsdrops\",\"settings\",\"popcorn\",\"thewall\",\"about\",\"universedrops\",\"redboxes\"];function isLive(appId){return GEN2_LIVE.indexOf(appId)>-1;}/* WIM 2026-09-07: \"the bts drops should no longer launch on -g2 but directly\n   on #btsdrops (always!)\". The normal rule above gives every LIVE app a grace\n   period where it still answers to its old \"-g2\" preview id (so a bookmarked\n   Gen2Launch link or an old test link keeps working while an app settles in).\n   BTS Drops has been live and confirmed since 2026-09-05 — WIM wants that\n   grace period OVER for it specifically: the plain \"#btsdrops\" hash should be\n   the only way in, full stop, no duplicate entry point left lying around.\n   An id in BOTH GEN2_LIVE and here drops the \"-g2\" alias entirely once live.\n   WIM 2026-09-09 (round 15): \"removing the -g2 etc\" — the same \"no more -g2,\n   ever\" treatment now applies to ALL seven apps, not just BTS Drops. GEN2_NO_G2\n   is the full GEN2_LIVE list: every migrated app answers ONLY to its plain id\n   from this push forward. Gen2Launch.tsx's six remaining \"-g2\" openers are\n   being redirected to the plain ids in the same round so nothing dead-ends. */const GEN2_NO_G2=[\"btsdrops\",\"settings\",\"popcorn\",\"thewall\",\"about\",\"universedrops\",\"redboxes\"];/* HAND-OFF REGISTER. A Gen-2 app that has claimed a plain app id announces\n   itself here while it is mounted, and Gen-1's WindowManager stands down for\n   exactly those ids (see useActiveApp there). Two reasons it is a register and\n   not just the GEN2_LIVE list:\n     - it is keyed on the app being ON THE PAGE, so listing an id whose Gen-2\n       component is not on the canvas yet cannot leave a dead button;\n     - the two files never import each other, so nothing depends on load order.\n   Nothing is announced for an id that is not live: those answer to \"<id>-g2\"\n   only, and Gen-1 must keep the plain id. */const G2_MOUNT_EVT=\"wim-gen2-mounted\";function announceGen2(appId,on){if(!isBrowser())return;const w=window;const reg=w.__wimGen2Mounted=w.__wimGen2Mounted||{};if(on)reg[appId]=true;else delete reg[appId];try{window.dispatchEvent(new Event(G2_MOUNT_EVT));}catch(e){}}function useWimApp(appId,aliases){const base=[appId].concat(aliases||[]);/* Not live yet -> answer ONLY to the -g2 ids.\n       Live AND in GEN2_NO_G2 -> answer ONLY to the plain ids (see GEN2_NO_G2\n       above — this is BTS Drops' \"no more -g2, ever\" switch).\n       Otherwise live -> answer to both, for the normal rollout grace period. */const ids=isLive(appId)?GEN2_NO_G2.indexOf(appId)>-1?base:base.concat(base.map(i=>i+\"-g2\")):base.map(i=>i+\"-g2\");useEffect(()=>{if(!isLive(appId)||onCanvas())return;const all=base.concat([]);all.forEach(i=>announceGen2(i,true));return()=>all.forEach(i=>announceGen2(i,false));// eslint-disable-next-line react-hooks/exhaustive-deps\n},[appId]);const[open,setOpen]=useState(false);const[ref,setRef]=useState(\"\");const[origin,setOrigin]=useState(null);const openRef=useRef(false);useEffect(()=>{openRef.current=open;},[open]);useEffect(()=>{if(!isBrowser()||onCanvas())return;let booted=\"__wimApp\"in window;const read=()=>{const w=window;if(\"__wimApp\"in window)booted=true;const a=w.__wimApp??null;const h=(location.hash||\"\").replace(/^#/,\"\").trim();const src=booted?a:h;const want=ids.indexOf(baseOf(src))>-1;if(want&&!openRef.current)setOrigin(lastDown);setRef(want?refOf(src):\"\");setOpen(want);};read();window.addEventListener(EVT,read);window.addEventListener(\"hashchange\",read);window.addEventListener(\"popstate\",read);return()=>{window.removeEventListener(EVT,read);window.removeEventListener(\"hashchange\",read);window.removeEventListener(\"popstate\",read);};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[appId]);const close=useCallback(()=>{try{const fn=window.wimCloseApp;if(typeof fn===\"function\")fn();else setOpen(false);}catch{setOpen(false);}},[]);return{open,ref,origin,close};}/* Ask WindowManager to open an app (dock icons already do this via Open*). */function openApp(id){if(!isBrowser())return;const fn=window.wimOpenApp;if(typeof fn===\"function\")fn(id);else location.hash=id;}/* Raise the LOCKED upsell the way FilesApp does — WindowManager listens. *//* Mirror of WindowManager's openLockedUpsell(appId, requiredTier, appName):\n   the LOCKED window listens on \"wim-locked-change\" and reads window.__wimLock. */function openLockedModal(detail){if(!isBrowser())return;const w=window;/* 2026-10-04 (iPhone crash probe: \"lock:lyricbook>lock:redboxes\"):\n       this used to set the overlay, fire \"wim-locked-change\", AND fire\n       \"wim:openLockedModal\" with a detail that had no `kind`. LockWindow's\n       bridge treats a kind-less dispatch as the legacy Red Box call and\n       re-opened LOCKED as \"redboxes\" right on top: two opens back to back,\n       wrong copy, and the crash. Now: hand the context to LockWindow's bridge\n       ONCE, tagged kind \"app\" (or its own kind), so exactly one open happens.\n       If LockWindow's bridge isn't loaded, set the overlay directly. */const ctx={...detail||{},kind:detail&&detail.kind||\"app\"};if(w.__wimFoundBoxLockBridge){window.dispatchEvent(new CustomEvent(LOCKED_EVT,{detail:ctx}));return;}w.__wimLock=ctx;w.__wimLockedOverlay=ctx;window.dispatchEvent(new CustomEvent(\"wim-locked-change\"));}/* ---------------- Entitlement (mirror of WindowManager, never a replacement) *//* WindowManager's ShowLockedWindow fetches /me and publishes the flags; we only\n   read them. If nobody has published yet (the LOCKED instance is not on this\n   page), we do the SAME fetch, guarded by the SAME global, and publish the SAME\n   flags + events — so the two implementations can never disagree. */function readFlag(name){if(!isBrowser())return null;const v=window[name];return v===true||v===false?v:null;}function ensureAccess(){if(!isBrowser())return;const w=window;if(readFlag(\"__wimRedBoxAccess\")!==null&&readFlag(\"__wimMemberAccess\")!==null)return;if(w.__wimAccessFetching)return;const publish=(rb,mem)=>{w.__wimRedBoxAccess=rb;w.__wimMemberAccess=mem;window.dispatchEvent(new CustomEvent(RB_EVT));window.dispatchEvent(new CustomEvent(MEMBER_EVT));};const token=getToken();if(!token){publish(false,false);return;}w.__wimAccessFetching=true;fetch(FN+\"/me\",{headers:{Authorization:\"Bearer \"+token}}).then(r=>r.ok?r.json():null).then(d=>{const active=!!(d&&(d.membership_status===\"active\"||d.membership_status===\"trialing\"));publish(!!(d&&d.can_open_red_boxes),active);}).catch(()=>publish(false,false)).finally(()=>{w.__wimAccessFetching=false;});}/* useAccess(\"redbox\") / useAccess(\"member\") → true | false | null (loading) */function useAccess(kind){const name=kind===\"redbox\"?\"__wimRedBoxAccess\":\"__wimMemberAccess\";const evt=kind===\"redbox\"?RB_EVT:MEMBER_EVT;const[v,setV]=useState(()=>readFlag(name));useEffect(()=>{if(!isBrowser()||onCanvas())return;const sync=()=>setV(readFlag(name));window.addEventListener(evt,sync);sync();/* Outseta hydrates its token after this module evaluates — give the\n           LOCKED gate first go, then fetch ourselves if still unknown. */const t=setTimeout(()=>{if(readFlag(name)===null)ensureAccess();},600);return()=>{window.removeEventListener(evt,sync);clearTimeout(t);};},[name,evt]);return v;}/* The /me row itself, for apps that need tier / alias / status. */function useMe(){const[me,setMe]=useState(null);useEffect(()=>{if(!isBrowser()||onCanvas())return;let dead=false;let tries=0;const tick=()=>{if(dead)return;if(!getToken()){if(++tries<12)setTimeout(tick,400);return;}fnFetch(\"/me\").then(j=>{if(!dead&&j&&!j.error)setMe(j);});};tick();return()=>{dead=true;};},[]);return me;}/* ---------------- Sheets (a layer ON TOP of an app, not an app) ----------- *//* Notes rides on Files, MemoChat rides on a BTS article. WindowManager already\n   honours window.__wimSheets: Back closes the topmost sheet before the app. */const SHEET_EVT=\"wim-sheet-change\";function useSheet(onClose,active=true){useEffect(()=>{if(!isBrowser()||!active)return;const w=window;if(!Array.isArray(w.__wimSheets))w.__wimSheets=[];const closer=()=>onClose();w.__wimSheets.push(closer);/* WIM: the sheet draws its own close dot in the same top-left corner as\n           the window behind it, so two red dots stacked. The window hides its\n           own while any sheet is open. */window.dispatchEvent(new Event(SHEET_EVT));const onKey=e=>{if(e.key===\"Escape\"){e.preventDefault();onClose();}};window.addEventListener(\"keydown\",onKey);return()=>{window.removeEventListener(\"keydown\",onKey);try{w.__wimSheets=(w.__wimSheets||[]).filter(f=>f!==closer);}catch(e){}window.dispatchEvent(new Event(SHEET_EVT));};},[onClose,active]);}/* True while any sheet (Give Seconds, etc.) is on screen. */function useSheetOpen(){const[on,setOn]=useState(false);useEffect(()=>{if(!isBrowser())return;const read=()=>{const w=window;setOn(Array.isArray(w.__wimSheets)&&w.__wimSheets.length>0);};read();window.addEventListener(SHEET_EVT,read);return()=>window.removeEventListener(SHEET_EVT,read);},[]);return on;}/* ---------------- Chrome pieces ----------------------------------------- */function CloseDot({onClick,title=\"Close\"}){const[hover,setHover]=useState(false);return /*#__PURE__*/_jsx(\"div\",{onClick:e=>{e.stopPropagation();onClick();},onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),title:title,\"data-no-drag\":\"1\",style:{position:\"absolute\",top:CHROME.inset,left:CHROME.inset,width:CHROME.box,height:CHROME.box,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",zIndex:TOP_Z,touchAction:\"manipulation\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:CHROME.dot,height:CHROME.dot,borderRadius:\"50%\",background:BRIGHT_RED,border:\"0.5px solid \"+KEY_RED,boxSizing:\"border-box\",/* The dot floats directly on whatever the app paints — on\n                       The Wall that is a bright cinema screen, where a flat red\n                       circle just looks like it was dropped on the artwork. A\n                       soft dark halo separates it from any background without\n                       adding visible chrome. */boxShadow:hover?\"0 0 10px rgba(229,9,20,0.75), 0 1px 6px rgba(0,0,0,0.55)\":\"0 1px 6px rgba(0,0,0,0.45)\",transition:\"box-shadow .2s ease\"}})});}/* A canvas preview is a 1440px-wide FRAME inside a browser window that may be\n   700px wide, and an @media query answers to the window, not the frame. Left\n   alone, a \"desktop\" preview renders the phone stylesheet and the preview lies.\n   Container queries would be the real fix for the whole codebase; until then,\n   every stylesheet an app injects is run through this on the way into the\n   preview: each @media block is evaluated against the PREVIEW's width and\n   either unwrapped (it matches) or dropped (it does not). Outside a preview the\n   string is returned untouched, so nothing about the shipped CSS changes. */function resolveMediaFor(css,width){let out=\"\";let i=0;while(i<css.length){const at=css.indexOf(\"@media\",i);if(at===-1){out+=css.slice(i);break;}out+=css.slice(i,at);const braceStart=css.indexOf(\"{\",at);if(braceStart===-1){out+=css.slice(at);break;}const cond=css.slice(at+6,braceStart);let depth=1;let j=braceStart+1;while(j<css.length&&depth>0){if(css[j]===\"{\")depth++;else if(css[j]===\"}\")depth--;j++;}const body=css.slice(braceStart+1,j-1);if(mediaMatches(cond,width))out+=body;i=j;}return out;}function mediaMatches(cond,width){/* Only the width features the apps actually use. Anything else (print,\n       pointer: coarse, prefers-*) is left in place by returning true, because\n       dropping it would be a bigger lie than keeping it. */const c=cond.toLowerCase();if(!/width/.test(c))return true;let ok=true;const min=/min-width\\s*:\\s*([\\d.]+)px/.exec(c);if(min)ok=ok&&width>=parseFloat(min[1]);const max=/max-width\\s*:\\s*([\\d.]+)px/.exec(c);if(max)ok=ok&&width<=parseFloat(max[1]);return ok;}/* Wrap every injected stylesheet: <style>{AK.useCss(MY_CSS)}</style> */function useCss(css){const pv=useContext(PreviewCtx);if(!pv||!pv.active)return css;const dims=PREVIEW_DIMS[pv.bp]||PREVIEW_DIMS.desktop;return resolveMediaFor(css,dims.w);}/* The preview frame. Draws a real device-sized viewport inside whatever box\n   the component occupies on the canvas and scales it down to fit, so a 1440px\n   desktop layout is judgeable inside a 400px frame. */function CanvasPreview({bp,children}){const hostRef=useRef(null);const[scale,setScale]=useState(0);/* \"auto\" reads the breakpoint off the FRAME this component is sitting in, so\n       dropping it into a phone breakpoint in Framer previews as a phone with no\n       dropdown to remember. WIM: \"I don't want to do that manually.\" */const[autoBp,setAutoBp]=useState(\"desktop\");const effBp=bp===\"auto\"?autoBp:bp;const dims=PREVIEW_DIMS[effBp]||PREVIEW_DIMS.desktop;useEffect(()=>{if(!isBrowser())return;const el=hostRef.current;if(!el)return;const fit=()=>{const w=el.offsetWidth;const h=el.offsetHeight;if(!w||!h)return;if(bp===\"auto\"){setAutoBp(w>=BP_DESKTOP_MIN?\"desktop\":w>=BP_TABLET_MIN?\"tablet\":\"phone\");}setScale(Math.min(w/dims.w,h/dims.h));};fit();let ro=null;if(typeof window.ResizeObserver===\"function\"){ro=new window.ResizeObserver(fit);ro.observe(el);}window.addEventListener(\"resize\",fit);return()=>{if(ro)ro.disconnect();window.removeEventListener(\"resize\",fit);};},[dims.w,dims.h,bp]);return /*#__PURE__*/_jsxs(\"div\",{ref:hostRef,style:{width:\"100%\",height:\"100%\",minWidth:120,minHeight:80,position:\"relative\",overflow:\"hidden\",background:\"#0a0a0a\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:dims.w,height:dims.h,flex:\"0 0 auto\",position:\"relative\",overflow:\"hidden\",background:\"#000\",transform:`scale(${scale||.001})`,transformOrigin:\"center center\",visibility:scale?\"visible\":\"hidden\"},children:/*#__PURE__*/_jsx(PreviewCtx.Provider,{value:{active:true,bp:effBp},children:children})}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",left:8,bottom:6,padding:\"2px 8px\",borderRadius:999,background:\"rgba(0,0,0,0.62)\",color:\"rgba(255,255,255,0.72)\",fontFamily:INTER,fontSize:10,letterSpacing:.6,pointerEvents:\"none\"},children:[effBp,\" \\xb7 \",dims.w,\"\\xd7\",dims.h,bp===\"auto\"?\" \\xb7 auto\":\"\"]})]});}/* ONE line per app: `if (onCanvas()) return canvasView(props.preview, \"THE WALL\", <Room .../>, BG)`.\n   \"off\" keeps the cheap placeholder for a canvas that would otherwise run nine\n   live apps at once. */function canvasView(mode,title,node,opts){if(mode===\"off\")return /*#__PURE__*/_jsx(CanvasCard,{title:title});const bp=mode===\"phone\"||mode===\"tablet\"||mode===\"desktop\"?mode:\"auto\";const o=opts||{};return /*#__PURE__*/_jsx(CanvasPreview,{bp:bp,children:/*#__PURE__*/_jsx(WimWindow,{open:true,origin:null,onClose:()=>{},background:o.background,mode:o.mode,keepMounted:true,children:node})});}/* The property control every app spreads into its own addPropertyControls. */const PREVIEW_CONTROL={type:\"enum\",title:\"Canvas preview\",options:[\"auto\",\"desktop\",\"tablet\",\"phone\",\"off\"],optionTitles:[\"Auto (follows the frame)\",\"Desktop 1440\",\"Tablet 834\",\"Phone 390\",\"Off (placeholder)\"],defaultValue:\"auto\"};function CanvasCard({title,sub=\"Gen-2 \\xb7 renders live as overlay\"}){return /*#__PURE__*/_jsxs(\"div\",{style:{width:220,height:120,borderRadius:14,background:\"#160707\",border:\"1px solid \"+KEY_RED,color:\"#fff\",fontFamily:BEBAS,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:6,letterSpacing:1,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:24,textAlign:\"center\",padding:\"0 10px\"},children:title}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:12,opacity:.6,fontFamily:\"system-ui\"},children:sub})]});}/*\n * WimWindow — the never-unmount portal window.\n *   open        : from useWimApp (AND any entitlement the app requires)\n *   origin      : from useWimApp\n *   onClose     : from useWimApp\n *   mode        : \"fullscreen\" (default) or \"windowed\" (Settings / About on\n *                 desktop — WindowManager's WINDOWED box). Below DESKTOP_MIN\n *                 everything is fullscreen.\n *   draggable   : desktop title-strip drag, like WindowShell (windowed apps)\n *   background  : the window's own paint behind the children\n *   keepMounted : default true. Children stay mounted while closed; set false\n *                 to drop them CLOSE_ANIM_MS after closing (heavy apps).\n */function WimWindow(props){const{origin,onClose,mode=\"fullscreen\",draggable,background,keepMounted=true,boxRef,zIndex,children}=props;const preview=usePreview();const inPreview=!!(preview&&preview.active);/* In a canvas preview the window is always open — there is no router and\n       nothing to click through to. */const open=inPreview?true:props.open;const isDesktop=useIsDesktop();const bpNow=useBp();const sheetOpen=useSheetOpen();const[mounted,setMounted]=useState(false);const[render,setRender]=useState(open);const dragX=useRef({x:0,y:0});const[off,setOff]=useState({x:0,y:0});useEffect(()=>setMounted(true),[]);/* Mobile Back = no animation. Decided HERE, in the render where `open`\n       flips, because framer-motion will not re-read a transition that changes\n       a commit later. */const instantRef=useRef(false);const prevOpenRef=useRef(open);if(open)instantRef.current=false;else if(prevOpenRef.current)instantRef.current=navBack&&!isDesktop;prevOpenRef.current=open;const instantNow=instantRef.current&&!open;/* PERF (measured 2026-09-02): the frosted-glass layer below carries a\n       backdrop-filter: blur(25px) across the whole window box. While an app\n       with a SCROLLING body is open that single property drops the window from\n       60fps to ~12fps — the browser re-samples the backdrop every frame. It is\n       only ever SEEN during the open/close animation, when the content is\n       scaled down and the glass shows around it; once the window has settled,\n       an app that paints an opaque background covers it completely. So: keep\n       it through the animation, then switch it off. No visual difference. */const opaqueBg=!!background&&/^(rgb\\(|#)/.test(background.trim());const[settled,setSettled]=useState(false);useEffect(()=>{if(!open){setSettled(false);return;}const id=setTimeout(()=>setSettled(true),CLOSE_ANIM_MS+120);return()=>clearTimeout(id);},[open]);/* 2026-10-04 (iPhone crash): on touch the glass blur exists only while\n       the window is open. A closed window used to keep its full-window 25px\n       backdrop-filter alive at opacity 0 - one per app on the page. */const touchDev=isTouchDevice();const glassBlur=opaqueBg&&settled||touchDev&&!open?\"none\":\"blur(\"+WINDOW_BG.blur+\")\";/* 2026-10-04 (iPhone crash): on touch ONLY the open app is mounted. Its\n       content mounts on open and unmounts after the close animation, so a\n       closed app holds no images, videos, iframes or 3D layers. Desktop keeps\n       whatever the app asked for. */const keep=keepMounted&&!touchDev;useEffect(()=>{if(open){setRender(true);setOff({x:0,y:0});return;}if(keep)return;const t=setTimeout(()=>setRender(false),instantRef.current?0:CLOSE_ANIM_MS+180);return()=>clearTimeout(t);},[open,keep]);if(!mounted||!isBrowser()||typeof document===\"undefined\")return null;const box=isDesktop&&mode===\"windowed\"?WINDOWED:FULLSCREEN;/* WIM 2026-09-04: every app keeps the rounded bezel at EVERY size, phone\n       included. Square corners were my call, not his — a phone screen is itself\n       rounded, so a square app reads as the odd one out. A tighter radius on\n       phone matches the handset's own corner instead of floating inside it. The\n       hairline border stays with it; without the border the radius reads as a\n       clipping accident rather than a bezel. */const edgeToEdge=false;const radius=bpNow===\"phone\"?WIN_RADIUS_PHONE:WIN_RADIUS;const center={position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"};const originStyle=origin?origin.x+\"px \"+origin.y+\"px\":\"center center\";const shift={position:\"relative\",left:off.x+\"px\",top:off.y+\"px\"};const onPointerDown=e=>{if(!draggable||!isDesktop)return;let node=e.target;while(node){if(node.getAttribute&&node.getAttribute(\"data-no-drag\")===\"1\")return;node=node.parentElement;}const rect=e.currentTarget.getBoundingClientRect();const x=e.clientX-rect.left;const y=e.clientY-rect.top;if(y>DRAG_H)return;if(x<DRAG_INSET||x>rect.width-DRAG_INSET)return;e.preventDefault();const sx=e.clientX;const sy=e.clientY;const base={...dragX.current};const move=ev=>{dragX.current={x:base.x+(ev.clientX-sx),y:base.y+(ev.clientY-sy)};setOff(dragX.current);};const up=()=>{window.removeEventListener(\"pointermove\",move);window.removeEventListener(\"pointerup\",up);};window.addEventListener(\"pointermove\",move);window.addEventListener(\"pointerup\",up);};/* CANVAS PREVIEW — same chrome, same children, but laid out INSIDE the\n       preview frame rather than portalled to document.body at position:fixed.\n       No backdrop click-to-close, no drag, no open/close animation: this is a\n       still of the app for judging layout, not a running window. */if(inPreview){return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{...box,borderRadius:radius,background:WINDOW_BG.background,position:\"absolute\"}}),/*#__PURE__*/_jsx(\"div\",{style:{...box,borderRadius:radius,border:edgeToEdge?\"none\":WIN_BORDER,boxShadow:WIN_SHADOW,boxSizing:\"border-box\",position:\"relative\"},children:/*#__PURE__*/_jsxs(\"div\",{ref:boxRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:radius,overflow:\"hidden\",background:background||\"transparent\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(CloseDot,{onClick:onClose}),children]})})]});}return /*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",inset:0,zIndex:typeof zIndex===\"number\"?zIndex:OVERLAY_Z,pointerEvents:open?\"auto\":\"none\"},children:[/*#__PURE__*/_jsx(\"div\",{onClick:onClose,style:{position:\"absolute\",inset:0,pointerEvents:open?\"auto\":\"none\"}}),/*#__PURE__*/_jsx(motion.div,{style:{...center,pointerEvents:\"none\"},initial:{opacity:0},animate:{opacity:open?1:0},transition:{duration:instantNow?0:BD_DUR,ease:EASE_CINE},children:/*#__PURE__*/_jsx(\"div\",{style:{...box,...shift,borderRadius:radius,background:WINDOW_BG.background,backdropFilter:glassBlur,WebkitBackdropFilter:glassBlur}})}),/*#__PURE__*/_jsx(motion.div,{style:{...center,transformOrigin:originStyle,pointerEvents:\"none\"},initial:HIDDEN,animate:open?SHOWN:HIDDEN,transition:instantNow?{duration:0}:SPRING,children:/*#__PURE__*/_jsx(\"div\",{onPointerDown:onPointerDown,style:{...box,...shift,borderRadius:radius,border:edgeToEdge?\"none\":WIN_BORDER,boxShadow:WIN_SHADOW,boxSizing:\"border-box\",pointerEvents:open?\"auto\":\"none\"},children:/*#__PURE__*/_jsxs(\"div\",{ref:boxRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:radius,overflow:\"hidden\",background:background||\"transparent\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(CloseDot,{onClick:onClose}),render?children:null]})})})]}),document.body);}export const AK={// tokens\nKEY_RED,BRIGHT_RED,YELLOW,WIN_RADIUS,WIN_BORDER,WIN_SHADOW,WINDOW_BG,SPRING,HIDDEN,SHOWN,EASE_CINE,BD_DUR,CLOSE_ANIM_MS,OVERLAY_Z,TOP_Z,DESKTOP_MIN,BP_TABLET_MIN,BP_DESKTOP_MIN,CHROME,WINDOWED,FULLSCREEN,INTER,BEBAS,MONT,MONO,// backend\nSUPA,FN,STORAGE,OUTSETA_TOKEN_KEY,PUBLISHABLE_KEY,getToken,fnFetch,pubFetch,// router names\nEVT,RB_EVT,MEMBER_EVT,LOCKED_EVT,// env + hooks\nPOLISH,isBrowser,onCanvas,getLastDown,isNavBack,useIsDesktop,useBoxSize,useBp,useIsPhone,readBp,useWimApp,openApp,openLockedModal,ensureAccess,useAccess,useMe,useSheet,isTouchDevice,// chrome\nCloseDot,CanvasCard,WimWindow,CanvasPreview,canvasView,PREVIEW_CONTROL,usePreview,useCss,useSheetOpen,GEN2_LIVE,isLive,GEN2_NO_G2};\nexport const __FramerMetadata__ = {\"exports\":{\"AK\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{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