@stacksjs/stx 0.2.620 → 0.2.621

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/chunk-0r2g00m7.js +2 -0
  2. package/dist/{chunk-pw2m64jc.js → chunk-18104nfg.js} +1 -1
  3. package/dist/{chunk-w5qgb5jx.js → chunk-29cbmfrc.js} +2 -2
  4. package/dist/{chunk-1ach06sw.js → chunk-39qcn4gt.js} +1 -1
  5. package/dist/{chunk-5bvc0eew.js → chunk-3dd57j7e.js} +1 -1
  6. package/dist/{chunk-wkadjmmh.js → chunk-3h2rpaps.js} +1 -1
  7. package/dist/{chunk-fpzbtrp6.js → chunk-3rmby39r.js} +1 -1
  8. package/dist/{chunk-czv3a49e.js → chunk-3tp481j5.js} +2 -2
  9. package/dist/{chunk-80ath5b7.js → chunk-40fepd2t.js} +1 -1
  10. package/dist/{chunk-qst8ztxa.js → chunk-5wa3ydkf.js} +1 -1
  11. package/dist/{chunk-3wbtbg22.js → chunk-5zzrth32.js} +3 -3
  12. package/dist/{chunk-s01qe842.js → chunk-6jjrvb9v.js} +1 -1
  13. package/dist/{chunk-vtpsns2g.js → chunk-81h6xyna.js} +1 -1
  14. package/dist/{chunk-ttc1fmn4.js → chunk-8xns82s5.js} +1 -1
  15. package/dist/{chunk-91wzaepm.js → chunk-9eejvpqc.js} +2 -2
  16. package/dist/{chunk-k6v0kbnr.js → chunk-9pz3jh7w.js} +1 -1
  17. package/dist/{chunk-vgt56jd0.js → chunk-a39kvc2p.js} +1 -1
  18. package/dist/{chunk-v66yd92a.js → chunk-e030grrq.js} +195 -195
  19. package/dist/{chunk-m6v0zebf.js → chunk-erk7afjv.js} +1 -1
  20. package/dist/{chunk-17fwgkyp.js → chunk-f53x5d7h.js} +1 -1
  21. package/dist/{chunk-erp0v4mb.js → chunk-fmdezmt4.js} +1 -1
  22. package/dist/{chunk-kjck941v.js → chunk-fqwyfx6c.js} +1 -1
  23. package/dist/{chunk-v9qh2bak.js → chunk-fvk33v69.js} +1 -1
  24. package/dist/{chunk-bqy2wpqx.js → chunk-g6mv9vkp.js} +1 -1
  25. package/dist/{chunk-wg4gydcs.js → chunk-g8f1dqx1.js} +1 -1
  26. package/dist/{chunk-fyp6zk1y.js → chunk-hmpzdq4p.js} +1 -1
  27. package/dist/{chunk-hnagpvee.js → chunk-j8vd52sg.js} +1 -1
  28. package/dist/chunk-jh2kve7q.js +2 -0
  29. package/dist/{chunk-m1nb0z16.js → chunk-jwqz8w58.js} +1 -1
  30. package/dist/{chunk-4qdx2nzq.js → chunk-kaz5smvw.js} +1 -1
  31. package/dist/{chunk-xfw2cwhz.js → chunk-kep8q407.js} +1 -1
  32. package/dist/{chunk-w1n3cvay.js → chunk-m0zmexz1.js} +1 -1
  33. package/dist/{chunk-fz5mzzyj.js → chunk-m64w624a.js} +1 -1
  34. package/dist/{chunk-j9adyb0v.js → chunk-pwsg9w5g.js} +1 -1
  35. package/dist/{chunk-a2mmj1e8.js → chunk-qbh3jk5z.js} +1 -1
  36. package/dist/{chunk-z024wwh6.js → chunk-qk4zkvzh.js} +1 -1
  37. package/dist/{chunk-4z4c7smx.js → chunk-rg4zqdbj.js} +1 -1
  38. package/dist/{chunk-6qbkwqc5.js → chunk-rj8fsjx9.js} +1 -1
  39. package/dist/{chunk-230ssxg1.js → chunk-rmc8cg2n.js} +1 -1
  40. package/dist/{chunk-mn3kjerc.js → chunk-tc62pvzg.js} +1 -1
  41. package/dist/{chunk-mstvaxy1.js → chunk-tftnx4vj.js} +1 -1
  42. package/dist/{chunk-pdw9paq5.js → chunk-vddfv082.js} +1 -1
  43. package/dist/{chunk-ka7g44tj.js → chunk-w28sn5g5.js} +1 -1
  44. package/dist/{chunk-gq9m5tmc.js → chunk-wk95x5ym.js} +5 -5
  45. package/dist/chunk-x5cscz50.js +2 -0
  46. package/dist/{chunk-nw3kevzk.js → chunk-x7v3m9nk.js} +1 -1
  47. package/dist/{chunk-ffaw5he6.js → chunk-y3n2cgev.js} +1 -1
  48. package/dist/{chunk-z4ebap7m.js → chunk-zvg2h3wd.js} +1 -1
  49. package/dist/cli.js +7 -7
  50. package/dist/craft-entry.js +1 -1
  51. package/dist/craft.js +1 -1
  52. package/dist/pwa.js +1 -1
  53. package/dist/ssg.js +2 -2
  54. package/dist/utils.js +1 -1
  55. package/package.json +5 -5
  56. package/dist/chunk-0ax8sqvn.js +0 -2
  57. package/dist/chunk-dvhhmk8n.js +0 -2
  58. package/dist/chunk-e59j52hj.js +0 -2
@@ -1,8 +1,8 @@
1
1
  // @bun
