@stacksjs/stx 0.2.787 → 0.2.788
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-vr6jccpy.js → chunk-05taafth.js} +1 -1
- package/dist/{chunk-7wkz9sz5.js → chunk-2hm4nmt9.js} +2 -2
- package/dist/{chunk-nrnkqqmb.js → chunk-2yexd919.js} +4 -4
- package/dist/{chunk-8ycz8ss9.js → chunk-3772atqp.js} +2 -2
- package/dist/{chunk-40ambk0h.js → chunk-4dd0yecs.js} +4 -4
- package/dist/{chunk-5pgv8jh1.js → chunk-4vxz57e1.js} +1 -1
- package/dist/{chunk-0jp3tt5c.js → chunk-4yhsmwcc.js} +1 -1
- package/dist/chunk-5d2dnhsf.js +2 -0
- package/dist/chunk-5jqcs1fz.js +2 -0
- package/dist/{chunk-hzmhh3k5.js → chunk-67ezpess.js} +1 -1
- package/dist/{chunk-rkpd5pqc.js → chunk-6sgqa52q.js} +1 -1
- package/dist/{chunk-hqmgvan6.js → chunk-6vqz4qqy.js} +1 -1
- package/dist/{chunk-wdqgf1hh.js → chunk-7w3p07yp.js} +1 -1
- package/dist/{chunk-992nsr70.js → chunk-8p65gzw0.js} +1 -1
- package/dist/{chunk-n2cq11e3.js → chunk-8qex68bk.js} +1 -1
- package/dist/chunk-9cyfq8mn.js +2 -0
- package/dist/{chunk-qrnws56v.js → chunk-9dzgkt5x.js} +1 -1
- package/dist/{chunk-w6emseps.js → chunk-9h532cqf.js} +3 -3
- package/dist/{chunk-9th217rf.js → chunk-9pkazxn1.js} +1 -1
- package/dist/{chunk-7gvaz6ye.js → chunk-9pkx13hy.js} +1 -1
- package/dist/{chunk-kq1zc10a.js → chunk-9ppsnerc.js} +1 -1
- package/dist/{chunk-2scyqqt3.js → chunk-a1kvc52k.js} +1 -1
- package/dist/{chunk-h1cep4w8.js → chunk-bwvnstrd.js} +1 -1
- package/dist/{chunk-k7w05cjv.js → chunk-c7e78z00.js} +1 -1
- package/dist/chunk-dk53ytvr.js +3 -0
- package/dist/{chunk-p0f5vygc.js → chunk-dwrjs05v.js} +1 -1
- package/dist/{chunk-d3pemcp8.js → chunk-ebxmj4q2.js} +2 -2
- package/dist/{chunk-x8pehmac.js → chunk-ee2jz9xp.js} +1 -1
- package/dist/{chunk-mqr61kqn.js → chunk-epg3gkc6.js} +1 -1
- package/dist/chunk-fd572s2h.js +2 -0
- package/dist/{chunk-qvc6d3ka.js → chunk-fgz2kbwb.js} +1 -1
- package/dist/chunk-fpvhmwqj.js +2 -0
- package/dist/chunk-gkqx3p8n.js +2 -0
- package/dist/{chunk-rwbcxzw2.js → chunk-gp5japjb.js} +2 -2
- package/dist/{chunk-6w935vyf.js → chunk-gwzp463h.js} +1 -1
- package/dist/{chunk-rnaeezmp.js → chunk-h88p9w9x.js} +1 -1
- package/dist/chunk-hb7phtn2.js +2 -0
- package/dist/{chunk-44bm0pty.js → chunk-hexa0j1j.js} +1 -1
- package/dist/{chunk-hc8htggj.js → chunk-j10mdh4g.js} +2 -2
- package/dist/{chunk-2v75eyf8.js → chunk-jf4kesf8.js} +1 -1
- package/dist/{chunk-wrd3aygb.js → chunk-kb2xxmxp.js} +1 -1
- package/dist/{chunk-bgybw1k5.js → chunk-kbaay11r.js} +1 -1
- package/dist/{chunk-gj5hjak1.js → chunk-khndcwxy.js} +1 -1
- package/dist/{chunk-tbnyx5d2.js → chunk-mymnmr1m.js} +1 -1
- package/dist/{chunk-qsqha895.js → chunk-nb8czvz1.js} +5 -5
- package/dist/chunk-npm22znd.js +2 -0
- package/dist/{chunk-ymb0h1b9.js → chunk-ns1hpm7x.js} +2 -2
- package/dist/{chunk-s18ecm80.js → chunk-p2r6rbs4.js} +1 -1
- package/dist/chunk-p45s8mwh.js +2 -0
- package/dist/{chunk-t0kh3ev1.js → chunk-qadv0nrt.js} +4 -4
- package/dist/chunk-qbmy60z0.js +2 -0
- package/dist/{chunk-vgtbds23.js → chunk-s14v17b5.js} +4 -4
- package/dist/{chunk-v6z3ak8h.js → chunk-se44k8bp.js} +1 -1
- package/dist/{chunk-cg5ar6y0.js → chunk-shmm7135.js} +1 -1
- package/dist/{chunk-hf2h0shz.js → chunk-t271s8p9.js} +1 -1
- package/dist/{chunk-n70gbh4y.js → chunk-vrw1qs1j.js} +1 -1
- package/dist/{chunk-76ngpa25.js → chunk-w1xzkkk3.js} +1 -1
- package/dist/{chunk-549zk2p7.js → chunk-wjcph0yf.js} +1 -1
- package/dist/{chunk-npfs1zyn.js → chunk-y38rxnrr.js} +1 -1
- package/dist/{chunk-nzj7mkvm.js → chunk-y8wer7e1.js} +6 -6
- package/dist/{chunk-ebbzq4va.js → chunk-yehq3z73.js} +1 -1
- package/dist/{chunk-8w54jyt7.js → chunk-yrqy4vka.js} +1 -1
- package/dist/{chunk-e44zheax.js → chunk-z9h2s292.js} +1 -1
- package/dist/{chunk-qf86f6c5.js → chunk-zd6cygn3.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-0s25gyy5.js +0 -2
- package/dist/chunk-1pdaqca9.js +0 -2
- package/dist/chunk-498286bb.js +0 -2
- package/dist/chunk-bm7xr4xh.js +0 -3
- package/dist/chunk-cagvn9tf.js +0 -2
- package/dist/chunk-dtc8expv.js +0 -2
- package/dist/chunk-eeqr09wt.js +0 -2
- package/dist/chunk-kk8vqwe4.js +0 -2
- package/dist/chunk-memz2xdn.js +0 -2
- package/dist/chunk-t2hscbrh.js +0 -2
- package/dist/chunk-wqjdzdaj.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-94gyfwpz.js";import{Js,Ri,hl}from"./chunk-gb65t4n1.js";import"./chunk-2yxva96k.js";import"./chunk-nzj7mkvm.js";import"./chunk-27rzdq3n.js";import"./chunk-wrd3aygb.js";import"./chunk-h0jnatd4.js";import"./chunk-q14d714d.js";import{ws,a}from"./chunk-7wkz9sz5.js";import"./chunk-w9nwb8r3.js";import"./chunk-605b93pe.js";import"./chunk-mqr61kqn.js";import{bt,Xe,ye,an,Ae,nr,rr,Ge}from"./chunk-d3pemcp8.js";import{i}from"./chunk-vgtbds23.js";import"./chunk-vr6jccpy.js";import"./chunk-nrnkqqmb.js";import{hs}from"./chunk-8ycz8ss9.js";import"./chunk-992nsr70.js";import"./chunk-2gqhfge6.js";import{ht}from"./chunk-59tbk9qj.js";import"./chunk-7sh9fa3q.js";import"./chunk-npfs1zyn.js";import{rs}from"./chunk-e44zheax.js";import{jr}from"./chunk-kce6pzmj.js";import{Lr,no,ro}from"./chunk-ymb0h1b9.js";import"./chunk-bm7xr4xh.js";import"./chunk-qv85c3qy.js";import"./chunk-40ambk0h.js";import"./chunk-w5hhqjwr.js";import"./chunk-0jp3tt5c.js";import{existsSync as Ce,mkdirSync as ji,readFileSync as Vi}from"fs";import G from"path";import{existsSync as Pn,mkdirSync as Cn,realpathSync as Ei,rmSync as On}from"fs";import H from"path";import oe from"path";var Dn="data-stx-b",gt=new Set(Ri),Ln=new Set(Js);function Ie(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(gt.has(t))return t==="if"?"if":t;if(t==="for"||t==="else"||t==="else-if"||t==="elseif")return"for";if(hl(t))return"event";if(e.startsWith("@"))return"event";return"attr"}if(e.startsWith("x-")){let t=e.split(".")[0];if(!Ln.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 gt.has(n)?n==="if"?"if":n:"attr"}return null}function $n(e){let t=[];for(let[n,r]of e){let s=Ie(n);if(s)t.push({name:n,value:r,kind:s})}return t}var jn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,Oe=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function mt(e){let t=[],n=0;return{html:e.replace(jn,(s,o,c)=>{if(!c||!/[:@]|x-/.test(c))return s;let u=[];Oe.lastIndex=0;for(let y=Oe.exec(c);y;y=Oe.exec(c))u.push([y[1],y[2]??y[3]??y[4]??""]);let d=$n(u);if(!d.length)return s;let f={id:n++,bindings:d};if(d.some((y)=>y.kind==="for"))f.template=!0;t.push(f);let h=s.endsWith("/>");return`${s.slice(0,h?-2:-1).trimEnd()} ${Dn}="${f.id}"${h?"/>":">"}`}),manifest:{entries:t}}}import _r from"path";function fe(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 Pe(e,t){if(!ye[e])return;return fe(t?.get(an(e))??ye[e].value)}function Me(e,t){let n=nr[e];if(!n)return;return fe(t?.get(Ge(n))??Ae[n]?.value)}function Be(e,t){let n=rr[e];if(!n)return;let r=fe(t?.get(Ge(n.size))??Ae[n.size]?.value),s=fe(t?.get(Ge(n.leading))??Ae[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var Vn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},wt=Le({}),yt,vt=null;function pe(){let e=globalThis.__stxNativeStyleConfig;if(!e)return wt;if(e!==yt)yt=e,vt=Le(e);return vt}function xt(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")xt(s,t,`${o}-`)}return t}function Nt(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 Le(e){return{shortcuts:new Map(Object.entries(e.shortcuts??{}).filter(([,t])=>typeof t==="string")),colors:xt(e.colors),fontFamily:new Map(Object.entries(e.fontFamily??{}).map(([t,n])=>[t,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...Vn,...Nt(e.breakpoints)}))}}var De={};function St(e){De=e??{},wt=Le(De)}async function kt(e,t){let n=De;St(e);try{return await t()}finally{St(n)}}function Rt(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:Nt(t.screens)}:{}}}function Tt(e){return pe().shortcuts.get(e)}function _t(e){return pe().colors.get(e)}function $e(e){return pe().breakpoints.get(e)}function ge(e){return pe().fontFamily.get(e)}var Et=/^--[\w\u0080-\uFFFF-]+$/u;function At(e,t){if(!/var\(/i.test(e))return e;let n="",r="",s=!1;for(let o=0;o<e.length;o++){let c=e[o];if(c==="\\"){n+=e.slice(o,o+2),o++;continue}if(r){if(n+=c,c===r)r="";continue}if(c==='"'||c==="'"){r=c,n+=c;continue}if(e.slice(o,o+4).toLowerCase()!=="var("||o>0&&/[\w-]/.test(e[o-1])){n+=c;continue}let u=1,d=-1,f="",h=o+4;for(;h<e.length;h++){let m=e[h];if(m==="\\"){h++;continue}if(f){if(m===f)f="";continue}if(m==='"'||m==="'"){f=m;continue}if(m==="(")u++;if(m===")"&&--u===0)break;if(m===","&&u===1&&d===-1)d=h}if(u!==0)return;let g=e.slice(o+4,d===-1?h:d).trim();if(!Et.test(g))return;let y=t(g,d===-1?void 0:e.slice(d+1,h).trim());if(y===void 0||n.length+y.length>65536)return;n+=y,s=!0,o=h}return s&&n.length>65536?void 0:n}var Wn=new Map;function ae(e,t){let n=new Map,r=new Set;for(let[v,l]of e){let b=v.trim();if(!Et.test(b))continue;if(typeof l==="string"||typeof l==="number"&&Number.isFinite(l))n.set(b,String(l).trim())}let s=new Map,o=new Set;for(let[v,l]of n){let b=new Set,p=(N,S=0)=>S>64?void 0:At(N,(R,w)=>(b.add(R),w===void 0?"":p(w,S+1)));if(p(l)===void 0)o.add(v);s.set(v,b)}let c=new Map,u=new Map,d=[],f=new Set,h=0;function g(v,l=0){if(l>64){o.add(v);return}c.set(v,h),u.set(v,h++),d.push(v),f.add(v);for(let N of s.get(v)??[]){if(!n.has(N))continue;if(!c.has(N)){if(g(N,l+1),u.has(N))u.set(v,Math.min(u.get(v),u.get(N)))}else if(f.has(N))u.set(v,Math.min(u.get(v),c.get(N)))}if(u.get(v)!==c.get(v))return;let b=[],p;do p=d.pop(),f.delete(p),b.push(p);while(p!==v);if(b.length>1||s.get(v)?.has(v))b.forEach((N)=>o.add(N))}for(let v of n.keys())if(!c.has(v))g(v);let y=new Map;function m(v,l){if(r.add(v),y.has(v))return y.get(v);let b=n.get(v),p=b===void 0||/^(?:inherit|unset)$/i.test(b)?t?.get(v):o.has(v)||/^(?:initial|revert|revert-layer)$/i.test(b)?void 0:x(b,l+1);return y.set(v,p),p}function x(v,l=0){if(l>64)return;return At(v,(b,p)=>m(b,l)??(p===void 0?void 0:x(p,l+1)))}return{resolve:x,used:r,computed(){if(!n.size)return t??Wn;let v=new Map(t);for(let l of n.keys())v.set(l,m(l,0));return v}}}function je(e){if(e.display==="flex"&&e.flexDirection==null)return{...e,flexDirection:"row"};return e}var Ct=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","objectPosition","tintColor","transform","overflow","pointerEvents","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Fn=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"]),Ot=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"]),It=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,Xn=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,zn=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),Un=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function Hn(e){if(typeof e!=="string")return e;let t=Xn.exec(e);return t?Number(t[1])*(/^r?em$/i.test(t[2]||"")?16:1):e}function re(e){return typeof e==="number"&&Number.isFinite(e)}function qn(e,t){if(e==="shadowOffset"&&t&&typeof t==="object"&&!Array.isArray(t)){let{width:n,height:r}=t;return re(n)&&re(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(Un.has(s)&&re(o))n.push({[s]:o});else if(zn.has(s)&&typeof o==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(o))n.push({[s]:o});else return}return n}return}function Gn(e){let t=[],n=0,r=0,s="";for(let o=0;o<=e.length;o++){let c=e[o];if(c==="\\"){o++;continue}if(s){if(c===s)s="";continue}if(c==='"'||c==="'"){s=c;continue}if(c==="(")r++;if(c===")")r=Math.max(0,r-1);if(o!==e.length&&(c!==";"||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 Jn(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=Gn(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 he(e,t=()=>{},n={}){let r=Jn(e,t),s=ae(r,n.inheritedVariables);return n.onVariables?.(s.computed()),Kn(r,s,t)}function Kn(e,t,n){let r={},s=[];for(let[o,c]of e){if(o.trim().startsWith("--")){s.push(o.trim());continue}let u=Ct.has(o)||o.trim().startsWith("--")?o:o.trim().toLowerCase().replace(/-([a-z])/g,(h,g)=>g.toUpperCase());if(!Ct.has(u)){n({kind:"unknown-style",name:u});continue}if(c==null||c==="")continue;let d=typeof c==="string"?t.resolve(c.trim()):c;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="pointerEvents"){if(typeof d==="string"&&["auto","none","box-none","box-only"].includes(d))r.pointerEvents=d;else n({kind:"unknown-style",name:`pointerEvents:${String(d)}`});continue}if(u==="objectFit"){let h=typeof d==="string"?d.trim().toLowerCase():"";if(["fill","contain","cover","none","scale-down"].includes(h))r.objectFit=h;else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}if(u==="objectPosition"){let h=typeof d==="string"?d.trim().toLowerCase().replace(/\s+/g," "):"",g=h.split(" ");if(g.length===1)g.push("center");if(["top","bottom"].includes(g[0])||["left","right"].includes(g[1]))g.reverse();let y=(m)=>m.endsWith("%")&&It.test(m.slice(0,-1))&&Number.isFinite(Number(m.slice(0,-1)));if(g.length===2&&(["left","center","right"].includes(g[0])||y(g[0]))&&(["top","center","bottom"].includes(g[1])||y(g[1])))r.objectPosition=h;else n({kind:"unknown-style",name:`objectPosition:${String(d)}`});continue}let f;if(Fn.has(u)||Ot.has(u)){if(f=Hn(d),!re(f)&&!(Ot.has(u)&&typeof f==="string"&&f.endsWith("%")&&It.test(f.slice(0,-1))&&Number.isFinite(Number(f.slice(0,-1)))))f=void 0}else if(u==="display"&&d==="inline-flex")f="flex";else if(u==="shadowOffset"||u==="transform")f=qn(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")f=re(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&re(d))f=String(d);else if(typeof d==="string")f=d;if(f===void 0)n({kind:"non-numeric-style",name:u});else r[u]=f}for(let o of s)if(!t.used.has(o))n({kind:"unknown-style",name:o});return r}var Yn={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"}},Fe={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},Pt={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},Mt={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function te(e){let t=e.lastIndexOf("/");if(t>0&&(!e.endsWith("]")||/\/\[[\d.]+%?\]$/.test(e))){let r=te(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 Qn(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=Yn[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 ze(e){return te(e.trim())}function Qn(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 We(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 X(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 Fe[e]??Me(e)}function ve(e){let t=/^\[(-?\d*\.?\d+)%\]$/.exec(e);if(t)return`${Number.parseFloat(t[1])}%`;return X(e)}var Zn={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),"pointer-events-none":(e,t)=>(t.pointerEvents="none",!0),"pointer-events-auto":(e,t)=>(t.pointerEvents="auto",!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=ge("sans")??"sans-serif",!0),"font-serif":(e,t)=>(t.fontFamily=ge("serif")??"serif",!0),"font-mono":(e,t)=>(t.fontFamily=ge("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 er(e,t){if(!e.startsWith("bg-"))return!1;let n=e.slice(3),r=te(n);if(r)return t.backgroundColor=r,!0;return!1}function Bt(e,t){if(!e.startsWith("text-"))return!1;let n=e.slice(5),r=Be(n);if(r)return Object.assign(t,r),!0;if(Pt[n])return t.fontSize=Pt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(o)){let c=o.endsWith("rem")||o.endsWith("em")?Number.parseFloat(o)*16:Number.parseFloat(o);if(Number.isFinite(c))return t.fontSize=c,!0}}let s=te(n);if(s)return t.color=s,!0;return!1}var tr=new Set(["t","tr","r","br","b","bl","l","tl"]);function ir(e,t){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(e);if(n&&tr.has(n[1]))return t.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(e);if(!r)return!1;let s=te(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 sr(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=te(s);if(o)return t[n]=o,!0}return!1}function or(e,t){if(e.startsWith("p-")){let n=X(e.slice(2));if(n!==void 0)return t.padding=n,!0}if(e.startsWith("px-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingHorizontal=n,!0}if(e.startsWith("py-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingVertical=n,!0}if(e.startsWith("pt-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingTop=n,!0}if(e.startsWith("pr-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingRight=n,!0}if(e.startsWith("pb-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingBottom=n,!0}if(e.startsWith("pl-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingLeft=n,!0}return!1}function jt(e,t){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(e)){let n={};if(!jt(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=X(e.slice(2));if(n!==void 0)return t.margin=n,!0}if(e.startsWith("mx-")){let n=X(e.slice(3));if(n!==void 0)return t.marginHorizontal=n,!0}if(e.startsWith("my-")){let n=X(e.slice(3));if(n!==void 0)return t.marginVertical=n,!0}if(e.startsWith("mt-")){let n=X(e.slice(3));if(n!==void 0)return t.marginTop=n,!0}if(e.startsWith("mr-")){let n=X(e.slice(3));if(n!==void 0)return t.marginRight=n,!0}if(e.startsWith("mb-")){let n=X(e.slice(3));if(n!==void 0)return t.marginBottom=n,!0}if(e.startsWith("ml-")){let n=X(e.slice(3));if(n!==void 0)return t.marginLeft=n,!0}return!1}function ar(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("/"),c=Number.parseInt(s)/Number.parseInt(o)*100;return t.width=`${c}%`,!0}let r=ve(n);if(r!==void 0)return t.width=r,!0;return!1}function cr(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=ve(n);if(r!==void 0)return t.height=r,!0;return!1}function lr(e,t){if(e==="rounded")return t.borderRadius=Mt.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=Mt[r[2]]??Pe(r[2])??We(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 c of r[1]?o[r[1]]:["borderRadius"])t[c]=s;return!0}function ur(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 c={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let u of c[r])t[u]=o;return!0}function dr(e,t){if(!e.startsWith("border-"))return!1;let n=e.slice(7),r=te(n);if(r)return t.borderColor=r,!0;return!1}function fr(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 pr(e,t,n){if(e.startsWith("tracking-[")){let r=We(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},c=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*s:We(r,s):o[r]!==void 0?o[r]*s:Fe[r];if(c===void 0||!Number.isFinite(c))return!1;return t.lineHeight=c,!0}return!1}function gr(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]):Fe[r];if(o===void 0||!Number.isFinite(o))return!1;let c=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]=c;return!0}function hr(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 mr(e,t){if(!e.startsWith("size-"))return!1;let n=e.slice(5),r=n==="full"?"100%":ve(n);if(r===void 0)return!1;return t.width=r,t.height=r,!0}var yr={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function br(e,t){let n=/^(min|max)-(w|h)-(.+)$/.exec(e);if(!n)return!1;let[,r,s,o]=n,c=o==="full"||o==="screen"?"100%":o==="none"?void 0:s==="w"&&r==="max"&&yr[o]||ve(o);if(c===void 0&&o!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(c===void 0)delete t[u];else t[u]=c;return!0}function vr(e,t){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3]==="full"?"100%":X(n[3]);if(r===void 0)return!1;return t[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function Sr(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=X(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let o=n[2]==="x"?"translateX":"translateY",c=o==="translateX"?{translateX:s}:{translateY:s};return t.transform=[...(t.transform??[]).filter((u)=>!(o in u)),c],!0}function wr(e,t){let n=/^space-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=X(n[2]);if(r===void 0)return!1;return t.gap=r,!0}function xr(e,t){if(e.startsWith("gap-")){let n=X(e.slice(4));if(n!==void 0)return t.gap=n,!0}if(e.startsWith("gap-x-")){let n=X(e.slice(6));if(n!==void 0)return t.columnGap=n,!0}if(e.startsWith("gap-y-")){let n=X(e.slice(6));if(n!==void 0)return t.rowGap=n,!0}return!1}function Nr(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,c,u]=r;return Object.assign(t,{shadowColor:"#000000",shadowOpacity:c,shadowRadius:s,shadowOffset:{width:0,height:o},elevation:u}),!0}function kr(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 Vt=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),Rr=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),Dt=/^(?: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 Wt(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 Ft(e,t=new Set){let n=Wt(e),r=n[n.length-1],s=t.has(r)?void 0:Tt(r);if(s===void 0)return[e];let o=n.slice(0,-1).map((u)=>`${u}:`).join(""),c=new Set(t).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>Ft(`${o}${u}`,c))}function Ve(e){if(/^transition(?:-(?:all|colors|opacity|shadow|transform))?$/.test(e))return 150;if(e==="transition-none")return 0;let t=/^duration-(\d+)$/.exec(e);return t?Number(t[1]):void 0}var Lt=new WeakMap,me={};function Se(e,t,n={}){let r=Lt.get(t??me);if(!r)Lt.set(t??me,r=new WeakMap);let s=r.get(n.rules??me);if(!s)r.set(n.rules??me,s=new Map);let o=`${n.focus?1:0}${n.focusWithin?1:0}${n.pointer?1:0}${n.appearance??""}|${e}`,c=s.get(o);if(!c){if(s.size>=4096)s.clear();s.set(o,c=Tr(e,t,n))}return c}function Tr(e,t,n){let r=new Map,s,o,c=(l,b)=>{if(!r.has(l))r.set(l,{...b,classes:[],authored:new Map});return r.get(l)};c("base",{});let u=[],d=[],f=e.split(/\s+/).filter(Boolean);if(n.rules){let l=new Set(f);for(let b of Object.keys(n.rules))if(b.includes(".")&&b.split(".").every((p)=>l.has(p)))d.push(b);d.sort((b,p)=>b.split(".").length-p.split(".").length)}for(let l of f){if(n.rules&&Object.hasOwn(n.rules,l)){u.push(l);continue}for(let b of Ft(l)){let p=Wt(b),N=p.pop(),S=p.some((k)=>k.startsWith("focus"));if(p.some((k)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(k))&&/^(?:ring|outline)(?:-|$)/.test(N))continue;if(n.pointer&&p.length===0&&Ve(N)!==void 0){if(N.startsWith("duration-"))o=Ve(N);else s=Ve(N);continue}let R=p.filter((k)=>k!=="dark"),w=n.pointer&&R.length===1&&p.length-R.length<=1&&(R[0]==="hover"||R[0]==="active")?R[0]:void 0;if(w&&!Dt.test(N)){let k=c(`pointer:${w}`,{pointerState:w}),T=p.includes("dark")?`dark:${N}`:N;if(k.classes.push(T),!k.authored.has(T))k.authored.set(T,l===b?b:`${l} (${b})`);continue}if(Dt.test(N)||!S&&p.some((k)=>Rr.has(k)))continue;let _,I,D=!1,A,V=[];for(let k of p){let T=$e(k),C=k.startsWith("max-")?$e(k.slice(4)):void 0;if(T!==void 0&&_===void 0)_=T;else if(C!==void 0&&I===void 0)I=C-0.02;else if(k==="disabled"&&!D)D=!0;else if(Vt.has(k)&&A===void 0)A=k;else V.push(k)}let E=[...V,N].join(":"),O=_!==void 0||I!==void 0,B=D?c("disabled",{disabled:!0}):A?c(`state:${A}`,{state:A}):O?c(`range:${_??0}:${I??""}`,{min:_??0,max:I}):r.get("base");if((D||A)&&(O||D&&A)){r.get("base").authored.set(b,l),r.get("base").classes.push(b);continue}if(B.classes.push(E),!B.authored.has(E))B.authored.set(E,l===b?b:`${l} (${b})`)}}let h=[...u,...d],g=(l,b)=>b.map((p)=>l.authored.get(p)??p),y=r.get("base"),m=be(y.classes.join(" "),t,n),x=new Map;if(h.length){let l=(N)=>N?he(N,()=>{},{inheritedVariables:t}):{},b={},p={};for(let N of h){let S=n.rules[N];b={...b,...l(S.light)},p={...p,...l(S.dark)};for(let R of S.responsive??[]){let w=`${R.min}:${R.max??""}`,_=x.get(w)??{min:R.min,...R.max===void 0?{}:{max:R.max},style:{}};if(_.style={..._.style,...l(R.light)},R.dark)_.dark={..._.dark,...l(R.dark)};x.set(w,_)}}if(m.style={...b,...m.style},Object.keys(p).length)m.dark={...p,...m.dark}}m.unknown=g(y,m.unknown);let v=[];for(let l of r.values()){if(l===y)continue;let b=be(l.classes.join(" "),t,{appearance:n.appearance});m.unknown=[...new Set([...m.unknown,...g(l,b.unknown)])];let p={style:b.style,...b.dark?{dark:b.dark}:{}};if(l.pointerState)(m.pointer??={})[l.pointerState]=p;else if(l.disabled)m.disabled=p;else if(l.state)(m.states??={})[l.state]=p;else v.push({min:l.min??0,...l.max===void 0?{}:{max:l.max},...p})}for(let l of x.values()){let b=v.find((p)=>p.min===l.min&&p.max===l.max);if(b){if(b.style={...l.style,...b.style},l.dark||b.dark)b.dark={...l.dark,...b.dark}}else v.push(l)}if(v.length)m.responsive=v.sort((l,b)=>l.min-b.min||(l.max??1/0)-(b.max??1/0));if(s!==void 0&&s>0)m.style={...m.style,transitionDuration:o??s};return m}function be(e,t,n={}){let r=[],s=[],o=[],c=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function f(p,N){let S=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(p),R=S&&_t(S[2]);if(S&&R){let A=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(R),V=A?t?.get(A[1])??A[2]:R;if(V&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(V))return[`${S[1]}-[${V.replace(/\s+/g,"")}]${S[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(p),_=w&&bt[w[2]];if(_){let A=t?.get(Xe(w[2]));return[`${w[1]}-${A===void 0?_[N]:`[${A}]`}${w[3]||""}`]}let I=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(p);if(I&&ye[I[2]]){let A=Pe(I[2],t);return A===void 0?void 0:[`rounded-${I[1]?`${I[1]}-`:""}[${A}px]`]}let D=p.startsWith("text-")?p.slice(5):"";if(rr[D]){let A=Be(D,t);return A&&[`text-[${A.fontSize}px]`,`leading-[${A.lineHeight}px]`]}for(let A of Object.keys(nr)){if(!p.endsWith(`-${A}`))continue;let V=Me(A,t);return V===void 0?void 0:[`${p.slice(0,-A.length)}[${V}px]`]}return[p]}function h(p,N){if(!d.has(p))d.set(p,new Set);return d.get(p).add(N),p}let g=[],y=new Map;for(let p of e.split(/\s+/).filter(Boolean)){let N=p.startsWith("dark:")?p.slice(5):p,S=kr(N);if(S!==null){let _=S&&`${p===N?"":"dark:"}${S}`;if(_)g.push(_),y.set(_,p);continue}let R=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(p),w=R?.[2]==="focus"?"focus":"focusWithin";if(R&&n[w]&&!(R[1]&&R[3])){let _=`${R[1]||R[3]?"dark:":""}${R[4]}`,I=u[w];I.classes.push(_),I.originals.set(_,[...I.originals.get(_)??[],p]);continue}if(p.startsWith("dark:")){let _=f(p.slice(5),"dark");if(!_)c.push(p);else s.push(..._.map((I)=>h(I,p)))}else if(!p.includes(":")||p.startsWith("[")){let _=f(p,n.appearance??"light"),I=f(p,"dark");if(!_||!I){c.push(p);continue}if(r.push(..._.map((D)=>h(D,p))),I.join(" ")!==_.join(" "))o.push(...I.map((D)=>h(D,p)))}else c.push(p)}let m=[],x=$t(r,m),v={style:x,unknown:m},l=[...n.appearance===void 0?o:[],...s];if(l.length)v.dark=$t(l,m);if(x.transform&&v.dark?.transform){let p=new Set(v.dark.transform.flatMap((N)=>Object.keys(N)));v.dark.transform=[...x.transform.filter((N)=>!Object.keys(N).some((S)=>p.has(S))),...v.dark.transform]}for(let p of r){if(p==="truncate"||p==="whitespace-nowrap")v.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(p);if(N)v.resizeMode=N[1]==="fill"?"stretch":N[1];let S=/^line-clamp-(\d+)$/.exec(p);if(S)v.numberOfLines=Number(S[1]);if(!v.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(p))v.icon=p}let b=m.flatMap((p)=>[...d.get(p)??[p]]);if(v.unknown=[...new Set([...b.filter((p)=>!/^line-clamp-\d+$/.test(p)),...c])],g.length){let p=be(g.join(" "),t,{appearance:n.appearance});v.divide={style:p.style,...p.dark?{dark:p.dark}:{}},v.unknown=[...new Set([...v.unknown,...p.unknown.map((N)=>y.get(N)??N)])]}for(let p of["focus","focusWithin"]){let N=u[p];if(!N.classes.length)continue;let S=be(N.classes.join(" "),t,{appearance:n.appearance});v[p]={style:S.style,dark:S.dark},v.unknown=[...new Set([...v.unknown,...S.unknown.flatMap((R)=>N.originals.get(R)??[R])])];for(let R of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(R))v.unknown.push(...N.originals.get(R))}return v}function $t(e,t){let n={},r=Array.isArray(e)?e:e.split(/\s+/).filter(Boolean),s={};for(let c of r)if(c.startsWith("text-"))Bt(c,s);let o=typeof s.fontSize==="number"?s.fontSize:16;for(let c of r){if(/^i-[a-z0-9]+-/.test(c))continue;let u=Zn[c];if(u){u("",n);continue}if(Nr(c,n))continue;if(ir(c,n))continue;if(er(c,n))continue;if(sr(c,n))continue;if(Bt(c,n))continue;if(or(c,n))continue;if(jt(c,n))continue;if(ar(c,n))continue;if(cr(c,n))continue;if(lr(c,n))continue;if(ur(c,n))continue;if(dr(c,n))continue;if(fr(c,n))continue;if(xr(c,n))continue;if(pr(c,n,o))continue;if(mr(c,n))continue;if(br(c,n))continue;if(hr(c,n))continue;let d=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(c);if(d&&Number(d[2])>0){n.aspectRatio=Number(d[1])/Number(d[2]);continue}let f=/^z-\[(-?\d+)\]$/.exec(c)??/^z-(\d+)$/.exec(c);if(f){n.zIndex=Number(f[1]);continue}if(c==="z-auto")continue;if(gr(c,n))continue;let h=/^order-\[(-?\d+)\]$/.exec(c)??/^order-(-?\d+)$/.exec(c);if(h){n.order=Number(h[1]);continue}if(vr(c,n))continue;if(Sr(c,n))continue;if(wr(c,n))continue;if(t?.push(c),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${c}`)}return n}var Xt=new Map;function zt(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 ze(n)??ze(`[${n}]`)}function Ar(e){let t=e.roles??{},n=e.shapes??{},r=e.density??{},s={...e.theme?.colors,...e.theme?.extend?.colors},o=[],c=[];for(let[u,d]of Object.entries(t)){if(!bt[u])continue;let f=zt(typeof d==="string"?d:d?.light,s),h=zt(typeof d==="string"?d:d?.dark,s);if(f)o.push(`${Xe(u)}: ${f};`);if(h)c.push(`${Xe(u)}: ${h};`)}for(let[u,d]of Object.entries(n))if(ye[u])o.push(`${an(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Ae[u])o.push(`${Ge(u)}: ${d};`);return[o.length?`:root { ${o.join(" ")} }`:"",c.length?`.dark { ${c.join(" ")} }`:""].filter(Boolean).join(`
|
|
3
|
-
`)}async function Er(e){let{resolveUserCssConfig:t}=await import("./chunk-9th217rf.js"),n=await t(e);return n?Ar(n):""}function Ut(e){let t=_r.resolve(e),n=Xt.get(t);if(!n)n=Er(t).catch(()=>""),Xt.set(t,n);return n}var qt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},Ht={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 Cr(e){return e==="role"||e==="aria-label"||e==="aria-valuetext"||e in qt}function Or(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 Ir(e){if(e===void 0||e===null)return null;for(let t of String(e).trim().toLowerCase().split(/\s+/))if(Ht[t])return Ht[t];return null}function Pr(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:Ir(t)};let r=qt[e];if(!r)return;let s=n.accessibilityState,o=s&&typeof s==="object"?{...s}:{},c=Or(e,t);if(c===void 0)delete o[r];else o[r]=c;return{accessibilityState:Object.keys(o).length?o:null}}function Mr(e){let t=e.accessibilityState&&typeof e.accessibilityState==="object"?e.accessibilityState:void 0,n={};for(let[s,o]of Object.entries(e)){if(!Cr(s))continue;let c=Pr(s,o,n);if(c)Object.assign(n,c)}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 Ue=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function He(e,t){let n={...e};if(Mr(n),t==="Image"&&n.accessibilityLabel===void 0&&e.alt!=null&&e.alt!=="")n.accessibilityLabel=String(e.alt);return Object.fromEntries(Ue.filter((r)=>(r in n)).map((r)=>[r,n[r]]))}var Jt=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],Br=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...Jt]),Dr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},$r={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}},Vr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function ie(e){return e===void 0||e===null?"":String(e).trim().toLowerCase()}function Gt(e){if(e===void 0||e===null||e===!1)return!1;return ie(e)!=="false"}function qe(e,...t){for(let n of t)if(e[n]!==void 0&&e[n]!==null)return e[n];return}function Kt(e,t){if(e!=="TextInput")return{};let n={},r=ie(t.type),s=$r[r]??{},o=ie(qe(t,"inputmode","inputMode")),c=Dr[o]??s.keyboardType;if(c&&c!=="default")n.keyboardType=c;if(s.secure)n.secureTextEntry=!0;let u=ie(qe(t,"enterkeyhint","enterKeyHint")),d=Vr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let f=ie(t.autoCapitalize);if(f==="off"||f==="none")n.autoCapitalize="none";else if(f==="on")n.autoCapitalize="sentences";else if(!f&&s.verbatim)n.autoCapitalize="none";let h=t.autoCorrect;if(h==="off"||h==="false"||ie(t.spellcheck)==="false"||h===void 0&&s.verbatim)n.autoCorrect=!1;else if(h==="on"||h==="true")n.autoCorrect=!0;if(Gt(qe(t,"readonly","readOnly"))||Gt(t.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([g])=>t[g]===void 0||Wr(g,t[g])))}function Wr(e,t){if(e==="autoCapitalize")return t==="off"||t==="on";if(e==="autoCorrect")return typeof t==="string";return!1}function Yt(e){let t=Kt(e.type,e.props);if(!Object.keys(t).length)return;e._textEntrySource=Object.fromEntries(Jt.filter((n)=>(n in e.props)).map((n)=>[n,e.props[n]])),Object.assign(e.props,t)}var we={"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","accept-completion":"onAcceptCompletion",acceptcompletion:"onAcceptCompletion","selection-change":"onSelectionChange",selectionchange:"onSelectionChange","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",dragstart:"onDragStart","drag-start":"onDragStart",dragover:"onDragOver","drag-over":"onDragOver",dragleave:"onDragLeave","drag-leave":"onDragLeave",drop:"onDrop",dragend:"onDragEnd","drag-end":"onDragEnd","hover-change":"onHoverChange",hoverchange:"onHoverChange",keydown:"onKeyPress",keypress:"onKeyPress"};var Ke={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},Ye=new Set(Object.values(Ke));var en=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),tn=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function z(e){let t=typeof e==="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function Z(e){return Math.round(e*1000)/1000}function Qe(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 Fr(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 Qt=/[MLHVCSQTAZ]/i,Je=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function Xr(e){let t=[],n=e,r=Qt.exec(n);while(r){let s=r.index;n=n.slice(s);let o=n[0];n=n.slice(1);let c=Qt.exec(n),u=c?n.slice(0,c.index):n,d;if(o==="A"||o==="a"){d=[];let f=0,h=u.trim(),g=0;while(g<h.length){let y=f%7,m=h.slice(g).replace(/^[\s,]+/,"");if(g=h.length-m.length,!m)break;if(y===3||y===4)d.push(m[0]==="1"?1:0),g+=1;else{Je.lastIndex=0;let x=Je.exec(m);if(!x||x.index!==0)break;d.push(Number.parseFloat(x[0])),g+=x[0].length}f++}}else d=(u.match(Je)||[]).map(Number.parseFloat);t.push({command:o,args:d}),r=c}return t}function zr(e,t,n,r,s,o,c,u,d){if(e===u&&t===d)return[];let f=Math.abs(n),h=Math.abs(r);if(!f||!h)return[1,u,d];let g=s*Math.PI/180,y=Math.cos(g),m=Math.sin(g),x=(e-u)/2,v=(t-d)/2,l=y*x+m*v,b=-m*x+y*v,p=l*l/(f*f)+b*b/(h*h);if(p>1)f*=Math.sqrt(p),h*=Math.sqrt(p);let N=f*f*h*h-f*f*b*b-h*h*l*l,S=f*f*b*b+h*h*l*l,R=Math.sqrt(Math.max(0,N/S));if(o===c)R=-R;let w=R*(f*b)/h,_=R*-(h*l)/f,I=y*w-m*_+(e+u)/2,D=m*w+y*_+(t+d)/2,A=(M,W,P,j)=>{let Y=M*j-W*P<0?-1:1,Q=(M*P+W*j)/(Math.hypot(M,W)*Math.hypot(P,j));return Y*Math.acos(Math.min(1,Math.max(-1,Q)))},V=A(1,0,(l-w)/f,(b-_)/h),E=A((l-w)/f,(b-_)/h,(-l-w)/f,(-b-_)/h);if(!c&&E>0)E-=2*Math.PI;if(c&&E<0)E+=2*Math.PI;let O=Math.max(1,Math.ceil(Math.abs(E)/(Math.PI/2))),B=E/O,k=1.3333333333333333*Math.tan(B/4),T=[],C=(M)=>{let W=f*Math.cos(M),P=h*Math.sin(M);return[y*W-m*P+I,m*W+y*P+D]},L=(M)=>{let W=-f*Math.sin(M),P=h*Math.cos(M);return[y*W-m*P,m*W+y*P]},F=V;for(let M=0;M<O;M++){let W=F+B,[P,j]=C(F),[Y,Q]=L(F),[U,J]=C(W),[ee,q]=L(W);T.push(2,P+k*Y,j+k*Q,U-k*ee,J-k*q,M===O-1?u:U,M===O-1?d:J),F=W}return T}function nn(e){let t=[],n=0,r=0,s=0,o=0,c=0,u=0,d=0,f=0,h="";for(let{command:g,args:y}of Xr(String(e??""))){let m=g===g.toLowerCase(),x=g.toUpperCase(),v=()=>m?n:0,l=()=>m?r:0,b=0,p=(S)=>{if(b+S>y.length)return null;let R=y.slice(b,b+S);return b+=S,R};if(x==="Z"){t.push(4),n=s,r=o,h="Z";continue}let N=!0;while(b<y.length||N&&x==="Z"){switch(x){case"M":{let S=p(2);if(!S)return t;if(n=S[0]+v(),r=S[1]+l(),N)t.push(0,n,r),s=n,o=r;else t.push(1,n,r);h=N?"M":"L";break}case"L":{let S=p(2);if(!S)return t;n=S[0]+v(),r=S[1]+l(),t.push(1,n,r),h="L";break}case"H":{let S=p(1);if(!S)return t;n=S[0]+v(),t.push(1,n,r),h="L";break}case"V":{let S=p(1);if(!S)return t;r=S[0]+l(),t.push(1,n,r),h="L";break}case"C":{let S=p(6);if(!S)return t;let R=S[0]+v(),w=S[1]+l();c=S[2]+v(),u=S[3]+l(),n=S[4]+v(),r=S[5]+l(),t.push(2,R,w,c,u,n,r),h="C";break}case"S":{let S=p(4);if(!S)return t;let R=h==="C"?2*n-c:n,w=h==="C"?2*r-u:r;c=S[0]+v(),u=S[1]+l(),n=S[2]+v(),r=S[3]+l(),t.push(2,R,w,c,u,n,r),h="C";break}case"Q":{let S=p(4);if(!S)return t;d=S[0]+v(),f=S[1]+l(),n=S[2]+v(),r=S[3]+l(),t.push(3,d,f,n,r),h="Q";break}case"T":{let S=p(2);if(!S)return t;d=h==="Q"?2*n-d:n,f=h==="Q"?2*r-f:r,n=S[0]+v(),r=S[1]+l(),t.push(3,d,f,n,r),h="Q";break}case"A":{let S=p(7);if(!S)return t;let R=S[5]+v(),w=S[6]+l();t.push(...zr(n,r,S[0],S[1],S[2],S[3],S[4],R,w)),n=R,r=w,h="A";break}default:return t}N=!1}}return t.map((g)=>Z(g))}function Zt(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(Z)}function Ze(e,t){switch(e){case"Path":return nn(String(t.d??""));case"Line":return[0,z(t.x1),z(t.y1),1,z(t.x2),z(t.y2)].map(Z);case"Rect":{let n=z(t.x),r=z(t.y),s=z(t.width),o=z(t.height);if(s<=0||o<=0)return[];let c=t.rx===void 0?z(t.ry):z(t.rx),u=t.ry===void 0?c:z(t.ry);if(c=Math.min(Math.max(0,c),s/2),u=Math.min(Math.max(0,u),o/2),!c||!u)return[0,n,r,1,n+s,r,1,n+s,r+o,1,n,r+o,4].map(Z);let d=0.5522847498;return[0,n+c,r,1,n+s-c,r,2,n+s-c+d*c,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-c+d*c,r+o,n+s-c,r+o,1,n+c,r+o,2,n+c-d*c,r+o,n,r+o-u+d*u,n,r+o-u,1,n,r+u,2,n,r+u-d*u,n+c-d*c,r,n+c,r,4].map(Z)}case"Circle":return Zt(z(t.cx),z(t.cy),z(t.r),z(t.r));case"Ellipse":return Zt(z(t.cx),z(t.cy),z(t.rx),z(t.ry));case"Polyline":case"Polygon":{let n=Fr(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(Z)}default:return null}}function Ur(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 Hr(e){if(e.attributeName!=="d")return null;let t=Ur(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(nn);if(r.some((u)=>!u.length))return null;let s=String(e.keyTimes??"").split(";").map((u)=>u.trim()).filter(Boolean).map(Number),c=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(Z):r.map((u,d)=>Z(d/(r.length-1)));return{frames:r,frameTimes:c,duration:t}}function et(e){let t=Hr(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 qr=[...tn,"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","objectFit","objectPosition","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","ghostText","rowHeight","labelFontSize","pictureInPicture","transitionID","dragData","dragURL","dropTypes","dropInside","selectTextOnFocus"],rn=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","draggable","dropInside","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"]),Gr=new Map(qr.map((e)=>[sn(e),e]));function sn(e){return e.replace(/[-_]/g,"").toLowerCase()}function tt(e,t){if((t==="Image"||t==="Video")&&e.toLowerCase()==="src")return"source";return Gr.get(sn(e))??e}var Jr={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",webview:"WebView",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 on(e){return Jr[e.toLowerCase()]||e}var Kr={"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"},cn={lucide:Kr,hugeicons:{"workout-run":"figure.run"}};function ce(e,t=!1){let n=String(e??"").trim();if(!n)return{symbol:"questionmark.square.dashed",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,c=Object.hasOwn(cn,s)?cn[s]:void 0;if(c&&Object.hasOwn(c,o))return{symbol:c[o],iconify:`i-${s}-${o}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0};return{symbol:"questionmark.square.dashed",iconify:r?n:`i-lucide-${o}`,known:!1}}function nt(e){return e.split(/\s+/).find((t)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(t))}import{generate as xe,parse as Yr}from"@stacksjs/ts-css/parse";var Qr=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function Zr(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 ln(e,t){let n={},r=new Set,s=(f)=>{if(r.has(f))return;r.add(f),t(f,[...f.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((h)=>h[1]))},o=(f,h,g)=>{if(!h.trim())return;let y=n[f]??={},m=g.dark?"dark":"light";if(g.min===void 0&&g.max===void 0){y[m]=y[m]?`${y[m]};${h}`:h;return}let x=y.responsive??=[],v=g.min??0,l=x.find((b)=>b.min===v&&b.max===g.max);if(!l)x.push(l={min:v,...g.max===void 0?{}:{max:g.max}});l[m]=l[m]?`${l[m]};${h}`:h};function c(f,h){for(let g of f){if(g.type==="Atrule"){let x=g.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(x)){if(x==="layer"&&g.block)c(g.block.children,h);continue}if(x!=="media"||!g.block){s(`@${x}`);continue}let v=g.prelude?xe(g.prelude):"",l=Zr(v);if(l==="skip")continue;if(!l){s(`@media ${v}`);continue}c(g.block.children,{dark:h.dark||l.dark,min:l.min??h.min,max:l.max??h.max});continue}if(g.type!=="Rule"||g.block.type!=="Block")continue;let y=[...g.block.children].filter((x)=>x.type==="Declaration").map((x)=>xe(x)).join(";"),m=g.prelude.type==="SelectorList"?[...g.prelude.children].map(xe):[xe(g.prelude)];for(let x of m){let v=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(x.trim());if(!v){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(x.trim()))s(x.trim());continue}let l=v[2];if(l){if(!Qr.test(l))s(x.trim());continue}let b=h.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(x.trim());o(v[1].slice(1),y,{dark:b,min:h.min,max:h.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(f){u="";let h=f.getAttribute("type");d=!h||h.toLowerCase()==="text/css",f.onEndTag(()=>{if(!d)return;try{let g=Yr(u);if(g.type==="StyleSheet")c(g.children,{})}catch{s("invalid stylesheet")}})},text(f){u+=f.text}}).transform(new Response(e)).text();for(let f of Object.values(n))f.responsive?.sort((h,g)=>h.min-g.min||(h.max??1/0)-(g.max??1/0));return n}import{generate as le,parse as un}from"@stacksjs/ts-css/parse";async function dn(e,t){let n={light:new Map,dark:new Map},r=new Set,s=(g)=>{if(!r.has(g))r.add(g),t(g)},o=(g,y,m)=>{for(let x of m){let v=n[x].get(g);if(!v||Number(y.important)>Number(v.important)||y.important===v.important&&y.specificity>=v.specificity)n[x].set(g,y)}},c=(g)=>{if(g.type==="Declaration")return g.property.startsWith("--");if(g.type==="Rule"||g.type==="Atrule")return!!g.block&&[...g.block.children].some(c);return!1},u=(g)=>{let y=g.replace(/\s+/g,"").toLowerCase();if(!y||y==="all"||y==="screen")return["light","dark"];let m=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(y);return m?[m[1]]:void 0};function d(g,y){for(let m of g){if(!c(m))continue;if(m.type==="Atrule"){let v=m.prelude?le(m.prelude):"",l=m.name.toLowerCase()==="media"?u(v):void 0;if(!l){s(`@${m.name} ${v}`.trim());continue}d(m.block.children,y.filter((b)=>l.includes(b)));continue}if(m.type!=="Rule")continue;let x=m.prelude.type==="SelectorList"?[...m.prelude.children].map(le):[le(m.prelude)];for(let v of x){let l=/^(html|:root)?(?:\.(dark|light))?$/.exec(v.trim());if(!l||!l[1]&&!l[2]){s(v);continue}let b=(l[1]===":root"?10:l[1]?1:0)+(l[2]?10:0);for(let p of m.block.children){if(p.type!=="Declaration"){if(c(p))s(`nested rule in ${v}`);continue}if(!p.property.startsWith("--"))continue;let N={value:le(p.value),important:!!p.important,specificity:b};o(p.property,N,y.filter((S)=>!l[2]||l[2]===S))}}}}let f="",h;return await new HTMLRewriter().on("html",{element(g){let y=g.getAttribute("style");if(!y)return;try{let m=un(y,{context:"declarationList"});if(m.type!=="DeclarationList")return;for(let x of m.children)if(x.type==="Declaration"&&x.property.startsWith("--"))o(x.property,{value:le(x.value),important:!!x.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(g){f="";let y=g.getAttribute("type");h=!y||y.toLowerCase()==="text/css"?u(g.getAttribute("media")??""):void 0,g.onEndTag(()=>{try{let m=un(f);if(m.type!=="StyleSheet")return;if(!h){if([...m.children].some(c))s("style type/media");return}d(m.children,h)}catch{s("invalid stylesheet")}})},text(g){f+=g.text}}).transform(new Response(e)).text(),{light:[...n.light].map(([g,y])=>[g,y.value]),dark:[...n.dark].map(([g,y])=>[g,y.value])}}function K(e,t={},n={},r={},s=[]){return{type:e,props:t,style:n,events:r,children:s}}function fn(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 ei=/^(?: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)$/,pn=new Set(["script","style","head","meta","link","title","base","noscript"]),gn=new Set(["template","body","html","main","fragment"]),Ne=new Set,ti=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onDragEnd","onDragLeave","onDragOver","onDragStart","onDrop","onHoverChange","onKeyPress","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),ke=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","WebView","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...Ye]),ni=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),hn=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),ri={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function ne(e){return e.replace(/&(#x?[0-9a-f]+|\w+);/gi,(t,n)=>{let r=ri[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 rt(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 mn(e,t,n,r={}){let s=r.inheritedVariables,o={},c={},u={},d=[],f="",h={};for(let[x,v]of t){let l=x.toLowerCase();if(l==="class"||l==="classname"){f=f?`${f} ${v}`:v;continue}if(l==="style"){h={...h,...ii(e,v,n,{...r,onVariables(S){s=S,r.onVariables?.(S)}})};continue}if(l.startsWith(":")||l.startsWith("x-")&&l!=="x-cloak"){u[l.startsWith(":")?l.slice(1):l.slice(2)]=ne(v);continue}if(l==="x-cloak")continue;if(l.startsWith("@")||l.startsWith("v-on:")){let S=l.startsWith("@")?l.slice(1):l.slice(5),[R]=S.split("."),w=we[R]??we[R.replaceAll("-","")]??(R.startsWith("on")?R:""),_=w==="onKeyPress"&&S!==R;if(!w||!ti.has(w)||_){if(ei.test(R)||/\./.test(S))n.push({kind:"unread-event",tag:e,name:x});continue}c[w]=ne(v);continue}if(l==="key"){o.key=v;continue}let b=ne(v),p=rt(b);if(p){u[l]=p,d.push(l);continue}let N=tt(x);if(b===""&&rn.has(N)){o[N]=!0;continue}try{o[N]=JSON.parse(b)}catch{o[N]=b}}let g=o["data-native"]?o["data-native"]==="TextInput":e==="textarea"||e==="input"&&!["checkbox","radio","hidden"].includes(String(o.type??"text").toLowerCase()),y=f?Se(f,s,{focus:g,focusWithin:!0,rules:r.rules}):void 0;for(let x of new Set(y?.unknown??[]))n.push({kind:"unknown-class",tag:e,name:x});let m=je({...y?.style,...h});return{props:o,style:m,events:c,bindings:u,classes:f,inline:h,templated:d}}function ii(e,t,n,r){return he(ne(t),(s)=>n.push({...s,tag:e}),r)}function it(e){return e.children.map((t)=>typeof t==="string"?t:it(t)).join("").replace(/\s+/g," ").trim()}function si(e,t){let n=e.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((o)=>typeof o==="string"?K("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()?[K("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=it(n);return n.children=o?[o]:[],n}if(hn.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"?K("Text",{},{},{},[u]):u),n;let c=it(n);return t.push({kind:"flattened-text",tag:e.tag}),n.children=c?[c]:[],n}if(hn.has(n.type)&&r.length>0)n.children=r;return n}async function oi(e,t={}){e=await ue(e);let n=[],r=await dn(e,(l)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:l})),s=ae(r.light).computed(),o=new Set([...e.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((l)=>l[1].split(/\s+/))),c=await ln(e,(l,b)=>{if(!b.length||b.some((p)=>o.has(p)))n.push({kind:"unsupported-style-rule",tag:"style",name:l})}),u=[],d=[],f=new Set;function h(l){let b=d[d.length-1];if(!b)u.push(l);else if(!b.dropped)b.node.children.push(l)}function g(l){let b=l.node.style.fontFamily,p=(S)=>{if(l.tag!=="html"&&l.node._styleSource)S._styleAncestors=[l.node._styleSource,...S._styleAncestors??[]];if(b&&S.style.fontFamily===void 0)S._layoutDefaults={...S._layoutDefaults,fontFamily:b},S.style={fontFamily:b,...S.style}};if(l.node.bindings&&Object.keys(l.node.bindings).length>0){let S=l.node.children,R=S.filter((_)=>typeof _!=="string"),w=R.length===1&&R.length===S.length?R[0]:K("View",{},{},{},S);if(w.bindings={...l.node.bindings,...w.bindings},w.bindingId===void 0&&l.node.bindingId!==void 0)w.bindingId=l.node.bindingId;p(w),h(w);return}let N=d[d.length-1];for(let S of l.node.children){if(typeof S==="string"){if(N&&!N.dropped)N.node.children.push(S);continue}if(p(S),!N)u.push(S);else if(!N.dropped)N.node.children.push(S)}}function y(l,b){let p=d[d.length-1];if(l==="svg"||p?.svg)return m(l,b,p);let N=pn.has(l)&&!Ne.has(l),S=d[d.length-1]?.dropped??!1,R=p?.variables??s,{props:w,style:_,events:I,bindings:D,classes:A,inline:V,templated:E}=N||S?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:mn(l,b,n,{inheritedVariables:R,onVariables:(L)=>{R=L},rules:c});if(l==="html")R=s;let O=w["data-native"],B=l==="template"&&b.some(([L])=>[":for","x-for","@for"].includes(L)),k;if(B)k="View",w["data-stx-native-template"]=!0;else if(typeof O==="string"&&ke.has(O))k=O,delete w["data-native"];else{if(k=Ne.has(l)?"View":on(l),(l==="i"||l==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(A))k="Icon";else if(l==="i"&&b.some(([L])=>/^(?::|x-)class$/i.test(L)))k="Icon";if(l==="input"){let L=String(w.type??"text").toLowerCase();if(L==="checkbox")k="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(L==="hidden")k="View",_.display="none",V.display="none";else if(L==="radio")k="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:l,name:"input:radio"})}}if(!S&&k===l&&!ke.has(k)&&!pn.has(l)&&!gn.has(l)&&!f.has(l))f.add(l),n.push({kind:"unmapped-tag",tag:l});if((N||Ne.has(l))&&!f.has(`drop:${l}`))f.add(`drop:${l}`),n.push({kind:"dropped-subtree",tag:l});if(k==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(A))k="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(k==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(A))k="ScrollView";if(l==="form")w["data-stx-form"]=!0;if(l==="button"&&w.type===void 0)w.type="submit";if(l==="textarea"&&k==="TextInput")w.multiline??=!0;if((k==="Video"||k==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(k==="Icon"){let L=Se(A).icon,F=String(w.symbol||w.name||L||""),M=ce(F,Boolean(w.symbol));if(F.trim()&&!M.known)n.push({kind:"unknown-icon",tag:l,name:F});if(w.symbol=M.symbol,M.iconify)w.iconify=M.iconify}if(k==="FlatList"||k==="SectionList"){let L=new Set([...Object.keys(w),...Object.keys(D)].map((F)=>F.toLowerCase()));for(let[F,M]of ni)if(L.has(F))n.push({kind:"unsupported-list-prop",tag:k,name:M})}let T=K(k,w,_,I);T._inlineStyle=V,T._styleSource=ne(b.find(([L])=>L==="style")?.[1]??"");let C=w["data-stx-b"];if(typeof C==="number"&&Number.isInteger(C))T.bindingId=C;if(delete w["data-stx-b"],A)T._classes=A;if(Object.keys(D).length>0)T.bindings=D;if(E.length>0)T._templated=E;if(typeof w.key==="string")T.key=w.key,delete w.key;return{tag:l,node:T,variables:R,declaredNative:typeof O==="string"&&ke.has(O),dropped:N||S||Ne.has(l)||k==="Video",discard:N||S,unwrap:gn.has(l)&&!B&&k!=="ScrollView"&&!(typeof O==="string"&&ke.has(O))}}function m(l,b,p){let N=p?.dropped??!1,S=Ke[l];if(N||!S){if(!N&&!f.has(`drop:${l}`))f.add(`drop:${l}`),n.push({kind:en.has(l)?"dropped-subtree":"unmapped-tag",tag:l});return{tag:l,node:K("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let R=p?.variables??s,{props:w,style:_,events:I,bindings:D,classes:A,inline:V,templated:E}=mn(l,b,n,{inheritedVariables:R,onVariables:(T)=>{R=T},rules:c});if(S==="Svg"){let T=Qe(w.viewBox);if(T)w.viewBox=T;else delete w.viewBox;for(let C of["width","height"]){if(typeof w[C]==="number"&&_[C]===void 0)_[C]=w[C];delete w[C]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let T=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=T}let O=Ze(S,w);if(O)w.geometry=O;if(S==="Animate")et(w);let B=K(S,w,_,I);B._inlineStyle=V,B._styleSource=ne(b.find(([T])=>T==="style")?.[1]??"");let k=w["data-stx-b"];if(typeof k==="number"&&Number.isInteger(k))B.bindingId=k;if(delete w["data-stx-b"],A)B._classes=A;if(Object.keys(D).length>0)B.bindings=D;if(E.length>0)B._templated=E;if(typeof w.key==="string")B.key=w.key,delete w.key;return{tag:l,node:B,variables:R,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(l){let b=l.tagName.toLowerCase(),p=y(b,[...l.attributes]),N=!0;try{l.onEndTag(()=>{if(d.pop(),p.discard)return;if(p.unwrap)g(p);else h(si(p,n))})}catch{N=!1}if(N)d.push(p);else if(!p.discard)h(p.node)},text(l){let b=d[d.length-1];if(!b||b.dropped)return;let p=ai(ne(l.text),b.inMustache===!0);b.inMustache=p.inside;let N=p.text;if(!N.trim())return;b.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 x=u.length===1?u[0]:K("View",{},{},{},u);if(r.light.length||r.dark.length)x._stylesheetTheme=r;if(Object.keys(c).length)x._stylesheetRules=c;let v=(l)=>{ci(l);let b=He(l.props,l.type);if(Object.keys(b).length)l._accessibilitySource=Object.fromEntries(Ue.filter((p)=>(p in l.props)).map((p)=>[p,l.props[p]])),Object.assign(l.props,b);Yt(l);for(let p of l.children)if(typeof p!=="string")v(p)};return v(x),yn(x),{root:x,diagnostics:n}}function yn(e,t=!1){if(["ScrollView","FlatList","SectionList"].includes(e.type))return!e.props.horizontal&&(Number(e.style.flex)>0||Number(e.style.flexGrow)>0);let n=e.style.flexDirection==="row"||e.style.display==="flex"&&e.style.flexDirection==null;if(!e.children.map((s)=>typeof s==="string"?!1:yn(s,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(t)return!0;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 ai(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 ci(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:rt(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=rt(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=K("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],e.children=[r]}}async function bn(e,t={}){let{root:n,diagnostics:r}=await oi(e,t),s=t.script??{exports:{},functions:[],code:""};return{document:fn(n,s,{source:t.source??"unknown"}),diagnostics:r}}function li(e){let t="",n=0;for(let r=e.indexOf("<");r!==-1;r=e.indexOf("<",r+1)){if(!/[a-z]/i.test(e[r+1]??""))continue;let s=r+1,o="";for(;s<e.length;s++){let u=e[s];if(o){if(u===o)o="";continue}if(u==='"'||u==="'")o=u;else if(u===">"||u==="<")break}if(e[s]!==">"||e[s-1]!=="/")continue;let c=e.slice(r,s+1).replace(/"[^"]*"|'[^']*'/g,'""');if(!/\sdata-native-exclude(?=[\s=/>])/i.test(c))continue;t+=e.slice(n,r),n=s+1,r=s}return n?t+e.slice(n):e}async function ue(e){if(!/\bdata-native-exclude\b/i.test(e))return e;if(e=li(e),!/\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 vn=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,ui=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,di=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,Sn=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function st(e){let t=[];vn.lastIndex=0;for(let o of e.matchAll(vn)){let c=o[1]??"";if(/\bserver\b/.test(c))continue;t.push(o[2].trim())}let n=t.filter(Boolean).join(`
|
|
2
|
+
import"./chunk-94gyfwpz.js";import{Js,Ri,hl}from"./chunk-gb65t4n1.js";import"./chunk-2yxva96k.js";import"./chunk-y8wer7e1.js";import"./chunk-27rzdq3n.js";import"./chunk-kb2xxmxp.js";import"./chunk-h0jnatd4.js";import"./chunk-q14d714d.js";import{ws,a}from"./chunk-2hm4nmt9.js";import"./chunk-w9nwb8r3.js";import"./chunk-605b93pe.js";import"./chunk-epg3gkc6.js";import{bt,Xe,ye,an,Ae,nr,rr,Ge}from"./chunk-ebxmj4q2.js";import{i}from"./chunk-s14v17b5.js";import"./chunk-05taafth.js";import"./chunk-2yexd919.js";import{hs}from"./chunk-3772atqp.js";import"./chunk-8p65gzw0.js";import"./chunk-2gqhfge6.js";import{ht}from"./chunk-59tbk9qj.js";import"./chunk-7sh9fa3q.js";import"./chunk-y38rxnrr.js";import{rs}from"./chunk-z9h2s292.js";import{jr}from"./chunk-kce6pzmj.js";import{Lr,no,ro}from"./chunk-ns1hpm7x.js";import"./chunk-dk53ytvr.js";import"./chunk-qv85c3qy.js";import"./chunk-4dd0yecs.js";import"./chunk-w5hhqjwr.js";import"./chunk-4yhsmwcc.js";import{existsSync as Ce,mkdirSync as ji,readFileSync as Vi}from"fs";import G from"path";import{existsSync as Pn,mkdirSync as Cn,realpathSync as Ei,rmSync as On}from"fs";import H from"path";import oe from"path";var Dn="data-stx-b",gt=new Set(Ri),Ln=new Set(Js);function Ie(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(gt.has(t))return t==="if"?"if":t;if(t==="for"||t==="else"||t==="else-if"||t==="elseif")return"for";if(hl(t))return"event";if(e.startsWith("@"))return"event";return"attr"}if(e.startsWith("x-")){let t=e.split(".")[0];if(!Ln.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 gt.has(n)?n==="if"?"if":n:"attr"}return null}function $n(e){let t=[];for(let[n,r]of e){let s=Ie(n);if(s)t.push({name:n,value:r,kind:s})}return t}var jn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,Oe=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function mt(e){let t=[],n=0;return{html:e.replace(jn,(s,o,c)=>{if(!c||!/[:@]|x-/.test(c))return s;let u=[];Oe.lastIndex=0;for(let y=Oe.exec(c);y;y=Oe.exec(c))u.push([y[1],y[2]??y[3]??y[4]??""]);let d=$n(u);if(!d.length)return s;let f={id:n++,bindings:d};if(d.some((y)=>y.kind==="for"))f.template=!0;t.push(f);let h=s.endsWith("/>");return`${s.slice(0,h?-2:-1).trimEnd()} ${Dn}="${f.id}"${h?"/>":">"}`}),manifest:{entries:t}}}import _r from"path";function fe(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 Pe(e,t){if(!ye[e])return;return fe(t?.get(an(e))??ye[e].value)}function Me(e,t){let n=nr[e];if(!n)return;return fe(t?.get(Ge(n))??Ae[n]?.value)}function Be(e,t){let n=rr[e];if(!n)return;let r=fe(t?.get(Ge(n.size))??Ae[n.size]?.value),s=fe(t?.get(Ge(n.leading))??Ae[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var Vn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},wt=Le({}),yt,vt=null;function pe(){let e=globalThis.__stxNativeStyleConfig;if(!e)return wt;if(e!==yt)yt=e,vt=Le(e);return vt}function xt(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")xt(s,t,`${o}-`)}return t}function Nt(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 Le(e){return{shortcuts:new Map(Object.entries(e.shortcuts??{}).filter(([,t])=>typeof t==="string")),colors:xt(e.colors),fontFamily:new Map(Object.entries(e.fontFamily??{}).map(([t,n])=>[t,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...Vn,...Nt(e.breakpoints)}))}}var De={};function St(e){De=e??{},wt=Le(De)}async function kt(e,t){let n=De;St(e);try{return await t()}finally{St(n)}}function Rt(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:Nt(t.screens)}:{}}}function Tt(e){return pe().shortcuts.get(e)}function _t(e){return pe().colors.get(e)}function $e(e){return pe().breakpoints.get(e)}function ge(e){return pe().fontFamily.get(e)}var Et=/^--[\w\u0080-\uFFFF-]+$/u;function At(e,t){if(!/var\(/i.test(e))return e;let n="",r="",s=!1;for(let o=0;o<e.length;o++){let c=e[o];if(c==="\\"){n+=e.slice(o,o+2),o++;continue}if(r){if(n+=c,c===r)r="";continue}if(c==='"'||c==="'"){r=c,n+=c;continue}if(e.slice(o,o+4).toLowerCase()!=="var("||o>0&&/[\w-]/.test(e[o-1])){n+=c;continue}let u=1,d=-1,f="",h=o+4;for(;h<e.length;h++){let m=e[h];if(m==="\\"){h++;continue}if(f){if(m===f)f="";continue}if(m==='"'||m==="'"){f=m;continue}if(m==="(")u++;if(m===")"&&--u===0)break;if(m===","&&u===1&&d===-1)d=h}if(u!==0)return;let g=e.slice(o+4,d===-1?h:d).trim();if(!Et.test(g))return;let y=t(g,d===-1?void 0:e.slice(d+1,h).trim());if(y===void 0||n.length+y.length>65536)return;n+=y,s=!0,o=h}return s&&n.length>65536?void 0:n}var Wn=new Map;function ae(e,t){let n=new Map,r=new Set;for(let[v,l]of e){let b=v.trim();if(!Et.test(b))continue;if(typeof l==="string"||typeof l==="number"&&Number.isFinite(l))n.set(b,String(l).trim())}let s=new Map,o=new Set;for(let[v,l]of n){let b=new Set,p=(N,S=0)=>S>64?void 0:At(N,(R,w)=>(b.add(R),w===void 0?"":p(w,S+1)));if(p(l)===void 0)o.add(v);s.set(v,b)}let c=new Map,u=new Map,d=[],f=new Set,h=0;function g(v,l=0){if(l>64){o.add(v);return}c.set(v,h),u.set(v,h++),d.push(v),f.add(v);for(let N of s.get(v)??[]){if(!n.has(N))continue;if(!c.has(N)){if(g(N,l+1),u.has(N))u.set(v,Math.min(u.get(v),u.get(N)))}else if(f.has(N))u.set(v,Math.min(u.get(v),c.get(N)))}if(u.get(v)!==c.get(v))return;let b=[],p;do p=d.pop(),f.delete(p),b.push(p);while(p!==v);if(b.length>1||s.get(v)?.has(v))b.forEach((N)=>o.add(N))}for(let v of n.keys())if(!c.has(v))g(v);let y=new Map;function m(v,l){if(r.add(v),y.has(v))return y.get(v);let b=n.get(v),p=b===void 0||/^(?:inherit|unset)$/i.test(b)?t?.get(v):o.has(v)||/^(?:initial|revert|revert-layer)$/i.test(b)?void 0:x(b,l+1);return y.set(v,p),p}function x(v,l=0){if(l>64)return;return At(v,(b,p)=>m(b,l)??(p===void 0?void 0:x(p,l+1)))}return{resolve:x,used:r,computed(){if(!n.size)return t??Wn;let v=new Map(t);for(let l of n.keys())v.set(l,m(l,0));return v}}}function je(e){if(e.display==="flex"&&e.flexDirection==null)return{...e,flexDirection:"row"};return e}var Ct=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","objectPosition","tintColor","transform","overflow","pointerEvents","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Fn=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"]),Ot=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"]),It=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,Xn=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,zn=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),Un=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function Hn(e){if(typeof e!=="string")return e;let t=Xn.exec(e);return t?Number(t[1])*(/^r?em$/i.test(t[2]||"")?16:1):e}function re(e){return typeof e==="number"&&Number.isFinite(e)}function qn(e,t){if(e==="shadowOffset"&&t&&typeof t==="object"&&!Array.isArray(t)){let{width:n,height:r}=t;return re(n)&&re(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(Un.has(s)&&re(o))n.push({[s]:o});else if(zn.has(s)&&typeof o==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(o))n.push({[s]:o});else return}return n}return}function Gn(e){let t=[],n=0,r=0,s="";for(let o=0;o<=e.length;o++){let c=e[o];if(c==="\\"){o++;continue}if(s){if(c===s)s="";continue}if(c==='"'||c==="'"){s=c;continue}if(c==="(")r++;if(c===")")r=Math.max(0,r-1);if(o!==e.length&&(c!==";"||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 Jn(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=Gn(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 he(e,t=()=>{},n={}){let r=Jn(e,t),s=ae(r,n.inheritedVariables);return n.onVariables?.(s.computed()),Kn(r,s,t)}function Kn(e,t,n){let r={},s=[];for(let[o,c]of e){if(o.trim().startsWith("--")){s.push(o.trim());continue}let u=Ct.has(o)||o.trim().startsWith("--")?o:o.trim().toLowerCase().replace(/-([a-z])/g,(h,g)=>g.toUpperCase());if(!Ct.has(u)){n({kind:"unknown-style",name:u});continue}if(c==null||c==="")continue;let d=typeof c==="string"?t.resolve(c.trim()):c;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="pointerEvents"){if(typeof d==="string"&&["auto","none","box-none","box-only"].includes(d))r.pointerEvents=d;else n({kind:"unknown-style",name:`pointerEvents:${String(d)}`});continue}if(u==="objectFit"){let h=typeof d==="string"?d.trim().toLowerCase():"";if(["fill","contain","cover","none","scale-down"].includes(h))r.objectFit=h;else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}if(u==="objectPosition"){let h=typeof d==="string"?d.trim().toLowerCase().replace(/\s+/g," "):"",g=h.split(" ");if(g.length===1)g.push("center");if(["top","bottom"].includes(g[0])||["left","right"].includes(g[1]))g.reverse();let y=(m)=>m.endsWith("%")&&It.test(m.slice(0,-1))&&Number.isFinite(Number(m.slice(0,-1)));if(g.length===2&&(["left","center","right"].includes(g[0])||y(g[0]))&&(["top","center","bottom"].includes(g[1])||y(g[1])))r.objectPosition=h;else n({kind:"unknown-style",name:`objectPosition:${String(d)}`});continue}let f;if(Fn.has(u)||Ot.has(u)){if(f=Hn(d),!re(f)&&!(Ot.has(u)&&typeof f==="string"&&f.endsWith("%")&&It.test(f.slice(0,-1))&&Number.isFinite(Number(f.slice(0,-1)))))f=void 0}else if(u==="display"&&d==="inline-flex")f="flex";else if(u==="shadowOffset"||u==="transform")f=qn(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")f=re(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&re(d))f=String(d);else if(typeof d==="string")f=d;if(f===void 0)n({kind:"non-numeric-style",name:u});else r[u]=f}for(let o of s)if(!t.used.has(o))n({kind:"unknown-style",name:o});return r}var Yn={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"}},Fe={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},Pt={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},Mt={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function te(e){let t=e.lastIndexOf("/");if(t>0&&(!e.endsWith("]")||/\/\[[\d.]+%?\]$/.test(e))){let r=te(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 Qn(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=Yn[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 ze(e){return te(e.trim())}function Qn(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 We(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 X(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 Fe[e]??Me(e)}function ve(e){let t=/^\[(-?\d*\.?\d+)%\]$/.exec(e);if(t)return`${Number.parseFloat(t[1])}%`;return X(e)}var Zn={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),"pointer-events-none":(e,t)=>(t.pointerEvents="none",!0),"pointer-events-auto":(e,t)=>(t.pointerEvents="auto",!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=ge("sans")??"sans-serif",!0),"font-serif":(e,t)=>(t.fontFamily=ge("serif")??"serif",!0),"font-mono":(e,t)=>(t.fontFamily=ge("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 er(e,t){if(!e.startsWith("bg-"))return!1;let n=e.slice(3),r=te(n);if(r)return t.backgroundColor=r,!0;return!1}function Bt(e,t){if(!e.startsWith("text-"))return!1;let n=e.slice(5),r=Be(n);if(r)return Object.assign(t,r),!0;if(Pt[n])return t.fontSize=Pt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(o)){let c=o.endsWith("rem")||o.endsWith("em")?Number.parseFloat(o)*16:Number.parseFloat(o);if(Number.isFinite(c))return t.fontSize=c,!0}}let s=te(n);if(s)return t.color=s,!0;return!1}var tr=new Set(["t","tr","r","br","b","bl","l","tl"]);function ir(e,t){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(e);if(n&&tr.has(n[1]))return t.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(e);if(!r)return!1;let s=te(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 sr(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=te(s);if(o)return t[n]=o,!0}return!1}function or(e,t){if(e.startsWith("p-")){let n=X(e.slice(2));if(n!==void 0)return t.padding=n,!0}if(e.startsWith("px-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingHorizontal=n,!0}if(e.startsWith("py-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingVertical=n,!0}if(e.startsWith("pt-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingTop=n,!0}if(e.startsWith("pr-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingRight=n,!0}if(e.startsWith("pb-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingBottom=n,!0}if(e.startsWith("pl-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingLeft=n,!0}return!1}function jt(e,t){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(e)){let n={};if(!jt(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=X(e.slice(2));if(n!==void 0)return t.margin=n,!0}if(e.startsWith("mx-")){let n=X(e.slice(3));if(n!==void 0)return t.marginHorizontal=n,!0}if(e.startsWith("my-")){let n=X(e.slice(3));if(n!==void 0)return t.marginVertical=n,!0}if(e.startsWith("mt-")){let n=X(e.slice(3));if(n!==void 0)return t.marginTop=n,!0}if(e.startsWith("mr-")){let n=X(e.slice(3));if(n!==void 0)return t.marginRight=n,!0}if(e.startsWith("mb-")){let n=X(e.slice(3));if(n!==void 0)return t.marginBottom=n,!0}if(e.startsWith("ml-")){let n=X(e.slice(3));if(n!==void 0)return t.marginLeft=n,!0}return!1}function ar(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("/"),c=Number.parseInt(s)/Number.parseInt(o)*100;return t.width=`${c}%`,!0}let r=ve(n);if(r!==void 0)return t.width=r,!0;return!1}function cr(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=ve(n);if(r!==void 0)return t.height=r,!0;return!1}function lr(e,t){if(e==="rounded")return t.borderRadius=Mt.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=Mt[r[2]]??Pe(r[2])??We(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 c of r[1]?o[r[1]]:["borderRadius"])t[c]=s;return!0}function ur(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 c={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let u of c[r])t[u]=o;return!0}function dr(e,t){if(!e.startsWith("border-"))return!1;let n=e.slice(7),r=te(n);if(r)return t.borderColor=r,!0;return!1}function fr(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 pr(e,t,n){if(e.startsWith("tracking-[")){let r=We(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},c=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*s:We(r,s):o[r]!==void 0?o[r]*s:Fe[r];if(c===void 0||!Number.isFinite(c))return!1;return t.lineHeight=c,!0}return!1}function gr(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]):Fe[r];if(o===void 0||!Number.isFinite(o))return!1;let c=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]=c;return!0}function hr(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 mr(e,t){if(!e.startsWith("size-"))return!1;let n=e.slice(5),r=n==="full"?"100%":ve(n);if(r===void 0)return!1;return t.width=r,t.height=r,!0}var yr={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function br(e,t){let n=/^(min|max)-(w|h)-(.+)$/.exec(e);if(!n)return!1;let[,r,s,o]=n,c=o==="full"||o==="screen"?"100%":o==="none"?void 0:s==="w"&&r==="max"&&yr[o]||ve(o);if(c===void 0&&o!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(c===void 0)delete t[u];else t[u]=c;return!0}function vr(e,t){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3]==="full"?"100%":X(n[3]);if(r===void 0)return!1;return t[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function Sr(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=X(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let o=n[2]==="x"?"translateX":"translateY",c=o==="translateX"?{translateX:s}:{translateY:s};return t.transform=[...(t.transform??[]).filter((u)=>!(o in u)),c],!0}function wr(e,t){let n=/^space-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=X(n[2]);if(r===void 0)return!1;return t.gap=r,!0}function xr(e,t){if(e.startsWith("gap-")){let n=X(e.slice(4));if(n!==void 0)return t.gap=n,!0}if(e.startsWith("gap-x-")){let n=X(e.slice(6));if(n!==void 0)return t.columnGap=n,!0}if(e.startsWith("gap-y-")){let n=X(e.slice(6));if(n!==void 0)return t.rowGap=n,!0}return!1}function Nr(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,c,u]=r;return Object.assign(t,{shadowColor:"#000000",shadowOpacity:c,shadowRadius:s,shadowOffset:{width:0,height:o},elevation:u}),!0}function kr(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 Vt=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),Rr=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),Dt=/^(?: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 Wt(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 Ft(e,t=new Set){let n=Wt(e),r=n[n.length-1],s=t.has(r)?void 0:Tt(r);if(s===void 0)return[e];let o=n.slice(0,-1).map((u)=>`${u}:`).join(""),c=new Set(t).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>Ft(`${o}${u}`,c))}function Ve(e){if(/^transition(?:-(?:all|colors|opacity|shadow|transform))?$/.test(e))return 150;if(e==="transition-none")return 0;let t=/^duration-(\d+)$/.exec(e);return t?Number(t[1]):void 0}var Lt=new WeakMap,me={};function Se(e,t,n={}){let r=Lt.get(t??me);if(!r)Lt.set(t??me,r=new WeakMap);let s=r.get(n.rules??me);if(!s)r.set(n.rules??me,s=new Map);let o=`${n.focus?1:0}${n.focusWithin?1:0}${n.pointer?1:0}${n.appearance??""}|${e}`,c=s.get(o);if(!c){if(s.size>=4096)s.clear();s.set(o,c=Tr(e,t,n))}return c}function Tr(e,t,n){let r=new Map,s,o,c=(l,b)=>{if(!r.has(l))r.set(l,{...b,classes:[],authored:new Map});return r.get(l)};c("base",{});let u=[],d=[],f=e.split(/\s+/).filter(Boolean);if(n.rules){let l=new Set(f);for(let b of Object.keys(n.rules))if(b.includes(".")&&b.split(".").every((p)=>l.has(p)))d.push(b);d.sort((b,p)=>b.split(".").length-p.split(".").length)}for(let l of f){if(n.rules&&Object.hasOwn(n.rules,l)){u.push(l);continue}for(let b of Ft(l)){let p=Wt(b),N=p.pop(),S=p.some((k)=>k.startsWith("focus"));if(p.some((k)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(k))&&/^(?:ring|outline)(?:-|$)/.test(N))continue;if(n.pointer&&p.length===0&&Ve(N)!==void 0){if(N.startsWith("duration-"))o=Ve(N);else s=Ve(N);continue}let R=p.filter((k)=>k!=="dark"),w=n.pointer&&R.length===1&&p.length-R.length<=1&&(R[0]==="hover"||R[0]==="active")?R[0]:void 0;if(w&&!Dt.test(N)){let k=c(`pointer:${w}`,{pointerState:w}),T=p.includes("dark")?`dark:${N}`:N;if(k.classes.push(T),!k.authored.has(T))k.authored.set(T,l===b?b:`${l} (${b})`);continue}if(Dt.test(N)||!S&&p.some((k)=>Rr.has(k)))continue;let _,I,D=!1,A,V=[];for(let k of p){let T=$e(k),C=k.startsWith("max-")?$e(k.slice(4)):void 0;if(T!==void 0&&_===void 0)_=T;else if(C!==void 0&&I===void 0)I=C-0.02;else if(k==="disabled"&&!D)D=!0;else if(Vt.has(k)&&A===void 0)A=k;else V.push(k)}let E=[...V,N].join(":"),O=_!==void 0||I!==void 0,B=D?c("disabled",{disabled:!0}):A?c(`state:${A}`,{state:A}):O?c(`range:${_??0}:${I??""}`,{min:_??0,max:I}):r.get("base");if((D||A)&&(O||D&&A)){r.get("base").authored.set(b,l),r.get("base").classes.push(b);continue}if(B.classes.push(E),!B.authored.has(E))B.authored.set(E,l===b?b:`${l} (${b})`)}}let h=[...u,...d],g=(l,b)=>b.map((p)=>l.authored.get(p)??p),y=r.get("base"),m=be(y.classes.join(" "),t,n),x=new Map;if(h.length){let l=(N)=>N?he(N,()=>{},{inheritedVariables:t}):{},b={},p={};for(let N of h){let S=n.rules[N];b={...b,...l(S.light)},p={...p,...l(S.dark)};for(let R of S.responsive??[]){let w=`${R.min}:${R.max??""}`,_=x.get(w)??{min:R.min,...R.max===void 0?{}:{max:R.max},style:{}};if(_.style={..._.style,...l(R.light)},R.dark)_.dark={..._.dark,...l(R.dark)};x.set(w,_)}}if(m.style={...b,...m.style},Object.keys(p).length)m.dark={...p,...m.dark}}m.unknown=g(y,m.unknown);let v=[];for(let l of r.values()){if(l===y)continue;let b=be(l.classes.join(" "),t,{appearance:n.appearance});m.unknown=[...new Set([...m.unknown,...g(l,b.unknown)])];let p={style:b.style,...b.dark?{dark:b.dark}:{}};if(l.pointerState)(m.pointer??={})[l.pointerState]=p;else if(l.disabled)m.disabled=p;else if(l.state)(m.states??={})[l.state]=p;else v.push({min:l.min??0,...l.max===void 0?{}:{max:l.max},...p})}for(let l of x.values()){let b=v.find((p)=>p.min===l.min&&p.max===l.max);if(b){if(b.style={...l.style,...b.style},l.dark||b.dark)b.dark={...l.dark,...b.dark}}else v.push(l)}if(v.length)m.responsive=v.sort((l,b)=>l.min-b.min||(l.max??1/0)-(b.max??1/0));if(s!==void 0&&s>0)m.style={...m.style,transitionDuration:o??s};return m}function be(e,t,n={}){let r=[],s=[],o=[],c=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function f(p,N){let S=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(p),R=S&&_t(S[2]);if(S&&R){let A=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(R),V=A?t?.get(A[1])??A[2]:R;if(V&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(V))return[`${S[1]}-[${V.replace(/\s+/g,"")}]${S[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(p),_=w&&bt[w[2]];if(_){let A=t?.get(Xe(w[2]));return[`${w[1]}-${A===void 0?_[N]:`[${A}]`}${w[3]||""}`]}let I=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(p);if(I&&ye[I[2]]){let A=Pe(I[2],t);return A===void 0?void 0:[`rounded-${I[1]?`${I[1]}-`:""}[${A}px]`]}let D=p.startsWith("text-")?p.slice(5):"";if(rr[D]){let A=Be(D,t);return A&&[`text-[${A.fontSize}px]`,`leading-[${A.lineHeight}px]`]}for(let A of Object.keys(nr)){if(!p.endsWith(`-${A}`))continue;let V=Me(A,t);return V===void 0?void 0:[`${p.slice(0,-A.length)}[${V}px]`]}return[p]}function h(p,N){if(!d.has(p))d.set(p,new Set);return d.get(p).add(N),p}let g=[],y=new Map;for(let p of e.split(/\s+/).filter(Boolean)){let N=p.startsWith("dark:")?p.slice(5):p,S=kr(N);if(S!==null){let _=S&&`${p===N?"":"dark:"}${S}`;if(_)g.push(_),y.set(_,p);continue}let R=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(p),w=R?.[2]==="focus"?"focus":"focusWithin";if(R&&n[w]&&!(R[1]&&R[3])){let _=`${R[1]||R[3]?"dark:":""}${R[4]}`,I=u[w];I.classes.push(_),I.originals.set(_,[...I.originals.get(_)??[],p]);continue}if(p.startsWith("dark:")){let _=f(p.slice(5),"dark");if(!_)c.push(p);else s.push(..._.map((I)=>h(I,p)))}else if(!p.includes(":")||p.startsWith("[")){let _=f(p,n.appearance??"light"),I=f(p,"dark");if(!_||!I){c.push(p);continue}if(r.push(..._.map((D)=>h(D,p))),I.join(" ")!==_.join(" "))o.push(...I.map((D)=>h(D,p)))}else c.push(p)}let m=[],x=$t(r,m),v={style:x,unknown:m},l=[...n.appearance===void 0?o:[],...s];if(l.length)v.dark=$t(l,m);if(x.transform&&v.dark?.transform){let p=new Set(v.dark.transform.flatMap((N)=>Object.keys(N)));v.dark.transform=[...x.transform.filter((N)=>!Object.keys(N).some((S)=>p.has(S))),...v.dark.transform]}for(let p of r){if(p==="truncate"||p==="whitespace-nowrap")v.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(p);if(N)v.resizeMode=N[1]==="fill"?"stretch":N[1];let S=/^line-clamp-(\d+)$/.exec(p);if(S)v.numberOfLines=Number(S[1]);if(!v.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(p))v.icon=p}let b=m.flatMap((p)=>[...d.get(p)??[p]]);if(v.unknown=[...new Set([...b.filter((p)=>!/^line-clamp-\d+$/.test(p)),...c])],g.length){let p=be(g.join(" "),t,{appearance:n.appearance});v.divide={style:p.style,...p.dark?{dark:p.dark}:{}},v.unknown=[...new Set([...v.unknown,...p.unknown.map((N)=>y.get(N)??N)])]}for(let p of["focus","focusWithin"]){let N=u[p];if(!N.classes.length)continue;let S=be(N.classes.join(" "),t,{appearance:n.appearance});v[p]={style:S.style,dark:S.dark},v.unknown=[...new Set([...v.unknown,...S.unknown.flatMap((R)=>N.originals.get(R)??[R])])];for(let R of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(R))v.unknown.push(...N.originals.get(R))}return v}function $t(e,t){let n={},r=Array.isArray(e)?e:e.split(/\s+/).filter(Boolean),s={};for(let c of r)if(c.startsWith("text-"))Bt(c,s);let o=typeof s.fontSize==="number"?s.fontSize:16;for(let c of r){if(/^i-[a-z0-9]+-/.test(c))continue;let u=Zn[c];if(u){u("",n);continue}if(Nr(c,n))continue;if(ir(c,n))continue;if(er(c,n))continue;if(sr(c,n))continue;if(Bt(c,n))continue;if(or(c,n))continue;if(jt(c,n))continue;if(ar(c,n))continue;if(cr(c,n))continue;if(lr(c,n))continue;if(ur(c,n))continue;if(dr(c,n))continue;if(fr(c,n))continue;if(xr(c,n))continue;if(pr(c,n,o))continue;if(mr(c,n))continue;if(br(c,n))continue;if(hr(c,n))continue;let d=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(c);if(d&&Number(d[2])>0){n.aspectRatio=Number(d[1])/Number(d[2]);continue}let f=/^z-\[(-?\d+)\]$/.exec(c)??/^z-(\d+)$/.exec(c);if(f){n.zIndex=Number(f[1]);continue}if(c==="z-auto")continue;if(gr(c,n))continue;let h=/^order-\[(-?\d+)\]$/.exec(c)??/^order-(-?\d+)$/.exec(c);if(h){n.order=Number(h[1]);continue}if(vr(c,n))continue;if(Sr(c,n))continue;if(wr(c,n))continue;if(t?.push(c),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${c}`)}return n}var Xt=new Map;function zt(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 ze(n)??ze(`[${n}]`)}function Ar(e){let t=e.roles??{},n=e.shapes??{},r=e.density??{},s={...e.theme?.colors,...e.theme?.extend?.colors},o=[],c=[];for(let[u,d]of Object.entries(t)){if(!bt[u])continue;let f=zt(typeof d==="string"?d:d?.light,s),h=zt(typeof d==="string"?d:d?.dark,s);if(f)o.push(`${Xe(u)}: ${f};`);if(h)c.push(`${Xe(u)}: ${h};`)}for(let[u,d]of Object.entries(n))if(ye[u])o.push(`${an(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Ae[u])o.push(`${Ge(u)}: ${d};`);return[o.length?`:root { ${o.join(" ")} }`:"",c.length?`.dark { ${c.join(" ")} }`:""].filter(Boolean).join(`
|
|
3
|
+
`)}async function Er(e){let{resolveUserCssConfig:t}=await import("./chunk-9pkazxn1.js"),n=await t(e);return n?Ar(n):""}function Ut(e){let t=_r.resolve(e),n=Xt.get(t);if(!n)n=Er(t).catch(()=>""),Xt.set(t,n);return n}var qt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},Ht={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 Cr(e){return e==="role"||e==="aria-label"||e==="aria-valuetext"||e in qt}function Or(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 Ir(e){if(e===void 0||e===null)return null;for(let t of String(e).trim().toLowerCase().split(/\s+/))if(Ht[t])return Ht[t];return null}function Pr(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:Ir(t)};let r=qt[e];if(!r)return;let s=n.accessibilityState,o=s&&typeof s==="object"?{...s}:{},c=Or(e,t);if(c===void 0)delete o[r];else o[r]=c;return{accessibilityState:Object.keys(o).length?o:null}}function Mr(e){let t=e.accessibilityState&&typeof e.accessibilityState==="object"?e.accessibilityState:void 0,n={};for(let[s,o]of Object.entries(e)){if(!Cr(s))continue;let c=Pr(s,o,n);if(c)Object.assign(n,c)}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 Ue=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function He(e,t){let n={...e};if(Mr(n),t==="Image"&&n.accessibilityLabel===void 0&&e.alt!=null&&e.alt!=="")n.accessibilityLabel=String(e.alt);return Object.fromEntries(Ue.filter((r)=>(r in n)).map((r)=>[r,n[r]]))}var Jt=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],Br=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...Jt]),Dr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},$r={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}},Vr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function ie(e){return e===void 0||e===null?"":String(e).trim().toLowerCase()}function Gt(e){if(e===void 0||e===null||e===!1)return!1;return ie(e)!=="false"}function qe(e,...t){for(let n of t)if(e[n]!==void 0&&e[n]!==null)return e[n];return}function Kt(e,t){if(e!=="TextInput")return{};let n={},r=ie(t.type),s=$r[r]??{},o=ie(qe(t,"inputmode","inputMode")),c=Dr[o]??s.keyboardType;if(c&&c!=="default")n.keyboardType=c;if(s.secure)n.secureTextEntry=!0;let u=ie(qe(t,"enterkeyhint","enterKeyHint")),d=Vr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let f=ie(t.autoCapitalize);if(f==="off"||f==="none")n.autoCapitalize="none";else if(f==="on")n.autoCapitalize="sentences";else if(!f&&s.verbatim)n.autoCapitalize="none";let h=t.autoCorrect;if(h==="off"||h==="false"||ie(t.spellcheck)==="false"||h===void 0&&s.verbatim)n.autoCorrect=!1;else if(h==="on"||h==="true")n.autoCorrect=!0;if(Gt(qe(t,"readonly","readOnly"))||Gt(t.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([g])=>t[g]===void 0||Wr(g,t[g])))}function Wr(e,t){if(e==="autoCapitalize")return t==="off"||t==="on";if(e==="autoCorrect")return typeof t==="string";return!1}function Yt(e){let t=Kt(e.type,e.props);if(!Object.keys(t).length)return;e._textEntrySource=Object.fromEntries(Jt.filter((n)=>(n in e.props)).map((n)=>[n,e.props[n]])),Object.assign(e.props,t)}var we={"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","accept-completion":"onAcceptCompletion",acceptcompletion:"onAcceptCompletion","selection-change":"onSelectionChange",selectionchange:"onSelectionChange","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",dragstart:"onDragStart","drag-start":"onDragStart",dragover:"onDragOver","drag-over":"onDragOver",dragleave:"onDragLeave","drag-leave":"onDragLeave",drop:"onDrop",dragend:"onDragEnd","drag-end":"onDragEnd","hover-change":"onHoverChange",hoverchange:"onHoverChange",keydown:"onKeyPress",keypress:"onKeyPress"};var Ke={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},Ye=new Set(Object.values(Ke));var en=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),tn=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function z(e){let t=typeof e==="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function Z(e){return Math.round(e*1000)/1000}function Qe(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 Fr(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 Qt=/[MLHVCSQTAZ]/i,Je=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function Xr(e){let t=[],n=e,r=Qt.exec(n);while(r){let s=r.index;n=n.slice(s);let o=n[0];n=n.slice(1);let c=Qt.exec(n),u=c?n.slice(0,c.index):n,d;if(o==="A"||o==="a"){d=[];let f=0,h=u.trim(),g=0;while(g<h.length){let y=f%7,m=h.slice(g).replace(/^[\s,]+/,"");if(g=h.length-m.length,!m)break;if(y===3||y===4)d.push(m[0]==="1"?1:0),g+=1;else{Je.lastIndex=0;let x=Je.exec(m);if(!x||x.index!==0)break;d.push(Number.parseFloat(x[0])),g+=x[0].length}f++}}else d=(u.match(Je)||[]).map(Number.parseFloat);t.push({command:o,args:d}),r=c}return t}function zr(e,t,n,r,s,o,c,u,d){if(e===u&&t===d)return[];let f=Math.abs(n),h=Math.abs(r);if(!f||!h)return[1,u,d];let g=s*Math.PI/180,y=Math.cos(g),m=Math.sin(g),x=(e-u)/2,v=(t-d)/2,l=y*x+m*v,b=-m*x+y*v,p=l*l/(f*f)+b*b/(h*h);if(p>1)f*=Math.sqrt(p),h*=Math.sqrt(p);let N=f*f*h*h-f*f*b*b-h*h*l*l,S=f*f*b*b+h*h*l*l,R=Math.sqrt(Math.max(0,N/S));if(o===c)R=-R;let w=R*(f*b)/h,_=R*-(h*l)/f,I=y*w-m*_+(e+u)/2,D=m*w+y*_+(t+d)/2,A=(M,W,P,j)=>{let Y=M*j-W*P<0?-1:1,Q=(M*P+W*j)/(Math.hypot(M,W)*Math.hypot(P,j));return Y*Math.acos(Math.min(1,Math.max(-1,Q)))},V=A(1,0,(l-w)/f,(b-_)/h),E=A((l-w)/f,(b-_)/h,(-l-w)/f,(-b-_)/h);if(!c&&E>0)E-=2*Math.PI;if(c&&E<0)E+=2*Math.PI;let O=Math.max(1,Math.ceil(Math.abs(E)/(Math.PI/2))),B=E/O,k=1.3333333333333333*Math.tan(B/4),T=[],C=(M)=>{let W=f*Math.cos(M),P=h*Math.sin(M);return[y*W-m*P+I,m*W+y*P+D]},L=(M)=>{let W=-f*Math.sin(M),P=h*Math.cos(M);return[y*W-m*P,m*W+y*P]},F=V;for(let M=0;M<O;M++){let W=F+B,[P,j]=C(F),[Y,Q]=L(F),[U,J]=C(W),[ee,q]=L(W);T.push(2,P+k*Y,j+k*Q,U-k*ee,J-k*q,M===O-1?u:U,M===O-1?d:J),F=W}return T}function nn(e){let t=[],n=0,r=0,s=0,o=0,c=0,u=0,d=0,f=0,h="";for(let{command:g,args:y}of Xr(String(e??""))){let m=g===g.toLowerCase(),x=g.toUpperCase(),v=()=>m?n:0,l=()=>m?r:0,b=0,p=(S)=>{if(b+S>y.length)return null;let R=y.slice(b,b+S);return b+=S,R};if(x==="Z"){t.push(4),n=s,r=o,h="Z";continue}let N=!0;while(b<y.length||N&&x==="Z"){switch(x){case"M":{let S=p(2);if(!S)return t;if(n=S[0]+v(),r=S[1]+l(),N)t.push(0,n,r),s=n,o=r;else t.push(1,n,r);h=N?"M":"L";break}case"L":{let S=p(2);if(!S)return t;n=S[0]+v(),r=S[1]+l(),t.push(1,n,r),h="L";break}case"H":{let S=p(1);if(!S)return t;n=S[0]+v(),t.push(1,n,r),h="L";break}case"V":{let S=p(1);if(!S)return t;r=S[0]+l(),t.push(1,n,r),h="L";break}case"C":{let S=p(6);if(!S)return t;let R=S[0]+v(),w=S[1]+l();c=S[2]+v(),u=S[3]+l(),n=S[4]+v(),r=S[5]+l(),t.push(2,R,w,c,u,n,r),h="C";break}case"S":{let S=p(4);if(!S)return t;let R=h==="C"?2*n-c:n,w=h==="C"?2*r-u:r;c=S[0]+v(),u=S[1]+l(),n=S[2]+v(),r=S[3]+l(),t.push(2,R,w,c,u,n,r),h="C";break}case"Q":{let S=p(4);if(!S)return t;d=S[0]+v(),f=S[1]+l(),n=S[2]+v(),r=S[3]+l(),t.push(3,d,f,n,r),h="Q";break}case"T":{let S=p(2);if(!S)return t;d=h==="Q"?2*n-d:n,f=h==="Q"?2*r-f:r,n=S[0]+v(),r=S[1]+l(),t.push(3,d,f,n,r),h="Q";break}case"A":{let S=p(7);if(!S)return t;let R=S[5]+v(),w=S[6]+l();t.push(...zr(n,r,S[0],S[1],S[2],S[3],S[4],R,w)),n=R,r=w,h="A";break}default:return t}N=!1}}return t.map((g)=>Z(g))}function Zt(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(Z)}function Ze(e,t){switch(e){case"Path":return nn(String(t.d??""));case"Line":return[0,z(t.x1),z(t.y1),1,z(t.x2),z(t.y2)].map(Z);case"Rect":{let n=z(t.x),r=z(t.y),s=z(t.width),o=z(t.height);if(s<=0||o<=0)return[];let c=t.rx===void 0?z(t.ry):z(t.rx),u=t.ry===void 0?c:z(t.ry);if(c=Math.min(Math.max(0,c),s/2),u=Math.min(Math.max(0,u),o/2),!c||!u)return[0,n,r,1,n+s,r,1,n+s,r+o,1,n,r+o,4].map(Z);let d=0.5522847498;return[0,n+c,r,1,n+s-c,r,2,n+s-c+d*c,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-c+d*c,r+o,n+s-c,r+o,1,n+c,r+o,2,n+c-d*c,r+o,n,r+o-u+d*u,n,r+o-u,1,n,r+u,2,n,r+u-d*u,n+c-d*c,r,n+c,r,4].map(Z)}case"Circle":return Zt(z(t.cx),z(t.cy),z(t.r),z(t.r));case"Ellipse":return Zt(z(t.cx),z(t.cy),z(t.rx),z(t.ry));case"Polyline":case"Polygon":{let n=Fr(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(Z)}default:return null}}function Ur(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 Hr(e){if(e.attributeName!=="d")return null;let t=Ur(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(nn);if(r.some((u)=>!u.length))return null;let s=String(e.keyTimes??"").split(";").map((u)=>u.trim()).filter(Boolean).map(Number),c=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(Z):r.map((u,d)=>Z(d/(r.length-1)));return{frames:r,frameTimes:c,duration:t}}function et(e){let t=Hr(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 qr=[...tn,"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","objectFit","objectPosition","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","ghostText","rowHeight","labelFontSize","pictureInPicture","transitionID","dragData","dragURL","dropTypes","dropInside","selectTextOnFocus"],rn=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","draggable","dropInside","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"]),Gr=new Map(qr.map((e)=>[sn(e),e]));function sn(e){return e.replace(/[-_]/g,"").toLowerCase()}function tt(e,t){if((t==="Image"||t==="Video")&&e.toLowerCase()==="src")return"source";return Gr.get(sn(e))??e}var Jr={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",webview:"WebView",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 on(e){return Jr[e.toLowerCase()]||e}var Kr={"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"},cn={lucide:Kr,hugeicons:{"workout-run":"figure.run"}};function ce(e,t=!1){let n=String(e??"").trim();if(!n)return{symbol:"questionmark.square.dashed",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,c=Object.hasOwn(cn,s)?cn[s]:void 0;if(c&&Object.hasOwn(c,o))return{symbol:c[o],iconify:`i-${s}-${o}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0};return{symbol:"questionmark.square.dashed",iconify:r?n:`i-lucide-${o}`,known:!1}}function nt(e){return e.split(/\s+/).find((t)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(t))}import{generate as xe,parse as Yr}from"@stacksjs/ts-css/parse";var Qr=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function Zr(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 ln(e,t){let n={},r=new Set,s=(f)=>{if(r.has(f))return;r.add(f),t(f,[...f.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((h)=>h[1]))},o=(f,h,g)=>{if(!h.trim())return;let y=n[f]??={},m=g.dark?"dark":"light";if(g.min===void 0&&g.max===void 0){y[m]=y[m]?`${y[m]};${h}`:h;return}let x=y.responsive??=[],v=g.min??0,l=x.find((b)=>b.min===v&&b.max===g.max);if(!l)x.push(l={min:v,...g.max===void 0?{}:{max:g.max}});l[m]=l[m]?`${l[m]};${h}`:h};function c(f,h){for(let g of f){if(g.type==="Atrule"){let x=g.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(x)){if(x==="layer"&&g.block)c(g.block.children,h);continue}if(x!=="media"||!g.block){s(`@${x}`);continue}let v=g.prelude?xe(g.prelude):"",l=Zr(v);if(l==="skip")continue;if(!l){s(`@media ${v}`);continue}c(g.block.children,{dark:h.dark||l.dark,min:l.min??h.min,max:l.max??h.max});continue}if(g.type!=="Rule"||g.block.type!=="Block")continue;let y=[...g.block.children].filter((x)=>x.type==="Declaration").map((x)=>xe(x)).join(";"),m=g.prelude.type==="SelectorList"?[...g.prelude.children].map(xe):[xe(g.prelude)];for(let x of m){let v=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(x.trim());if(!v){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(x.trim()))s(x.trim());continue}let l=v[2];if(l){if(!Qr.test(l))s(x.trim());continue}let b=h.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(x.trim());o(v[1].slice(1),y,{dark:b,min:h.min,max:h.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(f){u="";let h=f.getAttribute("type");d=!h||h.toLowerCase()==="text/css",f.onEndTag(()=>{if(!d)return;try{let g=Yr(u);if(g.type==="StyleSheet")c(g.children,{})}catch{s("invalid stylesheet")}})},text(f){u+=f.text}}).transform(new Response(e)).text();for(let f of Object.values(n))f.responsive?.sort((h,g)=>h.min-g.min||(h.max??1/0)-(g.max??1/0));return n}import{generate as le,parse as un}from"@stacksjs/ts-css/parse";async function dn(e,t){let n={light:new Map,dark:new Map},r=new Set,s=(g)=>{if(!r.has(g))r.add(g),t(g)},o=(g,y,m)=>{for(let x of m){let v=n[x].get(g);if(!v||Number(y.important)>Number(v.important)||y.important===v.important&&y.specificity>=v.specificity)n[x].set(g,y)}},c=(g)=>{if(g.type==="Declaration")return g.property.startsWith("--");if(g.type==="Rule"||g.type==="Atrule")return!!g.block&&[...g.block.children].some(c);return!1},u=(g)=>{let y=g.replace(/\s+/g,"").toLowerCase();if(!y||y==="all"||y==="screen")return["light","dark"];let m=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(y);return m?[m[1]]:void 0};function d(g,y){for(let m of g){if(!c(m))continue;if(m.type==="Atrule"){let v=m.prelude?le(m.prelude):"",l=m.name.toLowerCase()==="media"?u(v):void 0;if(!l){s(`@${m.name} ${v}`.trim());continue}d(m.block.children,y.filter((b)=>l.includes(b)));continue}if(m.type!=="Rule")continue;let x=m.prelude.type==="SelectorList"?[...m.prelude.children].map(le):[le(m.prelude)];for(let v of x){let l=/^(html|:root)?(?:\.(dark|light))?$/.exec(v.trim());if(!l||!l[1]&&!l[2]){s(v);continue}let b=(l[1]===":root"?10:l[1]?1:0)+(l[2]?10:0);for(let p of m.block.children){if(p.type!=="Declaration"){if(c(p))s(`nested rule in ${v}`);continue}if(!p.property.startsWith("--"))continue;let N={value:le(p.value),important:!!p.important,specificity:b};o(p.property,N,y.filter((S)=>!l[2]||l[2]===S))}}}}let f="",h;return await new HTMLRewriter().on("html",{element(g){let y=g.getAttribute("style");if(!y)return;try{let m=un(y,{context:"declarationList"});if(m.type!=="DeclarationList")return;for(let x of m.children)if(x.type==="Declaration"&&x.property.startsWith("--"))o(x.property,{value:le(x.value),important:!!x.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(g){f="";let y=g.getAttribute("type");h=!y||y.toLowerCase()==="text/css"?u(g.getAttribute("media")??""):void 0,g.onEndTag(()=>{try{let m=un(f);if(m.type!=="StyleSheet")return;if(!h){if([...m.children].some(c))s("style type/media");return}d(m.children,h)}catch{s("invalid stylesheet")}})},text(g){f+=g.text}}).transform(new Response(e)).text(),{light:[...n.light].map(([g,y])=>[g,y.value]),dark:[...n.dark].map(([g,y])=>[g,y.value])}}function K(e,t={},n={},r={},s=[]){return{type:e,props:t,style:n,events:r,children:s}}function fn(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 ei=/^(?: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)$/,pn=new Set(["script","style","head","meta","link","title","base","noscript"]),gn=new Set(["template","body","html","main","fragment"]),Ne=new Set,ti=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onDragEnd","onDragLeave","onDragOver","onDragStart","onDrop","onHoverChange","onKeyPress","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),ke=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","WebView","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...Ye]),ni=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),hn=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),ri={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function ne(e){return e.replace(/&(#x?[0-9a-f]+|\w+);/gi,(t,n)=>{let r=ri[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 rt(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 mn(e,t,n,r={}){let s=r.inheritedVariables,o={},c={},u={},d=[],f="",h={};for(let[x,v]of t){let l=x.toLowerCase();if(l==="class"||l==="classname"){f=f?`${f} ${v}`:v;continue}if(l==="style"){h={...h,...ii(e,v,n,{...r,onVariables(S){s=S,r.onVariables?.(S)}})};continue}if(l.startsWith(":")||l.startsWith("x-")&&l!=="x-cloak"){u[l.startsWith(":")?l.slice(1):l.slice(2)]=ne(v);continue}if(l==="x-cloak")continue;if(l.startsWith("@")||l.startsWith("v-on:")){let S=l.startsWith("@")?l.slice(1):l.slice(5),[R]=S.split("."),w=we[R]??we[R.replaceAll("-","")]??(R.startsWith("on")?R:""),_=w==="onKeyPress"&&S!==R;if(!w||!ti.has(w)||_){if(ei.test(R)||/\./.test(S))n.push({kind:"unread-event",tag:e,name:x});continue}c[w]=ne(v);continue}if(l==="key"){o.key=v;continue}let b=ne(v),p=rt(b);if(p){u[l]=p,d.push(l);continue}let N=tt(x);if(b===""&&rn.has(N)){o[N]=!0;continue}try{o[N]=JSON.parse(b)}catch{o[N]=b}}let g=o["data-native"]?o["data-native"]==="TextInput":e==="textarea"||e==="input"&&!["checkbox","radio","hidden"].includes(String(o.type??"text").toLowerCase()),y=f?Se(f,s,{focus:g,focusWithin:!0,rules:r.rules}):void 0;for(let x of new Set(y?.unknown??[]))n.push({kind:"unknown-class",tag:e,name:x});let m=je({...y?.style,...h});return{props:o,style:m,events:c,bindings:u,classes:f,inline:h,templated:d}}function ii(e,t,n,r){return he(ne(t),(s)=>n.push({...s,tag:e}),r)}function it(e){return e.children.map((t)=>typeof t==="string"?t:it(t)).join("").replace(/\s+/g," ").trim()}function si(e,t){let n=e.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((o)=>typeof o==="string"?K("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()?[K("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=it(n);return n.children=o?[o]:[],n}if(hn.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"?K("Text",{},{},{},[u]):u),n;let c=it(n);return t.push({kind:"flattened-text",tag:e.tag}),n.children=c?[c]:[],n}if(hn.has(n.type)&&r.length>0)n.children=r;return n}async function oi(e,t={}){e=await ue(e);let n=[],r=await dn(e,(l)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:l})),s=ae(r.light).computed(),o=new Set([...e.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((l)=>l[1].split(/\s+/))),c=await ln(e,(l,b)=>{if(!b.length||b.some((p)=>o.has(p)))n.push({kind:"unsupported-style-rule",tag:"style",name:l})}),u=[],d=[],f=new Set;function h(l){let b=d[d.length-1];if(!b)u.push(l);else if(!b.dropped)b.node.children.push(l)}function g(l){let b=l.node.style.fontFamily,p=(S)=>{if(l.tag!=="html"&&l.node._styleSource)S._styleAncestors=[l.node._styleSource,...S._styleAncestors??[]];if(b&&S.style.fontFamily===void 0)S._layoutDefaults={...S._layoutDefaults,fontFamily:b},S.style={fontFamily:b,...S.style}};if(l.node.bindings&&Object.keys(l.node.bindings).length>0){let S=l.node.children,R=S.filter((_)=>typeof _!=="string"),w=R.length===1&&R.length===S.length?R[0]:K("View",{},{},{},S);if(w.bindings={...l.node.bindings,...w.bindings},w.bindingId===void 0&&l.node.bindingId!==void 0)w.bindingId=l.node.bindingId;p(w),h(w);return}let N=d[d.length-1];for(let S of l.node.children){if(typeof S==="string"){if(N&&!N.dropped)N.node.children.push(S);continue}if(p(S),!N)u.push(S);else if(!N.dropped)N.node.children.push(S)}}function y(l,b){let p=d[d.length-1];if(l==="svg"||p?.svg)return m(l,b,p);let N=pn.has(l)&&!Ne.has(l),S=d[d.length-1]?.dropped??!1,R=p?.variables??s,{props:w,style:_,events:I,bindings:D,classes:A,inline:V,templated:E}=N||S?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:mn(l,b,n,{inheritedVariables:R,onVariables:(L)=>{R=L},rules:c});if(l==="html")R=s;let O=w["data-native"],B=l==="template"&&b.some(([L])=>[":for","x-for","@for"].includes(L)),k;if(B)k="View",w["data-stx-native-template"]=!0;else if(typeof O==="string"&&ke.has(O))k=O,delete w["data-native"];else{if(k=Ne.has(l)?"View":on(l),(l==="i"||l==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(A))k="Icon";else if(l==="i"&&b.some(([L])=>/^(?::|x-)class$/i.test(L)))k="Icon";if(l==="input"){let L=String(w.type??"text").toLowerCase();if(L==="checkbox")k="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(L==="hidden")k="View",_.display="none",V.display="none";else if(L==="radio")k="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:l,name:"input:radio"})}}if(!S&&k===l&&!ke.has(k)&&!pn.has(l)&&!gn.has(l)&&!f.has(l))f.add(l),n.push({kind:"unmapped-tag",tag:l});if((N||Ne.has(l))&&!f.has(`drop:${l}`))f.add(`drop:${l}`),n.push({kind:"dropped-subtree",tag:l});if(k==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(A))k="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(k==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(A))k="ScrollView";if(l==="form")w["data-stx-form"]=!0;if(l==="button"&&w.type===void 0)w.type="submit";if(l==="textarea"&&k==="TextInput")w.multiline??=!0;if((k==="Video"||k==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(k==="Icon"){let L=Se(A).icon,F=String(w.symbol||w.name||L||""),M=ce(F,Boolean(w.symbol));if(F.trim()&&!M.known)n.push({kind:"unknown-icon",tag:l,name:F});if(w.symbol=M.symbol,M.iconify)w.iconify=M.iconify}if(k==="FlatList"||k==="SectionList"){let L=new Set([...Object.keys(w),...Object.keys(D)].map((F)=>F.toLowerCase()));for(let[F,M]of ni)if(L.has(F))n.push({kind:"unsupported-list-prop",tag:k,name:M})}let T=K(k,w,_,I);T._inlineStyle=V,T._styleSource=ne(b.find(([L])=>L==="style")?.[1]??"");let C=w["data-stx-b"];if(typeof C==="number"&&Number.isInteger(C))T.bindingId=C;if(delete w["data-stx-b"],A)T._classes=A;if(Object.keys(D).length>0)T.bindings=D;if(E.length>0)T._templated=E;if(typeof w.key==="string")T.key=w.key,delete w.key;return{tag:l,node:T,variables:R,declaredNative:typeof O==="string"&&ke.has(O),dropped:N||S||Ne.has(l)||k==="Video",discard:N||S,unwrap:gn.has(l)&&!B&&k!=="ScrollView"&&!(typeof O==="string"&&ke.has(O))}}function m(l,b,p){let N=p?.dropped??!1,S=Ke[l];if(N||!S){if(!N&&!f.has(`drop:${l}`))f.add(`drop:${l}`),n.push({kind:en.has(l)?"dropped-subtree":"unmapped-tag",tag:l});return{tag:l,node:K("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let R=p?.variables??s,{props:w,style:_,events:I,bindings:D,classes:A,inline:V,templated:E}=mn(l,b,n,{inheritedVariables:R,onVariables:(T)=>{R=T},rules:c});if(S==="Svg"){let T=Qe(w.viewBox);if(T)w.viewBox=T;else delete w.viewBox;for(let C of["width","height"]){if(typeof w[C]==="number"&&_[C]===void 0)_[C]=w[C];delete w[C]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let T=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=T}let O=Ze(S,w);if(O)w.geometry=O;if(S==="Animate")et(w);let B=K(S,w,_,I);B._inlineStyle=V,B._styleSource=ne(b.find(([T])=>T==="style")?.[1]??"");let k=w["data-stx-b"];if(typeof k==="number"&&Number.isInteger(k))B.bindingId=k;if(delete w["data-stx-b"],A)B._classes=A;if(Object.keys(D).length>0)B.bindings=D;if(E.length>0)B._templated=E;if(typeof w.key==="string")B.key=w.key,delete w.key;return{tag:l,node:B,variables:R,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(l){let b=l.tagName.toLowerCase(),p=y(b,[...l.attributes]),N=!0;try{l.onEndTag(()=>{if(d.pop(),p.discard)return;if(p.unwrap)g(p);else h(si(p,n))})}catch{N=!1}if(N)d.push(p);else if(!p.discard)h(p.node)},text(l){let b=d[d.length-1];if(!b||b.dropped)return;let p=ai(ne(l.text),b.inMustache===!0);b.inMustache=p.inside;let N=p.text;if(!N.trim())return;b.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 x=u.length===1?u[0]:K("View",{},{},{},u);if(r.light.length||r.dark.length)x._stylesheetTheme=r;if(Object.keys(c).length)x._stylesheetRules=c;let v=(l)=>{ci(l);let b=He(l.props,l.type);if(Object.keys(b).length)l._accessibilitySource=Object.fromEntries(Ue.filter((p)=>(p in l.props)).map((p)=>[p,l.props[p]])),Object.assign(l.props,b);Yt(l);for(let p of l.children)if(typeof p!=="string")v(p)};return v(x),yn(x),{root:x,diagnostics:n}}function yn(e,t=!1){if(["ScrollView","FlatList","SectionList"].includes(e.type))return!e.props.horizontal&&(Number(e.style.flex)>0||Number(e.style.flexGrow)>0);let n=e.style.flexDirection==="row"||e.style.display==="flex"&&e.style.flexDirection==null;if(!e.children.map((s)=>typeof s==="string"?!1:yn(s,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(t)return!0;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 ai(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 ci(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:rt(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=rt(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=K("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],e.children=[r]}}async function bn(e,t={}){let{root:n,diagnostics:r}=await oi(e,t),s=t.script??{exports:{},functions:[],code:""};return{document:fn(n,s,{source:t.source??"unknown"}),diagnostics:r}}function li(e){let t="",n=0;for(let r=e.indexOf("<");r!==-1;r=e.indexOf("<",r+1)){if(!/[a-z]/i.test(e[r+1]??""))continue;let s=r+1,o="";for(;s<e.length;s++){let u=e[s];if(o){if(u===o)o="";continue}if(u==='"'||u==="'")o=u;else if(u===">"||u==="<")break}if(e[s]!==">"||e[s-1]!=="/")continue;let c=e.slice(r,s+1).replace(/"[^"]*"|'[^']*'/g,'""');if(!/\sdata-native-exclude(?=[\s=/>])/i.test(c))continue;t+=e.slice(n,r),n=s+1,r=s}return n?t+e.slice(n):e}async function ue(e){if(!/\bdata-native-exclude\b/i.test(e))return e;if(e=li(e),!/\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 vn=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,ui=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,di=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,Sn=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function st(e){let t=[];vn.lastIndex=0;for(let o of e.matchAll(vn)){let c=o[1]??"";if(/\bserver\b/.test(c))continue;t.push(o[2].trim())}let n=t.filter(Boolean).join(`
|
|
4
4
|
|
|
5
5
|
`),r=[];for(let o of[ui,di]){o.lastIndex=0;for(let c of n.matchAll(o))if(!r.includes(c[1]))r.push(c[1])}let s={};Sn.lastIndex=0;for(let o of n.matchAll(Sn)){let c=o[2];try{s[o[1]]=JSON.parse(c.replace(/^'(.*)'$/,'"$1"'))}catch{s[o[1]]=c}}return{exports:s,functions:r,code:n}}var se="[data-native-chrome]";function fi(e){let t=(e??"").trim().toLowerCase();return t==="tabs"||t==="bar"?t:""}function wn(e,t){let n=ce(e);if(!n.known&&/^i-|:/.test(e))t?.(e);return n.known||/^i-|:/.test(e)?n.symbol:e}function pi(e){let t=(e??"").trim();if(!t.startsWith("/")||t.startsWith("//"))return null;return t}function xn(e){return e.replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�?39;/g,"'").replace(/\s+/g," ").trim()}async function Nn(e,t){if(!/\bdata-native-chrome\b/i.test(e))return{html:e,chrome:null};let n=[],r=[],s=new Set,o=[],c=[],u=null,d=null,f=!1;if(await new HTMLRewriter().on(se,{element(y){f=!0;let m=y.getAttribute("data-stx-scope");if(m)s.add(m);n.push(fi(y.getAttribute("data-native-chrome"))),y.onEndTag(()=>{n.pop()})}}).on("[data-stx-component-wrapper]",{element(y){let m={scope:y.getAttribute("data-stx-scope")??"",children:0,chrome:0};o.push(m),y.onEndTag(()=>{if(o.pop(),m.scope&&m.children>0&&m.chrome===m.children)s.add(m.scope)})}}).on("[data-stx-component-wrapper] > *",{element(y){let m=o[o.length-1];if(!m)return;if(m.children++,y.hasAttribute("data-native-chrome"))m.chrome++}}).on(`${se} [data-stx-scope]`,{element(y){let m=y.getAttribute("data-stx-scope");if(m)s.add(m)}}).on(`${se} script[data-stx-component-factories]`,{element(y){let m=[...y.attributes].map(([x,v])=>v===""?x:`${x}="${v.replace(/"/g,""")}"`).join(" ");u="",y.onEndTag(()=>{c.push(`<script ${m}>${u}</script>`),u=null})},text(y){if(u!==null)u+=y.text}}).on(`${se} a`,{element(y){let m=pi(y.getAttribute("href")),x=n[n.length-1]??"";if(!m||!x)return;let v=y.getAttribute("data-native-icon")||nt(y.getAttribute("class")??""),l={path:m,title:"",region:x,label:y.getAttribute("aria-label")||y.getAttribute("title")||"",...v?{symbol:wn(v,t)}:{}};d=l,y.onEndTag(()=>{if(l.title=xn(l.title)||xn(l.label),r.push(l),d===l)d=null})},text(y){if(d)d.title+=y.text}}).on(`${se} a *`,{element(y){if(!d||d.symbol)return;let m=y.getAttribute("data-native-icon")||nt(y.getAttribute("class")??"");if(m)d.symbol=wn(m,t)}}).transform(new Response(e)).text(),!f)return{html:e,chrome:null};let h=await new HTMLRewriter().on(se,{element(y){y.remove()}}).on("script[data-stx-owner]",{element(y){if(s.has(y.getAttribute("data-stx-owner")??""))y.remove()}}).transform(new Response(e)).text(),g=(y)=>r.filter((m)=>m.region===y).map(({path:m,title:x,symbol:v})=>({path:m,title:x,...v?{symbol:v}:{}}));return{html:c.join(`
|
|
6
|
-
`)+h,chrome:{tabs:g("tabs"),bar:g("bar")}}}var Re=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,kn=/function\s+(__stx_setup_[\w$]+)\s*\(/,gi=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function ot(e){Re.lastIndex=0;for(let t of e.matchAll(Re)){let n=t[2].trim(),r=kn.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function Rn(e){let t=[];Re.lastIndex=0;for(let n of e.matchAll(Re)){let r=n[1],s=n[2].trim(),o=gi.exec(r)?.[1],c=/\bdata-stx-component-factories\b/i.test(r);if(!s||!o&&!c&&!kn.test(s))continue;t.push(o?{code:s,owner:o}:{code:s})}return t}async function hi(e,t,n={}){e=await ue(e);let r=n.root??oe.dirname(t),s=await a(r),o=typeof s.root==="string"&&s.root?oe.resolve(r,s.root):r,c=(E,O)=>E?oe.isAbsolute(E)?E:oe.resolve(o,E):oe.join(o,O),u={root:r,layoutsDir:c(s.layoutsDir,"layouts"),partialsDir:c(s.partialsDir,"partials"),storesDir:c(s.storesDir,"stores"),componentsDir:n.componentsDir??(s.componentsDir?c(s.componentsDir,"components"):oe.join(o,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[ws()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Image","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},f=new Set([t]),h=await i(e,d,t,u,f),g=[],{html:y,chrome:m}=await Nn(await ue(h),(E)=>{g.push({kind:"unknown-icon",tag:"data-native-chrome",name:E})}),{html:x,manifest:v}=mt(await ue(y)),l=await Ut(r),{document:b,diagnostics:p}=await bn(l?`<style>${l}</style>${x}`:x,{source:t,script:st(e)});p.unshift(...g),mi(b.root,v);let N=d.__stx_runtime_head;if(typeof N?.title==="string"&&N.title.trim())b.title=N.title.trim();if(m)b.chrome=m;let S=ot(x),R=Rn(x);if(st(e).code.trim()){let E=await hs(e,t,n.context,{forceClientSetup:!0}),O=ot(E.setupCode??"");if(S=O??S,O&&!R.some((B)=>B.code===O.code))R.push({code:O.code})}let{buildModuleRegistryScript:w,registeredModuleIdsIn:_,registeredModuleNamesIn:I}=await import("./chunk-
|
|
6
|
+
`)+h,chrome:{tabs:g("tabs"),bar:g("bar")}}}var Re=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,kn=/function\s+(__stx_setup_[\w$]+)\s*\(/,gi=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function ot(e){Re.lastIndex=0;for(let t of e.matchAll(Re)){let n=t[2].trim(),r=kn.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function Rn(e){let t=[];Re.lastIndex=0;for(let n of e.matchAll(Re)){let r=n[1],s=n[2].trim(),o=gi.exec(r)?.[1],c=/\bdata-stx-component-factories\b/i.test(r);if(!s||!o&&!c&&!kn.test(s))continue;t.push(o?{code:s,owner:o}:{code:s})}return t}async function hi(e,t,n={}){e=await ue(e);let r=n.root??oe.dirname(t),s=await a(r),o=typeof s.root==="string"&&s.root?oe.resolve(r,s.root):r,c=(E,O)=>E?oe.isAbsolute(E)?E:oe.resolve(o,E):oe.join(o,O),u={root:r,layoutsDir:c(s.layoutsDir,"layouts"),partialsDir:c(s.partialsDir,"partials"),storesDir:c(s.storesDir,"stores"),componentsDir:n.componentsDir??(s.componentsDir?c(s.componentsDir,"components"):oe.join(o,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[ws()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Image","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},f=new Set([t]),h=await i(e,d,t,u,f),g=[],{html:y,chrome:m}=await Nn(await ue(h),(E)=>{g.push({kind:"unknown-icon",tag:"data-native-chrome",name:E})}),{html:x,manifest:v}=mt(await ue(y)),l=await Ut(r),{document:b,diagnostics:p}=await bn(l?`<style>${l}</style>${x}`:x,{source:t,script:st(e)});p.unshift(...g),mi(b.root,v);let N=d.__stx_runtime_head;if(typeof N?.title==="string"&&N.title.trim())b.title=N.title.trim();if(m)b.chrome=m;let S=ot(x),R=Rn(x);if(st(e).code.trim()){let E=await hs(e,t,n.context,{forceClientSetup:!0}),O=ot(E.setupCode??"");if(S=O??S,O&&!R.some((B)=>B.code===O.code))R.push({code:O.code})}let{buildModuleRegistryScript:w,registeredModuleIdsIn:_,registeredModuleNamesIn:I}=await import("./chunk-zd6cygn3.js"),D=async()=>{let E=[],O=R.map((k)=>k.code),B=await w(_(...O),{collectInputs:E,names:I(...O)});for(let k of E)f.add(k);return B},A=await D();if([...R.map((E)=>E.code),A??""].some((E)=>/\buseStore\s*\(/.test(E))&&/<script\b[^>]*\bdata-stx-stores\b/i.test(x)){let{getStoreScriptFor:E}=await import("./chunk-5jqcs1fz.js"),O=[...R],B="";for(let k=0;k<8;k++){let T=await E(u.storesDir,[...O.map((C)=>C.code),A],{sharedModules:!0});if(!T)break;if(T.stores.join()===B)break;B=T.stores.join(),R.splice(0,R.length,{code:T.code,...T.functions?{stores:T.functions}:{}},...O);for(let C of new Bun.Glob("*.ts").scanSync({cwd:u.storesDir,absolute:!0}))f.add(C);A=await D()}}if(A)R.unshift({code:A,registry:!0});return{document:b,manifest:v,setup:S,scripts:R,diagnostics:p,html:x,dependencies:[...f]}}function mi(e,t){let n=new Map(t.entries.map((o)=>[o.id,o])),r=t.entries.reduce((o,c)=>Math.max(o,c.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 c=n.get(o.bindingId);for(let u of o._templated){let d=`:${u}`,f=Ie(d);if(f&&!c.bindings.some((h)=>h.name===d))c.bindings.push({name:d,value:o.bindings[u],kind:f})}}for(let c of o.children)if(typeof c!=="string")s(c)};s(e)}async function Te(e,t={}){return hi(await Bun.file(e).text(),e,t)}var po=Symbol("stx.nativeWebStorage.raw");var de="__app";var Si=(e)=>Bun.hash(e).toString(36);var wi=/^ {2}try \{ factories\[("[0-9a-f]+")\] = factories\[\1\] \|\| /gm,xi=/^\(function\(__scopeId\) \{([\s\S]*)\}\)\("([^"\\]+)"\);\s*$/;function at(e){if(!e.startsWith(`(function() {
|
|
7
7
|
const factories = window.__stxComponentFactories = window.__stxComponentFactories || {};
|
|
8
8
|
`)||!e.endsWith(`
|
|
9
9
|
})();`))return null;let t=[...e.matchAll(wi)];if(t.length===0)return null;let n=[],r=105;for(let[s,o]of t.entries()){if(o.index!==r)return null;let c=JSON.parse(o[1]),u=o.index+o[0].length,d=`; }
|
|
@@ -16,7 +16,7 @@ ${v.map((b)=>`${b.text}
|
|
|
16
16
|
})();`}}if(g.stores?.some(c)){for(let x of g.stores.filter(c))u.set(n(x),x);return{code:`;(function() {
|
|
17
17
|
${g.stores.map((x)=>c(x)?`runtime.components[${JSON.stringify(n(x))}]();`:`(${x})();`).join(`
|
|
18
18
|
`)}
|
|
19
|
-
})();`}}let m=s(g);if(m&&c(m.body))return u.set(n(m.body),m.body),{...g,code:`runtime.components[${JSON.stringify(n(m.body))}](${JSON.stringify(m.scope)});`};return g}));return{bodies:u,screens:d}}var Ni=[["props",()=>({})],["style",()=>({})],["events",()=>({})],["children",()=>[]],["_inlineStyle",()=>({})],["_styleSource",()=>""]];var ki=new Set(["text","html","show","if","for","model","class","style","ref"]);function Ti(e){if(e.startsWith("@"))return"event";if(e.startsWith(":")&&ki.has(e.slice(1)))return e.slice(1);return"attr"}function _i(e,t){if(typeof t==="string")return e==="";if(Array.isArray(t))return Array.isArray(e)&&e.length===0;return!!e&&typeof e==="object"&&!Array.isArray(e)&&Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length===0}class ct extends Error{}function _n(e){let t={...e};if(Object.prototype.hasOwnProperty.call(t,"~"))throw new ct;let n=0;if(Ni.forEach(([r,s],o)=>{if(!Object.prototype.hasOwnProperty.call(t,r))n|=1<<o;else if(_i(t[r],s()))delete t[r]}),Array.isArray(t.children))t.children=t.children.map((r)=>typeof r==="string"?r:_n(r));if(n)t["~"]=n;return t}function An(e){try{return{...e,root:_n(e.root)}}catch(t){if(t instanceof ct)return null;throw t}}var Ai=["kind","name","value"].join();function En(e){if(Object.keys(e).some((n)=>n!=="entries"))return null;let t=[];for(let n of e.entries){if(Object.keys(n).some((s)=>s!=="id"&&s!=="bindings"&&!(s==="template"&&n.template===!0)))return null;let r=[];for(let s of n.bindings){if(Object.keys(s).sort().join()!==Ai||typeof s.value!=="string")return null;r.push(s.kind===Ti(s.name)?[s.name,s.value]:[s.name,s.value,s.kind])}t.push(n.template?[n.id,r,1]:[n.id,r])}return t}async function Ci(e){try{let{loadCssEngineConfig:t}=await import("./chunk-
|
|
19
|
+
})();`}}let m=s(g);if(m&&c(m.body))return u.set(n(m.body),m.body),{...g,code:`runtime.components[${JSON.stringify(n(m.body))}](${JSON.stringify(m.scope)});`};return g}));return{bodies:u,screens:d}}var Ni=[["props",()=>({})],["style",()=>({})],["events",()=>({})],["children",()=>[]],["_inlineStyle",()=>({})],["_styleSource",()=>""]];var ki=new Set(["text","html","show","if","for","model","class","style","ref"]);function Ti(e){if(e.startsWith("@"))return"event";if(e.startsWith(":")&&ki.has(e.slice(1)))return e.slice(1);return"attr"}function _i(e,t){if(typeof t==="string")return e==="";if(Array.isArray(t))return Array.isArray(e)&&e.length===0;return!!e&&typeof e==="object"&&!Array.isArray(e)&&Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length===0}class ct extends Error{}function _n(e){let t={...e};if(Object.prototype.hasOwnProperty.call(t,"~"))throw new ct;let n=0;if(Ni.forEach(([r,s],o)=>{if(!Object.prototype.hasOwnProperty.call(t,r))n|=1<<o;else if(_i(t[r],s()))delete t[r]}),Array.isArray(t.children))t.children=t.children.map((r)=>typeof r==="string"?r:_n(r));if(n)t["~"]=n;return t}function An(e){try{return{...e,root:_n(e.root)}}catch(t){if(t instanceof ct)return null;throw t}}var Ai=["kind","name","value"].join();function En(e){if(Object.keys(e).some((n)=>n!=="entries"))return null;let t=[];for(let n of e.entries){if(Object.keys(n).some((s)=>s!=="id"&&s!=="bindings"&&!(s==="template"&&n.template===!0)))return null;let r=[];for(let s of n.bindings){if(Object.keys(s).sort().join()!==Ai||typeof s.value!=="string")return null;r.push(s.kind===Ti(s.name)?[s.name,s.value]:[s.name,s.value,s.kind])}t.push(n.template?[n.id,r,1]:[n.id,r])}return t}async function Ci(e){try{let{loadCssEngineConfig:t}=await import("./chunk-9pkazxn1.js");return Rt(await t(e))}catch{return{}}}var _e="__runtime",Oi="__messages";function Ee(e){let n=[H.join(import.meta.dir,"..","runtime",`${e}.ts`),H.join(import.meta.dir,"..","runtime",`${e}.js`),H.join(import.meta.dir,"native","runtime",`${e}.js`)].find((r)=>Pn(r));if(!n)throw Error(`Native runtime module ${e} is missing`);return n}async function lt(e,t,n,r,s){let o={name:"stx-screen-inputs",setup(u){u.onLoad({filter:/.*/,namespace:"file"},({path:d})=>{r.add(d);let f=s?.get(d);return f===void 0?void 0:{contents:f,loader:"js"}})}},c=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(!c.success){let u=c.logs.map((d)=>String(d.message??d)).join(`
|
|
20
20
|
`);throw Error(`Could not bundle ${e}:
|
|
21
21
|
${u}`)}return(await c.outputs[0].text()).trim()}function Ii(e,t){return jr(e,t)}function Pi(e,t){return`export default globalThis.__stxNativeRuntime.messages(${JSON.stringify(e)}, ${JSON.stringify(t)});`}function Mi(e){let t=new Map;for(let[n,{language:r,area:s}]of e.files){let o=Pi(r,s);t.set(n,o),t.set(Ei(n),o)}return t}function In(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 Bi(e,t){let n=H.isAbsolute(e.meta.source)?H.relative(t,e.meta.source).split(H.sep).join("/"):e.meta.source;return{...e,script:{exports:e.script.exports,functions:[],code:""},meta:{...e.meta,source:n,compiledAt:0}}}function Di(e){let t=new Map,n=e.flatMap(({name:u,document:d})=>{let{_stylesheetRules:f,_stylesheetTheme:h}=d.root;return f===void 0&&h===void 0?[]:[{name:u,rules:f??{},theme:h}]});for(let{rules:u}of n)for(let[d,f]of Object.entries(u)){let h=JSON.stringify(f),g=t.get(d)??new Map,y=g.get(h);if(y)y.count++;else g.set(h,{value:f,count:1});t.set(d,g)}let r={},s=new Map;for(let[u,d]of t){let[f,h]=[...d].sort(([,g],[,y])=>y.count-g.count)[0];r[u]=h.value,s.set(u,f)}let o={},c=new Map;for(let{name:u,rules:d,theme:f}of n){let h={};for(let[y,m]of Object.entries(d))if(JSON.stringify(m)!==s.get(y))h[y]=m;let g=null;if(f!==void 0)g=Bun.hash(JSON.stringify(f)).toString(36),o[g]=f;c.set(u,{order:Object.keys(d),own:h,theme:g})}return{rules:r,themes:o,screens:c}}function Li(e){let{_stylesheetRules:t,_stylesheetTheme:n,...r}=e.root;return{...e,root:r}}async function ut(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=H.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 Ii(s,e.messages):null,c=e.styleConfig??await Ci(s),u=o?Mi(o):null,d=[],f=async()=>{for(let k of t){let T=H.resolve(s,e.screens[k]);if(!T.endsWith(".stx"))throw Error(`Screen ${k} must name a .stx file`);d.push({name:k,file:T,compiled:await Te(T,{root:s})})}};await kt(c,()=>u?rs(u,f):f());let h=Ee("jsc-globals"),g=Ee("shared-screen"),y=e.app?H.resolve(s,e.app):null;if(y&&!Pn(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[de])throw Error(`${de} is the app script's route, not a screen name`);let m=e.browser;if(e.screens[_e])throw Error(`${_e} is the runtime prelude's file, not a screen name`);let x=ht();if(m&&e.routesDir)throw Error("A browser screen is one route; routesDir is for device hosts");let v=new Set(d.flatMap(({compiled:k})=>k.dependencies)),l=null;if(e.routesDir&&e.sharedRuntime&&e.shareModules!==!1&&process.env.STX_NATIVE_SHARE_MODULES!=="0"){let k=[],T=d.map(({name:L,compiled:F})=>{let M=F.scripts.filter((W)=>!W.registry).map((W)=>W.code);return{name:L,ids:Lr(...M),names:no(...M)}}),C=()=>ro(T,{collectInputs:k});if(l=await(u?rs(u,C):C()),l)for(let L of k)v.add(L)}let b=l,p=e.routesDir&&e.sharedRuntime&&e.shareModules!==!1&&process.env.STX_NATIVE_SHARE_MODULES!=="0"?Tn(d.map(({name:k,compiled:T})=>({name:k,scripts:T.scripts}))):null,N=Di(d.map(({name:k,compiled:T})=>({name:k,document:T.document}))),S=(k,T,C)=>{let L=n?`var routeName = g.__stxNativeRoute || ${JSON.stringify(r)};
|
|
22
22
|
var isApp = ${y?`routeName === ${JSON.stringify(de)}`:"false"};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{us,or,If}from"./chunk-8p65gzw0.js";import"./chunk-qv85c3qy.js";import"./chunk-3772atqp.js";import"./chunk-4dd0yecs.js";import"./chunk-w5hhqjwr.js";import"./chunk-2hm4nmt9.js";import"./chunk-4yhsmwcc.js";import"./chunk-h0jnatd4.js";import"./chunk-605b93pe.js";import"./chunk-w9nwb8r3.js";import"./chunk-q14d714d.js";import{Pt}from"./chunk-y8wer7e1.js";import"./chunk-kb2xxmxp.js";import"./chunk-27rzdq3n.js";import"./chunk-94gyfwpz.js";import"./chunk-2yxva96k.js";import"./chunk-gb65t4n1.js";export{If as declareBareLoopHead,Pt as parseLoopBinding,or as processLoops,us as reportDeferredLoopWarnings};
|