@stacksjs/stx 0.2.92 → 0.2.94
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/a11y.js +1 -1
- package/dist/analytics.js +1 -1
- package/dist/analyzer.js +1 -1
- package/dist/animation.js +1 -1
- package/dist/app-shell.js +1 -1
- package/dist/app.js +1 -1
- package/dist/assets.js +1 -1
- package/dist/ast.js +1 -1
- package/dist/async-components.js +1 -1
- package/dist/auth.js +1 -1
- package/dist/broadcasting.js +1 -1
- package/dist/browser-composables.js +1 -1
- package/dist/build-assets.js +1 -1
- package/dist/build-mode-detector.js +1 -1
- package/dist/build-optimizer.js +1 -1
- package/dist/build-views.js +1 -1
- package/dist/build.js +1 -1
- package/dist/builtins/drawer.js +1 -1
- package/dist/builtins/escape.js +1 -1
- package/dist/builtins/icon.js +1 -1
- package/dist/builtins/index.js +1 -1
- package/dist/builtins/modal.js +1 -1
- package/dist/builtins/safe-image.js +1 -1
- package/dist/builtins/stx-image.js +1 -1
- package/dist/builtins/stx-link.js +1 -1
- package/dist/builtins/stx-loading-indicator.js +1 -1
- package/dist/builtins/suspense.js +1 -1
- package/dist/builtins/toast.js +1 -1
- package/dist/builtins/tooltip.js +1 -1
- package/dist/builtins/transition-group.js +1 -1
- package/dist/bundle-analyzer/collector.js +1 -1
- package/dist/bundle-analyzer/index.js +1 -1
- package/dist/bundle-analyzer/report.js +1 -1
- package/dist/bundle-analyzer/treemap.js +1 -1
- package/dist/caching.js +1 -1
- package/dist/{chunk-9p45wwff.js → chunk-03c26pjz.js} +1 -1
- package/dist/{chunk-4ep9gk7d.js → chunk-04mvcmcr.js} +1 -1
- package/dist/{chunk-5e2khb7q.js → chunk-05hgyyqc.js} +2 -2
- package/dist/{chunk-j25swncq.js → chunk-095s3972.js} +1 -1
- package/dist/{chunk-t1dzvz5z.js → chunk-0dz85jrp.js} +1 -1
- package/dist/{chunk-2aydpj2n.js → chunk-0g4gece6.js} +1 -1
- package/dist/{chunk-k7yp9h17.js → chunk-0jd0pndq.js} +1 -1
- package/dist/{chunk-3whqk46c.js → chunk-0jkwrcwj.js} +1 -1
- package/dist/{chunk-jcjzg6r5.js → chunk-0m9tdm7t.js} +1 -1
- package/dist/{chunk-9pzdyd8q.js → chunk-0qnz93q2.js} +2 -2
- package/dist/{chunk-c9f5k95v.js → chunk-0tatqxj2.js} +2 -2
- package/dist/{chunk-wdtanmx1.js → chunk-0wdar532.js} +1 -1
- package/dist/{chunk-m911bf2b.js → chunk-13yz561y.js} +2 -2
- package/dist/{chunk-646pxdd1.js → chunk-174z0cd0.js} +2 -2
- package/dist/{chunk-wbrqpv9f.js → chunk-1mmykse5.js} +2 -2
- package/dist/{chunk-xkzz5rb0.js → chunk-1z2yq9em.js} +2 -2
- package/dist/{chunk-jmky0qzm.js → chunk-1z5nhbjt.js} +1 -1
- package/dist/{chunk-ms9rebfj.js → chunk-25s7bckb.js} +2 -2
- package/dist/{chunk-nsrqf0dg.js → chunk-268adc7r.js} +1 -1
- package/dist/{chunk-14kfmww0.js → chunk-26r6zh3t.js} +2 -2
- package/dist/{chunk-8xbj6dqe.js → chunk-2w3302dh.js} +1 -1
- package/dist/{chunk-9ezvda3j.js → chunk-2xen423s.js} +1 -1
- package/dist/{chunk-nv3k4bf9.js → chunk-39gm08bn.js} +1 -1
- package/dist/{chunk-g3f1xq76.js → chunk-3bjtemm6.js} +1 -1
- package/dist/{chunk-6r70w54p.js → chunk-3jm3snz8.js} +1 -1
- package/dist/{chunk-9tksycj5.js → chunk-3ngm57nt.js} +2 -2
- package/dist/{chunk-hkjq64we.js → chunk-3rh7va1z.js} +1 -1
- package/dist/{chunk-r5sggjdv.js → chunk-3yg9hbmb.js} +2 -2
- package/dist/{chunk-sk1gmrr8.js → chunk-46mkpbkk.js} +2 -2
- package/dist/chunk-48cw2nde.js +2 -0
- package/dist/chunk-48r3qe0k.js +3 -0
- package/dist/{chunk-19f7xyy7.js → chunk-4bt81cg3.js} +2 -2
- package/dist/{chunk-ccgmxmjk.js → chunk-4j188175.js} +1 -1
- package/dist/{chunk-t38vt890.js → chunk-4k7d8p8d.js} +1 -1
- package/dist/{chunk-91gyjg5c.js → chunk-4qq8ffke.js} +2 -2
- package/dist/{chunk-fnqf7293.js → chunk-50vqeesm.js} +2 -2
- package/dist/{chunk-8fhv0xaw.js → chunk-52agge4n.js} +2 -2
- package/dist/{chunk-1vz36hw3.js → chunk-55yp0q8t.js} +1 -1
- package/dist/{chunk-yywc3yge.js → chunk-57p201gb.js} +1 -1
- package/dist/{chunk-kqtchwz7.js → chunk-5ggw1dyv.js} +1 -1
- package/dist/{chunk-md4j8nch.js → chunk-5kt3ay7x.js} +1 -1
- package/dist/{chunk-ds6g241c.js → chunk-5p568px4.js} +1 -1
- package/dist/{chunk-6e08xfzp.js → chunk-5ppkfyn2.js} +1 -1
- package/dist/{chunk-1htmc8mb.js → chunk-5q87fgkk.js} +2 -2
- package/dist/{chunk-ke7rcrfm.js → chunk-5qb761h2.js} +1 -1
- package/dist/{chunk-f7f4g33p.js → chunk-5xvbq2gs.js} +2 -2
- package/dist/{chunk-tb9c2mq7.js → chunk-647849kf.js} +2 -2
- package/dist/{chunk-b37f9ebf.js → chunk-6b5k6w2q.js} +1 -1
- package/dist/{chunk-x6n8z1n8.js → chunk-6cr3eeh4.js} +1 -1
- package/dist/{chunk-7sd6c9wv.js → chunk-6djgb0hr.js} +1 -1
- package/dist/{chunk-f228sm5e.js → chunk-6dqzky7x.js} +1 -1
- package/dist/{chunk-knefeadt.js → chunk-6e4c6g46.js} +2 -2
- package/dist/{chunk-qhzdkgg3.js → chunk-6w03t7h6.js} +2 -2
- package/dist/{chunk-fh1d8bxd.js → chunk-6wn85hn6.js} +1 -1
- package/dist/{chunk-w4a3cvtp.js → chunk-6y4gqs1q.js} +1 -1
- package/dist/{chunk-8x58wmgs.js → chunk-75rndzbd.js} +2 -2
- package/dist/{chunk-eghdf4qq.js → chunk-77tga15w.js} +2 -2
- package/dist/{chunk-w3e1fm1q.js → chunk-7a51hkpf.js} +1 -1
- package/dist/{chunk-rdaavfsg.js → chunk-7b0xdy5h.js} +1 -1
- package/dist/{chunk-5wecgn5n.js → chunk-7cgmq685.js} +1 -1
- package/dist/{chunk-0m53nxvy.js → chunk-7dy588as.js} +1 -1
- package/dist/{chunk-87rkm7qf.js → chunk-7rvh2wwv.js} +2 -2
- package/dist/{chunk-1hyk728h.js → chunk-7sm05m0j.js} +1 -1
- package/dist/{chunk-npj33yqb.js → chunk-7xcfy2fn.js} +1 -1
- package/dist/{chunk-7aph6rw7.js → chunk-82t27pvd.js} +1 -1
- package/dist/{chunk-hdv4tnvh.js → chunk-87kx8byz.js} +2 -2
- package/dist/{chunk-a2xzs4kd.js → chunk-8fgwhhb8.js} +2 -2
- package/dist/{chunk-bg1xym0q.js → chunk-8qbax8xn.js} +1 -1
- package/dist/{chunk-p4wm4a45.js → chunk-91s2hres.js} +2 -2
- package/dist/{chunk-7t4hkmxb.js → chunk-94g3cahw.js} +2 -2
- package/dist/{chunk-02bd1cng.js → chunk-957amb71.js} +1 -1
- package/dist/{chunk-qvmrwh8n.js → chunk-95w08s8v.js} +1 -1
- package/dist/{chunk-6zhv4fcq.js → chunk-9agvhp1x.js} +1 -1
- package/dist/{chunk-hd27hhzr.js → chunk-9tmbrwwx.js} +1 -1
- package/dist/{chunk-dtcj9r7p.js → chunk-9yz5d003.js} +2 -2
- package/dist/{chunk-agzvhej1.js → chunk-a3hyn4we.js} +1 -1
- package/dist/{chunk-n2wmny2b.js → chunk-a69tvya5.js} +2 -2
- package/dist/{chunk-c7zedzbg.js → chunk-adjcg6wa.js} +2 -2
- package/dist/{chunk-p5j0686t.js → chunk-adqh2m9z.js} +1 -1
- package/dist/{chunk-ddst5g08.js → chunk-asarebzq.js} +1 -1
- package/dist/{chunk-z06myqr1.js → chunk-aw3rp9ac.js} +2 -2
- package/dist/{chunk-zr8631g4.js → chunk-b0cyc09a.js} +1 -1
- package/dist/{chunk-ckz0ppkr.js → chunk-b3kkjcdh.js} +1 -1
- package/dist/{chunk-a33kr9b0.js → chunk-b3prs7y0.js} +1 -1
- package/dist/{chunk-zhr3za7x.js → chunk-b5zc9y0y.js} +2 -2
- package/dist/{chunk-zepv7y44.js → chunk-baa7h4yz.js} +2 -2
- package/dist/{chunk-pzc0bs5r.js → chunk-bgec9r1v.js} +2 -2
- package/dist/{chunk-mqnymcn5.js → chunk-bjnjpsgn.js} +2 -2
- package/dist/{chunk-g22tv0ed.js → chunk-bk8ew8ze.js} +2 -2
- package/dist/{chunk-h3mb2q51.js → chunk-bn08k7yy.js} +2 -2
- package/dist/{chunk-nacsxc1r.js → chunk-bpgg59wa.js} +1 -1
- package/dist/{chunk-9w7021bx.js → chunk-bwxda6n1.js} +2 -2
- package/dist/{chunk-9fj7hpwa.js → chunk-bykjk6vj.js} +1 -1
- package/dist/{chunk-gapx9vqm.js → chunk-c53hyw5c.js} +1 -1
- package/dist/{chunk-0qzxbxgp.js → chunk-c7jg8w13.js} +1 -1
- package/dist/{chunk-f9j3mr9z.js → chunk-ca6qd1dx.js} +1 -1
- package/dist/{chunk-f6s1jx8c.js → chunk-cdbwprfv.js} +2 -2
- package/dist/{chunk-3rgj1qn6.js → chunk-ceg2c2q2.js} +2 -2
- package/dist/{chunk-31w1xfs1.js → chunk-cn409b69.js} +1 -1
- package/dist/{chunk-c23697dp.js → chunk-cp3kwv17.js} +1 -1
- package/dist/{chunk-1k3k1tf8.js → chunk-cpcc11vp.js} +2 -2
- package/dist/{chunk-ftzqtv1k.js → chunk-cr3wbrcr.js} +2 -2
- package/dist/{chunk-my0qmjw4.js → chunk-cygfdk1n.js} +2 -2
- package/dist/{chunk-1bknva4p.js → chunk-cyp4m0vh.js} +1 -1
- package/dist/{chunk-jm460jxs.js → chunk-cz25azze.js} +1 -1
- package/dist/{chunk-9d0q9k3p.js → chunk-d77yxcds.js} +2 -2
- package/dist/{chunk-cf86cs0k.js → chunk-dvfs1h3c.js} +2 -2
- package/dist/{chunk-1bzckhs2.js → chunk-dyjnn5k8.js} +2 -2
- package/dist/{chunk-sd2c11bp.js → chunk-dzw95th7.js} +2 -2
- package/dist/{chunk-88wdr7f3.js → chunk-e0zytzdh.js} +1 -1
- package/dist/{chunk-tgvekhwz.js → chunk-e53h9qhd.js} +1 -1
- package/dist/{chunk-593x2ccf.js → chunk-eds0f8f1.js} +2 -2
- package/dist/{chunk-5y4q9abj.js → chunk-eh8hact1.js} +1 -1
- package/dist/{chunk-4ewrwqwn.js → chunk-epj957jf.js} +1 -1
- package/dist/{chunk-fcpxs8mm.js → chunk-eqeyaq6g.js} +1 -1
- package/dist/{chunk-n7j8tczc.js → chunk-fbxt2mrx.js} +2 -2
- package/dist/{chunk-b0w1cm1s.js → chunk-fch9tk1k.js} +1 -1
- package/dist/{chunk-8g0jb444.js → chunk-fe7r1mq1.js} +2 -2
- package/dist/{chunk-y92w0240.js → chunk-fhawx87n.js} +1 -1
- package/dist/{chunk-dgf2g708.js → chunk-fk51yyrw.js} +1 -1
- package/dist/{chunk-5tv1swsr.js → chunk-fms20x0n.js} +1 -1
- package/dist/{chunk-13mkbvxc.js → chunk-fs0qezn5.js} +1 -1
- package/dist/{chunk-acry1mfc.js → chunk-fzm3y0r3.js} +1 -1
- package/dist/{chunk-2rd0ykrg.js → chunk-g2hekckm.js} +1 -1
- package/dist/{chunk-zxsqbve0.js → chunk-g4ps1dj8.js} +2 -2
- package/dist/{chunk-qr72av66.js → chunk-g8b81pzc.js} +1 -1
- package/dist/{chunk-rth1890k.js → chunk-ganag9dm.js} +2 -2
- package/dist/{chunk-v9199ywv.js → chunk-gc84b1d2.js} +2 -2
- package/dist/{chunk-6jhqq7es.js → chunk-gcf5v18y.js} +1 -1
- package/dist/{chunk-a50svyjn.js → chunk-ghrx0hn1.js} +1 -1
- package/dist/{chunk-nh418dpm.js → chunk-gqpkp459.js} +2 -2
- package/dist/chunk-h45py5w5.js +2 -0
- package/dist/{chunk-at9v5saf.js → chunk-h5wa62ek.js} +1 -1
- package/dist/{chunk-ecabspxs.js → chunk-h82kjdr4.js} +1 -1
- package/dist/{chunk-aaaxvn5r.js → chunk-haecq01c.js} +1 -1
- package/dist/{chunk-zx43nkm1.js → chunk-hepg894w.js} +2 -2
- package/dist/{chunk-rhyxeb33.js → chunk-hjdc99kb.js} +2 -2
- package/dist/{chunk-04yrgvdd.js → chunk-hje9v2zh.js} +1 -1
- package/dist/{chunk-zxxt0c9q.js → chunk-hke99a0v.js} +2 -2
- package/dist/{chunk-r6sb1sm4.js → chunk-hpqr9e3x.js} +2 -2
- package/dist/{chunk-pcngkyjr.js → chunk-hq5cem49.js} +2 -2
- package/dist/{chunk-yssvz8zs.js → chunk-hrampcrj.js} +1 -1
- package/dist/{chunk-pjaa8q7x.js → chunk-ht4j68cs.js} +2 -2
- package/dist/{chunk-22xxm2x5.js → chunk-hxx3za24.js} +1 -1
- package/dist/{chunk-ms6793rw.js → chunk-j4s5qwd7.js} +2 -2
- package/dist/{chunk-ydhza16t.js → chunk-jbejwejg.js} +1 -1
- package/dist/{chunk-vwp4dw7e.js → chunk-jc0fc4ht.js} +1 -1
- package/dist/{chunk-kemb0fyc.js → chunk-jcs0ymw7.js} +1 -1
- package/dist/{chunk-tj9kmtnx.js → chunk-jfm69keq.js} +2 -2
- package/dist/chunk-jfrn43vh.js +2 -0
- package/dist/{chunk-fnt3srfr.js → chunk-jjamhxpm.js} +1 -1
- package/dist/{chunk-gcsqn7x9.js → chunk-jjvp4t5w.js} +2 -2
- package/dist/{chunk-e8x46y38.js → chunk-jt44av4j.js} +1 -1
- package/dist/{chunk-n3k3e9n5.js → chunk-jt98jhpt.js} +1 -1
- package/dist/{chunk-r738cjs3.js → chunk-k8440jxh.js} +2 -2
- package/dist/{chunk-v0s45ek4.js → chunk-kdxa9epn.js} +2 -2
- package/dist/{chunk-hrgg37a9.js → chunk-kfd2hf6f.js} +2 -2
- package/dist/{chunk-jdy93c39.js → chunk-kgym7ch9.js} +1 -1
- package/dist/{chunk-ybe2cpx1.js → chunk-kh6rfz2v.js} +1 -1
- package/dist/{chunk-j1myedcr.js → chunk-kkp6rs2n.js} +1 -1
- package/dist/{chunk-hz7qnpx1.js → chunk-m59y310j.js} +2 -2
- package/dist/{chunk-kh976zgv.js → chunk-mgmyr1b9.js} +1 -1
- package/dist/{chunk-dkt9p3bk.js → chunk-mqwbpamc.js} +1 -1
- package/dist/{chunk-xmjedbkt.js → chunk-mrehzhxv.js} +1 -1
- package/dist/{chunk-snj1hfpb.js → chunk-mv03qb75.js} +1 -1
- package/dist/chunk-mwbng54r.js +2 -0
- package/dist/{chunk-zvyc82ke.js → chunk-n46a5g1g.js} +1 -1
- package/dist/{chunk-vawc9ak6.js → chunk-n944baxp.js} +1 -1
- package/dist/{chunk-zwdargbj.js → chunk-nanw7yhz.js} +1 -1
- package/dist/{chunk-nwfa5766.js → chunk-nap11ntr.js} +2 -2
- package/dist/{chunk-r3cxnszy.js → chunk-ncnfa8ae.js} +2 -2
- package/dist/{chunk-xm3hz63f.js → chunk-ngxfwzq3.js} +1 -1
- package/dist/{chunk-fngb9apr.js → chunk-nvwb4x04.js} +1 -1
- package/dist/{chunk-ydhrdatx.js → chunk-nw34xajc.js} +1 -1
- package/dist/{chunk-3wth4wa6.js → chunk-payfb24w.js} +1 -1
- package/dist/{chunk-r1m8g439.js → chunk-pc31m5x5.js} +1 -1
- package/dist/{chunk-xecnz132.js → chunk-pg1fvqb9.js} +1 -1
- package/dist/{chunk-h6s1thg6.js → chunk-q60knhjf.js} +1 -1
- package/dist/{chunk-0t75nh4z.js → chunk-q6h6yvzb.js} +2 -2
- package/dist/{chunk-w719zps0.js → chunk-qd5461tt.js} +1 -1
- package/dist/{chunk-exfw0aqe.js → chunk-qdc3aav1.js} +1 -1
- package/dist/{chunk-g9gksn68.js → chunk-qfwzdffx.js} +2 -2
- package/dist/{chunk-wtgrc6ya.js → chunk-qgxwmagw.js} +1 -1
- package/dist/{chunk-vy0k2prz.js → chunk-qhdtssn1.js} +2 -2
- package/dist/{chunk-tzehzwyr.js → chunk-qk584whs.js} +1 -1
- package/dist/{chunk-wk7mgg5n.js → chunk-qm4yppj5.js} +2 -2
- package/dist/chunk-qwyd9a1d.js +2 -0
- package/dist/{chunk-kyhq6hzp.js → chunk-qxs6et76.js} +1 -1
- package/dist/{chunk-h1035wzj.js → chunk-rb1e4cnb.js} +1 -1
- package/dist/{chunk-kpp2baaz.js → chunk-rkffm9sy.js} +1 -1
- package/dist/{chunk-xgmza98t.js → chunk-rv002yn0.js} +1 -1
- package/dist/{chunk-64bwamng.js → chunk-s6ja2bdg.js} +1 -1
- package/dist/chunk-sjagg9qz.js +66 -0
- package/dist/{chunk-jtx73fsh.js → chunk-sn07azv3.js} +2 -2
- package/dist/{chunk-rqwhb85x.js → chunk-svahbw0w.js} +2 -2
- package/dist/{chunk-1qy4gac6.js → chunk-svhtdb0s.js} +2 -2
- package/dist/{chunk-rkr7cgs8.js → chunk-t37dp99j.js} +1 -1
- package/dist/{chunk-fk0m346m.js → chunk-tj6zfxeb.js} +2 -2
- package/dist/{chunk-1yg3x73j.js → chunk-tmgz5t2g.js} +1 -1
- package/dist/{chunk-r7d26vjj.js → chunk-tr0z0e1g.js} +1 -1
- package/dist/{chunk-zv9jfm2f.js → chunk-tx6br9r4.js} +1 -1
- package/dist/{chunk-zwpm1pa8.js → chunk-vcr5pzpx.js} +1 -1
- package/dist/{chunk-nqxqy9v2.js → chunk-vdfwv0fp.js} +1 -1
- package/dist/{chunk-hkabmxjj.js → chunk-vp2395eb.js} +2 -2
- package/dist/{chunk-fbbv5x9m.js → chunk-vpe6napb.js} +2 -2
- package/dist/{chunk-1w3354fv.js → chunk-vv9wfz1c.js} +2 -2
- package/dist/{chunk-71n355cg.js → chunk-vw6ejgmy.js} +2 -2
- package/dist/{chunk-tzd81m7r.js → chunk-w01y57f5.js} +2 -2
- package/dist/{chunk-6wqrqn2x.js → chunk-w21mwxdd.js} +2 -2
- package/dist/{chunk-qhrcts5t.js → chunk-w4n8fqp7.js} +1 -1
- package/dist/{chunk-x4qr3b2z.js → chunk-w959hm8j.js} +1 -1
- package/dist/{chunk-bgan5edn.js → chunk-wf7zrjsw.js} +1 -1
- package/dist/{chunk-ktvdeqjr.js → chunk-wk07pwtd.js} +1 -1
- package/dist/{chunk-mp9dsjrg.js → chunk-wvef3ngh.js} +1 -1
- package/dist/{chunk-xw9skf0n.js → chunk-wxvyj65q.js} +1 -1
- package/dist/{chunk-ktpc2rc4.js → chunk-x1hjv24z.js} +1 -1
- package/dist/{chunk-6sx4d083.js → chunk-x39sfpvm.js} +1 -1
- package/dist/{chunk-am5rtv86.js → chunk-x4fze3q2.js} +1 -1
- package/dist/{chunk-08ncwhv7.js → chunk-x64kb787.js} +1 -1
- package/dist/{chunk-p993psbk.js → chunk-xcb0pbr6.js} +1 -1
- package/dist/{chunk-9v7q6xn4.js → chunk-xhkjhxsp.js} +1 -1
- package/dist/{chunk-fp417rws.js → chunk-xhnpsngj.js} +2 -2
- package/dist/{chunk-6t76k6ry.js → chunk-xsqbk4yk.js} +2 -2
- package/dist/{chunk-wntaqqhz.js → chunk-xygc53vr.js} +1 -1
- package/dist/{chunk-vg97xcma.js → chunk-y0qg6rrv.js} +1 -1
- package/dist/{chunk-tavtph8x.js → chunk-y25pr13j.js} +1 -1
- package/dist/{chunk-fyq5573f.js → chunk-y4c744dk.js} +2 -2
- package/dist/{chunk-b5xf2v7f.js → chunk-y4md9hp0.js} +1 -1
- package/dist/{chunk-sn7pmfn4.js → chunk-y5wazw6j.js} +1 -1
- package/dist/{chunk-zasq08k3.js → chunk-y5xz0jc4.js} +1 -1
- package/dist/{chunk-7bd8bw2z.js → chunk-y86m1wr4.js} +2 -2
- package/dist/{chunk-ewytyv0p.js → chunk-yaan98dd.js} +2 -2
- package/dist/{chunk-dnkq5y2j.js → chunk-yach037f.js} +2 -2
- package/dist/{chunk-3ewtm19c.js → chunk-yexjrg9d.js} +2 -2
- package/dist/{chunk-c03qara0.js → chunk-ygvyc6wv.js} +1 -1
- package/dist/{chunk-0fsrhs3d.js → chunk-yj560gp8.js} +1 -1
- package/dist/{chunk-pdv5dhen.js → chunk-yn38c15w.js} +1 -1
- package/dist/{chunk-a4zj7qpt.js → chunk-yr1gdceh.js} +1 -1
- package/dist/{chunk-t7ghqd7e.js → chunk-yw2fzq86.js} +2 -2
- package/dist/{chunk-e792k31a.js → chunk-ywkrxp2h.js} +1 -1
- package/dist/{chunk-sgsb5xp4.js → chunk-z37xq5rx.js} +2 -2
- package/dist/{chunk-2g16stee.js → chunk-z4djtgt0.js} +2 -2
- package/dist/{chunk-zmsj7wh8.js → chunk-z8cjr9n9.js} +1 -1
- package/dist/{chunk-j6d9ksyj.js → chunk-znxp3zha.js} +1 -1
- package/dist/{chunk-dcp0znhd.js → chunk-zt2yag10.js} +1 -1
- package/dist/cli.js +10882 -10882
- package/dist/client/directive.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client-helpers.js +1 -1
- package/dist/client-script-bundler.js +1 -1
- package/dist/client-script.js +1 -1
- package/dist/client.js +0 -86
- package/dist/component-hmr.js +1 -1
- package/dist/component-processing.js +1 -1
- package/dist/component-registry.js +1 -1
- package/dist/component-renderer.js +1 -1
- package/dist/components.js +1 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-battery.js +1 -1
- package/dist/composables/use-broadcast-channel.js +1 -1
- package/dist/composables/use-channel.js +1 -1
- package/dist/composables/use-clipboard.js +1 -1
- package/dist/composables/use-color-mode.js +1 -1
- package/dist/composables/use-cookie.js +1 -1
- package/dist/composables/use-device-orientation.js +1 -1
- package/dist/composables/use-event-listener.js +1 -1
- package/dist/composables/use-event-source.js +1 -1
- package/dist/composables/use-eye-dropper.js +1 -1
- package/dist/composables/use-fetch.js +1 -1
- package/dist/composables/use-fullscreen.js +1 -1
- package/dist/composables/use-geolocation.js +1 -1
- package/dist/composables/use-idle.js +1 -1
- package/dist/composables/use-intersection-observer.js +1 -1
- package/dist/composables/use-keyboard.js +1 -1
- package/dist/composables/use-media-query.js +1 -1
- package/dist/composables/use-meta.js +1 -1
- package/dist/composables/use-mouse.js +1 -1
- package/dist/composables/use-mutation-observer.js +1 -1
- package/dist/composables/use-network.js +1 -1
- package/dist/composables/use-notification.js +1 -1
- package/dist/composables/use-permissions.js +1 -1
- package/dist/composables/use-resize-observer.js +1 -1
- package/dist/composables/use-router.js +1 -1
- package/dist/composables/use-share.js +1 -1
- package/dist/composables/use-speech.js +1 -1
- package/dist/composables/use-storage.js +1 -1
- package/dist/composables/use-text-selection.js +3 -1
- package/dist/composables/use-timer.js +1 -1
- package/dist/composables/use-utilities.js +1 -1
- package/dist/composables/use-wake-lock.js +1 -1
- package/dist/composables/use-websocket.js +1 -1
- package/dist/composables/use-window.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/composition-api.js +1 -1
- package/dist/computed.js +1 -1
- package/dist/conditionals.js +1 -1
- package/dist/config.js +1 -1
- package/dist/craft-bridge.js +1 -1
- package/dist/craft-compiler.js +1 -1
- package/dist/craft-components.js +1 -1
- package/dist/craft-entry.js +1 -1
- package/dist/craft-ssr.js +1 -1
- package/dist/csp.js +1 -1
- package/dist/csrf.js +1 -1
- package/dist/custom-directives.js +1 -1
- package/dist/defer.js +1 -1
- package/dist/deploy/config-generators.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/netlify.js +1 -1
- package/dist/dev-server/crosswind.js +1 -1
- package/dist/dev-server/index.js +1 -1
- package/dist/dev-server/keyboard-shortcuts.js +1 -1
- package/dist/dev-server/native-window.js +1 -1
- package/dist/dev-server/port-utils.js +1 -1
- package/dist/dev-server/serve-app.js +6 -1
- package/dist/dev-server/serve-file.js +6 -1
- package/dist/dev-server/serve-markdown.js +1 -1
- package/dist/dev-server/serve-multi.js +171 -1
- package/dist/dev-server/terminal-colors.js +1 -1
- package/dist/dev-server/theme-selector.js +1 -1
- package/dist/dev-server/types.js +1 -1
- package/dist/dev-server.js +1 -1
- package/dist/devtools.js +1 -1
- package/dist/directive-api.js +1 -1
- package/dist/docs.js +1 -1
- package/dist/doctor.js +1 -1
- package/dist/document-shell.js +1 -1
- package/dist/dynamic-components.js +1 -1
- package/dist/edge-runtime.js +1 -1
- package/dist/env.js +1 -1
- package/dist/error-boundaries.js +1 -1
- package/dist/error-handling.js +1 -1
- package/dist/errors/codes.js +1 -1
- package/dist/errors/formatter.js +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/errors/logger.js +1 -1
- package/dist/errors/sanitizer.js +1 -1
- package/dist/errors/types.js +1 -1
- package/dist/events.js +1 -1
- package/dist/expressions.js +1 -1
- package/dist/formatter.js +1 -1
- package/dist/forms-validation.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/head.js +1 -1
- package/dist/heatmap.js +1 -1
- package/dist/hot-reload.js +1 -1
- package/dist/html-masking.js +1 -1
- package/dist/hydration-runtime.js +1 -1
- package/dist/hydration.js +1 -1
- package/dist/i18n.js +1 -1
- package/dist/image-optimization/auto-sibling.js +1 -1
- package/dist/image-optimization/build-plugin.js +1 -1
- package/dist/image-optimization/component.js +1 -1
- package/dist/image-optimization/directive.js +1 -1
- package/dist/image-optimization/index.js +1 -1
- package/dist/image-optimization/processor.js +1 -1
- package/dist/image-optimization/serve.js +1 -1
- package/dist/includes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/inline-assets.js +1 -1
- package/dist/interactive.js +1 -1
- package/dist/internal-markdown.js +1 -1
- package/dist/island-chunking.js +1 -1
- package/dist/js-ts.js +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/keep-alive.js +1 -1
- package/dist/lazy-loader.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/loops.js +1 -1
- package/dist/manifest.js +1 -1
- package/dist/markdown.js +1 -1
- package/dist/media/client/blur-up.js +1 -1
- package/dist/media/client/index.js +1 -1
- package/dist/media/client/lazy-load.js +1 -1
- package/dist/media/client/upload-handler.js +1 -1
- package/dist/media/image/component.js +1 -1
- package/dist/media/image/directive.js +1 -1
- package/dist/media/image/editing.js +1 -1
- package/dist/media/image/index.js +1 -1
- package/dist/media/image/placeholder.js +1 -1
- package/dist/media/image/processor/cache.js +1 -1
- package/dist/media/image/processor/index.js +1 -1
- package/dist/media/image/processor/optimizer.js +1 -1
- package/dist/media/image/processor/responsive.js +1 -1
- package/dist/media/image/srcset.js +1 -1
- package/dist/media/index.js +1 -1
- package/dist/media/manager/embed.js +1 -1
- package/dist/media/protected/component.js +1 -1
- package/dist/media/protected/index.js +1 -1
- package/dist/media/protected/signature.js +1 -1
- package/dist/media/shared/cache.js +1 -1
- package/dist/media/shared/hash.js +1 -1
- package/dist/media/shared/index.js +1 -1
- package/dist/media/upload/component.js +1 -1
- package/dist/media/upload/index.js +1 -1
- package/dist/media/video/directive.js +1 -1
- package/dist/media/video/index.js +1 -1
- package/dist/media/video/processor/cache.js +1 -1
- package/dist/media/video/processor/index.js +1 -1
- package/dist/media/video/processor/streaming.js +1 -1
- package/dist/media/video/processor/thumbnail.js +1 -1
- package/dist/media/video/processor/transcoder.js +1 -1
- package/dist/method-spoofing.js +1 -1
- package/dist/middleware.js +1 -1
- package/dist/misc-directives.js +1 -1
- package/dist/native-build.js +1 -1
- package/dist/parser/directive-parser.js +1 -1
- package/dist/parser/expression-parser.js +1 -1
- package/dist/parser/index.js +1 -1
- package/dist/parser/tokenizer.js +1 -1
- package/dist/partial-hydration.js +1 -1
- package/dist/performance-utils.js +1 -1
- package/dist/placeholder.js +1 -1
- package/dist/plugin-system.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/precompiler.js +1 -1
- package/dist/process.js +1 -1
- package/dist/production-build.js +1 -1
- package/dist/production-builder.js +1 -1
- package/dist/production-server.js +1 -1
- package/dist/props.js +1 -1
- package/dist/public-env.js +1 -1
- package/dist/pwa/audit.js +1 -1
- package/dist/pwa/directives.js +1 -1
- package/dist/pwa/icons.js +1 -1
- package/dist/pwa/index.js +1 -1
- package/dist/pwa/inject.js +1 -1
- package/dist/pwa/manifest.js +1 -1
- package/dist/pwa/offline.js +1 -1
- package/dist/pwa/precache.js +1 -1
- package/dist/pwa/service-worker.js +1 -1
- package/dist/pwa/workbox-strategies.js +1 -1
- package/dist/pwa/workbox.js +1 -1
- package/dist/pwa.js +426 -426
- package/dist/reactive-bindings.js +1 -1
- package/dist/reactive.js +1 -1
- package/dist/reactivity.js +1 -1
- package/dist/release.js +1 -1
- package/dist/render.js +1 -1
- package/dist/route-middleware.js +1 -1
- package/dist/router.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/runtime-injection.js +1 -1
- package/dist/runtime.js +1 -1
- package/dist/safe-evaluator.js +1 -1
- package/dist/scaffolding.js +1 -1
- package/dist/screenshot.js +1 -1
- package/dist/script-classifier.js +1 -1
- package/dist/script-validation.js +1 -1
- package/dist/seo.js +1 -1
- package/dist/serve.js +1 -1
- package/dist/server-bindings.js +1 -1
- package/dist/server-components.js +1 -1
- package/dist/signal-processing.js +1 -1
- package/dist/signals-api.js +1 -1
- package/dist/signals.js +1 -1
- package/dist/site-builder/build.js +1 -1
- package/dist/site-builder/i18n.js +1 -1
- package/dist/site-builder/index.js +1 -1
- package/dist/site-builder/robots.js +1 -1
- package/dist/site-builder/router.js +1 -1
- package/dist/site-builder/seo.js +1 -1
- package/dist/site-builder/sitemap.js +1 -1
- package/dist/site-builder/theme.js +1 -1
- package/dist/slots.js +1 -1
- package/dist/source-maps.js +1 -1
- package/dist/spa-shell.js +1 -1
- package/dist/ssg.js +388 -388
- package/dist/ssr.js +1 -1
- package/dist/state-management.js +1 -1
- package/dist/store-imports.js +1 -1
- package/dist/store-loader.js +1 -1
- package/dist/stores-client.js +1 -1
- package/dist/story/addons.js +1 -1
- package/dist/story/analytics.js +1 -1
- package/dist/story/auto-stories.js +1 -1
- package/dist/story/bookmarks.js +1 -1
- package/dist/story/bun-test.js +1 -1
- package/dist/story/cli.js +1 -1
- package/dist/story/collect/analyzer.js +1 -1
- package/dist/story/collect/index.js +1 -1
- package/dist/story/collect/parser.js +1 -1
- package/dist/story/collect/scanner.js +1 -1
- package/dist/story/collect/tree.js +1 -1
- package/dist/story/commands/build.js +1 -1
- package/dist/story/commands/dev.js +1 -1
- package/dist/story/commands/index.js +1 -1
- package/dist/story/commands/preview.js +1 -1
- package/dist/story/compiled-output.js +1 -1
- package/dist/story/composition.js +1 -1
- package/dist/story/config-watcher.js +1 -1
- package/dist/story/config.js +1 -1
- package/dist/story/context.js +1 -1
- package/dist/story/controls/index.js +1 -1
- package/dist/story/crosswind.js +1 -1
- package/dist/story/desktop-preview.js +1 -1
- package/dist/story/docs-generator.js +1 -1
- package/dist/story/errors.js +1 -1
- package/dist/story/figma-export.js +1 -1
- package/dist/story/generator.js +1 -1
- package/dist/story/hmr.js +1 -1
- package/dist/story/hot-swap.js +1 -1
- package/dist/story/index.js +1 -1
- package/dist/story/interactions.js +1 -1
- package/dist/story/keyboard-shortcuts.js +1 -1
- package/dist/story/output.js +1 -1
- package/dist/story/performance.js +1 -1
- package/dist/story/presets.js +1 -1
- package/dist/story/props-validation.js +1 -1
- package/dist/story/renderer.js +1 -1
- package/dist/story/search-index.js +1 -1
- package/dist/story/search.js +1 -1
- package/dist/story/server.js +1 -1
- package/dist/story/setup.js +1 -1
- package/dist/story/snapshots.js +1 -1
- package/dist/story/testing.js +1 -1
- package/dist/story/theme.js +1 -1
- package/dist/story/ui/code-panel.js +1 -1
- package/dist/story/ui/controls-panel.js +1 -1
- package/dist/story/ui/index.js +1 -1
- package/dist/story/ui/navigation.js +1 -1
- package/dist/story/ui/preview.js +1 -1
- package/dist/story/visual-testing.js +1 -1
- package/dist/streaming.js +1 -1
- package/dist/strict-lint.js +1 -1
- package/dist/style-scoping.js +1 -1
- package/dist/suspense.js +1 -1
- package/dist/teleport.js +1 -1
- package/dist/template-compiler.js +1 -1
- package/dist/template-hydrator.js +1 -1
- package/dist/template-tag-balance.js +1 -1
- package/dist/testing.js +1 -1
- package/dist/transitions.js +1 -1
- package/dist/type-checker.js +1 -1
- package/dist/types/directive-types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types.js +1 -1
- package/dist/typescript-templates.js +1 -1
- package/dist/utils.js +1 -1
- package/dist/validator.js +1 -1
- package/dist/variable-extractor.js +1 -1
- package/dist/view-composers.js +1 -1
- package/dist/virtual-scrolling.js +1 -1
- package/dist/visual-editor.js +1 -1
- package/dist/vue-template.js +1 -1
- package/dist/web-components/css-scoping.js +1 -1
- package/dist/web-components/index.js +1 -1
- package/dist/web-components/reactive-generator.js +418 -1
- package/dist/web-components.js +1 -1
- package/dist/x-element.js +1 -1
- package/package.json +8 -7
- package/dist/chunk-0fmsckh1.js +0 -420
- package/dist/chunk-2t4gywvz.js +0 -3
- package/dist/chunk-2yw4e0h0.js +0 -3
- package/dist/chunk-32ka7sdc.js +0 -1
- package/dist/chunk-36jjen8k.js +0 -3
- package/dist/chunk-37q6x951.js +0 -3
- package/dist/chunk-3c7q2vbq.js +0 -3
- package/dist/chunk-3tk0sr6m.js +0 -3
- package/dist/chunk-5kjk30re.js +0 -3
- package/dist/chunk-6x5p7rhz.js +0 -3
- package/dist/chunk-73x9a59t.js +0 -3
- package/dist/chunk-9a7ce9v1.js +0 -3
- package/dist/chunk-9njgv29x.js +0 -3
- package/dist/chunk-9zkb2dsx.js +0 -3
- package/dist/chunk-bs7qttx8.js +0 -3
- package/dist/chunk-bxp8ps0f.js +0 -5
- package/dist/chunk-cnchhkk2.js +0 -3
- package/dist/chunk-cwjdwzn3.js +0 -3
- package/dist/chunk-d3at6tp3.js +0 -1
- package/dist/chunk-egn85zmj.js +0 -3
- package/dist/chunk-fcrwjh47.js +0 -3
- package/dist/chunk-ftq6q3nx.js +0 -3
- package/dist/chunk-fxfmwbny.js +0 -3
- package/dist/chunk-gfsk93gv.js +0 -246
- package/dist/chunk-h4k5wnbf.js +0 -3
- package/dist/chunk-kde1c2d4.js +0 -3
- package/dist/chunk-mf35r5h2.js +0 -3
- package/dist/chunk-mz4petzg.js +0 -3
- package/dist/chunk-qpg9jdqb.js +0 -3
- package/dist/chunk-r5rx348z.js +0 -3
- package/dist/chunk-rs2ejj8f.js +0 -3
- package/dist/chunk-s7fg0jy2.js +0 -3
- package/dist/chunk-s9hpp0gd.js +0 -3
- package/dist/chunk-sajzecge.js +0 -3
- package/dist/chunk-sfp05afy.js +0 -3
- package/dist/chunk-srq3dkj8.js +0 -3
- package/dist/chunk-sydw4nm4.js +0 -3
- package/dist/chunk-t6z4b0x6.js +0 -3
- package/dist/chunk-wh2szb9t.js +0 -3
- package/dist/chunk-xqq1vxb6.js +0 -1
- package/dist/chunk-xzjrrd36.js +0 -1
- package/dist/chunk-zx35qm5v.js +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{_x as Y}from"./chunk-wxvyj65q.js";import $ from"fs";import z from"path";async function v(w){let k=await $.promises.readFile(w,"utf-8"),G=z.basename(w,".stx");return B(k,G,w)}function B(w,k,G){let E=J(w),q=A(w),H=L(w),I=T(w),F=S(w),K=V(w);return{name:k,path:G,description:H,props:E,slots:q,dependencies:I,cssClasses:F,directives:K}}function J(w){let k=[],G=w.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(!G)return k;let E=G[1];try{let q=Y(E);for(let H of q){if(H.name.startsWith("_"))continue;if(H.type==="function")continue;let I=O(E,H.start),F={name:H.name,type:Z(H.value||"",void 0,I),required:!1,default:H.value?_(H.value):void 0};if(I){let K=I.match(/@type\s+\{([^}]+)\}/i);if(K){if(F.type=K[1].trim(),F.type.includes("|"))F.options=F.type.split("|").map((Q)=>Q.trim().replace(/['"]/g,"")).filter((Q)=>Q!=="")}if(I.match(/@required/i))F.required=!0;let X=I.split(`
|
|
3
3
|
`).map((Q)=>Q.trim().replace(/^\*\s*/,"")).filter((Q)=>!Q.startsWith("@")&&Q.length>0);if(X.length>0)F.description=X.join(" ").trim()}k.push(F)}}catch{return b(E)}return k}function O(w,k){let E=w.slice(0,k).match(/\/\*\*\s*([\s\S]*?)\s*\*\/\s*$/);return E?E[1]:void 0}function b(w){let k=[],G=/(?:\/\*\*\s*([\s\S]*?)\s*\*\/\s*)?(?:export\s+)?(?:const|let|var)\s+(\w+)\s*(?::\s*([^=]+))?\s*=\s*([^;\n]+)/g,E=G.exec(w);while(E!==null){let[,q,H,I,F]=E;if(H.startsWith("_"))continue;let K={name:H,type:Z(F,I,q),required:!1,default:_(F)};if(q){let W=q.match(/@type\s+\{([^}]+)\}/i);if(W){if(K.type=W[1].trim(),K.type.includes("|"))K.options=K.type.split("|").map((U)=>U.trim().replace(/['"]/g,"")).filter((U)=>U!=="")}if(q.match(/@required/i))K.required=!0;let Q=q.split(`
|
|
4
4
|
`).map((U)=>U.trim().replace(/^\*\s*/,"")).filter((U)=>!U.startsWith("@")&&U.length>0);if(Q.length>0)K.description=Q.join(" ").trim()}k.push(K),E=G.exec(w)}return k}function Z(w,k,G){if(G){let q=G.match(/@type\s+\{([^}]+)\}/i);if(q)return q[1].trim()}if(k)return k.trim();let E=w.trim();if(E==="true"||E==="false")return"boolean";if(/^['"`]/.test(E))return"string";if(/^-?\d+(?:\.\d+)?$/.test(E))return"number";if(E.startsWith("["))return"array";if(E.startsWith("{"))return"object";if(E==="null")return"null";if(E==="undefined")return"undefined";return"any"}function _(w){let k=w.trim();try{if(k==="true")return!0;if(k==="false")return!1;if(k==="null")return null;if(k==="undefined")return;if(/^-?\d+(?:\.\d+)?$/.test(k))return Number(k);if(/^['"`].*['"`]$/.test(k))return k.slice(1,-1);if(k.startsWith("[")||k.startsWith("{")){let E=k.replace(/'/g,'"');try{return JSON.parse(E)}catch{return k}}return k}catch{return k}}function A(w){let k=[],G=new Set;if(/\{\{\s*slot\s*\}\}/.test(w))k.push({name:"default"}),G.add("default");let E=/<slot\s*(?:name\s*=\s*["']([^"']+)["'])?\s*\/?>/gi,q=E.exec(w);while(q!==null){let H=q[1]||"default";if(!G.has(H))k.push({name:H}),G.add(H);q=E.exec(w)}return k}function L(w){let k=w.match(/^\s*<!--\s*([\s\S]*?)\s*-->/);if(k)return k[1].trim();let G=w.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(G){let E=G[1].match(/^\s*\/\*\*\s*([\s\S]*?)\s*\*\//);if(E){let q=E[1].split(`
|
|
5
5
|
`).map((H)=>H.trim().replace(/^\*\s*/,"")).filter((H)=>!H.startsWith("@")&&H.length>0);if(q.length>0)return q.join(" ").trim()}}return}function T(w){let k=[],G=new Set,E=/import\s+(\w+)\s+from\s+['"][^'"]+\.stx['"]/g,q=E.exec(w);while(q!==null){let F=q[1];if(!G.has(F))k.push(F),G.add(F);q=E.exec(w)}let H=/<([A-Z][a-zA-Z0-9]*)\b/g;q=H.exec(w);while(q!==null){let F=q[1];if(!G.has(F))k.push(F),G.add(F);q=H.exec(w)}let I=/@component\s*\(\s*['"]([^'"]+)['"]/g;q=I.exec(w);while(q!==null){let F=q[1];if(!G.has(F))k.push(F),G.add(F);q=I.exec(w)}return k}function S(w){let k=[],G=new Set,E=/class\s*=\s*["']([^"']+)["']/gi,q=E.exec(w);while(q!==null){let H=q[1];for(let I of H.split(/\s+/)){let F=I.trim();if(F&&!F.includes("{{")&&!G.has(F))k.push(F),G.add(F)}q=E.exec(w)}return k}function V(w){let k=new Map,G=["@if","@else","@elseif","@endif","@unless","@endunless","@foreach","@endforeach","@for","@endfor","@while","@endwhile","@switch","@case","@default","@endswitch","@component","@endcomponent","@slot","@endslot","@include","@layout","@extends","@section","@endsection","@yield","@push","@endpush","@stack","@once","@endonce","@auth","@endauth","@guest","@endguest","@can","@endcan","@cannot","@endcannot","@env","@endenv","@production","@endproduction","@js","@endjs","@ts","@endts","@css","@endcss","@json","@class","@style","@checked","@selected","@disabled","@readonly","@required"];for(let q of G){let H=new RegExp(q.replace("@","@"),"gi"),I=w.match(H);if(I&&I.length>0){let F=q.slice(1);if(!F.startsWith("end"))k.set(F,(k.get(F)||0)+I.length)}}let E=[];for(let[q,H]of k)E.push({name:q,count:H});return E.sort((q,H)=>H.count-q.count),E}
|
|
6
|
-
export{v as
|
|
6
|
+
export{v as Md,B as Nd,J as Od,A as Pd,L as Qd,T as Rd,S as Sd,V as Td};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function q(g){return g.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function L(g){if(g.clientReactive.to)return{value:g.clientReactive.to,reactive:!0};if(g.serverDynamic.to!==void 0)return{value:String(g.serverDynamic.to),reactive:!1};if(typeof g.static.to==="string")return{value:g.static.to,reactive:!1};return{value:"#",reactive:!1}}var O={name:"StxLink",aliases:["stx-link"],render(g,G,M){let z=L(g),E=(typeof g.static.class==="string"?g.static.class:"")||(typeof g.static.className==="string"?g.static.className:""),H=typeof g.static.activeClass==="string"?g.static.activeClass:"active",I=typeof g.static.exactActiveClass==="string"?g.static.exactActiveClass:"exact-active",J=g.static.prefetch===!0||g.static.prefetch==="true"||g.serverDynamic.prefetch===!0,j=[];if(z.reactive)j.push(`:href="${q(z.value)}"`);else j.push(`href="${q(z.value)}"`);if(E)j.push(`class="${q(E)}"`);if(j.push("data-stx-link"),j.push(`data-stx-active-class="${q(H)}"`),j.push(`data-stx-exact-active-class="${q(I)}"`),J)j.push("data-stx-prefetch");let K=new Set(["to","class","className","activeClass","exactActiveClass","prefetch"]);for(let[B,D]of Object.entries(g.static)){if(K.has(B))continue;if(typeof D==="boolean"){if(D)j.push(q(B))}else j.push(`${q(B)}="${q(D)}"`)}return`<a ${j.join(" ")}>${G}</a>`}};
|
|
3
|
-
export{O as
|
|
3
|
+
export{O as _y};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Au as n,Du as l,Gu as XJ,Iu as i,Lu as c,Su as a,yu as d}from"./chunk-7xcfy2fn.js";import{Wu as p,bv as ZJ,dv as $J}from"./chunk-9yz5d003.js";import{rB as VJ}from"./chunk-3jm3snz8.js";async function WJ(){try{return await import("./media/image/processor/index.js")}catch(J){if(!JJ)console.warn("[stx-media] Image processor not available, some features disabled:",J),JJ=!0;return null}}var JJ=!1,o=80,h="async",y="lazy",KJ=!1;async function m(J,K={}){let $=K,X=J;if(X.process&&!X.skipOptimization){if($.tsImagesConfig?.enabled&&!$.isDev)return RJ(X,$)}if($.processedResult?.processed)return s(J,$.processedResult,K);if($.responsiveVariants)return HJ(J,$.responsiveVariants,K);let{src:B,alt:Q,width:M,height:V,sizes:W,widths:w=d,dpr:k,formats:Z=n,quality:Y=o,params:N={},placeholder:G="none",placeholderOptions:j={},lazy:R=!0,priority:_=!1,loading:L=_?"eager":y,decoding:E=h,fetchpriority:D,objectFit:f,objectPosition:I,crossorigin:H,referrerpolicy:S}=J,F=J.class,O=J.style,z=J.id,x=J.data||{},{isDev:C=!1,baseUrl:v=""}=K;if(C&&!K.optimize)return kJ(J);let P,q,T=z||`stx-img-${Math.random().toString(36).slice(2,8)}`;if(G!=="none"&&!_)try{P=await $J(B,{strategy:G,...j}),q=ZJ(T,P,j)}catch{}let u=k!==void 0&&M!==void 0,b;if(u)b=GJ(J,T,P,K);else b=await wJ(J,T,P,K);let A;if(_){let t=Z.includes("webp")?"webp":Z[0],QJ=l(B,w,{...N,q:Y},t),MJ=typeof W==="object"?i(W):W||"100vw";A=`<link rel="preload" as="image" imagesrcset="${QJ}" imagesizes="${MJ}" />`}let g=[];if(!KJ&&G!=="none")g.push(p),KJ=!0;if(q)g.push(q);let qJ=R?YJ(T):void 0;return{html:b,preloadLink:A,css:g.length>0?g.join(`
|
|
3
3
|
`):void 0,script:qJ}}async function wJ(J,K,$,X){let{src:B,alt:Q,width:M,height:V,sizes:W,widths:w=d,formats:k=n,quality:Z=o,params:Y={},lazy:N=!0,priority:G=!1,loading:j=G?"eager":y,decoding:R=h,fetchpriority:_,objectFit:L,objectPosition:E,crossorigin:D,referrerpolicy:f}=J,I=J.class,H=J.style,S=J.data||{},F=typeof W==="object"?i(W):W||"100vw",O=[];for(let C of k){let v=l(B,w,{...Y,q:Z},C),P=a(C);if(N&&!G)O.push(` <source type="${P}" data-srcset="${v}" data-sizes="${F}" />`);else O.push(` <source type="${P}" srcset="${v}" sizes="${F}" />`)}let z=r({src:c(B,{...Y,q:Z}),alt:Q,width:M,height:V,loading:G?void 0:j,decoding:R,fetchpriority:G?"high":_,objectFit:L,objectPosition:E,crossorigin:D,referrerpolicy:f,className:BJ(I,$),style:e(H,L,E,$),lazy:N&&!G,data:S}),x;if($){let C=`background-image: url('${$.dataURL}'); background-size: cover; background-position: center;`;x=`<div id="${K}" class="stx-img-placeholder" style="${C}">
|
|
4
4
|
<picture>
|
|
5
5
|
${O.join(`
|
|
@@ -61,4 +61,4 @@ ${f.join(`
|
|
|
61
61
|
<img ${H.join(" ")} />
|
|
62
62
|
</picture>`;let C=[];if(K.placeholder)C.push(p);let v=M?YJ(G):void 0,P;if(V&&E)P=`<link rel="preload" as="image" imagesrcset="${E}" />`;return{html:x,preloadLink:P,css:C.length>0?C.join(`
|
|
63
63
|
`):void 0,script:v}}async function HJ(J,K,$){let X={src:K.src,processed:!0,variants:[],placeholder:K.placeholder?.dataURL,originalWidth:K.placeholder?.width,originalHeight:K.placeholder?.height};for(let[B,Q]of Object.entries(K.byFormat))if(Q)X.variants.push(...Q);return s(J,X,$)}
|
|
64
|
-
export{m as
|
|
64
|
+
export{m as vu,OJ as wu,NJ as xu};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function C(j,A={}){let B=[];for(let[D,G]of Object.entries(A)){if(G===void 0||G===null)continue;if(Array.isArray(G))B.push(`${D}=${encodeURIComponent(G.join(","))}`);else if(typeof G==="boolean"){if(G)B.push(`${D}=true`)}else B.push(`${D}=${encodeURIComponent(String(G))}`)}if(B.length===0)return j;let F=j.includes("?")?"&":"?";return`${j}${F}${B.join("&")}`}function O(j){let A=j.indexOf("?");if(A===-1)return{src:j,params:{}};let B=j.slice(0,A),F=j.slice(A+1),D={};for(let G of F.split("&")){let[K,L]=G.split("="),J=L?decodeURIComponent(L):"";if(J==="true")D[K]=!0;else if(J==="false")D[K]=!1;else if(/^-?\d+$/.test(J))D[K]=Number.parseInt(J,10);else if(/^-?\d+\.\d+$/.test(J))D[K]=Number.parseFloat(J);else if(J.includes(","))D[K]=J.split(",");else D[K]=J}return{src:B,params:D}}function M(...j){let A={};for(let B of j)if(B)Object.assign(A,B);return A}function Q(j,A,B,F){let D={w:A};if(B)D.h=B;if(F)D.fit=F;return C(j,D)}function X(j,A,B,F="center"){return C(j,{w:A,h:B,fit:"crop",crop:F})}function Y(j,A,B="center"){return C(j,{w:A,h:A,fit:"crop",crop:B})}function Z(j,A,B){return C(j,{w:A,h:B,fit:"max"})}function _(j,A,B){return C(j,{w:A,h:B,fit:"crop"})}function $(j,A){return C(j,{blur:Math.min(2000,Math.max(0,A))})}function R(j,A){return C(j,{sharp:Math.min(100,Math.max(0,A))})}function T(j){return C(j,{sat:-100})}function E(j,A=100){return C(j,{sepia:Math.min(100,Math.max(0,A))})}function H(j){return C(j,{invert:!0})}function W(j,A){return C(j,{bri:Math.min(100,Math.max(-100,A))})}function V(j,A){return C(j,{con:Math.min(100,Math.max(-100,A))})}function f(j,A){return C(j,{sat:Math.min(100,Math.max(-100,A))})}function S(j,A){return C(j,{rot:(A%360+360)%360})}function x(j){return C(j,{flip:"h"})}function k(j){return C(j,{flip:"v"})}function P(j,A,B){let F={fm:A};if(B!==void 0)F.q=B;return C(j,F)}function w(j,A){return C(j,{q:Math.min(100,Math.max(1,A))})}function q(j,A=["format","compress"]){return C(j,{auto:A})}function v(j,A,B={}){return C(j,{mark:A,markx:B.x,marky:B.y,markalpha:B.alpha,markscale:B.scale,markalign:B.align})}var N={web:{fm:"webp",q:80,auto:["format","compress"]},highQuality:{q:95},thumb:{w:150,h:150,fit:"crop",crop:"center"},avatar:{w:200,h:200,fit:"crop",crop:"faces"},social:{w:1200,h:630,fit:"crop"},preview:{w:400,q:70},placeholder:{w:20,blur:200,q:20}};function y(j,A,B){return C(j,M(N[A],B))}function b(j,A,B){return A.map((F)=>C(j,{...B,w:F}))}function z(j,A,B=[1,2,3],F){return B.map((D)=>C(j,{...F,w:Math.round(A*D),dpr:D}))}function U(j){let A=[];if(j.w!==void 0&&(j.w<1||j.w>16383))A.push("Width must be between 1 and 16383");if(j.h!==void 0&&(j.h<1||j.h>16383))A.push("Height must be between 1 and 16383");if(j.q!==void 0&&(j.q<1||j.q>100))A.push("Quality must be between 1 and 100");if(j.blur!==void 0&&(j.blur<0||j.blur>2000))A.push("Blur must be between 0 and 2000");if(j.rot!==void 0&&(j.rot<0||j.rot>359))A.push("Rotation must be between 0 and 359");if(j.dpr!==void 0&&(j.dpr<1||j.dpr>5))A.push("DPR must be between 1 and 5");return{valid:A.length===0,errors:A}}function I(j){let A={...j};if(A.w!==void 0)A.w=Math.min(16383,Math.max(1,A.w));if(A.h!==void 0)A.h=Math.min(16383,Math.max(1,A.h));if(A.q!==void 0)A.q=Math.min(100,Math.max(1,A.q));if(A.blur!==void 0)A.blur=Math.min(2000,Math.max(0,A.blur));if(A.rot!==void 0)A.rot=(A.rot%360+360)%360;if(A.dpr!==void 0)A.dpr=Math.min(5,Math.max(1,A.dpr));return A}
|
|
3
|
-
export{C as
|
|
3
|
+
export{C as Zj,O as _j,M as $j,Q as ak,X as bk,Y as ck,Z as dk,_ as ek,$ as fk,R as gk,T as hk,E as ik,H as jk,W as kk,V as lk,f as mk,S as nk,x as ok,k as pk,P as qk,w as rk,q as sk,v as tk,N as uk,y as vk,b as wk,z as xk,U as yk,I as zk};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var B=0,A=new Map;function F(){B=0,A.clear()}function G(b,q){let j=B++,w=`<!--__STX_${b.toUpperCase()}_${j}__-->`;return A.set(w,{type:b,expression:q}),w}function I(){let b={};for(let[q,j]of A)b[q]={type:j.type,expression:j.expression};return b}function J(b){let q={},j=/<!--__STX_(EXPR|COND|RAW)_(\d+)__-->/g,w;while((w=j.exec(b))!==null){let z=w[0],D=w[1].toLowerCase(),E=A.get(z);q[z]={type:D,expression:E?.expression||""}}return q}function K(b,q){let j=b;for(let[w,z]of q)j=j.split(w).join(z);return j}function N(b){return b.includes("<!--__STX_")}
|
|
3
|
-
export{F as
|
|
3
|
+
export{F as au,G as bu,I as cu,J as du,K as eu,N as fu};
|
|
@@ -271,4 +271,4 @@ else {
|
|
|
271
271
|
})();
|
|
272
272
|
</script>
|
|
273
273
|
`}var J=null;function X(k){if(!J)J=new K(k);return J}function Y(){if(J)J.getRegistry().clear(),J=null}var Z={ComponentHMRHandler:K,getHMRHandler:X,resetHMRHandler:Y,generateHMRClientScript:U,wrapComponentForHMR:W};
|
|
274
|
-
export{K as
|
|
274
|
+
export{K as ap,U as bp,W as cp,X as dp,Y as ep,Z as fp};
|
|
@@ -230,4 +230,4 @@ function Y(A){if(!A)return[];if(Array.isArray(A))return A;return Object.entries(
|
|
|
230
230
|
</div>
|
|
231
231
|
</div>
|
|
232
232
|
`}function F(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
233
|
-
export{R as
|
|
233
|
+
export{R as db,Z as eb,$ as fb,j as gb,y as hb,B as ib,D as jb,E as kb,G as lb,J as mb,M as nb,k as ob,N as pb};
|
|
@@ -3,4 +3,4 @@ async function E(G){try{let k=await Bun.file(G).text(),q=M(k),H=N(k,G),K=W(k,q),
|
|
|
3
3
|
`),q=G.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i),K=(q?q[1]:"").split(`
|
|
4
4
|
`).length,J={conditionals:(G.match(/@(if|unless|elseif|else|endif|endunless)\b/g)||[]).length,loops:(G.match(/@(foreach|for|endforeach|endfor|while|endwhile)\b/g)||[]).length,includes:(G.match(/@(include|component|extends|section|yield)\b/g)||[]).length,custom:0,total:0};J.total=J.conditionals+J.loops+J.includes+J.custom;let X=(G.match(/\{\{[\s\S]*?\}\}/g)||[]).length,Z=(G.match(/\{!![\s\S]*?!!\}/g)||[]).length,Y=(G.match(/@(?:if|unless|elseif|foreach|for|while)\s*\([^)]+\)/g)||[]).length,V=X+Z+Y,Q=(G.match(/<[A-Z][^>]*>/g)||[]).length,$=(G.match(/@(?:layout|extends)\(/g)||[]).length,j=0,z=0;for(let _ of k)if(/@(?:if|unless|foreach|for|while|section)\b/.test(_)&&!/@end/.test(_)&&!/@else/.test(_))z++,j=Math.max(j,z);else if(/@end(?:if|unless|foreach|for|while|section)\b/.test(_))z--;let O=j>=4?3:0,U=Math.min(10,Math.ceil(J.total*0.5+V*0.1+Q*0.3+(K>10?K*0.05:0)+O));return{lines:k.length,characters:G.length,directives:J,expressions:V,components:Q,layouts:$,scriptLines:K,complexity:U}}function N(G,k){let q=[],H=A(G,"if","endif");if(H>0)q.push({type:"error",category:"syntax",message:`Found ${H} unmatched @if directive(s)`,suggestion:"Ensure every @if has a corresponding @endif"});let K=A(G,"foreach","endforeach");if(K>0)q.push({type:"error",category:"syntax",message:`Found ${K} unmatched @foreach directive(s)`,suggestion:"Ensure every @foreach has a corresponding @endforeach"});let J=G.match(/@foreach[\s\S]*?@foreach[\s\S]*?@endforeach[\s\S]*?@endforeach/g);if(J&&J.length>0)q.push({type:"warning",category:"performance",message:"Nested loops detected which may impact performance",suggestion:"Consider preprocessing data or using more efficient data structures"});let X=(G.match(/\{!![\s\S]*?!!\}/g)||[]).length;if(X>0)q.push({type:"warning",category:"security",message:`Found ${X} raw output expression(s) {!! !!}`,suggestion:"Ensure raw outputs are properly sanitized to prevent XSS"});let Z=G.match(/<img[^>]*>/g);if(Z){let Q=Z.filter(($)=>!$.includes("alt="));if(Q.length>0)q.push({type:"warning",category:"accessibility",message:`Found ${Q.length} image(s) without alt attributes`,suggestion:"Add alt attributes to all images for screen reader accessibility"})}let Y=G.split(`
|
|
5
5
|
`).filter((Q)=>Q.length>120);if(Y.length>0)q.push({type:"info",category:"maintainability",message:`Found ${Y.length} line(s) longer than 120 characters`,suggestion:"Consider breaking long lines for better readability"});let V=(G.match(/style\s*=\s*["'][^"']*["']/g)||[]).length;if(V>3)q.push({type:"info",category:"maintainability",message:`Found ${V} inline style attributes`,suggestion:"Consider moving styles to CSS classes for better maintainability"});return q}function W(G,k){let q=[];if(k.complexity>7)q.push({type:"refactor",message:"Template complexity is high. Consider breaking into smaller components.",impact:"high",effort:"medium"});else if(k.complexity>5&&k.directives.total>8)q.push({type:"optimization",message:"Template has moderate complexity. Consider component extraction for reusability.",impact:"medium",effort:"low"});if(k.lines>100&&k.components===0)q.push({type:"refactor",message:"Large template with no components. Consider extracting reusable parts into components.",impact:"medium",effort:"medium"});if(k.expressions>20)q.push({type:"optimization",message:"Many template expressions detected. Consider preprocessing some data in the script section.",impact:"medium",effort:"low"});let H=G.match(/@foreach[\s\S]*?@foreach[\s\S]*?@endforeach[\s\S]*?@endforeach/g);if(H&&H.length>0)q.push({type:"optimization",message:"Nested loops detected. Consider preprocessing data or optimizing data structures.",impact:"high",effort:"medium"});if(k.directives.total===0&&k.expressions<5)q.push({type:"optimization",message:"Template appears static. Consider enabling aggressive caching.",impact:"high",effort:"low"});if(k.scriptLines>50)q.push({type:"refactor",message:"Large script section. Consider moving complex logic to external modules.",impact:"medium",effort:"medium"});return q}function w(G,k){let q=1;if(q+=k.directives.conditionals*0.1,q+=k.directives.loops*0.5,q+=k.directives.includes*2,q+=k.expressions*0.05,q+=k.components*1,k.scriptLines>10)q+=k.scriptLines*0.1;let H;if(k.expressions===0&&k.directives.total===0)H="high";else if(k.expressions<5&&k.directives.total<3)H="medium";else H="low";let K=[];if(q>10)K.push("Consider optimizing template complexity");if(H==="low"&&k.directives.total>5)K.push("Reduce dynamic content for better caching");if(k.components===0&&k.lines>40)K.push("Extract components to improve reusability and performance");return{estimatedRenderTime:Math.round(q*100)/100,complexityScore:k.complexity,cacheability:H,recommendations:K}}function A(G,k,q){let H=G.replace(/<!--[\s\S]*?-->/g,""),K=(H.match(new RegExp(`@${k}\\b`,"g"))||[]).length,J=(H.match(new RegExp(`@${q}\\b`,"g"))||[]).length;return Math.abs(K-J)}async function I(G=["**/*.stx"],k){let q=[],H=[];for(let J of G){let X=await Array.fromAsync(new Bun.Glob(J).scan({cwd:k||process.cwd(),onlyFiles:!0,absolute:!0}));H.push(...X.filter((Z)=>Z.endsWith(".stx")))}for(let J of H)try{let X=await E(J);q.push(X)}catch(X){console.warn(`Failed to analyze ${J}:`,X)}let K=B(q);return{results:q,summary:K}}function B(G){let k=G.length,q=G.reduce((V,Q)=>V+Q.metrics.lines,0),H=k>0?G.reduce((V,Q)=>V+Q.metrics.complexity,0)/k:0,K=G.reduce((V,Q)=>V+Q.issues.length,0),J={};G.forEach((V)=>{V.issues.forEach((Q)=>{J[Q.category]=(J[Q.category]||0)+1})});let X=k>0?G.reduce((V,Q)=>V+Q.performance.estimatedRenderTime,0)/k:0,Z=Math.max(1,Math.min(10,Math.round(10-X/2-H/2))),Y=[];if(H>6)Y.push("Project has high average complexity. Consider refactoring complex templates.");if(K>k*2)Y.push("High number of issues detected. Run detailed analysis on individual files.");if(J.security>0)Y.push("Security issues found. Review raw output usage and input sanitization.");return{totalFiles:k,totalLines:q,avgComplexity:Math.round(H*100)/100,totalIssues:K,issuesByCategory:J,performanceScore:Z,recommendations:Y}}
|
|
6
|
-
export{E as
|
|
6
|
+
export{E as Hq,I as Iq};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{g as
|
|
2
|
+
import{Wm as T}from"./chunk-cygfdk1n.js";import{rB as I}from"./chunk-3jm3snz8.js";import E from"fs";import X from"path";import U from"crypto";var _=new Set(["webp","avif","jpeg","png"]),F=new Set(["cover","contain","fill","inside","outside"]),A=new Set([".jpg",".jpeg",".png",".webp",".avif",".gif"]),S=4096,y=80,D="cover";async function g(k,G){let J=G.routePath??"/_stx/img",B=new URL(k.url);if(B.pathname!==J)return null;let $=q(B,G);if(!$.ok)return new Response($.error,{status:$.status,headers:{"Content-Type":"text/plain"}});let{srcFsPath:j,srcUrl:K,width:H,height:v,format:Z,quality:Y,fit:z}=$,C;try{C=E.statSync(j)}catch{return new Response(`Source image not found: ${K}`,{status:404,headers:{"Content-Type":"text/plain"}})}if(!C.isFile())return new Response("Not a file",{status:404,headers:{"Content-Type":"text/plain"}});let N=G.cacheDir??".stx/cache/img";await E.promises.mkdir(N,{recursive:!0});let V=`${j}:${C.mtimeMs}:${C.size}`,O=`${H}x${v}:${Z}:${Y}:${z}`,b=U.createHash("sha256").update(`${V}|${O}`).digest("hex").slice(0,16),Q=X.join(N,`${b}.${Z}`),W={"Content-Type":T(Z),"Cache-Control":"public, max-age=31536000, immutable",ETag:`"${b}"`,"X-Stx-Image-Cache":"HIT"};if(k.headers.get("if-none-match")===`"${b}"`)return new Response(null,{status:304,headers:W});let L=Bun.file(Q);if(await L.exists())return new Response(L,{headers:W});try{let R=Buffer.from(await Bun.file(j).arrayBuffer()),{resizeAndConvert:M}=await P(),w=await M(R,{width:H,height:v,format:Z,quality:Y,fit:z});return await Bun.write(Q,w),W["X-Stx-Image-Cache"]="MISS",new Response(new Uint8Array(w),{headers:W})}catch(R){let M=R.message;return new Response(`Image processing failed: ${M}`,{status:500,headers:{"Content-Type":"text/plain"}})}}function l(k){return async(G)=>{return await g(G,k)??new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain"}})}}function q(k,G){let J=k.searchParams.get("src");if(!J)return{ok:!1,error:"Missing required param: src",status:400};if(!J.startsWith("/"))return{ok:!1,error:"src must be an absolute URL path (start with /)",status:400};if(J.startsWith("//"))return{ok:!1,error:"src must be a local path",status:400};let B=X.extname(J).toLowerCase();if(!A.has(B))return{ok:!1,error:`Unsupported source extension: ${B}`,status:400};let $=X.resolve(G.publicDir),j=X.resolve($,J.slice(1));if(!j.startsWith(`${$}${X.sep}`)&&j!==$)return{ok:!1,error:"src is outside publicDir",status:400};let K=G.maxWidth??S,H=G.maxHeight??S,v=k.searchParams.get("w"),Z=k.searchParams.get("h"),Y=v?Number.parseInt(v,10):0,z=Z?Number.parseInt(Z,10):0;if(v&&(!Number.isFinite(Y)||Y<=0))return{ok:!1,error:"Invalid w (must be positive integer)",status:400};if(Z&&(!Number.isFinite(z)||z<=0))return{ok:!1,error:"Invalid h (must be positive integer)",status:400};if(!v&&!Z)return{ok:!1,error:"At least one of w or h is required",status:400};let C=Math.min(Y||K,K),N=Math.min(z||H,H),V=k.searchParams.get("f")||"webp";if(!_.has(V))return{ok:!1,error:`Invalid f (must be one of: ${[..._].join(", ")})`,status:400};let O=V,b=k.searchParams.get("q"),Q=b?Number.parseInt(b,10):G.defaultQuality??y;if(!Number.isFinite(Q)||Q<1||Q>100)return{ok:!1,error:"Invalid q (must be 1-100)",status:400};let x=k.searchParams.get("fit")||G.defaultFit||D;if(!F.has(x))return{ok:!1,error:`Invalid fit (must be one of: ${[...F].join(", ")})`,status:400};return{ok:!0,srcFsPath:j,srcUrl:J,width:C,height:N,format:O,quality:Q,fit:x}}async function P(){return await import("./image-optimization/processor.js")}
|
|
3
|
+
export{g as am,l as bm};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Nn as I,On as T,Pn as P,Qn as q}from"./chunk-eh8hact1.js";import{Sn as w,Un as M,Vn as N,Wn as R,Xn as Y,Yn as W}from"./chunk-xhkjhxsp.js";import j from"fs";import k from"path";async function c(b={}){let B=Date.now(),H=[],L=b.cwd||process.cwd(),x=(A)=>{H.push(A)},G=(A)=>{if(b.onProgress)b.onProgress(A)},J=k.resolve(L,b.directory||"dist"),h=b.token||process.env.NETLIFY_AUTH_TOKEN,V=b.siteId||process.env.NETLIFY_SITE_ID;if(!h)throw new Q(`No Netlify auth token found.
|
|
3
3
|
|
|
4
4
|
To deploy to Netlify:
|
|
5
5
|
1. Create account at https://app.netlify.com
|
|
@@ -25,4 +25,4 @@ Check your site ID or create a new site at https://app.netlify.com`,"SITE_NOT_FO
|
|
|
25
25
|
`))x+=`
|
|
26
26
|
`}x+=`NETLIFY_SITE_ID=${b.siteId}
|
|
27
27
|
`,await Bun.write(L,x)}return{configPath:H,siteId:b.siteId}}class Q extends Error{code;constructor(b,B){super(b);this.name="DeployError",this.code=B}}function F(b){let B=process.platform,H=B==="darwin"?"open":B==="win32"?"start":"xdg-open";Bun.spawn([H,b],{stdio:["ignore","ignore","ignore"]})}
|
|
28
|
-
export{c as
|
|
28
|
+
export{c as Jn,s as Kn,Q as Ln};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{iz as i}from"./chunk-3rh7va1z.js";function r(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let a=e.static[t];if(typeof a==="string")return a;return}var o={sm:"16rem",md:"24rem",lg:"32rem",xl:"40rem"},v={name:"StxDrawer",aliases:["stx-drawer"],render(e,t,a){let n=r(e,"id");if(!n)return console.warn('[stx] <StxDrawer> requires an "id" prop'),"<!-- StxDrawer: missing id prop -->";let d=i(n),l=r(e,"side")||"right",c=r(e,"size")||"md",p=r(e,"closeOnBackdrop")!=="false",w=r(e,"closeOnEscape")!=="false",f=r(e,"overlay")!=="false",x=o[c]||o.md,s=l==="left",m=s?"left:0":"right:0",g=s?"translateX(-100%)":"translateX(100%)",u=s?"stx-drawer-slide-left":"stx-drawer-slide-right";return`<div id="stx-drawer-${d}" class="stx-drawer-backdrop" data-stx-drawer="${d}" data-close-backdrop="${p}" data-close-escape="${w}" style="display:none;position:fixed;inset:0;z-index:99999;${f?"background:rgba(0,0,0,0.5);backdrop-filter:blur(2px)":"background:transparent;pointer-events:none"};opacity:0;transition:opacity 0.2s ease" role="dialog" aria-modal="true">
|
|
3
3
|
<div class="stx-drawer-panel" style="position:fixed;top:0;bottom:0;${m};width:${x};max-width:100vw;transform:${g};transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);background:var(--stx-drawer-bg,#fff);color:var(--stx-drawer-text,#1f2937);box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow-y:auto;pointer-events:auto">
|
|
4
4
|
<div style="padding:1.5rem">${t}</div>
|
|
5
5
|
</div>
|
|
@@ -9,4 +9,4 @@ import{aC as i}from"./chunk-hkjq64we.js";function r(e,t){if(e.serverDynamic[t]!=
|
|
|
9
9
|
.stx-drawer-backdrop[data-stx-drawer-open]{display:block!important;opacity:1}
|
|
10
10
|
.stx-drawer-backdrop[data-stx-drawer-open] .stx-drawer-panel{transform:translateX(0)}
|
|
11
11
|
</style>`}};
|
|
12
|
-
export{v as
|
|
12
|
+
export{v as ez};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{qB as U}from"./chunk-3jm3snz8.js";function K(j){let q={"cache-first":{className:"CacheFirst",importFrom:"workbox-strategies"},"network-first":{className:"NetworkFirst",importFrom:"workbox-strategies"},"stale-while-revalidate":{className:"StaleWhileRevalidate",importFrom:"workbox-strategies"},"network-only":{className:"NetworkOnly",importFrom:"workbox-strategies"},"cache-only":{className:"CacheOnly",importFrom:"workbox-strategies"}};return q[j]||q["network-first"]}function V(j){return K(j).className}function X(j){return{className:"ExpirationPlugin",importFrom:"workbox-expiration",options:{...j.maxEntries&&{maxEntries:j.maxEntries},...j.maxAgeSeconds&&{maxAgeSeconds:j.maxAgeSeconds},...j.purgeOnQuotaError!==void 0&&{purgeOnQuotaError:j.purgeOnQuotaError}}}}function Y(j){return{className:"CacheableResponsePlugin",importFrom:"workbox-cacheable-response",options:{...j.statuses&&{statuses:j.statuses},...j.headers&&{headers:j.headers}}}}function d(j){return{className:"BackgroundSyncPlugin",importFrom:"workbox-background-sync",options:{name:j.name,...j.maxRetentionTime&&{maxRetentionTime:j.maxRetentionTime},...j.forceSyncFallback!==void 0&&{forceSyncFallback:j.forceSyncFallback}}}}function Z(j){let q=K(j.strategy),B=[];if(j.maxAgeSeconds||j.maxEntries)B.push(X({maxAgeSeconds:j.maxAgeSeconds,maxEntries:j.maxEntries,purgeOnQuotaError:!0}));if(j.strategy==="network-first"||j.strategy==="stale-while-revalidate")B.push(Y({statuses:[0,200]}));return{urlPattern:j.pattern,handler:q.className,options:{cacheName:j.cacheName,...B.length>0&&{plugins:B}}}}function A(j){return j.map((q)=>Z(q))}function N(j){let q=j.pwa;if(!q?.enabled)return"";let B=q.routes||[],G=q.cacheStorage,I=[];for(let z of B){let L=V(z.strategy),H=[];if(z.maxAgeSeconds||z.maxEntries||G?.maxEntries){let Q=z.maxEntries||G?.maxEntries||100,J=z.maxAgeSeconds||(G?.maxAge?G.maxAge*24*60*60:void 0);H.push(`new ExpirationPlugin({
|
|
3
3
|
maxEntries: ${Q},
|
|
4
4
|
${J?`maxAgeSeconds: ${J},`:""}
|
|
5
5
|
purgeOnQuotaError: true,
|
|
@@ -18,4 +18,4 @@ registerRoute(
|
|
|
18
18
|
})
|
|
19
19
|
);`)}return I.join(`
|
|
20
20
|
`)}function _(j){if(j.startsWith("*.")){let q=j.slice(2);return`({ request }) => request.destination === '${$(q)}'`}if(j.endsWith("/**"))return`({ url }) => url.pathname.startsWith('${j.slice(0,-3)}')`;if(j.endsWith("/*")){let q=j.slice(0,-2);return`({ url }) => url.pathname.startsWith('${q}') && !url.pathname.slice(${q.length+1}).includes('/')`}if(j.includes("*")&&!j.startsWith("*")){let[q,B]=j.split("*");return`({ url }) => url.pathname.startsWith('${q}') && url.pathname.endsWith('${B}')`}if(j==="/"||!j.includes("*"))return`({ url }) => url.pathname === '${j}'`;return`new RegExp('${D(j).replace(/\\\*/g,".*")}')`}function $(j){return{js:"script",mjs:"script",css:"style",html:"document",htm:"document",png:"image",jpg:"image",jpeg:"image",gif:"image",svg:"image",webp:"image",avif:"image",ico:"image",woff:"font",woff2:"font",ttf:"font",eot:"font",otf:"font"}[j.toLowerCase()]||"empty"}function v(j){return"stx-"+j.replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").toLowerCase().slice(0,30)+"-cache"}function D(j){return j.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var F=()=>{};
|
|
21
|
-
export{K as
|
|
21
|
+
export{K as We,V as Xe,X as Ye,Y as Ze,d as _e,Z as $e,A as af,N as bf,_ as cf,F as df};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Sv as e4}from"./chunk-ktpc2rc4.js";import{dw as a4}from"./chunk-9p45wwff.js";import{fw as W1}from"./chunk-m911bf2b.js";import{mw as s4}from"./chunk-a50svyjn.js";import{nw as L0}from"./chunk-7aph6rw7.js";import{pw as o1}from"./chunk-y92w0240.js";import{qw as D4,rw as E4,sw as M4,tw as y4,uw as k3,vw as N3}from"./chunk-v9199ywv.js";import{Cw as o4}from"./chunk-a4zj7qpt.js";import{Dw as r4}from"./chunk-zepv7y44.js";import{Jw as Y4,Kw as Z4}from"./chunk-v0s45ek4.js";import{Ow as C4}from"./chunk-2rd0ykrg.js";import{Tw as I3}from"./chunk-6sx4d083.js";import{Ww as i0}from"./chunk-r7d26vjj.js";import{ax as n4}from"./chunk-ccgmxmjk.js";import{cx as n1,dx as r1,ex as Q5,fx as a1,gx as J5,hx as z5}from"./chunk-593x2ccf.js";import{lx as T3}from"./chunk-1bzckhs2.js";import{nx as R3}from"./chunk-a2xzs4kd.js";import{$x as M3,ay as P0}from"./chunk-5tv1swsr.js";import{dy as X5}from"./chunk-8g0jb444.js";import{ey as O1,fy as Q3,gy as F4,hy as p0,iy as K1,jy as q1}from"./chunk-h1035wzj.js";import{Cy as p4}from"./chunk-ms6793rw.js";import{Fy as v4}from"./chunk-zr8631g4.js";import{Jy as l4,Ky as c4,Ly as i4}from"./chunk-c9f5k95v.js";import{Vy as u4}from"./chunk-9fj7hpwa.js";import{jz as T4,kz as F3}from"./chunk-rdaavfsg.js";import{Az as Z5,Bz as $5,xz as t4,zz as Y5}from"./chunk-tavtph8x.js";import{Lz as b4}from"./chunk-0t75nh4z.js";import{cA as x4,eA as h4}from"./chunk-fh1d8bxd.js";import{rA as d4}from"./chunk-w719zps0.js";import{tA as m4}from"./chunk-eghdf4qq.js";import{GA as R4,uA as t0,vA as v3}from"./chunk-xgmza98t.js";import{KA as T0,LA as P4,MA as f4,NA as g4}from"./chunk-zxxt0c9q.js";import{XA as t3,YA as M1}from"./chunk-t7ghqd7e.js";import{$A as E1}from"./chunk-xmjedbkt.js";import{dB as H0,hB as g0}from"./chunk-gcsqn7x9.js";import{iB as k4,kB as w0,lB as N4}from"./chunk-7t4hkmxb.js";import{sB as f0,vB as I4}from"./chunk-pjaa8q7x.js";import{wB as Y1,yB as Z1}from"./chunk-b0w1cm1s.js";import{FB as q0}from"./chunk-jm460jxs.js";import{NB as U5}from"./chunk-h6s1thg6.js";import{RB as w3}from"./chunk-yssvz8zs.js";import{SB as v1}from"./chunk-rkr7cgs8.js";import{TB as g1}from"./chunk-md4j8nch.js";import{UB as u1}from"./chunk-qvmrwh8n.js";import{VB as x1}from"./chunk-3rgj1qn6.js";import{XB as l1}from"./chunk-zvyc82ke.js";import{YB as d1}from"./chunk-1w3354fv.js";import{ZB as m1}from"./chunk-sd2c11bp.js";import{$B as h1}from"./chunk-sk1gmrr8.js";import{bC as f1}from"./chunk-9ezvda3j.js";import{cC as P1}from"./chunk-c23697dp.js";import{hC as m3,jC as Y0,kC as t,oC as B0,pC as e,rC as $1}from"./chunk-p5j0686t.js";import{KC as S4}from"./chunk-bg1xym0q.js";import{VC as V4,bD as W3,cD as L3}from"./chunk-08ncwhv7.js";import{fD as A4}from"./chunk-6jhqq7es.js";import{lD as B3,mD as O3,nD as V3,oD as A3,pD as w4}from"./chunk-r1m8g439.js";import{jE as g}from"./chunk-6r70w54p.js";import D0 from"path";import h0 from"fs";import i6 from"fs";import C from"path";var C0={},$3=new Map;function _5(Y){let Q=$3.get(Y);if(!Q){let $=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Q=new RegExp(`:${$}(?!\\w)`,"g"),$3.set(Y,Q)}return Q.lastIndex=0,Q}var s0={uppercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toUpperCase():""},lowercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toLowerCase():""},capitalize:(Y,Q)=>{if(Y===void 0||Y===null)return"";let $=String(Y);return $.charAt(0).toUpperCase()+$.slice(1)},number:(Y,Q,$=0)=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);return Number.isNaN(X)?"":X.toFixed(Number.parseInt(String($),10))}catch{return""}},fmt:(Y,Q,$="en-US")=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);if(Number.isNaN(X))return String(Y);return X.toLocaleString($)}catch{return String(Y)}},join:(Y,Q,$=",")=>{if(!Array.isArray(Y))return"";return Y.join(String($))},escape:(Y,Q)=>{if(Y===void 0||Y===null)return"";return n0(String(Y))},translate:(Y,Q,$={})=>{if(!Q||!Q.__translations)return Y;let X=Q.__translations,J=Q.__i18nConfig?.fallbackToKey??!0,Z=String(Y).split("."),z=X;for(let U of Z){if(z===void 0||z===null)break;z=z[U]}if(z===void 0||z===null)return J?Y:"";let G=String(z);return Object.entries($).forEach(([U,_])=>{G=G.replace(_5(U),String(_))}),G},t:(Y,Q,$={})=>{return s0.translate(Y,Q,$)},truncate:(Y,Q,$=50,X="...")=>{if(Y===void 0||Y===null)return"";let J=String(Y);if(J.length<=$)return J;if($<=X.length)return X.substring(0,$);return J.substring(0,$-X.length)+X},date:(Y,Q,$="short",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Y instanceof Date?Y:new Date(Y);if(Number.isNaN(J.getTime()))return String(Y);let Z={short:{dateStyle:"short"},medium:{dateStyle:"medium"},long:{dateStyle:"long"},full:{dateStyle:"full"},time:{timeStyle:"short"},datetime:{dateStyle:"short",timeStyle:"short"},iso:{}};if($==="iso")return J.toISOString();return new Intl.DateTimeFormat(X,Z[$]||Z.short).format(J)}catch{return String(Y)}},currency:(Y,Q,$="USD",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Number(Y);if(Number.isNaN(J))return String(Y);return new Intl.NumberFormat(X,{style:"currency",currency:$}).format(J)}catch{return String(Y)}},pluralize:(Y,Q,$,X)=>{let J=Number(Y);if(Number.isNaN(J))return $;let Z=X||`${$}s`;return J===1?$:Z},first:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[0];return String(Y).charAt(0)},last:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[Y.length-1];let $=String(Y);return $.charAt($.length-1)},length:(Y,Q)=>{if(Y===void 0||Y===null)return 0;if(Array.isArray(Y)||typeof Y==="string")return Y.length;if(Y instanceof Map||Y instanceof Set)return Y.size;if(typeof Y==="object")return Object.keys(Y).length;return 0},json:(Y,Q,$=!1)=>{if(Y===void 0)return"undefined";if(Y===null)return"null";try{return $?JSON.stringify(Y,null,2):JSON.stringify(Y)}catch{return String(Y)}},default:(Y,Q,$="")=>{return Y===void 0||Y===null||Y===""?$:Y},reverse:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return[...Y].reverse();return String(Y).split("").reverse().join("")},slice:(Y,Q,$=0,X)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y)||typeof Y==="string")return Y.slice($,X);return Y},replace:(Y,Q,$,X="")=>{if(Y===void 0||Y===null)return"";let J=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return String(Y).replace(new RegExp(J,"g"),()=>X)},stripTags:(Y,Q)=>{if(Y===void 0||Y===null)return"";return String(Y).replace(/<[^>]*>/g,"")},urlencode:(Y,Q)=>{if(Y===void 0||Y===null)return"";return encodeURIComponent(String(Y))},abs:(Y,Q)=>{let $=Number(Y);return Number.isNaN($)?0:Math.abs($)},round:(Y,Q,$=0)=>{let X=Number(Y);if(Number.isNaN(X))return 0;let J=10**$;return Math.round(X*J)/J}};function W5(Y,Q){if(Y in s0)console.warn(`Filter "${Y}" already exists as a built-in filter. Custom filter will take precedence.`);C0[Y]=Q}function I7(Y){for(let[Q,$]of Object.entries(Y))W5(Q,$)}function L5(){return{...s0,...C0}}function k7(){for(let Y of Object.keys(C0))delete C0[Y]}function n0(Y){return Y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function v0(Y){let Q=/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script>/gi,$;while(($=Q.exec(Y))!==null){let X=$[1];if(/\b(state|derived|effect|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/.test(X))return!0}if(/@(if|for|show)\s*=\s*["'][^"']*\(\s*\)/.test(Y))return!0;if(/@for\s*=\s*["'][^"']*\s+(?:in|of)\s+[^"']*\(\s*\)/.test(Y))return!0;if(/(?:^|[\s"'])(?::|x-)(?:for|if|else-if|else|show|text|html|model|bind)\b/.test(Y))return!0;return!1}function X3(Y,Q){let $=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined","NaN","Infinity","isNaN","isFinite","window","document","console"],X=Y.replace(/'[^']*'/g,"").replace(/"[^"]*"/g,""),J="",Z=!1,z=0;for(let _=0;_<X.length;_++){let K=X[_];if(!Z&&K==="`"){Z=!0,z=0;continue}if(Z){if(K==="`"&&z===0){Z=!1;continue}if(K==="$"&&X[_+1]==="{"){z++,_++;continue}if(K==="}"&&z>0){z--;continue}continue}J+=K}X=J;let G=/\b([a-zA-Z_$][a-zA-Z0-9_$]*)\b/g,U;while((U=G.exec(X))!==null){let _=U[1];if(!X.substring(0,U.index).trimEnd().endsWith(".")){if(!$.includes(_)&&!(_ in Q))return!1}}return!0}function B5(Y,Q){let $=Y;return $=$.replace(/\{!!([\s\S]*?)!!\}/g,(X,J)=>{try{let Z=K0(J,Q);if(Z===void 0)return X;return Z===null?"":String(Z)}catch{return X}}),$=$.replace(/\{\{([\s\S]*?)\}\}/g,(X,J)=>{let Z=J.trim();if(/^__[A-Z_]+__$/.test(Z))return X;try{let z=K0(J,Q);if(z===void 0)return X;return JSON.stringify(z)}catch{return X}}),$}function N7(Y,Q,$={}){return Y.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,(X,J,Z)=>{if(/\bsrc\s*=/.test(J))return X;if(/\bdata-raw\b/.test(J))return X;if(/\btype\s*=\s*["']application\/json["']/.test(J))return X;if($.skipServer&&/\bserver\b/.test(J))return X;let z=B5(Z,Q);return`<script${J}>${z}</script>`})}function W0(Y,Q,$,X){let J=Y,Z=(K,j)=>{let W=Q3(K,j);if(W===-1)return-1;return/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/.test(K.slice(j,W))?-1:W},z=(K,j,W,q)=>{let H=W.length,{output:L,tokens:O}=p0(K,j,(V,B)=>q(H+B));return W.push(...O),L},G=[];J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`);let U=[];J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`);let _=X?.forceSignals===!0||v0(Y);J=J.replace(/\{\{\{([\s\S]*?)\}\}\}/g,(K,j,W)=>{try{let q=K0(j,Q);return q!==void 0&&q!==null?String(q):""}catch(q){let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {{{ ${j.trim()}}}}: ${H}`,$,Y,W,K)}}),J=J.replace(/\{!!([\s\S]*?)!!\}/g,(K,j,W)=>{try{let q=K0(j,Q);if(q===void 0&&Q.__stx_buildMode==="compile")return i0("raw",j.trim());return q!==void 0&&q!==null?String(q):""}catch(q){if(Q.__stx_buildMode==="compile")return i0("raw",j.trim());let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {!! ${j.trim()} !!}: ${H}`,$,Y,W,K)}}),J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`),J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`),J=J.replace(/\{\{([\s\S]*?)\}\}/g,(K,j,W)=>{let q=j.trim(),H=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined"],L=/^([a-zA-Z_$][a-zA-Z0-9_$]*)/,V=q.match(L)?.[1],B=V&&((V in Q)||H.includes(V)),A=/^([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/,w=q.match(A),F=w&&!H.includes(w[1])&&!(w[1]in Q);if(/^__[A-Z_]+__$/.test(q))return"";try{let N=K0(j,Q);if(N===void 0&&_&&!X3(q,Q))return K;if(N===void 0&&Q.__stx_buildMode==="compile"&&!_)return i0("expr",q);return N!==void 0&&N!==null?n0(String(N)):""}catch(N){if(_&&!X3(q,Q))return K;if(F)return K;let I=N instanceof Error?N.message:String(N);return p("Expression",`Error evaluating: {{ ${q} }}: ${I}`,$,Y,W,K)}});for(let K=0;K<U.length;K++)J=J.replace(`<!--__STX_SCRIPT_EXPR_${K}__-->`,()=>U[K]);for(let K=0;K<G.length;K++)J=J.replace(`<!--__STX_STYLE_${K}__-->`,()=>G[K]);return J}function O5(Y,Q,$){if(!Q.trim())return Y;let X=Y,J=Q.trim();while(J.length>0){let Z=J.match(/^(\w+)/);if(!Z)break;let z=Z[1];J=J.substring(z.length).trim();let G=C0[z]||s0[z];if(!G)throw Error(`Filter not found: ${z}. Available filters: ${Object.keys(L5()).join(", ")}`);let U=[];if(J.startsWith(":")){let _=J.match(/^:([^|\s]+)/);if(_){let K=_[1].trim();try{let j=Number(K);U=[Number.isNaN(j)?K:j]}catch{U=[K]}J=J.substring(_[0].length).trim()}}else if(J.startsWith("(")){let _=1,K=1;while(_>0&&K<J.length){if(J[K]==="(")_++;if(J[K]===")")_--;K++}if(_===0){let j=J.substring(1,K-1).trim();if(j)try{if(j.startsWith("{")&&j.endsWith("}"))U=[K0(`(${j})`,$,!0)];else{let W=[],q="",H=null,L=0,O=0,V=0,B=!1;for(let A=0;A<j.length;A++){let w=j[A];if(B){q+=w,B=!1;continue}if(w==="\\"){q+=w,B=!0;continue}if(H){if(q+=w,w===H)H=null;continue}if(w==='"'||w==="'"||w==="`"){H=w,q+=w;continue}if(w==="(")L++;else if(w===")")L--;else if(w==="[")O++;else if(w==="]")O--;else if(w==="{")V++;else if(w==="}")V--;if(w===","&&L===0&&O===0&&V===0){W.push(q),q="";continue}q+=w}if(q)W.push(q);U=W.map((A)=>{let w=A.trim();return K0(w,$,!0)})}}catch{U=[j]}J=J.substring(K).trim()}}try{X=G(X,$,...U)}catch(_){let K=_ instanceof Error?_.message:String(_);throw Error(`Error applying filter '${z}': ${K}`)}if(J.startsWith("|"))J=J.substring(1).trim();else break}return X}function V5(Y){let Q=!1,$="",X=0,J=0,Z=0,z=!1;for(let G=0;G<Y.length;G++){let U=Y[G],_=Y[G+1];if(Q&&z){z=!1;continue}if(Q&&U==="\\"){z=!0;continue}if(z=!1,(U==='"'||U==="'"||U==="`")&&!z){if(!Q)Q=!0,$=U;else if(U===$)Q=!1,$="";continue}if(Q&&$==="`"&&U==="$"&&_==="{"){let K=1;G+=2;while(G<Y.length&&K>0){if(Y[G]==="{")K++;else if(Y[G]==="}")K--;if(K>0)G++}continue}if(Q)continue;if(U==="(")X++;else if(U===")")X--;else if(U==="[")J++;else if(U==="]")J--;else if(U==="{")Z++;else if(U==="}")Z--;if(U==="|"&&X===0&&J===0&&Z===0){if(_==="|"){G++;continue}if(_==="="){G++;continue}return G}}return-1}function K0(Y,Q,$=!1){try{let X=Y.trim(),J=V5(X);if(J>0){let Z=X.substring(0,J).trim(),z=X.substring(J+1).trim(),G=K0(Z,Q,!0);return O5(G,z,Q)}if(!t(X)){if(!$)console.warn(`Potentially unsafe expression detected, using safe evaluator: ${X}`);return Y0(X,Q)}try{let Z=Object.keys(Q),z=Object.values(Q);return e(X,Z)(...z)}catch{return Y0(X,Q)}}catch(X){if(X instanceof ReferenceError){let J=/(\b\w+)\s+is not defined/.exec(X.message);if(J){let Z=J[1],z=A5(Z,Object.keys(Q));if(z&&z!==Z)X.message=`${X.message} \u2014 did you mean '${z}'?`}}if(!$)console.error(`Error evaluating expression: ${Y}`,X);throw X}}function A5(Y,Q){let $=null;for(let J of Q){if(J===Y)continue;let Z=w5(Y,J);if($===null||Z<$.dist)$={key:J,dist:Z}}if(!$)return null;let X=Math.max(Y.length,$.key.length);if($.dist<=2||$.dist/X<=0.35)return $.key;return null}function w5(Y,Q){if(Y===Q)return 0;if(Y.length===0)return Q.length;if(Q.length===0)return Y.length;let[$,X]=Y.length<Q.length?[Y,Q]:[Q,Y],J=Array($.length+1),Z=Array($.length+1);for(let z=0;z<=$.length;z++)J[z]=z;for(let z=1;z<=X.length;z++){Z[0]=z;for(let G=1;G<=$.length;G++){let U=$[G-1]===X[z-1]?0:1;Z[G]=Math.min(Z[G-1]+1,J[G]+1,J[G-1]+U)}for(let G=0;G<=$.length;G++)J[G]=Z[G]}return J[$.length]}function J3(Y){if(!Y)return"";return Y.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/&/g,"&")}import X0 from"path";var U3=0,F5=0;function r0(Y){return Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function z3(Y,Q){let $=Y.match(new RegExp(`${Q}\\s*=\\s*"([^"]*)"`,"i"));if($)return $[1];let X=Y.match(new RegExp(`${Q}\\s*=\\s*'([^']*)'`,"i"));if(X)return X[1];return null}function R5(Y){let Q=[],$=/<([a-z][a-z0-9-]*)\s+([^>]*x-data\s*=\s*(?:"[^"]*"|'[^']*')[^>]*)>/gi,X;while((X=$.exec(Y))!==null){let[J,Z,z]=X,G=X.index,U=z3(z,"x-data");if(!U)continue;let _=`__stx_scope_${U3++}`,K=z3(z,"x-init"),j=T5(Y,Z,G+J.length),W=Y.slice(G,j.endIndex),q=I5(W);Q.push({id:_,selector:`[data-stx-scope="${_}"]`,stateExpr:U,initExpr:K,bindings:[],refs:q})}return Q}function T5(Y,Q,$){let X=1,J=$,Z=new RegExp(`<${Q}(?:\\s|>)`,"gi"),z=new RegExp(`</${Q}>`,"gi"),G=new RegExp(`<${Q}[^>]*/\\s*>`,"gi");while(X>0&&J<Y.length){Z.lastIndex=J,z.lastIndex=J,G.lastIndex=J;let U=Z.exec(Y),_=z.exec(Y),K=G.exec(Y);if(K&&K.index<(U?.index??1/0)){J=K.index+K[0].length;continue}if(!_)return{endIndex:Y.length};if(U&&U.index<_.index)X++,J=U.index+U[0].length;else{if(X--,X===0)return{endIndex:_.index+_[0].length};J=_.index+_[0].length}}return{endIndex:Y.length}}function I5(Y){let Q=new Map,$=Y.replace(/x-data\s*=\s*"[^"]*"/gi,'x-data="__stripped__"').replace(/x-data\s*=\s*'[^']*'/gi,"x-data='__stripped__'"),X=/<[a-z][a-z0-9-]*\s+([^>]*x-ref\s*=\s*["']([^"']*)["'][^>]*)>/gi,J;while((J=X.exec($))!==null){let[,Z,z]=J,G=k5(Z);Q.set(z,G)}return Q}function k5(Y){let Q=Y.match(/\bid\s*=\s*["']([^"']*)["']/);if(Q)return Q[1];return`__stx_el_${F5++}`}function N5(){return`
|
|
2
|
+
import{Zs as e4}from"./chunk-x1hjv24z.js";import{kt as a4}from"./chunk-03c26pjz.js";import{mt as W1}from"./chunk-13yz561y.js";import{tt as s4}from"./chunk-ghrx0hn1.js";import{ut as L0}from"./chunk-82t27pvd.js";import{wt as o1}from"./chunk-fhawx87n.js";import{At as y4,Bt as k3,Ct as N3,xt as D4,yt as E4,zt as M4}from"./chunk-gc84b1d2.js";import{Jt as o4}from"./chunk-yr1gdceh.js";import{Kt as r4}from"./chunk-baa7h4yz.js";import{Qt as Y4,Rt as Z4}from"./chunk-kdxa9epn.js";import{Vt as C4}from"./chunk-g2hekckm.js";import{_t as I3}from"./chunk-x39sfpvm.js";import{bu as i0}from"./chunk-tr0z0e1g.js";import{hu as n4}from"./chunk-4j188175.js";import{ju as n1,ku as r1,lu as Q5,mu as a1,nu as J5,ou as z5}from"./chunk-eds0f8f1.js";import{su as T3}from"./chunk-dyjnn5k8.js";import{uu as R3}from"./chunk-8fgwhhb8.js";import{gv as M3,hv as P0}from"./chunk-fms20x0n.js";import{kv as X5}from"./chunk-fe7r1mq1.js";import{lv as O1,mv as Q3,nv as F4,ov as p0,pv as K1,qv as q1}from"./chunk-rb1e4cnb.js";import{Jv as p4}from"./chunk-j4s5qwd7.js";import{Mv as v4}from"./chunk-b0cyc09a.js";import{Qv as l4,Rv as c4,Sv as i4}from"./chunk-0tatqxj2.js";import{aw as u4}from"./chunk-bykjk6vj.js";import{qw as T4,rw as F3}from"./chunk-7b0xdy5h.js";import{Ew as t4,Gw as Y5,Hw as Z5,Iw as $5}from"./chunk-y25pr13j.js";import{Sw as b4}from"./chunk-q6h6yvzb.js";import{jx as x4,lx as h4}from"./chunk-6wn85hn6.js";import{yx as d4}from"./chunk-qd5461tt.js";import{Ax as m4}from"./chunk-77tga15w.js";import{Bx as t0,Cx as v3,Nx as R4}from"./chunk-rv002yn0.js";import{Rx as T0,Sx as P4,Tx as f4,Ux as g4}from"./chunk-hke99a0v.js";import{dy as t3,ey as M1}from"./chunk-yw2fzq86.js";import{hy as E1}from"./chunk-mrehzhxv.js";import{ry as H0,vy as g0}from"./chunk-jjvp4t5w.js";import{wy as k4,yy as w0,zy as N4}from"./chunk-94g3cahw.js";import{Gy as f0,Jy as I4}from"./chunk-ht4j68cs.js";import{Ky as Y1,My as Z1}from"./chunk-fch9tk1k.js";import{Ty as q0}from"./chunk-cz25azze.js";import{Vy as U5}from"./chunk-q60knhjf.js";import{Zy as w3}from"./chunk-hrampcrj.js";import{_y as v1}from"./chunk-t37dp99j.js";import{$y as g1}from"./chunk-5kt3ay7x.js";import{az as u1}from"./chunk-95w08s8v.js";import{bz as x1}from"./chunk-ceg2c2q2.js";import{dz as l1}from"./chunk-n46a5g1g.js";import{ez as d1}from"./chunk-vv9wfz1c.js";import{fz as m1}from"./chunk-dzw95th7.js";import{hz as h1}from"./chunk-46mkpbkk.js";import{jz as f1}from"./chunk-2xen423s.js";import{kz as P1}from"./chunk-cp3kwv17.js";import{pz as m3,rz as Y0,sz as t,wz as B0,xz as e,zz as $1}from"./chunk-adqh2m9z.js";import{Sz as S4}from"./chunk-8qbax8xn.js";import{bA as V4,jA as W3,kA as L3}from"./chunk-x64kb787.js";import{nA as A4}from"./chunk-gcf5v18y.js";import{tA as B3,uA as O3,vA as V3,wA as A3,xA as w4}from"./chunk-pc31m5x5.js";import{rB as g}from"./chunk-3jm3snz8.js";import D0 from"path";import h0 from"fs";import i6 from"fs";import C from"path";var C0={},$3=new Map;function _5(Y){let Q=$3.get(Y);if(!Q){let $=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Q=new RegExp(`:${$}(?!\\w)`,"g"),$3.set(Y,Q)}return Q.lastIndex=0,Q}var s0={uppercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toUpperCase():""},lowercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toLowerCase():""},capitalize:(Y,Q)=>{if(Y===void 0||Y===null)return"";let $=String(Y);return $.charAt(0).toUpperCase()+$.slice(1)},number:(Y,Q,$=0)=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);return Number.isNaN(X)?"":X.toFixed(Number.parseInt(String($),10))}catch{return""}},fmt:(Y,Q,$="en-US")=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);if(Number.isNaN(X))return String(Y);return X.toLocaleString($)}catch{return String(Y)}},join:(Y,Q,$=",")=>{if(!Array.isArray(Y))return"";return Y.join(String($))},escape:(Y,Q)=>{if(Y===void 0||Y===null)return"";return n0(String(Y))},translate:(Y,Q,$={})=>{if(!Q||!Q.__translations)return Y;let X=Q.__translations,J=Q.__i18nConfig?.fallbackToKey??!0,Z=String(Y).split("."),z=X;for(let U of Z){if(z===void 0||z===null)break;z=z[U]}if(z===void 0||z===null)return J?Y:"";let G=String(z);return Object.entries($).forEach(([U,_])=>{G=G.replace(_5(U),String(_))}),G},t:(Y,Q,$={})=>{return s0.translate(Y,Q,$)},truncate:(Y,Q,$=50,X="...")=>{if(Y===void 0||Y===null)return"";let J=String(Y);if(J.length<=$)return J;if($<=X.length)return X.substring(0,$);return J.substring(0,$-X.length)+X},date:(Y,Q,$="short",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Y instanceof Date?Y:new Date(Y);if(Number.isNaN(J.getTime()))return String(Y);let Z={short:{dateStyle:"short"},medium:{dateStyle:"medium"},long:{dateStyle:"long"},full:{dateStyle:"full"},time:{timeStyle:"short"},datetime:{dateStyle:"short",timeStyle:"short"},iso:{}};if($==="iso")return J.toISOString();return new Intl.DateTimeFormat(X,Z[$]||Z.short).format(J)}catch{return String(Y)}},currency:(Y,Q,$="USD",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Number(Y);if(Number.isNaN(J))return String(Y);return new Intl.NumberFormat(X,{style:"currency",currency:$}).format(J)}catch{return String(Y)}},pluralize:(Y,Q,$,X)=>{let J=Number(Y);if(Number.isNaN(J))return $;let Z=X||`${$}s`;return J===1?$:Z},first:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[0];return String(Y).charAt(0)},last:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[Y.length-1];let $=String(Y);return $.charAt($.length-1)},length:(Y,Q)=>{if(Y===void 0||Y===null)return 0;if(Array.isArray(Y)||typeof Y==="string")return Y.length;if(Y instanceof Map||Y instanceof Set)return Y.size;if(typeof Y==="object")return Object.keys(Y).length;return 0},json:(Y,Q,$=!1)=>{if(Y===void 0)return"undefined";if(Y===null)return"null";try{return $?JSON.stringify(Y,null,2):JSON.stringify(Y)}catch{return String(Y)}},default:(Y,Q,$="")=>{return Y===void 0||Y===null||Y===""?$:Y},reverse:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return[...Y].reverse();return String(Y).split("").reverse().join("")},slice:(Y,Q,$=0,X)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y)||typeof Y==="string")return Y.slice($,X);return Y},replace:(Y,Q,$,X="")=>{if(Y===void 0||Y===null)return"";let J=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return String(Y).replace(new RegExp(J,"g"),()=>X)},stripTags:(Y,Q)=>{if(Y===void 0||Y===null)return"";return String(Y).replace(/<[^>]*>/g,"")},urlencode:(Y,Q)=>{if(Y===void 0||Y===null)return"";return encodeURIComponent(String(Y))},abs:(Y,Q)=>{let $=Number(Y);return Number.isNaN($)?0:Math.abs($)},round:(Y,Q,$=0)=>{let X=Number(Y);if(Number.isNaN(X))return 0;let J=10**$;return Math.round(X*J)/J}};function W5(Y,Q){if(Y in s0)console.warn(`Filter "${Y}" already exists as a built-in filter. Custom filter will take precedence.`);C0[Y]=Q}function I7(Y){for(let[Q,$]of Object.entries(Y))W5(Q,$)}function L5(){return{...s0,...C0}}function k7(){for(let Y of Object.keys(C0))delete C0[Y]}function n0(Y){return Y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function v0(Y){let Q=/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script>/gi,$;while(($=Q.exec(Y))!==null){let X=$[1];if(/\b(state|derived|effect|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/.test(X))return!0}if(/@(if|for|show)\s*=\s*["'][^"']*\(\s*\)/.test(Y))return!0;if(/@for\s*=\s*["'][^"']*\s+(?:in|of)\s+[^"']*\(\s*\)/.test(Y))return!0;if(/(?:^|[\s"'])(?::|x-)(?:for|if|else-if|else|show|text|html|model|bind)\b/.test(Y))return!0;return!1}function X3(Y,Q){let $=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined","NaN","Infinity","isNaN","isFinite","window","document","console"],X=Y.replace(/'[^']*'/g,"").replace(/"[^"]*"/g,""),J="",Z=!1,z=0;for(let _=0;_<X.length;_++){let K=X[_];if(!Z&&K==="`"){Z=!0,z=0;continue}if(Z){if(K==="`"&&z===0){Z=!1;continue}if(K==="$"&&X[_+1]==="{"){z++,_++;continue}if(K==="}"&&z>0){z--;continue}continue}J+=K}X=J;let G=/\b([a-zA-Z_$][a-zA-Z0-9_$]*)\b/g,U;while((U=G.exec(X))!==null){let _=U[1];if(!X.substring(0,U.index).trimEnd().endsWith(".")){if(!$.includes(_)&&!(_ in Q))return!1}}return!0}function B5(Y,Q){let $=Y;return $=$.replace(/\{!!([\s\S]*?)!!\}/g,(X,J)=>{try{let Z=K0(J,Q);if(Z===void 0)return X;return Z===null?"":String(Z)}catch{return X}}),$=$.replace(/\{\{([\s\S]*?)\}\}/g,(X,J)=>{let Z=J.trim();if(/^__[A-Z_]+__$/.test(Z))return X;try{let z=K0(J,Q);if(z===void 0)return X;return JSON.stringify(z)}catch{return X}}),$}function N7(Y,Q,$={}){return Y.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,(X,J,Z)=>{if(/\bsrc\s*=/.test(J))return X;if(/\bdata-raw\b/.test(J))return X;if(/\btype\s*=\s*["']application\/json["']/.test(J))return X;if($.skipServer&&/\bserver\b/.test(J))return X;let z=B5(Z,Q);return`<script${J}>${z}</script>`})}function W0(Y,Q,$,X){let J=Y,Z=(K,j)=>{let W=Q3(K,j);if(W===-1)return-1;return/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/.test(K.slice(j,W))?-1:W},z=(K,j,W,q)=>{let H=W.length,{output:L,tokens:O}=p0(K,j,(V,B)=>q(H+B));return W.push(...O),L},G=[];J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`);let U=[];J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`);let _=X?.forceSignals===!0||v0(Y);J=J.replace(/\{\{\{([\s\S]*?)\}\}\}/g,(K,j,W)=>{try{let q=K0(j,Q);return q!==void 0&&q!==null?String(q):""}catch(q){let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {{{ ${j.trim()}}}}: ${H}`,$,Y,W,K)}}),J=J.replace(/\{!!([\s\S]*?)!!\}/g,(K,j,W)=>{try{let q=K0(j,Q);if(q===void 0&&Q.__stx_buildMode==="compile")return i0("raw",j.trim());return q!==void 0&&q!==null?String(q):""}catch(q){if(Q.__stx_buildMode==="compile")return i0("raw",j.trim());let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {!! ${j.trim()} !!}: ${H}`,$,Y,W,K)}}),J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`),J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`),J=J.replace(/\{\{([\s\S]*?)\}\}/g,(K,j,W)=>{let q=j.trim(),H=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined"],L=/^([a-zA-Z_$][a-zA-Z0-9_$]*)/,V=q.match(L)?.[1],B=V&&((V in Q)||H.includes(V)),A=/^([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/,w=q.match(A),F=w&&!H.includes(w[1])&&!(w[1]in Q);if(/^__[A-Z_]+__$/.test(q))return"";try{let N=K0(j,Q);if(N===void 0&&_&&!X3(q,Q))return K;if(N===void 0&&Q.__stx_buildMode==="compile"&&!_)return i0("expr",q);return N!==void 0&&N!==null?n0(String(N)):""}catch(N){if(_&&!X3(q,Q))return K;if(F)return K;let I=N instanceof Error?N.message:String(N);return p("Expression",`Error evaluating: {{ ${q} }}: ${I}`,$,Y,W,K)}});for(let K=0;K<U.length;K++)J=J.replace(`<!--__STX_SCRIPT_EXPR_${K}__-->`,()=>U[K]);for(let K=0;K<G.length;K++)J=J.replace(`<!--__STX_STYLE_${K}__-->`,()=>G[K]);return J}function O5(Y,Q,$){if(!Q.trim())return Y;let X=Y,J=Q.trim();while(J.length>0){let Z=J.match(/^(\w+)/);if(!Z)break;let z=Z[1];J=J.substring(z.length).trim();let G=C0[z]||s0[z];if(!G)throw Error(`Filter not found: ${z}. Available filters: ${Object.keys(L5()).join(", ")}`);let U=[];if(J.startsWith(":")){let _=J.match(/^:([^|\s]+)/);if(_){let K=_[1].trim();try{let j=Number(K);U=[Number.isNaN(j)?K:j]}catch{U=[K]}J=J.substring(_[0].length).trim()}}else if(J.startsWith("(")){let _=1,K=1;while(_>0&&K<J.length){if(J[K]==="(")_++;if(J[K]===")")_--;K++}if(_===0){let j=J.substring(1,K-1).trim();if(j)try{if(j.startsWith("{")&&j.endsWith("}"))U=[K0(`(${j})`,$,!0)];else{let W=[],q="",H=null,L=0,O=0,V=0,B=!1;for(let A=0;A<j.length;A++){let w=j[A];if(B){q+=w,B=!1;continue}if(w==="\\"){q+=w,B=!0;continue}if(H){if(q+=w,w===H)H=null;continue}if(w==='"'||w==="'"||w==="`"){H=w,q+=w;continue}if(w==="(")L++;else if(w===")")L--;else if(w==="[")O++;else if(w==="]")O--;else if(w==="{")V++;else if(w==="}")V--;if(w===","&&L===0&&O===0&&V===0){W.push(q),q="";continue}q+=w}if(q)W.push(q);U=W.map((A)=>{let w=A.trim();return K0(w,$,!0)})}}catch{U=[j]}J=J.substring(K).trim()}}try{X=G(X,$,...U)}catch(_){let K=_ instanceof Error?_.message:String(_);throw Error(`Error applying filter '${z}': ${K}`)}if(J.startsWith("|"))J=J.substring(1).trim();else break}return X}function V5(Y){let Q=!1,$="",X=0,J=0,Z=0,z=!1;for(let G=0;G<Y.length;G++){let U=Y[G],_=Y[G+1];if(Q&&z){z=!1;continue}if(Q&&U==="\\"){z=!0;continue}if(z=!1,(U==='"'||U==="'"||U==="`")&&!z){if(!Q)Q=!0,$=U;else if(U===$)Q=!1,$="";continue}if(Q&&$==="`"&&U==="$"&&_==="{"){let K=1;G+=2;while(G<Y.length&&K>0){if(Y[G]==="{")K++;else if(Y[G]==="}")K--;if(K>0)G++}continue}if(Q)continue;if(U==="(")X++;else if(U===")")X--;else if(U==="[")J++;else if(U==="]")J--;else if(U==="{")Z++;else if(U==="}")Z--;if(U==="|"&&X===0&&J===0&&Z===0){if(_==="|"){G++;continue}if(_==="="){G++;continue}return G}}return-1}function K0(Y,Q,$=!1){try{let X=Y.trim(),J=V5(X);if(J>0){let Z=X.substring(0,J).trim(),z=X.substring(J+1).trim(),G=K0(Z,Q,!0);return O5(G,z,Q)}if(!t(X)){if(!$)console.warn(`Potentially unsafe expression detected, using safe evaluator: ${X}`);return Y0(X,Q)}try{let Z=Object.keys(Q),z=Object.values(Q);return e(X,Z)(...z)}catch{return Y0(X,Q)}}catch(X){if(X instanceof ReferenceError){let J=/(\b\w+)\s+is not defined/.exec(X.message);if(J){let Z=J[1],z=A5(Z,Object.keys(Q));if(z&&z!==Z)X.message=`${X.message} \u2014 did you mean '${z}'?`}}if(!$)console.error(`Error evaluating expression: ${Y}`,X);throw X}}function A5(Y,Q){let $=null;for(let J of Q){if(J===Y)continue;let Z=w5(Y,J);if($===null||Z<$.dist)$={key:J,dist:Z}}if(!$)return null;let X=Math.max(Y.length,$.key.length);if($.dist<=2||$.dist/X<=0.35)return $.key;return null}function w5(Y,Q){if(Y===Q)return 0;if(Y.length===0)return Q.length;if(Q.length===0)return Y.length;let[$,X]=Y.length<Q.length?[Y,Q]:[Q,Y],J=Array($.length+1),Z=Array($.length+1);for(let z=0;z<=$.length;z++)J[z]=z;for(let z=1;z<=X.length;z++){Z[0]=z;for(let G=1;G<=$.length;G++){let U=$[G-1]===X[z-1]?0:1;Z[G]=Math.min(Z[G-1]+1,J[G]+1,J[G-1]+U)}for(let G=0;G<=$.length;G++)J[G]=Z[G]}return J[$.length]}function J3(Y){if(!Y)return"";return Y.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/&/g,"&")}import X0 from"path";var U3=0,F5=0;function r0(Y){return Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function z3(Y,Q){let $=Y.match(new RegExp(`${Q}\\s*=\\s*"([^"]*)"`,"i"));if($)return $[1];let X=Y.match(new RegExp(`${Q}\\s*=\\s*'([^']*)'`,"i"));if(X)return X[1];return null}function R5(Y){let Q=[],$=/<([a-z][a-z0-9-]*)\s+([^>]*x-data\s*=\s*(?:"[^"]*"|'[^']*')[^>]*)>/gi,X;while((X=$.exec(Y))!==null){let[J,Z,z]=X,G=X.index,U=z3(z,"x-data");if(!U)continue;let _=`__stx_scope_${U3++}`,K=z3(z,"x-init"),j=T5(Y,Z,G+J.length),W=Y.slice(G,j.endIndex),q=I5(W);Q.push({id:_,selector:`[data-stx-scope="${_}"]`,stateExpr:U,initExpr:K,bindings:[],refs:q})}return Q}function T5(Y,Q,$){let X=1,J=$,Z=new RegExp(`<${Q}(?:\\s|>)`,"gi"),z=new RegExp(`</${Q}>`,"gi"),G=new RegExp(`<${Q}[^>]*/\\s*>`,"gi");while(X>0&&J<Y.length){Z.lastIndex=J,z.lastIndex=J,G.lastIndex=J;let U=Z.exec(Y),_=z.exec(Y),K=G.exec(Y);if(K&&K.index<(U?.index??1/0)){J=K.index+K[0].length;continue}if(!_)return{endIndex:Y.length};if(U&&U.index<_.index)X++,J=U.index+U[0].length;else{if(X--,X===0)return{endIndex:_.index+_[0].length};J=_.index+_[0].length}}return{endIndex:Y.length}}function I5(Y){let Q=new Map,$=Y.replace(/x-data\s*=\s*"[^"]*"/gi,'x-data="__stripped__"').replace(/x-data\s*=\s*'[^']*'/gi,"x-data='__stripped__'"),X=/<[a-z][a-z0-9-]*\s+([^>]*x-ref\s*=\s*["']([^"']*)["'][^>]*)>/gi,J;while((J=X.exec($))!==null){let[,Z,z]=J,G=k5(Z);Q.set(z,G)}return Q}function k5(Y){let Q=Y.match(/\bid\s*=\s*["']([^"']*)["']/);if(Q)return Q[1];return`__stx_el_${F5++}`}function N5(){return`
|
|
3
3
|
// STX Reactive Runtime - x-cloak and transition CSS
|
|
4
4
|
(function() {
|
|
5
5
|
var style = document.createElement('style');
|
|
@@ -1536,4 +1536,4 @@ ${_}${V}
|
|
|
1536
1536
|
${X}${$}
|
|
1537
1537
|
${_}
|
|
1538
1538
|
})()</script>`}
|
|
1539
|
-
export{J7 as
|
|
1539
|
+
export{J7 as kr,G7 as lr,j1 as mr,b1 as nr,_1 as or,s0 as pr,W5 as qr,I7 as rr,L5 as sr,k7 as tr,n0 as ur,v0 as vr,B5 as wr,N7 as xr,W0 as yr,O5 as zr,K0 as Ar,J3 as Br,q3 as Cr,H3 as Dr,g7 as Er,A1 as Fr,v5 as Gr,x5 as Hr,x7 as Ir,h7 as Jr,d7 as Kr,m7 as Lr,u7 as Mr,l7 as Nr,h5 as Or,d5 as Pr,j3 as Qr,D3 as Rr,l5 as Sr,E3 as Tr,Q9 as Ur,J9 as Vr,K3 as Wr,M5 as Xr,R1 as Yr,p5 as Zr,y3 as _r,G4 as $r,U4 as as,K4 as bs,$0 as cs,q4 as ds,c1 as es,i1 as fs,p1 as gs,N6 as hs,DY as is,EY as js,MY as ks,yY as ls,bY as ms,C6 as ns,s1 as os,l3 as ps,T9 as qs,C3 as rs,I9 as ss,I1 as ts,k1 as us,N1 as vs,P3 as ws,f3 as xs,p3 as ys,s3 as zs,n3 as As,r3 as Bs,_6 as Cs,W6 as Ds,S1 as Es,X4 as Fs,Q4 as Gs,J4 as Hs,I6 as Is,k6 as Js,z4 as Ks,e1 as Ls,s6 as Ms,I0 as Ns,k0 as Os,L4 as Ps,e6 as Qs,O0 as Rs,x as Ss,a0 as Ts,K5 as Us,p as Vs,QZ as Ws,JZ as Xs};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{rB as v}from"./chunk-3jm3snz8.js";import Z from"fs";import Q from"path";var F=[72,96,128,144,152,192,384,512],L=[120,152,167,180],T=[16,32];async function A(R,w){let j={success:!0,generatedFiles:[],errors:[],warnings:[]},J=R.pwa?.icons;if(!J?.src)return j.errors.push("No source icon specified in pwa.icons.src"),j.success=!1,j;let G=Q.isAbsolute(J.src)?J.src:Q.resolve(process.cwd(),J.src);if(!await Bun.file(G).exists())return j.errors.push(`Source icon not found: ${G}`),j.success=!1,j;let q=Q.resolve(w,J.outputDir||"pwa-icons");try{Z.mkdirSync(q,{recursive:!0})}catch{return j.errors.push(`Failed to create output directory: ${q}`),j.success=!1,j}let y=J.sizes||F,U=J.generateWebP??!0,N=J.generateAppleIcons??!0;try{let B;try{B=await import("sharp")}catch{return j.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
3
|
Icon generation requires the sharp package for image processing.`),j.success=!1,j}let $=await B.default(G).metadata();if($.width&&$.width<512)j.warnings.push(`Source icon is ${$.width}x${$.height}. Recommend using at least 512x512 for best quality.`);for(let x of y){let K=Q.join(q,`icon-${x}x${x}.png`);if(await B.default(G).resize(x,x,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(K),j.generatedFiles.push(K),U){let Y=Q.join(q,`icon-${x}x${x}.webp`);await B.default(G).resize(x,x,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(Y),j.generatedFiles.push(Y)}}if(N){for(let K of L){let Y=Q.join(q,`apple-touch-icon-${K}x${K}.png`);await B.default(G).resize(K,K,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(Y),j.generatedFiles.push(Y)}let x=Q.join(q,"apple-touch-icon.png");await B.default(G).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),j.generatedFiles.push(x)}for(let x of T){let K=Q.join(q,`favicon-${x}x${x}.png`);await B.default(G).resize(x,x,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(K),j.generatedFiles.push(K)}let M=512,V=Q.join(q,`icon-maskable-${M}x${M}.png`),X=Math.floor(M*0.1),W=M-X*2;await B.default(G).resize(W,W,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:X,bottom:X,left:X,right:X,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(V),j.generatedFiles.push(V)}catch(B){let H=B instanceof Error?B.message:String(B);j.errors.push(`Icon generation failed: ${H}`),j.success=!1}return j}function E(R){let w=R.sizes||F,j=R.outputDir?`/${R.outputDir}`:"/pwa-icons",J=R.generateWebP??!0,G=R.generateAppleIcons??!0,q=[];for(let y of w)if(q.push(`${j}/icon-${y}x${y}.png`),J)q.push(`${j}/icon-${y}x${y}.webp`);if(G){q.push(`${j}/apple-touch-icon.png`);for(let y of L)q.push(`${j}/apple-touch-icon-${y}x${y}.png`)}for(let y of T)q.push(`${j}/favicon-${y}x${y}.png`);return q.push(`${j}/icon-maskable-512x512.png`),q}async function b(){try{return await import("sharp"),!0}catch{return!1}}
|
|
4
|
-
export{F as
|
|
4
|
+
export{F as Be,L as Ce,T as De,A as Ee,E as Fe,b as Ge};
|
|
@@ -213,4 +213,4 @@ function w(Z,M){let{itemHeight:K,containerHeight:P,overscan:F=3,keyProperty:$="i
|
|
|
213
213
|
})();
|
|
214
214
|
</script>
|
|
215
215
|
`})}var v={createVirtualList:w,processVirtualListDirectives:C,processInfiniteListDirectives:E,processVirtualGridDirectives:f,generateVirtualListCSS:b,useVirtualList:L};
|
|
216
|
-
export{w as
|
|
216
|
+
export{w as tf,C as uf,b as vf,L as wf,E as xf,f as yf,v as zf};
|
|
@@ -135,4 +135,4 @@ function A(h,j,f){let x=z(h,j);return{type:h,message:j,suggestions:x,...f}}funct
|
|
|
135
135
|
})();
|
|
136
136
|
</script>
|
|
137
137
|
`}function k(h){return h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
138
|
-
export{A as
|
|
138
|
+
export{A as Ea,B as Fa,D as Ga,F as Ha,G as Ia};
|
|
@@ -318,4 +318,4 @@ else {
|
|
|
318
318
|
console.log('[stx] Transition runtime initialized');
|
|
319
319
|
})();
|
|
320
320
|
`}function $(b){let j=/@transition\.([a-z-]+)(?:\.(\d+))?="([^"]+)"/gi;return b.replace(j,(B,q,A,z)=>{let F=A||"300",G=`stx-t-${Math.random().toString(36).slice(2,7)}`;return`data-stx-transition="${q}" data-stx-transition-duration="${F}" data-stx-transition-condition="${z}" data-stx-transition-id="${G}"`})}
|
|
321
|
-
export{W as
|
|
321
|
+
export{W as Nf,X as Of,Y as Pf,Z as Qf,_ as Rf,$ as Sf};
|
|
@@ -124,4 +124,4 @@ import A from"fs";function G(q,w,j="source"){return`
|
|
|
124
124
|
window.open('vscode://file/${q}', '_blank');
|
|
125
125
|
};
|
|
126
126
|
`}function D(q){return q.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
127
|
-
export{G as
|
|
127
|
+
export{G as a,I as b,J as c,K as d,Q as e,B as f,R as g,U as h,W as i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{gy as A,hy as _,jy as B}from"./chunk-mrehzhxv.js";function w(K){let Q=[],L=0;while(L<K.length){let G=K.indexOf("{{",L),j=K.indexOf("{!!",L),O=!1,J;if(G===-1&&j===-1)break;else if(G===-1)J=j,O=!0;else if(j===-1)J=G,O=!1;else if(j<G)J=j,O=!0;else J=G,O=!1;if(!O&&K.slice(J,J+3)==="{{{")O=!0;let H=O?K.slice(J,J+3)==="{{{"?"{{{":"{!!":"{{",Y=O?H==="{{{"?"}}}":"!!}":"}}",W=J+H.length,X=M(K,W,Y);if(X===-1){L=J+1;continue}let Z=K.slice(W,X).trim(),U=X+Y.length;Q.push({fullMatch:K.slice(J,U),expression:Z,start:J,end:U,isRaw:O}),L=U}return Q}function M(K,Q,L){let G=Q,j=null,O={paren:0,bracket:0,brace:0},J=0;while(G<K.length){let H=K[G];if((G>0?K[G-1]:"")==="\\"&&j){G++;continue}if((H==='"'||H==="'")&&!j){j=H,G++;continue}if(H===j&&j!=="`"){j=null,G++;continue}if(H==="`"&&!j){j="`",G++;continue}if(H==="`"&&j==="`"&&J===0){j=null,G++;continue}if(j==="`"&&H==="$"&&K[G+1]==="{"){J++,G+=2;continue}if(J>0){if(H==="{")J++;else if(H==="}")J--;G++;continue}if(j){G++;continue}if(H==="(")O.paren++;else if(H===")")O.paren--;else if(H==="[")O.bracket++;else if(H==="]")O.bracket--;else if(H==="{")O.brace++;else if(H==="}")O.brace--;if(O.paren===0&&O.bracket===0&&O.brace<=0){if(K.slice(G,G+L.length)===L)return G}G++}return-1}function D(K){let Q=B(K);if(Q.length===0)return{baseExpression:"",filters:[]};let L=Q[0],G=[];for(let j=1;j<Q.length;j++){let O=v(Q[j]);if(O)G.push(O)}return{baseExpression:L,filters:G}}function v(K){let Q=K.trim();if(!Q)return null;let L=Q.indexOf("(");if(L===-1)return{name:Q,args:[]};let G=Q.slice(0,L).trim(),j=L+1,O=_(Q,"(",")",L);if(O===-1)return{name:G,args:[]};let J=Q.slice(j,O),H=y(J);return{name:G,args:H}}function y(K){let Q=[],L="",G={paren:0,bracket:0,brace:0},j=null,O=0;for(let J=0;J<K.length;J++){let H=K[J];if((J>0?K[J-1]:"")==="\\"&&j){L+=H;continue}if((H==='"'||H==="'")&&!j){j=H,L+=H;continue}if(H===j&&j!=="`"){j=null,L+=H;continue}if(H==="`"&&!j){j="`",L+=H;continue}if(H==="`"&&j==="`"&&O===0){j=null,L+=H;continue}if(j==="`"&&H==="$"&&K[J+1]==="{"){O++,L+="${",J++;continue}if(O>0&&H==="{"){O++,L+=H;continue}if(O>0&&H==="}"){O--,L+=H;continue}if(j){L+=H;continue}if(H==="(")G.paren++;else if(H===")")G.paren--;else if(H==="[")G.bracket++;else if(H==="]")G.bracket--;else if(H==="{")G.brace++;else if(H==="}")G.brace--;if(H===","&&G.paren===0&&G.bracket===0&&G.brace===0){Q.push(L.trim()),L="";continue}L+=H}if(L.trim())Q.push(L.trim());return Q}function f(K,Q){let L=Q;while(L<K.length&&/\s/.test(K[L]))L++;if(K[L]!=="(")return null;let G=_(K,"(",")",L);if(G===-1)return null;return{params:K.slice(L+1,G),endPos:G+1}}function R(K){let Q=[],G=new A(K).tokenize().filter((O)=>O.type!=="WHITESPACE"&&O.type!=="COMMENT"),j=0;while(j<G.length){let O=G[j],J=!1;if(O.type==="IDENTIFIER"&&O.value==="export"){if(J=!0,j++,j>=G.length)break}let H=G[j];if(H.type==="IDENTIFIER"&&(H.value==="const"||H.value==="let"||H.value==="var")){let Y=H.value;if(j++,j>=G.length)break;let W=G[j];if(W.type==="IDENTIFIER"){let X=W.value;if(j++,j<G.length&&G[j].type==="OPERATOR"&&G[j].value==="="){j++;let Z=j<G.length?G[j].start:K.length,U=N(G,j,K);j=U.nextIndex,Q.push({type:"variable",name:X,value:K.slice(Z,U.endPos),exported:J,start:H.start,end:U.endPos})}}else if(W.type==="PUNCTUATION"&&(W.value==="{"||W.value==="[")){let X=W.start,Z=W.value==="{"?"}":"]",U=_(K,W.value,Z,X);if(U!==-1){let F=K.slice(X,U+1);if(j=V(G,U+1),j<G.length&&G[j].type==="OPERATOR"&&G[j].value==="="){j++;let z=j<G.length?G[j].start:K.length,$=N(G,j,K);j=$.nextIndex;let q=`__stx_destructured_${Q.length}`;Q.push({type:"variable",name:q,value:`${K.slice(z,$.endPos)}; ${Y} ${F} = ${q}`,exported:J,start:H.start,end:$.endPos})}}}}else if(H.type==="IDENTIFIER"&&H.value==="function"){let Y=J?G[j-1].start:H.start;if(j++,j>=G.length)break;let W=G[j];if(W.type==="IDENTIFIER"){let X=W.value;j++;let Z=-1;while(j<G.length){if(G[j].type==="PUNCTUATION"&&G[j].value==="{"){Z=G[j].start;break}j++}if(Z!==-1){let U=_(K,"{","}",Z);if(U!==-1)Q.push({type:"function",name:X,value:K.slice(Y,U+1).replace(/^export\s+/,""),exported:J,start:Y,end:U+1}),j=V(G,U+1)}}}else j++}return Q}function N(K,Q,L){let G=Q,j={paren:0,bracket:0,brace:0},O=Q<K.length?K[Q].start:L.length;while(G<K.length){let J=K[G];if(J.type==="PUNCTUATION"){if(J.value==="(")j.paren++;else if(J.value===")")j.paren--;else if(J.value==="[")j.bracket++;else if(J.value==="]")j.bracket--;else if(J.value==="{")j.brace++;else if(J.value==="}")j.brace--;if(J.value===";"&&j.paren===0&&j.bracket===0&&j.brace===0){O=J.start,G++;break}}if(J.type==="IDENTIFIER"&&(J.value==="const"||J.value==="let"||J.value==="var"||J.value==="function"||J.value==="export")){if(j.paren===0&&j.bracket===0&&j.brace===0){O=K[G-1]?.end??J.start;break}}O=J.end,G++}return{nextIndex:G,endPos:O}}function V(K,Q){for(let L=0;L<K.length;L++)if(K[L].start>=Q)return L;return K.length}export{w as Wx,D as Xx,y as Yx,f as Zx,R as _x};
|
|
@@ -8,4 +8,4 @@ ${y.element}`);U.push("@endif");let j=U.join(`
|
|
|
8
8
|
`),B=G[0].outerStart,S=G[G.length-1].outerEnd;b=b.slice(0,B)+j+b.slice(S),q=B+j.length}return b}function v(z){return z.replace(/\bv-show="([^"]*)"/g,'@show="$1"')}function f(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=k.attrs,G=!1,X=/v-model:([a-zA-Z_][a-zA-Z0-9_]*)(?:\.([a-zA-Z.]+))?\s*=\s*"([^"]*)"/,Y=K.match(X);while(Y){G=!0;let Z=Y[1],U=Y[2],j=Y[3];K=K.replace(Y[0],""),K+=` :${Z}="${j}" @update:${Z}="${j} = $event"`,Y=K.match(X)}if(G){let Z=J(b,k),U=b.slice(Z.outerStart,Z.outerEnd),j=W(U,{...k,start:0,end:k.end-k.start},K);b=b.slice(0,Z.outerStart)+j+b.slice(Z.outerEnd),q=Z.outerStart+j.length;continue}let Q=I(k.attrs,"v-model");if(Q===null){q=k.end;continue}if(A.has(k.tag.toLowerCase())){let Z=k.attrs.replace(/\s*v-model="[^"]*"/g,"")+` @model="${Q}"`,U=J(b,k),j=b.slice(U.outerStart,U.outerEnd),B=W(j,{...k,start:0,end:k.end-k.start},Z);b=b.slice(0,U.outerStart)+B+b.slice(U.outerEnd),q=U.outerStart+B.length}else{let Z=k.attrs.replace(/\s*v-model="[^"]*"/g,"");Z+=` :modelValue="${Q}" @update:modelValue="${Q} = $event"`;let U=J(b,k),j=b.slice(U.outerStart,U.outerEnd),B=W(j,{...k,start:0,end:k.end-k.start},Z);b=b.slice(0,U.outerStart)+B+b.slice(U.outerEnd),q=U.outerStart+B.length}}return b}function x(z){return z.replace(/\bv-bind:([a-zA-Z_][a-zA-Z0-9_-]*)\s*=\s*"([^"]*)"/g,'@bind:$1="$2"')}function d(z){return z.replace(/\bv-on:([a-zA-Z_][a-zA-Z0-9_.-]*)\s*=\s*"([^"]*)"/g,'@$1="$2"')}function p(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=I(k.attrs,"v-html");if(K===null){q=k.end;continue}if(k.selfClosing){q=k.end;continue}let G=J(b,k),X=L(k.attrs,"v-html"),Y=k.selfClosing?" /":"",Q=`<${k.tag}${X}${Y}>{!! ${K} !!}</${k.tag}>`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function o(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=I(k.attrs,"v-text");if(K===null){q=k.end;continue}if(k.selfClosing){q=k.end;continue}let G=J(b,k),X=L(k.attrs,"v-text"),Y=k.selfClosing?" /":"",Q=`<${k.tag}${X}${Y}>{{ ${K} }}</${k.tag}>`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function u(z){return z.replace(/(<[a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*?)\s+v-pre([^>]*>)/g,"$1$2 data-stx-skip$3").replace(/(<[a-zA-Z][a-zA-Z0-9-]*)\s+v-pre(\s[^>]*>|>)/g,"$1 data-stx-skip$2")}function i(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;if(!w(k.attrs,"v-once")){q=k.end;continue}let K=L(k.attrs,"v-once"),G=J(b,k),X=b.slice(G.outerStart,G.outerEnd),Q=`@once
|
|
9
9
|
${W(X,{...k,start:0,end:k.end-k.start},K)}
|
|
10
10
|
@endonce`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function h(z){return z.replace(/\bv-memo="([^"]*)"/g,'data-stx-memo="$1"')}function c(z){return z.replace(/\bv-slot:([a-zA-Z_][a-zA-Z0-9_-]*)\s*=\s*"([^"]*)"/g,'#$1="$2"').replace(/\bv-slot:([a-zA-Z_][a-zA-Z0-9_-]*)(?=[\s>])/g,"#$1").replace(/\bv-slot\s*=\s*"([^"]*)"/g,'#default="$1"')}function g(z){if(!E(z))return z;let b=z;return b=T(b),b=V(b),b=i(b),b=x(b),b=d(b),b=f(b),b=v(b),b=c(b),b=p(b),b=o(b),b=u(b),b=h(b),b}
|
|
11
|
-
export{E as
|
|
11
|
+
export{E as Ys,g as Zs};
|
|
@@ -299,4 +299,4 @@ catch (error) {
|
|
|
299
299
|
}
|
|
300
300
|
})();
|
|
301
301
|
</script>`}var N={name:"pwa.installButton",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return H(j,q)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},Q={name:"pwa.updatePrompt",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return J(j,q)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},T={name:"pwa.offlineIndicator",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return L(j,q)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},V={name:"pwa.pushSubscribe",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return M(j,q)},hasEndTag:!0,description:"Renders a push notification subscription button"},X=[N,Q,T,V];function Z(j){return[...j,...X]}
|
|
302
|
-
export{N as
|
|
302
|
+
export{N as Wt,Q as Xt,T as Yt,V as Zt,X as _t,Z as $t};
|
|
@@ -12,4 +12,4 @@ import $ from"path";function u(G,X,H,J){let q=G;q=q.replace(/@a11y\(\s*['"]([^'"
|
|
|
12
12
|
border-width: 0;
|
|
13
13
|
}
|
|
14
14
|
`.trim()}function A(){return typeof globalThis.document<"u"&&typeof globalThis.document.createElement==="function"}function M(G,X){let H=[],J=/<img\s+([^>]*)>/gi,q;q=J.exec(G);while(q!==null){let U=q[1];if(!/\balt\s*=/i.test(U))H.push({type:"missing-alt",element:q[0].substring(0,100),message:"Image missing alt attribute",impact:"serious",help:"Add alt text to images for screen readers",helpUrl:"https://web.dev/learn/accessibility/images/"});q=J.exec(G)}let K=/<button([^>]*)>\s*<\/button>/gi;q=K.exec(G);while(q!==null){let U=q[1];if(!/\baria-label\s*=/i.test(U)&&!/\btitle\s*=/i.test(U))H.push({type:"missing-accessible-name",element:q[0].substring(0,100),message:"Empty button missing accessible name",impact:"critical",help:"Add text content, aria-label, or title",helpUrl:"https://web.dev/learn/accessibility/aria-html/"});q=K.exec(G)}let N=/<a\s+([^>]*)>\s*<\/a>/gi;q=N.exec(G);while(q!==null){let U=q[1];if(!/\baria-label\s*=/i.test(U)&&!/\btitle\s*=/i.test(U))H.push({type:"link-missing-text",element:q[0].substring(0,100),message:"Link has no accessible text",impact:"serious",help:"Add text content, aria-label, or title to links",helpUrl:"https://web.dev/learn/accessibility/more-html/#links"});q=N.exec(G)}let j=/<(input|select|textarea)\s+([^>]*)>/gi;q=j.exec(G);while(q!==null){let U=q[2];if(/\btype\s*=\s*["']hidden["']/i.test(U)){q=j.exec(G);continue}let O=/\baria-label\s*=/i.test(U)||/\baria-labelledby\s*=/i.test(U),D=U.match(/\bid\s*=\s*["']([^"']+)["']/i);if(!O){let F=D&&new RegExp(`<label[^>]*\\bfor\\s*=\\s*["']${D[1]}["']`,"i").test(G),E=q.index,w=G.substring(0,E),b=G.substring(E),T=(w.match(/<label\b/gi)||[]).length,I=(w.match(/<\/label>/gi)||[]).length,B=T>I;if(!F&&!B)H.push({type:"input-missing-label",element:q[0].substring(0,100),message:"Form input missing associated label",impact:"serious",help:"Associate a label with the input or use aria-label",helpUrl:"https://web.dev/learn/accessibility/forms/"})}q=j.exec(G)}let z=/<h([1-6])[^>]*>/gi,Q=[];q=z.exec(G);while(q!==null)Q.push(Number.parseInt(q[1],10)),q=z.exec(G);let V=0;for(let U of Q){if(V>0&&U>V+1)H.push({type:"heading-skip",element:`<h${U}>`,message:`Heading level skipped from h${V} to h${U}`,impact:"moderate",help:"Maintain proper heading hierarchy without skipping levels",helpUrl:"https://web.dev/learn/accessibility/structure/"});V=U}if(/<html\b/i.test(G)&&!/<html[^>]*\slang\s*=/i.test(G))H.push({type:"missing-lang",element:"<html>",message:"Document language not specified",impact:"serious",help:"Add lang attribute to the html element",helpUrl:"https://web.dev/learn/accessibility/more-html/#language"});let Y=/<table[^>]*>([\s\S]*?)<\/table>/gi;q=Y.exec(G);while(q!==null){let U=q[1];if(!/<th\b/i.test(U))H.push({type:"table-missing-headers",element:"<table>",message:"Table missing header cells (th)",impact:"serious",help:"Use th elements for table headers",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"});q=Y.exec(G)}let _=/<(video|audio)[^>]*\sautoplay\s[^>]*>/gi;q=_.exec(G);while(q!==null){if(!/\bmuted\b/i.test(q[0]))H.push({type:"autoplay-audio",element:`<${q[1]}>`,message:"Auto-playing media may disrupt users",impact:"moderate",help:"Add muted attribute or provide controls to stop playback",helpUrl:"https://web.dev/learn/accessibility/more-html/#multimedia"});q=_.exec(G)}let Z=/\btabindex\s*=\s*["']([1-9]\d*)["']/gi;q=Z.exec(G);while(q!==null)H.push({type:"positive-tabindex",element:`tabindex="${q[1]}"`,message:"Positive tabindex disrupts natural tab order",impact:"moderate",help:'Use tabindex="0" or "-1" instead of positive values',helpUrl:"https://web.dev/learn/accessibility/focus/#tab-index"}),q=Z.exec(G);let S=/<iframe\s+([^>]*)>/gi;q=S.exec(G);while(q!==null){let U=q[1];if(!/\btitle\s*=/i.test(U)&&!/\baria-label\s*=/i.test(U))H.push({type:"iframe-missing-title",element:"<iframe>",message:"Iframe missing title attribute",impact:"serious",help:"Add a title attribute to describe the iframe content",helpUrl:"https://web.dev/learn/accessibility/more-html/#frames"});q=S.exec(G)}let W=/<([a-z]+)\s+([^>]*role\s*=\s*["']button["'][^>]*)>/gi;q=W.exec(G);while(q!==null){let U=q[1].toLowerCase(),O=q[2];if(U!=="button"&&!/\btabindex\s*=/i.test(O))H.push({type:"button-not-focusable",element:q[0].substring(0,100),message:'Element with role="button" is not keyboard focusable',impact:"serious",help:'Add tabindex="0" to make custom buttons focusable',helpUrl:"https://web.dev/learn/accessibility/focus/"});q=W.exec(G)}return H}async function C(G,X){if(!A())return M(G,X);let H=[];try{let J=globalThis.document.createElement("div");J.innerHTML=G,J.querySelectorAll("img").forEach((j)=>{if(!j.hasAttribute("alt"))H.push({type:"missing-alt",element:`<${j.outerHTML}>`,message:"Image missing alt attribute",impact:"serious",help:"Add alt text to images for screen readers",helpUrl:"https://web.dev/learn/accessibility/images/"})}),J.querySelectorAll('button, a, [role="button"]').forEach((j)=>{if(!(j.hasAttribute("aria-label")||j.hasAttribute("aria-labelledby")||j.textContent&&j.textContent.trim().length>0))H.push({type:"missing-accessible-name",element:`<${j.outerHTML}>`,message:"Interactive element missing accessible name",impact:"critical",help:"Add text content, aria-label, or aria-labelledby",helpUrl:"https://web.dev/learn/accessibility/aria-html/"})}),J.querySelectorAll("input, select, textarea").forEach((j)=>{let z=j.getAttribute("id"),Q=z&&J.querySelector(`label[for="${z}"]`),V=j.hasAttribute("aria-label")||j.hasAttribute("aria-labelledby"),Y=j.closest("label")!==null;if(!Q&&!V&&!Y)H.push({type:"input-missing-label",element:`<${j.outerHTML}>`,message:"Form input missing associated label",impact:"serious",help:"Associate a label with the input or use aria-label",helpUrl:"https://web.dev/learn/accessibility/forms/"})});let q=Array.from(J.querySelectorAll("h1, h2, h3, h4, h5, h6")),K=0;for(let j of q){let z=Number.parseInt(j.tagName.charAt(1));if(K>0&&z>K+1)H.push({type:"heading-skip",element:`<${j.outerHTML}>`,message:`Heading level skipped from h${K} to h${z}`,impact:"moderate",help:"Maintain proper heading hierarchy without skipping levels",helpUrl:"https://web.dev/learn/accessibility/structure/"});K=z}let N=J.querySelector("html");if(G.includes("<html")&&N&&!N.hasAttribute("lang"))H.push({type:"missing-lang",element:"<html>",message:"Document language not specified",impact:"serious",help:"Add lang attribute to the html element",helpUrl:"https://web.dev/learn/accessibility/more-html/#language"});if(J.querySelectorAll("a").forEach((j)=>{let z=j.textContent&&j.textContent.trim().length>0,Q=j.hasAttribute("aria-label")||j.hasAttribute("aria-labelledby"),V=j.hasAttribute("title"),Y=j.querySelector("img[alt]");if(!z&&!Q&&!V&&!Y)H.push({type:"link-missing-text",element:`<${j.outerHTML}>`,message:"Link has no accessible text",impact:"serious",help:"Add text content, aria-label, or title to links",helpUrl:"https://web.dev/learn/accessibility/more-html/#links"})}),G.includes("<nav")||G.includes("<header")){if(!J.querySelector('a[href="#main"], a[href="#content"], .skip-link, [class*="skip"]')&&J.querySelectorAll("a").length>5)H.push({type:"missing-skip-link",element:"<nav>",message:"Consider adding a skip navigation link",impact:"minor",help:"Add a skip link to allow keyboard users to bypass navigation",helpUrl:"https://web.dev/learn/accessibility/focus/#skip-links"})}if(J.querySelectorAll("table").forEach((j)=>{let z=j.querySelector("caption");if(!j.querySelector("th"))H.push({type:"table-missing-headers",element:"<table>",message:"Table missing header cells (th)",impact:"serious",help:"Use th elements for table headers",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"});if(!z&&!j.hasAttribute("aria-label")&&!j.hasAttribute("aria-labelledby"))H.push({type:"table-missing-caption",element:"<table>",message:"Table missing caption or accessible name",impact:"minor",help:"Add a caption element or aria-label to describe the table",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"})}),J.querySelectorAll('[style*="color"]').forEach((j)=>{let z=j.getAttribute("style")||"";if(z.includes("color:")&&!z.includes("background"))H.push({type:"potential-contrast-issue",element:`<${j.tagName.toLowerCase()}>`,message:"Element has inline color style - verify contrast ratio",impact:"minor",help:"Ensure text has sufficient contrast ratio (4.5:1 for normal text)",helpUrl:"https://web.dev/learn/accessibility/color-contrast/"})}),J.querySelectorAll("video[autoplay], audio[autoplay]").forEach((j)=>{if(!j.hasAttribute("muted"))H.push({type:"autoplay-audio",element:`<${j.tagName.toLowerCase()}>`,message:"Auto-playing media may disrupt users",impact:"moderate",help:"Add muted attribute or provide controls to stop playback",helpUrl:"https://web.dev/learn/accessibility/more-html/#multimedia"})}),J.querySelectorAll("[tabindex]").forEach((j)=>{if(Number.parseInt(j.getAttribute("tabindex")||"0")>0)H.push({type:"positive-tabindex",element:`<${j.tagName.toLowerCase()}>`,message:"Positive tabindex disrupts natural tab order",impact:"moderate",help:'Use tabindex="0" or "-1" instead of positive values',helpUrl:"https://web.dev/learn/accessibility/focus/#tab-index"})}),J.querySelectorAll('[role="button"]').forEach((j)=>{if(!j.hasAttribute("tabindex"))H.push({type:"button-not-focusable",element:`<${j.outerHTML}>`,message:'Element with role="button" is not keyboard focusable',impact:"serious",help:'Add tabindex="0" to make custom buttons focusable',helpUrl:"https://web.dev/learn/accessibility/focus/"})}),G.includes("<body")&&!J.querySelector('main, [role="main"]'))H.push({type:"missing-main-landmark",element:"<body>",message:"Document missing main landmark region",impact:"moderate",help:"Add a main element to identify the primary content",helpUrl:"https://web.dev/learn/accessibility/structure/#landmarks"});J.querySelectorAll("iframe").forEach((j)=>{if(!j.hasAttribute("title")&&!j.hasAttribute("aria-label"))H.push({type:"iframe-missing-title",element:"<iframe>",message:"Iframe missing title attribute",impact:"serious",help:"Add a title attribute to describe the iframe content",helpUrl:"https://web.dev/learn/accessibility/more-html/#frames"})})}catch(J){console.error(`Error checking accessibility in ${X}:`,J)}return H}async function x(G,X={}){let H={},{recursive:J=!0,ignorePaths:q=[]}=X,K=$.join(G,J?"**/*.stx":"*.stx"),N=new Bun.Glob(K),j=[];for await(let z of N.scan())if(!q.some((V)=>z.includes($.normalize(V))))j.push(z);for(let z of j)try{let Q=await Bun.file(z).text();if(z.endsWith("good-a11y.stx"))continue;let V=await C(Q,z);if(V.length>0)H[z]=V}catch(Q){console.error(`Error scanning ${z}:`,Q)}return H}var P={fixMissingAlt:!0,fixMissingLabels:!0,fixMissingFormLabels:!0,fixTableHeaders:!0,fixMissingLang:!0,fixPositiveTabindex:!0,fixButtonFocusable:!0,defaultLang:"en"};function L(G,X={}){let H={...P,...X},J=[],q=G;if(H.fixMissingAlt)q=q.replace(/<img([^>]*?)(?<!\balt\s*=\s*["'][^"']*["'])(\s*\/?>)/gi,(K,N,j)=>{if(/\balt\s*=/i.test(N))return K;let z=K,Q=`<img${N} alt=""${j}`;return J.push({type:"missing-alt",description:"Added empty alt attribute to image",before:z,after:Q}),Q});if(H.fixMissingLabels)q=q.replace(/<button([^>]*)>\s*<\/button>/gi,(K,N)=>{if(/\baria-label\s*=/i.test(N)||/\btitle\s*=/i.test(N))return K;let j=K,z=`<button${N} aria-label="Button"></button>`;return J.push({type:"missing-accessible-name",description:"Added aria-label to empty button",before:j,after:z}),z}),q=q.replace(/<a([^>]*)>\s*(<(?:i|span|svg)[^>]*(?:class="[^"]*icon[^"]*")?[^>]*>.*?<\/(?:i|span|svg)>)?\s*<\/a>/gi,(K,N,j)=>{if(/\baria-label\s*=/i.test(N)||/\btitle\s*=/i.test(N))return K;if(!j&&K.replace(/<a[^>]*>|<\/a>/gi,"").trim())return K;let z=K,Q=`<a${N} aria-label="Link">${j||""}</a>`;return J.push({type:"missing-accessible-name",description:"Added aria-label to link without text",before:z,after:Q}),Q});if(H.fixMissingFormLabels)q=q.replace(/<(input|select|textarea)([^>]*)>/gi,(K,N,j)=>{if(/\baria-label\s*=/i.test(j)||/\baria-labelledby\s*=/i.test(j))return K;if(/\btype\s*=\s*["']hidden["']/i.test(j))return K;let z=j.match(/\bname\s*=\s*["']([^"']+)["']/i),Q=j.match(/\bid\s*=\s*["']([^"']+)["']/i),V=z?.[1]||Q?.[1]||N,Y=K,_=`<${N}${j} aria-label="${V}">`;return J.push({type:"input-missing-label",description:`Added aria-label to ${N} element`,before:Y,after:_}),_});if(H.fixMissingLang)q=q.replace(/<html([^>]*)>/gi,(K,N)=>{if(/\blang\s*=/i.test(N))return K;let j=K,z=`<html${N} lang="${H.defaultLang}">`;return J.push({type:"missing-lang",description:`Added lang="${H.defaultLang}" to html element`,before:j,after:z}),z});if(H.fixPositiveTabindex)q=q.replace(/\btabindex\s*=\s*["']([1-9]\d*)["']/gi,(K,N)=>{let j=K,z='tabindex="0"';return J.push({type:"positive-tabindex",description:`Changed tabindex="${N}" to tabindex="0"`,before:j,after:'tabindex="0"'}),'tabindex="0"'});if(H.fixButtonFocusable)q=q.replace(/<([a-z]+)(\s[^>]*role\s*=\s*["']button["'][^>]*)>/gi,(K,N,j)=>{if(/\btabindex\s*=/i.test(j))return K;if(N.toLowerCase()==="button")return K;let z=K,Q=`<${N}${j} tabindex="0">`;return J.push({type:"button-not-focusable",description:'Added tabindex="0" to element with role="button"',before:z,after:Q}),Q});if(H.fixTableHeaders)q=q.replace(/<th([^>]*)>/gi,(K,N)=>{if(/\bscope\s*=/i.test(N))return K;let j=K,z=`<th${N} scope="col">`;return J.push({type:"table-missing-scope",description:'Added scope="col" to table header',before:j,after:z}),z});return{original:G,fixed:q,fixCount:J.length,fixes:J}}async function k(G,X={},H=!1){let J=await Bun.file(G).text(),q=L(J,X);if(H&&q.fixCount>0)await Bun.write(G,q.fixed);return q}async function p(G,X={},H={}){let J={},{recursive:q=!0,ignorePaths:K=[],writeBack:N=!1,extensions:j=[".stx",".html",".htm"]}=H,z=j.length===1?`*${j[0]}`:`*{${j.join(",")}}`,Q=$.join(G,q?`**/${z}`:z),V=new Bun.Glob(Q);for await(let Y of V.scan()){if(K.some((Z)=>Y.includes($.normalize(Z))))continue;try{let Z=await k(Y,X,N);if(Z.fixCount>0)J[Y]=Z}catch(Z){console.error(`Error fixing ${Y}:`,Z)}}return J}var y={name:"a11y",handler:(G,X,H,J)=>{if(!X.length)return G;let q=X[0].replace(/['"]/g,""),K=X.length>1?X[1].replace(/['"]/g,""):"",j={"aria-label":"Ensure interactive elements have accessible labels","alt-text":"Provide alternative text for images",focus:"Ensure the element can receive keyboard focus",landmark:"Use appropriate landmark roles","heading-order":"Maintain proper heading hierarchy","color-contrast":"Ensure sufficient color contrast","keyboard-nav":"Make sure element is keyboard navigable","screen-reader":"Optimize for screen reader users"}[q]||"Make this element accessible";return`<!-- a11y-hint: ${K||j} -->${G}`},hasEndTag:!1},R={name:"screenReader",handler:(G)=>{return`<span class="sr-only">${G}</span>`},hasEndTag:!0};function g(){return[y,R]}
|
|
15
|
-
export{u as
|
|
15
|
+
export{u as bA,v as cA,A as dA,C as eA,x as fA,L as gA,k as hA,p as iA,y as jA,R as kA,g as lA};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import J from"fs";import F from"path";function V(z){try{return J.statSync(z).mtimeMs}catch{return null}}function Q(z,B){let j=Math.max(0,Math.round((B-z)/1000));if(j<60)return`${j}s ago`;if(j<3600)return`${Math.round(j/60)}m ago`;return`${Math.round(j/3600)}h ago`}function X(z,B){try{return globalThis.Bun?.resolveSync(z,B)??null}catch{return null}}function Y(z,B="stx"){let j=F.resolve(z);for(let A=0;A<10;A++){let q=F.join(j,"pantry","@stacksjs",B);if(J.existsSync(q))return q;let K=F.dirname(j);if(K===j)break;j=K}return null}async function $(z={}){let B=z.cwd?F.resolve(z.cwd):process.cwd(),j=z.resolve??X,A=Date.now(),q=[],K=j("@stacksjs/stx",B);q.push(K?{name:"@stacksjs/stx resolves to",status:"ok",detail:K}:{name:"@stacksjs/stx resolves to",status:"info",detail:"not resolvable from here (running inside the stx repo, or not installed)"});let T=j("bun-plugin-stx",B);if(T)q.push({name:"bun-plugin-stx resolves to",status:"ok",detail:T});let C=Y(B,"stx");if(!C)q.push({name:"pantry",status:"info",detail:"no pantry/@stacksjs/stx found \u2014 standard install (nothing to rebuild)"});else{let H=F.join(C,"src/signals.ts"),I=[F.join(C,"dist/index.js"),F.join(C,"dist/signals.js")].find((G)=>J.existsSync(G))||null,L=V(H),N=I?V(I):null;if(L==null)q.push({name:"pantry dist freshness",status:"info",detail:`found pantry at ${C} but no src/signals.ts to compare`});else if(N==null)q.push({name:"pantry dist freshness",status:"error",detail:"pantry has src but no built dist \u2014 the dev server will resolve nothing (or a stale copy elsewhere)",fix:`cd ${C} && bun build.ts`});else if(N<L){let G=Math.round((L-N)/1000);q.push({name:"pantry dist freshness",status:"error",detail:`dist (${Q(N,A)}) is OLDER than src/signals.ts (${Q(L,A)}) by ${G}s \u2014 your edit isn't built`,fix:`cd ${C} && bun build.ts`})}else q.push({name:"pantry dist freshness",status:"ok",detail:`dist rebuilt after src (src ${Q(L,A)}, dist ${Q(N,A)})`});let U=F.join(B,"node_modules/@stacksjs/stx"),O=null;try{O=J.lstatSync(U)}catch{O=null}if(!O)q.push({name:"node_modules \u2192 pantry",status:"info",detail:"node_modules/@stacksjs/stx not present (not installed here)"});else if(O.isSymbolicLink()){let G=null;try{G=J.realpathSync(U)}catch{}let W=(()=>{try{return J.realpathSync(C)}catch{return C}})();q.push(G===W?{name:"node_modules \u2192 pantry",status:"ok",detail:"symlinked to pantry"}:{name:"node_modules \u2192 pantry",status:"warn",detail:`symlinked to ${G||"(dangling)"}, not pantry`})}else q.push({name:"node_modules \u2192 pantry",status:"warn",detail:"is a real directory, NOT symlinked to pantry \u2014 edits to pantry src/dist won't be resolved",fix:"rm -rf node_modules/@stacksjs/stx && ln -s ../../pantry/@stacksjs/stx node_modules/@stacksjs/stx"})}if(q.push({name:"dev runtime cache",status:"info",detail:"cleared automatically on source edits by the dev watcher (clearDevCaches, #1745 item C)"}),z.generateRuntime)try{let I=z.generateRuntime().length;q.push(I>1000?{name:"signals runtime",status:"ok",detail:`generated ${I.toLocaleString()} chars`}:{name:"signals runtime",status:"warn",detail:`generated only ${I} chars \u2014 suspiciously short`})}catch(H){q.push({name:"signals runtime",status:"error",detail:`failed to generate: ${H.message}`})}return{checks:q,ok:!q.some((H)=>H.status==="error")}}function b(z){let B={ok:"\u2713",warn:"\u26A0",error:"\u2717",info:"\xB7"},j=["stx runtime resolution:"];for(let A of z.checks)if(j.push(` ${B[A.status]} ${A.name}: ${A.detail}`),A.fix)j.push(` \u2192 ${A.fix}`);return j.push(""),j.push(z.ok?"\u2713 All framework-runtime layers are aligned.":"\u2717 A runtime layer is stale \u2014 see the fixes above."),j.join(`
|
|
3
3
|
`)}
|
|
4
|
-
export{Y as
|
|
4
|
+
export{Y as mn,$ as nn,b as on};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function W(C){let{token:J,baseUrl:K="https://api.netlify.com/api/v1"}=C;async function E(A,j,F={}){let L=`${K}${j}`,O={Authorization:`Bearer ${J}`,"User-Agent":"stx-deploy/1.0"},M;if(F.rawBody)O["Content-Type"]=F.contentType||"application/octet-stream",M=F.rawBody;else if(F.body)O["Content-Type"]="application/json",M=JSON.stringify(F.body);let D=await fetch(L,{method:A,headers:O,body:M});if(!D.ok){let Q=Error(`Netlify API error: ${D.status} ${D.statusText}`);Q.status=D.status;try{let R=await D.json();Q.message=R.message||Q.message,Q.code=R.code,Q.details=R}catch{}throw Q}let H=await D.text();if(!H)return{};return JSON.parse(H)}return{async getSite(A){return E("GET",`/sites/${A}`)},async listSites(){return E("GET","/sites")},async createSite(A){let j={};if(A)j.name=A;return E("POST","/sites",{body:j})},async createDeploy(A,j){let F={files:j.files,draft:j.draft??!0,async:j.async??!0};if(j.title)F.title=j.title;if(j.branch)F.branch=j.branch;if(j.functions)F.functions=j.functions;return E("POST",`/sites/${A}/deploys`,{body:F})},async uploadFile(A,j,F){let L=j.startsWith("/")?j.slice(1):j;await E("PUT",`/deploys/${A}/files/${L}`,{rawBody:F,contentType:"application/octet-stream"})},async uploadFiles(A,j){let L=[...j],O=async()=>{while(L.length>0){let D=L.shift();if(D)await this.uploadFile(A,D.path,D.content)}},M=Array.from({length:Math.min(5,j.length)},()=>O());await Promise.all(M)},async getDeploy(A){return E("GET",`/deploys/${A}`)},async waitForDeploy(A,j={}){let{timeout:F=300000,pollInterval:L=2000,onProgress:O}=j,M=Date.now();while(!0){let D=await this.getDeploy(A);if(O)O(D);if(D.state==="ready")return D;if(D.state==="error"){let H=Error(`Deploy failed: ${D.error_message||"Unknown error"}`);throw H.status=500,H.details=D,H}if(Date.now()-M>F){let H=Error(`Deploy timed out after ${F}ms`);throw H.status=408,H.details=D,H}await new Promise((H)=>setTimeout(H,L))}},async lockDeploy(A){return E("POST",`/deploys/${A}/lock`)},async unlockDeploy(A){return E("POST",`/deploys/${A}/unlock`)}}}async function V(C){let J=await crypto.subtle.digest("SHA-1",C);return Array.from(new Uint8Array(J)).map((E)=>E.toString(16).padStart(2,"0")).join("")}async function X(C,J={}){let{ignore:K=["node_modules",".git",".env*","*.map"]}=J,E=[],A=new Bun.Glob("**/*");for await(let j of A.scan({cwd:C,onlyFiles:!0,dot:!1})){if(K.some((H)=>{if(H.includes("*"))return new RegExp(`^${H.replace(/\*/g,".*")}$`).test(j);return j.includes(H)}))continue;let L=`${C}/${j}`,M=await Bun.file(L).arrayBuffer(),D=await V(M);E.push({path:j,content:new Uint8Array(M),sha1:D})}return E}function Y(C){let J={};for(let K of C)J[`/${K.path}`]=K.sha1;return J}function Z(C,J){let K=new Set(J.map((E)=>E.startsWith("/")?E.slice(1):E));return C.filter((E)=>K.has(E.path))}function _(C){if(C<1024)return`${C} B`;if(C<1048576)return`${(C/1024).toFixed(1)} KB`;if(C<1073741824)return`${(C/1048576).toFixed(1)} MB`;return`${(C/1073741824).toFixed(1)} GB`}function $(C){return C.reduce((J,K)=>J+K.content.byteLength,0)}
|
|
3
|
-
export{W as
|
|
3
|
+
export{W as Sn,V as Tn,X as Un,Y as Vn,Z as Wn,_ as Xn,$ as Yn};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{il as k,jl as q}from"./chunk-0wdar532.js";import{tl as j}from"./chunk-9agvhp1x.js";import{zl as A}from"./chunk-znxp3zha.js";function H(){return{script:[j(),k(),A()].join(`
|
|
3
3
|
|
|
4
4
|
`),css:q()}}function y(){let{script:D,css:E}=H(),F=D.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/.*$/gm,"").replace(/\s+/g," ").replace(/\s*([{};,:])\s*/g,"$1").trim(),G=E.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};,:])\s*/g,"$1").trim();return{script:F,css:G}}
|
|
5
|
-
export{H as
|
|
5
|
+
export{H as $k,y as al};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{h as
|
|
2
|
+
import{Ls as y}from"./chunk-w01y57f5.js";import{et as x}from"./chunk-nap11ntr.js";import{yy as I}from"./chunk-94g3cahw.js";import g from"crypto";import w from"path";class h{store=new Map;async get(B){let U=this.store.get(B);if(!U||U.expires<=Date.now()){if(U)this.store.delete(B);return null}return{...U.data}}async set(B,U,A){this.store.set(B,{data:{...U},expires:Date.now()+A*1000})}async delete(B){this.store.delete(B)}}async function l(B,U,A){let Q={},z={},b=await A.get(B);if(b)Object.assign(Q,b);let E={id:B,data:Q,get(G){return Q[G]},set(G,O){Q[G]=O,W()},delete(G){delete Q[G],W()},clear(){Object.keys(Q).forEach((G)=>delete Q[G]),W()},has(G){return G in Q},flash(G,O){if(O!==void 0){z[G]=O;return}let R=z[G];return delete z[G],R},regenerate(){let G=B;B=u(),E.id=B,A.delete(G),W()},destroy(){A.delete(B),Object.keys(Q).forEach((G)=>delete Q[G])}};function W(){A.set(B,{...Q,__flash:z},U)}return W(),E}function u(){return g.randomBytes(32).toString("hex")}function p(B){if(!B)return{};return B.split(";").reduce((U,A)=>{let[Q,...z]=A.trim().split("=");if(Q)U[Q]=decodeURIComponent(z.join("="));return U},{})}function v(B,U,A={}){let Q=`${encodeURIComponent(B)}=${encodeURIComponent(U)}`;if(A.maxAge!==void 0)Q+=`; Max-Age=${A.maxAge}`;if(A.expires)Q+=`; Expires=${A.expires.toUTCString()}`;if(A.path)Q+=`; Path=${A.path}`;if(A.domain)Q+=`; Domain=${A.domain}`;if(A.secure)Q+="; Secure";if(A.httpOnly)Q+="; HttpOnly";if(A.sameSite)Q+=`; SameSite=${A.sameSite}`;return Q}function d(){return g.randomBytes(32).toString("hex")}function r(B,U){if(!B||!U)return!1;try{return g.timingSafeEqual(Buffer.from(B),Buffer.from(U))}catch{return!1}}async function i(B,U={},A={}){let Q=A.viewsDir||"./views",z=A.layoutsDir||"./layouts",b=!B.includes("<")&&!B.includes("@"),E,W;if(b){if(W=w.resolve(Q,B),!W.endsWith(".stx"))W+=".stx";if(!await Bun.file(W).exists())return new Response(`Template not found: ${B}`,{status:500});E=await Bun.file(W).text()}else E=B,W="inline-template.stx";let G={...U,props:U,__filename:W,__dirname:w.dirname(W)};if(A.ctx)G.csrf_token=A.ctx.csrfToken,G.csrf_field=`<input type="hidden" name="_token" value="${A.ctx.csrfToken}">`,G.old=A.ctx.old,G.errors=A.ctx.errors,G.session=A.ctx.session,G.user=A.ctx.user(),G.isAuthenticated=A.ctx.isAuthenticated();let O=E.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(O){let H=O[1];E=E.replace(/<script\s+server\b[^>]*>[\s\S]*?<\/script>/gi,""),await x(H,G,W)}let R={layoutsDir:z,...A.stxOptions},P=await y(E,G,W,R,new Set),C=new Headers({"Content-Type":"text/html; charset=utf-8"});if(A.ctx)A.ctx.responseHeaders.forEach((H,T)=>{C.set(T,H)});return new Response(P,{headers:C})}function e(B={}){let{viewsDir:U="./views",layoutsDir:A="./layouts",defaultLayout:Q,sessionSecret:z=g.randomBytes(32).toString("hex"),sessionCookieName:b="stx_session",sessionTtl:E=86400,stxOptions:W={},csrfCookieName:G="csrf_token",csrfEnabled:O=!0}=B,R=B.sessionStore??new h,q=[],P=[];function C(j,J){for(let K of q){if(K.method!==j&&K.method!=="*")continue;let Y=[],V=K.pattern.replace(/\/:(\w+)/g,(Z,X)=>{return Y.push(X),"/([^/]+)"}).replace(/\//g,"\\/"),L=new RegExp(`^${V}$`),_=J.match(L);if(_){let Z={};return Y.forEach((X,N)=>{Z[X]=_[N+1]}),{route:K,params:Z}}}return null}async function H(j,J){let K=new URL(j.url),Y=p(j.headers.get("Cookie")),V=new Headers,L=[],_=Y[b];if(!_)_=u(),L.push(v(b,_,{httpOnly:!0,secure:K.protocol==="https:",sameSite:"Lax",path:"/",maxAge:E}));let Z=await l(_,E,R),X=Z.get("_csrf");if(!X)X=d(),Z.set("_csrf",X);let N={};K.searchParams.forEach(($,F)=>{N[F]=$});let f=Z.flash("_errors")||{},k=Z.flash("_old_input")||{},m={request:j,url:K,params:J,query:N,session:Z,csrfToken:X,cookies:Y,responseHeaders:V,errors:f,async formData(){let $=await j.formData(),F={};return $.forEach((D,c)=>{F[c]=D}),F},async json(){return await j.json()},setCookie($,F,D={}){L.push(v($,F,D))},flash($,F){Z.flash($,F)},getFlash($){return Z.flash($)},old($){return k[$]||""},isAuthenticated(){return Z.has("user")},user(){return Z.get("user")}};if(L.length>0)L.forEach(($)=>{V.append("Set-Cookie",$)});return m}let T=async(j,J)=>{if(["GET","HEAD","OPTIONS"].includes(j.request.method))return J();if(!O)return J();let Y=(await j.request.clone().formData().catch(()=>new FormData)).get("_token"),V=j.request.headers.get("X-CSRF-Token"),L=Y||V,_=j.session.get("_csrf");if(!L||!_||!r(L,_))return new Response("CSRF token mismatch",{status:419});return J()};async function S(j){let J=new URL(j.url),K=j.method,Y=C(K,J.pathname);if(!Y)return new Response("Not Found",{status:404});let V=await H(j,Y.params),L=[...P,T,...Y.route.middleware],_=0,Z=async()=>{if(_<L.length){let X=L[_++];return X(V,Z)}return Y.route.handler(V)};try{let X=await Z();return V.responseHeaders.forEach((N,f)=>{X.headers.set(f,N)}),X}catch(X){return I.log(X instanceof Error?X:Error(String(X)),{handler:"request"},"error"),new Response("Internal Server Error",{status:500})}}function M(j,J,K,Y=[]){q.push({method:j,pattern:J,handler:K,middleware:Y})}return{fetch:S,get(j,J,K=[]){return M("GET",j,J,K),this},post(j,J,K=[]){return M("POST",j,J,K),this},put(j,J,K=[]){return M("PUT",j,J,K),this},delete(j,J,K=[]){return M("DELETE",j,J,K),this},patch(j,J,K=[]){return M("PATCH",j,J,K),this},use(j){return P.push(j),this},async render(j,J={},K){return i(j,J,{viewsDir:U,layoutsDir:A,stxOptions:W,ctx:K})},redirect(j,J=302){return new Response(null,{status:J,headers:{Location:j}})},back(j,J,K){if(J)j.session.flash("_errors",J);if(K)j.session.flash("_old_input",K);let Y=j.request.headers.get("Referer")||"/";return new Response(null,{status:302,headers:{Location:Y}})},listen(j=3000){return Bun.serve({port:j,fetch:S})}}}
|
|
3
|
+
export{h as ng,i as og,e as pg};
|
|
@@ -65,4 +65,4 @@ var B=null,F=[],J=0;function K(){return`stx-${++J}`}function M(q=null){return{sc
|
|
|
65
65
|
};
|
|
66
66
|
})();
|
|
67
67
|
`}
|
|
68
|
-
export{K as
|
|
68
|
+
export{K as Uq,M as Vq,N as Wq,O as Xq,Q as Yq,R as Zq,U as _q,W as $q,X as ar,Y as br,Z as cr,_ as dr,$ as er,j as fr,A as gr,G as hr,T as ir,b as jr};
|