2
- import"./chunk-1gtrs8va.js";import"./chunk-10s16tad.js";import"./chunk-sxpnpvt5.js";import{$r,so,aa}from"./chunk-dvbgbd06.js";import"./chunk-66e4ga0z.js";import{Ke,_e,re,Mt,fe,xn,Sn,Ee,dr,n,o}from"./chunk-v66yd92a.js";import"./chunk-x6pz1h3x.js";import"./chunk-khzyc41k.js";import"./chunk-gc1dzxee.js";import"./chunk-hnagpvee.js";import"./chunk-jp6yn9mj.js";import"./chunk-z4te6223.js";import{He}from"./chunk-19bhnbyn.js";import"./chunk-5rtatjwq.js";import"./chunk-m6v0zebf.js";import{us}from"./chunk-kjck941v.js";import"./chunk-n5xbv1a9.js";import{existsSync as ue,mkdirSync as lr,readFileSync as ur}from"fs";import X from"path";import{existsSync as $e,mkdirSync as At,realpathSync as Zn,rmSync as _t}from"fs";import C from"path";import{existsSync as Gn}from"fs";import ee from"path";var Pt="data-stx-b",Xe=new Set(so),Bt=new Set($r);function Dt(r){if(r==="ref"||r==="data-stx-ref")return"ref";if(r.startsWith("::"))return null;if(r.startsWith("@bind:")||r.startsWith("x-bind:"))return"attr";if(r.startsWith("@")||r.startsWith(":")){let e=r.slice(1).split(".")[0];if(Xe.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(aa(e))return"event";if(r.startsWith("@"))return"event";return"attr"}if(r.startsWith("x-")){let e=r.split(".")[0];if(!Bt.has(e))return"attr";let t=e.slice(2);if(t==="cloak"||t==="data"||t==="bind")return null;if(t==="tooltip"||t==="tooltip-position")return null;return Xe.has(t)?t==="if"?"if":t:"attr"}return null}function Lt(r){let e=[];for(let[t,i]of r){let s=Dt(t);if(s)e.push({name:t,value:i,kind:s})}return e}var Vt=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,ge=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function ze(r){let e=[],t=0;return{html:r.replace(Vt,(s,a,c)=>{if(!c||!/[:@]|x-/.test(c))return s;let l=[];ge.lastIndex=0;for(let b=ge.exec(c);b;b=ge.exec(c))l.push([b[1],b[2]??b[3]??b[4]??""]);let f=Lt(l);if(!f.length)return s;let m={id:t++,bindings:f};if(f.some((b)=>b.kind==="for"))m.template=!0;e.push(m);let v=s.endsWith("/>");return`${s.slice(0,v?-2:-1).trimEnd()} ${Pt}="${m.id}"${v?"/>":">"}`}),manifest:{entries:e}}}import dn from"path";function ne(r){let e=r&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(r.trim());if(!e)return;let t=Number(e[1])*(e[2]==="rem"?16:1);return Number.isFinite(t)?t:void 0}function he(r,e){if(!re[r])return;return ne(e?.get(Mt(r))??re[r].value)}function me(r,e){let t=xn[r];if(!t)return;return ne(e?.get(Ee(t))??fe[t]?.value)}function ye(r,e){let t=Sn[r];if(!t)return;let i=ne(e?.get(Ee(t.size))??fe[t.size]?.value),s=ne(e?.get(Ee(t.leading))??fe[t.leading]?.value);if(i===void 0||s===void 0)return;return{fontSize:i,lineHeight:s}}var $t={transparent:"transparent",current:"currentColor",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}},Je={px:1,0:0,0.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},Ue={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128},qe={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function q(r){let e=r.lastIndexOf("/");if(e>0&&!r.endsWith("]")){let i=q(r.slice(0,e)),s=r.slice(e+1),a=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!i||!Number.isFinite(a))return;return jt(i,a/100)}if(r==="transparent")return"transparent";if(r==="current")return"currentColor";if(r==="black")return"#000000";if(r==="white")return"#ffffff";let t=r.split("-");if(t.length===2){let[i,s]=t,a=$t[i];if(a&&typeof a==="object")return a[s]}if(r.startsWith("[")&&r.endsWith("]")){let i=r.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(i)?i:void 0}return}function ve(r){return q(r.trim())}function jt(r,e){if(r==="transparent")return r;let t=r.startsWith("#")?r.slice(1):"";if(t.length===3)t=t.split("").map((s)=>s+s).join("");if(t.length===8)t=t.slice(0,6);if(t.length!==6)return;let i=Math.round(Math.min(1,Math.max(0,e))*255);return`#${t}${i.toString(16).padStart(2,"0")}`}function be(r,e=16){if(!r.startsWith("[")||!r.endsWith("]"))return;let t=r.slice(1,-1),i=Number.parseFloat(t);if(!Number.isFinite(i))return;if(t.endsWith("rem"))return i*16;if(t.endsWith("em"))return i*e;return i}function O(r){if(r.startsWith("[")&&r.endsWith("]")){let e=r.slice(1,-1);if(e.endsWith("%"))return;let t=e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e);return Number.isFinite(t)?t:void 0}return Je[r]??me(r)}function ie(r){let e=/^\[(-?\d*\.?\d+)%\]$/.exec(r);if(e)return`${Number.parseFloat(e[1])}%`;return O(r)}var Ft={flex:(r,e)=>(e.display="flex",!0),hidden:(r,e)=>(e.display="none",!0),grid:(r,e)=>(e.display="grid",!0),"flex-row":(r,e)=>(e.flexDirection="row",!0),"flex-col":(r,e)=>(e.flexDirection="column",!0),"flex-row-reverse":(r,e)=>(e.flexDirection="row-reverse",!0),"flex-col-reverse":(r,e)=>(e.flexDirection="column-reverse",!0),"flex-wrap":(r,e)=>(e.flexWrap="wrap",!0),"flex-nowrap":(r,e)=>(e.flexWrap="nowrap",!0),"flex-wrap-reverse":(r,e)=>(e.flexWrap="wrap-reverse",!0),"flex-1":(r,e)=>(e.flex=1,e.flexGrow=1,e.flexShrink=1,e.flexBasis=0,!0),"flex-auto":(r,e)=>(e.flexGrow=1,e.flexShrink=1,!0),"flex-initial":(r,e)=>(e.flexGrow=0,e.flexShrink=1,!0),"flex-none":(r,e)=>(e.flexGrow=0,e.flexShrink=0,!0),grow:(r,e)=>(e.flexGrow=1,!0),"grow-0":(r,e)=>(e.flexGrow=0,!0),shrink:(r,e)=>(e.flexShrink=1,!0),"shrink-0":(r,e)=>(e.flexShrink=0,!0),"order-first":(r,e)=>(e.order=-9999,!0),"order-last":(r,e)=>(e.order=9999,!0),"order-none":(r,e)=>(e.order=0,!0),"justify-start":(r,e)=>(e.justifyContent="flex-start",!0),"justify-center":(r,e)=>(e.justifyContent="center",!0),"justify-end":(r,e)=>(e.justifyContent="flex-end",!0),"justify-between":(r,e)=>(e.justifyContent="space-between",!0),"justify-around":(r,e)=>(e.justifyContent="space-around",!0),"justify-evenly":(r,e)=>(e.justifyContent="space-evenly",!0),"items-start":(r,e)=>(e.alignItems="flex-start",!0),"items-center":(r,e)=>(e.alignItems="center",!0),"items-end":(r,e)=>(e.alignItems="flex-end",!0),"items-stretch":(r,e)=>(e.alignItems="stretch",!0),"items-baseline":(r,e)=>(e.alignItems="baseline",!0),"self-auto":(r,e)=>(e.alignSelf="auto",!0),"self-start":(r,e)=>(e.alignSelf="flex-start",!0),"self-center":(r,e)=>(e.alignSelf="center",!0),"self-end":(r,e)=>(e.alignSelf="flex-end",!0),"self-stretch":(r,e)=>(e.alignSelf="stretch",!0),"self-baseline":(r,e)=>(e.alignSelf="baseline",!0),"min-w-0":(r,e)=>(e.minWidth=0,!0),"aspect-square":(r,e)=>(e.aspectRatio=1,!0),"inset-0":(r,e)=>(e.top=0,e.right=0,e.bottom=0,e.left=0,!0),"tracking-tighter":(r,e)=>(e.letterSpacing=-0.8,!0),"tracking-tight":(r,e)=>(e.letterSpacing=-0.4,!0),"tracking-normal":(r,e)=>(e.letterSpacing=0,!0),"tracking-wide":(r,e)=>(e.letterSpacing=0.4,!0),"tracking-wider":(r,e)=>(e.letterSpacing=0.8,!0),"tracking-widest":(r,e)=>(e.letterSpacing=1.6,!0),"tabular-nums":()=>!0,block:()=>!0,"inline-flex":(r,e)=>(e.display="flex",!0),truncate:()=>!0,relative:(r,e)=>(e.position="relative",!0),absolute:(r,e)=>(e.position="absolute",!0),"overflow-visible":(r,e)=>(e.overflow="visible",!0),"overflow-hidden":(r,e)=>(e.overflow="hidden",!0),"overflow-scroll":(r,e)=>(e.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-thin":(r,e)=>(e.fontWeight="100",!0),"font-extralight":(r,e)=>(e.fontWeight="200",!0),"font-light":(r,e)=>(e.fontWeight="300",!0),"font-normal":(r,e)=>(e.fontWeight="400",!0),"font-medium":(r,e)=>(e.fontWeight="500",!0),"font-semibold":(r,e)=>(e.fontWeight="600",!0),"font-bold":(r,e)=>(e.fontWeight="bold",!0),"font-extrabold":(r,e)=>(e.fontWeight="800",!0),"font-black":(r,e)=>(e.fontWeight="900",!0),italic:(r,e)=>(e.fontStyle="italic",!0),"not-italic":(r,e)=>(e.fontStyle="normal",!0),"text-left":(r,e)=>(e.textAlign="left",!0),"text-center":(r,e)=>(e.textAlign="center",!0),"text-right":(r,e)=>(e.textAlign="right",!0),"text-justify":(r,e)=>(e.textAlign="justify",!0),uppercase:(r,e)=>(e.textTransform="uppercase",!0),lowercase:(r,e)=>(e.textTransform="lowercase",!0),capitalize:(r,e)=>(e.textTransform="capitalize",!0),"normal-case":(r,e)=>(e.textTransform="none",!0),underline:(r,e)=>(e.textDecorationLine="underline",!0),"line-through":(r,e)=>(e.textDecorationLine="line-through",!0),"no-underline":(r,e)=>(e.textDecorationLine="none",!0)};function Wt(r,e){if(!r.startsWith("bg-"))return!1;let t=r.slice(3),i=q(t);if(i)return e.backgroundColor=i,!0;return!1}function Xt(r,e){if(!r.startsWith("text-"))return!1;let t=r.slice(5),i=ye(t);if(i)return Object.assign(e,i),!0;if(Ue[t])return e.fontSize=Ue[t],!0;if(t.startsWith("[")&&t.endsWith("]")){let a=t.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(a)){let c=a.endsWith("rem")||a.endsWith("em")?Number.parseFloat(a)*16:Number.parseFloat(a);if(Number.isFinite(c))return e.fontSize=c,!0}}let s=q(t);if(s)return e.color=s,!0;return!1}var zt=new Set(["t","tr","r","br","b","bl","l","tl"]);function Ht(r,e){let t=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(r);if(t&&zt.has(t[1]))return e.gradientDirection=`to-${t[1]}`,!0;let i=/^(from|via|to)-(.+)$/.exec(r);if(!i)return!1;let s=q(i[2]);if(!s)return!1;if(i[1]==="from")e.gradientFrom=s;else if(i[1]==="via")e.gradientVia=s;else e.gradientTo=s;return!0}function Ut(r,e){for(let t of["fill","stroke"]){let i=`${t}-`;if(!r.startsWith(i))continue;let s=r.slice(i.length);if(s==="none")return e[t]="none",!0;if(t==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return e.strokeWidth=Number.parseFloat(s),!0;if(t==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return e.strokeWidth=Number.parseFloat(s.slice(1)),!0;let a=q(s);if(a)return e[t]=a,!0}return!1}function qt(r,e){if(r.startsWith("p-")){let t=O(r.slice(2));if(t!==void 0)return e.padding=t,!0}if(r.startsWith("px-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingHorizontal=t,!0}if(r.startsWith("py-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingVertical=t,!0}if(r.startsWith("pt-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingTop=t,!0}if(r.startsWith("pr-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingRight=t,!0}if(r.startsWith("pb-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingBottom=t,!0}if(r.startsWith("pl-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingLeft=t,!0}return!1}function Ye(r,e){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(r)){let t={};if(!Ye(r.slice(1),t))return!1;let i=Object.entries(t);if(i.some(([,s])=>typeof s!=="number"))return!1;for(let[s,a]of i)e[s]=-a;return!0}if(r.startsWith("m-")){let t=O(r.slice(2));if(t!==void 0)return e.margin=t,!0}if(r.startsWith("mx-")){let t=O(r.slice(3));if(t!==void 0)return e.marginHorizontal=t,!0}if(r.startsWith("my-")){let t=O(r.slice(3));if(t!==void 0)return e.marginVertical=t,!0}if(r.startsWith("mt-")){let t=O(r.slice(3));if(t!==void 0)return e.marginTop=t,!0}if(r.startsWith("mr-")){let t=O(r.slice(3));if(t!==void 0)return e.marginRight=t,!0}if(r.startsWith("mb-")){let t=O(r.slice(3));if(t!==void 0)return e.marginBottom=t,!0}if(r.startsWith("ml-")){let t=O(r.slice(3));if(t!==void 0)return e.marginLeft=t,!0}return!1}function Gt(r,e){if(!r.startsWith("w-"))return!1;let t=r.slice(2);if(t==="full")return e.width="100%",!0;if(t==="screen")return e.width="100%",!0;if(t==="auto")return e.width="auto",!0;if(t.includes("/")){let[s,a]=t.split("/"),c=Number.parseInt(s)/Number.parseInt(a)*100;return e.width=`${c}%`,!0}let i=ie(t);if(i!==void 0)return e.width=i,!0;return!1}function Jt(r,e){if(!r.startsWith("h-"))return!1;let t=r.slice(2);if(t==="full")return e.height="100%",!0;if(t==="screen")return e.height="100%",!0;if(t==="auto")return e.height="auto",!0;let i=ie(t);if(i!==void 0)return e.height=i,!0;return!1}function Kt(r,e){if(r==="rounded")return e.borderRadius=qe.DEFAULT,!0;if(!r.startsWith("rounded-"))return!1;let t=r.slice(8);if(t==="")return!1;let i=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(t),s=qe[i[2]]??he(i[2])??be(i[2]);if(s===void 0)return!1;let a={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],tl:["borderTopLeftRadius"],tr:["borderTopRightRadius"],bl:["borderBottomLeftRadius"],br:["borderBottomRightRadius"]};for(let c of i[1]?a[i[1]]:["borderRadius"])e[c]=s;return!0}function Yt(r,e){let t=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(r);if(!t)return!1;let[,i="",s]=t,a=s===void 0?1:Number(s);if(s?.startsWith("[")){let l=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!l)return!1;a=Number(l[1])*(l[2]==="rem"?16:1)}if(!Number.isFinite(a)||a<0)return!1;let c={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let l of c[i])e[l]=a;return!0}function Qt(r,e){if(!r.startsWith("border-"))return!1;let t=r.slice(7),i=q(t);if(i)return e.borderColor=i,!0;return!1}function Zt(r,e){if(!r.startsWith("opacity-"))return!1;let t=Number.parseInt(r.slice(8));if(!Number.isNaN(t))return e.opacity=t/100,!0;return!1}function en(r,e){if(r.startsWith("tracking-[")){let t=be(r.slice(9),typeof e.fontSize==="number"?e.fontSize:16);if(t===void 0)return!1;return e.letterSpacing=t,!0}if(r.startsWith("leading-")){let t=r.slice(8),i=typeof e.fontSize==="number"?e.fontSize:16,s={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},a=t.startsWith("[")?/^\[[\d.]+\]$/.test(t)?Number.parseFloat(t.slice(1,-1))*i:be(t,i):s[t]!==void 0?s[t]*i:Je[t];if(a===void 0||!Number.isFinite(a))return!1;return e.lineHeight=a,!0}return!1}function tn(r,e){let t=/^grid-cols-(\d+)$/.exec(r);if(!t)return!1;return e.gridColumns=Number(t[1]),!0}function nn(r,e){if(!r.startsWith("size-"))return!1;let t=r.slice(5),i=t==="full"?"100%":ie(t);if(i===void 0)return!1;return e.width=i,e.height=i,!0}var rn={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function sn(r,e){let t=/^(min|max)-(w|h)-(.+)$/.exec(r);if(!t)return!1;let[,i,s,a]=t,c=a==="full"||a==="screen"?"100%":a==="none"?void 0:s==="w"&&i==="max"&&rn[a]||ie(a);if(c===void 0&&a!=="none")return!1;let l=`${i}${s==="w"?"Width":"Height"}`;if(c===void 0)delete e[l];else e[l]=c;return!0}function on(r,e){let t=/^(-?)(top|right|bottom|left)-(.+)$/.exec(r);if(!t)return!1;let i=t[3]==="full"?"100%":O(t[3]);if(i===void 0)return!1;return e[t[2]]=typeof i==="number"&&t[1]?-i:i,!0}function an(r,e){let t=/^(-?)translate-(x|y)-(.+)$/.exec(r);if(!t)return!1;let i=t[3],s;if(i.startsWith("[")){let l=/^\[([+-]?(?:\d+\.?\d*|\.\d+))(px|rem|em)?\]$/.exec(i);if(!l)return!1;s=Number(l[1])*(l[2]?.endsWith("em")?16:1)}else s=O(i);if(s===void 0||!Number.isFinite(s))return!1;if(t[1])s=-s;let a=t[2]==="x"?"translateX":"translateY",c=a==="translateX"?{translateX:s}:{translateY:s};return e.transform=[...(e.transform??[]).filter((l)=>!(a in l)),c],!0}function cn(r,e){let t=/^space-(x|y)-(.+)$/.exec(r);if(!t)return!1;let i=O(t[2]);if(i===void 0)return!1;return e.gap=i,!0}function ln(r,e){if(r.startsWith("gap-")){let t=O(r.slice(4));if(t!==void 0)return e.gap=t,!0}if(r.startsWith("gap-x-")){let t=O(r.slice(6));if(t!==void 0)return e.columnGap=t,!0}if(r.startsWith("gap-y-")){let t=O(r.slice(6));if(t!==void 0)return e.rowGap=t,!0}return!1}function un(r,e){let i={"shadow-none":[0,0,0,0],"shadow-xs":[1,1,0.05,1],"shadow-sm":[2,1,0.1,2],shadow:[3,2,0.12,3],"shadow-md":[6,4,0.15,4],"shadow-lg":[10,6,0.18,8],"shadow-xl":[16,10,0.2,12],"shadow-2xl":[24,16,0.25,18]}[r];if(!i)return!1;let[s,a,c,l]=i;return Object.assign(e,{shadowColor:"#000000",shadowOpacity:c,shadowRadius:s,shadowOffset:{width:0,height:a},elevation:l}),!0}function se(r,e){let t=[],i=[],s=[],a=[],c=new Map;function l(g,u){let p=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(g),h=p&&Ke[p[2]];if(h){let S=e?.get(_e(p[2]));return[`${p[1]}-${S===void 0?h[u]:`[${S}]`}${p[3]||""}`]}let w=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(g);if(w&&re[w[2]]){let S=he(w[2],e);return S===void 0?void 0:[`rounded-${w[1]?`${w[1]}-`:""}[${S}px]`]}let N=g.startsWith("text-")?g.slice(5):"";if(Sn[N]){let S=ye(N,e);return S&&[`text-[${S.fontSize}px]`,`leading-[${S.lineHeight}px]`]}for(let S of Object.keys(xn)){if(!g.endsWith(`-${S}`))continue;let d=me(S,e);return d===void 0?void 0:[`${g.slice(0,-S.length)}[${d}px]`]}return[g]}function f(g,u){if(!c.has(g))c.set(g,new Set);return c.get(g).add(u),g}for(let g of r.split(/\s+/).filter(Boolean))if(g.startsWith("dark:")){let u=l(g.slice(5),"dark");if(!u)a.push(g);else i.push(...u.map((p)=>f(p,g)))}else if(!g.includes(":")||g.startsWith("[")){let u=l(g,"light"),p=l(g,"dark");if(!u||!p){a.push(g);continue}if(t.push(...u.map((h)=>f(h,g))),p.join(" ")!==u.join(" "))s.push(...p.map((h)=>f(h,g)))}else a.push(g);let m=[],v=Ge(t,m),y={style:v,unknown:m};if(i.length||s.length)y.dark=Ge([...s,...i],m);if(v.transform&&y.dark?.transform){let g=new Set(y.dark.transform.flatMap((u)=>Object.keys(u)));y.dark.transform=[...v.transform.filter((u)=>!Object.keys(u).some((p)=>g.has(p))),...y.dark.transform]}for(let g of t){if(g==="truncate")y.numberOfLines=1;let u=/^line-clamp-(\d+)$/.exec(g);if(u)y.numberOfLines=Number(u[1]);if(!y.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(g))y.icon=g}let b=m.flatMap((g)=>[...c.get(g)??[g]]);return y.unknown=[...new Set([...b.filter((g)=>!/^line-clamp-\d+$/.test(g)),...a])],y}function Ge(r,e){let t={},i=Array.isArray(r)?r:r.split(/\s+/).filter(Boolean);for(let s of i){if(/^i-[a-z0-9]+-/.test(s))continue;let a=Ft[s];if(a){a("",t);continue}if(un(s,t))continue;if(Ht(s,t))continue;if(Wt(s,t))continue;if(Ut(s,t))continue;if(Xt(s,t))continue;if(qt(s,t))continue;if(Ye(s,t))continue;if(Gt(s,t))continue;if(Jt(s,t))continue;if(Kt(s,t))continue;if(Yt(s,t))continue;if(Qt(s,t))continue;if(Zt(s,t))continue;if(ln(s,t))continue;if(en(s,t))continue;if(nn(s,t))continue;if(sn(s,t))continue;if(tn(s,t))continue;let c=/^order-\[(-?\d+)\]$/.exec(s)??/^order-(-?\d+)$/.exec(s);if(c){t.order=Number(c[1]);continue}if(on(s,t))continue;if(an(s,t))continue;if(cn(s,t))continue;if(e?.push(s),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${s}`)}return t}var Qe=new Map;function Ze(r,e){if(!r)return;let t=r.trim(),i=t.lastIndexOf("-"),s=i===-1?e[t]:e[t.slice(0,i)],a=i===-1?s:s?.[t.slice(i+1)];if(typeof a==="string"&&/^#[\da-f]{3,8}$/i.test(a))return a;return ve(t)??ve(`[${t}]`)}function fn(r){let e=r.roles??{},t=r.shapes??{},i=r.density??{},s={...r.theme?.colors,...r.theme?.extend?.colors},a=[],c=[];for(let[l,f]of Object.entries(e)){if(!Ke[l])continue;let m=Ze(typeof f==="string"?f:f?.light,s),v=Ze(typeof f==="string"?f:f?.dark,s);if(m)a.push(`${_e(l)}: ${m};`);if(v)c.push(`${_e(l)}: ${v};`)}for(let[l,f]of Object.entries(t))if(re[l])a.push(`${Mt(l)}: ${f};`);for(let[l,f]of Object.entries(i))if(fe[l])a.push(`${Ee(l)}: ${f};`);return[a.length?`:root { ${a.join(" ")} }`:"",c.length?`.dark { ${c.join(" ")} }`:""].filter(Boolean).join(`
3
- `)}async function pn(r){let{resolveUserCssConfig:e}=await import("./chunk-mn3kjerc.js"),t=await e(r);return t?fn(t):""}function et(r){let e=dn.resolve(r),t=Qe.get(e);if(!t)t=pn(e).catch(()=>""),Qe.set(e,t);return t}var nt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},tt={alert:"alert",button:"button",checkbox:"checkbox",combobox:"combobox",header:"header",heading:"header",image:"image",img:"image",link:"link",menu:"menu",menubar:"menubar",menuitem:"menuitem",none:"none",presentation:"none",progressbar:"progressbar",radio:"radio",scrollbar:"scrollbar",search:"search",searchbox:"search",slider:"adjustable",spinbutton:"spinbutton",switch:"switch",tab:"tab",tablist:"tablist",timer:"timer",toolbar:"toolbar"};function gn(r){return r==="role"||r==="aria-label"||r==="aria-valuetext"||r in nt}function hn(r,e){if(e===void 0||e===null)return;let t=String(e).trim().toLowerCase();if(t==="mixed")return r==="aria-checked"?"mixed":!0;if(t==="undefined")return;return t===""||t==="true"}function mn(r){if(r===void 0||r===null)return null;for(let e of String(r).trim().toLowerCase().split(/\s+/))if(tt[e])return tt[e];return null}function yn(r,e,t){if(r==="aria-label")return{accessibilityLabel:e===void 0||e===null||e===""?null:String(e)};if(r==="aria-valuetext")return{accessibilityValue:e===void 0||e===null||e===""?null:String(e)};if(r==="role")return{accessibilityRole:mn(e)};let i=nt[r];if(!i)return;let s=t.accessibilityState,a=s&&typeof s==="object"?{...s}:{},c=hn(r,e);if(c===void 0)delete a[i];else a[i]=c;return{accessibilityState:Object.keys(a).length?a:null}}function bn(r){let e=r.accessibilityState&&typeof r.accessibilityState==="object"?r.accessibilityState:void 0,t={};for(let[s,a]of Object.entries(r)){if(!gn(s))continue;let c=yn(s,a,t);if(c)Object.assign(t,c)}for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(r[s]===void 0&&t[s]!==void 0&&t[s]!==null)r[s]=t[s];let i=t.accessibilityState;if(i)r.accessibilityState={...i,...e}}var we=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function Se(r){let e={...r};return bn(e),Object.fromEntries(we.filter((t)=>(t in e)).map((t)=>[t,e[t]]))}var Ne={"region-change-complete":"onRegionChangeComplete",regionchangecomplete:"onRegionChangeComplete",click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",onchange:"onChange",change:"onValueChange","value-change":"onValueChange",valuechange:"onValueChange",focus:"onFocus",focusin:"onFocus",blur:"onBlur",focusout:"onBlur",submit:"onSubmitEditing","submit-editing":"onSubmitEditing",submitediting:"onSubmitEditing","end-editing":"onEndEditing",endediting:"onEndEditing",scroll:"onScroll","scroll-begin-drag":"onScrollBeginDrag",scrollbegindrag:"onScrollBeginDrag","scroll-end-drag":"onScrollEndDrag",scrollenddrag:"onScrollEndDrag","momentum-scroll-begin":"onMomentumScrollBegin",momentumscrollbegin:"onMomentumScrollBegin","momentum-scroll-end":"onMomentumScrollEnd",momentumscrollend:"onMomentumScrollEnd",refresh:"onRefresh",layout:"onLayout","end-reached":"onEndReached",endreached:"onEndReached",close:"onRequestClose","request-close":"onRequestClose",requestclose:"onRequestClose",show:"onShow",dismiss:"onDismiss","sliding-complete":"onSlidingComplete",slidingcomplete:"onSlidingComplete","load-start":"onLoadStart",loadstart:"onLoadStart",load:"onLoad","load-end":"onLoadEnd",loadend:"onLoadEnd",error:"onError",play:"onPlay",playing:"onPlay",pause:"onPause",ended:"onEnd",end:"onEnd",timeupdate:"onProgress",progress:"onProgress",loadedmetadata:"onLoad",enterpictureinpicture:"onPictureInPictureStart",leavepictureinpicture:"onPictureInPictureStop"};var ke={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText"},Te=new Set(Object.values(ke));var st=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),ot=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight"];function D(r){let e=typeof r==="number"?r:Number.parseFloat(String(r??""));return Number.isFinite(e)?e:0}function J(r){return Math.round(r*1000)/1000}function Re(r){if(Array.isArray(r)&&r.length===4&&r.every((t)=>Number.isFinite(Number(t))))return r.map(Number);let e=String(r??"").trim().split(/[\s,]+/).map(Number);if(e.length!==4||e.some((t)=>!Number.isFinite(t))||e[2]<=0||e[3]<=0)return null;return e}function vn(r){let e=String(r??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return e.length%2?e.slice(0,-1):e}var rt=/[MLHVCSQTAZ]/i,xe=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function wn(r){let e=[],t=r,i=rt.exec(t);while(i){let s=i.index;t=t.slice(s);let a=t[0];t=t.slice(1);let c=rt.exec(t),l=c?t.slice(0,c.index):t,f;if(a==="A"||a==="a"){f=[];let m=0,v=l.trim(),y=0;while(y<v.length){let b=m%7,g=v.slice(y).replace(/^[\s,]+/,"");if(y=v.length-g.length,!g)break;if(b===3||b===4)f.push(g[0]==="1"?1:0),y+=1;else{xe.lastIndex=0;let u=xe.exec(g);if(!u||u.index!==0)break;f.push(Number.parseFloat(u[0])),y+=u[0].length}m++}}else f=(l.match(xe)||[]).map(Number.parseFloat);e.push({command:a,args:f}),i=c}return e}function Nn(r,e,t,i,s,a,c,l,f){if(r===l&&e===f)return[];let m=Math.abs(t),v=Math.abs(i);if(!m||!v)return[1,l,f];let y=s*Math.PI/180,b=Math.cos(y),g=Math.sin(y),u=(r-l)/2,p=(e-f)/2,h=b*u+g*p,w=-g*u+b*p,N=h*h/(m*m)+w*w/(v*v);if(N>1)m*=Math.sqrt(N),v*=Math.sqrt(N);let S=m*m*v*v-m*m*w*w-v*v*h*h,d=m*m*w*w+v*v*h*h,x=Math.sqrt(Math.max(0,S/d));if(a===c)x=-x;let A=x*(m*w)/v,F=x*-(v*h)/m,k=b*A-g*F+(r+l)/2,L=g*A+b*F+(e+f)/2,P=(M,j,V,Y)=>{let de=M*Y-j*V<0?-1:1,pe=(M*V+j*Y)/(Math.hypot(M,j)*Math.hypot(V,Y));return de*Math.acos(Math.min(1,Math.max(-1,pe)))},T=P(1,0,(h-A)/m,(w-F)/v),_=P((h-A)/m,(w-F)/v,(-h-A)/m,(-w-F)/v);if(!c&&_>0)_-=2*Math.PI;if(c&&_<0)_+=2*Math.PI;let I=Math.max(1,Math.ceil(Math.abs(_)/(Math.PI/2))),E=_/I,R=1.3333333333333333*Math.tan(E/4),B=[],H=(M)=>{let j=m*Math.cos(M),V=v*Math.sin(M);return[b*j-g*V+k,g*j+b*V+L]},U=(M)=>{let j=-m*Math.sin(M),V=v*Math.cos(M);return[b*j-g*V,g*j+b*V]},W=T;for(let M=0;M<I;M++){let j=W+E,[V,Y]=H(W),[de,pe]=U(W),[Fe,We]=H(j),[Ct,Ot]=U(j);B.push(2,V+R*de,Y+R*pe,Fe-R*Ct,We-R*Ot,M===I-1?l:Fe,M===I-1?f:We),W=j}return B}function kn(r){let e=[],t=0,i=0,s=0,a=0,c=0,l=0,f=0,m=0,v="";for(let{command:y,args:b}of wn(String(r??""))){let g=y===y.toLowerCase(),u=y.toUpperCase(),p=()=>g?t:0,h=()=>g?i:0,w=0,N=(d)=>{if(w+d>b.length)return null;let x=b.slice(w,w+d);return w+=d,x};if(u==="Z"){e.push(4),t=s,i=a,v="Z";continue}let S=!0;while(w<b.length||S&&u==="Z"){switch(u){case"M":{let d=N(2);if(!d)return e;if(t=d[0]+p(),i=d[1]+h(),S)e.push(0,t,i),s=t,a=i;else e.push(1,t,i);v=S?"M":"L";break}case"L":{let d=N(2);if(!d)return e;t=d[0]+p(),i=d[1]+h(),e.push(1,t,i),v="L";break}case"H":{let d=N(1);if(!d)return e;t=d[0]+p(),e.push(1,t,i),v="L";break}case"V":{let d=N(1);if(!d)return e;i=d[0]+h(),e.push(1,t,i),v="L";break}case"C":{let d=N(6);if(!d)return e;let x=d[0]+p(),A=d[1]+h();c=d[2]+p(),l=d[3]+h(),t=d[4]+p(),i=d[5]+h(),e.push(2,x,A,c,l,t,i),v="C";break}case"S":{let d=N(4);if(!d)return e;let x=v==="C"?2*t-c:t,A=v==="C"?2*i-l:i;c=d[0]+p(),l=d[1]+h(),t=d[2]+p(),i=d[3]+h(),e.push(2,x,A,c,l,t,i),v="C";break}case"Q":{let d=N(4);if(!d)return e;f=d[0]+p(),m=d[1]+h(),t=d[2]+p(),i=d[3]+h(),e.push(3,f,m,t,i),v="Q";break}case"T":{let d=N(2);if(!d)return e;f=v==="Q"?2*t-f:t,m=v==="Q"?2*i-m:i,t=d[0]+p(),i=d[1]+h(),e.push(3,f,m,t,i),v="Q";break}case"A":{let d=N(7);if(!d)return e;let x=d[5]+p(),A=d[6]+h();e.push(...Nn(t,i,d[0],d[1],d[2],d[3],d[4],x,A)),t=x,i=A,v="A";break}default:return e}S=!1}}return e.map((y)=>J(y))}function it(r,e,t,i){if(t<=0||i<=0)return[];let s=0.5522847498;return[0,r+t,e,2,r+t,e+s*i,r+s*t,e+i,r,e+i,2,r-s*t,e+i,r-t,e+s*i,r-t,e,2,r-t,e-s*i,r-s*t,e-i,r,e-i,2,r+s*t,e-i,r+t,e-s*i,r+t,e,4].map(J)}function Ae(r,e){switch(r){case"Path":return kn(String(e.d??""));case"Line":return[0,D(e.x1),D(e.y1),1,D(e.x2),D(e.y2)].map(J);case"Rect":{let t=D(e.x),i=D(e.y),s=D(e.width),a=D(e.height);if(s<=0||a<=0)return[];let c=e.rx===void 0?D(e.ry):D(e.rx),l=e.ry===void 0?c:D(e.ry);if(c=Math.min(Math.max(0,c),s/2),l=Math.min(Math.max(0,l),a/2),!c||!l)return[0,t,i,1,t+s,i,1,t+s,i+a,1,t,i+a,4].map(J);let f=0.5522847498;return[0,t+c,i,1,t+s-c,i,2,t+s-c+f*c,i,t+s,i+l-f*l,t+s,i+l,1,t+s,i+a-l,2,t+s,i+a-l+f*l,t+s-c+f*c,i+a,t+s-c,i+a,1,t+c,i+a,2,t+c-f*c,i+a,t,i+a-l+f*l,t,i+a-l,1,t,i+l,2,t,i+l-f*l,t+c-f*c,i,t+c,i,4].map(J)}case"Circle":return it(D(e.cx),D(e.cy),D(e.r),D(e.r));case"Ellipse":return it(D(e.cx),D(e.cy),D(e.rx),D(e.ry));case"Polyline":case"Polygon":{let t=vn(e.points);if(t.length<4)return[];let i=[0,t[0],t[1]];for(let s=2;s<t.length;s+=2)i.push(1,t[s],t[s+1]);if(r==="Polygon")i.push(4);return i.map(J)}default:return null}}var Tn=[...ot,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoComplete","autoCorrect","autoFocus","contentContainerStyle","currentTime","defaultSource","defaultValue","ellipsizeMode","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","ios_backgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","listRole","maxLength","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","nonModal","dismissOnOutsideTap","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","stickyHeaderIndices","testID","textContentType","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize","initialRegion","tileOverlay","edgePadding","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","mapType","fillColor","strokeColor","pinColor","showsCompass","showsScale","cameraPitch","cameraHeading","autoScrollBottom","scrollKey","pictureInPicture","transitionID"],at=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","editable","hidesWhenStopped","horizontal","loop","multiline","muted","pagingEnabled","paused","refreshing","scrollEnabled","secureTextEntry","selectTextOnFocus","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","transparent","visible","nonModal","dismissOnOutsideTap","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","showsCompass","showsScale","pictureInPicture"]),Rn=new Map(Tn.map((r)=>[ct(r),r]));function ct(r){return r.replace(/[-_]/g,"").toLowerCase()}function Ie(r){return Rn.get(ct(r))??r}var An={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",map:"Map",mappolyline:"MapPolyline",mappolygon:"MapPolygon",mapmarker:"MapMarker",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",checkbox:"Checkbox",slider:"Slider",picker:"Picker",select:"Picker",loading:"ActivityIndicator",spinner:"ActivityIndicator",div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",a:"TouchableOpacity",section:"View",article:"View",header:"SafeAreaView",footer:"View",main:"View",nav:"View",aside:"View",form:"View",label:"Text",fieldset:"View",legend:"Text",option:"Text",dialog:"Modal",figure:"View",figcaption:"Text",picture:"View",hr:"View",ul:"View",ol:"View",li:"View",dl:"View",dt:"Text",dd:"Text",table:"View",thead:"View",tbody:"View",tfoot:"View",tr:"View",th:"Text",td:"Text",caption:"Text",strong:"Text",b:"Text",em:"Text",i:"Text",u:"Text",s:"Text",small:"Text",mark:"Text",abbr:"Text",time:"Text",code:"Text",kbd:"Text",samp:"Text",pre:"Text",blockquote:"Text",cite:"Text",q:"Text",sub:"Text",sup:"Text"};function lt(r){return An[r.toLowerCase()]||r}var _n={activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",archive:"archivebox",armchair:"sofa","arrow-down":"arrow.down","arrow-left":"arrow.left","arrow-right":"arrow.right","arrow-up":"arrow.up","arrow-up-right":"arrow.up.right","at-sign":"at","audio-lines":"waveform",award:"rosette",backpack:"backpack","badge-check":"checkmark.seal","badge-x":"xmark.seal",ban:"nosign","bar-chart":"chart.bar","bar-chart-2":"chart.bar","bar-chart-3":"chart.bar",battery:"battery.100","battery-charging":"battery.100.bolt",bed:"bed.double",bell:"bell","bell-off":"bell.slash","bell-ring":"bell.and.waves.left.and.right",bike:"figure.outdoor.cycle",blocks:"square.grid.2x2",bluetooth:"antenna.radiowaves.left.and.right",book:"book","book-open":"book",bookmark:"bookmark",box:"shippingbox",brain:"brain",building:"building","building-2":"building.2",cable:"cable.connector",calendar:"calendar","calendar-check":"calendar.badge.checkmark","calendar-clock":"calendar.badge.clock","calendar-days":"calendar","calendar-minus":"calendar.badge.minus","calendar-minus-2":"calendar.badge.minus","calendar-off":"calendar.badge.exclamationmark","calendar-plus":"calendar.badge.plus","calendar-range":"calendar","calendar-sync":"arrow.triangle.2.circlepath","calendar-x":"calendar.badge.exclamationmark","calendar-x-2":"calendar.badge.exclamationmark",camera:"camera","chart-bar":"chart.bar","chart-column":"chart.bar","chart-line":"chart.xyaxis.line","chart-no-axes-gantt":"chart.bar.doc.horizontal",check:"checkmark","check-circle":"checkmark.circle","check-circle-2":"checkmark.circle","chevron-down":"chevron.down","chevron-left":"chevron.left","chevron-right":"chevron.right","chevron-up":"chevron.up",circle:"circle","circle-alert":"exclamationmark.circle","circle-arrow-out-up-left":"arrow.uturn.backward.circle","circle-minus":"minus.circle","circle-arrow-down":"arrow.down.circle","circle-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-dot":"smallcircle.filled.circle","circle-help":"questionmark.circle","circle-play":"play.circle","circle-plus":"plus.circle","circle-user":"person.crop.circle","circle-x":"xmark.circle",clapperboard:"film",clipboard:"clipboard","clipboard-list":"list.clipboard",clock:"clock","clock-12":"clock","clock-2":"clock","clock-3":"clock","clock-4":"clock","clock-8":"clock",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",copy:"doc.on.doc","credit-card":"creditcard",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",dumbbell:"dumbbell",edit:"pencil","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal","hand-fist":"hand.raised",heart:"heart","heart-off":"heart.slash","heart-pulse":"heart.text.square","help-circle":"questionmark.circle",history:"clock.arrow.circlepath",home:"house",hourglass:"hourglass",house:"house","id-card":"person.text.rectangle",image:"photo",inbox:"tray",info:"info.circle",layers:"square.3.layers.3d","layout-dashboard":"rectangle.3.group","layout-grid":"square.grid.2x2",leaf:"leaf",library:"books.vertical",link:"link",list:"list.bullet","list-checks":"checklist",loader:"arrow.triangle.2.circlepath","loader-2":"arrow.triangle.2.circlepath","loader-circle":"arrow.triangle.2.circlepath",lock:"lock","log-in":"arrow.right.to.line","log-out":"rectangle.portrait.and.arrow.right",mail:"envelope",map:"map","map-pin":"mappin.and.ellipse",medal:"medal",megaphone:"megaphone",menu:"line.3.horizontal","message-circle":"bubble.left","message-square":"text.bubble","message-square-quote":"quote.bubble",mic:"mic",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",package:"shippingbox",pause:"pause","pause-circle":"pause.circle",pencil:"pencil","person-standing":"figure.walk",phone:"phone",play:"play.fill",plug:"powerplug",plus:"plus","plus-circle":"plus.circle","rectangle-horizontal":"rectangle","refresh-cw":"arrow.clockwise",repeat:"repeat","rotate-ccw":"arrow.counterclockwise",route:"point.topleft.down.to.point.bottomright.curvepath",ruler:"ruler",sailboat:"sailboat",satellite:"antenna.radiowaves.left.and.right",save:"square.and.arrow.down",scale:"scalemass","scan-line":"barcode.viewfinder",search:"magnifyingglass",send:"paperplane",settings:"gearshape","settings-2":"slider.horizontal.3",share:"square.and.arrow.up","share-2":"square.and.arrow.up",shield:"shield","shield-check":"checkmark.shield","shopping-bag":"bag","shopping-cart":"cart",shuffle:"shuffle","skip-back":"backward.end","skip-forward":"forward.end",sliders:"slider.horizontal.3","sliders-horizontal":"slider.horizontal.3",smartphone:"iphone",snowflake:"snowflake",sparkles:"sparkles",sprout:"leaf",square:"square",star:"star",stopwatch:"stopwatch",store:"storefront","stretch-horizontal":"rectangle.split.1x2",sun:"sun.max",sunrise:"sunrise",sunset:"sunset",tag:"tag",target:"scope",thermometer:"thermometer.medium","thumbs-up":"hand.thumbsup",timer:"timer",trash:"trash","trash-2":"trash","trending-down":"chart.line.downtrend.xyaxis","trending-up":"chart.line.uptrend.xyaxis","triangle-alert":"exclamationmark.triangle",trophy:"trophy",unlink:"personalhotspot.slash",upload:"arrow.up.circle",user:"person","user-check":"person.crop.circle.badge.checkmark","user-minus":"person.badge.minus","user-plus":"person.badge.plus","user-round":"person","user-round-check":"person.crop.circle.badge.checkmark","user-round-minus":"person.crop.circle.badge.minus","user-round-plus":"person.crop.circle.badge.plus","user-round-x":"person.crop.circle.badge.xmark","user-x":"person.crop.circle.badge.xmark",users:"person.2","users-round":"person.2",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function Ce(r,e=!1){let t=String(r??"").trim();if(!t)return{symbol:"circle",known:!1};if(e)return{symbol:t,known:!0};let i=/^i-([a-z0-9]+)-(.+)$/.exec(t)??/^([a-z0-9]+):(.+)$/.exec(t),s=i?i[1]:"lucide",a=i?i[2]:t;if(s==="lucide"){let c=_n[a];if(c)return{symbol:c,iconify:`i-lucide-${a}`,known:!0};if(!i&&t.includes("."))return{symbol:t,known:!0}}return{symbol:"circle",iconify:i?t:`i-lucide-${a}`,known:!1}}var dt=/^--[\w\u0080-\uFFFF-]+$/u;function ut(r,e){if(!/var\(/i.test(r))return r;let t="",i="",s=!1;for(let a=0;a<r.length;a++){let c=r[a];if(c==="\\"){t+=r.slice(a,a+2),a++;continue}if(i){if(t+=c,c===i)i="";continue}if(c==='"'||c==="'"){i=c,t+=c;continue}if(r.slice(a,a+4).toLowerCase()!=="var("||a>0&&/[\w-]/.test(r[a-1])){t+=c;continue}let l=1,f=-1,m="",v=a+4;for(;v<r.length;v++){let g=r[v];if(g==="\\"){v++;continue}if(m){if(g===m)m="";continue}if(g==='"'||g==="'"){m=g;continue}if(g==="(")l++;if(g===")"&&--l===0)break;if(g===","&&l===1&&f===-1)f=v}if(l!==0)return;let y=r.slice(a+4,f===-1?v:f).trim();if(!dt.test(y))return;let b=e(y,f===-1?void 0:r.slice(f+1,v).trim());if(b===void 0||t.length+b.length>65536)return;t+=b,s=!0,a=v}return s&&t.length>65536?void 0:t}function Q(r,e){let t=new Map,i=new Set;for(let[p,h]of r){let w=p.trim();if(!dt.test(w))continue;if(typeof h==="string"||typeof h==="number"&&Number.isFinite(h))t.set(w,String(h).trim())}let s=new Map,a=new Set;for(let[p,h]of t){let w=new Set,N=(S,d=0)=>d>64?void 0:ut(S,(x,A)=>(w.add(x),A===void 0?"":N(A,d+1)));if(N(h)===void 0)a.add(p);s.set(p,w)}let c=new Map,l=new Map,f=[],m=new Set,v=0;function y(p,h=0){if(h>64){a.add(p);return}c.set(p,v),l.set(p,v++),f.push(p),m.add(p);for(let S of s.get(p)??[]){if(!t.has(S))continue;if(!c.has(S)){if(y(S,h+1),l.has(S))l.set(p,Math.min(l.get(p),l.get(S)))}else if(m.has(S))l.set(p,Math.min(l.get(p),c.get(S)))}if(l.get(p)!==c.get(p))return;let w=[],N;do N=f.pop(),m.delete(N),w.push(N);while(N!==p);if(w.length>1||s.get(p)?.has(p))w.forEach((S)=>a.add(S))}for(let p of t.keys())if(!c.has(p))y(p);let b=new Map;function g(p,h){if(i.add(p),b.has(p))return b.get(p);let w=t.get(p),N=w===void 0||/^(?:inherit|unset)$/i.test(w)?e?.get(p):a.has(p)||/^(?:initial|revert|revert-layer)$/i.test(w)?void 0:u(w,h+1);return b.set(p,N),N}function u(p,h=0){if(h>64)return;return ut(p,(w,N)=>g(w,h)??(N===void 0?void 0:u(N,h+1)))}return{resolve:u,used:i,computed(){let p=new Map(e);for(let h of t.keys())p.set(h,g(h,0));return p}}}function Oe(r){if(r.display==="flex"&&r.flexDirection==null)return{...r,flexDirection:"row"};return r}var ft=new Set(["display","gridColumns","gridTemplateColumns","gridTemplateRows","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","order","justifyContent","alignItems","alignSelf","alignContent","position","top","right","bottom","left","zIndex","width","height","minWidth","maxWidth","minHeight","maxHeight","aspectRatio","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderStyle","backgroundColor","backgroundImage","opacity","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","color","fontSize","fontWeight","fontStyle","fontFamily","lineHeight","letterSpacing","textAlign","textDecorationLine","textDecorationColor","textTransform","resizeMode","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),En=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","order","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing","strokeWidth"]),pt=new Set(["top","right","bottom","left","width","height","minWidth","maxWidth","minHeight","maxHeight","flexBasis","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical"]),In=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,Cn=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,On=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),Pn=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function Bn(r){if(typeof r!=="string")return r;let e=Cn.exec(r);return e?Number(e[1])*(/^r?em$/i.test(e[2]||"")?16:1):r}function K(r){return typeof r==="number"&&Number.isFinite(r)}function Mn(r,e){if(r==="shadowOffset"&&e&&typeof e==="object"&&!Array.isArray(e)){let{width:t,height:i}=e;return K(t)&&K(i)?{width:t,height:i}:void 0}if(r==="transform"&&Array.isArray(e)){let t=[];for(let i of e){if(!i||typeof i!=="object"||Array.isArray(i)||Object.keys(i).length!==1)return;let[s,a]=Object.entries(i)[0];if(Pn.has(s)&&K(a))t.push({[s]:a});else if(On.has(s)&&typeof a==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(a))t.push({[s]:a});else return}return t}return}function Dn(r){let e=[],t=0,i=0,s="";for(let a=0;a<=r.length;a++){let c=r[a];if(c==="\\"){a++;continue}if(s){if(c===s)s="";continue}if(c==='"'||c==="'"){s=c;continue}if(c==="(")i++;if(c===")")i=Math.max(0,i-1);if(a!==r.length&&(c!==";"||i))continue;let l=r.slice(t,a),f=l.indexOf(":");if(f!==-1)e.push([l.slice(0,f).trim(),l.slice(f+1).trim()]);t=a+1}return e}function Ln(r,e){let t;if(typeof r==="string"){if(r=r.trim(),!r)return[];try{r=JSON.parse(r)}catch{}}if(typeof r==="string")t=Dn(r);else if(r&&typeof r==="object"&&!Array.isArray(r))t=Object.entries(r);else{if(r!=null&&r!==!1)e({kind:"non-numeric-style",name:"style"});return[]}return t}function gt(r,e=()=>{},t={}){let i=Ln(r,e),s=Q(i,t.inheritedVariables);return t.onVariables?.(s.computed()),Vn(i,s,e)}function Vn(r,e,t){let i={},s=[];for(let[a,c]of r){if(a.trim().startsWith("--")){s.push(a.trim());continue}let l=ft.has(a)||a.trim().startsWith("--")?a:a.trim().toLowerCase().replace(/-([a-z])/g,(v,y)=>y.toUpperCase());if(!ft.has(l)){t({kind:"unknown-style",name:l});continue}if(c==null||c==="")continue;let f=typeof c==="string"?e.resolve(c.trim()):c;if(f===void 0){t({kind:"non-numeric-style",name:l});continue}if(f==="")continue;let m;if(En.has(l)||pt.has(l)){if(m=Bn(f),!K(m)&&!(pt.has(l)&&typeof m==="string"&&m.endsWith("%")&&In.test(m.slice(0,-1))&&Number.isFinite(Number(m.slice(0,-1)))))m=void 0}else if(l==="display"&&f==="inline-flex")m="flex";else if(l==="shadowOffset"||l==="transform")m=Mn(l,f);else if(l==="gridTemplateColumns"||l==="gridTemplateRows")m=K(f)||typeof f==="string"?f:void 0;else if(l==="fontWeight"&&K(f))m=String(f);else if(typeof f==="string")m=f;if(m===void 0)t({kind:"non-numeric-style",name:l});else i[l]=m}for(let a of s)if(!e.used.has(a))t({kind:"unknown-style",name:a});return i}import{generate as Z,parse as ht}from"@stacksjs/ts-css/parse";async function mt(r,e){let t={light:new Map,dark:new Map},i=new Set,s=(y)=>{if(!i.has(y))i.add(y),e(y)},a=(y,b,g)=>{for(let u of g){let p=t[u].get(y);if(!p||Number(b.important)>Number(p.important)||b.important===p.important&&b.specificity>=p.specificity)t[u].set(y,b)}},c=(y)=>{if(y.type==="Declaration")return y.property.startsWith("--");if(y.type==="Rule"||y.type==="Atrule")return!!y.block&&[...y.block.children].some(c);return!1},l=(y)=>{let b=y.replace(/\s+/g,"").toLowerCase();if(!b||b==="all"||b==="screen")return["light","dark"];let g=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(b);return g?[g[1]]:void 0};function f(y,b){for(let g of y){if(!c(g))continue;if(g.type==="Atrule"){let p=g.prelude?Z(g.prelude):"",h=g.name.toLowerCase()==="media"?l(p):void 0;if(!h){s(`@${g.name} ${p}`.trim());continue}f(g.block.children,b.filter((w)=>h.includes(w)));continue}if(g.type!=="Rule")continue;let u=g.prelude.type==="SelectorList"?[...g.prelude.children].map(Z):[Z(g.prelude)];for(let p of u){let h=/^(html|:root)?(?:\.(dark|light))?$/.exec(p.trim());if(!h||!h[1]&&!h[2]){s(p);continue}let w=(h[1]===":root"?10:h[1]?1:0)+(h[2]?10:0);for(let N of g.block.children){if(N.type!=="Declaration"){if(c(N))s(`nested rule in ${p}`);continue}if(!N.property.startsWith("--"))continue;let S={value:Z(N.value),important:!!N.important,specificity:w};a(N.property,S,b.filter((d)=>!h[2]||h[2]===d))}}}}let m="",v;return await new HTMLRewriter().on("html",{element(y){let b=y.getAttribute("style");if(!b)return;try{let g=ht(b,{context:"declarationList"});if(g.type!=="DeclarationList")return;for(let u of g.children)if(u.type==="Declaration"&&u.property.startsWith("--"))a(u.property,{value:Z(u.value),important:!!u.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(y){m="";let b=y.getAttribute("type");v=!b||b.toLowerCase()==="text/css"?l(y.getAttribute("media")??""):void 0,y.onEndTag(()=>{try{let g=ht(m);if(g.type!=="StyleSheet")return;if(!v){if([...g.children].some(c))s("style type/media");return}f(g.children,v)}catch{s("invalid stylesheet")}})},text(y){m+=y.text}}).transform(new Response(r)).text(),{light:[...t.light].map(([y,b])=>[y,b.value]),dark:[...t.dark].map(([y,b])=>[y,b.value])}}function z(r,e={},t={},i={},s=[]){return{type:r,props:e,style:t,events:i,children:s}}function yt(r,e,t={}){return{version:"1.0.0",root:r,script:e,meta:{source:t.source||"unknown",compiledAt:t.compiledAt||Date.now(),headwindConfig:t.headwindConfig}}}var bt=new Set(["script","style","head","meta","link","title","base","noscript"]),vt=new Set(["template","body","html","main","fragment"]),oe=new Set,$n=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),Pe=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...Te]),jn=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),wt=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Fn={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function G(r){return r.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,t)=>{let i=Fn[t.toLowerCase()];if(i!==void 0)return i;if(t[0]==="#"){let s=t[1]==="x"||t[1]==="X"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):e}return e})}function St(r,e,t,i={}){let s=i.inheritedVariables,a={},c={},l={},f="",m={};for(let[b,g]of e){let u=b.toLowerCase();if(u==="class"||u==="classname"){f=f?`${f} ${g}`:g;continue}if(u==="style"){m={...m,...Wn(r,g,t,{...i,onVariables(w){s=w,i.onVariables?.(w)}})};continue}if(u.startsWith(":")||u.startsWith("x-")&&u!=="x-cloak"){l[u.startsWith(":")?u.slice(1):u.slice(2)]=G(g);continue}if(u==="x-cloak")continue;if(u.startsWith("@")||u.startsWith("v-on:")){let w=u.startsWith("@")?u.slice(1):u.slice(5),[N]=w.split("."),S=Ne[N]??(N.startsWith("on")?N:"");if(!S||!$n.has(S)){t.push({kind:"unread-event",tag:r,name:b});continue}c[S]=G(g);continue}if(u==="key"){a.key=g;continue}let p=G(g),h=Ie(b);if(p===""&&at.has(h)){a[h]=!0;continue}try{a[h]=JSON.parse(p)}catch{a[h]=p}}let v=f?se(f,s):void 0;for(let b of new Set(v?.unknown??[]))t.push({kind:"unknown-class",tag:r,name:b});let y=Oe({...v?.style,...m});return{props:a,style:y,events:c,bindings:l,classes:f,inline:m}}function Wn(r,e,t,i){return gt(G(e),(s)=>t.push({...s,tag:r}),i)}function Be(r){return r.children.map((e)=>typeof e==="string"?e:Be(e)).join("").replace(/\s+/g," ").trim()}function Xn(r,e){let t=r.node,i=t.children.filter((a)=>typeof a!=="string"),s=t.children.filter((a)=>typeof a==="string").join("").trim();if(r.tag==="button"&&t.type==="Button"&&!r.declaredNative&&i.length>0)return t.type="Pressable",t.props.role??="button",t.children=t.children.flatMap((a)=>typeof a==="string"?a.trim()?[z("Text",{},{},{},[a.trim()])]:[]:[a]),t;if(t.type==="Button"&&i.length===0)return t.children=s?[s]:[],t;if(t.type==="Svg"||t.type==="G")return t.children=i,t;if(t.type==="SvgText"){let a=Be(t);return t.children=a?[a]:[],t}if(wt.has(t.type)&&i.length===0&&s)return t.type="Text",t.children=[s],t;if(t.type==="Text"&&!s&&i.length===0&&typeof t.props.text==="string")return t.children=t.props.text?[t.props.text]:[],delete t.props.text,t;if(t.type==="Text"&&i.length>0){if(/(?:^|\s)(?:inline-)?(?:flex|grid)(?:\s|$)/.test(t._classes??"")||i.some((l)=>l.type!=="Text"))return t.type="View",t.children=t.children.map((l)=>typeof l==="string"?z("Text",{},{},{},[l]):l),t;let c=Be(t);return e.push({kind:"flattened-text",tag:r.tag}),t.children=c?[c]:[],t}if(wt.has(t.type)&&i.length>0)t.children=i;return t}async function zn(r,e={}){let t=[],i=await mt(r,(u)=>t.push({kind:"unsupported-theme-rule",tag:"style",name:u})),s=Q(i.light).computed(),a=[],c=[],l=new Set;function f(u){let p=c[c.length-1];if(!p)a.push(u);else if(!p.dropped)p.node.children.push(u)}function m(u){let p=(w)=>{if(u.tag!=="html"&&u.node._styleSource)w._styleAncestors=[u.node._styleSource,...w._styleAncestors??[]]};if(u.node.bindings&&Object.keys(u.node.bindings).length>0){let w=u.node.children,N=w.filter((d)=>typeof d!=="string"),S=N.length===1&&N.length===w.length?N[0]:z("View",{},{},{},w);if(S.bindings={...u.node.bindings,...S.bindings},S.bindingId===void 0&&u.node.bindingId!==void 0)S.bindingId=u.node.bindingId;p(S),f(S);return}let h=c[c.length-1];for(let w of u.node.children){if(typeof w==="string"){if(h&&!h.dropped)h.node.children.push(w);continue}if(p(w),!h)a.push(w);else if(!h.dropped)h.node.children.push(w)}}function v(u,p){let h=c[c.length-1];if(u==="svg"||h?.svg)return y(u,p,h);let w=bt.has(u)&&!oe.has(u),N=c[c.length-1]?.dropped??!1,S=h?.variables??s,{props:d,style:x,events:A,bindings:F,classes:k,inline:L}=w||N?{props:{},style:{},events:{},bindings:{},classes:"",inline:{}}:St(u,p,t,{inheritedVariables:S,onVariables:(E)=>{S=E}});if(u==="html")S=s;let P=d["data-native"],T;if(typeof P==="string"&&Pe.has(P))T=P,delete d["data-native"];else if(T=oe.has(u)?"View":lt(u),u==="input"){let E=String(d.type??"text").toLowerCase();if(E==="checkbox")T="Checkbox",d.formValue=d.value??"on",d.checked=d.checked===""||d.checked===!0||d.checked==="true",d.value=d.checked;else if(E==="hidden")T="View",x.display="none",L.display="none";else if(E==="radio")T="View",d.accessibilityRole="radio",t.push({kind:"unsupported-control",tag:u,name:"input:radio"})}if(T===u&&!Pe.has(T)&&!bt.has(u)&&!vt.has(u)&&!l.has(u))l.add(u),t.push({kind:"unmapped-tag",tag:u});if((w||oe.has(u))&&!l.has(`drop:${u}`))l.add(`drop:${u}`),t.push({kind:"dropped-subtree",tag:u});if(T==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(k))T="ScrollView",d.horizontal=!0,d.showsHorizontalScrollIndicator??=!1;else if(T==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(k))T="ScrollView";if(u==="form")d["data-stx-form"]=!0;if(u==="button"&&d.type===void 0)d.type="submit";if(T==="Video"&&d.source===void 0&&d.src!==void 0)d.source=d.src,delete d.src;if(T==="Icon"){let E=se(k).icon,R=Ce(String(d.symbol||d.name||E||""),Boolean(d.symbol));if(d.symbol=R.symbol,R.iconify)d.iconify=R.iconify}if(T==="FlatList"||T==="SectionList"){let E=new Set([...Object.keys(d),...Object.keys(F)].map((R)=>R.toLowerCase()));for(let[R,B]of jn)if(E.has(R))t.push({kind:"unsupported-list-prop",tag:T,name:B})}let _=z(T,d,x,A);_._inlineStyle=L,_._styleSource=G(p.find(([E])=>E==="style")?.[1]??"");let I=d["data-stx-b"];if(typeof I==="number"&&Number.isInteger(I))_.bindingId=I;if(delete d["data-stx-b"],k)_._classes=k;if(Object.keys(F).length>0)_.bindings=F;if(typeof d.key==="string")_.key=d.key,delete d.key;return{tag:u,node:_,variables:S,declaredNative:typeof P==="string"&&Pe.has(P),dropped:w||N||oe.has(u),discard:w||N,unwrap:vt.has(u)}}function y(u,p,h){let w=h?.dropped??!1,N=ke[u];if(w||!N){if(!w&&!l.has(`drop:${u}`))l.add(`drop:${u}`),t.push({kind:st.has(u)?"dropped-subtree":"unmapped-tag",tag:u});return{tag:u,node:z("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let S=h?.variables??s,{props:d,style:x,events:A,bindings:F,classes:k,inline:L}=St(u,p,t,{inheritedVariables:S,onVariables:(I)=>{S=I}});if(N==="Svg"){let I=Re(d.viewBox);if(I)d.viewBox=I;else delete d.viewBox;for(let E of["width","height"]){if(typeof d[E]==="number"&&x[E]===void 0)x[E]=d[E];delete d[E]}}if(typeof d.strokeDasharray==="string"||typeof d.strokeDasharray==="number"){let I=String(d.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);d.strokeDasharray=I}let P=Ae(N,d);if(P)d.geometry=P;let T=z(N,d,x,A);T._inlineStyle=L,T._styleSource=G(p.find(([I])=>I==="style")?.[1]??"");let _=d["data-stx-b"];if(typeof _==="number"&&Number.isInteger(_))T.bindingId=_;if(delete d["data-stx-b"],k)T._classes=k;if(Object.keys(F).length>0)T.bindings=F;if(typeof d.key==="string")T.key=d.key,delete d.key;return{tag:u,node:T,variables:S,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(u){let p=u.tagName.toLowerCase(),h=v(p,[...u.attributes]),w=!0;try{u.onEndTag(()=>{if(c.pop(),h.discard)return;if(h.unwrap)m(h);else f(Xn(h,t))})}catch{w=!1}if(w)c.push(h);else if(!h.discard)f(h.node)},text(u){let p=c[c.length-1];if(!p||p.dropped)return;let h=G(u.text).replace(/\s+/g," ");if(!h.trim())return;p.node.children.push(h)}}).transform(new Response(r)).text(),a.length===0)throw Error(`No element to translate in the rendered output of ${e.source??"unknown"}`);let b=a.length===1?a[0]:z("View",{},{},{},a);if(i.light.length||i.dark.length)b._stylesheetTheme=i;let g=(u)=>{let p=Se(u.props);if(Object.keys(p).length)u._accessibilitySource=Object.fromEntries(we.filter((h)=>(h in u.props)).map((h)=>[h,u.props[h]])),Object.assign(u.props,p);for(let h of u.children)if(typeof h!=="string")g(h)};return g(b),{root:b,diagnostics:t}}async function Nt(r,e={}){let{root:t,diagnostics:i}=await zn(r,e),s=e.script??{exports:{},functions:[],code:""};return{document:yt(t,s,{source:e.source??"unknown"}),diagnostics:i}}var xt=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Hn=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,Un=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,kt=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function Me(r){let e=[];xt.lastIndex=0;for(let a of r.matchAll(xt)){let c=a[1]??"";if(/\bserver\b/.test(c))continue;e.push(a[2].trim())}let t=e.filter(Boolean).join(`
2
+ import"./chunk-1gtrs8va.js";import"./chunk-10s16tad.js";import"./chunk-sxpnpvt5.js";import{$r,so,aa}from"./chunk-dvbgbd06.js";import"./chunk-66e4ga0z.js";import{Ke,_e,re,Mt,fe,xn,Sn,Ee,dr,n,o}from"./chunk-e030grrq.js";import"./chunk-x6pz1h3x.js";import"./chunk-khzyc41k.js";import"./chunk-gc1dzxee.js";import"./chunk-j8vd52sg.js";import"./chunk-jp6yn9mj.js";import"./chunk-z4te6223.js";import{He}from"./chunk-19bhnbyn.js";import"./chunk-5rtatjwq.js";import"./chunk-erk7afjv.js";import{us}from"./chunk-fqwyfx6c.js";import"./chunk-n5xbv1a9.js";import{existsSync as ue,mkdirSync as lr,readFileSync as ur}from"fs";import X from"path";import{existsSync as $e,mkdirSync as At,realpathSync as Zn,rmSync as _t}from"fs";import C from"path";import{existsSync as Gn}from"fs";import ee from"path";var Pt="data-stx-b",Xe=new Set(so),Bt=new Set($r);function Dt(r){if(r==="ref"||r==="data-stx-ref")return"ref";if(r.startsWith("::"))return null;if(r.startsWith("@bind:")||r.startsWith("x-bind:"))return"attr";if(r.startsWith("@")||r.startsWith(":")){let e=r.slice(1).split(".")[0];if(Xe.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(aa(e))return"event";if(r.startsWith("@"))return"event";return"attr"}if(r.startsWith("x-")){let e=r.split(".")[0];if(!Bt.has(e))return"attr";let t=e.slice(2);if(t==="cloak"||t==="data"||t==="bind")return null;if(t==="tooltip"||t==="tooltip-position")return null;return Xe.has(t)?t==="if"?"if":t:"attr"}return null}function Lt(r){let e=[];for(let[t,i]of r){let s=Dt(t);if(s)e.push({name:t,value:i,kind:s})}return e}var Vt=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,ge=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function ze(r){let e=[],t=0;return{html:r.replace(Vt,(s,a,c)=>{if(!c||!/[:@]|x-/.test(c))return s;let l=[];ge.lastIndex=0;for(let b=ge.exec(c);b;b=ge.exec(c))l.push([b[1],b[2]??b[3]??b[4]??""]);let f=Lt(l);if(!f.length)return s;let m={id:t++,bindings:f};if(f.some((b)=>b.kind==="for"))m.template=!0;e.push(m);let v=s.endsWith("/>");return`${s.slice(0,v?-2:-1).trimEnd()} ${Pt}="${m.id}"${v?"/>":">"}`}),manifest:{entries:e}}}import dn from"path";function ne(r){let e=r&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(r.trim());if(!e)return;let t=Number(e[1])*(e[2]==="rem"?16:1);return Number.isFinite(t)?t:void 0}function he(r,e){if(!re[r])return;return ne(e?.get(Mt(r))??re[r].value)}function me(r,e){let t=xn[r];if(!t)return;return ne(e?.get(Ee(t))??fe[t]?.value)}function ye(r,e){let t=Sn[r];if(!t)return;let i=ne(e?.get(Ee(t.size))??fe[t.size]?.value),s=ne(e?.get(Ee(t.leading))??fe[t.leading]?.value);if(i===void 0||s===void 0)return;return{fontSize:i,lineHeight:s}}var $t={transparent:"transparent",current:"currentColor",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}},Je={px:1,0:0,0.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},Ue={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128},qe={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function q(r){let e=r.lastIndexOf("/");if(e>0&&!r.endsWith("]")){let i=q(r.slice(0,e)),s=r.slice(e+1),a=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!i||!Number.isFinite(a))return;return jt(i,a/100)}if(r==="transparent")return"transparent";if(r==="current")return"currentColor";if(r==="black")return"#000000";if(r==="white")return"#ffffff";let t=r.split("-");if(t.length===2){let[i,s]=t,a=$t[i];if(a&&typeof a==="object")return a[s]}if(r.startsWith("[")&&r.endsWith("]")){let i=r.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(i)?i:void 0}return}function ve(r){return q(r.trim())}function jt(r,e){if(r==="transparent")return r;let t=r.startsWith("#")?r.slice(1):"";if(t.length===3)t=t.split("").map((s)=>s+s).join("");if(t.length===8)t=t.slice(0,6);if(t.length!==6)return;let i=Math.round(Math.min(1,Math.max(0,e))*255);return`#${t}${i.toString(16).padStart(2,"0")}`}function be(r,e=16){if(!r.startsWith("[")||!r.endsWith("]"))return;let t=r.slice(1,-1),i=Number.parseFloat(t);if(!Number.isFinite(i))return;if(t.endsWith("rem"))return i*16;if(t.endsWith("em"))return i*e;return i}function O(r){if(r.startsWith("[")&&r.endsWith("]")){let e=r.slice(1,-1);if(e.endsWith("%"))return;let t=e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e);return Number.isFinite(t)?t:void 0}return Je[r]??me(r)}function ie(r){let e=/^\[(-?\d*\.?\d+)%\]$/.exec(r);if(e)return`${Number.parseFloat(e[1])}%`;return O(r)}var Ft={flex:(r,e)=>(e.display="flex",!0),hidden:(r,e)=>(e.display="none",!0),grid:(r,e)=>(e.display="grid",!0),"flex-row":(r,e)=>(e.flexDirection="row",!0),"flex-col":(r,e)=>(e.flexDirection="column",!0),"flex-row-reverse":(r,e)=>(e.flexDirection="row-reverse",!0),"flex-col-reverse":(r,e)=>(e.flexDirection="column-reverse",!0),"flex-wrap":(r,e)=>(e.flexWrap="wrap",!0),"flex-nowrap":(r,e)=>(e.flexWrap="nowrap",!0),"flex-wrap-reverse":(r,e)=>(e.flexWrap="wrap-reverse",!0),"flex-1":(r,e)=>(e.flex=1,e.flexGrow=1,e.flexShrink=1,e.flexBasis=0,!0),"flex-auto":(r,e)=>(e.flexGrow=1,e.flexShrink=1,!0),"flex-initial":(r,e)=>(e.flexGrow=0,e.flexShrink=1,!0),"flex-none":(r,e)=>(e.flexGrow=0,e.flexShrink=0,!0),grow:(r,e)=>(e.flexGrow=1,!0),"grow-0":(r,e)=>(e.flexGrow=0,!0),shrink:(r,e)=>(e.flexShrink=1,!0),"shrink-0":(r,e)=>(e.flexShrink=0,!0),"order-first":(r,e)=>(e.order=-9999,!0),"order-last":(r,e)=>(e.order=9999,!0),"order-none":(r,e)=>(e.order=0,!0),"justify-start":(r,e)=>(e.justifyContent="flex-start",!0),"justify-center":(r,e)=>(e.justifyContent="center",!0),"justify-end":(r,e)=>(e.justifyContent="flex-end",!0),"justify-between":(r,e)=>(e.justifyContent="space-between",!0),"justify-around":(r,e)=>(e.justifyContent="space-around",!0),"justify-evenly":(r,e)=>(e.justifyContent="space-evenly",!0),"items-start":(r,e)=>(e.alignItems="flex-start",!0),"items-center":(r,e)=>(e.alignItems="center",!0),"items-end":(r,e)=>(e.alignItems="flex-end",!0),"items-stretch":(r,e)=>(e.alignItems="stretch",!0),"items-baseline":(r,e)=>(e.alignItems="baseline",!0),"self-auto":(r,e)=>(e.alignSelf="auto",!0),"self-start":(r,e)=>(e.alignSelf="flex-start",!0),"self-center":(r,e)=>(e.alignSelf="center",!0),"self-end":(r,e)=>(e.alignSelf="flex-end",!0),"self-stretch":(r,e)=>(e.alignSelf="stretch",!0),"self-baseline":(r,e)=>(e.alignSelf="baseline",!0),"min-w-0":(r,e)=>(e.minWidth=0,!0),"aspect-square":(r,e)=>(e.aspectRatio=1,!0),"inset-0":(r,e)=>(e.top=0,e.right=0,e.bottom=0,e.left=0,!0),"tracking-tighter":(r,e)=>(e.letterSpacing=-0.8,!0),"tracking-tight":(r,e)=>(e.letterSpacing=-0.4,!0),"tracking-normal":(r,e)=>(e.letterSpacing=0,!0),"tracking-wide":(r,e)=>(e.letterSpacing=0.4,!0),"tracking-wider":(r,e)=>(e.letterSpacing=0.8,!0),"tracking-widest":(r,e)=>(e.letterSpacing=1.6,!0),"tabular-nums":()=>!0,block:()=>!0,"inline-flex":(r,e)=>(e.display="flex",!0),truncate:()=>!0,relative:(r,e)=>(e.position="relative",!0),absolute:(r,e)=>(e.position="absolute",!0),"overflow-visible":(r,e)=>(e.overflow="visible",!0),"overflow-hidden":(r,e)=>(e.overflow="hidden",!0),"overflow-scroll":(r,e)=>(e.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-thin":(r,e)=>(e.fontWeight="100",!0),"font-extralight":(r,e)=>(e.fontWeight="200",!0),"font-light":(r,e)=>(e.fontWeight="300",!0),"font-normal":(r,e)=>(e.fontWeight="400",!0),"font-medium":(r,e)=>(e.fontWeight="500",!0),"font-semibold":(r,e)=>(e.fontWeight="600",!0),"font-bold":(r,e)=>(e.fontWeight="bold",!0),"font-extrabold":(r,e)=>(e.fontWeight="800",!0),"font-black":(r,e)=>(e.fontWeight="900",!0),italic:(r,e)=>(e.fontStyle="italic",!0),"not-italic":(r,e)=>(e.fontStyle="normal",!0),"text-left":(r,e)=>(e.textAlign="left",!0),"text-center":(r,e)=>(e.textAlign="center",!0),"text-right":(r,e)=>(e.textAlign="right",!0),"text-justify":(r,e)=>(e.textAlign="justify",!0),uppercase:(r,e)=>(e.textTransform="uppercase",!0),lowercase:(r,e)=>(e.textTransform="lowercase",!0),capitalize:(r,e)=>(e.textTransform="capitalize",!0),"normal-case":(r,e)=>(e.textTransform="none",!0),underline:(r,e)=>(e.textDecorationLine="underline",!0),"line-through":(r,e)=>(e.textDecorationLine="line-through",!0),"no-underline":(r,e)=>(e.textDecorationLine="none",!0)};function Wt(r,e){if(!r.startsWith("bg-"))return!1;let t=r.slice(3),i=q(t);if(i)return e.backgroundColor=i,!0;return!1}function Xt(r,e){if(!r.startsWith("text-"))return!1;let t=r.slice(5),i=ye(t);if(i)return Object.assign(e,i),!0;if(Ue[t])return e.fontSize=Ue[t],!0;if(t.startsWith("[")&&t.endsWith("]")){let a=t.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(a)){let c=a.endsWith("rem")||a.endsWith("em")?Number.parseFloat(a)*16:Number.parseFloat(a);if(Number.isFinite(c))return e.fontSize=c,!0}}let s=q(t);if(s)return e.color=s,!0;return!1}var zt=new Set(["t","tr","r","br","b","bl","l","tl"]);function Ht(r,e){let t=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(r);if(t&&zt.has(t[1]))return e.gradientDirection=`to-${t[1]}`,!0;let i=/^(from|via|to)-(.+)$/.exec(r);if(!i)return!1;let s=q(i[2]);if(!s)return!1;if(i[1]==="from")e.gradientFrom=s;else if(i[1]==="via")e.gradientVia=s;else e.gradientTo=s;return!0}function Ut(r,e){for(let t of["fill","stroke"]){let i=`${t}-`;if(!r.startsWith(i))continue;let s=r.slice(i.length);if(s==="none")return e[t]="none",!0;if(t==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return e.strokeWidth=Number.parseFloat(s),!0;if(t==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return e.strokeWidth=Number.parseFloat(s.slice(1)),!0;let a=q(s);if(a)return e[t]=a,!0}return!1}function qt(r,e){if(r.startsWith("p-")){let t=O(r.slice(2));if(t!==void 0)return e.padding=t,!0}if(r.startsWith("px-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingHorizontal=t,!0}if(r.startsWith("py-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingVertical=t,!0}if(r.startsWith("pt-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingTop=t,!0}if(r.startsWith("pr-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingRight=t,!0}if(r.startsWith("pb-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingBottom=t,!0}if(r.startsWith("pl-")){let t=O(r.slice(3));if(t!==void 0)return e.paddingLeft=t,!0}return!1}function Ye(r,e){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(r)){let t={};if(!Ye(r.slice(1),t))return!1;let i=Object.entries(t);if(i.some(([,s])=>typeof s!=="number"))return!1;for(let[s,a]of i)e[s]=-a;return!0}if(r.startsWith("m-")){let t=O(r.slice(2));if(t!==void 0)return e.margin=t,!0}if(r.startsWith("mx-")){let t=O(r.slice(3));if(t!==void 0)return e.marginHorizontal=t,!0}if(r.startsWith("my-")){let t=O(r.slice(3));if(t!==void 0)return e.marginVertical=t,!0}if(r.startsWith("mt-")){let t=O(r.slice(3));if(t!==void 0)return e.marginTop=t,!0}if(r.startsWith("mr-")){let t=O(r.slice(3));if(t!==void 0)return e.marginRight=t,!0}if(r.startsWith("mb-")){let t=O(r.slice(3));if(t!==void 0)return e.marginBottom=t,!0}if(r.startsWith("ml-")){let t=O(r.slice(3));if(t!==void 0)return e.marginLeft=t,!0}return!1}function Gt(r,e){if(!r.startsWith("w-"))return!1;let t=r.slice(2);if(t==="full")return e.width="100%",!0;if(t==="screen")return e.width="100%",!0;if(t==="auto")return e.width="auto",!0;if(t.includes("/")){let[s,a]=t.split("/"),c=Number.parseInt(s)/Number.parseInt(a)*100;return e.width=`${c}%`,!0}let i=ie(t);if(i!==void 0)return e.width=i,!0;return!1}function Jt(r,e){if(!r.startsWith("h-"))return!1;let t=r.slice(2);if(t==="full")return e.height="100%",!0;if(t==="screen")return e.height="100%",!0;if(t==="auto")return e.height="auto",!0;let i=ie(t);if(i!==void 0)return e.height=i,!0;return!1}function Kt(r,e){if(r==="rounded")return e.borderRadius=qe.DEFAULT,!0;if(!r.startsWith("rounded-"))return!1;let t=r.slice(8);if(t==="")return!1;let i=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(t),s=qe[i[2]]??he(i[2])??be(i[2]);if(s===void 0)return!1;let a={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],tl:["borderTopLeftRadius"],tr:["borderTopRightRadius"],bl:["borderBottomLeftRadius"],br:["borderBottomRightRadius"]};for(let c of i[1]?a[i[1]]:["borderRadius"])e[c]=s;return!0}function Yt(r,e){let t=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(r);if(!t)return!1;let[,i="",s]=t,a=s===void 0?1:Number(s);if(s?.startsWith("[")){let l=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!l)return!1;a=Number(l[1])*(l[2]==="rem"?16:1)}if(!Number.isFinite(a)||a<0)return!1;let c={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let l of c[i])e[l]=a;return!0}function Qt(r,e){if(!r.startsWith("border-"))return!1;let t=r.slice(7),i=q(t);if(i)return e.borderColor=i,!0;return!1}function Zt(r,e){if(!r.startsWith("opacity-"))return!1;let t=Number.parseInt(r.slice(8));if(!Number.isNaN(t))return e.opacity=t/100,!0;return!1}function en(r,e){if(r.startsWith("tracking-[")){let t=be(r.slice(9),typeof e.fontSize==="number"?e.fontSize:16);if(t===void 0)return!1;return e.letterSpacing=t,!0}if(r.startsWith("leading-")){let t=r.slice(8),i=typeof e.fontSize==="number"?e.fontSize:16,s={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},a=t.startsWith("[")?/^\[[\d.]+\]$/.test(t)?Number.parseFloat(t.slice(1,-1))*i:be(t,i):s[t]!==void 0?s[t]*i:Je[t];if(a===void 0||!Number.isFinite(a))return!1;return e.lineHeight=a,!0}return!1}function tn(r,e){let t=/^grid-cols-(\d+)$/.exec(r);if(!t)return!1;return e.gridColumns=Number(t[1]),!0}function nn(r,e){if(!r.startsWith("size-"))return!1;let t=r.slice(5),i=t==="full"?"100%":ie(t);if(i===void 0)return!1;return e.width=i,e.height=i,!0}var rn={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function sn(r,e){let t=/^(min|max)-(w|h)-(.+)$/.exec(r);if(!t)return!1;let[,i,s,a]=t,c=a==="full"||a==="screen"?"100%":a==="none"?void 0:s==="w"&&i==="max"&&rn[a]||ie(a);if(c===void 0&&a!=="none")return!1;let l=`${i}${s==="w"?"Width":"Height"}`;if(c===void 0)delete e[l];else e[l]=c;return!0}function on(r,e){let t=/^(-?)(top|right|bottom|left)-(.+)$/.exec(r);if(!t)return!1;let i=t[3]==="full"?"100%":O(t[3]);if(i===void 0)return!1;return e[t[2]]=typeof i==="number"&&t[1]?-i:i,!0}function an(r,e){let t=/^(-?)translate-(x|y)-(.+)$/.exec(r);if(!t)return!1;let i=t[3],s;if(i.startsWith("[")){let l=/^\[([+-]?(?:\d+\.?\d*|\.\d+))(px|rem|em)?\]$/.exec(i);if(!l)return!1;s=Number(l[1])*(l[2]?.endsWith("em")?16:1)}else s=O(i);if(s===void 0||!Number.isFinite(s))return!1;if(t[1])s=-s;let a=t[2]==="x"?"translateX":"translateY",c=a==="translateX"?{translateX:s}:{translateY:s};return e.transform=[...(e.transform??[]).filter((l)=>!(a in l)),c],!0}function cn(r,e){let t=/^space-(x|y)-(.+)$/.exec(r);if(!t)return!1;let i=O(t[2]);if(i===void 0)return!1;return e.gap=i,!0}function ln(r,e){if(r.startsWith("gap-")){let t=O(r.slice(4));if(t!==void 0)return e.gap=t,!0}if(r.startsWith("gap-x-")){let t=O(r.slice(6));if(t!==void 0)return e.columnGap=t,!0}if(r.startsWith("gap-y-")){let t=O(r.slice(6));if(t!==void 0)return e.rowGap=t,!0}return!1}function un(r,e){let i={"shadow-none":[0,0,0,0],"shadow-xs":[1,1,0.05,1],"shadow-sm":[2,1,0.1,2],shadow:[3,2,0.12,3],"shadow-md":[6,4,0.15,4],"shadow-lg":[10,6,0.18,8],"shadow-xl":[16,10,0.2,12],"shadow-2xl":[24,16,0.25,18]}[r];if(!i)return!1;let[s,a,c,l]=i;return Object.assign(e,{shadowColor:"#000000",shadowOpacity:c,shadowRadius:s,shadowOffset:{width:0,height:a},elevation:l}),!0}function se(r,e){let t=[],i=[],s=[],a=[],c=new Map;function l(g,u){let p=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(g),h=p&&Ke[p[2]];if(h){let S=e?.get(_e(p[2]));return[`${p[1]}-${S===void 0?h[u]:`[${S}]`}${p[3]||""}`]}let w=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(g);if(w&&re[w[2]]){let S=he(w[2],e);return S===void 0?void 0:[`rounded-${w[1]?`${w[1]}-`:""}[${S}px]`]}let N=g.startsWith("text-")?g.slice(5):"";if(Sn[N]){let S=ye(N,e);return S&&[`text-[${S.fontSize}px]`,`leading-[${S.lineHeight}px]`]}for(let S of Object.keys(xn)){if(!g.endsWith(`-${S}`))continue;let d=me(S,e);return d===void 0?void 0:[`${g.slice(0,-S.length)}[${d}px]`]}return[g]}function f(g,u){if(!c.has(g))c.set(g,new Set);return c.get(g).add(u),g}for(let g of r.split(/\s+/).filter(Boolean))if(g.startsWith("dark:")){let u=l(g.slice(5),"dark");if(!u)a.push(g);else i.push(...u.map((p)=>f(p,g)))}else if(!g.includes(":")||g.startsWith("[")){let u=l(g,"light"),p=l(g,"dark");if(!u||!p){a.push(g);continue}if(t.push(...u.map((h)=>f(h,g))),p.join(" ")!==u.join(" "))s.push(...p.map((h)=>f(h,g)))}else a.push(g);let m=[],v=Ge(t,m),y={style:v,unknown:m};if(i.length||s.length)y.dark=Ge([...s,...i],m);if(v.transform&&y.dark?.transform){let g=new Set(y.dark.transform.flatMap((u)=>Object.keys(u)));y.dark.transform=[...v.transform.filter((u)=>!Object.keys(u).some((p)=>g.has(p))),...y.dark.transform]}for(let g of t){if(g==="truncate")y.numberOfLines=1;let u=/^line-clamp-(\d+)$/.exec(g);if(u)y.numberOfLines=Number(u[1]);if(!y.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(g))y.icon=g}let b=m.flatMap((g)=>[...c.get(g)??[g]]);return y.unknown=[...new Set([...b.filter((g)=>!/^line-clamp-\d+$/.test(g)),...a])],y}function Ge(r,e){let t={},i=Array.isArray(r)?r:r.split(/\s+/).filter(Boolean);for(let s of i){if(/^i-[a-z0-9]+-/.test(s))continue;let a=Ft[s];if(a){a("",t);continue}if(un(s,t))continue;if(Ht(s,t))continue;if(Wt(s,t))continue;if(Ut(s,t))continue;if(Xt(s,t))continue;if(qt(s,t))continue;if(Ye(s,t))continue;if(Gt(s,t))continue;if(Jt(s,t))continue;if(Kt(s,t))continue;if(Yt(s,t))continue;if(Qt(s,t))continue;if(Zt(s,t))continue;if(ln(s,t))continue;if(en(s,t))continue;if(nn(s,t))continue;if(sn(s,t))continue;if(tn(s,t))continue;let c=/^order-\[(-?\d+)\]$/.exec(s)??/^order-(-?\d+)$/.exec(s);if(c){t.order=Number(c[1]);continue}if(on(s,t))continue;if(an(s,t))continue;if(cn(s,t))continue;if(e?.push(s),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${s}`)}return t}var Qe=new Map;function Ze(r,e){if(!r)return;let t=r.trim(),i=t.lastIndexOf("-"),s=i===-1?e[t]:e[t.slice(0,i)],a=i===-1?s:s?.[t.slice(i+1)];if(typeof a==="string"&&/^#[\da-f]{3,8}$/i.test(a))return a;return ve(t)??ve(`[${t}]`)}function fn(r){let e=r.roles??{},t=r.shapes??{},i=r.density??{},s={...r.theme?.colors,...r.theme?.extend?.colors},a=[],c=[];for(let[l,f]of Object.entries(e)){if(!Ke[l])continue;let m=Ze(typeof f==="string"?f:f?.light,s),v=Ze(typeof f==="string"?f:f?.dark,s);if(m)a.push(`${_e(l)}: ${m};`);if(v)c.push(`${_e(l)}: ${v};`)}for(let[l,f]of Object.entries(t))if(re[l])a.push(`${Mt(l)}: ${f};`);for(let[l,f]of Object.entries(i))if(fe[l])a.push(`${Ee(l)}: ${f};`);return[a.length?`:root { ${a.join(" ")} }`:"",c.length?`.dark { ${c.join(" ")} }`:""].filter(Boolean).join(`
3
+ `)}async function pn(r){let{resolveUserCssConfig:e}=await import("./chunk-tc62pvzg.js"),t=await e(r);return t?fn(t):""}function et(r){let e=dn.resolve(r),t=Qe.get(e);if(!t)t=pn(e).catch(()=>""),Qe.set(e,t);return t}var nt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},tt={alert:"alert",button:"button",checkbox:"checkbox",combobox:"combobox",header:"header",heading:"header",image:"image",img:"image",link:"link",menu:"menu",menubar:"menubar",menuitem:"menuitem",none:"none",presentation:"none",progressbar:"progressbar",radio:"radio",scrollbar:"scrollbar",search:"search",searchbox:"search",slider:"adjustable",spinbutton:"spinbutton",switch:"switch",tab:"tab",tablist:"tablist",timer:"timer",toolbar:"toolbar"};function gn(r){return r==="role"||r==="aria-label"||r==="aria-valuetext"||r in nt}function hn(r,e){if(e===void 0||e===null)return;let t=String(e).trim().toLowerCase();if(t==="mixed")return r==="aria-checked"?"mixed":!0;if(t==="undefined")return;return t===""||t==="true"}function mn(r){if(r===void 0||r===null)return null;for(let e of String(r).trim().toLowerCase().split(/\s+/))if(tt[e])return tt[e];return null}function yn(r,e,t){if(r==="aria-label")return{accessibilityLabel:e===void 0||e===null||e===""?null:String(e)};if(r==="aria-valuetext")return{accessibilityValue:e===void 0||e===null||e===""?null:String(e)};if(r==="role")return{accessibilityRole:mn(e)};let i=nt[r];if(!i)return;let s=t.accessibilityState,a=s&&typeof s==="object"?{...s}:{},c=hn(r,e);if(c===void 0)delete a[i];else a[i]=c;return{accessibilityState:Object.keys(a).length?a:null}}function bn(r){let e=r.accessibilityState&&typeof r.accessibilityState==="object"?r.accessibilityState:void 0,t={};for(let[s,a]of Object.entries(r)){if(!gn(s))continue;let c=yn(s,a,t);if(c)Object.assign(t,c)}for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(r[s]===void 0&&t[s]!==void 0&&t[s]!==null)r[s]=t[s];let i=t.accessibilityState;if(i)r.accessibilityState={...i,...e}}var we=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function Se(r){let e={...r};return bn(e),Object.fromEntries(we.filter((t)=>(t in e)).map((t)=>[t,e[t]]))}var Ne={"region-change-complete":"onRegionChangeComplete",regionchangecomplete:"onRegionChangeComplete",click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",onchange:"onChange",change:"onValueChange","value-change":"onValueChange",valuechange:"onValueChange",focus:"onFocus",focusin:"onFocus",blur:"onBlur",focusout:"onBlur",submit:"onSubmitEditing","submit-editing":"onSubmitEditing",submitediting:"onSubmitEditing","end-editing":"onEndEditing",endediting:"onEndEditing",scroll:"onScroll","scroll-begin-drag":"onScrollBeginDrag",scrollbegindrag:"onScrollBeginDrag","scroll-end-drag":"onScrollEndDrag",scrollenddrag:"onScrollEndDrag","momentum-scroll-begin":"onMomentumScrollBegin",momentumscrollbegin:"onMomentumScrollBegin","momentum-scroll-end":"onMomentumScrollEnd",momentumscrollend:"onMomentumScrollEnd",refresh:"onRefresh",layout:"onLayout","end-reached":"onEndReached",endreached:"onEndReached",close:"onRequestClose","request-close":"onRequestClose",requestclose:"onRequestClose",show:"onShow",dismiss:"onDismiss","sliding-complete":"onSlidingComplete",slidingcomplete:"onSlidingComplete","load-start":"onLoadStart",loadstart:"onLoadStart",load:"onLoad","load-end":"onLoadEnd",loadend:"onLoadEnd",error:"onError",play:"onPlay",playing:"onPlay",pause:"onPause",ended:"onEnd",end:"onEnd",timeupdate:"onProgress",progress:"onProgress",loadedmetadata:"onLoad",enterpictureinpicture:"onPictureInPictureStart",leavepictureinpicture:"onPictureInPictureStop"};var ke={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText"},Te=new Set(Object.values(ke));var st=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),ot=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight"];function D(r){let e=typeof r==="number"?r:Number.parseFloat(String(r??""));return Number.isFinite(e)?e:0}function J(r){return Math.round(r*1000)/1000}function Re(r){if(Array.isArray(r)&&r.length===4&&r.every((t)=>Number.isFinite(Number(t))))return r.map(Number);let e=String(r??"").trim().split(/[\s,]+/).map(Number);if(e.length!==4||e.some((t)=>!Number.isFinite(t))||e[2]<=0||e[3]<=0)return null;return e}function vn(r){let e=String(r??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return e.length%2?e.slice(0,-1):e}var rt=/[MLHVCSQTAZ]/i,xe=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function wn(r){let e=[],t=r,i=rt.exec(t);while(i){let s=i.index;t=t.slice(s);let a=t[0];t=t.slice(1);let c=rt.exec(t),l=c?t.slice(0,c.index):t,f;if(a==="A"||a==="a"){f=[];let m=0,v=l.trim(),y=0;while(y<v.length){let b=m%7,g=v.slice(y).replace(/^[\s,]+/,"");if(y=v.length-g.length,!g)break;if(b===3||b===4)f.push(g[0]==="1"?1:0),y+=1;else{xe.lastIndex=0;let u=xe.exec(g);if(!u||u.index!==0)break;f.push(Number.parseFloat(u[0])),y+=u[0].length}m++}}else f=(l.match(xe)||[]).map(Number.parseFloat);e.push({command:a,args:f}),i=c}return e}function Nn(r,e,t,i,s,a,c,l,f){if(r===l&&e===f)return[];let m=Math.abs(t),v=Math.abs(i);if(!m||!v)return[1,l,f];let y=s*Math.PI/180,b=Math.cos(y),g=Math.sin(y),u=(r-l)/2,p=(e-f)/2,h=b*u+g*p,w=-g*u+b*p,N=h*h/(m*m)+w*w/(v*v);if(N>1)m*=Math.sqrt(N),v*=Math.sqrt(N);let S=m*m*v*v-m*m*w*w-v*v*h*h,d=m*m*w*w+v*v*h*h,x=Math.sqrt(Math.max(0,S/d));if(a===c)x=-x;let A=x*(m*w)/v,F=x*-(v*h)/m,k=b*A-g*F+(r+l)/2,L=g*A+b*F+(e+f)/2,P=(M,j,V,Y)=>{let de=M*Y-j*V<0?-1:1,pe=(M*V+j*Y)/(Math.hypot(M,j)*Math.hypot(V,Y));return de*Math.acos(Math.min(1,Math.max(-1,pe)))},T=P(1,0,(h-A)/m,(w-F)/v),_=P((h-A)/m,(w-F)/v,(-h-A)/m,(-w-F)/v);if(!c&&_>0)_-=2*Math.PI;if(c&&_<0)_+=2*Math.PI;let I=Math.max(1,Math.ceil(Math.abs(_)/(Math.PI/2))),E=_/I,R=1.3333333333333333*Math.tan(E/4),B=[],H=(M)=>{let j=m*Math.cos(M),V=v*Math.sin(M);return[b*j-g*V+k,g*j+b*V+L]},U=(M)=>{let j=-m*Math.sin(M),V=v*Math.cos(M);return[b*j-g*V,g*j+b*V]},W=T;for(let M=0;M<I;M++){let j=W+E,[V,Y]=H(W),[de,pe]=U(W),[Fe,We]=H(j),[Ct,Ot]=U(j);B.push(2,V+R*de,Y+R*pe,Fe-R*Ct,We-R*Ot,M===I-1?l:Fe,M===I-1?f:We),W=j}return B}function kn(r){let e=[],t=0,i=0,s=0,a=0,c=0,l=0,f=0,m=0,v="";for(let{command:y,args:b}of wn(String(r??""))){let g=y===y.toLowerCase(),u=y.toUpperCase(),p=()=>g?t:0,h=()=>g?i:0,w=0,N=(d)=>{if(w+d>b.length)return null;let x=b.slice(w,w+d);return w+=d,x};if(u==="Z"){e.push(4),t=s,i=a,v="Z";continue}let S=!0;while(w<b.length||S&&u==="Z"){switch(u){case"M":{let d=N(2);if(!d)return e;if(t=d[0]+p(),i=d[1]+h(),S)e.push(0,t,i),s=t,a=i;else e.push(1,t,i);v=S?"M":"L";break}case"L":{let d=N(2);if(!d)return e;t=d[0]+p(),i=d[1]+h(),e.push(1,t,i),v="L";break}case"H":{let d=N(1);if(!d)return e;t=d[0]+p(),e.push(1,t,i),v="L";break}case"V":{let d=N(1);if(!d)return e;i=d[0]+h(),e.push(1,t,i),v="L";break}case"C":{let d=N(6);if(!d)return e;let x=d[0]+p(),A=d[1]+h();c=d[2]+p(),l=d[3]+h(),t=d[4]+p(),i=d[5]+h(),e.push(2,x,A,c,l,t,i),v="C";break}case"S":{let d=N(4);if(!d)return e;let x=v==="C"?2*t-c:t,A=v==="C"?2*i-l:i;c=d[0]+p(),l=d[1]+h(),t=d[2]+p(),i=d[3]+h(),e.push(2,x,A,c,l,t,i),v="C";break}case"Q":{let d=N(4);if(!d)return e;f=d[0]+p(),m=d[1]+h(),t=d[2]+p(),i=d[3]+h(),e.push(3,f,m,t,i),v="Q";break}case"T":{let d=N(2);if(!d)return e;f=v==="Q"?2*t-f:t,m=v==="Q"?2*i-m:i,t=d[0]+p(),i=d[1]+h(),e.push(3,f,m,t,i),v="Q";break}case"A":{let d=N(7);if(!d)return e;let x=d[5]+p(),A=d[6]+h();e.push(...Nn(t,i,d[0],d[1],d[2],d[3],d[4],x,A)),t=x,i=A,v="A";break}default:return e}S=!1}}return e.map((y)=>J(y))}function it(r,e,t,i){if(t<=0||i<=0)return[];let s=0.5522847498;return[0,r+t,e,2,r+t,e+s*i,r+s*t,e+i,r,e+i,2,r-s*t,e+i,r-t,e+s*i,r-t,e,2,r-t,e-s*i,r-s*t,e-i,r,e-i,2,r+s*t,e-i,r+t,e-s*i,r+t,e,4].map(J)}function Ae(r,e){switch(r){case"Path":return kn(String(e.d??""));case"Line":return[0,D(e.x1),D(e.y1),1,D(e.x2),D(e.y2)].map(J);case"Rect":{let t=D(e.x),i=D(e.y),s=D(e.width),a=D(e.height);if(s<=0||a<=0)return[];let c=e.rx===void 0?D(e.ry):D(e.rx),l=e.ry===void 0?c:D(e.ry);if(c=Math.min(Math.max(0,c),s/2),l=Math.min(Math.max(0,l),a/2),!c||!l)return[0,t,i,1,t+s,i,1,t+s,i+a,1,t,i+a,4].map(J);let f=0.5522847498;return[0,t+c,i,1,t+s-c,i,2,t+s-c+f*c,i,t+s,i+l-f*l,t+s,i+l,1,t+s,i+a-l,2,t+s,i+a-l+f*l,t+s-c+f*c,i+a,t+s-c,i+a,1,t+c,i+a,2,t+c-f*c,i+a,t,i+a-l+f*l,t,i+a-l,1,t,i+l,2,t,i+l-f*l,t+c-f*c,i,t+c,i,4].map(J)}case"Circle":return it(D(e.cx),D(e.cy),D(e.r),D(e.r));case"Ellipse":return it(D(e.cx),D(e.cy),D(e.rx),D(e.ry));case"Polyline":case"Polygon":{let t=vn(e.points);if(t.length<4)return[];let i=[0,t[0],t[1]];for(let s=2;s<t.length;s+=2)i.push(1,t[s],t[s+1]);if(r==="Polygon")i.push(4);return i.map(J)}default:return null}}var Tn=[...ot,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoComplete","autoCorrect","autoFocus","contentContainerStyle","currentTime","defaultSource","defaultValue","ellipsizeMode","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","ios_backgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","listRole","maxLength","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","nonModal","dismissOnOutsideTap","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","stickyHeaderIndices","testID","textContentType","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize","initialRegion","tileOverlay","edgePadding","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","mapType","fillColor","strokeColor","pinColor","showsCompass","showsScale","cameraPitch","cameraHeading","autoScrollBottom","scrollKey","pictureInPicture","transitionID"],at=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","editable","hidesWhenStopped","horizontal","loop","multiline","muted","pagingEnabled","paused","refreshing","scrollEnabled","secureTextEntry","selectTextOnFocus","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","transparent","visible","nonModal","dismissOnOutsideTap","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","showsCompass","showsScale","pictureInPicture"]),Rn=new Map(Tn.map((r)=>[ct(r),r]));function ct(r){return r.replace(/[-_]/g,"").toLowerCase()}function Ie(r){return Rn.get(ct(r))??r}var An={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",map:"Map",mappolyline:"MapPolyline",mappolygon:"MapPolygon",mapmarker:"MapMarker",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",checkbox:"Checkbox",slider:"Slider",picker:"Picker",select:"Picker",loading:"ActivityIndicator",spinner:"ActivityIndicator",div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",a:"TouchableOpacity",section:"View",article:"View",header:"SafeAreaView",footer:"View",main:"View",nav:"View",aside:"View",form:"View",label:"Text",fieldset:"View",legend:"Text",option:"Text",dialog:"Modal",figure:"View",figcaption:"Text",picture:"View",hr:"View",ul:"View",ol:"View",li:"View",dl:"View",dt:"Text",dd:"Text",table:"View",thead:"View",tbody:"View",tfoot:"View",tr:"View",th:"Text",td:"Text",caption:"Text",strong:"Text",b:"Text",em:"Text",i:"Text",u:"Text",s:"Text",small:"Text",mark:"Text",abbr:"Text",time:"Text",code:"Text",kbd:"Text",samp:"Text",pre:"Text",blockquote:"Text",cite:"Text",q:"Text",sub:"Text",sup:"Text"};function lt(r){return An[r.toLowerCase()]||r}var _n={activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",archive:"archivebox",armchair:"sofa","arrow-down":"arrow.down","arrow-left":"arrow.left","arrow-right":"arrow.right","arrow-up":"arrow.up","arrow-up-right":"arrow.up.right","at-sign":"at","audio-lines":"waveform",award:"rosette",backpack:"backpack","badge-check":"checkmark.seal","badge-x":"xmark.seal",ban:"nosign","bar-chart":"chart.bar","bar-chart-2":"chart.bar","bar-chart-3":"chart.bar",battery:"battery.100","battery-charging":"battery.100.bolt",bed:"bed.double",bell:"bell","bell-off":"bell.slash","bell-ring":"bell.and.waves.left.and.right",bike:"figure.outdoor.cycle",blocks:"square.grid.2x2",bluetooth:"antenna.radiowaves.left.and.right",book:"book","book-open":"book",bookmark:"bookmark",box:"shippingbox",brain:"brain",building:"building","building-2":"building.2",cable:"cable.connector",calendar:"calendar","calendar-check":"calendar.badge.checkmark","calendar-clock":"calendar.badge.clock","calendar-days":"calendar","calendar-minus":"calendar.badge.minus","calendar-minus-2":"calendar.badge.minus","calendar-off":"calendar.badge.exclamationmark","calendar-plus":"calendar.badge.plus","calendar-range":"calendar","calendar-sync":"arrow.triangle.2.circlepath","calendar-x":"calendar.badge.exclamationmark","calendar-x-2":"calendar.badge.exclamationmark",camera:"camera","chart-bar":"chart.bar","chart-column":"chart.bar","chart-line":"chart.xyaxis.line","chart-no-axes-gantt":"chart.bar.doc.horizontal",check:"checkmark","check-circle":"checkmark.circle","check-circle-2":"checkmark.circle","chevron-down":"chevron.down","chevron-left":"chevron.left","chevron-right":"chevron.right","chevron-up":"chevron.up",circle:"circle","circle-alert":"exclamationmark.circle","circle-arrow-out-up-left":"arrow.uturn.backward.circle","circle-minus":"minus.circle","circle-arrow-down":"arrow.down.circle","circle-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-dot":"smallcircle.filled.circle","circle-help":"questionmark.circle","circle-play":"play.circle","circle-plus":"plus.circle","circle-user":"person.crop.circle","circle-x":"xmark.circle",clapperboard:"film",clipboard:"clipboard","clipboard-list":"list.clipboard",clock:"clock","clock-12":"clock","clock-2":"clock","clock-3":"clock","clock-4":"clock","clock-8":"clock",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",copy:"doc.on.doc","credit-card":"creditcard",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",dumbbell:"dumbbell",edit:"pencil","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal","hand-fist":"hand.raised",heart:"heart","heart-off":"heart.slash","heart-pulse":"heart.text.square","help-circle":"questionmark.circle",history:"clock.arrow.circlepath",home:"house",hourglass:"hourglass",house:"house","id-card":"person.text.rectangle",image:"photo",inbox:"tray",info:"info.circle",layers:"square.3.layers.3d","layout-dashboard":"rectangle.3.group","layout-grid":"square.grid.2x2",leaf:"leaf",library:"books.vertical",link:"link",list:"list.bullet","list-checks":"checklist",loader:"arrow.triangle.2.circlepath","loader-2":"arrow.triangle.2.circlepath","loader-circle":"arrow.triangle.2.circlepath",lock:"lock","log-in":"arrow.right.to.line","log-out":"rectangle.portrait.and.arrow.right",mail:"envelope",map:"map","map-pin":"mappin.and.ellipse",medal:"medal",megaphone:"megaphone",menu:"line.3.horizontal","message-circle":"bubble.left","message-square":"text.bubble","message-square-quote":"quote.bubble",mic:"mic",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",package:"shippingbox",pause:"pause","pause-circle":"pause.circle",pencil:"pencil","person-standing":"figure.walk",phone:"phone",play:"play.fill",plug:"powerplug",plus:"plus","plus-circle":"plus.circle","rectangle-horizontal":"rectangle","refresh-cw":"arrow.clockwise",repeat:"repeat","rotate-ccw":"arrow.counterclockwise",route:"point.topleft.down.to.point.bottomright.curvepath",ruler:"ruler",sailboat:"sailboat",satellite:"antenna.radiowaves.left.and.right",save:"square.and.arrow.down",scale:"scalemass","scan-line":"barcode.viewfinder",search:"magnifyingglass",send:"paperplane",settings:"gearshape","settings-2":"slider.horizontal.3",share:"square.and.arrow.up","share-2":"square.and.arrow.up",shield:"shield","shield-check":"checkmark.shield","shopping-bag":"bag","shopping-cart":"cart",shuffle:"shuffle","skip-back":"backward.end","skip-forward":"forward.end",sliders:"slider.horizontal.3","sliders-horizontal":"slider.horizontal.3",smartphone:"iphone",snowflake:"snowflake",sparkles:"sparkles",sprout:"leaf",square:"square",star:"star",stopwatch:"stopwatch",store:"storefront","stretch-horizontal":"rectangle.split.1x2",sun:"sun.max",sunrise:"sunrise",sunset:"sunset",tag:"tag",target:"scope",thermometer:"thermometer.medium","thumbs-up":"hand.thumbsup",timer:"timer",trash:"trash","trash-2":"trash","trending-down":"chart.line.downtrend.xyaxis","trending-up":"chart.line.uptrend.xyaxis","triangle-alert":"exclamationmark.triangle",trophy:"trophy",unlink:"personalhotspot.slash",upload:"arrow.up.circle",user:"person","user-check":"person.crop.circle.badge.checkmark","user-minus":"person.badge.minus","user-plus":"person.badge.plus","user-round":"person","user-round-check":"person.crop.circle.badge.checkmark","user-round-minus":"person.crop.circle.badge.minus","user-round-plus":"person.crop.circle.badge.plus","user-round-x":"person.crop.circle.badge.xmark","user-x":"person.crop.circle.badge.xmark",users:"person.2","users-round":"person.2",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function Ce(r,e=!1){let t=String(r??"").trim();if(!t)return{symbol:"circle",known:!1};if(e)return{symbol:t,known:!0};let i=/^i-([a-z0-9]+)-(.+)$/.exec(t)??/^([a-z0-9]+):(.+)$/.exec(t),s=i?i[1]:"lucide",a=i?i[2]:t;if(s==="lucide"){let c=_n[a];if(c)return{symbol:c,iconify:`i-lucide-${a}`,known:!0};if(!i&&t.includes("."))return{symbol:t,known:!0}}return{symbol:"circle",iconify:i?t:`i-lucide-${a}`,known:!1}}var dt=/^--[\w\u0080-\uFFFF-]+$/u;function ut(r,e){if(!/var\(/i.test(r))return r;let t="",i="",s=!1;for(let a=0;a<r.length;a++){let c=r[a];if(c==="\\"){t+=r.slice(a,a+2),a++;continue}if(i){if(t+=c,c===i)i="";continue}if(c==='"'||c==="'"){i=c,t+=c;continue}if(r.slice(a,a+4).toLowerCase()!=="var("||a>0&&/[\w-]/.test(r[a-1])){t+=c;continue}let l=1,f=-1,m="",v=a+4;for(;v<r.length;v++){let g=r[v];if(g==="\\"){v++;continue}if(m){if(g===m)m="";continue}if(g==='"'||g==="'"){m=g;continue}if(g==="(")l++;if(g===")"&&--l===0)break;if(g===","&&l===1&&f===-1)f=v}if(l!==0)return;let y=r.slice(a+4,f===-1?v:f).trim();if(!dt.test(y))return;let b=e(y,f===-1?void 0:r.slice(f+1,v).trim());if(b===void 0||t.length+b.length>65536)return;t+=b,s=!0,a=v}return s&&t.length>65536?void 0:t}function Q(r,e){let t=new Map,i=new Set;for(let[p,h]of r){let w=p.trim();if(!dt.test(w))continue;if(typeof h==="string"||typeof h==="number"&&Number.isFinite(h))t.set(w,String(h).trim())}let s=new Map,a=new Set;for(let[p,h]of t){let w=new Set,N=(S,d=0)=>d>64?void 0:ut(S,(x,A)=>(w.add(x),A===void 0?"":N(A,d+1)));if(N(h)===void 0)a.add(p);s.set(p,w)}let c=new Map,l=new Map,f=[],m=new Set,v=0;function y(p,h=0){if(h>64){a.add(p);return}c.set(p,v),l.set(p,v++),f.push(p),m.add(p);for(let S of s.get(p)??[]){if(!t.has(S))continue;if(!c.has(S)){if(y(S,h+1),l.has(S))l.set(p,Math.min(l.get(p),l.get(S)))}else if(m.has(S))l.set(p,Math.min(l.get(p),c.get(S)))}if(l.get(p)!==c.get(p))return;let w=[],N;do N=f.pop(),m.delete(N),w.push(N);while(N!==p);if(w.length>1||s.get(p)?.has(p))w.forEach((S)=>a.add(S))}for(let p of t.keys())if(!c.has(p))y(p);let b=new Map;function g(p,h){if(i.add(p),b.has(p))return b.get(p);let w=t.get(p),N=w===void 0||/^(?:inherit|unset)$/i.test(w)?e?.get(p):a.has(p)||/^(?:initial|revert|revert-layer)$/i.test(w)?void 0:u(w,h+1);return b.set(p,N),N}function u(p,h=0){if(h>64)return;return ut(p,(w,N)=>g(w,h)??(N===void 0?void 0:u(N,h+1)))}return{resolve:u,used:i,computed(){let p=new Map(e);for(let h of t.keys())p.set(h,g(h,0));return p}}}function Oe(r){if(r.display==="flex"&&r.flexDirection==null)return{...r,flexDirection:"row"};return r}var ft=new Set(["display","gridColumns","gridTemplateColumns","gridTemplateRows","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","order","justifyContent","alignItems","alignSelf","alignContent","position","top","right","bottom","left","zIndex","width","height","minWidth","maxWidth","minHeight","maxHeight","aspectRatio","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderStyle","backgroundColor","backgroundImage","opacity","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","color","fontSize","fontWeight","fontStyle","fontFamily","lineHeight","letterSpacing","textAlign","textDecorationLine","textDecorationColor","textTransform","resizeMode","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),En=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","order","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing","strokeWidth"]),pt=new Set(["top","right","bottom","left","width","height","minWidth","maxWidth","minHeight","maxHeight","flexBasis","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical"]),In=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,Cn=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,On=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),Pn=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function Bn(r){if(typeof r!=="string")return r;let e=Cn.exec(r);return e?Number(e[1])*(/^r?em$/i.test(e[2]||"")?16:1):r}function K(r){return typeof r==="number"&&Number.isFinite(r)}function Mn(r,e){if(r==="shadowOffset"&&e&&typeof e==="object"&&!Array.isArray(e)){let{width:t,height:i}=e;return K(t)&&K(i)?{width:t,height:i}:void 0}if(r==="transform"&&Array.isArray(e)){let t=[];for(let i of e){if(!i||typeof i!=="object"||Array.isArray(i)||Object.keys(i).length!==1)return;let[s,a]=Object.entries(i)[0];if(Pn.has(s)&&K(a))t.push({[s]:a});else if(On.has(s)&&typeof a==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(a))t.push({[s]:a});else return}return t}return}function Dn(r){let e=[],t=0,i=0,s="";for(let a=0;a<=r.length;a++){let c=r[a];if(c==="\\"){a++;continue}if(s){if(c===s)s="";continue}if(c==='"'||c==="'"){s=c;continue}if(c==="(")i++;if(c===")")i=Math.max(0,i-1);if(a!==r.length&&(c!==";"||i))continue;let l=r.slice(t,a),f=l.indexOf(":");if(f!==-1)e.push([l.slice(0,f).trim(),l.slice(f+1).trim()]);t=a+1}return e}function Ln(r,e){let t;if(typeof r==="string"){if(r=r.trim(),!r)return[];try{r=JSON.parse(r)}catch{}}if(typeof r==="string")t=Dn(r);else if(r&&typeof r==="object"&&!Array.isArray(r))t=Object.entries(r);else{if(r!=null&&r!==!1)e({kind:"non-numeric-style",name:"style"});return[]}return t}function gt(r,e=()=>{},t={}){let i=Ln(r,e),s=Q(i,t.inheritedVariables);return t.onVariables?.(s.computed()),Vn(i,s,e)}function Vn(r,e,t){let i={},s=[];for(let[a,c]of r){if(a.trim().startsWith("--")){s.push(a.trim());continue}let l=ft.has(a)||a.trim().startsWith("--")?a:a.trim().toLowerCase().replace(/-([a-z])/g,(v,y)=>y.toUpperCase());if(!ft.has(l)){t({kind:"unknown-style",name:l});continue}if(c==null||c==="")continue;let f=typeof c==="string"?e.resolve(c.trim()):c;if(f===void 0){t({kind:"non-numeric-style",name:l});continue}if(f==="")continue;let m;if(En.has(l)||pt.has(l)){if(m=Bn(f),!K(m)&&!(pt.has(l)&&typeof m==="string"&&m.endsWith("%")&&In.test(m.slice(0,-1))&&Number.isFinite(Number(m.slice(0,-1)))))m=void 0}else if(l==="display"&&f==="inline-flex")m="flex";else if(l==="shadowOffset"||l==="transform")m=Mn(l,f);else if(l==="gridTemplateColumns"||l==="gridTemplateRows")m=K(f)||typeof f==="string"?f:void 0;else if(l==="fontWeight"&&K(f))m=String(f);else if(typeof f==="string")m=f;if(m===void 0)t({kind:"non-numeric-style",name:l});else i[l]=m}for(let a of s)if(!e.used.has(a))t({kind:"unknown-style",name:a});return i}import{generate as Z,parse as ht}from"@stacksjs/ts-css/parse";async function mt(r,e){let t={light:new Map,dark:new Map},i=new Set,s=(y)=>{if(!i.has(y))i.add(y),e(y)},a=(y,b,g)=>{for(let u of g){let p=t[u].get(y);if(!p||Number(b.important)>Number(p.important)||b.important===p.important&&b.specificity>=p.specificity)t[u].set(y,b)}},c=(y)=>{if(y.type==="Declaration")return y.property.startsWith("--");if(y.type==="Rule"||y.type==="Atrule")return!!y.block&&[...y.block.children].some(c);return!1},l=(y)=>{let b=y.replace(/\s+/g,"").toLowerCase();if(!b||b==="all"||b==="screen")return["light","dark"];let g=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(b);return g?[g[1]]:void 0};function f(y,b){for(let g of y){if(!c(g))continue;if(g.type==="Atrule"){let p=g.prelude?Z(g.prelude):"",h=g.name.toLowerCase()==="media"?l(p):void 0;if(!h){s(`@${g.name} ${p}`.trim());continue}f(g.block.children,b.filter((w)=>h.includes(w)));continue}if(g.type!=="Rule")continue;let u=g.prelude.type==="SelectorList"?[...g.prelude.children].map(Z):[Z(g.prelude)];for(let p of u){let h=/^(html|:root)?(?:\.(dark|light))?$/.exec(p.trim());if(!h||!h[1]&&!h[2]){s(p);continue}let w=(h[1]===":root"?10:h[1]?1:0)+(h[2]?10:0);for(let N of g.block.children){if(N.type!=="Declaration"){if(c(N))s(`nested rule in ${p}`);continue}if(!N.property.startsWith("--"))continue;let S={value:Z(N.value),important:!!N.important,specificity:w};a(N.property,S,b.filter((d)=>!h[2]||h[2]===d))}}}}let m="",v;return await new HTMLRewriter().on("html",{element(y){let b=y.getAttribute("style");if(!b)return;try{let g=ht(b,{context:"declarationList"});if(g.type!=="DeclarationList")return;for(let u of g.children)if(u.type==="Declaration"&&u.property.startsWith("--"))a(u.property,{value:Z(u.value),important:!!u.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(y){m="";let b=y.getAttribute("type");v=!b||b.toLowerCase()==="text/css"?l(y.getAttribute("media")??""):void 0,y.onEndTag(()=>{try{let g=ht(m);if(g.type!=="StyleSheet")return;if(!v){if([...g.children].some(c))s("style type/media");return}f(g.children,v)}catch{s("invalid stylesheet")}})},text(y){m+=y.text}}).transform(new Response(r)).text(),{light:[...t.light].map(([y,b])=>[y,b.value]),dark:[...t.dark].map(([y,b])=>[y,b.value])}}function z(r,e={},t={},i={},s=[]){return{type:r,props:e,style:t,events:i,children:s}}function yt(r,e,t={}){return{version:"1.0.0",root:r,script:e,meta:{source:t.source||"unknown",compiledAt:t.compiledAt||Date.now(),headwindConfig:t.headwindConfig}}}var bt=new Set(["script","style","head","meta","link","title","base","noscript"]),vt=new Set(["template","body","html","main","fragment"]),oe=new Set,$n=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),Pe=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...Te]),jn=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),wt=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Fn={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function G(r){return r.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,t)=>{let i=Fn[t.toLowerCase()];if(i!==void 0)return i;if(t[0]==="#"){let s=t[1]==="x"||t[1]==="X"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):e}return e})}function St(r,e,t,i={}){let s=i.inheritedVariables,a={},c={},l={},f="",m={};for(let[b,g]of e){let u=b.toLowerCase();if(u==="class"||u==="classname"){f=f?`${f} ${g}`:g;continue}if(u==="style"){m={...m,...Wn(r,g,t,{...i,onVariables(w){s=w,i.onVariables?.(w)}})};continue}if(u.startsWith(":")||u.startsWith("x-")&&u!=="x-cloak"){l[u.startsWith(":")?u.slice(1):u.slice(2)]=G(g);continue}if(u==="x-cloak")continue;if(u.startsWith("@")||u.startsWith("v-on:")){let w=u.startsWith("@")?u.slice(1):u.slice(5),[N]=w.split("."),S=Ne[N]??(N.startsWith("on")?N:"");if(!S||!$n.has(S)){t.push({kind:"unread-event",tag:r,name:b});continue}c[S]=G(g);continue}if(u==="key"){a.key=g;continue}let p=G(g),h=Ie(b);if(p===""&&at.has(h)){a[h]=!0;continue}try{a[h]=JSON.parse(p)}catch{a[h]=p}}let v=f?se(f,s):void 0;for(let b of new Set(v?.unknown??[]))t.push({kind:"unknown-class",tag:r,name:b});let y=Oe({...v?.style,...m});return{props:a,style:y,events:c,bindings:l,classes:f,inline:m}}function Wn(r,e,t,i){return gt(G(e),(s)=>t.push({...s,tag:r}),i)}function Be(r){return r.children.map((e)=>typeof e==="string"?e:Be(e)).join("").replace(/\s+/g," ").trim()}function Xn(r,e){let t=r.node,i=t.children.filter((a)=>typeof a!=="string"),s=t.children.filter((a)=>typeof a==="string").join("").trim();if(r.tag==="button"&&t.type==="Button"&&!r.declaredNative&&i.length>0)return t.type="Pressable",t.props.role??="button",t.children=t.children.flatMap((a)=>typeof a==="string"?a.trim()?[z("Text",{},{},{},[a.trim()])]:[]:[a]),t;if(t.type==="Button"&&i.length===0)return t.children=s?[s]:[],t;if(t.type==="Svg"||t.type==="G")return t.children=i,t;if(t.type==="SvgText"){let a=Be(t);return t.children=a?[a]:[],t}if(wt.has(t.type)&&i.length===0&&s)return t.type="Text",t.children=[s],t;if(t.type==="Text"&&!s&&i.length===0&&typeof t.props.text==="string")return t.children=t.props.text?[t.props.text]:[],delete t.props.text,t;if(t.type==="Text"&&i.length>0){if(/(?:^|\s)(?:inline-)?(?:flex|grid)(?:\s|$)/.test(t._classes??"")||i.some((l)=>l.type!=="Text"))return t.type="View",t.children=t.children.map((l)=>typeof l==="string"?z("Text",{},{},{},[l]):l),t;let c=Be(t);return e.push({kind:"flattened-text",tag:r.tag}),t.children=c?[c]:[],t}if(wt.has(t.type)&&i.length>0)t.children=i;return t}async function zn(r,e={}){let t=[],i=await mt(r,(u)=>t.push({kind:"unsupported-theme-rule",tag:"style",name:u})),s=Q(i.light).computed(),a=[],c=[],l=new Set;function f(u){let p=c[c.length-1];if(!p)a.push(u);else if(!p.dropped)p.node.children.push(u)}function m(u){let p=(w)=>{if(u.tag!=="html"&&u.node._styleSource)w._styleAncestors=[u.node._styleSource,...w._styleAncestors??[]]};if(u.node.bindings&&Object.keys(u.node.bindings).length>0){let w=u.node.children,N=w.filter((d)=>typeof d!=="string"),S=N.length===1&&N.length===w.length?N[0]:z("View",{},{},{},w);if(S.bindings={...u.node.bindings,...S.bindings},S.bindingId===void 0&&u.node.bindingId!==void 0)S.bindingId=u.node.bindingId;p(S),f(S);return}let h=c[c.length-1];for(let w of u.node.children){if(typeof w==="string"){if(h&&!h.dropped)h.node.children.push(w);continue}if(p(w),!h)a.push(w);else if(!h.dropped)h.node.children.push(w)}}function v(u,p){let h=c[c.length-1];if(u==="svg"||h?.svg)return y(u,p,h);let w=bt.has(u)&&!oe.has(u),N=c[c.length-1]?.dropped??!1,S=h?.variables??s,{props:d,style:x,events:A,bindings:F,classes:k,inline:L}=w||N?{props:{},style:{},events:{},bindings:{},classes:"",inline:{}}:St(u,p,t,{inheritedVariables:S,onVariables:(E)=>{S=E}});if(u==="html")S=s;let P=d["data-native"],T;if(typeof P==="string"&&Pe.has(P))T=P,delete d["data-native"];else if(T=oe.has(u)?"View":lt(u),u==="input"){let E=String(d.type??"text").toLowerCase();if(E==="checkbox")T="Checkbox",d.formValue=d.value??"on",d.checked=d.checked===""||d.checked===!0||d.checked==="true",d.value=d.checked;else if(E==="hidden")T="View",x.display="none",L.display="none";else if(E==="radio")T="View",d.accessibilityRole="radio",t.push({kind:"unsupported-control",tag:u,name:"input:radio"})}if(T===u&&!Pe.has(T)&&!bt.has(u)&&!vt.has(u)&&!l.has(u))l.add(u),t.push({kind:"unmapped-tag",tag:u});if((w||oe.has(u))&&!l.has(`drop:${u}`))l.add(`drop:${u}`),t.push({kind:"dropped-subtree",tag:u});if(T==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(k))T="ScrollView",d.horizontal=!0,d.showsHorizontalScrollIndicator??=!1;else if(T==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(k))T="ScrollView";if(u==="form")d["data-stx-form"]=!0;if(u==="button"&&d.type===void 0)d.type="submit";if(T==="Video"&&d.source===void 0&&d.src!==void 0)d.source=d.src,delete d.src;if(T==="Icon"){let E=se(k).icon,R=Ce(String(d.symbol||d.name||E||""),Boolean(d.symbol));if(d.symbol=R.symbol,R.iconify)d.iconify=R.iconify}if(T==="FlatList"||T==="SectionList"){let E=new Set([...Object.keys(d),...Object.keys(F)].map((R)=>R.toLowerCase()));for(let[R,B]of jn)if(E.has(R))t.push({kind:"unsupported-list-prop",tag:T,name:B})}let _=z(T,d,x,A);_._inlineStyle=L,_._styleSource=G(p.find(([E])=>E==="style")?.[1]??"");let I=d["data-stx-b"];if(typeof I==="number"&&Number.isInteger(I))_.bindingId=I;if(delete d["data-stx-b"],k)_._classes=k;if(Object.keys(F).length>0)_.bindings=F;if(typeof d.key==="string")_.key=d.key,delete d.key;return{tag:u,node:_,variables:S,declaredNative:typeof P==="string"&&Pe.has(P),dropped:w||N||oe.has(u),discard:w||N,unwrap:vt.has(u)}}function y(u,p,h){let w=h?.dropped??!1,N=ke[u];if(w||!N){if(!w&&!l.has(`drop:${u}`))l.add(`drop:${u}`),t.push({kind:st.has(u)?"dropped-subtree":"unmapped-tag",tag:u});return{tag:u,node:z("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let S=h?.variables??s,{props:d,style:x,events:A,bindings:F,classes:k,inline:L}=St(u,p,t,{inheritedVariables:S,onVariables:(I)=>{S=I}});if(N==="Svg"){let I=Re(d.viewBox);if(I)d.viewBox=I;else delete d.viewBox;for(let E of["width","height"]){if(typeof d[E]==="number"&&x[E]===void 0)x[E]=d[E];delete d[E]}}if(typeof d.strokeDasharray==="string"||typeof d.strokeDasharray==="number"){let I=String(d.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);d.strokeDasharray=I}let P=Ae(N,d);if(P)d.geometry=P;let T=z(N,d,x,A);T._inlineStyle=L,T._styleSource=G(p.find(([I])=>I==="style")?.[1]??"");let _=d["data-stx-b"];if(typeof _==="number"&&Number.isInteger(_))T.bindingId=_;if(delete d["data-stx-b"],k)T._classes=k;if(Object.keys(F).length>0)T.bindings=F;if(typeof d.key==="string")T.key=d.key,delete d.key;return{tag:u,node:T,variables:S,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(u){let p=u.tagName.toLowerCase(),h=v(p,[...u.attributes]),w=!0;try{u.onEndTag(()=>{if(c.pop(),h.discard)return;if(h.unwrap)m(h);else f(Xn(h,t))})}catch{w=!1}if(w)c.push(h);else if(!h.discard)f(h.node)},text(u){let p=c[c.length-1];if(!p||p.dropped)return;let h=G(u.text).replace(/\s+/g," ");if(!h.trim())return;p.node.children.push(h)}}).transform(new Response(r)).text(),a.length===0)throw Error(`No element to translate in the rendered output of ${e.source??"unknown"}`);let b=a.length===1?a[0]:z("View",{},{},{},a);if(i.light.length||i.dark.length)b._stylesheetTheme=i;let g=(u)=>{let p=Se(u.props);if(Object.keys(p).length)u._accessibilitySource=Object.fromEntries(we.filter((h)=>(h in u.props)).map((h)=>[h,u.props[h]])),Object.assign(u.props,p);for(let h of u.children)if(typeof h!=="string")g(h)};return g(b),{root:b,diagnostics:t}}async function Nt(r,e={}){let{root:t,diagnostics:i}=await zn(r,e),s=e.script??{exports:{},functions:[],code:""};return{document:yt(t,s,{source:e.source??"unknown"}),diagnostics:i}}var xt=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Hn=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,Un=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,kt=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function Me(r){let e=[];xt.lastIndex=0;for(let a of r.matchAll(xt)){let c=a[1]??"";if(/\bserver\b/.test(c))continue;e.push(a[2].trim())}let t=e.filter(Boolean).join(`
4
4
 
5
- `),i=[];for(let a of[Hn,Un]){a.lastIndex=0;for(let c of t.matchAll(a))if(!i.includes(c[1]))i.push(c[1])}let s={};kt.lastIndex=0;for(let a of t.matchAll(kt)){let c=a[2];try{s[a[1]]=JSON.parse(c.replace(/^'(.*)'$/,'"$1"'))}catch{s[a[1]]=c}}return{exports:s,functions:i,code:t}}var ae=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,Tt=/function\s+(__stx_setup_[\w$]+)\s*\(/,qn=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function De(r){ae.lastIndex=0;for(let e of r.matchAll(ae)){let t=e[2].trim(),i=Tt.exec(t)?.[1];if(i)return{name:i,code:t}}return null}function Rt(r){let e=[];ae.lastIndex=0;for(let t of r.matchAll(ae)){let i=t[1],s=t[2].trim(),a=qn.exec(i)?.[1],c=/\bdata-stx-component-factories\b/i.test(i);if(!s||!a&&!c&&!Tt.test(s))continue;e.push(a?{code:s,owner:a}:{code:s})}return e}function Jn(){let r=[ee.join(import.meta.dir,"..","primitives"),ee.join(import.meta.dir,"native","primitives")];for(let e of r)if(Gn(ee.join(e,"View.stx")))return e;return r[0]}async function Kn(r,e,t={}){let i=t.root??ee.dirname(e),s=await o(i),a={root:i,componentsDir:t.componentsDir??s.componentsDir??ee.join(i,"components"),buildMode:"serve",cache:!1,_targetComponentDirs:[Jn()],_targetComponentFallbackNames:["Button","Checkbox","Switch"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},c={...t.context??{},__stx_inject_css:!1},l=new Set([e]),f=await n(r,c,e,a,l),{html:m,manifest:v}=ze(f),y=await et(i),{document:b,diagnostics:g}=await Nt(y?`<style>${y}</style>${m}`:m,{source:e,script:Me(r)}),u=De(m),p=Rt(m);if(Me(r).code.trim()){let d=await dr(r,e,t.context,{forceClientSetup:!0}),x=De(d.setupCode??"");if(u=x??u,x&&!p.some((A)=>A.code===x.code))p.push({code:x.code})}let{buildModuleRegistryScript:h,registeredModuleIdsIn:w}=await import("./chunk-v9qh2bak.js"),N=[],S=await h(w(...p.map((d)=>d.code)),{collectInputs:N});for(let d of N)l.add(d);if(S)p.unshift({code:S});return{document:b,manifest:v,setup:u,scripts:p,diagnostics:g,html:m,dependencies:[...l]}}async function ce(r,e={}){return Kn(await Bun.file(r).text(),r,e)}var te="__app";var le="__runtime",er="__messages";function Le(r){let t=[C.join(import.meta.dir,"..","runtime",`${r}.ts`),C.join(import.meta.dir,"..","runtime",`${r}.js`),C.join(import.meta.dir,"native","runtime",`${r}.js`)].find((i)=>$e(i));if(!t)throw Error(`Native runtime module ${r} is missing`);return t}async function Ve(r,e,t,i,s){let a={name:"stx-screen-inputs",setup(l){l.onLoad({filter:/.*/,namespace:"file"},({path:f})=>{i.add(f);let m=s?.get(f);return m===void 0?void 0:{contents:m,loader:"js"}})}},c=await Bun.build({entrypoints:[r],target:"browser",format:"iife",minify:t,plugins:[a,...e],define:{"process.env.NODE_ENV":JSON.stringify(t?"production":"development")}});if(!c.success){let l=c.logs.map((f)=>String(f.message??f)).join(`
5
+ `),i=[];for(let a of[Hn,Un]){a.lastIndex=0;for(let c of t.matchAll(a))if(!i.includes(c[1]))i.push(c[1])}let s={};kt.lastIndex=0;for(let a of t.matchAll(kt)){let c=a[2];try{s[a[1]]=JSON.parse(c.replace(/^'(.*)'$/,'"$1"'))}catch{s[a[1]]=c}}return{exports:s,functions:i,code:t}}var ae=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,Tt=/function\s+(__stx_setup_[\w$]+)\s*\(/,qn=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function De(r){ae.lastIndex=0;for(let e of r.matchAll(ae)){let t=e[2].trim(),i=Tt.exec(t)?.[1];if(i)return{name:i,code:t}}return null}function Rt(r){let e=[];ae.lastIndex=0;for(let t of r.matchAll(ae)){let i=t[1],s=t[2].trim(),a=qn.exec(i)?.[1],c=/\bdata-stx-component-factories\b/i.test(i);if(!s||!a&&!c&&!Tt.test(s))continue;e.push(a?{code:s,owner:a}:{code:s})}return e}function Jn(){let r=[ee.join(import.meta.dir,"..","primitives"),ee.join(import.meta.dir,"native","primitives")];for(let e of r)if(Gn(ee.join(e,"View.stx")))return e;return r[0]}async function Kn(r,e,t={}){let i=t.root??ee.dirname(e),s=await o(i),a={root:i,componentsDir:t.componentsDir??s.componentsDir??ee.join(i,"components"),buildMode:"serve",cache:!1,_targetComponentDirs:[Jn()],_targetComponentFallbackNames:["Button","Checkbox","Switch"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},c={...t.context??{},__stx_inject_css:!1},l=new Set([e]),f=await n(r,c,e,a,l),{html:m,manifest:v}=ze(f),y=await et(i),{document:b,diagnostics:g}=await Nt(y?`<style>${y}</style>${m}`:m,{source:e,script:Me(r)}),u=De(m),p=Rt(m);if(Me(r).code.trim()){let d=await dr(r,e,t.context,{forceClientSetup:!0}),x=De(d.setupCode??"");if(u=x??u,x&&!p.some((A)=>A.code===x.code))p.push({code:x.code})}let{buildModuleRegistryScript:h,registeredModuleIdsIn:w}=await import("./chunk-fvk33v69.js"),N=[],S=await h(w(...p.map((d)=>d.code)),{collectInputs:N});for(let d of N)l.add(d);if(S)p.unshift({code:S});return{document:b,manifest:v,setup:u,scripts:p,diagnostics:g,html:m,dependencies:[...l]}}async function ce(r,e={}){return Kn(await Bun.file(r).text(),r,e)}var te="__app";var le="__runtime",er="__messages";function Le(r){let t=[C.join(import.meta.dir,"..","runtime",`${r}.ts`),C.join(import.meta.dir,"..","runtime",`${r}.js`),C.join(import.meta.dir,"native","runtime",`${r}.js`)].find((i)=>$e(i));if(!t)throw Error(`Native runtime module ${r} is missing`);return t}async function Ve(r,e,t,i,s){let a={name:"stx-screen-inputs",setup(l){l.onLoad({filter:/.*/,namespace:"file"},({path:f})=>{i.add(f);let m=s?.get(f);return m===void 0?void 0:{contents:m,loader:"js"}})}},c=await Bun.build({entrypoints:[r],target:"browser",format:"iife",minify:t,plugins:[a,...e],define:{"process.env.NODE_ENV":JSON.stringify(t?"production":"development")}});if(!c.success){let l=c.logs.map((f)=>String(f.message??f)).join(`
6
6
  `);throw Error(`Could not bundle ${r}:
7
7
  ${l}`)}return(await c.outputs[0].text()).trim()}var tr=/^[\w-]+(?:\/[\w-]+)*$/,nr=/^[\w-]+$/;async function rr(r,e){let t=C.resolve(r,e.dir);if(!e.languages?.length)throw Error("messages.languages must name at least one language");let i=new Map,s=new Map;for(let a of e.languages){if(!nr.test(a))throw Error(`messages: "${a}" is not a language directory name`);let c=C.join(t,a);if(!$e(c))throw Error(`messages: ${C.relative(r,c)} does not exist`);let l=new Map;for(let f of[...new Bun.Glob("**/*.{ts,js,mjs,json}").scanSync({cwd:c})].sort()){if(/\.(?:test|spec|d)\.[^.]+$/.test(f))continue;let m=f.replace(/\.[^./]+$/,"").split(C.sep).join("/");if(!tr.test(m))throw Error(`messages: ${a}/${f} is not an area name`);if(l.has(m))throw Error(`messages: ${a}/${m} is defined twice`);let v=C.join(c,f),y=await import(v),b=Object.keys(y).filter((p)=>p!=="default");if(b.length)throw Error(`messages: ${a}/${f} exports ${b.join(", ")}; a message module exports its messages as default, and nothing else`);let g=y.default,u=g!==null&&typeof g==="object"&&!Array.isArray(g)?JSON.stringify(g):void 0;if(u===void 0||!Bun.deepEquals(JSON.parse(u),g,!0))throw Error(`messages: ${a}/${f} must export plain data (an object JSON can hold) as default`);l.set(m,u),i.set(v,{language:a,area:m})}s.set(a,l)}return{files:i,data:s}}function ir(r,e){return`export default globalThis.__stxNativeRuntime.messages(${JSON.stringify(r)}, ${JSON.stringify(e)});`}function sr(r){let e=new Map;for(let[t,{language:i,area:s}]of r.files){let a=ir(i,s);e.set(t,a),e.set(Zn(t),a)}return e}function or(r){let e=new Set;for(let t of r.matchAll(/__stxNativeRuntime\.messages\(\s*"[\w-]+"\s*,\s*"([\w/-]+)"\s*\)/g))e.add(t[1]);return[...e].sort()}function ar(r,e){let t=C.isAbsolute(r.meta.source)?C.relative(e,r.meta.source).split(C.sep).join("/"):r.meta.source;return{...r,script:{exports:r.script.exports,functions:[],code:""},meta:{...r.meta,source:t,compiledAt:0}}}async function je(r){let e=Object.keys(r.screens);if(e.length===0)throw Error("screens must name at least one .stx file");let t=r.routed??!0,i=r.initialScreen??e[0];if(!r.screens[i])throw Error(`Initial screen ${i} is not in screens`);let s=C.resolve(r.root??process.cwd());if(r.messages&&!r.routesDir)throw Error("messages ship a language at a time beside route files: they need routesDir");if(r.sharedRuntime&&!r.routesDir)throw Error("sharedRuntime is the route files' runtime: it needs routesDir");if(r.messages&&!r.sharedRuntime)throw Error("messages are read by the shared runtime: they need sharedRuntime");if(r.messages&&r.outFile)throw Error("messages leave the languages out of the screens' code, which the one-file bundle cannot read: build it without messages");let a=r.messages?await rr(s,r.messages):null,c=a?sr(a):null,l=[],f=async()=>{for(let k of e){let L=C.resolve(s,r.screens[k]);if(!L.endsWith(".stx"))throw Error(`Screen ${k} must name a .stx file`);l.push({name:k,file:L,compiled:await ce(L,{root:s})})}};if(c)await us(c,f);else await f();let m=Le("jsc-globals"),v=Le("shared-screen"),y=r.app?C.resolve(s,r.app):null;if(y&&!$e(y))throw Error(`The app script ${r.app} does not exist`);if(y&&!t)throw Error("An app script needs a routed bundle");if(y&&r.screens[te])throw Error(`${te} is the app script's route, not a screen name`);let b=r.browser;if(r.screens[le])throw Error(`${le} is the runtime prelude's file, not a screen name`);let g=He();if(b&&r.routesDir)throw Error("A browser screen is one route; routesDir is for device hosts");let u=(k,L,P)=>{let T=t?`var routeName = g.__stxNativeRoute || ${JSON.stringify(i)};
8
8
  var isApp = ${y?`routeName === ${JSON.stringify(te)}`:"false"};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{A,rl,zs,o,P,wd,xd}from"./chunk-v66yd92a.js";import"./chunk-n5xbv1a9.js";import"./chunk-10s16tad.js";import"./chunk-z4te6223.js";import"./chunk-hnagpvee.js";import"./chunk-gc1dzxee.js";import"./chunk-khzyc41k.js";import"./chunk-x6pz1h3x.js";import"./chunk-1gtrs8va.js";import"./chunk-66e4ga0z.js";import"./chunk-dvbgbd06.js";import"./chunk-sxpnpvt5.js";import"./chunk-jp6yn9mj.js";export{P as config,A as defaultConfig,wd as defineStxConfig,zs as discoverConfig,o as loadStxConfig,rl as resolveStxDirectories,xd as validateConfig};
2
+ import{A,rl,zs,o,P,wd,xd}from"./chunk-e030grrq.js";import"./chunk-n5xbv1a9.js";import"./chunk-10s16tad.js";import"./chunk-z4te6223.js";import"./chunk-j8vd52sg.js";import"./chunk-gc1dzxee.js";import"./chunk-khzyc41k.js";import"./chunk-x6pz1h3x.js";import"./chunk-1gtrs8va.js";import"./chunk-66e4ga0z.js";import"./chunk-dvbgbd06.js";import"./chunk-sxpnpvt5.js";import"./chunk-jp6yn9mj.js";export{P as config,A as defaultConfig,wd as defineStxConfig,zs as discoverConfig,o as loadStxConfig,rl as resolveStxDirectories,xd as validateConfig};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{vl}from"./chunk-qst8ztxa.js";import"./chunk-v66yd92a.js";import"./chunk-n5xbv1a9.js";import"./chunk-10s16tad.js";import"./chunk-z4te6223.js";import"./chunk-hnagpvee.js";import"./chunk-gc1dzxee.js";import"./chunk-khzyc41k.js";import"./chunk-x6pz1h3x.js";import"./chunk-1gtrs8va.js";import"./chunk-66e4ga0z.js";import"./chunk-dvbgbd06.js";import"./chunk-sxpnpvt5.js";import"./chunk-jp6yn9mj.js";export{vl as startInteractive};
2
+ import{vl}from"./chunk-5wa3ydkf.js";import"./chunk-e030grrq.js";import"./chunk-n5xbv1a9.js";import"./chunk-10s16tad.js";import"./chunk-z4te6223.js";import"./chunk-j8vd52sg.js";import"./chunk-gc1dzxee.js";import"./chunk-khzyc41k.js";import"./chunk-x6pz1h3x.js";import"./chunk-1gtrs8va.js";import"./chunk-66e4ga0z.js";import"./chunk-dvbgbd06.js";import"./chunk-sxpnpvt5.js";import"./chunk-jp6yn9mj.js";export{vl as startInteractive};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{qe,$c,rd,sd,od,id,Rc,Ac,ad,cd,gi,ld,vn,wn,ar}from"./chunk-v66yd92a.js";import"./chunk-n5xbv1a9.js";import"./chunk-10s16tad.js";import"./chunk-z4te6223.js";import"./chunk-hnagpvee.js";import"./chunk-gc1dzxee.js";import"./chunk-khzyc41k.js";import"./chunk-x6pz1h3x.js";import"./chunk-1gtrs8va.js";import"./chunk-66e4ga0z.js";import"./chunk-dvbgbd06.js";import"./chunk-sxpnpvt5.js";import"./chunk-jp6yn9mj.js";export{id as __setSignalsGeneratorsForTest,qe as cacheEngineFingerprint,wn as cacheTemplate,vn as checkCache,ld as clearDevCaches,Ac as getCachedRouterScript,Rc as getCachedSignalsRuntime,ad as getServeClientAsset,gi as getServeModuleBundle,ar as hashFilePath,sd as invalidateFileCache,od as invalidateFileCacheByDir,rd as readFileCached,cd as registerServeModuleBundle,$c as templateCache};
2
+ import{qe,$c,rd,sd,od,id,Rc,Ac,ad,cd,gi,ld,vn,wn,ar}from"./chunk-e030grrq.js";import"./chunk-n5xbv1a9.js";import"./chunk-10s16tad.js";import"./chunk-z4te6223.js";import"./chunk-j8vd52sg.js";import"./chunk-gc1dzxee.js";import"./chunk-khzyc41k.js";import"./chunk-x6pz1h3x.js";import"./chunk-1gtrs8va.js";import"./chunk-66e4ga0z.js";import"./chunk-dvbgbd06.js";import"./chunk-sxpnpvt5.js";import"./chunk-jp6yn9mj.js";export{id as __setSignalsGeneratorsForTest,qe as cacheEngineFingerprint,wn as cacheTemplate,vn as checkCache,ld as clearDevCaches,Ac as getCachedRouterScript,Rc as getCachedSignalsRuntime,ad as getServeClientAsset,gi as getServeModuleBundle,ar as hashFilePath,sd as invalidateFileCache,od as invalidateFileCacheByDir,rd as readFileCached,cd as registerServeModuleBundle,$c as templateCache};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ht}from"./chunk-x6pz1h3x.js";import{fi,vs,V,Ge,te,Dt,x,Je,Ye,pr,u}from"./chunk-v66yd92a.js";import{D}from"./chunk-szjgbjw1.js";var H=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function B(t,n,e){let r={fullTag:e,content:n,attrs:t};if(/\bserver\b/.test(t))return{...r,type:"server"};if(/\bdata-stx-scoped\b/.test(t))return{...r,type:"client"};if(H.test(n))return{...r,type:"signals"};if(/\bclient\b/.test(t)||/\btype\s*=\s*["']module["']/.test(t)||/\bsrc\s*=/.test(t))return{...r,type:"client"};return{...r,type:"server"}}var q=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function To(t){let n=[],e=[],r=[],i=0;while(i<t.length){let s=t.indexOf("<",i);if(s===-1)break;let a=Ge(t,s);if(a>s){i=a;continue}let o=V(t,s);if(o>s){let c=t.slice(s,o),f=q.exec(c);if(f){let l=B(f[1],f[2],c);switch(l.type){case"signals":n.push(l);break;case"client":e.push(l);break;case"server":r.push(l);break}}i=o;continue}i=s+(t.startsWith("<!--",s)?4:1)}return{signals:n,client:e,server:r}}var z=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function G(t){let n=[],e=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,r;while((r=e.exec(t))!==null)n.push({start:r.index,end:r.index+r[0].length});return n}function P(t,n){return n.some((e)=>t>=e.start&&t<e.end)}function U(t){let n=(t||"").trim();if(!n)return null;if(/[\s>+~,:]/.test(n))return null;let e={},r=n,i=r.match(/^[a-z][\w-]*/i);if(i)e.tag=i[0].toLowerCase(),r=r.slice(i[0].length);while(r.length>0){let s=r.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(s){if(e.attr=s[1],s[3]!==void 0&&s[3]!=="")e.attrValue=s[3];r=r.slice(s[0].length);continue}let a=r.match(/^#([\w-]+)/);if(a){e.id=a[1],r=r.slice(a[0].length);continue}let o=r.match(/^\.([\w-]+)/);if(o){e.className=o[1],r=r.slice(o[0].length);continue}return null}if(!e.tag&&!e.attr&&!e.id&&!e.className)return null;return e}function W(t,n){if(n.attr){if(!(n.attrValue===void 0?new RegExp(`\\b${n.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${n.attr}\\s*=\\s*(["'])\\s*${n.attrValue}\\s*\\1`,"i")).test(t))return!1}if(n.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${n.id}\\s*\\1`,"i").test(t))return!1}if(n.className){let e=t.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!e)return!1;if(!e[2].split(/\s+/).includes(n.className))return!1}return!0}function O(t,n="main"){let e=U(n);if(!e)return null;let r=/<([a-z][\w-]*)\b([^>]*)>/gi,i=G(t),s;while((s=r.exec(t))!==null){if(P(s.index,i))continue;let a=s[1].toLowerCase(),o=s[2]||"";if(o.trimEnd().endsWith("/")||z.has(a))continue;if(e.tag&&e.tag!==a)continue;if(!W(o,e))continue;let c=s[0],f=s.index+c.length,l=new RegExp(`<(/?)${a}\\b([^>]*)>`,"gi");l.lastIndex=f;let g=1,m;while((m=l.exec(t))!==null){if(P(m.index,i))continue;let S=m[1]==="/";if(!S&&(m[2]||"").trimEnd().endsWith("/"))continue;if(g+=S?-1:1,g===0)return{openTag:c,openIndex:s.index,start:f,end:m.index,tagName:a}}return null}return null}var Be="private, no-store";function $o(t){return t.replace(/&#(\d+);/g,(n,e)=>M(Number(e),n)).replace(/&#x([0-9a-f]+);/gi,(n,e)=>M(Number.parseInt(e,16),n)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function M(t,n){if(!Number.isInteger(t)||t<0||t>1114111)return n;try{return String.fromCodePoint(t)}catch{return n}}function ae(t){return t.headers.get("X-STX-Router")==="true"}function X(t,n){if(!t)return n;return t.split(",").some((r)=>r.trim().toLowerCase()===n.toLowerCase())?t:`${t}, ${n}`}function T(t){return{Vary:X(t,"X-STX-Router")}}import E from"path";var J="stx-page-head:",K=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,v={dev:null,prod:null};function Y(){let t=D()?"dev":"prod",n=v[t];if(n!==null)return n;try{let e=import.meta.require("./chunk-k1vjhhd4.js"),r=t==="dev"&&typeof e.getRouterScriptDev==="function"?e.getRouterScriptDev:e.getRouterScript;v[t]=`<script>${r()}</script>`}catch{v[t]=""}return v[t]}async function Ro(t,n){if(n===!1)return null;if(n&&typeof n==="string"){let r=E.resolve(t,n);if(await Bun.file(r).exists())return r;return null}let e=E.join(t,"app.stx");if(await Bun.file(e).exists())return e;return null}async function Ur(t,n){try{let e=await Bun.file(t).text(),r=e,i=e.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if(i)r=i[1].trim();let s=To(e),a=[...s.client.map((d)=>d.fullTag),...s.signals.map((d)=>d.fullTag)],o=[],c=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,f;while((f=c.exec(e))!==null)o.push(f[0]);let l=r;for(let d of s.server)l=l.replace(d.fullTag,"");for(let d of s.client)l=l.replace(d.fullTag,"");l=l.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let g="<!--__STX_PAGE_SLOT__-->";if(l=l.replace(/<slot\s*\/>/gi,g).replace(/<slot\s*>\s*<\/slot>/gi,g),!l.includes(g))return console.warn(`[stx] Shell ${t} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:m,extractVariables:S,defaultConfig:b,loadStxConfig:w}=await import("./chunk-0ax8sqvn.js"),y=await w(),p={__filename:t,__dirname:E.dirname(t)};for(let d of a){let C=d.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(C&&!d.includes("client")&&!d.includes('type="module"'))await S(C[1],p,t)}let R=await m(l,p,t,{...b,...y,...n},new Set),h=R.indexOf(g);if(h===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:R.substring(0,h),afterSlot:R.substring(h+g.length),filePath:t,shellScripts:a,shellStyles:o}}catch(e){return console.error(`[stx] Error processing shell ${t}:`,e),null}}function Xn(t,n,e){let r,i="",s=n.match(K);if(s){n=n.replace(s[0],"");try{let l=Buffer.from(s[1],"base64").toString("utf8"),g=l.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(g)r=g[1].trim();i=l.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let a=e||r||"stx App",o=Y(),c="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
2
+ import{Ht}from"./chunk-x6pz1h3x.js";import{fi,vs,V,Ge,te,Dt,x,Je,Ye,pr,u}from"./chunk-e030grrq.js";import{D}from"./chunk-szjgbjw1.js";var H=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function B(t,n,e){let r={fullTag:e,content:n,attrs:t};if(/\bserver\b/.test(t))return{...r,type:"server"};if(/\bdata-stx-scoped\b/.test(t))return{...r,type:"client"};if(H.test(n))return{...r,type:"signals"};if(/\bclient\b/.test(t)||/\btype\s*=\s*["']module["']/.test(t)||/\bsrc\s*=/.test(t))return{...r,type:"client"};return{...r,type:"server"}}var q=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function To(t){let n=[],e=[],r=[],i=0;while(i<t.length){let s=t.indexOf("<",i);if(s===-1)break;let a=Ge(t,s);if(a>s){i=a;continue}let o=V(t,s);if(o>s){let c=t.slice(s,o),f=q.exec(c);if(f){let l=B(f[1],f[2],c);switch(l.type){case"signals":n.push(l);break;case"client":e.push(l);break;case"server":r.push(l);break}}i=o;continue}i=s+(t.startsWith("<!--",s)?4:1)}return{signals:n,client:e,server:r}}var z=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function G(t){let n=[],e=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,r;while((r=e.exec(t))!==null)n.push({start:r.index,end:r.index+r[0].length});return n}function P(t,n){return n.some((e)=>t>=e.start&&t<e.end)}function U(t){let n=(t||"").trim();if(!n)return null;if(/[\s>+~,:]/.test(n))return null;let e={},r=n,i=r.match(/^[a-z][\w-]*/i);if(i)e.tag=i[0].toLowerCase(),r=r.slice(i[0].length);while(r.length>0){let s=r.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(s){if(e.attr=s[1],s[3]!==void 0&&s[3]!=="")e.attrValue=s[3];r=r.slice(s[0].length);continue}let a=r.match(/^#([\w-]+)/);if(a){e.id=a[1],r=r.slice(a[0].length);continue}let o=r.match(/^\.([\w-]+)/);if(o){e.className=o[1],r=r.slice(o[0].length);continue}return null}if(!e.tag&&!e.attr&&!e.id&&!e.className)return null;return e}function W(t,n){if(n.attr){if(!(n.attrValue===void 0?new RegExp(`\\b${n.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${n.attr}\\s*=\\s*(["'])\\s*${n.attrValue}\\s*\\1`,"i")).test(t))return!1}if(n.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${n.id}\\s*\\1`,"i").test(t))return!1}if(n.className){let e=t.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!e)return!1;if(!e[2].split(/\s+/).includes(n.className))return!1}return!0}function O(t,n="main"){let e=U(n);if(!e)return null;let r=/<([a-z][\w-]*)\b([^>]*)>/gi,i=G(t),s;while((s=r.exec(t))!==null){if(P(s.index,i))continue;let a=s[1].toLowerCase(),o=s[2]||"";if(o.trimEnd().endsWith("/")||z.has(a))continue;if(e.tag&&e.tag!==a)continue;if(!W(o,e))continue;let c=s[0],f=s.index+c.length,l=new RegExp(`<(/?)${a}\\b([^>]*)>`,"gi");l.lastIndex=f;let g=1,m;while((m=l.exec(t))!==null){if(P(m.index,i))continue;let S=m[1]==="/";if(!S&&(m[2]||"").trimEnd().endsWith("/"))continue;if(g+=S?-1:1,g===0)return{openTag:c,openIndex:s.index,start:f,end:m.index,tagName:a}}return null}return null}var Be="private, no-store";function $o(t){return t.replace(/&#(\d+);/g,(n,e)=>M(Number(e),n)).replace(/&#x([0-9a-f]+);/gi,(n,e)=>M(Number.parseInt(e,16),n)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function M(t,n){if(!Number.isInteger(t)||t<0||t>1114111)return n;try{return String.fromCodePoint(t)}catch{return n}}function ae(t){return t.headers.get("X-STX-Router")==="true"}function X(t,n){if(!t)return n;return t.split(",").some((r)=>r.trim().toLowerCase()===n.toLowerCase())?t:`${t}, ${n}`}function T(t){return{Vary:X(t,"X-STX-Router")}}import E from"path";var J="stx-page-head:",K=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,v={dev:null,prod:null};function Y(){let t=D()?"dev":"prod",n=v[t];if(n!==null)return n;try{let e=import.meta.require("./chunk-k1vjhhd4.js"),r=t==="dev"&&typeof e.getRouterScriptDev==="function"?e.getRouterScriptDev:e.getRouterScript;v[t]=`<script>${r()}</script>`}catch{v[t]=""}return v[t]}async function Ro(t,n){if(n===!1)return null;if(n&&typeof n==="string"){let r=E.resolve(t,n);if(await Bun.file(r).exists())return r;return null}let e=E.join(t,"app.stx");if(await Bun.file(e).exists())return e;return null}async function Ur(t,n){try{let e=await Bun.file(t).text(),r=e,i=e.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if(i)r=i[1].trim();let s=To(e),a=[...s.client.map((d)=>d.fullTag),...s.signals.map((d)=>d.fullTag)],o=[],c=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,f;while((f=c.exec(e))!==null)o.push(f[0]);let l=r;for(let d of s.server)l=l.replace(d.fullTag,"");for(let d of s.client)l=l.replace(d.fullTag,"");l=l.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let g="<!--__STX_PAGE_SLOT__-->";if(l=l.replace(/<slot\s*\/>/gi,g).replace(/<slot\s*>\s*<\/slot>/gi,g),!l.includes(g))return console.warn(`[stx] Shell ${t} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:m,extractVariables:S,defaultConfig:b,loadStxConfig:w}=await import("./chunk-x5cscz50.js"),y=await w(),p={__filename:t,__dirname:E.dirname(t)};for(let d of a){let C=d.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(C&&!d.includes("client")&&!d.includes('type="module"'))await S(C[1],p,t)}let R=await m(l,p,t,{...b,...y,...n},new Set),h=R.indexOf(g);if(h===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:R.substring(0,h),afterSlot:R.substring(h+g.length),filePath:t,shellScripts:a,shellStyles:o}}catch(e){return console.error(`[stx] Error processing shell ${t}:`,e),null}}function Xn(t,n,e){let r,i="",s=n.match(K);if(s){n=n.replace(s[0],"");try{let l=Buffer.from(s[1],"base64").toString("utf8"),g=l.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(g)r=g[1].trim();i=l.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let a=e||r||"stx App",o=Y(),c="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -27,5 +27,5 @@ ${o}
27
27
  `));if(i.length>0)y.push(i.filter((p)=>!c.has(p)).join(`
28
28
  `));if(S.length>0)y.push(S.filter((p)=>!c.has(p)).join(`
29
29
  `));return y.push(m),y.join(`
30
- `)}import k from"fs";import I from"path";function Po(t,n,e){return{version:1,buildTime:new Date().toISOString(),routes:t,assets:n,outputDir:e}}function Io(t,n){let e=I.join(n,"manifest.json");k.writeFileSync(e,JSON.stringify(t,null,2))}function Oo(t){let n=I.join(t,"manifest.json");if(!k.existsSync(n))return null;try{let e=k.readFileSync(n,"utf-8"),r=JSON.parse(e);if(r.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${r.version}`),null;return r}catch(e){return console.warn("[stx] Failed to load manifest:",e),null}}function _(t,n,e={}){let r=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`;if(e.maxAge!==void 0)r+=`; Max-Age=${e.maxAge}`;if(e.expires)r+=`; Expires=${e.expires.toUTCString()}`;if(e.path)r+=`; Path=${e.path}`;if(e.domain)r+=`; Domain=${e.domain}`;if(e.secure)r+="; Secure";if(e.httpOnly)r+="; HttpOnly";if(e.sameSite)r+=`; SameSite=${e.sameSite}`;return r}async function Q(t){let n=t.headers.get("content-type")||"",e={},r=(i,s)=>{let a=e[i];if(a===void 0)e[i]=s;else if(Array.isArray(a))a.push(s);else e[i]=[a,s]};if(n.includes("multipart/form-data")){let i=await t.formData();for(let[s,a]of i.entries())if(typeof a==="string")r(s,a);return e}if(n.includes("application/x-www-form-urlencoded")){for(let[i,s]of new URLSearchParams(await t.text()).entries())r(i,s);return e}return e}function Wr(t){if(!t)return!1;let n=t.toUpperCase();return n!=="GET"&&n!=="HEAD"}async function F(t,n={}){let e=n.request,r=n.method??e?.method;if(!e||!Wr(r))return{ran:!1};if(typeof t.action!=="function")return{ran:!1};let i={};try{i=await Q(e)}catch{}let s=await t.action({request:e,form:i,params:n.params??{},query:t.query??{},cookies:n.cookies??{}});if(s&&typeof s==="object"){let a=s,o=tt(a.cookies),c=a.redirect;if(typeof c==="string"&&c)return{redirect:c,ran:!0,...o.length>0?{cookies:o}:{}};let{cookies:f,redirect:l,...g}=a;if(Object.assign(t,g),o.length>0)return{ran:!0,cookies:o}}return{ran:!0}}function tt(t){if(!t||typeof t!=="object"||Array.isArray(t))return[];let n=[];for(let[e,r]of Object.entries(t)){if(!e)continue;if(typeof r==="string"){n.push(_(e,r));continue}if(r&&typeof r==="object"){let i=r;if(typeof i.value!=="string")continue;n.push(_(e,i.value,i))}}return n}function No(t,n=[],e){let r=new Headers({Location:t,"Cache-Control":"no-store"});for(let i of n)r.append("Set-Cookie",i);for(let[i,s]of Object.entries(e??{}))if(i.toLowerCase()!=="location")r.set(i,s);return new Response(null,{status:303,headers:r})}async function Kt(t,n={}){let{html:e,context:r,redirect:i,cookies:s}=await et(t,n),a=Je(r),o=Ye(r);if(i)return{html:e,redirect:i,cookies:s,status:a,headers:o};let{extractStreamBoundaries:c}=await import("./chunk-z024wwh6.js"),f=c(r),l=t.streamTemplates;if(l&&Object.keys(l).length>0){let{processDirectives:g}=await import("./chunk-5bvc0eew.js"),{defaultConfig:m}=await import("./chunk-s01qe842.js"),S=r.streamBoundaries||{},b={...m,autoShell:!1},w=Object.keys(l).map((p)=>({id:p,render:async()=>{let R=typeof S[p]==="function"?await S[p]():void 0;return g(l[p],{...r,$boundary:R},t.sourceFile,b,new Set)}})),y=new Set(w.map((p)=>p.id));f=[...(f||[]).filter((p)=>!y.has(p.id)),...w]}return{html:e,boundaries:f&&f.length>0?f:void 0,cookies:s,status:a,headers:o}}async function et(t,n){let e={__filename:t.sourceFile,__dirname:t.sourceFile.replace(/[/\\][^/\\]+$/,""),...n};if(!t.hasServerScripts&&!vs(t.html))return{html:t.html,context:e};for(let a of t.serverScriptContent)try{await u(a,e,t.sourceFile)}catch(o){if(n.__stx_strict_hydration)throw o;console.warn(`[stx] Server script error in ${t.sourceFile}:`,o)}let r=await F(e,{request:n.request,method:n.method,params:n.params??{},cookies:n.cookies??{}}),i=(a)=>{let o=a.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),c=pr(e);if(!c)return o;let f=o.indexOf("</head>");return f<0?c+o:o.slice(0,f)+c+o.slice(f)};if(r.redirect)return{html:t.html,context:e,redirect:r.redirect,cookies:r.cookies};if(!vs(t.html))return{html:i(t.html),context:e,cookies:r.cookies};let s=new Map;for(let[a,o]of Object.entries(t.placeholders))if(o.expression)try{let c=x(o.expression,e);if(o.type==="raw")s.set(a,c!==void 0&&c!==null?String(c):"");else s.set(a,c!==void 0&&c!==null?Dt(String(c)):"")}catch(c){if(n.__stx_strict_hydration)throw c;s.set(a,"")}return{html:i(fi(t.html,s)),context:e,cookies:r.cookies}}
30
+ `)}import k from"fs";import I from"path";function Po(t,n,e){return{version:1,buildTime:new Date().toISOString(),routes:t,assets:n,outputDir:e}}function Io(t,n){let e=I.join(n,"manifest.json");k.writeFileSync(e,JSON.stringify(t,null,2))}function Oo(t){let n=I.join(t,"manifest.json");if(!k.existsSync(n))return null;try{let e=k.readFileSync(n,"utf-8"),r=JSON.parse(e);if(r.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${r.version}`),null;return r}catch(e){return console.warn("[stx] Failed to load manifest:",e),null}}function _(t,n,e={}){let r=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`;if(e.maxAge!==void 0)r+=`; Max-Age=${e.maxAge}`;if(e.expires)r+=`; Expires=${e.expires.toUTCString()}`;if(e.path)r+=`; Path=${e.path}`;if(e.domain)r+=`; Domain=${e.domain}`;if(e.secure)r+="; Secure";if(e.httpOnly)r+="; HttpOnly";if(e.sameSite)r+=`; SameSite=${e.sameSite}`;return r}async function Q(t){let n=t.headers.get("content-type")||"",e={},r=(i,s)=>{let a=e[i];if(a===void 0)e[i]=s;else if(Array.isArray(a))a.push(s);else e[i]=[a,s]};if(n.includes("multipart/form-data")){let i=await t.formData();for(let[s,a]of i.entries())if(typeof a==="string")r(s,a);return e}if(n.includes("application/x-www-form-urlencoded")){for(let[i,s]of new URLSearchParams(await t.text()).entries())r(i,s);return e}return e}function Wr(t){if(!t)return!1;let n=t.toUpperCase();return n!=="GET"&&n!=="HEAD"}async function F(t,n={}){let e=n.request,r=n.method??e?.method;if(!e||!Wr(r))return{ran:!1};if(typeof t.action!=="function")return{ran:!1};let i={};try{i=await Q(e)}catch{}let s=await t.action({request:e,form:i,params:n.params??{},query:t.query??{},cookies:n.cookies??{}});if(s&&typeof s==="object"){let a=s,o=tt(a.cookies),c=a.redirect;if(typeof c==="string"&&c)return{redirect:c,ran:!0,...o.length>0?{cookies:o}:{}};let{cookies:f,redirect:l,...g}=a;if(Object.assign(t,g),o.length>0)return{ran:!0,cookies:o}}return{ran:!0}}function tt(t){if(!t||typeof t!=="object"||Array.isArray(t))return[];let n=[];for(let[e,r]of Object.entries(t)){if(!e)continue;if(typeof r==="string"){n.push(_(e,r));continue}if(r&&typeof r==="object"){let i=r;if(typeof i.value!=="string")continue;n.push(_(e,i.value,i))}}return n}function No(t,n=[],e){let r=new Headers({Location:t,"Cache-Control":"no-store"});for(let i of n)r.append("Set-Cookie",i);for(let[i,s]of Object.entries(e??{}))if(i.toLowerCase()!=="location")r.set(i,s);return new Response(null,{status:303,headers:r})}async function Kt(t,n={}){let{html:e,context:r,redirect:i,cookies:s}=await et(t,n),a=Je(r),o=Ye(r);if(i)return{html:e,redirect:i,cookies:s,status:a,headers:o};let{extractStreamBoundaries:c}=await import("./chunk-qk4zkvzh.js"),f=c(r),l=t.streamTemplates;if(l&&Object.keys(l).length>0){let{processDirectives:g}=await import("./chunk-3dd57j7e.js"),{defaultConfig:m}=await import("./chunk-6jjrvb9v.js"),S=r.streamBoundaries||{},b={...m,autoShell:!1},w=Object.keys(l).map((p)=>({id:p,render:async()=>{let R=typeof S[p]==="function"?await S[p]():void 0;return g(l[p],{...r,$boundary:R},t.sourceFile,b,new Set)}})),y=new Set(w.map((p)=>p.id));f=[...(f||[]).filter((p)=>!y.has(p.id)),...w]}return{html:e,boundaries:f&&f.length>0?f:void 0,cookies:s,status:a,headers:o}}async function et(t,n){let e={__filename:t.sourceFile,__dirname:t.sourceFile.replace(/[/\\][^/\\]+$/,""),...n};if(!t.hasServerScripts&&!vs(t.html))return{html:t.html,context:e};for(let a of t.serverScriptContent)try{await u(a,e,t.sourceFile)}catch(o){if(n.__stx_strict_hydration)throw o;console.warn(`[stx] Server script error in ${t.sourceFile}:`,o)}let r=await F(e,{request:n.request,method:n.method,params:n.params??{},cookies:n.cookies??{}}),i=(a)=>{let o=a.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),c=pr(e);if(!c)return o;let f=o.indexOf("</head>");return f<0?c+o:o.slice(0,f)+c+o.slice(f)};if(r.redirect)return{html:t.html,context:e,redirect:r.redirect,cookies:r.cookies};if(!vs(t.html))return{html:i(t.html),context:e,cookies:r.cookies};let s=new Map;for(let[a,o]of Object.entries(t.placeholders))if(o.expression)try{let c=x(o.expression,e);if(o.type==="raw")s.set(a,c!==void 0&&c!==null?String(c):"");else s.set(a,c!==void 0&&c!==null?Dt(String(c)):"")}catch(c){if(n.__stx_strict_hydration)throw c;s.set(a,"")}return{html:i(fi(t.html,s)),context:e,cookies:r.cookies}}
31
31
  export{To,Be,$o,ae,T,Ro,Ur,Xn,xe,Ao,ce,Po,Io,Oo,Wr,No,Kt};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{y}from"./chunk-dvbgbd06.js";import{J,Qe,Cs,_s,bi,vi,wi,xi,ur,Es,Si,ki,Ci,Bt,o}from"./chunk-v66yd92a.js";import{rs}from"./chunk-vgt56jd0.js";import{a}from"./chunk-q4a2j4qr.js";import{existsSync as M,readFileSync as K}from"fs";import h from"path";var me=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),te=Bt.filter((e)=>!me.has(e)).sort(),ne=[...y].sort(),he=[...new Set([...te,...ne])].sort(),be=new Set(te),ye=new Set(ne),xe=new Set(he),ee=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function Se(e,t){if(t==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function ie(e,t){let s=[];for(let u of t){if(u.offset===void 0)continue;let i=u.kind==="server"?be:ye;ee.lastIndex=0;for(let l of u.code.matchAll(ee)){let g=l.index+l[0].indexOf("{")+1;for(let m of l[1].matchAll(/[^,]+/g)){let S=m[0];if(/^\s*type\s/.test(S))continue;let x=/^\s*([A-Za-z_$][\w$]*)/.exec(S);if(!x)continue;let r=x[1];if(!xe.has(r)||i.has(r))continue;let f=u.offset+g+m.index+x[0].length-r.length,p=e.slice(0,f),w=p.split(`
2
+ import{y}from"./chunk-dvbgbd06.js";import{J,Qe,Cs,_s,bi,vi,wi,xi,ur,Es,Si,ki,Ci,Bt,o}from"./chunk-e030grrq.js";import{rs}from"./chunk-a39kvc2p.js";import{a}from"./chunk-q4a2j4qr.js";import{existsSync as M,readFileSync as K}from"fs";import h from"path";var me=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),te=Bt.filter((e)=>!me.has(e)).sort(),ne=[...y].sort(),he=[...new Set([...te,...ne])].sort(),be=new Set(te),ye=new Set(ne),xe=new Set(he),ee=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function Se(e,t){if(t==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function ie(e,t){let s=[];for(let u of t){if(u.offset===void 0)continue;let i=u.kind==="server"?be:ye;ee.lastIndex=0;for(let l of u.code.matchAll(ee)){let g=l.index+l[0].indexOf("{")+1;for(let m of l[1].matchAll(/[^,]+/g)){let S=m[0];if(/^\s*type\s/.test(S))continue;let x=/^\s*([A-Za-z_$][\w$]*)/.exec(S);if(!x)continue;let r=x[1];if(!xe.has(r)||i.has(r))continue;let f=u.offset+g+m.index+x[0].length-r.length,p=e.slice(0,f),w=p.split(`
3
3
  `).length;s.push({line:w,column:f-(p.lastIndexOf(`
4
4
  `)+1)+1,offset:f,length:r.length,name:r,kind:u.kind,message:Se(r,u.kind)})}}}return s}import T from"path";var ke="@stacksjs/stx-typescript-plugin";function we(e,t){let s=T.resolve(e);for(;;){let u=T.join(s,"tsconfig.json");if(t(u))return u;let i=T.dirname(s);if(i===s)return;s=i}}function se(e,t,s){let u=we(e,s);if(!u)return;let i=new Set,l=(g)=>{if(i.has(g))return;i.add(g);let m=t(g);if(!m)return;let S=m.compilerOptions?.plugins;if(Array.isArray(S)){let r=S.find((p)=>p?.name===ke),f=Array.isArray(r?.libs)?r.libs.filter((p)=>typeof p==="string"):[];return r?{configPath:g,libs:f.map((p)=>T.resolve(T.dirname(g),p))}:null}let x=typeof m.extends==="string"?[m.extends]:Array.isArray(m.extends)?m.extends:[];for(let r of[...x].reverse()){if(typeof r!=="string"||!r.startsWith("."))continue;let f=T.resolve(T.dirname(g),r.endsWith(".json")?r:`${r}.json`),p=l(f);if(p!==void 0)return p}return};return l(u)??void 0}function Sa(e,t="",s=""){let u=e.startLine>1?`
5
5
  `.repeat(e.startLine-1):"",i=Es(e)+_s(Cs(e.code)),l=e.kind==="client"||e.kind==="plain"?wi(t,e.code):"";return ur(`${u+i}
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{y}from"./chunk-dvbgbd06.js";import{I,Ut}from"./chunk-66e4ga0z.js";import{It,m,h,w,et,j,o}from"./chunk-v66yd92a.js";import{de,$t,Rt,At}from"./chunk-kjck941v.js";import{ze,an,kt,q}from"./chunk-swv69q75.js";import{E,jn}from"./chunk-szjgbjw1.js";import S from"path";var C=new Map,D=new Map,k=m(64),A=new Map,Z=["composables","functions"];function G(t){let n=S.basename(t,".ts");return n==="index"||n==="types"||t.endsWith(".d.ts")}async function Q(t){if(t)return S.resolve(t);let n=`<default>:${process.cwd()}`,a=A.get(n);if(a!==void 0)return a;let e=await V();if(e!==null)A.set(n,e);return e}async function V(){let t=await o(),n=t.root||process.cwd(),a=t.composablesDir;if(a)return S.resolve(n,a);for(let e of Z){let s=S.resolve(n,e);try{let d=new Bun.Glob("**/*.ts");for await(let c of d.scan({cwd:s,absolute:!0}))if(!G(c))return s}catch{}}return null}async function J(t){let n=Array.isArray(t)?t:t?[S.resolve(t)]:(await o())._layerComposableDirs??[await Q()].filter((e)=>!!e),a=new Map;for(let e of n){let s=new Bun.Glob("**/*.ts");try{for await(let d of s.scan({cwd:e,absolute:!0})){let c=S.relative(e,d);if(!G(d)&&!a.has(c))a.set(c,d)}}catch{}}return{key:n.join("\x00"),files:[...a.values()].sort()}}async function rs(t){let{files:n}=await J(t),a=j({loader:"ts",target:"browser",define:w()}),e=[];for(let s of n)try{let d=await Bun.file(s).text(),c=a.scan(d).exports.filter((p)=>p!=="default");if(c.length>0)e.push({file:s,names:c})}catch{}return e}function Y(t,n){return new RegExp(`\\b${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(t)}function L(t,n){let a=new Set(t.match(/\w+/g)),e=new Set;for(let s of n)if(/^\w+$/.test(s)?a.has(s):Y(t,s))e.add(s);return e}var z=m(64);function ee(t,n){let a=h(t,n.size),e=z.get(a);if(e)return e;let s;try{s=It(t,n)}catch{s=L(t,n)}let d=[...t.matchAll(/(?:const|let|var)\s*\{([^}]*)\}\s*=\s*window\.__composables\u0008/g),...t.matchAll(/import\s*\{([^}]*)\}\s*from\s*['"]@composables['"]/g)];for(let c of d)for(let p of c[1].split(",")){let g=p.trim().split(/\s*(?::|\u0008as\u0008)\s*/)[0];if(g&&n.has(g))s.add(g)}return z.set(a,s),s}function te(t,n,a){let e=new Map;for(let{file:u,names:l}of t)for(let f of l)if(!e.has(f))e.set(f,u);let s=(u)=>{let l=[];for(let f of L(u,e.keys()))l.push(e.get(f));return l},d=new Set(e.keys()),c=(u)=>{let l=[];for(let f of ee(u,d))l.push(e.get(f));return l},p=new Set,g=a.flatMap((u,l)=>l===0?s(u):c(u));while(g.length>0){let u=[];for(let l of g){if(p.has(l))continue;p.add(l);for(let f of c(n.get(l)??""))if(!p.has(f))u.push(f)}g=u}return p}async function nu(t,n,a){let{key:e,files:s}=await J(t);if(!e)return null;let d=()=>[...new Set([...s,...s.flatMap((r)=>de(r))])],c=ze(d());if(s.length===0)return q(C,e,c,""),null;s.sort();let p=j({loader:"ts",target:"browser",define:w()}),g=kt(D,e,c);if(!g){let r=new Map,i=[];for(let _ of s)try{let x=await Bun.file(_).text();r.set(_,x);let b=p.scan(x).exports.filter((X)=>X!=="default");if(b.length>0)i.push({file:_,names:b})}catch{r.set(_,"")}g=q(D,e,c,{codeByFile:r,modules:i})}let{codeByFile:u,modules:l}=g,f;if(n===void 0)f=new Set(s);else{let r=a?[n,...a]:[n],i=h(r.join("\x00"),e,r.length,c),_=k.get(i);if(f=_??te(l,u,r),!_)k.set(i,f)}if(f.size===0)return null;let F=s.filter((r)=>f.has(r)),B=`${e}\x00${F.join("\x00")}\x00${Rt()}`,R=kt(C,B,c);if(R!==void 0)return R||null;let M=[],v=new Set,P=new Set;for(let r of F)try{let i=u.get(r)??await Bun.file(r).text(),_=S.basename(r,".ts");for(let b of i.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(b[1])P.add(b[1]);let x=[];try{for(let b of p.scan(i).exports)if(b!=="default")v.add(b),x.push(b)}catch{}if(i=I(i),$t(i))i=await At(i,r,{projectRoot:process.cwd(),externalizeUserModules:!1,expose:x}),i=et(i);i=Ut(i),i=i.replace(/^export\s+(default\s+)?/gm,""),i=p.transformSync(i),M.push(`// Composable: ${_}
2
+ import{y}from"./chunk-dvbgbd06.js";import{I,Ut}from"./chunk-66e4ga0z.js";import{It,m,h,w,et,j,o}from"./chunk-e030grrq.js";import{de,$t,Rt,At}from"./chunk-fqwyfx6c.js";import{ze,an,kt,q}from"./chunk-swv69q75.js";import{E,jn}from"./chunk-szjgbjw1.js";import S from"path";var C=new Map,D=new Map,k=m(64),A=new Map,Z=["composables","functions"];function G(t){let n=S.basename(t,".ts");return n==="index"||n==="types"||t.endsWith(".d.ts")}async function Q(t){if(t)return S.resolve(t);let n=`<default>:${process.cwd()}`,a=A.get(n);if(a!==void 0)return a;let e=await V();if(e!==null)A.set(n,e);return e}async function V(){let t=await o(),n=t.root||process.cwd(),a=t.composablesDir;if(a)return S.resolve(n,a);for(let e of Z){let s=S.resolve(n,e);try{let d=new Bun.Glob("**/*.ts");for await(let c of d.scan({cwd:s,absolute:!0}))if(!G(c))return s}catch{}}return null}async function J(t){let n=Array.isArray(t)?t:t?[S.resolve(t)]:(await o())._layerComposableDirs??[await Q()].filter((e)=>!!e),a=new Map;for(let e of n){let s=new Bun.Glob("**/*.ts");try{for await(let d of s.scan({cwd:e,absolute:!0})){let c=S.relative(e,d);if(!G(d)&&!a.has(c))a.set(c,d)}}catch{}}return{key:n.join("\x00"),files:[...a.values()].sort()}}async function rs(t){let{files:n}=await J(t),a=j({loader:"ts",target:"browser",define:w()}),e=[];for(let s of n)try{let d=await Bun.file(s).text(),c=a.scan(d).exports.filter((p)=>p!=="default");if(c.length>0)e.push({file:s,names:c})}catch{}return e}function Y(t,n){return new RegExp(`\\b${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(t)}function L(t,n){let a=new Set(t.match(/\w+/g)),e=new Set;for(let s of n)if(/^\w+$/.test(s)?a.has(s):Y(t,s))e.add(s);return e}var z=m(64);function ee(t,n){let a=h(t,n.size),e=z.get(a);if(e)return e;let s;try{s=It(t,n)}catch{s=L(t,n)}let d=[...t.matchAll(/(?:const|let|var)\s*\{([^}]*)\}\s*=\s*window\.__composables\u0008/g),...t.matchAll(/import\s*\{([^}]*)\}\s*from\s*['"]@composables['"]/g)];for(let c of d)for(let p of c[1].split(",")){let g=p.trim().split(/\s*(?::|\u0008as\u0008)\s*/)[0];if(g&&n.has(g))s.add(g)}return z.set(a,s),s}function te(t,n,a){let e=new Map;for(let{file:u,names:l}of t)for(let f of l)if(!e.has(f))e.set(f,u);let s=(u)=>{let l=[];for(let f of L(u,e.keys()))l.push(e.get(f));return l},d=new Set(e.keys()),c=(u)=>{let l=[];for(let f of ee(u,d))l.push(e.get(f));return l},p=new Set,g=a.flatMap((u,l)=>l===0?s(u):c(u));while(g.length>0){let u=[];for(let l of g){if(p.has(l))continue;p.add(l);for(let f of c(n.get(l)??""))if(!p.has(f))u.push(f)}g=u}return p}async function nu(t,n,a){let{key:e,files:s}=await J(t);if(!e)return null;let d=()=>[...new Set([...s,...s.flatMap((r)=>de(r))])],c=ze(d());if(s.length===0)return q(C,e,c,""),null;s.sort();let p=j({loader:"ts",target:"browser",define:w()}),g=kt(D,e,c);if(!g){let r=new Map,i=[];for(let _ of s)try{let x=await Bun.file(_).text();r.set(_,x);let b=p.scan(x).exports.filter((X)=>X!=="default");if(b.length>0)i.push({file:_,names:b})}catch{r.set(_,"")}g=q(D,e,c,{codeByFile:r,modules:i})}let{codeByFile:u,modules:l}=g,f;if(n===void 0)f=new Set(s);else{let r=a?[n,...a]:[n],i=h(r.join("\x00"),e,r.length,c),_=k.get(i);if(f=_??te(l,u,r),!_)k.set(i,f)}if(f.size===0)return null;let F=s.filter((r)=>f.has(r)),B=`${e}\x00${F.join("\x00")}\x00${Rt()}`,R=kt(C,B,c);if(R!==void 0)return R||null;let M=[],v=new Set,P=new Set;for(let r of F)try{let i=u.get(r)??await Bun.file(r).text(),_=S.basename(r,".ts");for(let b of i.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(b[1])P.add(b[1]);let x=[];try{for(let b of p.scan(i).exports)if(b!=="default")v.add(b),x.push(b)}catch{}if(i=I(i),$t(i))i=await At(i,r,{projectRoot:process.cwd(),externalizeUserModules:!1,expose:x}),i=et(i);i=Ut(i),i=i.replace(/^export\s+(default\s+)?/gm,""),i=p.transformSync(i),M.push(`// Composable: ${_}
3
3
  ${i.trim()}`)}catch(i){console.warn(`[stx] Failed to load composable ${r}:`,i)}if(M.length===0||v.size===0)return q(C,B,c,""),null;let H=[...v].map((r)=>` try { if (!(${JSON.stringify(r)} in __c)) __c[${JSON.stringify(r)}] = ${r}; } catch (e) {}`).join(`
4
4
  `),K=JSON.stringify([...v]),N=M.join(`
5
5