@stacksjs/stx 0.2.717 → 0.2.718
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.
- package/dist/{chunk-dsts9n62.js → chunk-01b2xpaa.js} +4 -4
- package/dist/{chunk-zkpqfn38.js → chunk-0vp8tbtw.js} +1 -1
- package/dist/chunk-0w63b87e.js +2 -0
- package/dist/{chunk-764dkwkd.js → chunk-3t77p36m.js} +3 -3
- package/dist/chunk-4m55etnr.js +2 -0
- package/dist/{chunk-k2w58aj8.js → chunk-5qh4hywh.js} +1 -1
- package/dist/chunk-7z291h9k.js +2 -0
- package/dist/chunk-8rcvwxts.js +2 -0
- package/dist/{chunk-tyt0dvh3.js → chunk-99wwvvmk.js} +1 -1
- package/dist/chunk-a5p0ehhy.js +2 -0
- package/dist/{chunk-c2ywqhj3.js → chunk-akg3d6zs.js} +2 -2
- package/dist/{chunk-2twbjkem.js → chunk-amn1jp60.js} +1 -1
- package/dist/{chunk-5ch0cftw.js → chunk-asxh3wqg.js} +6 -6
- package/dist/chunk-axmh79c7.js +2 -0
- package/dist/{chunk-tz2jtt7a.js → chunk-bcymfrbv.js} +1 -1
- package/dist/{chunk-ac05nxmn.js → chunk-c46ks6d4.js} +1 -1
- package/dist/{chunk-k6ewzza7.js → chunk-c77deyem.js} +1 -1
- package/dist/{chunk-fxfhc11n.js → chunk-cg2vjkv9.js} +2 -2
- package/dist/{chunk-gck2xta9.js → chunk-crz5b7ta.js} +5 -5
- package/dist/chunk-dkd5v730.js +2 -0
- package/dist/{chunk-h59p9mm8.js → chunk-dmf1w4k7.js} +1 -1
- package/dist/{chunk-h6s4n25b.js → chunk-dqchjtx2.js} +1 -1
- package/dist/{chunk-jnn3cbkx.js → chunk-efwab9yz.js} +1 -1
- package/dist/{chunk-pzw6wp3g.js → chunk-f5xpr32k.js} +1 -1
- package/dist/{chunk-3q0dkqnj.js → chunk-fcfy00db.js} +1 -1
- package/dist/{chunk-dxggrg6a.js → chunk-fpa7tbsr.js} +1 -1
- package/dist/{chunk-g6kgffw1.js → chunk-fpqpc0xa.js} +1 -1
- package/dist/{chunk-f574dt8e.js → chunk-fqfrma6m.js} +12 -12
- package/dist/chunk-g9y3crqw.js +2 -0
- package/dist/{chunk-t96py3pw.js → chunk-h2g21w62.js} +1 -1
- package/dist/{chunk-5vs2n60t.js → chunk-h3jdg08e.js} +1 -1
- package/dist/{chunk-n3am0zn1.js → chunk-h3pj7xkd.js} +1 -1
- package/dist/chunk-hkbtp57k.js +2 -0
- package/dist/chunk-jx9vy6j1.js +3 -0
- package/dist/{chunk-e6zfnzdz.js → chunk-jztnab24.js} +1 -1
- package/dist/{chunk-y3dazet1.js → chunk-mvxv5th7.js} +1 -1
- package/dist/{chunk-dh10j969.js → chunk-my2a18wq.js} +1 -1
- package/dist/{chunk-dedb8qc8.js → chunk-nngqgb61.js} +1 -1
- package/dist/{chunk-4hrgyn31.js → chunk-nnv66x6a.js} +3 -3
- package/dist/{chunk-ez65r8g0.js → chunk-p4tgxwk6.js} +1 -1
- package/dist/{chunk-x6rd2cnm.js → chunk-p9j1yref.js} +1 -1
- package/dist/{chunk-s65cgecn.js → chunk-pddyyt56.js} +1 -1
- package/dist/{chunk-s0dbvt30.js → chunk-pg06986k.js} +1 -1
- package/dist/{chunk-wrkkj5rb.js → chunk-ph414g2y.js} +1 -1
- package/dist/{chunk-5fnpsm2j.js → chunk-pqyc625v.js} +1 -1
- package/dist/{chunk-mjfy26bm.js → chunk-q5m1a3qh.js} +1 -1
- package/dist/{chunk-nyqpa2d7.js → chunk-qsz4tb20.js} +1 -1
- package/dist/{chunk-3z2q0m55.js → chunk-r2gacnbg.js} +1 -1
- package/dist/{chunk-temzgewm.js → chunk-r8hex2ra.js} +2 -2
- package/dist/{chunk-6vryv2fk.js → chunk-r96pgr62.js} +1 -1
- package/dist/{chunk-9y1evdb6.js → chunk-rb9py354.js} +1 -1
- package/dist/{chunk-fqhe3pvx.js → chunk-s23qhmg4.js} +2 -2
- package/dist/{chunk-hdhexa9q.js → chunk-sqdzxqnb.js} +1 -1
- package/dist/{chunk-swpnd64f.js → chunk-v6jywzkh.js} +1 -1
- package/dist/{chunk-e1c3mmja.js → chunk-y7pktn76.js} +1 -1
- package/dist/chunk-ybejqn2w.js +2 -0
- package/dist/{chunk-1kf7npwm.js → chunk-ycdfgs9z.js} +4 -4
- package/dist/{chunk-vdgjcxz8.js → chunk-yzwx8j20.js} +2 -2
- package/dist/{chunk-f71kdmw8.js → chunk-za4e4w89.js} +1 -1
- package/dist/{chunk-zy9eg3qr.js → chunk-zb1627aa.js} +1 -1
- package/dist/{chunk-qsz5br96.js → chunk-ztcm0tfd.js} +1 -1
- package/dist/{chunk-5vcebxhv.js → chunk-zxd5vt3f.js} +1 -1
- package/dist/{chunk-tq4vxn50.js → chunk-zxeegh47.js} +5 -5
- package/dist/cli.js +7 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/native-signing.d.ts +2 -0
- package/dist/native-signing.js +7 -2
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-0eqcp9vj.js +0 -2
- package/dist/chunk-5yavdv9x.js +0 -2
- package/dist/chunk-6dfmnxb5.js +0 -2
- package/dist/chunk-9dwe12ns.js +0 -3
- package/dist/chunk-c53femyd.js +0 -2
- package/dist/chunk-ffgp430t.js +0 -2
- package/dist/chunk-kydvpqaq.js +0 -2
- package/dist/chunk-mzbdeg0j.js +0 -2
- package/dist/chunk-nahcs8zy.js +0 -2
- package/dist/chunk-nyjkz4yn.js +0 -2
- package/dist/chunk-vwz3375t.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-zkx2m308.js";import{zs,yi,tl}from"./chunk-ez35607j.js";import"./chunk-zn3c0ew5.js";import"./chunk-5ch0cftw.js";import"./chunk-rbmt5w9v.js";import"./chunk-f71kdmw8.js";import"./chunk-4c86wr9a.js";import"./chunk-2mqzpzy7.js";import{a}from"./chunk-fxfhc11n.js";import"./chunk-q7fh1xka.js";import"./chunk-3fwdxxh1.js";import"./chunk-n3am0zn1.js";import{ht,qe,he,rn,Ae,Qn,er,Ke}from"./chunk-temzgewm.js";import{i}from"./chunk-tq4vxn50.js";import"./chunk-k6ewzza7.js";import"./chunk-1kf7npwm.js";import{is}from"./chunk-vdgjcxz8.js";import"./chunk-5vcebxhv.js";import"./chunk-x9wwd2ee.js";import{gt}from"./chunk-k93mp66m.js";import"./chunk-1xjv71dw.js";import"./chunk-zy9eg3qr.js";import{mo}from"./chunk-zkpqfn38.js";import"./chunk-9dwe12ns.js";import"./chunk-r3j4m04w.js";import"./chunk-dsts9n62.js";import"./chunk-m5nzpjej.js";import"./chunk-tz2jtt7a.js";import{existsSync as xe,mkdirSync as gi,readFileSync as hi}from"fs";import U from"path";import{existsSync as nt,mkdirSync as gn,realpathSync as ri,rmSync as hn}from"fs";import D from"path";import{existsSync as Jr}from"fs";import K from"path";var Sn="data-stx-b",ot=new Set(yi),wn=new Set(zs);function ke(e){if(e==="ref"||e==="data-stx-ref")return"ref";if(e.startsWith("::"))return null;if(e.startsWith("@bind:")||e.startsWith("x-bind:"))return"attr";if(e.startsWith("@")||e.startsWith(":")){let t=e.slice(1).split(".")[0];if(ot.has(t))return t==="if"?"if":t;if(t==="for"||t==="else"||t==="else-if"||t==="elseif")return"for";if(tl(t))return"event";if(e.startsWith("@"))return"event";return"attr"}if(e.startsWith("x-")){let t=e.split(".")[0];if(!wn.has(t))return"attr";let n=t.slice(2);if(n==="cloak"||n==="data"||n==="bind")return null;if(n==="tooltip"||n==="tooltip-position")return null;return ot.has(n)?n==="if"?"if":n:"attr"}return null}function xn(e){let t=[];for(let[n,r]of e){let s=ke(n);if(s)t.push({name:n,value:r,kind:s})}return t}var Nn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,Ne=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function at(e){let t=[],n=0;return{html:e.replace(Nn,(s,o,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];Ne.lastIndex=0;for(let y=Ne.exec(l);y;y=Ne.exec(l))u.push([y[1],y[2]??y[3]??y[4]??""]);let d=xn(u);if(!d.length)return s;let h={id:n++,bindings:d};if(d.some((y)=>y.kind==="for"))h.template=!0;t.push(h);let m=s.endsWith("/>");return`${s.slice(0,m?-2:-1).trimEnd()} ${Sn}="${h.id}"${m?"/>":">"}`}),manifest:{entries:t}}}import dr from"path";function le(e){let t=e&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(e.trim());if(!t)return;let n=Number(t[1])*(t[2]==="rem"?16:1);return Number.isFinite(n)?n:void 0}function Te(e,t){if(!he[e])return;return le(t?.get(rn(e))??he[e].value)}function Re(e,t){let n=Qn[e];if(!n)return;return le(t?.get(Ke(n))??Ae[n]?.value)}function _e(e,t){let n=er[e];if(!n)return;let r=le(t?.get(Ke(n.size))??Ae[n.size]?.value),s=le(t?.get(Ke(n.leading))??Ae[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var kn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},dt=Ce({}),lt,ct=null;function ce(){let e=globalThis.__stxNativeStyleConfig;if(!e)return dt;if(e!==lt)lt=e,ct=Ce(e);return ct}function ft(e,t=new Map,n=""){for(let[r,s]of Object.entries(e??{})){let o=r==="DEFAULT"?n.replace(/-$/,""):`${n}${r}`;if(typeof s==="string")t.set(o,s);else if(s&&typeof s==="object")ft(s,t,`${o}-`)}return t}function pt(e){let t={};for(let[n,r]of Object.entries(e??{})){let s=typeof r==="number"?r:Number.parseFloat(String(r));if(Number.isFinite(s))t[n]=s}return t}function Ce(e){return{shortcuts:new Map(Object.entries(e.shortcuts??{}).filter(([,t])=>typeof t==="string")),colors:ft(e.colors),fontFamily:new Map(Object.entries(e.fontFamily??{}).map(([t,n])=>[t,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...kn,...pt(e.breakpoints)}))}}var Ee={};function ut(e){Ee=e??{},dt=Ce(Ee)}async function mt(e,t){let n=Ee;ut(e);try{return await t()}finally{ut(n)}}function yt(e){if(!e)return{};let t=e.theme??{},n=Object.fromEntries(Object.entries(e.shortcuts??{}).filter(([,r])=>typeof r==="string"));return{...Object.keys(n).length?{shortcuts:n}:{},...t.fontFamily?{fontFamily:JSON.parse(JSON.stringify(t.fontFamily))}:{},...t.colors?{colors:JSON.parse(JSON.stringify(t.colors))}:{},...t.screens?{breakpoints:pt(t.screens)}:{}}}function bt(e){return ce().shortcuts.get(e)}function vt(e){return ce().colors.get(e)}function Ie(e){return ce().breakpoints.get(e)}function ue(e){return ce().fontFamily.get(e)}var wt=/^--[\w\u0080-\uFFFF-]+$/u;function St(e,t){if(!/var\(/i.test(e))return e;let n="",r="",s=!1;for(let o=0;o<e.length;o++){let l=e[o];if(l==="\\"){n+=e.slice(o,o+2),o++;continue}if(r){if(n+=l,l===r)r="";continue}if(l==='"'||l==="'"){r=l,n+=l;continue}if(e.slice(o,o+4).toLowerCase()!=="var("||o>0&&/[\w-]/.test(e[o-1])){n+=l;continue}let u=1,d=-1,h="",m=o+4;for(;m<e.length;m++){let S=e[m];if(S==="\\"){m++;continue}if(h){if(S===h)h="";continue}if(S==='"'||S==="'"){h=S;continue}if(S==="(")u++;if(S===")"&&--u===0)break;if(S===","&&u===1&&d===-1)d=m}if(u!==0)return;let p=e.slice(o+4,d===-1?m:d).trim();if(!wt.test(p))return;let y=t(p,d===-1?void 0:e.slice(d+1,m).trim());if(y===void 0||n.length+y.length>65536)return;n+=y,s=!0,o=m}return s&&n.length>65536?void 0:n}function re(e,t){let n=new Map,r=new Set;for(let[f,c]of e){let x=f.trim();if(!wt.test(x))continue;if(typeof c==="string"||typeof c==="number"&&Number.isFinite(c))n.set(x,String(c).trim())}let s=new Map,o=new Set;for(let[f,c]of n){let x=new Set,g=(N,v=0)=>v>64?void 0:St(N,(k,w)=>(x.add(k),w===void 0?"":g(w,v+1)));if(g(c)===void 0)o.add(f);s.set(f,x)}let l=new Map,u=new Map,d=[],h=new Set,m=0;function p(f,c=0){if(c>64){o.add(f);return}l.set(f,m),u.set(f,m++),d.push(f),h.add(f);for(let N of s.get(f)??[]){if(!n.has(N))continue;if(!l.has(N)){if(p(N,c+1),u.has(N))u.set(f,Math.min(u.get(f),u.get(N)))}else if(h.has(N))u.set(f,Math.min(u.get(f),l.get(N)))}if(u.get(f)!==l.get(f))return;let x=[],g;do g=d.pop(),h.delete(g),x.push(g);while(g!==f);if(x.length>1||s.get(f)?.has(f))x.forEach((N)=>o.add(N))}for(let f of n.keys())if(!l.has(f))p(f);let y=new Map;function S(f,c){if(r.add(f),y.has(f))return y.get(f);let x=n.get(f),g=x===void 0||/^(?:inherit|unset)$/i.test(x)?t?.get(f):o.has(f)||/^(?:initial|revert|revert-layer)$/i.test(x)?void 0:b(x,c+1);return y.set(f,g),g}function b(f,c=0){if(c>64)return;return St(f,(x,g)=>S(x,c)??(g===void 0?void 0:b(g,c+1)))}return{resolve:b,used:r,computed(){let f=new Map(t);for(let c of n.keys())f.set(c,S(c,0));return f}}}function Oe(e){if(e.display==="flex"&&e.flexDirection==null)return{...e,flexDirection:"row"};return e}var xt=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","objectFit","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Tn=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"]),Nt=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"]),Rn=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,_n=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,An=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),En=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function Cn(e){if(typeof e!=="string")return e;let t=_n.exec(e);return t?Number(t[1])*(/^r?em$/i.test(t[2]||"")?16:1):e}function ee(e){return typeof e==="number"&&Number.isFinite(e)}function In(e,t){if(e==="shadowOffset"&&t&&typeof t==="object"&&!Array.isArray(t)){let{width:n,height:r}=t;return ee(n)&&ee(r)?{width:n,height:r}:void 0}if(e==="transform"&&Array.isArray(t)){let n=[];for(let r of t){if(!r||typeof r!=="object"||Array.isArray(r)||Object.keys(r).length!==1)return;let[s,o]=Object.entries(r)[0];if(En.has(s)&&ee(o))n.push({[s]:o});else if(An.has(s)&&typeof o==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(o))n.push({[s]:o});else return}return n}return}function On(e){let t=[],n=0,r=0,s="";for(let o=0;o<=e.length;o++){let l=e[o];if(l==="\\"){o++;continue}if(s){if(l===s)s="";continue}if(l==='"'||l==="'"){s=l;continue}if(l==="(")r++;if(l===")")r=Math.max(0,r-1);if(o!==e.length&&(l!==";"||r))continue;let u=e.slice(n,o),d=u.indexOf(":");if(d!==-1)t.push([u.slice(0,d).trim(),u.slice(d+1).trim()]);n=o+1}return t}function Pn(e,t){let n;if(typeof e==="string"){if(e=e.trim(),!e)return[];try{e=JSON.parse(e)}catch{}}if(typeof e==="string")n=On(e);else if(e&&typeof e==="object"&&!Array.isArray(e))n=Object.entries(e);else{if(e!=null&&e!==!1)t({kind:"non-numeric-style",name:"style"});return[]}return n}function de(e,t=()=>{},n={}){let r=Pn(e,t),s=re(r,n.inheritedVariables);return n.onVariables?.(s.computed()),Mn(r,s,t)}function Mn(e,t,n){let r={},s=[];for(let[o,l]of e){if(o.trim().startsWith("--")){s.push(o.trim());continue}let u=xt.has(o)||o.trim().startsWith("--")?o:o.trim().toLowerCase().replace(/-([a-z])/g,(m,p)=>p.toUpperCase());if(!xt.has(u)){n({kind:"unknown-style",name:u});continue}if(l==null||l==="")continue;let d=typeof l==="string"?t.resolve(l.trim()):l;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="objectFit"){let m=typeof d==="string"?d.trim().toLowerCase():"";if(m==="cover"||m==="contain")r.resizeMode=m;else if(m==="fill")r.resizeMode="stretch";else if(m==="none")r.resizeMode="center";else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}let h;if(Tn.has(u)||Nt.has(u)){if(h=Cn(d),!ee(h)&&!(Nt.has(u)&&typeof h==="string"&&h.endsWith("%")&&Rn.test(h.slice(0,-1))&&Number.isFinite(Number(h.slice(0,-1)))))h=void 0}else if(u==="display"&&d==="inline-flex")h="flex";else if(u==="shadowOffset"||u==="transform")h=In(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")h=ee(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&ee(d))h=String(d);else if(typeof d==="string")h=d;if(h===void 0)n({kind:"non-numeric-style",name:u});else r[u]=h}for(let o of s)if(!t.used.has(o))n({kind:"unknown-style",name:o});return r}var Bn={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"}},Me={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},kt={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},Tt={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function Q(e){let t=e.lastIndexOf("/");if(t>0&&(!e.endsWith("]")||/\/\[[\d.]+%?\]$/.test(e))){let r=Q(e.slice(0,t)),s=e.slice(t+1),o=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!r||!Number.isFinite(o))return;return Ln(r,o/100)}if(e==="transparent")return"transparent";if(e==="current")return"currentColor";if(e==="black")return"#000000";if(e==="white")return"#ffffff";let n=e.split("-");if(n.length===2){let[r,s]=n,o=Bn[r];if(o&&typeof o==="object")return o[s]}if(e.startsWith("[")&&e.endsWith("]")){let r=e.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(r)?r:void 0}return}function Be(e){return Q(e.trim())}function Ln(e,t){if(e==="transparent")return e;let n=e.startsWith("#")?e.slice(1):"";if(n.length===3)n=n.split("").map((s)=>s+s).join("");if(n.length===8)n=n.slice(0,6);if(n.length!==6)return;let r=Math.round(Math.min(1,Math.max(0,t))*255);return`#${n}${r.toString(16).padStart(2,"0")}`}function Pe(e,t=16){if(!e.startsWith("[")||!e.endsWith("]"))return;let n=e.slice(1,-1),r=Number.parseFloat(n);if(!Number.isFinite(r))return;if(n.endsWith("rem"))return r*16;if(n.endsWith("em"))return r*t;return r}function V(e){if(e.startsWith("[")&&e.endsWith("]")){let t=e.slice(1,-1);if(t.endsWith("%"))return;let n=t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t);return Number.isFinite(n)?n:void 0}return Me[e]??Re(e)}function pe(e){let t=/^\[(-?\d*\.?\d+)%\]$/.exec(e);if(t)return`${Number.parseFloat(t[1])}%`;return V(e)}var Dn={flex:(e,t)=>(t.display="flex",!0),block:(e,t)=>(t.display="flex",!0),hidden:(e,t)=>(t.display="none",!0),grid:(e,t)=>(t.display="grid",!0),"flex-row":(e,t)=>(t.flexDirection="row",!0),"flex-col":(e,t)=>(t.flexDirection="column",!0),"flex-row-reverse":(e,t)=>(t.flexDirection="row-reverse",!0),"flex-col-reverse":(e,t)=>(t.flexDirection="column-reverse",!0),"flex-wrap":(e,t)=>(t.flexWrap="wrap",!0),"flex-nowrap":(e,t)=>(t.flexWrap="nowrap",!0),"flex-wrap-reverse":(e,t)=>(t.flexWrap="wrap-reverse",!0),"flex-1":(e,t)=>(t.flex=1,t.flexGrow=1,t.flexShrink=1,t.flexBasis=0,!0),"flex-auto":(e,t)=>(t.flexGrow=1,t.flexShrink=1,!0),"flex-initial":(e,t)=>(t.flexGrow=0,t.flexShrink=1,!0),"flex-none":(e,t)=>(t.flexGrow=0,t.flexShrink=0,!0),grow:(e,t)=>(t.flexGrow=1,!0),"grow-0":(e,t)=>(t.flexGrow=0,!0),shrink:(e,t)=>(t.flexShrink=1,!0),"shrink-0":(e,t)=>(t.flexShrink=0,!0),"order-first":(e,t)=>(t.order=-9999,!0),"order-last":(e,t)=>(t.order=9999,!0),"order-none":(e,t)=>(t.order=0,!0),"justify-start":(e,t)=>(t.justifyContent="flex-start",!0),"justify-center":(e,t)=>(t.justifyContent="center",!0),"justify-end":(e,t)=>(t.justifyContent="flex-end",!0),"justify-between":(e,t)=>(t.justifyContent="space-between",!0),"justify-around":(e,t)=>(t.justifyContent="space-around",!0),"justify-evenly":(e,t)=>(t.justifyContent="space-evenly",!0),"items-start":(e,t)=>(t.alignItems="flex-start",!0),"items-center":(e,t)=>(t.alignItems="center",!0),"items-end":(e,t)=>(t.alignItems="flex-end",!0),"items-stretch":(e,t)=>(t.alignItems="stretch",!0),"items-baseline":(e,t)=>(t.alignItems="baseline",!0),"self-auto":(e,t)=>(t.alignSelf="auto",!0),"self-start":(e,t)=>(t.alignSelf="flex-start",!0),"self-center":(e,t)=>(t.alignSelf="center",!0),"self-end":(e,t)=>(t.alignSelf="flex-end",!0),"self-stretch":(e,t)=>(t.alignSelf="stretch",!0),"self-baseline":(e,t)=>(t.alignSelf="baseline",!0),"min-w-0":(e,t)=>(t.minWidth=0,!0),"aspect-square":(e,t)=>(t.aspectRatio=1,!0),"aspect-video":(e,t)=>(t.aspectRatio=1.7777777777777777,!0),"border-solid":(e,t)=>(t.borderStyle="solid",!0),"border-dashed":(e,t)=>(t.borderStyle="dashed",!0),"border-dotted":(e,t)=>(t.borderStyle="dotted",!0),group:()=>!0,peer:()=>!0,"inset-0":(e,t)=>(t.top=0,t.right=0,t.bottom=0,t.left=0,!0),"mx-auto":(e,t)=>(t.alignSelf="center",!0),fixed:(e,t)=>(t.position="absolute",!0),sticky:()=>!0,"sr-only":(e,t)=>(t.position="absolute",t.width=1,t.height=1,t.overflow="hidden",!0),inline:()=>!0,"inline-block":()=>!0,contents:()=>!0,"align-top":()=>!0,"align-middle":()=>!0,"align-bottom":()=>!0,"align-baseline":()=>!0,"align-text-top":()=>!0,"whitespace-normal":()=>!0,"whitespace-pre":()=>!0,"whitespace-pre-line":()=>!0,"whitespace-pre-wrap":()=>!0,"whitespace-nowrap":()=>!0,"break-words":()=>!0,"break-all":()=>!0,"break-normal":()=>!0,"object-cover":()=>!0,"object-contain":()=>!0,"object-fill":()=>!0,"object-center":()=>!0,"tracking-tighter":(e,t)=>(t.letterSpacing=-0.8,!0),"tracking-tight":(e,t)=>(t.letterSpacing=-0.4,!0),"tracking-normal":(e,t)=>(t.letterSpacing=0,!0),"tracking-wide":(e,t)=>(t.letterSpacing=0.4,!0),"tracking-wider":(e,t)=>(t.letterSpacing=0.8,!0),"tracking-widest":(e,t)=>(t.letterSpacing=1.6,!0),"tabular-nums":()=>!0,"inline-flex":(e,t)=>(t.display="flex",!0),truncate:()=>!0,relative:(e,t)=>(t.position="relative",!0),absolute:(e,t)=>(t.position="absolute",!0),"overflow-visible":(e,t)=>(t.overflow="visible",!0),"overflow-hidden":(e,t)=>(t.overflow="hidden",!0),"overflow-scroll":(e,t)=>(t.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-sans":(e,t)=>(t.fontFamily=ue("sans")??"sans-serif",!0),"font-serif":(e,t)=>(t.fontFamily=ue("serif")??"serif",!0),"font-mono":(e,t)=>(t.fontFamily=ue("mono")??"monospace",!0),"font-thin":(e,t)=>(t.fontWeight="100",!0),"font-extralight":(e,t)=>(t.fontWeight="200",!0),"font-light":(e,t)=>(t.fontWeight="300",!0),"font-normal":(e,t)=>(t.fontWeight="400",!0),"font-medium":(e,t)=>(t.fontWeight="500",!0),"font-semibold":(e,t)=>(t.fontWeight="600",!0),"font-bold":(e,t)=>(t.fontWeight="bold",!0),"font-extrabold":(e,t)=>(t.fontWeight="800",!0),"font-black":(e,t)=>(t.fontWeight="900",!0),italic:(e,t)=>(t.fontStyle="italic",!0),"not-italic":(e,t)=>(t.fontStyle="normal",!0),"text-left":(e,t)=>(t.textAlign="left",!0),"text-center":(e,t)=>(t.textAlign="center",!0),"text-right":(e,t)=>(t.textAlign="right",!0),"text-justify":(e,t)=>(t.textAlign="justify",!0),uppercase:(e,t)=>(t.textTransform="uppercase",!0),lowercase:(e,t)=>(t.textTransform="lowercase",!0),capitalize:(e,t)=>(t.textTransform="capitalize",!0),"normal-case":(e,t)=>(t.textTransform="none",!0),underline:(e,t)=>(t.textDecorationLine="underline",!0),"line-through":(e,t)=>(t.textDecorationLine="line-through",!0),"no-underline":(e,t)=>(t.textDecorationLine="none",!0)};function $n(e,t){if(!e.startsWith("bg-"))return!1;let n=e.slice(3),r=Q(n);if(r)return t.backgroundColor=r,!0;return!1}function Rt(e,t){if(!e.startsWith("text-"))return!1;let n=e.slice(5),r=_e(n);if(r)return Object.assign(t,r),!0;if(kt[n])return t.fontSize=kt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(o)){let l=o.endsWith("rem")||o.endsWith("em")?Number.parseFloat(o)*16:Number.parseFloat(o);if(Number.isFinite(l))return t.fontSize=l,!0}}let s=Q(n);if(s)return t.color=s,!0;return!1}var Vn=new Set(["t","tr","r","br","b","bl","l","tl"]);function jn(e,t){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(e);if(n&&Vn.has(n[1]))return t.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(e);if(!r)return!1;let s=Q(r[2]);if(!s)return!1;if(r[1]==="from")t.gradientFrom=s;else if(r[1]==="via")t.gradientVia=s;else t.gradientTo=s;return!0}function Wn(e,t){for(let n of["fill","stroke"]){let r=`${n}-`;if(!e.startsWith(r))continue;let s=e.slice(r.length);if(s==="none")return t[n]="none",!0;if(n==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return t.strokeWidth=Number.parseFloat(s),!0;if(n==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return t.strokeWidth=Number.parseFloat(s.slice(1)),!0;let o=Q(s);if(o)return t[n]=o,!0}return!1}function Fn(e,t){if(e.startsWith("p-")){let n=V(e.slice(2));if(n!==void 0)return t.padding=n,!0}if(e.startsWith("px-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingHorizontal=n,!0}if(e.startsWith("py-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingVertical=n,!0}if(e.startsWith("pt-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingTop=n,!0}if(e.startsWith("pr-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingRight=n,!0}if(e.startsWith("pb-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingBottom=n,!0}if(e.startsWith("pl-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingLeft=n,!0}return!1}function At(e,t){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(e)){let n={};if(!At(e.slice(1),n))return!1;let r=Object.entries(n);if(r.some(([,s])=>typeof s!=="number"))return!1;for(let[s,o]of r)t[s]=-o;return!0}if(e.startsWith("m-")){let n=V(e.slice(2));if(n!==void 0)return t.margin=n,!0}if(e.startsWith("mx-")){let n=V(e.slice(3));if(n!==void 0)return t.marginHorizontal=n,!0}if(e.startsWith("my-")){let n=V(e.slice(3));if(n!==void 0)return t.marginVertical=n,!0}if(e.startsWith("mt-")){let n=V(e.slice(3));if(n!==void 0)return t.marginTop=n,!0}if(e.startsWith("mr-")){let n=V(e.slice(3));if(n!==void 0)return t.marginRight=n,!0}if(e.startsWith("mb-")){let n=V(e.slice(3));if(n!==void 0)return t.marginBottom=n,!0}if(e.startsWith("ml-")){let n=V(e.slice(3));if(n!==void 0)return t.marginLeft=n,!0}return!1}function Xn(e,t){if(!e.startsWith("w-"))return!1;let n=e.slice(2);if(n==="full")return t.width="100%",!0;if(n==="screen")return t.width="100%",!0;if(n==="auto")return t.width="auto",!0;if(n.includes("/")){let[s,o]=n.split("/"),l=Number.parseInt(s)/Number.parseInt(o)*100;return t.width=`${l}%`,!0}let r=pe(n);if(r!==void 0)return t.width=r,!0;return!1}function zn(e,t){if(!e.startsWith("h-"))return!1;let n=e.slice(2);if(n==="full")return t.height="100%",!0;if(n==="screen")return t.height="100%",!0;if(n==="auto")return t.height="auto",!0;let r=pe(n);if(r!==void 0)return t.height=r,!0;return!1}function Un(e,t){if(e==="rounded")return t.borderRadius=Tt.DEFAULT,!0;if(!e.startsWith("rounded-"))return!1;let n=e.slice(8);if(n==="")return!1;let r=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(n),s=Tt[r[2]]??Te(r[2])??Pe(r[2]);if(s===void 0)return!1;let o={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],tl:["borderTopLeftRadius"],tr:["borderTopRightRadius"],bl:["borderBottomLeftRadius"],br:["borderBottomRightRadius"]};for(let l of r[1]?o[r[1]]:["borderRadius"])t[l]=s;return!0}function Hn(e,t){let n=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(e);if(!n)return!1;let[,r="",s]=n,o=s===void 0?1:Number(s);if(s?.startsWith("[")){let u=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!u)return!1;o=Number(u[1])*(u[2]==="rem"?16:1)}if(!Number.isFinite(o)||o<0)return!1;let l={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let u of l[r])t[u]=o;return!0}function qn(e,t){if(!e.startsWith("border-"))return!1;let n=e.slice(7),r=Q(n);if(r)return t.borderColor=r,!0;return!1}function Gn(e,t){if(!e.startsWith("opacity-"))return!1;let n=Number.parseInt(e.slice(8));if(!Number.isNaN(n))return t.opacity=n/100,!0;return!1}function Kn(e,t,n){if(e.startsWith("tracking-[")){let r=Pe(e.slice(9),n);if(r===void 0)return!1;return t.letterSpacing=r,!0}if(e.startsWith("leading-")){let r=e.slice(8),s=n,o={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},l=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*s:Pe(r,s):o[r]!==void 0?o[r]*s:Me[r];if(l===void 0||!Number.isFinite(l))return!1;return t.lineHeight=l,!0}return!1}function Jn(e,t){let n=/^(-?)(inset-x|inset-y|inset|top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s=/^\[(-?[\d.]+)px\]$/.exec(r),o=s?Number(s[1]):Me[r];if(o===void 0||!Number.isFinite(o))return!1;let l=n[1]?-o:o,u=n[2]==="inset"?["top","right","bottom","left"]:n[2]==="inset-x"?["left","right"]:n[2]==="inset-y"?["top","bottom"]:[n[2]];for(let d of u)t[d]=l;return!0}function Yn(e,t){let n=/^grid-cols-\[(.+)\]$/.exec(e);if(n)return t.gridColumns=n[1].split("_").filter(Boolean).length,!0;let r=/^grid-cols-(\d+)$/.exec(e);if(!r)return!1;return t.gridColumns=Number(r[1]),!0}function Zn(e,t){if(!e.startsWith("size-"))return!1;let n=e.slice(5),r=n==="full"?"100%":pe(n);if(r===void 0)return!1;return t.width=r,t.height=r,!0}var tr={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function nr(e,t){let n=/^(min|max)-(w|h)-(.+)$/.exec(e);if(!n)return!1;let[,r,s,o]=n,l=o==="full"||o==="screen"?"100%":o==="none"?void 0:s==="w"&&r==="max"&&tr[o]||pe(o);if(l===void 0&&o!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(l===void 0)delete t[u];else t[u]=l;return!0}function rr(e,t){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3]==="full"?"100%":V(n[3]);if(r===void 0)return!1;return t[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function ir(e,t){let n=/^(-?)translate-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s;if(r.startsWith("[")){let u=/^\[([+-]?(?:\d+\.?\d*|\.\d+))(px|rem|em)?\]$/.exec(r);if(!u)return!1;s=Number(u[1])*(u[2]?.endsWith("em")?16:1)}else s=V(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let o=n[2]==="x"?"translateX":"translateY",l=o==="translateX"?{translateX:s}:{translateY:s};return t.transform=[...(t.transform??[]).filter((u)=>!(o in u)),l],!0}function sr(e,t){let n=/^space-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=V(n[2]);if(r===void 0)return!1;return t.gap=r,!0}function or(e,t){if(e.startsWith("gap-")){let n=V(e.slice(4));if(n!==void 0)return t.gap=n,!0}if(e.startsWith("gap-x-")){let n=V(e.slice(6));if(n!==void 0)return t.columnGap=n,!0}if(e.startsWith("gap-y-")){let n=V(e.slice(6));if(n!==void 0)return t.rowGap=n,!0}return!1}function ar(e,t){let r={"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]}[e];if(!r)return!1;let[s,o,l,u]=r;return Object.assign(t,{shadowColor:"#000000",shadowOpacity:l,shadowRadius:s,shadowOffset:{width:0,height:o},elevation:u}),!0}function lr(e){let t=/^divide-(?:(y|x)(?:-(.+))?|(.+))$/.exec(e);if(!t)return null;if(t[2]==="reverse")return"";if(t[1])return`border-${t[1]==="y"?"t":"l"}${t[2]?`-${t[2]}`:""}`;return`border-${t[3]}`}var Et=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),cr=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),ur=/^(?:transition(?:-[a-z]+)?|animate-\S+|scroll-[mp][trblxyse]?-\S+|snap-\S+|overscroll-\S+|duration-\S+|ease-\S+|delay-\S+|will-change-\S+|cursor-\S+|select-(?:none|text|all|auto)|outline-none|outline-0|appearance-none|scroll-smooth|scroll-auto|antialiased|subpixel-antialiased|touch-\S+|resize(?:-\S+)?|backdrop-blur(?:-\S+)?|isolate|contain-\S+)$/;function Ct(e){let t=[],n=0,r=0;for(let s=0;s<e.length;s++){let o=e[s];if(o==="[")n++;else if(o==="]")n=Math.max(0,n-1);else if(o===":"&&n===0)t.push(e.slice(r,s)),r=s+1}return t.push(e.slice(r)),t}function It(e,t=new Set){let n=Ct(e),r=n[n.length-1],s=t.has(r)?void 0:bt(r);if(s===void 0)return[e];let o=n.slice(0,-1).map((u)=>`${u}:`).join(""),l=new Set(t).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>It(`${o}${u}`,l))}function ge(e,t,n={}){let r=new Map,s=(b,f)=>{if(!r.has(b))r.set(b,{...f,classes:[],authored:new Map});return r.get(b)};s("base",{});let o=[],l=[],u=e.split(/\s+/).filter(Boolean);if(n.rules){let b=new Set(u);for(let f of Object.keys(n.rules))if(f.includes(".")&&f.split(".").every((c)=>b.has(c)))l.push(f);l.sort((f,c)=>f.split(".").length-c.split(".").length)}for(let b of u){if(n.rules&&Object.hasOwn(n.rules,b)){o.push(b);continue}for(let f of It(b)){let c=Ct(f),x=c.pop(),g=c.some((T)=>T.startsWith("focus"));if(c.some((T)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(T))&&/^(?:ring|outline)(?:-|$)/.test(x))continue;if(ur.test(x)||!g&&c.some((T)=>cr.has(T)))continue;let N,v,k=!1,w,_=[];for(let T of c){let E=Ie(T),P=T.startsWith("max-")?Ie(T.slice(4)):void 0;if(E!==void 0&&N===void 0)N=E;else if(P!==void 0&&v===void 0)v=P-0.02;else if(T==="disabled"&&!k)k=!0;else if(Et.has(T)&&w===void 0)w=T;else _.push(T)}let C=[..._,x].join(":"),B=N!==void 0||v!==void 0,R=k?s("disabled",{disabled:!0}):w?s(`state:${w}`,{state:w}):B?s(`range:${N??0}:${v??""}`,{min:N??0,max:v}):r.get("base");if((k||w)&&(B||k&&w)){r.get("base").authored.set(f,b),r.get("base").classes.push(f);continue}if(R.classes.push(C),!R.authored.has(C))R.authored.set(C,b===f?f:`${b} (${f})`)}}let d=[...o,...l],h=(b,f)=>f.map((c)=>b.authored.get(c)??c),m=r.get("base"),p=fe(m.classes.join(" "),t,n),y=new Map;if(d.length){let b=(x)=>x?de(x,()=>{},{inheritedVariables:t}):{},f={},c={};for(let x of d){let g=n.rules[x];f={...f,...b(g.light)},c={...c,...b(g.dark)};for(let N of g.responsive??[]){let v=`${N.min}:${N.max??""}`,k=y.get(v)??{min:N.min,...N.max===void 0?{}:{max:N.max},style:{}};if(k.style={...k.style,...b(N.light)},N.dark)k.dark={...k.dark,...b(N.dark)};y.set(v,k)}}if(p.style={...f,...p.style},Object.keys(c).length)p.dark={...c,...p.dark}}p.unknown=h(m,p.unknown);let S=[];for(let b of r.values()){if(b===m)continue;let f=fe(b.classes.join(" "),t,{appearance:n.appearance});p.unknown=[...new Set([...p.unknown,...h(b,f.unknown)])];let c={style:f.style,...f.dark?{dark:f.dark}:{}};if(b.disabled)p.disabled=c;else if(b.state)(p.states??={})[b.state]=c;else S.push({min:b.min??0,...b.max===void 0?{}:{max:b.max},...c})}for(let b of y.values()){let f=S.find((c)=>c.min===b.min&&c.max===b.max);if(f){if(f.style={...b.style,...f.style},b.dark||f.dark)f.dark={...b.dark,...f.dark}}else S.push(b)}if(S.length)p.responsive=S.sort((b,f)=>b.min-f.min||(b.max??1/0)-(f.max??1/0));return p}function fe(e,t,n={}){let r=[],s=[],o=[],l=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function h(g,N){let v=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(g),k=v&&vt(v[2]);if(v&&k){let R=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(k),T=R?t?.get(R[1])??R[2]:k;if(T&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(T))return[`${v[1]}-[${T.replace(/\s+/g,"")}]${v[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(g),_=w&&ht[w[2]];if(_){let R=t?.get(qe(w[2]));return[`${w[1]}-${R===void 0?_[N]:`[${R}]`}${w[3]||""}`]}let C=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(g);if(C&&he[C[2]]){let R=Te(C[2],t);return R===void 0?void 0:[`rounded-${C[1]?`${C[1]}-`:""}[${R}px]`]}let B=g.startsWith("text-")?g.slice(5):"";if(er[B]){let R=_e(B,t);return R&&[`text-[${R.fontSize}px]`,`leading-[${R.lineHeight}px]`]}for(let R of Object.keys(Qn)){if(!g.endsWith(`-${R}`))continue;let T=Re(R,t);return T===void 0?void 0:[`${g.slice(0,-R.length)}[${T}px]`]}return[g]}function m(g,N){if(!d.has(g))d.set(g,new Set);return d.get(g).add(N),g}let p=[],y=new Map;for(let g of e.split(/\s+/).filter(Boolean)){let N=g.startsWith("dark:")?g.slice(5):g,v=lr(N);if(v!==null){let _=v&&`${g===N?"":"dark:"}${v}`;if(_)p.push(_),y.set(_,g);continue}let k=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(g),w=k?.[2]==="focus"?"focus":"focusWithin";if(k&&n[w]&&!(k[1]&&k[3])){let _=`${k[1]||k[3]?"dark:":""}${k[4]}`,C=u[w];C.classes.push(_),C.originals.set(_,[...C.originals.get(_)??[],g]);continue}if(g.startsWith("dark:")){let _=h(g.slice(5),"dark");if(!_)l.push(g);else s.push(..._.map((C)=>m(C,g)))}else if(!g.includes(":")||g.startsWith("[")){let _=h(g,n.appearance??"light"),C=h(g,"dark");if(!_||!C){l.push(g);continue}if(r.push(..._.map((B)=>m(B,g))),C.join(" ")!==_.join(" "))o.push(...C.map((B)=>m(B,g)))}else l.push(g)}let S=[],b=_t(r,S),f={style:b,unknown:S},c=[...n.appearance===void 0?o:[],...s];if(c.length)f.dark=_t(c,S);if(b.transform&&f.dark?.transform){let g=new Set(f.dark.transform.flatMap((N)=>Object.keys(N)));f.dark.transform=[...b.transform.filter((N)=>!Object.keys(N).some((v)=>g.has(v))),...f.dark.transform]}for(let g of r){if(g==="truncate"||g==="whitespace-nowrap")f.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(g);if(N)f.resizeMode=N[1]==="fill"?"stretch":N[1];let v=/^line-clamp-(\d+)$/.exec(g);if(v)f.numberOfLines=Number(v[1]);if(!f.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(g))f.icon=g}let x=S.flatMap((g)=>[...d.get(g)??[g]]);if(f.unknown=[...new Set([...x.filter((g)=>!/^line-clamp-\d+$/.test(g)),...l])],p.length){let g=fe(p.join(" "),t,{appearance:n.appearance});f.divide={style:g.style,...g.dark?{dark:g.dark}:{}},f.unknown=[...new Set([...f.unknown,...g.unknown.map((N)=>y.get(N)??N)])]}for(let g of["focus","focusWithin"]){let N=u[g];if(!N.classes.length)continue;let v=fe(N.classes.join(" "),t,{appearance:n.appearance});f[g]={style:v.style,dark:v.dark},f.unknown=[...new Set([...f.unknown,...v.unknown.flatMap((k)=>N.originals.get(k)??[k])])];for(let k of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(k))f.unknown.push(...N.originals.get(k))}return f}function _t(e,t){let n={},r=Array.isArray(e)?e:e.split(/\s+/).filter(Boolean),s={};for(let l of r)if(l.startsWith("text-"))Rt(l,s);let o=typeof s.fontSize==="number"?s.fontSize:16;for(let l of r){if(/^i-[a-z0-9]+-/.test(l))continue;let u=Dn[l];if(u){u("",n);continue}if(ar(l,n))continue;if(jn(l,n))continue;if($n(l,n))continue;if(Wn(l,n))continue;if(Rt(l,n))continue;if(Fn(l,n))continue;if(At(l,n))continue;if(Xn(l,n))continue;if(zn(l,n))continue;if(Un(l,n))continue;if(Hn(l,n))continue;if(qn(l,n))continue;if(Gn(l,n))continue;if(or(l,n))continue;if(Kn(l,n,o))continue;if(Zn(l,n))continue;if(nr(l,n))continue;if(Yn(l,n))continue;let d=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(l);if(d&&Number(d[2])>0){n.aspectRatio=Number(d[1])/Number(d[2]);continue}let h=/^z-\[(-?\d+)\]$/.exec(l)??/^z-(\d+)$/.exec(l);if(h){n.zIndex=Number(h[1]);continue}if(l==="z-auto")continue;if(Jn(l,n))continue;let m=/^order-\[(-?\d+)\]$/.exec(l)??/^order-(-?\d+)$/.exec(l);if(m){n.order=Number(m[1]);continue}if(rr(l,n))continue;if(ir(l,n))continue;if(sr(l,n))continue;if(t?.push(l),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${l}`)}return n}var Ot=new Map;function Pt(e,t){if(!e)return;let n=e.trim(),r=n.lastIndexOf("-"),s=r===-1?t[n]:t[n.slice(0,r)],o=r===-1?s:s?.[n.slice(r+1)];if(typeof o==="string"&&/^#[\da-f]{3,8}$/i.test(o))return o;return Be(n)??Be(`[${n}]`)}function fr(e){let t=e.roles??{},n=e.shapes??{},r=e.density??{},s={...e.theme?.colors,...e.theme?.extend?.colors},o=[],l=[];for(let[u,d]of Object.entries(t)){if(!ht[u])continue;let h=Pt(typeof d==="string"?d:d?.light,s),m=Pt(typeof d==="string"?d:d?.dark,s);if(h)o.push(`${qe(u)}: ${h};`);if(m)l.push(`${qe(u)}: ${m};`)}for(let[u,d]of Object.entries(n))if(he[u])o.push(`${rn(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Ae[u])o.push(`${Ke(u)}: ${d};`);return[o.length?`:root { ${o.join(" ")} }`:"",l.length?`.dark { ${l.join(" ")} }`:""].filter(Boolean).join(`
|
|
3
|
-
`)}async function pr(e){let{resolveUserCssConfig:t}=await import("./chunk-tyt0dvh3.js"),n=await t(e);return n?fr(n):""}function Mt(e){let t=dr.resolve(e),n=Ot.get(t);if(!n)n=pr(t).catch(()=>""),Ot.set(t,n);return n}var Lt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},Bt={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 gr(e){return e==="role"||e==="aria-label"||e==="aria-valuetext"||e in Lt}function hr(e,t){if(t===void 0||t===null)return;let n=String(t).trim().toLowerCase();if(n==="mixed")return e==="aria-checked"?"mixed":!0;if(n==="undefined")return;return n===""||n==="true"}function mr(e){if(e===void 0||e===null)return null;for(let t of String(e).trim().toLowerCase().split(/\s+/))if(Bt[t])return Bt[t];return null}function yr(e,t,n){if(e==="aria-label")return{accessibilityLabel:t===void 0||t===null||t===""?null:String(t)};if(e==="aria-valuetext")return{accessibilityValue:t===void 0||t===null||t===""?null:String(t)};if(e==="role")return{accessibilityRole:mr(t)};let r=Lt[e];if(!r)return;let s=n.accessibilityState,o=s&&typeof s==="object"?{...s}:{},l=hr(e,t);if(l===void 0)delete o[r];else o[r]=l;return{accessibilityState:Object.keys(o).length?o:null}}function br(e){let t=e.accessibilityState&&typeof e.accessibilityState==="object"?e.accessibilityState:void 0,n={};for(let[s,o]of Object.entries(e)){if(!gr(s))continue;let l=yr(s,o,n);if(l)Object.assign(n,l)}for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(e[s]===void 0&&n[s]!==void 0&&n[s]!==null)e[s]=n[s];let r=n.accessibilityState;if(r)e.accessibilityState={...r,...t}}var Le=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function De(e,t){let n={...e};if(br(n),t==="Image"&&n.accessibilityLabel===void 0&&e.alt!=null&&e.alt!=="")n.accessibilityLabel=String(e.alt);return Object.fromEntries(Le.filter((r)=>(r in n)).map((r)=>[r,n[r]]))}var $t=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],vr=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...$t]),Sr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},wr={email:{keyboardType:"email-address",verbatim:!0,autoComplete:"email"},tel:{keyboardType:"phone-pad",autoComplete:"tel"},url:{keyboardType:"url",verbatim:!0,autoComplete:"url"},number:{keyboardType:"decimal-pad"},search:{keyboardType:"web-search",returnKeyType:"search"},password:{secure:!0,verbatim:!0}},xr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function te(e){return e===void 0||e===null?"":String(e).trim().toLowerCase()}function Dt(e){if(e===void 0||e===null||e===!1)return!1;return te(e)!=="false"}function $e(e,...t){for(let n of t)if(e[n]!==void 0&&e[n]!==null)return e[n];return}function Vt(e,t){if(e!=="TextInput")return{};let n={},r=te(t.type),s=wr[r]??{},o=te($e(t,"inputmode","inputMode")),l=Sr[o]??s.keyboardType;if(l&&l!=="default")n.keyboardType=l;if(s.secure)n.secureTextEntry=!0;let u=te($e(t,"enterkeyhint","enterKeyHint")),d=xr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let h=te(t.autoCapitalize);if(h==="off"||h==="none")n.autoCapitalize="none";else if(h==="on")n.autoCapitalize="sentences";else if(!h&&s.verbatim)n.autoCapitalize="none";let m=t.autoCorrect;if(m==="off"||m==="false"||te(t.spellcheck)==="false"||m===void 0&&s.verbatim)n.autoCorrect=!1;else if(m==="on"||m==="true")n.autoCorrect=!0;if(Dt($e(t,"readonly","readOnly"))||Dt(t.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([p])=>t[p]===void 0||Nr(p,t[p])))}function Nr(e,t){if(e==="autoCapitalize")return t==="off"||t==="on";if(e==="autoCorrect")return typeof t==="string";return!1}function jt(e){let t=Vt(e.type,e.props);if(!Object.keys(t).length)return;e._textEntrySource=Object.fromEntries($t.filter((n)=>(n in e.props)).map((n)=>[n,e.props[n]])),Object.assign(e.props,t)}var Ve={"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","page-selected":"onPageSelected",pageselected:"onPageSelected",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 We={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},Fe=new Set(Object.values(We));var Xt=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),zt=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function X(e){let t=typeof e==="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function J(e){return Math.round(e*1000)/1000}function Xe(e){if(Array.isArray(e)&&e.length===4&&e.every((n)=>Number.isFinite(Number(n))))return e.map(Number);let t=String(e??"").trim().split(/[\s,]+/).map(Number);if(t.length!==4||t.some((n)=>!Number.isFinite(n))||t[2]<=0||t[3]<=0)return null;return t}function kr(e){let t=String(e??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return t.length%2?t.slice(0,-1):t}var Wt=/[MLHVCSQTAZ]/i,je=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function Tr(e){let t=[],n=e,r=Wt.exec(n);while(r){let s=r.index;n=n.slice(s);let o=n[0];n=n.slice(1);let l=Wt.exec(n),u=l?n.slice(0,l.index):n,d;if(o==="A"||o==="a"){d=[];let h=0,m=u.trim(),p=0;while(p<m.length){let y=h%7,S=m.slice(p).replace(/^[\s,]+/,"");if(p=m.length-S.length,!S)break;if(y===3||y===4)d.push(S[0]==="1"?1:0),p+=1;else{je.lastIndex=0;let b=je.exec(S);if(!b||b.index!==0)break;d.push(Number.parseFloat(b[0])),p+=b[0].length}h++}}else d=(u.match(je)||[]).map(Number.parseFloat);t.push({command:o,args:d}),r=l}return t}function Rr(e,t,n,r,s,o,l,u,d){if(e===u&&t===d)return[];let h=Math.abs(n),m=Math.abs(r);if(!h||!m)return[1,u,d];let p=s*Math.PI/180,y=Math.cos(p),S=Math.sin(p),b=(e-u)/2,f=(t-d)/2,c=y*b+S*f,x=-S*b+y*f,g=c*c/(h*h)+x*x/(m*m);if(g>1)h*=Math.sqrt(g),m*=Math.sqrt(g);let N=h*h*m*m-h*h*x*x-m*m*c*c,v=h*h*x*x+m*m*c*c,k=Math.sqrt(Math.max(0,N/v));if(o===l)k=-k;let w=k*(h*x)/m,_=k*-(m*c)/h,C=y*w-S*_+(e+u)/2,B=S*w+y*_+(t+d)/2,R=(L,W,F,q)=>{let Y=L*q-W*F<0?-1:1,G=(L*F+W*q)/(Math.hypot(L,W)*Math.hypot(F,q));return Y*Math.acos(Math.min(1,Math.max(-1,G)))},T=R(1,0,(c-w)/h,(x-_)/m),E=R((c-w)/h,(x-_)/m,(-c-w)/h,(-x-_)/m);if(!l&&E>0)E-=2*Math.PI;if(l&&E<0)E+=2*Math.PI;let P=Math.max(1,Math.ceil(Math.abs(E)/(Math.PI/2))),j=E/P,A=1.3333333333333333*Math.tan(j/4),M=[],z=(L)=>{let W=h*Math.cos(L),F=m*Math.sin(L);return[y*W-S*F+C,S*W+y*F+B]},I=(L)=>{let W=-h*Math.sin(L),F=m*Math.cos(L);return[y*W-S*F,S*W+y*F]},O=T;for(let L=0;L<P;L++){let W=O+j,[F,q]=z(O),[Y,G]=I(O),[it,st]=z(W),[bn,vn]=I(W);M.push(2,F+A*Y,q+A*G,it-A*bn,st-A*vn,L===P-1?u:it,L===P-1?d:st),O=W}return M}function Ut(e){let t=[],n=0,r=0,s=0,o=0,l=0,u=0,d=0,h=0,m="";for(let{command:p,args:y}of Tr(String(e??""))){let S=p===p.toLowerCase(),b=p.toUpperCase(),f=()=>S?n:0,c=()=>S?r:0,x=0,g=(v)=>{if(x+v>y.length)return null;let k=y.slice(x,x+v);return x+=v,k};if(b==="Z"){t.push(4),n=s,r=o,m="Z";continue}let N=!0;while(x<y.length||N&&b==="Z"){switch(b){case"M":{let v=g(2);if(!v)return t;if(n=v[0]+f(),r=v[1]+c(),N)t.push(0,n,r),s=n,o=r;else t.push(1,n,r);m=N?"M":"L";break}case"L":{let v=g(2);if(!v)return t;n=v[0]+f(),r=v[1]+c(),t.push(1,n,r),m="L";break}case"H":{let v=g(1);if(!v)return t;n=v[0]+f(),t.push(1,n,r),m="L";break}case"V":{let v=g(1);if(!v)return t;r=v[0]+c(),t.push(1,n,r),m="L";break}case"C":{let v=g(6);if(!v)return t;let k=v[0]+f(),w=v[1]+c();l=v[2]+f(),u=v[3]+c(),n=v[4]+f(),r=v[5]+c(),t.push(2,k,w,l,u,n,r),m="C";break}case"S":{let v=g(4);if(!v)return t;let k=m==="C"?2*n-l:n,w=m==="C"?2*r-u:r;l=v[0]+f(),u=v[1]+c(),n=v[2]+f(),r=v[3]+c(),t.push(2,k,w,l,u,n,r),m="C";break}case"Q":{let v=g(4);if(!v)return t;d=v[0]+f(),h=v[1]+c(),n=v[2]+f(),r=v[3]+c(),t.push(3,d,h,n,r),m="Q";break}case"T":{let v=g(2);if(!v)return t;d=m==="Q"?2*n-d:n,h=m==="Q"?2*r-h:r,n=v[0]+f(),r=v[1]+c(),t.push(3,d,h,n,r),m="Q";break}case"A":{let v=g(7);if(!v)return t;let k=v[5]+f(),w=v[6]+c();t.push(...Rr(n,r,v[0],v[1],v[2],v[3],v[4],k,w)),n=k,r=w,m="A";break}default:return t}N=!1}}return t.map((p)=>J(p))}function Ft(e,t,n,r){if(n<=0||r<=0)return[];let s=0.5522847498;return[0,e+n,t,2,e+n,t+s*r,e+s*n,t+r,e,t+r,2,e-s*n,t+r,e-n,t+s*r,e-n,t,2,e-n,t-s*r,e-s*n,t-r,e,t-r,2,e+s*n,t-r,e+n,t-s*r,e+n,t,4].map(J)}function ze(e,t){switch(e){case"Path":return Ut(String(t.d??""));case"Line":return[0,X(t.x1),X(t.y1),1,X(t.x2),X(t.y2)].map(J);case"Rect":{let n=X(t.x),r=X(t.y),s=X(t.width),o=X(t.height);if(s<=0||o<=0)return[];let l=t.rx===void 0?X(t.ry):X(t.rx),u=t.ry===void 0?l:X(t.ry);if(l=Math.min(Math.max(0,l),s/2),u=Math.min(Math.max(0,u),o/2),!l||!u)return[0,n,r,1,n+s,r,1,n+s,r+o,1,n,r+o,4].map(J);let d=0.5522847498;return[0,n+l,r,1,n+s-l,r,2,n+s-l+d*l,r,n+s,r+u-d*u,n+s,r+u,1,n+s,r+o-u,2,n+s,r+o-u+d*u,n+s-l+d*l,r+o,n+s-l,r+o,1,n+l,r+o,2,n+l-d*l,r+o,n,r+o-u+d*u,n,r+o-u,1,n,r+u,2,n,r+u-d*u,n+l-d*l,r,n+l,r,4].map(J)}case"Circle":return Ft(X(t.cx),X(t.cy),X(t.r),X(t.r));case"Ellipse":return Ft(X(t.cx),X(t.cy),X(t.rx),X(t.ry));case"Polyline":case"Polygon":{let n=kr(t.points);if(n.length<4)return[];let r=[0,n[0],n[1]];for(let s=2;s<n.length;s+=2)r.push(1,n[s],n[s+1]);if(e==="Polygon")r.push(4);return r.map(J)}default:return null}}function _r(e){let t=/^\s*(\d+(?:\.\d+)?|\.\d+)\s*(ms|s)?\s*$/.exec(String(e??""));if(!t)return null;let n=Number(t[1])/(t[2]==="ms"?1000:1);return n>0?n:null}function Ar(e){if(e.attributeName!=="d")return null;let t=_r(e.dur),n=String(e.values??"").split(";").map((u)=>u.trim()).filter(Boolean);if(t===null||n.length<2)return null;let r=n.map(Ut);if(r.some((u)=>!u.length))return null;let s=String(e.keyTimes??"").split(";").map((u)=>u.trim()).filter(Boolean).map(Number),l=s.length===r.length&&s[0]===0&&s[s.length-1]===1&&s.every((u,d)=>Number.isFinite(u)&&(d===0||u>=s[d-1]))?s.map(J):r.map((u,d)=>J(d/(r.length-1)));return{frames:r,frameTimes:l,duration:t}}function Ue(e){let t=Ar(e),n={frames:t?.frames??null,frameTimes:t?.frameTimes??null,duration:t?.duration??null};for(let[r,s]of Object.entries(n))if(s===null)delete e[r];else e[r]=s;return n}var Er=[...zt,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","barStyle","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","mostRecentEventCount","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pageIndex","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","sheetDetents","selectedDetent","grabberVisible","tintColor","clearButtonMode","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"],Ht=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","grabberVisible"]),Cr=new Map(Er.map((e)=>[qt(e),e]));function qt(e){return e.replace(/[-_]/g,"").toLowerCase()}function He(e,t){if((t==="Image"||t==="Video")&&e.toLowerCase()==="src")return"source";return Cr.get(qt(e))??e}var Ir={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",segmentedcontrol:"SegmentedControl",nativesegmentedcontrol:"SegmentedControl",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 Gt(e){return Ir[e.toLowerCase()]||e}var Or={"circle-pause":"pause.circle","cloud-alert":"exclamationmark.icloud","key-round":"key",paperclip:"paperclip","rotate-cw":"arrow.clockwise","route-off":"location.slash",syringe:"syringe","volume-1":"speaker.wave.1",activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",apple:"leaf",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",bean:"leaf",bed:"bed.double",beef:"fork.knife",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","cake-slice":"birthday.cake",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",carrot:"carrot","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-question-mark":"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","clock-alert":"clock.badge.exclamationmark",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",cookie:"birthday.cake",copy:"doc.on.doc","credit-card":"creditcard","cup-soda":"takeoutbag.and.cup.and.straw",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",drumstick:"fork.knife",dumbbell:"dumbbell",edit:"pencil",egg:"frying.pan","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",fish:"fish",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift","glass-water":"waterbottle",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal",hamburger:"takeoutbag.and.cup.and.straw","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","messages-square":"bubble.left.and.bubble.right",mic:"mic",milk:"waterbottle",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",nut:"leaf",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",salad:"leaf",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",soup:"mug",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",utensils:"fork.knife",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wheat:"laurel.leading",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",wine:"wineglass",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function ie(e,t=!1){let n=String(e??"").trim();if(!n)return{symbol:"circle",known:!1};if(t)return{symbol:n,known:!0};let r=/^i-([a-z0-9]+)-(.+)$/.exec(n)??/^([a-z0-9]+):(.+)$/.exec(n),s=r?r[1]:"lucide",o=r?r[2]:n;if(s==="lucide"){let l=Or[o];if(l)return{symbol:l,iconify:`i-lucide-${o}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0}}return{symbol:"circle",iconify:r?n:`i-lucide-${o}`,known:!1}}function Ge(e){return e.split(/\s+/).find((t)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(t))}import{generate as me,parse as Pr}from"@stacksjs/ts-css/parse";var Mr=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function Br(e){let t=e.replace(/\s+/g,"").toLowerCase();if(!t||t==="all"||t==="screen")return{};if(/^(?:screenand)?\(prefers-color-scheme:dark\)$/.test(t))return{dark:!0};if(/^(?:screenand)?\(prefers-color-scheme:light\)$/.test(t))return{};if(/prefers-reduced-motion|\(hover|\(pointer|print|forced-colors|prefers-contrast/.test(t))return"skip";let n=t.replace(/^screenand/,"").split("and"),r={};for(let s of n){let o=/^\((min|max)-width:([\d.]+)(px|rem|em)\)$/.exec(s);if(!o)return;r[o[1]]=Number(o[2])*(o[3]==="px"?1:16)}return r}async function Kt(e,t){let n={},r=new Set,s=(h)=>{if(r.has(h))return;r.add(h),t(h,[...h.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((m)=>m[1]))},o=(h,m,p)=>{if(!m.trim())return;let y=n[h]??={},S=p.dark?"dark":"light";if(p.min===void 0&&p.max===void 0){y[S]=y[S]?`${y[S]};${m}`:m;return}let b=y.responsive??=[],f=p.min??0,c=b.find((x)=>x.min===f&&x.max===p.max);if(!c)b.push(c={min:f,...p.max===void 0?{}:{max:p.max}});c[S]=c[S]?`${c[S]};${m}`:m};function l(h,m){for(let p of h){if(p.type==="Atrule"){let b=p.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(b)){if(b==="layer"&&p.block)l(p.block.children,m);continue}if(b!=="media"||!p.block){s(`@${b}`);continue}let f=p.prelude?me(p.prelude):"",c=Br(f);if(c==="skip")continue;if(!c){s(`@media ${f}`);continue}l(p.block.children,{dark:m.dark||c.dark,min:c.min??m.min,max:c.max??m.max});continue}if(p.type!=="Rule"||p.block.type!=="Block")continue;let y=[...p.block.children].filter((b)=>b.type==="Declaration").map((b)=>me(b)).join(";"),S=p.prelude.type==="SelectorList"?[...p.prelude.children].map(me):[me(p.prelude)];for(let b of S){let f=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(b.trim());if(!f){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(b.trim()))s(b.trim());continue}let c=f[2];if(c){if(!Mr.test(c))s(b.trim());continue}let x=m.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(b.trim());o(f[1].slice(1),y,{dark:x,min:m.min,max:m.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(h){u="";let m=h.getAttribute("type");d=!m||m.toLowerCase()==="text/css",h.onEndTag(()=>{if(!d)return;try{let p=Pr(u);if(p.type==="StyleSheet")l(p.children,{})}catch{s("invalid stylesheet")}})},text(h){u+=h.text}}).transform(new Response(e)).text();for(let h of Object.values(n))h.responsive?.sort((m,p)=>m.min-p.min||(m.max??1/0)-(p.max??1/0));return n}import{generate as se,parse as Jt}from"@stacksjs/ts-css/parse";async function Yt(e,t){let n={light:new Map,dark:new Map},r=new Set,s=(p)=>{if(!r.has(p))r.add(p),t(p)},o=(p,y,S)=>{for(let b of S){let f=n[b].get(p);if(!f||Number(y.important)>Number(f.important)||y.important===f.important&&y.specificity>=f.specificity)n[b].set(p,y)}},l=(p)=>{if(p.type==="Declaration")return p.property.startsWith("--");if(p.type==="Rule"||p.type==="Atrule")return!!p.block&&[...p.block.children].some(l);return!1},u=(p)=>{let y=p.replace(/\s+/g,"").toLowerCase();if(!y||y==="all"||y==="screen")return["light","dark"];let S=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(y);return S?[S[1]]:void 0};function d(p,y){for(let S of p){if(!l(S))continue;if(S.type==="Atrule"){let f=S.prelude?se(S.prelude):"",c=S.name.toLowerCase()==="media"?u(f):void 0;if(!c){s(`@${S.name} ${f}`.trim());continue}d(S.block.children,y.filter((x)=>c.includes(x)));continue}if(S.type!=="Rule")continue;let b=S.prelude.type==="SelectorList"?[...S.prelude.children].map(se):[se(S.prelude)];for(let f of b){let c=/^(html|:root)?(?:\.(dark|light))?$/.exec(f.trim());if(!c||!c[1]&&!c[2]){s(f);continue}let x=(c[1]===":root"?10:c[1]?1:0)+(c[2]?10:0);for(let g of S.block.children){if(g.type!=="Declaration"){if(l(g))s(`nested rule in ${f}`);continue}if(!g.property.startsWith("--"))continue;let N={value:se(g.value),important:!!g.important,specificity:x};o(g.property,N,y.filter((v)=>!c[2]||c[2]===v))}}}}let h="",m;return await new HTMLRewriter().on("html",{element(p){let y=p.getAttribute("style");if(!y)return;try{let S=Jt(y,{context:"declarationList"});if(S.type!=="DeclarationList")return;for(let b of S.children)if(b.type==="Declaration"&&b.property.startsWith("--"))o(b.property,{value:se(b.value),important:!!b.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(p){h="";let y=p.getAttribute("type");m=!y||y.toLowerCase()==="text/css"?u(p.getAttribute("media")??""):void 0,p.onEndTag(()=>{try{let S=Jt(h);if(S.type!=="StyleSheet")return;if(!m){if([...S.children].some(l))s("style type/media");return}d(S.children,m)}catch{s("invalid stylesheet")}})},text(p){h+=p.text}}).transform(new Response(e)).text(),{light:[...n.light].map(([p,y])=>[p,y.value]),dark:[...n.dark].map(([p,y])=>[p,y.value])}}function H(e,t={},n={},r={},s=[]){return{type:e,props:t,style:n,events:r,children:s}}function Qt(e,t,n={}){return{version:"1.0.0",root:e,script:t,meta:{source:n.source||"unknown",compiledAt:n.compiledAt||Date.now(),headwindConfig:n.headwindConfig}}}var Lr=/^(?:key(?:down|up|press)|mouse[a-z]+|pointer[a-z]+|dbl(?:click)?|contextmenu|wheel|drag[a-z]*|drop|copy|cut|paste|beforeinput|compositionstart|compositionupdate|compositionend|animation[a-z]+|transition[a-z]+|resize|hashchange|popstate|beforeunload|unload|visibilitychange|selectionchange|selectstart|auxclick)$/,Zt=new Set(["script","style","head","meta","link","title","base","noscript"]),en=new Set(["template","body","html","main","fragment"]),ye=new Set,Dr=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","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"]),be=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","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...Fe]),$r=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),tn=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Vr={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function Z(e){return e.replace(/&(#x?[0-9a-f]+|\w+);/gi,(t,n)=>{let r=Vr[n.toLowerCase()];if(r!==void 0)return r;if(n[0]==="#"){let s=n[1]==="x"||n[1]==="X"?Number.parseInt(n.slice(2),16):Number.parseInt(n.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):t}return t})}function Je(e){if(!e.includes("{{"))return null;let t=[],n=0;for(let r of e.matchAll(/\{\{([\s\S]+?)\}\}/g)){if(r.index>n)t.push(JSON.stringify(e.slice(n,r.index)));t.push(`(${r[1].trim()})`),n=r.index+r[0].length}if(!t.some((r)=>r.startsWith("(")))return null;if(n<e.length)t.push(JSON.stringify(e.slice(n)));if(t.length===1)return t[0].slice(1,-1);return`[${t.join(", ")}].map(__stxPart => __stxPart == null ? '' : __stxPart).join('')`}function nn(e,t,n,r={}){let s=r.inheritedVariables,o={},l={},u={},d=[],h="",m={};for(let[b,f]of t){let c=b.toLowerCase();if(c==="class"||c==="classname"){h=h?`${h} ${f}`:f;continue}if(c==="style"){m={...m,...jr(e,f,n,{...r,onVariables(v){s=v,r.onVariables?.(v)}})};continue}if(c.startsWith(":")||c.startsWith("x-")&&c!=="x-cloak"){u[c.startsWith(":")?c.slice(1):c.slice(2)]=Z(f);continue}if(c==="x-cloak")continue;if(c.startsWith("@")||c.startsWith("v-on:")){let v=c.startsWith("@")?c.slice(1):c.slice(5),[k]=v.split("."),w=Ve[k]??(k.startsWith("on")?k:"");if(!w||!Dr.has(w)){if(Lr.test(k)||/\./.test(v))n.push({kind:"unread-event",tag:e,name:b});continue}l[w]=Z(f);continue}if(c==="key"){o.key=f;continue}let x=Z(f),g=Je(x);if(g){u[c]=g,d.push(c);continue}let N=He(b);if(x===""&&Ht.has(N)){o[N]=!0;continue}try{o[N]=JSON.parse(x)}catch{o[N]=x}}let p=o["data-native"]?o["data-native"]==="TextInput":e==="textarea"||e==="input"&&!["checkbox","radio","hidden"].includes(String(o.type??"text").toLowerCase()),y=h?ge(h,s,{focus:p,focusWithin:!0,rules:r.rules}):void 0;for(let b of new Set(y?.unknown??[]))n.push({kind:"unknown-class",tag:e,name:b});let S=Oe({...y?.style,...m});return{props:o,style:S,events:l,bindings:u,classes:h,inline:m,templated:d}}function jr(e,t,n,r){return de(Z(t),(s)=>n.push({...s,tag:e}),r)}function Ye(e){return e.children.map((t)=>typeof t==="string"?t:Ye(t)).join("").replace(/\s+/g," ").trim()}function Wr(e,t){let n=e.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((o)=>typeof o==="string"?H("Text",{},{},{},[o]):o),n;let r=n.children.filter((o)=>typeof o!=="string"),s=n.children.filter((o)=>typeof o==="string").join("").trim();if(e.tag==="button"&&n.type==="Button"&&!e.declaredNative&&r.length>0)return n.type="Pressable",n.props.role??="button",n.children=n.children.flatMap((o)=>typeof o==="string"?o.trim()?[H("Text",{},{},{},[o.trim()])]:[]:[o]),n;if(n.type==="Button"&&r.length===0)return n.children=s?[s]:[],n;if(n.type==="Svg"||n.type==="G")return n.children=r,n;if(n.type==="SvgText"){let o=Ye(n);return n.children=o?[o]:[],n}if(tn.has(n.type)&&r.length===0&&s)return n.type="Text",n.children=[s],n;if(n.type==="Text"&&!s&&r.length===0&&typeof n.props.text==="string")return n.children=n.props.text?[n.props.text]:[],delete n.props.text,n;if(n.type==="Text"&&r.length>0){if(/(?:^|\s)(?:inline-)?(?:flex|grid)(?:\s|$)/.test(n._classes??"")||r.some((u)=>u.type!=="Text"))return n.type="View",n.children=n.children.map((u)=>typeof u==="string"?H("Text",{},{},{},[u]):u),n;let l=Ye(n);return t.push({kind:"flattened-text",tag:e.tag}),n.children=l?[l]:[],n}if(tn.has(n.type)&&r.length>0)n.children=r;return n}async function Fr(e,t={}){e=await oe(e);let n=[],r=await Yt(e,(c)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:c})),s=re(r.light).computed(),o=new Set([...e.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((c)=>c[1].split(/\s+/))),l=await Kt(e,(c,x)=>{if(!x.length||x.some((g)=>o.has(g)))n.push({kind:"unsupported-style-rule",tag:"style",name:c})}),u=[],d=[],h=new Set;function m(c){let x=d[d.length-1];if(!x)u.push(c);else if(!x.dropped)x.node.children.push(c)}function p(c){let x=(N)=>{if(c.tag!=="html"&&c.node._styleSource)N._styleAncestors=[c.node._styleSource,...N._styleAncestors??[]]};if(c.node.bindings&&Object.keys(c.node.bindings).length>0){let N=c.node.children,v=N.filter((w)=>typeof w!=="string"),k=v.length===1&&v.length===N.length?v[0]:H("View",{},{},{},N);if(k.bindings={...c.node.bindings,...k.bindings},k.bindingId===void 0&&c.node.bindingId!==void 0)k.bindingId=c.node.bindingId;x(k),m(k);return}let g=d[d.length-1];for(let N of c.node.children){if(typeof N==="string"){if(g&&!g.dropped)g.node.children.push(N);continue}if(x(N),!g)u.push(N);else if(!g.dropped)g.node.children.push(N)}}function y(c,x){let g=d[d.length-1];if(c==="svg"||g?.svg)return S(c,x,g);let N=Zt.has(c)&&!ye.has(c),v=d[d.length-1]?.dropped??!1,k=g?.variables??s,{props:w,style:_,events:C,bindings:B,classes:R,inline:T,templated:E}=N||v?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:nn(c,x,n,{inheritedVariables:k,onVariables:(I)=>{k=I},rules:l});if(c==="html")k=s;let P=w["data-native"],j=c==="template"&&x.some(([I])=>[":for","x-for","@for"].includes(I)),A;if(j)A="View",w["data-stx-native-template"]=!0;else if(typeof P==="string"&&be.has(P))A=P,delete w["data-native"];else{if(A=ye.has(c)?"View":Gt(c),(c==="i"||c==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(R))A="Icon";else if(c==="i"&&x.some(([I])=>/^(?::|x-)class$/i.test(I)))A="Icon";if(c==="input"){let I=String(w.type??"text").toLowerCase();if(I==="checkbox")A="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(I==="hidden")A="View",_.display="none",T.display="none";else if(I==="radio")A="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:c,name:"input:radio"})}}if(!v&&A===c&&!be.has(A)&&!Zt.has(c)&&!en.has(c)&&!h.has(c))h.add(c),n.push({kind:"unmapped-tag",tag:c});if((N||ye.has(c))&&!h.has(`drop:${c}`))h.add(`drop:${c}`),n.push({kind:"dropped-subtree",tag:c});if(A==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(R))A="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(A==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(R))A="ScrollView";if(c==="form")w["data-stx-form"]=!0;if(c==="button"&&w.type===void 0)w.type="submit";if((A==="Video"||A==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(A==="Icon"){let I=ge(R).icon,O=ie(String(w.symbol||w.name||I||""),Boolean(w.symbol));if(w.symbol=O.symbol,O.iconify)w.iconify=O.iconify}if(A==="FlatList"||A==="SectionList"){let I=new Set([...Object.keys(w),...Object.keys(B)].map((O)=>O.toLowerCase()));for(let[O,L]of $r)if(I.has(O))n.push({kind:"unsupported-list-prop",tag:A,name:L})}let M=H(A,w,_,C);M._inlineStyle=T,M._styleSource=Z(x.find(([I])=>I==="style")?.[1]??"");let z=w["data-stx-b"];if(typeof z==="number"&&Number.isInteger(z))M.bindingId=z;if(delete w["data-stx-b"],R)M._classes=R;if(Object.keys(B).length>0)M.bindings=B;if(E.length>0)M._templated=E;if(typeof w.key==="string")M.key=w.key,delete w.key;return{tag:c,node:M,variables:k,declaredNative:typeof P==="string"&&be.has(P),dropped:N||v||ye.has(c)||A==="Video",discard:N||v,unwrap:en.has(c)&&!j&&A!=="ScrollView"&&!(typeof P==="string"&&be.has(P))}}function S(c,x,g){let N=g?.dropped??!1,v=We[c];if(N||!v){if(!N&&!h.has(`drop:${c}`))h.add(`drop:${c}`),n.push({kind:Xt.has(c)?"dropped-subtree":"unmapped-tag",tag:c});return{tag:c,node:H("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let k=g?.variables??s,{props:w,style:_,events:C,bindings:B,classes:R,inline:T,templated:E}=nn(c,x,n,{inheritedVariables:k,onVariables:(M)=>{k=M},rules:l});if(v==="Svg"){let M=Xe(w.viewBox);if(M)w.viewBox=M;else delete w.viewBox;for(let z of["width","height"]){if(typeof w[z]==="number"&&_[z]===void 0)_[z]=w[z];delete w[z]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let M=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=M}let P=ze(v,w);if(P)w.geometry=P;if(v==="Animate")Ue(w);let j=H(v,w,_,C);j._inlineStyle=T,j._styleSource=Z(x.find(([M])=>M==="style")?.[1]??"");let A=w["data-stx-b"];if(typeof A==="number"&&Number.isInteger(A))j.bindingId=A;if(delete w["data-stx-b"],R)j._classes=R;if(Object.keys(B).length>0)j.bindings=B;if(E.length>0)j._templated=E;if(typeof w.key==="string")j.key=w.key,delete w.key;return{tag:c,node:j,variables:k,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(c){let x=c.tagName.toLowerCase(),g=y(x,[...c.attributes]),N=!0;try{c.onEndTag(()=>{if(d.pop(),g.discard)return;if(g.unwrap)p(g);else m(Wr(g,n))})}catch{N=!1}if(N)d.push(g);else if(!g.discard)m(g.node)},text(c){let x=d[d.length-1];if(!x||x.dropped)return;let g=Xr(Z(c.text),x.inMustache===!0);x.inMustache=g.inside;let N=g.text;if(!N.trim())return;x.node.children.push(N)}}).transform(new Response(e)).text(),u.length===0)throw Error(`No element to translate in the rendered output of ${t.source??"unknown"}`);let b=u.length===1?u[0]:H("View",{},{},{},u);if(r.light.length||r.dark.length)b._stylesheetTheme=r;if(Object.keys(l).length)b._stylesheetRules=l;let f=(c)=>{zr(c);let x=De(c.props,c.type);if(Object.keys(x).length)c._accessibilitySource=Object.fromEntries(Le.filter((g)=>(g in c.props)).map((g)=>[g,c.props[g]])),Object.assign(c.props,x);jt(c);for(let g of c.children)if(typeof g!=="string")f(g)};return f(b),sn(b),{root:b,diagnostics:n}}function sn(e){if(["ScrollView","FlatList","SectionList"].includes(e.type))return!e.props.horizontal&&(Number(e.style.flex)>0||Number(e.style.flexGrow)>0);if(!e.children.map((n)=>typeof n==="string"?!1:sn(n)).some(Boolean)||!["View","SafeAreaView","KeyboardAvoidingView"].includes(e.type))return!1;if(e.style.height!==void 0||e.style.maxHeight!==void 0)return!1;if(e.style.flex===0||e.style.flexGrow===0||e.style.flexShrink===0)return!1;if(e.style.flex===void 0&&e.style.flexGrow===void 0)e._layoutDefaults={flex:1,flexGrow:1,flexShrink:1,flexBasis:0},e.style={...e._layoutDefaults,...e.style};return!0}function Xr(e,t){let n="",r=0;while(r<e.length){if(!t&&e.startsWith("{{",r)){t=!0,n+="{{",r+=2;continue}if(t&&e.startsWith("}}",r)){t=!1,n+="}}",r+=2;continue}let s=e[r];if(!t&&/\s/.test(s)){if(!n.endsWith(" "))n+=" ";while(r<e.length&&/\s/.test(e[r]))r++;continue}n+=s,r++}return{text:n,inside:t}}function zr(e){if(e.props["data-stx-native-template"])return;if(e.bindings?.text||e.children.length===0)return;let t=e.children.filter((r)=>typeof r==="string");if(t.length<e.children.length){let r=e.type==="Button"||e.type==="Text"?null:Je(t.join(""));if(!r)return;e.bindings={...e.bindings,text:r},e._templated=[...e._templated??[],"text"],e.children=e.children.filter((s)=>typeof s!=="string");return}let n=Je(e.children.join(""));if(!n)return;if(e.type!=="Button")e.bindings={...e.bindings,text:n},e._templated=[...e._templated??[],"text"],e.children=[];else{e.type="Pressable",e.props.role??="button";let r=H("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],e.children=[r]}}async function on(e,t={}){let{root:n,diagnostics:r}=await Fr(e,t),s=t.script??{exports:{},functions:[],code:""};return{document:Qt(n,s,{source:t.source??"unknown"}),diagnostics:r}}async function oe(e){if(!/\bdata-native-exclude\b/i.test(e))return e;return new HTMLRewriter().on("[data-native-exclude]",{element(t){t.remove()}}).transform(new Response(e)).text()}var an=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Ur=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,Hr=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,ln=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function Qe(e){let t=[];an.lastIndex=0;for(let o of e.matchAll(an)){let l=o[1]??"";if(/\bserver\b/.test(l))continue;t.push(o[2].trim())}let n=t.filter(Boolean).join(`
|
|
2
|
+
import"./chunk-zkx2m308.js";import{zs,yi,tl}from"./chunk-ez35607j.js";import"./chunk-zn3c0ew5.js";import"./chunk-asxh3wqg.js";import"./chunk-rbmt5w9v.js";import"./chunk-za4e4w89.js";import"./chunk-4c86wr9a.js";import"./chunk-2mqzpzy7.js";import{a}from"./chunk-cg2vjkv9.js";import"./chunk-q7fh1xka.js";import"./chunk-3fwdxxh1.js";import"./chunk-h3pj7xkd.js";import{ht,qe,he,rn,Ae,Qn,er,Ke}from"./chunk-r8hex2ra.js";import{i}from"./chunk-zxeegh47.js";import"./chunk-c77deyem.js";import"./chunk-ycdfgs9z.js";import{is}from"./chunk-yzwx8j20.js";import"./chunk-zxd5vt3f.js";import"./chunk-x9wwd2ee.js";import{gt}from"./chunk-k93mp66m.js";import"./chunk-1xjv71dw.js";import"./chunk-zb1627aa.js";import{mo}from"./chunk-0vp8tbtw.js";import"./chunk-jx9vy6j1.js";import"./chunk-r3j4m04w.js";import"./chunk-01b2xpaa.js";import"./chunk-m5nzpjej.js";import"./chunk-bcymfrbv.js";import{existsSync as xe,mkdirSync as gi,readFileSync as hi}from"fs";import U from"path";import{existsSync as nt,mkdirSync as gn,realpathSync as ri,rmSync as hn}from"fs";import D from"path";import{existsSync as Jr}from"fs";import K from"path";var Sn="data-stx-b",ot=new Set(yi),wn=new Set(zs);function ke(e){if(e==="ref"||e==="data-stx-ref")return"ref";if(e.startsWith("::"))return null;if(e.startsWith("@bind:")||e.startsWith("x-bind:"))return"attr";if(e.startsWith("@")||e.startsWith(":")){let t=e.slice(1).split(".")[0];if(ot.has(t))return t==="if"?"if":t;if(t==="for"||t==="else"||t==="else-if"||t==="elseif")return"for";if(tl(t))return"event";if(e.startsWith("@"))return"event";return"attr"}if(e.startsWith("x-")){let t=e.split(".")[0];if(!wn.has(t))return"attr";let n=t.slice(2);if(n==="cloak"||n==="data"||n==="bind")return null;if(n==="tooltip"||n==="tooltip-position")return null;return ot.has(n)?n==="if"?"if":n:"attr"}return null}function xn(e){let t=[];for(let[n,r]of e){let s=ke(n);if(s)t.push({name:n,value:r,kind:s})}return t}var Nn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,Ne=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function at(e){let t=[],n=0;return{html:e.replace(Nn,(s,o,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];Ne.lastIndex=0;for(let y=Ne.exec(l);y;y=Ne.exec(l))u.push([y[1],y[2]??y[3]??y[4]??""]);let d=xn(u);if(!d.length)return s;let h={id:n++,bindings:d};if(d.some((y)=>y.kind==="for"))h.template=!0;t.push(h);let m=s.endsWith("/>");return`${s.slice(0,m?-2:-1).trimEnd()} ${Sn}="${h.id}"${m?"/>":">"}`}),manifest:{entries:t}}}import dr from"path";function le(e){let t=e&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(e.trim());if(!t)return;let n=Number(t[1])*(t[2]==="rem"?16:1);return Number.isFinite(n)?n:void 0}function Te(e,t){if(!he[e])return;return le(t?.get(rn(e))??he[e].value)}function Re(e,t){let n=Qn[e];if(!n)return;return le(t?.get(Ke(n))??Ae[n]?.value)}function _e(e,t){let n=er[e];if(!n)return;let r=le(t?.get(Ke(n.size))??Ae[n.size]?.value),s=le(t?.get(Ke(n.leading))??Ae[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var kn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},dt=Ce({}),lt,ct=null;function ce(){let e=globalThis.__stxNativeStyleConfig;if(!e)return dt;if(e!==lt)lt=e,ct=Ce(e);return ct}function ft(e,t=new Map,n=""){for(let[r,s]of Object.entries(e??{})){let o=r==="DEFAULT"?n.replace(/-$/,""):`${n}${r}`;if(typeof s==="string")t.set(o,s);else if(s&&typeof s==="object")ft(s,t,`${o}-`)}return t}function pt(e){let t={};for(let[n,r]of Object.entries(e??{})){let s=typeof r==="number"?r:Number.parseFloat(String(r));if(Number.isFinite(s))t[n]=s}return t}function Ce(e){return{shortcuts:new Map(Object.entries(e.shortcuts??{}).filter(([,t])=>typeof t==="string")),colors:ft(e.colors),fontFamily:new Map(Object.entries(e.fontFamily??{}).map(([t,n])=>[t,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...kn,...pt(e.breakpoints)}))}}var Ee={};function ut(e){Ee=e??{},dt=Ce(Ee)}async function mt(e,t){let n=Ee;ut(e);try{return await t()}finally{ut(n)}}function yt(e){if(!e)return{};let t=e.theme??{},n=Object.fromEntries(Object.entries(e.shortcuts??{}).filter(([,r])=>typeof r==="string"));return{...Object.keys(n).length?{shortcuts:n}:{},...t.fontFamily?{fontFamily:JSON.parse(JSON.stringify(t.fontFamily))}:{},...t.colors?{colors:JSON.parse(JSON.stringify(t.colors))}:{},...t.screens?{breakpoints:pt(t.screens)}:{}}}function bt(e){return ce().shortcuts.get(e)}function vt(e){return ce().colors.get(e)}function Ie(e){return ce().breakpoints.get(e)}function ue(e){return ce().fontFamily.get(e)}var wt=/^--[\w\u0080-\uFFFF-]+$/u;function St(e,t){if(!/var\(/i.test(e))return e;let n="",r="",s=!1;for(let o=0;o<e.length;o++){let l=e[o];if(l==="\\"){n+=e.slice(o,o+2),o++;continue}if(r){if(n+=l,l===r)r="";continue}if(l==='"'||l==="'"){r=l,n+=l;continue}if(e.slice(o,o+4).toLowerCase()!=="var("||o>0&&/[\w-]/.test(e[o-1])){n+=l;continue}let u=1,d=-1,h="",m=o+4;for(;m<e.length;m++){let S=e[m];if(S==="\\"){m++;continue}if(h){if(S===h)h="";continue}if(S==='"'||S==="'"){h=S;continue}if(S==="(")u++;if(S===")"&&--u===0)break;if(S===","&&u===1&&d===-1)d=m}if(u!==0)return;let p=e.slice(o+4,d===-1?m:d).trim();if(!wt.test(p))return;let y=t(p,d===-1?void 0:e.slice(d+1,m).trim());if(y===void 0||n.length+y.length>65536)return;n+=y,s=!0,o=m}return s&&n.length>65536?void 0:n}function re(e,t){let n=new Map,r=new Set;for(let[f,c]of e){let x=f.trim();if(!wt.test(x))continue;if(typeof c==="string"||typeof c==="number"&&Number.isFinite(c))n.set(x,String(c).trim())}let s=new Map,o=new Set;for(let[f,c]of n){let x=new Set,g=(N,v=0)=>v>64?void 0:St(N,(k,w)=>(x.add(k),w===void 0?"":g(w,v+1)));if(g(c)===void 0)o.add(f);s.set(f,x)}let l=new Map,u=new Map,d=[],h=new Set,m=0;function p(f,c=0){if(c>64){o.add(f);return}l.set(f,m),u.set(f,m++),d.push(f),h.add(f);for(let N of s.get(f)??[]){if(!n.has(N))continue;if(!l.has(N)){if(p(N,c+1),u.has(N))u.set(f,Math.min(u.get(f),u.get(N)))}else if(h.has(N))u.set(f,Math.min(u.get(f),l.get(N)))}if(u.get(f)!==l.get(f))return;let x=[],g;do g=d.pop(),h.delete(g),x.push(g);while(g!==f);if(x.length>1||s.get(f)?.has(f))x.forEach((N)=>o.add(N))}for(let f of n.keys())if(!l.has(f))p(f);let y=new Map;function S(f,c){if(r.add(f),y.has(f))return y.get(f);let x=n.get(f),g=x===void 0||/^(?:inherit|unset)$/i.test(x)?t?.get(f):o.has(f)||/^(?:initial|revert|revert-layer)$/i.test(x)?void 0:b(x,c+1);return y.set(f,g),g}function b(f,c=0){if(c>64)return;return St(f,(x,g)=>S(x,c)??(g===void 0?void 0:b(g,c+1)))}return{resolve:b,used:r,computed(){let f=new Map(t);for(let c of n.keys())f.set(c,S(c,0));return f}}}function Oe(e){if(e.display==="flex"&&e.flexDirection==null)return{...e,flexDirection:"row"};return e}var xt=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","objectFit","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Tn=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"]),Nt=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"]),Rn=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,_n=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,An=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),En=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function Cn(e){if(typeof e!=="string")return e;let t=_n.exec(e);return t?Number(t[1])*(/^r?em$/i.test(t[2]||"")?16:1):e}function ee(e){return typeof e==="number"&&Number.isFinite(e)}function In(e,t){if(e==="shadowOffset"&&t&&typeof t==="object"&&!Array.isArray(t)){let{width:n,height:r}=t;return ee(n)&&ee(r)?{width:n,height:r}:void 0}if(e==="transform"&&Array.isArray(t)){let n=[];for(let r of t){if(!r||typeof r!=="object"||Array.isArray(r)||Object.keys(r).length!==1)return;let[s,o]=Object.entries(r)[0];if(En.has(s)&&ee(o))n.push({[s]:o});else if(An.has(s)&&typeof o==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(o))n.push({[s]:o});else return}return n}return}function On(e){let t=[],n=0,r=0,s="";for(let o=0;o<=e.length;o++){let l=e[o];if(l==="\\"){o++;continue}if(s){if(l===s)s="";continue}if(l==='"'||l==="'"){s=l;continue}if(l==="(")r++;if(l===")")r=Math.max(0,r-1);if(o!==e.length&&(l!==";"||r))continue;let u=e.slice(n,o),d=u.indexOf(":");if(d!==-1)t.push([u.slice(0,d).trim(),u.slice(d+1).trim()]);n=o+1}return t}function Pn(e,t){let n;if(typeof e==="string"){if(e=e.trim(),!e)return[];try{e=JSON.parse(e)}catch{}}if(typeof e==="string")n=On(e);else if(e&&typeof e==="object"&&!Array.isArray(e))n=Object.entries(e);else{if(e!=null&&e!==!1)t({kind:"non-numeric-style",name:"style"});return[]}return n}function de(e,t=()=>{},n={}){let r=Pn(e,t),s=re(r,n.inheritedVariables);return n.onVariables?.(s.computed()),Mn(r,s,t)}function Mn(e,t,n){let r={},s=[];for(let[o,l]of e){if(o.trim().startsWith("--")){s.push(o.trim());continue}let u=xt.has(o)||o.trim().startsWith("--")?o:o.trim().toLowerCase().replace(/-([a-z])/g,(m,p)=>p.toUpperCase());if(!xt.has(u)){n({kind:"unknown-style",name:u});continue}if(l==null||l==="")continue;let d=typeof l==="string"?t.resolve(l.trim()):l;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="objectFit"){let m=typeof d==="string"?d.trim().toLowerCase():"";if(m==="cover"||m==="contain")r.resizeMode=m;else if(m==="fill")r.resizeMode="stretch";else if(m==="none")r.resizeMode="center";else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}let h;if(Tn.has(u)||Nt.has(u)){if(h=Cn(d),!ee(h)&&!(Nt.has(u)&&typeof h==="string"&&h.endsWith("%")&&Rn.test(h.slice(0,-1))&&Number.isFinite(Number(h.slice(0,-1)))))h=void 0}else if(u==="display"&&d==="inline-flex")h="flex";else if(u==="shadowOffset"||u==="transform")h=In(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")h=ee(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&ee(d))h=String(d);else if(typeof d==="string")h=d;if(h===void 0)n({kind:"non-numeric-style",name:u});else r[u]=h}for(let o of s)if(!t.used.has(o))n({kind:"unknown-style",name:o});return r}var Bn={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"}},Me={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},kt={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},Tt={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function Q(e){let t=e.lastIndexOf("/");if(t>0&&(!e.endsWith("]")||/\/\[[\d.]+%?\]$/.test(e))){let r=Q(e.slice(0,t)),s=e.slice(t+1),o=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!r||!Number.isFinite(o))return;return Ln(r,o/100)}if(e==="transparent")return"transparent";if(e==="current")return"currentColor";if(e==="black")return"#000000";if(e==="white")return"#ffffff";let n=e.split("-");if(n.length===2){let[r,s]=n,o=Bn[r];if(o&&typeof o==="object")return o[s]}if(e.startsWith("[")&&e.endsWith("]")){let r=e.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(r)?r:void 0}return}function Be(e){return Q(e.trim())}function Ln(e,t){if(e==="transparent")return e;let n=e.startsWith("#")?e.slice(1):"";if(n.length===3)n=n.split("").map((s)=>s+s).join("");if(n.length===8)n=n.slice(0,6);if(n.length!==6)return;let r=Math.round(Math.min(1,Math.max(0,t))*255);return`#${n}${r.toString(16).padStart(2,"0")}`}function Pe(e,t=16){if(!e.startsWith("[")||!e.endsWith("]"))return;let n=e.slice(1,-1),r=Number.parseFloat(n);if(!Number.isFinite(r))return;if(n.endsWith("rem"))return r*16;if(n.endsWith("em"))return r*t;return r}function V(e){if(e.startsWith("[")&&e.endsWith("]")){let t=e.slice(1,-1);if(t.endsWith("%"))return;let n=t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t);return Number.isFinite(n)?n:void 0}return Me[e]??Re(e)}function pe(e){let t=/^\[(-?\d*\.?\d+)%\]$/.exec(e);if(t)return`${Number.parseFloat(t[1])}%`;return V(e)}var Dn={flex:(e,t)=>(t.display="flex",!0),block:(e,t)=>(t.display="flex",!0),hidden:(e,t)=>(t.display="none",!0),grid:(e,t)=>(t.display="grid",!0),"flex-row":(e,t)=>(t.flexDirection="row",!0),"flex-col":(e,t)=>(t.flexDirection="column",!0),"flex-row-reverse":(e,t)=>(t.flexDirection="row-reverse",!0),"flex-col-reverse":(e,t)=>(t.flexDirection="column-reverse",!0),"flex-wrap":(e,t)=>(t.flexWrap="wrap",!0),"flex-nowrap":(e,t)=>(t.flexWrap="nowrap",!0),"flex-wrap-reverse":(e,t)=>(t.flexWrap="wrap-reverse",!0),"flex-1":(e,t)=>(t.flex=1,t.flexGrow=1,t.flexShrink=1,t.flexBasis=0,!0),"flex-auto":(e,t)=>(t.flexGrow=1,t.flexShrink=1,!0),"flex-initial":(e,t)=>(t.flexGrow=0,t.flexShrink=1,!0),"flex-none":(e,t)=>(t.flexGrow=0,t.flexShrink=0,!0),grow:(e,t)=>(t.flexGrow=1,!0),"grow-0":(e,t)=>(t.flexGrow=0,!0),shrink:(e,t)=>(t.flexShrink=1,!0),"shrink-0":(e,t)=>(t.flexShrink=0,!0),"order-first":(e,t)=>(t.order=-9999,!0),"order-last":(e,t)=>(t.order=9999,!0),"order-none":(e,t)=>(t.order=0,!0),"justify-start":(e,t)=>(t.justifyContent="flex-start",!0),"justify-center":(e,t)=>(t.justifyContent="center",!0),"justify-end":(e,t)=>(t.justifyContent="flex-end",!0),"justify-between":(e,t)=>(t.justifyContent="space-between",!0),"justify-around":(e,t)=>(t.justifyContent="space-around",!0),"justify-evenly":(e,t)=>(t.justifyContent="space-evenly",!0),"items-start":(e,t)=>(t.alignItems="flex-start",!0),"items-center":(e,t)=>(t.alignItems="center",!0),"items-end":(e,t)=>(t.alignItems="flex-end",!0),"items-stretch":(e,t)=>(t.alignItems="stretch",!0),"items-baseline":(e,t)=>(t.alignItems="baseline",!0),"self-auto":(e,t)=>(t.alignSelf="auto",!0),"self-start":(e,t)=>(t.alignSelf="flex-start",!0),"self-center":(e,t)=>(t.alignSelf="center",!0),"self-end":(e,t)=>(t.alignSelf="flex-end",!0),"self-stretch":(e,t)=>(t.alignSelf="stretch",!0),"self-baseline":(e,t)=>(t.alignSelf="baseline",!0),"min-w-0":(e,t)=>(t.minWidth=0,!0),"aspect-square":(e,t)=>(t.aspectRatio=1,!0),"aspect-video":(e,t)=>(t.aspectRatio=1.7777777777777777,!0),"border-solid":(e,t)=>(t.borderStyle="solid",!0),"border-dashed":(e,t)=>(t.borderStyle="dashed",!0),"border-dotted":(e,t)=>(t.borderStyle="dotted",!0),group:()=>!0,peer:()=>!0,"inset-0":(e,t)=>(t.top=0,t.right=0,t.bottom=0,t.left=0,!0),"mx-auto":(e,t)=>(t.alignSelf="center",!0),fixed:(e,t)=>(t.position="absolute",!0),sticky:()=>!0,"sr-only":(e,t)=>(t.position="absolute",t.width=1,t.height=1,t.overflow="hidden",!0),inline:()=>!0,"inline-block":()=>!0,contents:()=>!0,"align-top":()=>!0,"align-middle":()=>!0,"align-bottom":()=>!0,"align-baseline":()=>!0,"align-text-top":()=>!0,"whitespace-normal":()=>!0,"whitespace-pre":()=>!0,"whitespace-pre-line":()=>!0,"whitespace-pre-wrap":()=>!0,"whitespace-nowrap":()=>!0,"break-words":()=>!0,"break-all":()=>!0,"break-normal":()=>!0,"object-cover":()=>!0,"object-contain":()=>!0,"object-fill":()=>!0,"object-center":()=>!0,"tracking-tighter":(e,t)=>(t.letterSpacing=-0.8,!0),"tracking-tight":(e,t)=>(t.letterSpacing=-0.4,!0),"tracking-normal":(e,t)=>(t.letterSpacing=0,!0),"tracking-wide":(e,t)=>(t.letterSpacing=0.4,!0),"tracking-wider":(e,t)=>(t.letterSpacing=0.8,!0),"tracking-widest":(e,t)=>(t.letterSpacing=1.6,!0),"tabular-nums":()=>!0,"inline-flex":(e,t)=>(t.display="flex",!0),truncate:()=>!0,relative:(e,t)=>(t.position="relative",!0),absolute:(e,t)=>(t.position="absolute",!0),"overflow-visible":(e,t)=>(t.overflow="visible",!0),"overflow-hidden":(e,t)=>(t.overflow="hidden",!0),"overflow-scroll":(e,t)=>(t.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-sans":(e,t)=>(t.fontFamily=ue("sans")??"sans-serif",!0),"font-serif":(e,t)=>(t.fontFamily=ue("serif")??"serif",!0),"font-mono":(e,t)=>(t.fontFamily=ue("mono")??"monospace",!0),"font-thin":(e,t)=>(t.fontWeight="100",!0),"font-extralight":(e,t)=>(t.fontWeight="200",!0),"font-light":(e,t)=>(t.fontWeight="300",!0),"font-normal":(e,t)=>(t.fontWeight="400",!0),"font-medium":(e,t)=>(t.fontWeight="500",!0),"font-semibold":(e,t)=>(t.fontWeight="600",!0),"font-bold":(e,t)=>(t.fontWeight="bold",!0),"font-extrabold":(e,t)=>(t.fontWeight="800",!0),"font-black":(e,t)=>(t.fontWeight="900",!0),italic:(e,t)=>(t.fontStyle="italic",!0),"not-italic":(e,t)=>(t.fontStyle="normal",!0),"text-left":(e,t)=>(t.textAlign="left",!0),"text-center":(e,t)=>(t.textAlign="center",!0),"text-right":(e,t)=>(t.textAlign="right",!0),"text-justify":(e,t)=>(t.textAlign="justify",!0),uppercase:(e,t)=>(t.textTransform="uppercase",!0),lowercase:(e,t)=>(t.textTransform="lowercase",!0),capitalize:(e,t)=>(t.textTransform="capitalize",!0),"normal-case":(e,t)=>(t.textTransform="none",!0),underline:(e,t)=>(t.textDecorationLine="underline",!0),"line-through":(e,t)=>(t.textDecorationLine="line-through",!0),"no-underline":(e,t)=>(t.textDecorationLine="none",!0)};function $n(e,t){if(!e.startsWith("bg-"))return!1;let n=e.slice(3),r=Q(n);if(r)return t.backgroundColor=r,!0;return!1}function Rt(e,t){if(!e.startsWith("text-"))return!1;let n=e.slice(5),r=_e(n);if(r)return Object.assign(t,r),!0;if(kt[n])return t.fontSize=kt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(o)){let l=o.endsWith("rem")||o.endsWith("em")?Number.parseFloat(o)*16:Number.parseFloat(o);if(Number.isFinite(l))return t.fontSize=l,!0}}let s=Q(n);if(s)return t.color=s,!0;return!1}var Vn=new Set(["t","tr","r","br","b","bl","l","tl"]);function jn(e,t){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(e);if(n&&Vn.has(n[1]))return t.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(e);if(!r)return!1;let s=Q(r[2]);if(!s)return!1;if(r[1]==="from")t.gradientFrom=s;else if(r[1]==="via")t.gradientVia=s;else t.gradientTo=s;return!0}function Wn(e,t){for(let n of["fill","stroke"]){let r=`${n}-`;if(!e.startsWith(r))continue;let s=e.slice(r.length);if(s==="none")return t[n]="none",!0;if(n==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return t.strokeWidth=Number.parseFloat(s),!0;if(n==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return t.strokeWidth=Number.parseFloat(s.slice(1)),!0;let o=Q(s);if(o)return t[n]=o,!0}return!1}function Fn(e,t){if(e.startsWith("p-")){let n=V(e.slice(2));if(n!==void 0)return t.padding=n,!0}if(e.startsWith("px-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingHorizontal=n,!0}if(e.startsWith("py-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingVertical=n,!0}if(e.startsWith("pt-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingTop=n,!0}if(e.startsWith("pr-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingRight=n,!0}if(e.startsWith("pb-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingBottom=n,!0}if(e.startsWith("pl-")){let n=V(e.slice(3));if(n!==void 0)return t.paddingLeft=n,!0}return!1}function At(e,t){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(e)){let n={};if(!At(e.slice(1),n))return!1;let r=Object.entries(n);if(r.some(([,s])=>typeof s!=="number"))return!1;for(let[s,o]of r)t[s]=-o;return!0}if(e.startsWith("m-")){let n=V(e.slice(2));if(n!==void 0)return t.margin=n,!0}if(e.startsWith("mx-")){let n=V(e.slice(3));if(n!==void 0)return t.marginHorizontal=n,!0}if(e.startsWith("my-")){let n=V(e.slice(3));if(n!==void 0)return t.marginVertical=n,!0}if(e.startsWith("mt-")){let n=V(e.slice(3));if(n!==void 0)return t.marginTop=n,!0}if(e.startsWith("mr-")){let n=V(e.slice(3));if(n!==void 0)return t.marginRight=n,!0}if(e.startsWith("mb-")){let n=V(e.slice(3));if(n!==void 0)return t.marginBottom=n,!0}if(e.startsWith("ml-")){let n=V(e.slice(3));if(n!==void 0)return t.marginLeft=n,!0}return!1}function Xn(e,t){if(!e.startsWith("w-"))return!1;let n=e.slice(2);if(n==="full")return t.width="100%",!0;if(n==="screen")return t.width="100%",!0;if(n==="auto")return t.width="auto",!0;if(n.includes("/")){let[s,o]=n.split("/"),l=Number.parseInt(s)/Number.parseInt(o)*100;return t.width=`${l}%`,!0}let r=pe(n);if(r!==void 0)return t.width=r,!0;return!1}function zn(e,t){if(!e.startsWith("h-"))return!1;let n=e.slice(2);if(n==="full")return t.height="100%",!0;if(n==="screen")return t.height="100%",!0;if(n==="auto")return t.height="auto",!0;let r=pe(n);if(r!==void 0)return t.height=r,!0;return!1}function Un(e,t){if(e==="rounded")return t.borderRadius=Tt.DEFAULT,!0;if(!e.startsWith("rounded-"))return!1;let n=e.slice(8);if(n==="")return!1;let r=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(n),s=Tt[r[2]]??Te(r[2])??Pe(r[2]);if(s===void 0)return!1;let o={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],tl:["borderTopLeftRadius"],tr:["borderTopRightRadius"],bl:["borderBottomLeftRadius"],br:["borderBottomRightRadius"]};for(let l of r[1]?o[r[1]]:["borderRadius"])t[l]=s;return!0}function Hn(e,t){let n=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(e);if(!n)return!1;let[,r="",s]=n,o=s===void 0?1:Number(s);if(s?.startsWith("[")){let u=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!u)return!1;o=Number(u[1])*(u[2]==="rem"?16:1)}if(!Number.isFinite(o)||o<0)return!1;let l={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let u of l[r])t[u]=o;return!0}function qn(e,t){if(!e.startsWith("border-"))return!1;let n=e.slice(7),r=Q(n);if(r)return t.borderColor=r,!0;return!1}function Gn(e,t){if(!e.startsWith("opacity-"))return!1;let n=Number.parseInt(e.slice(8));if(!Number.isNaN(n))return t.opacity=n/100,!0;return!1}function Kn(e,t,n){if(e.startsWith("tracking-[")){let r=Pe(e.slice(9),n);if(r===void 0)return!1;return t.letterSpacing=r,!0}if(e.startsWith("leading-")){let r=e.slice(8),s=n,o={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},l=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*s:Pe(r,s):o[r]!==void 0?o[r]*s:Me[r];if(l===void 0||!Number.isFinite(l))return!1;return t.lineHeight=l,!0}return!1}function Jn(e,t){let n=/^(-?)(inset-x|inset-y|inset|top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s=/^\[(-?[\d.]+)px\]$/.exec(r),o=s?Number(s[1]):Me[r];if(o===void 0||!Number.isFinite(o))return!1;let l=n[1]?-o:o,u=n[2]==="inset"?["top","right","bottom","left"]:n[2]==="inset-x"?["left","right"]:n[2]==="inset-y"?["top","bottom"]:[n[2]];for(let d of u)t[d]=l;return!0}function Yn(e,t){let n=/^grid-cols-\[(.+)\]$/.exec(e);if(n)return t.gridColumns=n[1].split("_").filter(Boolean).length,!0;let r=/^grid-cols-(\d+)$/.exec(e);if(!r)return!1;return t.gridColumns=Number(r[1]),!0}function Zn(e,t){if(!e.startsWith("size-"))return!1;let n=e.slice(5),r=n==="full"?"100%":pe(n);if(r===void 0)return!1;return t.width=r,t.height=r,!0}var tr={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function nr(e,t){let n=/^(min|max)-(w|h)-(.+)$/.exec(e);if(!n)return!1;let[,r,s,o]=n,l=o==="full"||o==="screen"?"100%":o==="none"?void 0:s==="w"&&r==="max"&&tr[o]||pe(o);if(l===void 0&&o!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(l===void 0)delete t[u];else t[u]=l;return!0}function rr(e,t){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3]==="full"?"100%":V(n[3]);if(r===void 0)return!1;return t[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function ir(e,t){let n=/^(-?)translate-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s;if(r.startsWith("[")){let u=/^\[([+-]?(?:\d+\.?\d*|\.\d+))(px|rem|em)?\]$/.exec(r);if(!u)return!1;s=Number(u[1])*(u[2]?.endsWith("em")?16:1)}else s=V(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let o=n[2]==="x"?"translateX":"translateY",l=o==="translateX"?{translateX:s}:{translateY:s};return t.transform=[...(t.transform??[]).filter((u)=>!(o in u)),l],!0}function sr(e,t){let n=/^space-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=V(n[2]);if(r===void 0)return!1;return t.gap=r,!0}function or(e,t){if(e.startsWith("gap-")){let n=V(e.slice(4));if(n!==void 0)return t.gap=n,!0}if(e.startsWith("gap-x-")){let n=V(e.slice(6));if(n!==void 0)return t.columnGap=n,!0}if(e.startsWith("gap-y-")){let n=V(e.slice(6));if(n!==void 0)return t.rowGap=n,!0}return!1}function ar(e,t){let r={"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]}[e];if(!r)return!1;let[s,o,l,u]=r;return Object.assign(t,{shadowColor:"#000000",shadowOpacity:l,shadowRadius:s,shadowOffset:{width:0,height:o},elevation:u}),!0}function lr(e){let t=/^divide-(?:(y|x)(?:-(.+))?|(.+))$/.exec(e);if(!t)return null;if(t[2]==="reverse")return"";if(t[1])return`border-${t[1]==="y"?"t":"l"}${t[2]?`-${t[2]}`:""}`;return`border-${t[3]}`}var Et=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),cr=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),ur=/^(?:transition(?:-[a-z]+)?|animate-\S+|scroll-[mp][trblxyse]?-\S+|snap-\S+|overscroll-\S+|duration-\S+|ease-\S+|delay-\S+|will-change-\S+|cursor-\S+|select-(?:none|text|all|auto)|outline-none|outline-0|appearance-none|scroll-smooth|scroll-auto|antialiased|subpixel-antialiased|touch-\S+|resize(?:-\S+)?|backdrop-blur(?:-\S+)?|isolate|contain-\S+)$/;function Ct(e){let t=[],n=0,r=0;for(let s=0;s<e.length;s++){let o=e[s];if(o==="[")n++;else if(o==="]")n=Math.max(0,n-1);else if(o===":"&&n===0)t.push(e.slice(r,s)),r=s+1}return t.push(e.slice(r)),t}function It(e,t=new Set){let n=Ct(e),r=n[n.length-1],s=t.has(r)?void 0:bt(r);if(s===void 0)return[e];let o=n.slice(0,-1).map((u)=>`${u}:`).join(""),l=new Set(t).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>It(`${o}${u}`,l))}function ge(e,t,n={}){let r=new Map,s=(b,f)=>{if(!r.has(b))r.set(b,{...f,classes:[],authored:new Map});return r.get(b)};s("base",{});let o=[],l=[],u=e.split(/\s+/).filter(Boolean);if(n.rules){let b=new Set(u);for(let f of Object.keys(n.rules))if(f.includes(".")&&f.split(".").every((c)=>b.has(c)))l.push(f);l.sort((f,c)=>f.split(".").length-c.split(".").length)}for(let b of u){if(n.rules&&Object.hasOwn(n.rules,b)){o.push(b);continue}for(let f of It(b)){let c=Ct(f),x=c.pop(),g=c.some((T)=>T.startsWith("focus"));if(c.some((T)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(T))&&/^(?:ring|outline)(?:-|$)/.test(x))continue;if(ur.test(x)||!g&&c.some((T)=>cr.has(T)))continue;let N,v,k=!1,w,_=[];for(let T of c){let E=Ie(T),P=T.startsWith("max-")?Ie(T.slice(4)):void 0;if(E!==void 0&&N===void 0)N=E;else if(P!==void 0&&v===void 0)v=P-0.02;else if(T==="disabled"&&!k)k=!0;else if(Et.has(T)&&w===void 0)w=T;else _.push(T)}let C=[..._,x].join(":"),B=N!==void 0||v!==void 0,R=k?s("disabled",{disabled:!0}):w?s(`state:${w}`,{state:w}):B?s(`range:${N??0}:${v??""}`,{min:N??0,max:v}):r.get("base");if((k||w)&&(B||k&&w)){r.get("base").authored.set(f,b),r.get("base").classes.push(f);continue}if(R.classes.push(C),!R.authored.has(C))R.authored.set(C,b===f?f:`${b} (${f})`)}}let d=[...o,...l],h=(b,f)=>f.map((c)=>b.authored.get(c)??c),m=r.get("base"),p=fe(m.classes.join(" "),t,n),y=new Map;if(d.length){let b=(x)=>x?de(x,()=>{},{inheritedVariables:t}):{},f={},c={};for(let x of d){let g=n.rules[x];f={...f,...b(g.light)},c={...c,...b(g.dark)};for(let N of g.responsive??[]){let v=`${N.min}:${N.max??""}`,k=y.get(v)??{min:N.min,...N.max===void 0?{}:{max:N.max},style:{}};if(k.style={...k.style,...b(N.light)},N.dark)k.dark={...k.dark,...b(N.dark)};y.set(v,k)}}if(p.style={...f,...p.style},Object.keys(c).length)p.dark={...c,...p.dark}}p.unknown=h(m,p.unknown);let S=[];for(let b of r.values()){if(b===m)continue;let f=fe(b.classes.join(" "),t,{appearance:n.appearance});p.unknown=[...new Set([...p.unknown,...h(b,f.unknown)])];let c={style:f.style,...f.dark?{dark:f.dark}:{}};if(b.disabled)p.disabled=c;else if(b.state)(p.states??={})[b.state]=c;else S.push({min:b.min??0,...b.max===void 0?{}:{max:b.max},...c})}for(let b of y.values()){let f=S.find((c)=>c.min===b.min&&c.max===b.max);if(f){if(f.style={...b.style,...f.style},b.dark||f.dark)f.dark={...b.dark,...f.dark}}else S.push(b)}if(S.length)p.responsive=S.sort((b,f)=>b.min-f.min||(b.max??1/0)-(f.max??1/0));return p}function fe(e,t,n={}){let r=[],s=[],o=[],l=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function h(g,N){let v=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(g),k=v&&vt(v[2]);if(v&&k){let R=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(k),T=R?t?.get(R[1])??R[2]:k;if(T&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(T))return[`${v[1]}-[${T.replace(/\s+/g,"")}]${v[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(g),_=w&&ht[w[2]];if(_){let R=t?.get(qe(w[2]));return[`${w[1]}-${R===void 0?_[N]:`[${R}]`}${w[3]||""}`]}let C=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(g);if(C&&he[C[2]]){let R=Te(C[2],t);return R===void 0?void 0:[`rounded-${C[1]?`${C[1]}-`:""}[${R}px]`]}let B=g.startsWith("text-")?g.slice(5):"";if(er[B]){let R=_e(B,t);return R&&[`text-[${R.fontSize}px]`,`leading-[${R.lineHeight}px]`]}for(let R of Object.keys(Qn)){if(!g.endsWith(`-${R}`))continue;let T=Re(R,t);return T===void 0?void 0:[`${g.slice(0,-R.length)}[${T}px]`]}return[g]}function m(g,N){if(!d.has(g))d.set(g,new Set);return d.get(g).add(N),g}let p=[],y=new Map;for(let g of e.split(/\s+/).filter(Boolean)){let N=g.startsWith("dark:")?g.slice(5):g,v=lr(N);if(v!==null){let _=v&&`${g===N?"":"dark:"}${v}`;if(_)p.push(_),y.set(_,g);continue}let k=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(g),w=k?.[2]==="focus"?"focus":"focusWithin";if(k&&n[w]&&!(k[1]&&k[3])){let _=`${k[1]||k[3]?"dark:":""}${k[4]}`,C=u[w];C.classes.push(_),C.originals.set(_,[...C.originals.get(_)??[],g]);continue}if(g.startsWith("dark:")){let _=h(g.slice(5),"dark");if(!_)l.push(g);else s.push(..._.map((C)=>m(C,g)))}else if(!g.includes(":")||g.startsWith("[")){let _=h(g,n.appearance??"light"),C=h(g,"dark");if(!_||!C){l.push(g);continue}if(r.push(..._.map((B)=>m(B,g))),C.join(" ")!==_.join(" "))o.push(...C.map((B)=>m(B,g)))}else l.push(g)}let S=[],b=_t(r,S),f={style:b,unknown:S},c=[...n.appearance===void 0?o:[],...s];if(c.length)f.dark=_t(c,S);if(b.transform&&f.dark?.transform){let g=new Set(f.dark.transform.flatMap((N)=>Object.keys(N)));f.dark.transform=[...b.transform.filter((N)=>!Object.keys(N).some((v)=>g.has(v))),...f.dark.transform]}for(let g of r){if(g==="truncate"||g==="whitespace-nowrap")f.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(g);if(N)f.resizeMode=N[1]==="fill"?"stretch":N[1];let v=/^line-clamp-(\d+)$/.exec(g);if(v)f.numberOfLines=Number(v[1]);if(!f.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(g))f.icon=g}let x=S.flatMap((g)=>[...d.get(g)??[g]]);if(f.unknown=[...new Set([...x.filter((g)=>!/^line-clamp-\d+$/.test(g)),...l])],p.length){let g=fe(p.join(" "),t,{appearance:n.appearance});f.divide={style:g.style,...g.dark?{dark:g.dark}:{}},f.unknown=[...new Set([...f.unknown,...g.unknown.map((N)=>y.get(N)??N)])]}for(let g of["focus","focusWithin"]){let N=u[g];if(!N.classes.length)continue;let v=fe(N.classes.join(" "),t,{appearance:n.appearance});f[g]={style:v.style,dark:v.dark},f.unknown=[...new Set([...f.unknown,...v.unknown.flatMap((k)=>N.originals.get(k)??[k])])];for(let k of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(k))f.unknown.push(...N.originals.get(k))}return f}function _t(e,t){let n={},r=Array.isArray(e)?e:e.split(/\s+/).filter(Boolean),s={};for(let l of r)if(l.startsWith("text-"))Rt(l,s);let o=typeof s.fontSize==="number"?s.fontSize:16;for(let l of r){if(/^i-[a-z0-9]+-/.test(l))continue;let u=Dn[l];if(u){u("",n);continue}if(ar(l,n))continue;if(jn(l,n))continue;if($n(l,n))continue;if(Wn(l,n))continue;if(Rt(l,n))continue;if(Fn(l,n))continue;if(At(l,n))continue;if(Xn(l,n))continue;if(zn(l,n))continue;if(Un(l,n))continue;if(Hn(l,n))continue;if(qn(l,n))continue;if(Gn(l,n))continue;if(or(l,n))continue;if(Kn(l,n,o))continue;if(Zn(l,n))continue;if(nr(l,n))continue;if(Yn(l,n))continue;let d=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(l);if(d&&Number(d[2])>0){n.aspectRatio=Number(d[1])/Number(d[2]);continue}let h=/^z-\[(-?\d+)\]$/.exec(l)??/^z-(\d+)$/.exec(l);if(h){n.zIndex=Number(h[1]);continue}if(l==="z-auto")continue;if(Jn(l,n))continue;let m=/^order-\[(-?\d+)\]$/.exec(l)??/^order-(-?\d+)$/.exec(l);if(m){n.order=Number(m[1]);continue}if(rr(l,n))continue;if(ir(l,n))continue;if(sr(l,n))continue;if(t?.push(l),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${l}`)}return n}var Ot=new Map;function Pt(e,t){if(!e)return;let n=e.trim(),r=n.lastIndexOf("-"),s=r===-1?t[n]:t[n.slice(0,r)],o=r===-1?s:s?.[n.slice(r+1)];if(typeof o==="string"&&/^#[\da-f]{3,8}$/i.test(o))return o;return Be(n)??Be(`[${n}]`)}function fr(e){let t=e.roles??{},n=e.shapes??{},r=e.density??{},s={...e.theme?.colors,...e.theme?.extend?.colors},o=[],l=[];for(let[u,d]of Object.entries(t)){if(!ht[u])continue;let h=Pt(typeof d==="string"?d:d?.light,s),m=Pt(typeof d==="string"?d:d?.dark,s);if(h)o.push(`${qe(u)}: ${h};`);if(m)l.push(`${qe(u)}: ${m};`)}for(let[u,d]of Object.entries(n))if(he[u])o.push(`${rn(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Ae[u])o.push(`${Ke(u)}: ${d};`);return[o.length?`:root { ${o.join(" ")} }`:"",l.length?`.dark { ${l.join(" ")} }`:""].filter(Boolean).join(`
|
|
3
|
+
`)}async function pr(e){let{resolveUserCssConfig:t}=await import("./chunk-99wwvvmk.js"),n=await t(e);return n?fr(n):""}function Mt(e){let t=dr.resolve(e),n=Ot.get(t);if(!n)n=pr(t).catch(()=>""),Ot.set(t,n);return n}var Lt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},Bt={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 gr(e){return e==="role"||e==="aria-label"||e==="aria-valuetext"||e in Lt}function hr(e,t){if(t===void 0||t===null)return;let n=String(t).trim().toLowerCase();if(n==="mixed")return e==="aria-checked"?"mixed":!0;if(n==="undefined")return;return n===""||n==="true"}function mr(e){if(e===void 0||e===null)return null;for(let t of String(e).trim().toLowerCase().split(/\s+/))if(Bt[t])return Bt[t];return null}function yr(e,t,n){if(e==="aria-label")return{accessibilityLabel:t===void 0||t===null||t===""?null:String(t)};if(e==="aria-valuetext")return{accessibilityValue:t===void 0||t===null||t===""?null:String(t)};if(e==="role")return{accessibilityRole:mr(t)};let r=Lt[e];if(!r)return;let s=n.accessibilityState,o=s&&typeof s==="object"?{...s}:{},l=hr(e,t);if(l===void 0)delete o[r];else o[r]=l;return{accessibilityState:Object.keys(o).length?o:null}}function br(e){let t=e.accessibilityState&&typeof e.accessibilityState==="object"?e.accessibilityState:void 0,n={};for(let[s,o]of Object.entries(e)){if(!gr(s))continue;let l=yr(s,o,n);if(l)Object.assign(n,l)}for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(e[s]===void 0&&n[s]!==void 0&&n[s]!==null)e[s]=n[s];let r=n.accessibilityState;if(r)e.accessibilityState={...r,...t}}var Le=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function De(e,t){let n={...e};if(br(n),t==="Image"&&n.accessibilityLabel===void 0&&e.alt!=null&&e.alt!=="")n.accessibilityLabel=String(e.alt);return Object.fromEntries(Le.filter((r)=>(r in n)).map((r)=>[r,n[r]]))}var $t=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],vr=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...$t]),Sr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},wr={email:{keyboardType:"email-address",verbatim:!0,autoComplete:"email"},tel:{keyboardType:"phone-pad",autoComplete:"tel"},url:{keyboardType:"url",verbatim:!0,autoComplete:"url"},number:{keyboardType:"decimal-pad"},search:{keyboardType:"web-search",returnKeyType:"search"},password:{secure:!0,verbatim:!0}},xr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function te(e){return e===void 0||e===null?"":String(e).trim().toLowerCase()}function Dt(e){if(e===void 0||e===null||e===!1)return!1;return te(e)!=="false"}function $e(e,...t){for(let n of t)if(e[n]!==void 0&&e[n]!==null)return e[n];return}function Vt(e,t){if(e!=="TextInput")return{};let n={},r=te(t.type),s=wr[r]??{},o=te($e(t,"inputmode","inputMode")),l=Sr[o]??s.keyboardType;if(l&&l!=="default")n.keyboardType=l;if(s.secure)n.secureTextEntry=!0;let u=te($e(t,"enterkeyhint","enterKeyHint")),d=xr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let h=te(t.autoCapitalize);if(h==="off"||h==="none")n.autoCapitalize="none";else if(h==="on")n.autoCapitalize="sentences";else if(!h&&s.verbatim)n.autoCapitalize="none";let m=t.autoCorrect;if(m==="off"||m==="false"||te(t.spellcheck)==="false"||m===void 0&&s.verbatim)n.autoCorrect=!1;else if(m==="on"||m==="true")n.autoCorrect=!0;if(Dt($e(t,"readonly","readOnly"))||Dt(t.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([p])=>t[p]===void 0||Nr(p,t[p])))}function Nr(e,t){if(e==="autoCapitalize")return t==="off"||t==="on";if(e==="autoCorrect")return typeof t==="string";return!1}function jt(e){let t=Vt(e.type,e.props);if(!Object.keys(t).length)return;e._textEntrySource=Object.fromEntries($t.filter((n)=>(n in e.props)).map((n)=>[n,e.props[n]])),Object.assign(e.props,t)}var Ve={"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","page-selected":"onPageSelected",pageselected:"onPageSelected",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 We={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},Fe=new Set(Object.values(We));var Xt=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),zt=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function X(e){let t=typeof e==="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function J(e){return Math.round(e*1000)/1000}function Xe(e){if(Array.isArray(e)&&e.length===4&&e.every((n)=>Number.isFinite(Number(n))))return e.map(Number);let t=String(e??"").trim().split(/[\s,]+/).map(Number);if(t.length!==4||t.some((n)=>!Number.isFinite(n))||t[2]<=0||t[3]<=0)return null;return t}function kr(e){let t=String(e??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return t.length%2?t.slice(0,-1):t}var Wt=/[MLHVCSQTAZ]/i,je=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function Tr(e){let t=[],n=e,r=Wt.exec(n);while(r){let s=r.index;n=n.slice(s);let o=n[0];n=n.slice(1);let l=Wt.exec(n),u=l?n.slice(0,l.index):n,d;if(o==="A"||o==="a"){d=[];let h=0,m=u.trim(),p=0;while(p<m.length){let y=h%7,S=m.slice(p).replace(/^[\s,]+/,"");if(p=m.length-S.length,!S)break;if(y===3||y===4)d.push(S[0]==="1"?1:0),p+=1;else{je.lastIndex=0;let b=je.exec(S);if(!b||b.index!==0)break;d.push(Number.parseFloat(b[0])),p+=b[0].length}h++}}else d=(u.match(je)||[]).map(Number.parseFloat);t.push({command:o,args:d}),r=l}return t}function Rr(e,t,n,r,s,o,l,u,d){if(e===u&&t===d)return[];let h=Math.abs(n),m=Math.abs(r);if(!h||!m)return[1,u,d];let p=s*Math.PI/180,y=Math.cos(p),S=Math.sin(p),b=(e-u)/2,f=(t-d)/2,c=y*b+S*f,x=-S*b+y*f,g=c*c/(h*h)+x*x/(m*m);if(g>1)h*=Math.sqrt(g),m*=Math.sqrt(g);let N=h*h*m*m-h*h*x*x-m*m*c*c,v=h*h*x*x+m*m*c*c,k=Math.sqrt(Math.max(0,N/v));if(o===l)k=-k;let w=k*(h*x)/m,_=k*-(m*c)/h,C=y*w-S*_+(e+u)/2,B=S*w+y*_+(t+d)/2,R=(L,W,F,q)=>{let Y=L*q-W*F<0?-1:1,G=(L*F+W*q)/(Math.hypot(L,W)*Math.hypot(F,q));return Y*Math.acos(Math.min(1,Math.max(-1,G)))},T=R(1,0,(c-w)/h,(x-_)/m),E=R((c-w)/h,(x-_)/m,(-c-w)/h,(-x-_)/m);if(!l&&E>0)E-=2*Math.PI;if(l&&E<0)E+=2*Math.PI;let P=Math.max(1,Math.ceil(Math.abs(E)/(Math.PI/2))),j=E/P,A=1.3333333333333333*Math.tan(j/4),M=[],z=(L)=>{let W=h*Math.cos(L),F=m*Math.sin(L);return[y*W-S*F+C,S*W+y*F+B]},I=(L)=>{let W=-h*Math.sin(L),F=m*Math.cos(L);return[y*W-S*F,S*W+y*F]},O=T;for(let L=0;L<P;L++){let W=O+j,[F,q]=z(O),[Y,G]=I(O),[it,st]=z(W),[bn,vn]=I(W);M.push(2,F+A*Y,q+A*G,it-A*bn,st-A*vn,L===P-1?u:it,L===P-1?d:st),O=W}return M}function Ut(e){let t=[],n=0,r=0,s=0,o=0,l=0,u=0,d=0,h=0,m="";for(let{command:p,args:y}of Tr(String(e??""))){let S=p===p.toLowerCase(),b=p.toUpperCase(),f=()=>S?n:0,c=()=>S?r:0,x=0,g=(v)=>{if(x+v>y.length)return null;let k=y.slice(x,x+v);return x+=v,k};if(b==="Z"){t.push(4),n=s,r=o,m="Z";continue}let N=!0;while(x<y.length||N&&b==="Z"){switch(b){case"M":{let v=g(2);if(!v)return t;if(n=v[0]+f(),r=v[1]+c(),N)t.push(0,n,r),s=n,o=r;else t.push(1,n,r);m=N?"M":"L";break}case"L":{let v=g(2);if(!v)return t;n=v[0]+f(),r=v[1]+c(),t.push(1,n,r),m="L";break}case"H":{let v=g(1);if(!v)return t;n=v[0]+f(),t.push(1,n,r),m="L";break}case"V":{let v=g(1);if(!v)return t;r=v[0]+c(),t.push(1,n,r),m="L";break}case"C":{let v=g(6);if(!v)return t;let k=v[0]+f(),w=v[1]+c();l=v[2]+f(),u=v[3]+c(),n=v[4]+f(),r=v[5]+c(),t.push(2,k,w,l,u,n,r),m="C";break}case"S":{let v=g(4);if(!v)return t;let k=m==="C"?2*n-l:n,w=m==="C"?2*r-u:r;l=v[0]+f(),u=v[1]+c(),n=v[2]+f(),r=v[3]+c(),t.push(2,k,w,l,u,n,r),m="C";break}case"Q":{let v=g(4);if(!v)return t;d=v[0]+f(),h=v[1]+c(),n=v[2]+f(),r=v[3]+c(),t.push(3,d,h,n,r),m="Q";break}case"T":{let v=g(2);if(!v)return t;d=m==="Q"?2*n-d:n,h=m==="Q"?2*r-h:r,n=v[0]+f(),r=v[1]+c(),t.push(3,d,h,n,r),m="Q";break}case"A":{let v=g(7);if(!v)return t;let k=v[5]+f(),w=v[6]+c();t.push(...Rr(n,r,v[0],v[1],v[2],v[3],v[4],k,w)),n=k,r=w,m="A";break}default:return t}N=!1}}return t.map((p)=>J(p))}function Ft(e,t,n,r){if(n<=0||r<=0)return[];let s=0.5522847498;return[0,e+n,t,2,e+n,t+s*r,e+s*n,t+r,e,t+r,2,e-s*n,t+r,e-n,t+s*r,e-n,t,2,e-n,t-s*r,e-s*n,t-r,e,t-r,2,e+s*n,t-r,e+n,t-s*r,e+n,t,4].map(J)}function ze(e,t){switch(e){case"Path":return Ut(String(t.d??""));case"Line":return[0,X(t.x1),X(t.y1),1,X(t.x2),X(t.y2)].map(J);case"Rect":{let n=X(t.x),r=X(t.y),s=X(t.width),o=X(t.height);if(s<=0||o<=0)return[];let l=t.rx===void 0?X(t.ry):X(t.rx),u=t.ry===void 0?l:X(t.ry);if(l=Math.min(Math.max(0,l),s/2),u=Math.min(Math.max(0,u),o/2),!l||!u)return[0,n,r,1,n+s,r,1,n+s,r+o,1,n,r+o,4].map(J);let d=0.5522847498;return[0,n+l,r,1,n+s-l,r,2,n+s-l+d*l,r,n+s,r+u-d*u,n+s,r+u,1,n+s,r+o-u,2,n+s,r+o-u+d*u,n+s-l+d*l,r+o,n+s-l,r+o,1,n+l,r+o,2,n+l-d*l,r+o,n,r+o-u+d*u,n,r+o-u,1,n,r+u,2,n,r+u-d*u,n+l-d*l,r,n+l,r,4].map(J)}case"Circle":return Ft(X(t.cx),X(t.cy),X(t.r),X(t.r));case"Ellipse":return Ft(X(t.cx),X(t.cy),X(t.rx),X(t.ry));case"Polyline":case"Polygon":{let n=kr(t.points);if(n.length<4)return[];let r=[0,n[0],n[1]];for(let s=2;s<n.length;s+=2)r.push(1,n[s],n[s+1]);if(e==="Polygon")r.push(4);return r.map(J)}default:return null}}function _r(e){let t=/^\s*(\d+(?:\.\d+)?|\.\d+)\s*(ms|s)?\s*$/.exec(String(e??""));if(!t)return null;let n=Number(t[1])/(t[2]==="ms"?1000:1);return n>0?n:null}function Ar(e){if(e.attributeName!=="d")return null;let t=_r(e.dur),n=String(e.values??"").split(";").map((u)=>u.trim()).filter(Boolean);if(t===null||n.length<2)return null;let r=n.map(Ut);if(r.some((u)=>!u.length))return null;let s=String(e.keyTimes??"").split(";").map((u)=>u.trim()).filter(Boolean).map(Number),l=s.length===r.length&&s[0]===0&&s[s.length-1]===1&&s.every((u,d)=>Number.isFinite(u)&&(d===0||u>=s[d-1]))?s.map(J):r.map((u,d)=>J(d/(r.length-1)));return{frames:r,frameTimes:l,duration:t}}function Ue(e){let t=Ar(e),n={frames:t?.frames??null,frameTimes:t?.frameTimes??null,duration:t?.duration??null};for(let[r,s]of Object.entries(n))if(s===null)delete e[r];else e[r]=s;return n}var Er=[...zt,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","barStyle","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","mostRecentEventCount","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pageIndex","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","sheetDetents","selectedDetent","grabberVisible","tintColor","clearButtonMode","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"],Ht=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","grabberVisible"]),Cr=new Map(Er.map((e)=>[qt(e),e]));function qt(e){return e.replace(/[-_]/g,"").toLowerCase()}function He(e,t){if((t==="Image"||t==="Video")&&e.toLowerCase()==="src")return"source";return Cr.get(qt(e))??e}var Ir={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",segmentedcontrol:"SegmentedControl",nativesegmentedcontrol:"SegmentedControl",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 Gt(e){return Ir[e.toLowerCase()]||e}var Or={"circle-pause":"pause.circle","cloud-alert":"exclamationmark.icloud","key-round":"key",paperclip:"paperclip","rotate-cw":"arrow.clockwise","route-off":"location.slash",syringe:"syringe","volume-1":"speaker.wave.1",activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",apple:"leaf",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",bean:"leaf",bed:"bed.double",beef:"fork.knife",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","cake-slice":"birthday.cake",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",carrot:"carrot","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-question-mark":"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","clock-alert":"clock.badge.exclamationmark",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",cookie:"birthday.cake",copy:"doc.on.doc","credit-card":"creditcard","cup-soda":"takeoutbag.and.cup.and.straw",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",drumstick:"fork.knife",dumbbell:"dumbbell",edit:"pencil",egg:"frying.pan","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",fish:"fish",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift","glass-water":"waterbottle",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal",hamburger:"takeoutbag.and.cup.and.straw","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","messages-square":"bubble.left.and.bubble.right",mic:"mic",milk:"waterbottle",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",nut:"leaf",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",salad:"leaf",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",soup:"mug",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",utensils:"fork.knife",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wheat:"laurel.leading",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",wine:"wineglass",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function ie(e,t=!1){let n=String(e??"").trim();if(!n)return{symbol:"circle",known:!1};if(t)return{symbol:n,known:!0};let r=/^i-([a-z0-9]+)-(.+)$/.exec(n)??/^([a-z0-9]+):(.+)$/.exec(n),s=r?r[1]:"lucide",o=r?r[2]:n;if(s==="lucide"){let l=Or[o];if(l)return{symbol:l,iconify:`i-lucide-${o}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0}}return{symbol:"circle",iconify:r?n:`i-lucide-${o}`,known:!1}}function Ge(e){return e.split(/\s+/).find((t)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(t))}import{generate as me,parse as Pr}from"@stacksjs/ts-css/parse";var Mr=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function Br(e){let t=e.replace(/\s+/g,"").toLowerCase();if(!t||t==="all"||t==="screen")return{};if(/^(?:screenand)?\(prefers-color-scheme:dark\)$/.test(t))return{dark:!0};if(/^(?:screenand)?\(prefers-color-scheme:light\)$/.test(t))return{};if(/prefers-reduced-motion|\(hover|\(pointer|print|forced-colors|prefers-contrast/.test(t))return"skip";let n=t.replace(/^screenand/,"").split("and"),r={};for(let s of n){let o=/^\((min|max)-width:([\d.]+)(px|rem|em)\)$/.exec(s);if(!o)return;r[o[1]]=Number(o[2])*(o[3]==="px"?1:16)}return r}async function Kt(e,t){let n={},r=new Set,s=(h)=>{if(r.has(h))return;r.add(h),t(h,[...h.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((m)=>m[1]))},o=(h,m,p)=>{if(!m.trim())return;let y=n[h]??={},S=p.dark?"dark":"light";if(p.min===void 0&&p.max===void 0){y[S]=y[S]?`${y[S]};${m}`:m;return}let b=y.responsive??=[],f=p.min??0,c=b.find((x)=>x.min===f&&x.max===p.max);if(!c)b.push(c={min:f,...p.max===void 0?{}:{max:p.max}});c[S]=c[S]?`${c[S]};${m}`:m};function l(h,m){for(let p of h){if(p.type==="Atrule"){let b=p.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(b)){if(b==="layer"&&p.block)l(p.block.children,m);continue}if(b!=="media"||!p.block){s(`@${b}`);continue}let f=p.prelude?me(p.prelude):"",c=Br(f);if(c==="skip")continue;if(!c){s(`@media ${f}`);continue}l(p.block.children,{dark:m.dark||c.dark,min:c.min??m.min,max:c.max??m.max});continue}if(p.type!=="Rule"||p.block.type!=="Block")continue;let y=[...p.block.children].filter((b)=>b.type==="Declaration").map((b)=>me(b)).join(";"),S=p.prelude.type==="SelectorList"?[...p.prelude.children].map(me):[me(p.prelude)];for(let b of S){let f=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(b.trim());if(!f){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(b.trim()))s(b.trim());continue}let c=f[2];if(c){if(!Mr.test(c))s(b.trim());continue}let x=m.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(b.trim());o(f[1].slice(1),y,{dark:x,min:m.min,max:m.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(h){u="";let m=h.getAttribute("type");d=!m||m.toLowerCase()==="text/css",h.onEndTag(()=>{if(!d)return;try{let p=Pr(u);if(p.type==="StyleSheet")l(p.children,{})}catch{s("invalid stylesheet")}})},text(h){u+=h.text}}).transform(new Response(e)).text();for(let h of Object.values(n))h.responsive?.sort((m,p)=>m.min-p.min||(m.max??1/0)-(p.max??1/0));return n}import{generate as se,parse as Jt}from"@stacksjs/ts-css/parse";async function Yt(e,t){let n={light:new Map,dark:new Map},r=new Set,s=(p)=>{if(!r.has(p))r.add(p),t(p)},o=(p,y,S)=>{for(let b of S){let f=n[b].get(p);if(!f||Number(y.important)>Number(f.important)||y.important===f.important&&y.specificity>=f.specificity)n[b].set(p,y)}},l=(p)=>{if(p.type==="Declaration")return p.property.startsWith("--");if(p.type==="Rule"||p.type==="Atrule")return!!p.block&&[...p.block.children].some(l);return!1},u=(p)=>{let y=p.replace(/\s+/g,"").toLowerCase();if(!y||y==="all"||y==="screen")return["light","dark"];let S=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(y);return S?[S[1]]:void 0};function d(p,y){for(let S of p){if(!l(S))continue;if(S.type==="Atrule"){let f=S.prelude?se(S.prelude):"",c=S.name.toLowerCase()==="media"?u(f):void 0;if(!c){s(`@${S.name} ${f}`.trim());continue}d(S.block.children,y.filter((x)=>c.includes(x)));continue}if(S.type!=="Rule")continue;let b=S.prelude.type==="SelectorList"?[...S.prelude.children].map(se):[se(S.prelude)];for(let f of b){let c=/^(html|:root)?(?:\.(dark|light))?$/.exec(f.trim());if(!c||!c[1]&&!c[2]){s(f);continue}let x=(c[1]===":root"?10:c[1]?1:0)+(c[2]?10:0);for(let g of S.block.children){if(g.type!=="Declaration"){if(l(g))s(`nested rule in ${f}`);continue}if(!g.property.startsWith("--"))continue;let N={value:se(g.value),important:!!g.important,specificity:x};o(g.property,N,y.filter((v)=>!c[2]||c[2]===v))}}}}let h="",m;return await new HTMLRewriter().on("html",{element(p){let y=p.getAttribute("style");if(!y)return;try{let S=Jt(y,{context:"declarationList"});if(S.type!=="DeclarationList")return;for(let b of S.children)if(b.type==="Declaration"&&b.property.startsWith("--"))o(b.property,{value:se(b.value),important:!!b.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(p){h="";let y=p.getAttribute("type");m=!y||y.toLowerCase()==="text/css"?u(p.getAttribute("media")??""):void 0,p.onEndTag(()=>{try{let S=Jt(h);if(S.type!=="StyleSheet")return;if(!m){if([...S.children].some(l))s("style type/media");return}d(S.children,m)}catch{s("invalid stylesheet")}})},text(p){h+=p.text}}).transform(new Response(e)).text(),{light:[...n.light].map(([p,y])=>[p,y.value]),dark:[...n.dark].map(([p,y])=>[p,y.value])}}function H(e,t={},n={},r={},s=[]){return{type:e,props:t,style:n,events:r,children:s}}function Qt(e,t,n={}){return{version:"1.0.0",root:e,script:t,meta:{source:n.source||"unknown",compiledAt:n.compiledAt||Date.now(),headwindConfig:n.headwindConfig}}}var Lr=/^(?:key(?:down|up|press)|mouse[a-z]+|pointer[a-z]+|dbl(?:click)?|contextmenu|wheel|drag[a-z]*|drop|copy|cut|paste|beforeinput|compositionstart|compositionupdate|compositionend|animation[a-z]+|transition[a-z]+|resize|hashchange|popstate|beforeunload|unload|visibilitychange|selectionchange|selectstart|auxclick)$/,Zt=new Set(["script","style","head","meta","link","title","base","noscript"]),en=new Set(["template","body","html","main","fragment"]),ye=new Set,Dr=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","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"]),be=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","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...Fe]),$r=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),tn=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Vr={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function Z(e){return e.replace(/&(#x?[0-9a-f]+|\w+);/gi,(t,n)=>{let r=Vr[n.toLowerCase()];if(r!==void 0)return r;if(n[0]==="#"){let s=n[1]==="x"||n[1]==="X"?Number.parseInt(n.slice(2),16):Number.parseInt(n.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):t}return t})}function Je(e){if(!e.includes("{{"))return null;let t=[],n=0;for(let r of e.matchAll(/\{\{([\s\S]+?)\}\}/g)){if(r.index>n)t.push(JSON.stringify(e.slice(n,r.index)));t.push(`(${r[1].trim()})`),n=r.index+r[0].length}if(!t.some((r)=>r.startsWith("(")))return null;if(n<e.length)t.push(JSON.stringify(e.slice(n)));if(t.length===1)return t[0].slice(1,-1);return`[${t.join(", ")}].map(__stxPart => __stxPart == null ? '' : __stxPart).join('')`}function nn(e,t,n,r={}){let s=r.inheritedVariables,o={},l={},u={},d=[],h="",m={};for(let[b,f]of t){let c=b.toLowerCase();if(c==="class"||c==="classname"){h=h?`${h} ${f}`:f;continue}if(c==="style"){m={...m,...jr(e,f,n,{...r,onVariables(v){s=v,r.onVariables?.(v)}})};continue}if(c.startsWith(":")||c.startsWith("x-")&&c!=="x-cloak"){u[c.startsWith(":")?c.slice(1):c.slice(2)]=Z(f);continue}if(c==="x-cloak")continue;if(c.startsWith("@")||c.startsWith("v-on:")){let v=c.startsWith("@")?c.slice(1):c.slice(5),[k]=v.split("."),w=Ve[k]??(k.startsWith("on")?k:"");if(!w||!Dr.has(w)){if(Lr.test(k)||/\./.test(v))n.push({kind:"unread-event",tag:e,name:b});continue}l[w]=Z(f);continue}if(c==="key"){o.key=f;continue}let x=Z(f),g=Je(x);if(g){u[c]=g,d.push(c);continue}let N=He(b);if(x===""&&Ht.has(N)){o[N]=!0;continue}try{o[N]=JSON.parse(x)}catch{o[N]=x}}let p=o["data-native"]?o["data-native"]==="TextInput":e==="textarea"||e==="input"&&!["checkbox","radio","hidden"].includes(String(o.type??"text").toLowerCase()),y=h?ge(h,s,{focus:p,focusWithin:!0,rules:r.rules}):void 0;for(let b of new Set(y?.unknown??[]))n.push({kind:"unknown-class",tag:e,name:b});let S=Oe({...y?.style,...m});return{props:o,style:S,events:l,bindings:u,classes:h,inline:m,templated:d}}function jr(e,t,n,r){return de(Z(t),(s)=>n.push({...s,tag:e}),r)}function Ye(e){return e.children.map((t)=>typeof t==="string"?t:Ye(t)).join("").replace(/\s+/g," ").trim()}function Wr(e,t){let n=e.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((o)=>typeof o==="string"?H("Text",{},{},{},[o]):o),n;let r=n.children.filter((o)=>typeof o!=="string"),s=n.children.filter((o)=>typeof o==="string").join("").trim();if(e.tag==="button"&&n.type==="Button"&&!e.declaredNative&&r.length>0)return n.type="Pressable",n.props.role??="button",n.children=n.children.flatMap((o)=>typeof o==="string"?o.trim()?[H("Text",{},{},{},[o.trim()])]:[]:[o]),n;if(n.type==="Button"&&r.length===0)return n.children=s?[s]:[],n;if(n.type==="Svg"||n.type==="G")return n.children=r,n;if(n.type==="SvgText"){let o=Ye(n);return n.children=o?[o]:[],n}if(tn.has(n.type)&&r.length===0&&s)return n.type="Text",n.children=[s],n;if(n.type==="Text"&&!s&&r.length===0&&typeof n.props.text==="string")return n.children=n.props.text?[n.props.text]:[],delete n.props.text,n;if(n.type==="Text"&&r.length>0){if(/(?:^|\s)(?:inline-)?(?:flex|grid)(?:\s|$)/.test(n._classes??"")||r.some((u)=>u.type!=="Text"))return n.type="View",n.children=n.children.map((u)=>typeof u==="string"?H("Text",{},{},{},[u]):u),n;let l=Ye(n);return t.push({kind:"flattened-text",tag:e.tag}),n.children=l?[l]:[],n}if(tn.has(n.type)&&r.length>0)n.children=r;return n}async function Fr(e,t={}){e=await oe(e);let n=[],r=await Yt(e,(c)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:c})),s=re(r.light).computed(),o=new Set([...e.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((c)=>c[1].split(/\s+/))),l=await Kt(e,(c,x)=>{if(!x.length||x.some((g)=>o.has(g)))n.push({kind:"unsupported-style-rule",tag:"style",name:c})}),u=[],d=[],h=new Set;function m(c){let x=d[d.length-1];if(!x)u.push(c);else if(!x.dropped)x.node.children.push(c)}function p(c){let x=(N)=>{if(c.tag!=="html"&&c.node._styleSource)N._styleAncestors=[c.node._styleSource,...N._styleAncestors??[]]};if(c.node.bindings&&Object.keys(c.node.bindings).length>0){let N=c.node.children,v=N.filter((w)=>typeof w!=="string"),k=v.length===1&&v.length===N.length?v[0]:H("View",{},{},{},N);if(k.bindings={...c.node.bindings,...k.bindings},k.bindingId===void 0&&c.node.bindingId!==void 0)k.bindingId=c.node.bindingId;x(k),m(k);return}let g=d[d.length-1];for(let N of c.node.children){if(typeof N==="string"){if(g&&!g.dropped)g.node.children.push(N);continue}if(x(N),!g)u.push(N);else if(!g.dropped)g.node.children.push(N)}}function y(c,x){let g=d[d.length-1];if(c==="svg"||g?.svg)return S(c,x,g);let N=Zt.has(c)&&!ye.has(c),v=d[d.length-1]?.dropped??!1,k=g?.variables??s,{props:w,style:_,events:C,bindings:B,classes:R,inline:T,templated:E}=N||v?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:nn(c,x,n,{inheritedVariables:k,onVariables:(I)=>{k=I},rules:l});if(c==="html")k=s;let P=w["data-native"],j=c==="template"&&x.some(([I])=>[":for","x-for","@for"].includes(I)),A;if(j)A="View",w["data-stx-native-template"]=!0;else if(typeof P==="string"&&be.has(P))A=P,delete w["data-native"];else{if(A=ye.has(c)?"View":Gt(c),(c==="i"||c==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(R))A="Icon";else if(c==="i"&&x.some(([I])=>/^(?::|x-)class$/i.test(I)))A="Icon";if(c==="input"){let I=String(w.type??"text").toLowerCase();if(I==="checkbox")A="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(I==="hidden")A="View",_.display="none",T.display="none";else if(I==="radio")A="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:c,name:"input:radio"})}}if(!v&&A===c&&!be.has(A)&&!Zt.has(c)&&!en.has(c)&&!h.has(c))h.add(c),n.push({kind:"unmapped-tag",tag:c});if((N||ye.has(c))&&!h.has(`drop:${c}`))h.add(`drop:${c}`),n.push({kind:"dropped-subtree",tag:c});if(A==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(R))A="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(A==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(R))A="ScrollView";if(c==="form")w["data-stx-form"]=!0;if(c==="button"&&w.type===void 0)w.type="submit";if((A==="Video"||A==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(A==="Icon"){let I=ge(R).icon,O=ie(String(w.symbol||w.name||I||""),Boolean(w.symbol));if(w.symbol=O.symbol,O.iconify)w.iconify=O.iconify}if(A==="FlatList"||A==="SectionList"){let I=new Set([...Object.keys(w),...Object.keys(B)].map((O)=>O.toLowerCase()));for(let[O,L]of $r)if(I.has(O))n.push({kind:"unsupported-list-prop",tag:A,name:L})}let M=H(A,w,_,C);M._inlineStyle=T,M._styleSource=Z(x.find(([I])=>I==="style")?.[1]??"");let z=w["data-stx-b"];if(typeof z==="number"&&Number.isInteger(z))M.bindingId=z;if(delete w["data-stx-b"],R)M._classes=R;if(Object.keys(B).length>0)M.bindings=B;if(E.length>0)M._templated=E;if(typeof w.key==="string")M.key=w.key,delete w.key;return{tag:c,node:M,variables:k,declaredNative:typeof P==="string"&&be.has(P),dropped:N||v||ye.has(c)||A==="Video",discard:N||v,unwrap:en.has(c)&&!j&&A!=="ScrollView"&&!(typeof P==="string"&&be.has(P))}}function S(c,x,g){let N=g?.dropped??!1,v=We[c];if(N||!v){if(!N&&!h.has(`drop:${c}`))h.add(`drop:${c}`),n.push({kind:Xt.has(c)?"dropped-subtree":"unmapped-tag",tag:c});return{tag:c,node:H("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let k=g?.variables??s,{props:w,style:_,events:C,bindings:B,classes:R,inline:T,templated:E}=nn(c,x,n,{inheritedVariables:k,onVariables:(M)=>{k=M},rules:l});if(v==="Svg"){let M=Xe(w.viewBox);if(M)w.viewBox=M;else delete w.viewBox;for(let z of["width","height"]){if(typeof w[z]==="number"&&_[z]===void 0)_[z]=w[z];delete w[z]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let M=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=M}let P=ze(v,w);if(P)w.geometry=P;if(v==="Animate")Ue(w);let j=H(v,w,_,C);j._inlineStyle=T,j._styleSource=Z(x.find(([M])=>M==="style")?.[1]??"");let A=w["data-stx-b"];if(typeof A==="number"&&Number.isInteger(A))j.bindingId=A;if(delete w["data-stx-b"],R)j._classes=R;if(Object.keys(B).length>0)j.bindings=B;if(E.length>0)j._templated=E;if(typeof w.key==="string")j.key=w.key,delete w.key;return{tag:c,node:j,variables:k,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(c){let x=c.tagName.toLowerCase(),g=y(x,[...c.attributes]),N=!0;try{c.onEndTag(()=>{if(d.pop(),g.discard)return;if(g.unwrap)p(g);else m(Wr(g,n))})}catch{N=!1}if(N)d.push(g);else if(!g.discard)m(g.node)},text(c){let x=d[d.length-1];if(!x||x.dropped)return;let g=Xr(Z(c.text),x.inMustache===!0);x.inMustache=g.inside;let N=g.text;if(!N.trim())return;x.node.children.push(N)}}).transform(new Response(e)).text(),u.length===0)throw Error(`No element to translate in the rendered output of ${t.source??"unknown"}`);let b=u.length===1?u[0]:H("View",{},{},{},u);if(r.light.length||r.dark.length)b._stylesheetTheme=r;if(Object.keys(l).length)b._stylesheetRules=l;let f=(c)=>{zr(c);let x=De(c.props,c.type);if(Object.keys(x).length)c._accessibilitySource=Object.fromEntries(Le.filter((g)=>(g in c.props)).map((g)=>[g,c.props[g]])),Object.assign(c.props,x);jt(c);for(let g of c.children)if(typeof g!=="string")f(g)};return f(b),sn(b),{root:b,diagnostics:n}}function sn(e){if(["ScrollView","FlatList","SectionList"].includes(e.type))return!e.props.horizontal&&(Number(e.style.flex)>0||Number(e.style.flexGrow)>0);if(!e.children.map((n)=>typeof n==="string"?!1:sn(n)).some(Boolean)||!["View","SafeAreaView","KeyboardAvoidingView"].includes(e.type))return!1;if(e.style.height!==void 0||e.style.maxHeight!==void 0)return!1;if(e.style.flex===0||e.style.flexGrow===0||e.style.flexShrink===0)return!1;if(e.style.flex===void 0&&e.style.flexGrow===void 0)e._layoutDefaults={flex:1,flexGrow:1,flexShrink:1,flexBasis:0},e.style={...e._layoutDefaults,...e.style};return!0}function Xr(e,t){let n="",r=0;while(r<e.length){if(!t&&e.startsWith("{{",r)){t=!0,n+="{{",r+=2;continue}if(t&&e.startsWith("}}",r)){t=!1,n+="}}",r+=2;continue}let s=e[r];if(!t&&/\s/.test(s)){if(!n.endsWith(" "))n+=" ";while(r<e.length&&/\s/.test(e[r]))r++;continue}n+=s,r++}return{text:n,inside:t}}function zr(e){if(e.props["data-stx-native-template"])return;if(e.bindings?.text||e.children.length===0)return;let t=e.children.filter((r)=>typeof r==="string");if(t.length<e.children.length){let r=e.type==="Button"||e.type==="Text"?null:Je(t.join(""));if(!r)return;e.bindings={...e.bindings,text:r},e._templated=[...e._templated??[],"text"],e.children=e.children.filter((s)=>typeof s!=="string");return}let n=Je(e.children.join(""));if(!n)return;if(e.type!=="Button")e.bindings={...e.bindings,text:n},e._templated=[...e._templated??[],"text"],e.children=[];else{e.type="Pressable",e.props.role??="button";let r=H("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],e.children=[r]}}async function on(e,t={}){let{root:n,diagnostics:r}=await Fr(e,t),s=t.script??{exports:{},functions:[],code:""};return{document:Qt(n,s,{source:t.source??"unknown"}),diagnostics:r}}async function oe(e){if(!/\bdata-native-exclude\b/i.test(e))return e;return new HTMLRewriter().on("[data-native-exclude]",{element(t){t.remove()}}).transform(new Response(e)).text()}var an=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Ur=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,Hr=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,ln=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function Qe(e){let t=[];an.lastIndex=0;for(let o of e.matchAll(an)){let l=o[1]??"";if(/\bserver\b/.test(l))continue;t.push(o[2].trim())}let n=t.filter(Boolean).join(`
|
|
4
4
|
|
|
5
5
|
`),r=[];for(let o of[Ur,Hr]){o.lastIndex=0;for(let l of n.matchAll(o))if(!r.includes(l[1]))r.push(l[1])}let s={};ln.lastIndex=0;for(let o of n.matchAll(ln)){let l=o[2];try{s[o[1]]=JSON.parse(l.replace(/^'(.*)'$/,'"$1"'))}catch{s[o[1]]=l}}return{exports:s,functions:r,code:n}}var ne="[data-native-chrome]";function qr(e){let t=(e??"").trim().toLowerCase();return t==="tabs"||t==="bar"?t:""}function cn(e){let t=ie(e);return t.known||/^i-|:/.test(e)?t.symbol:e}function Gr(e){let t=(e??"").trim();if(!t.startsWith("/")||t.startsWith("//"))return null;return t}function un(e){return e.replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�?39;/g,"'").replace(/\s+/g," ").trim()}async function dn(e){if(!/\bdata-native-chrome\b/i.test(e))return{html:e,chrome:null};let t=[],n=[],r=new Set,s=[],o=[],l=null,u=null,d=!1;if(await new HTMLRewriter().on(ne,{element(p){d=!0;let y=p.getAttribute("data-stx-scope");if(y)r.add(y);t.push(qr(p.getAttribute("data-native-chrome"))),p.onEndTag(()=>{t.pop()})}}).on("[data-stx-component-wrapper]",{element(p){let y={scope:p.getAttribute("data-stx-scope")??"",children:0,chrome:0};s.push(y),p.onEndTag(()=>{if(s.pop(),y.scope&&y.children>0&&y.chrome===y.children)r.add(y.scope)})}}).on("[data-stx-component-wrapper] > *",{element(p){let y=s[s.length-1];if(!y)return;if(y.children++,p.hasAttribute("data-native-chrome"))y.chrome++}}).on(`${ne} [data-stx-scope]`,{element(p){let y=p.getAttribute("data-stx-scope");if(y)r.add(y)}}).on(`${ne} script[data-stx-component-factories]`,{element(p){let y=[...p.attributes].map(([S,b])=>b===""?S:`${S}="${b.replace(/"/g,""")}"`).join(" ");l="",p.onEndTag(()=>{o.push(`<script ${y}>${l}</script>`),l=null})},text(p){if(l!==null)l+=p.text}}).on(`${ne} a`,{element(p){let y=Gr(p.getAttribute("href")),S=t[t.length-1]??"";if(!y||!S)return;let b=p.getAttribute("data-native-icon")||Ge(p.getAttribute("class")??""),f={path:y,title:"",region:S,label:p.getAttribute("aria-label")||p.getAttribute("title")||"",...b?{symbol:cn(b)}:{}};u=f,p.onEndTag(()=>{if(f.title=un(f.title)||un(f.label),n.push(f),u===f)u=null})},text(p){if(u)u.title+=p.text}}).on(`${ne} a *`,{element(p){if(!u||u.symbol)return;let y=p.getAttribute("data-native-icon")||Ge(p.getAttribute("class")??"");if(y)u.symbol=cn(y)}}).transform(new Response(e)).text(),!d)return{html:e,chrome:null};let h=await new HTMLRewriter().on(ne,{element(p){p.remove()}}).on("script[data-stx-owner]",{element(p){if(r.has(p.getAttribute("data-stx-owner")??""))p.remove()}}).transform(new Response(e)).text(),m=(p)=>n.filter((y)=>y.region===p).map(({path:y,title:S,symbol:b})=>({path:y,title:S,...b?{symbol:b}:{}}));return{html:o.join(`
|
|
6
|
-
`)+h,chrome:{tabs:m("tabs"),bar:m("bar")}}}var ve=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,fn=/function\s+(__stx_setup_[\w$]+)\s*\(/,Kr=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function Ze(e){ve.lastIndex=0;for(let t of e.matchAll(ve)){let n=t[2].trim(),r=fn.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function pn(e){let t=[];ve.lastIndex=0;for(let n of e.matchAll(ve)){let r=n[1],s=n[2].trim(),o=Kr.exec(r)?.[1],l=/\bdata-stx-component-factories\b/i.test(r);if(!s||!o&&!l&&!fn.test(s))continue;t.push(o?{code:s,owner:o}:{code:s})}return t}function Yr(){let e=[K.join(import.meta.dir,"..","primitives"),K.join(import.meta.dir,"native","primitives")];for(let t of e)if(Jr(K.join(t,"View.stx")))return t;return e[0]}async function Qr(e,t,n={}){e=await oe(e);let r=n.root??K.dirname(t),s=await a(r),o=typeof s.root==="string"&&s.root?K.resolve(r,s.root):r,l=(R,T)=>R?K.isAbsolute(R)?R:K.resolve(o,R):K.join(o,T),u={root:r,layoutsDir:l(s.layoutsDir,"layouts"),partialsDir:l(s.partialsDir,"partials"),storesDir:l(s.storesDir,"stores"),componentsDir:n.componentsDir??(s.componentsDir?l(s.componentsDir,"components"):K.join(o,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[Yr()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},h=new Set([t]),m=await i(e,d,t,u,h),{html:p,chrome:y}=await dn(await oe(m)),{html:S,manifest:b}=at(await oe(p)),f=await Mt(r),{document:c,diagnostics:x}=await on(f?`<style>${f}</style>${S}`:S,{source:t,script:Qe(e)});Zr(c.root,b);let g=d.__stx_runtime_head;if(typeof g?.title==="string"&&g.title.trim())c.title=g.title.trim();if(y)c.chrome=y;let N=Ze(S),v=pn(S);if(Qe(e).code.trim()){let R=await is(e,t,n.context,{forceClientSetup:!0}),T=Ze(R.setupCode??"");if(N=T??N,T&&!v.some((E)=>E.code===T.code))v.push({code:T.code})}let{buildModuleRegistryScript:k,registeredModuleIdsIn:w}=await import("./chunk-
|
|
6
|
+
`)+h,chrome:{tabs:m("tabs"),bar:m("bar")}}}var ve=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,fn=/function\s+(__stx_setup_[\w$]+)\s*\(/,Kr=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function Ze(e){ve.lastIndex=0;for(let t of e.matchAll(ve)){let n=t[2].trim(),r=fn.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function pn(e){let t=[];ve.lastIndex=0;for(let n of e.matchAll(ve)){let r=n[1],s=n[2].trim(),o=Kr.exec(r)?.[1],l=/\bdata-stx-component-factories\b/i.test(r);if(!s||!o&&!l&&!fn.test(s))continue;t.push(o?{code:s,owner:o}:{code:s})}return t}function Yr(){let e=[K.join(import.meta.dir,"..","primitives"),K.join(import.meta.dir,"native","primitives")];for(let t of e)if(Jr(K.join(t,"View.stx")))return t;return e[0]}async function Qr(e,t,n={}){e=await oe(e);let r=n.root??K.dirname(t),s=await a(r),o=typeof s.root==="string"&&s.root?K.resolve(r,s.root):r,l=(R,T)=>R?K.isAbsolute(R)?R:K.resolve(o,R):K.join(o,T),u={root:r,layoutsDir:l(s.layoutsDir,"layouts"),partialsDir:l(s.partialsDir,"partials"),storesDir:l(s.storesDir,"stores"),componentsDir:n.componentsDir??(s.componentsDir?l(s.componentsDir,"components"):K.join(o,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[Yr()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},h=new Set([t]),m=await i(e,d,t,u,h),{html:p,chrome:y}=await dn(await oe(m)),{html:S,manifest:b}=at(await oe(p)),f=await Mt(r),{document:c,diagnostics:x}=await on(f?`<style>${f}</style>${S}`:S,{source:t,script:Qe(e)});Zr(c.root,b);let g=d.__stx_runtime_head;if(typeof g?.title==="string"&&g.title.trim())c.title=g.title.trim();if(y)c.chrome=y;let N=Ze(S),v=pn(S);if(Qe(e).code.trim()){let R=await is(e,t,n.context,{forceClientSetup:!0}),T=Ze(R.setupCode??"");if(N=T??N,T&&!v.some((E)=>E.code===T.code))v.push({code:T.code})}let{buildModuleRegistryScript:k,registeredModuleIdsIn:w}=await import("./chunk-h3jdg08e.js"),_=async()=>{let R=[],T=await k(w(...v.map((E)=>E.code)),{collectInputs:R});for(let E of R)h.add(E);return T},C=await _();if([...v.map((R)=>R.code),C??""].some((R)=>/\buseStore\s*\(/.test(R))&&/<script\b[^>]*\bdata-stx-stores\b/i.test(S)){let{getStoreScript:R}=await import("./chunk-axmh79c7.js"),T=await R(u.storesDir);if(T){v.unshift({code:T});for(let E of new Bun.Glob("*.ts").scanSync({cwd:u.storesDir,absolute:!0}))h.add(E);C=await _()}}if(C)v.unshift({code:C});return{document:c,manifest:b,setup:N,scripts:v,diagnostics:x,html:S,dependencies:[...h]}}function Zr(e,t){let n=new Map(t.entries.map((o)=>[o.id,o])),r=t.entries.reduce((o,l)=>Math.max(o,l.id),-1)+1,s=(o)=>{if(o._templated?.length&&o.bindings){if(o.bindingId===void 0||!n.has(o.bindingId)){let u={id:o.bindingId??r++,bindings:[]};o.bindingId=u.id,n.set(u.id,u),t.entries.push(u)}let l=n.get(o.bindingId);for(let u of o._templated){let d=`:${u}`,h=ke(d);if(h&&!l.bindings.some((m)=>m.name===d))l.bindings.push({name:d,value:o.bindings[u],kind:h})}}for(let l of o.children)if(typeof l!=="string")s(l)};s(e)}async function Se(e,t={}){return Qr(await Bun.file(e).text(),e,t)}var Ps=Symbol("stx.nativeWebStorage.raw");var ae="__app";async function ii(e){try{let{loadCssEngineConfig:t}=await import("./chunk-99wwvvmk.js");return yt(await t(e))}catch{return{}}}var we="__runtime",si="__messages";function et(e){let n=[D.join(import.meta.dir,"..","runtime",`${e}.ts`),D.join(import.meta.dir,"..","runtime",`${e}.js`),D.join(import.meta.dir,"native","runtime",`${e}.js`)].find((r)=>nt(r));if(!n)throw Error(`Native runtime module ${e} is missing`);return n}async function tt(e,t,n,r,s){let o={name:"stx-screen-inputs",setup(u){u.onLoad({filter:/.*/,namespace:"file"},({path:d})=>{r.add(d);let h=s?.get(d);return h===void 0?void 0:{contents:h,loader:"js"}})}},l=await Bun.build({entrypoints:[e],target:"browser",format:"iife",minify:n,plugins:[o,...t],define:{"process.env.NODE_ENV":JSON.stringify(n?"production":"development")}});if(!l.success){let u=l.logs.map((d)=>String(d.message??d)).join(`
|
|
7
7
|
`);throw Error(`Could not bundle ${e}:
|
|
8
8
|
${u}`)}return(await l.outputs[0].text()).trim()}var oi=/^[\w-]+(?:\/[\w-]+)*$/,ai=/^[\w-]+$/;async function li(e,t){let n=D.resolve(e,t.dir);if(!t.languages?.length)throw Error("messages.languages must name at least one language");let r=new Map,s=new Map;for(let o of t.languages){if(!ai.test(o))throw Error(`messages: "${o}" is not a language directory name`);let l=D.join(n,o);if(!nt(l))throw Error(`messages: ${D.relative(e,l)} does not exist`);let u=new Map;for(let d of[...new Bun.Glob("**/*.{ts,js,mjs,json}").scanSync({cwd:l})].sort()){if(/\.(?:test|spec|d)\.[^.]+$/.test(d))continue;let h=d.replace(/\.[^./]+$/,"").split(D.sep).join("/");if(!oi.test(h))throw Error(`messages: ${o}/${d} is not an area name`);if(u.has(h))throw Error(`messages: ${o}/${h} is defined twice`);let m=D.join(l,d),p=await import(m),y=Object.keys(p).filter((f)=>f!=="default");if(y.length)throw Error(`messages: ${o}/${d} exports ${y.join(", ")}; a message module exports its messages as default, and nothing else`);let S=p.default,b=S!==null&&typeof S==="object"&&!Array.isArray(S)?JSON.stringify(S):void 0;if(b===void 0||!Bun.deepEquals(JSON.parse(b),S,!0))throw Error(`messages: ${o}/${d} must export plain data (an object JSON can hold) as default`);u.set(h,b),r.set(m,{language:o,area:h})}s.set(o,u)}return{files:r,data:s}}function ci(e,t){return`export default globalThis.__stxNativeRuntime.messages(${JSON.stringify(e)}, ${JSON.stringify(t)});`}function ui(e){let t=new Map;for(let[n,{language:r,area:s}]of e.files){let o=ci(r,s);t.set(n,o),t.set(ri(n),o)}return t}function di(e){let t=new Set;for(let n of e.matchAll(/__stxNativeRuntime\.messages\(\s*"[\w-]+"\s*,\s*"([\w/-]+)"\s*\)/g))t.add(n[1]);return[...t].sort()}function fi(e,t){let n=D.isAbsolute(e.meta.source)?D.relative(t,e.meta.source).split(D.sep).join("/"):e.meta.source;return{...e,script:{exports:e.script.exports,functions:[],code:""},meta:{...e.meta,source:n,compiledAt:0}}}async function rt(e){let t=Object.keys(e.screens);if(t.length===0)throw Error("screens must name at least one .stx file");let n=e.routed??!0,r=e.initialScreen??t[0];if(!e.screens[r])throw Error(`Initial screen ${r} is not in screens`);let s=D.resolve(e.root??process.cwd());if(e.messages&&!e.routesDir)throw Error("messages ship a language at a time beside route files: they need routesDir");if(e.sharedRuntime&&!e.routesDir)throw Error("sharedRuntime is the route files' runtime: it needs routesDir");if(e.messages&&!e.sharedRuntime)throw Error("messages are read by the shared runtime: they need sharedRuntime");if(e.messages&&e.outFile)throw Error("messages leave the languages out of the screens' code, which the one-file bundle cannot read: build it without messages");let o=e.messages?await li(s,e.messages):null,l=e.styleConfig??await ii(s),u=o?ui(o):null,d=[],h=async()=>{for(let T of t){let E=D.resolve(s,e.screens[T]);if(!E.endsWith(".stx"))throw Error(`Screen ${T} must name a .stx file`);d.push({name:T,file:E,compiled:await Se(E,{root:s})})}};await mt(l,()=>u?mo(u,h):h());let m=et("jsc-globals"),p=et("shared-screen"),y=e.app?D.resolve(s,e.app):null;if(y&&!nt(y))throw Error(`The app script ${e.app} does not exist`);if(y&&!n)throw Error("An app script needs a routed bundle");if(y&&e.screens[ae])throw Error(`${ae} is the app script's route, not a screen name`);let S=e.browser;if(e.screens[we])throw Error(`${we} is the runtime prelude's file, not a screen name`);let b=gt();if(S&&e.routesDir)throw Error("A browser screen is one route; routesDir is for device hosts");let f=(T,E,P)=>{let j=n?`var routeName = g.__stxNativeRoute || ${JSON.stringify(r)};
|
|
9
9
|
var isApp = ${y?`routeName === ${JSON.stringify(ae)}`:"false"};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-cg2vjkv9.js";import{ro}from"./chunk-dnqzrktd.js";import p from"path";async function zg(t={}){let l=performance.now(),s=t.root||process.cwd(),e=await a(s),o=t.ssr?.routeRules??e.routeRules??{};if(ro(o),!e.ssr&&Object.keys(o).length)throw Error("routeRules require ssr: true and the production server; flat SSG output cannot apply request/cache policies");if(!e.ssr&&(t.ssr?.serverApi??e.serverApi))throw Error("serverApi requires ssr: true; flat SSG output cannot execute API endpoints");let r=e.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${r.toUpperCase()}${e.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let u,n;if(r==="ssg"){let{generateStaticSite:i}=await import("./ssg.js");u=await i({pagesDir:p.join(e.root||".",e.pagesDir||e.build?.pagesDir||"pages"),publicDir:e.publicDir||e.build?.publicDir||"public",outputDir:e.build?.outputDir||"dist",generate404:e.build?.generate404??!0,minify:e.build?.minify??!0,cleanOutput:e.build?.cleanOutput??!0,router:e.router,...t.ssg})}else{let{buildForProduction:i}=await import("./chunk-g9y3crqw.js");n=await i({root:s,outputDir:".output",debug:t.debug,...t.ssr})}let d=Math.round(performance.now()-l);return{mode:r,ssg:u,ssr:n,duration:d}}
|
|
3
3
|
export{zg};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{nn,ho,yo,bo,Xm,vo}from"./chunk-
|
|
2
|
+
import{nn,ho,yo,bo,Xm,vo}from"./chunk-zb1627aa.js";import"./chunk-3fwdxxh1.js";import"./chunk-2mqzpzy7.js";import"./chunk-rbmt5w9v.js";export{yo as buildServerApi,Xm as createServerApi,nn as discoverServerApi,ho as generateApiTypes,vo as isServerApiSource,bo as productionApiDispatcher};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{vf,oh,ih,ah,ch,wf,xf,lh,uh,No,dh,ir,ar,cs}from"./chunk-
|
|
2
|
+
import{vf,oh,ih,ah,ch,wf,xf,lh,uh,No,dh,ir,ar,cs}from"./chunk-h3pj7xkd.js";import{et}from"./chunk-j2mpqa4p.js";import"./chunk-asxh3wqg.js";import"./chunk-za4e4w89.js";import"./chunk-rbmt5w9v.js";import"./chunk-zkx2m308.js";import"./chunk-zn3c0ew5.js";import"./chunk-ez35607j.js";export{ch as __setSignalsGeneratorsForTest,et as cacheEngineFingerprint,ar as cacheTemplate,ir as checkCache,dh as clearDevCaches,xf as getCachedRouterScript,wf as getCachedSignalsRuntime,lh as getServeClientAsset,No as getServeModuleBundle,cs as hashFilePath,ih as invalidateFileCache,ah as invalidateFileCacheByDir,oh as readFileCached,uh as registerServeModuleBundle,vf as templateCache};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{_}from"./chunk-ez35607j.js";import{we,At,Go,Xo,mc,hc,yc,bc,Ts,Yo,vc,wc,xc,gn}from"./chunk-
|
|
2
|
+
import{_}from"./chunk-ez35607j.js";import{we,At,Go,Xo,mc,hc,yc,bc,Ts,Yo,vc,wc,xc,gn}from"./chunk-asxh3wqg.js";import{a}from"./chunk-cg2vjkv9.js";import{so}from"./chunk-v6jywzkh.js";import{l}from"./chunk-qc93ce5h.js";import{existsSync as M,readFileSync as K}from"fs";import h from"path";var ge=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),ee=gn.filter((e)=>!ge.has(e)).sort(),te=[..._].sort(),me=[...new Set([...ee,...te])].sort(),he=new Set(ee),be=new Set(te),ye=new Set(me),Y=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function xe(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 ne(e,t){let s=[];for(let u of t){if(u.offset===void 0)continue;let i=u.kind==="server"?he:be;Y.lastIndex=0;for(let c of u.code.matchAll(Y)){let g=c.index+c[0].indexOf("{")+1;for(let m of c[1].matchAll(/[^,]+/g)){let x=m[0];if(/^\s*type\s/.test(x))continue;let y=/^\s*([A-Za-z_$][\w$]*)/.exec(x);if(!y)continue;let r=y[1];if(!ye.has(r)||i.has(r))continue;let f=u.offset+g+m.index+y[0].length-r.length,p=e.slice(0,f),k=p.split(`
|
|
3
3
|
`).length;s.push({line:k,column:f-(p.lastIndexOf(`
|
|
4
4
|
`)+1)+1,offset:f,length:r.length,name:r,kind:u.kind,message:xe(r,u.kind)})}}}return s}import v from"path";var Se="@stacksjs/stx-typescript-plugin";function ke(e,t){let s=v.resolve(e);for(;;){let u=v.join(s,"tsconfig.json");if(t(u))return u;let i=v.dirname(s);if(i===s)return;s=i}}function ie(e,t,s){let u=ke(e,s);if(!u)return;let i=new Set,c=(g)=>{if(i.has(g))return;i.add(g);let m=t(g);if(!m)return;let x=m.compilerOptions?.plugins;if(Array.isArray(x)){let r=x.find((p)=>p?.name===Se),f=Array.isArray(r?.libs)?r.libs.filter((p)=>typeof p==="string"):[];return r?{configPath:g,libs:f.map((p)=>v.resolve(v.dirname(g),p))}:null}let y=typeof m.extends==="string"?[m.extends]:Array.isArray(m.extends)?m.extends:[];for(let r of[...y].reverse()){if(typeof r!=="string"||!r.startsWith("."))continue;let f=v.resolve(v.dirname(g),r.endsWith(".json")?r:`${r}.json`),p=c(f);if(p!==void 0)return p}return};return c(u)??void 0}function bl(e,t="",s=""){let u=e.startLine>1?`
|
|
5
5
|
`.repeat(e.startLine-1):"",i=Yo(e)+Xo(Go(e.code)),c=e.kind==="client"||e.kind==="plain"?yc(t,e.code):"";return Ts(`${u+i}
|