@shweet/qt 0.0.19 → 0.0.20

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/README.md ADDED
@@ -0,0 +1,94 @@
1
+ # @shweet/qt
2
+
3
+ `@shweet/qt` adds three CSS authoring styles to [Shweet](https://www.npmjs.com/package/shweet):
4
+
5
+ - **`$`** — fluent, low-level helpers for writing individual CSS declarations.
6
+ - **`S`** (Strap) — reusable component presets, theme tokens, and a shared stylesheet.
7
+ - **`T`** (Tally) — typed utility chains for common layout, spacing, color, and responsive rules.
8
+
9
+ All three are build-time APIs. Importing them or composing declarations does not compile CSS or write files; Shweet's `save()` emits the stylesheet and optional class map.
10
+
11
+ ```sh
12
+ bun add @shweet/qt shweet
13
+ ```
14
+
15
+ ## `$`: CSS declaration helpers
16
+
17
+ `$` exposes fluent helpers that produce Shweet declarations. Pass them directly in a declaration array to compose a class rule.
18
+
19
+ ```ts
20
+ import { Shweet } from "shweet";
21
+ import { $ } from "@shweet/qt/$";
22
+
23
+ const app = new Shweet({
24
+ __filename,
25
+ prefix: "",
26
+ exportMap: true,
27
+ });
28
+
29
+ app.c.toolbar = [
30
+ $.DISPLAY.flex,
31
+ $.PADDING.px(12),
32
+ { gap: "0.75rem" },
33
+ ];
34
+
35
+ app.save({ dir: "generated", mapDir: "generated", name: "app", mapName: "map" });
36
+ ```
37
+
38
+ ## Strap (`S`): presets and themes
39
+
40
+ Strap ships a reusable stylesheet as `S.SHWEET`, chainable presets such as `S.BUTTON` and `S.CARD`, and `S.theme()` for token-based themes. Include `S.SHWEET` and spread `S.MEDIA` into the saving Shweet instance.
41
+
42
+ ```ts
43
+ import { Shweet } from "shweet";
44
+ import { S } from "@shweet/qt/$strap";
45
+
46
+ const brand = S.theme("brand", { stColorAccent: "#7c3aed" });
47
+
48
+ const app = new Shweet({
49
+ __filename,
50
+ prefix: "",
51
+ shweets: [S.SHWEET, brand],
52
+ exportMap: true,
53
+ mediaFeature: { ...S.MEDIA },
54
+ });
55
+
56
+ app.c["app-action"] = S.BUTTON.primary.small;
57
+ app.save({ dir: "generated", mapDir: "generated", name: "app", mapName: "map" });
58
+ ```
59
+
60
+ ## Tally (`T`): typed utility chains
61
+
62
+ Tally provides a typed, immutable chain API. Base and responsive values for the same property stay in one chain, and Tally's media features are spread into the final Shweet instance.
63
+
64
+ ```ts
65
+ import { Shweet } from "shweet";
66
+ import { T } from "@shweet/qt/$tally";
67
+
68
+ const app = new Shweet({
69
+ __filename,
70
+ prefix: "app",
71
+ exportMap: true,
72
+ mediaFeature: { ...T.MEDIA },
73
+ });
74
+
75
+ app.c["app-layout"] = T.grid.gap_5.p_6.md.grid_cols_2;
76
+ app.c.action = T.inline_flex.items_center.px_4.py_2.hover.bg_blue_700;
77
+ app.save({ dir: "generated", mapDir: "generated", name: "app", mapName: "map" });
78
+ ```
79
+
80
+ ## Package entries
81
+
82
+ Import from a focused entry point:
83
+
84
+ ```ts
85
+ import { $ } from "@shweet/qt/$";
86
+ import { S } from "@shweet/qt/$strap";
87
+ import { T } from "@shweet/qt/$tally";
88
+ ```
89
+
90
+ The root entry also exports all three: `import { $, S, T } from "@shweet/qt";`.
91
+
92
+ Shweet is a peer dependency and must be installed by the consumer.
93
+
94
+ For more detail, see the [QT reference](docs/qt-readme.md), [Strap guide](docs/strap-readme.md), and [Tally guide](docs/tally-readme.md).
@@ -0,0 +1,16 @@
1
+ // @bun
2
+ import{existsSync as Lt,mkdirSync as Oe,writeFileSync as Ee}from"fs";import{writeFileSync as Je}from"fs";import{writeFileSync as pr}from"fs";var{create:le,defineProperty:ot,getOwnPropertyDescriptor:oe}=Object,vt=(n,s)=>(Object.defineProperty(n,"name",{value:s,enumerable:!1,configurable:!0}),n),ce=(n)=>n;function ue(n,s){this[n]=ce.bind(null,s)}var fe=(n,s)=>{for(var a in s)ot(n,a,{get:s[a],enumerable:!0,configurable:!0,set:ue.bind(s,a)})},Rt=(n,s)=>(s=Symbol[n])?s:Symbol.for("Symbol."+n),z=(n)=>{throw TypeError(n)},he=(n,s,a)=>(s in n)?ot(n,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[s]=a,ct=(n,s,a)=>s.has(n)||z("Cannot "+a),de=(n,s)=>Object(s)!==s?z('Cannot use the "in" operator on this value'):n.has(s),bt=(n,s,a)=>(ct(n,s,"read from private field"),a?a.call(n):s.get(n)),wt=(n,s,a,l)=>(ct(n,s,"write to private field"),l?l.call(n,a):s.set(n,a),a),pe=(n,s,a)=>(ct(n,s,"access private method"),a),me=(n)=>[,,,le(n?.[Rt("metadata")]??null)],Mt=["class","method","getter","setter","accessor","field","value","get","set"],W=(n)=>n!==void 0&&typeof n!=="function"?z("Function expected"):n,ge=(n,s,a,l,c)=>({kind:Mt[n],name:s,metadata:l,addInitializer:(u)=>a._?z("Already initialized"):c.push(W(u||null))}),Dt=(n,s)=>he(s,Rt("metadata"),n[3]),ve=(n,s,a,l)=>{for(var c=0,u=n[s>>1],f=u&&u.length;c<f;c++)s&1?u[c].call(a):l=u[c].call(a,l);return l},be=(n,s,a,l,c,u)=>{var f,h,m,w,y,d=s&7,g=!!(s&8),v=!!(s&16),p=d>3?n.length+1:d?g?1:2:0,b=Mt[d+5],x=d>3&&(n[p-1]=[]),k=n[p]||(n[p]=[]),O=d&&(!v&&!g&&(c=c.prototype),d<5&&(d>3||!v)&&oe(d<4?c:{get[a](){return bt(this,u)},set[a](_){wt(this,u,_)}},a));d?v&&d<4&&vt(u,(d>2?"set ":d>1?"get ":"")+a):vt(c,a);for(var R=l.length-1;R>=0;R--){if(w=ge(d,a,m={},n[3],k),d){if(w.static=g,w.private=v,y=w.access={has:v?(_)=>de(c,_):(_)=>(a in _)},d^3)y.get=v?(_)=>(d^1?bt:pe)(_,c,d^4?u:O.get):(_)=>_[a];if(d>2)y.set=v?(_,X)=>wt(_,c,X,d^4?u:O.set):(_,X)=>_[a]=X}if(h=(0,l[R])(d?d<4?v?u:O[b]:d>4?void 0:{get:O.get,set:O.set}:c,w),m._=1,d^4||h===void 0)W(h)&&(d>4?x.unshift(h):d?v?u=h:O[b]=h:c=h);else if(typeof h!=="object"||h===null)z("Object expected");else W(f=h.get)&&(O.get=f),W(f=h.set)&&(O.set=f),W(f=h.init)&&x.unshift(f)}return d||Dt(n,c),O&&ot(c,a,O),v?d^4?u:O:c},we={};fe(we,{isClassOrId:()=>Nt,isNumber:()=>It,isNumeric:()=>Pt});var It=(n)=>typeof n==="number",Pt=(n)=>{let s=String(n);return!Number.isNaN(parseFloat(s))&&Number.isFinite(Number(n))},Nt=(n)=>n.startsWith(".")||n.startsWith("#"),C=(n)=>typeof n==="string",$e=(n)=>typeof n==="function",j=(n)=>Array.isArray(n),q=(n)=>ye(n)&&typeof n==="object",Tt=(n)=>n===null,Ct=(n)=>n===void 0,F=(n)=>!Ct(n),ye=(n)=>n!==null,P=(n)=>j(n)?n:[n];function st(n=3){let s=((Error().stack?.split(`
3
+ `)??[])[n]||"").match(/at\s+([^(]+)\s*\(/);return(s?s[1].split(".").pop()?.trim():"?")??"?"}class Ft{name;constructor(n){this.name=n}log=(...n)=>{let s=st(3);console.log(`[${this.name}.${s}]`,...n)};set i(n){let s=st(3);console.log(`[${this.name}.${s}]`,...P(n))}}class Xt{static logger=(n)=>new Ft(C(n)?n:n.constructor.name);static set f(n){let s=st();console.log(`[${s}]`,...P(n))}static set i(n){console.info(...P(n))}static set e(n){console.error(...P(n))}static set w(n){console.warn(...P(n))}static set d(n){let s=new Date().toLocaleTimeString();console.log(...P(n),`@ ${s}`)}static get d(){let n=new Date().toLocaleTimeString();console.log(`@ ${n}`);return}}var xe=(n)=>JSON.stringify(n),ke=(n)=>{if(!n||typeof n!=="string")return null;try{return JSON.parse(n)}catch{return null}};class E extends Map{constructor(n){if(n&&!Array.isArray(n)&&typeof n==="object"){super();this.mergeObject(n)}else super(n)}mergeObject(n){if(n&&q(n))Object.entries(n).forEach(([s,a])=>{this.set(s,a)});return this}mergeMap(n){if(!(n instanceof Map))return this;return n.forEach((s,a)=>{let l=this.get(a);if(s instanceof E)if(l instanceof E)l.mergeMap(s);else this.set(a,s);else if(j(s)){let c=j(l)?l:[];this.set(a,[...c,...s])}else if(q(s))this.assign(a,s);else this.set(a,s)}),this}assign(n,s){let a=this.get(n),l=q(a)?a:{};return this.set(n,{...l,...s}),this}lacks(n){return!this.has(n)}init(n,s){if(this.has(n))return this.get(n);return this.set(n,s),s}mapValues(n){let s=new E;return this.forEach((a,l)=>{s.set(l,n(a,l,this))}),s}filter(n){let s=new E;return this.forEach((a,l)=>{if(n(a,l,this))s.set(l,a)}),s}toObject(){let n={};return this.forEach((s,a)=>{let l=String(a);if(s instanceof E)n[l]=s.toObject();else n[l]=s}),n}toJson(){return JSON.stringify(this.toObject())}static fromGroup(n,s){let a=new E;if(!Array.isArray(n))return a;return n.forEach((l)=>{let c=l[s];a.init(c,[]).push(l)}),a}}var ut=(n)=>{if(!n)return"";return n.replace(/-([a-z])/g,(s,a)=>a.toUpperCase())},ft=(n)=>{if(!n)return"";let s=n;if(s.startsWith("webkit"))s="-"+s;return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};var tt=(n,s,a)=>{if(!n.has(s))n.set(s,{});Object.assign(n.get(s),a)};var $t=(n)=>{if(Lt(n))return!0;return Oe(n,{recursive:!0}),!0},yt=(n,s="")=>{if(Lt(n))return!0;return Ee(n,s,{flag:"wx"}),!0};function je(n,s){let a=s.name;s.addInitializer(function(){Object.defineProperty(this,a,{configurable:!0,enumerable:!1,get(){let l=n.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,value:l}),l}})})}var et={xs:"480px",sm:"480px",smd:"624px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"};class S{static default="xs";static prop=Object.entries(et).reduce((n,[s,a],l)=>(n[s]=`(${l==0?"max-width":"min-width"}: ${a})`,n),{});static extra={no_hover:"(pointer: coarse)",mobile:"(pointer: coarse)",print:"print",screen:"screen",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"};constructor(n,s={}){let a=S.default,l={};if(n!==void 0)T(l,a,n,a);Object.entries(s).forEach(([c,u])=>{T(l,c,u,a)}),Object.assign(this,l)}static get breakpoints(){return ke(xe(et))??et}}var T=(n,s,a,l)=>{if(a!==void 0)if(a instanceof S)Object.entries(a).forEach(([c,u])=>{if(l!==s)if(s!==c)if(l===c)T(n,s,u,l);else T(n,`${s}-${c}`,u,l);else T(n,c,u,l);else T(n,c,u,l)});else n[s]=a};function e(n,s){if(s)return new S(n,s);if(typeof n==="object")return new S(void 0,n);return new S(n,{})}function Se(n){if(this._prefix)return e({[this._prefix]:n});else return e({xs:n})}function A(n){return new this.constructor({prefix:n,values:this._values,data:this.data})}class o{_prefix;data;_values;constructor({prefix:n,data:s,values:a}={}){this._prefix=n,this._values=a??{},Object.entries(this._values).forEach(([l,c])=>{if(!this._values[l])this._values[l]=e({});Object.assign(this._values[l],c)}),this.data=s??{}}get XS(){return A.call(this,"xs")}get SM(){return A.call(this,"sm")}get SMD(){return A.call(this,"smd")}get MD(){return A.call(this,"md")}get LG(){return A.call(this,"lg")}get XL(){return A.call(this,"xl")}get XXL(){return A.call(this,"xxl")}get NO_HOVER(){return A.call(this,"no_hover")}get MOBILE(){return A.call(this,"mobile")}get PRINT(){return A.call(this,"print")}get SCREEN(){return A.call(this,"screen")}get DARK(){return A.call(this,"dark")}set _value(n){Object.entries(n).forEach(([s,a])=>{if(!this._values[s])this._values[s]=e({});Object.assign(this._values[s],Se.call(this,a))})}get _value(){return this._values}}class M{k="";fallback;var="";value;constructor(n={},s){if(Object.keys(n).length){let[a,l]=Object.entries(n)[0];this.k=a,this.var="--"+ft(a),this.value=l instanceof S?l:e(l,{}),this.fallback=s}else this.value=e({})}__(n){if(n)this.fallback=n;let s=this.fallback;if(s)return`var(${this.var}, ${t(s)})`;else return`var(${this.var})`}new(n,s){return new M({[this.k]:n instanceof S?n:t(n)},s)}}var t=(n,s={unit:"rem"})=>{let{rem:a,second:l,quote:c,degree:u,percent:f,delimeter:h,unit:m,delimeter_arr:w}=s;if(Ct(n)||Tt(n)||!c&&n==="")return"";let y=j(n)?n:[n];if(!y.length)return"";return y.filter((d)=>F(d)).map((d)=>{if(j(d))return h=w||", ",t(d,{...s,delimeter:" "});if(d instanceof M)return d.__();if(c)d=String(d);if(It(d))if(a)return`${d}${m?m:"rem"}`;else if(u)return`${d}deg`;else if(f)return`${d}%`;else if(l)return`${d}s`;else return String(d);if(C(d))if(d.includes("("))return d;else if(c)return`'${d}'`;else return d;return""}).filter((d)=>F(d)&&d!=="").join(h||" ")};class Wt{static minmax(n,s){return`minmax(${t([n,s],{rem:!0,delimeter:", "})})`}static fitContent(n){return`fit-content(${t([n],{rem:!0})})`}static repeat(n,...s){return`repeat(${t([n,t([s],{rem:!0})],{delimeter:", "})})`}}class r extends Wt{static attr(n,s,a){return`attr(${t([n,s,a])})`}static blur(n){return`blur(${t([n],{rem:!0})})`}static brightness(n){return`brightness(${t([n])})`}static calc(...n){return`calc(${t(n,{rem:!0})})`}static circle(n,s){return`circle(${t([n,s],{rem:!0})})`}static clamp(n,s,a){return`clamp(${t([n,s,a],{rem:!0,delimeter:", "})})`}static colorMix(n,s,a){return`color-mix(${t([n,t(j(s)?s:[s]),t(j(a)?a:[a])],{delimeter:", "})})`}static conicGradient(...n){return`conic-gradient(${t(n,{delimeter:", "})})`}static contrast(n){return`contrast(${t([n])})`}static cubicBezier(n,s,a,l){return`cubic-bezier(${t([n,s,a,l],{delimeter:", "})})`}static dropShadow(...n){return`drop-shadow(${t(n,{rem:!0})})`}static grayscale(n){return`grayscale(${t([n])})`}static hsl(n,s,a){return`hsl(${t([n,s,a])})`}static hsla(n,s,a,l){return`hsl(${t([n,s,a,l?["/",l]:l])})`}static hueRotate(n){return`hue-rotate(${t([n],{degree:!0})})`}static inset(...n){return`inset(${t(n,{rem:!0})})`}static invert(n){return`invert(${t([n])})`}static linearGradient(...n){return`linear-gradient(${t(n,{delimeter:", "})})`}static matrix(n,s,a,l,c,u){return`matrix(${t([n,s,a,l,c,u],{delimeter:", "})})`}static matrix3d(n,s,a,l){return`matrix3d(${t([n,s,a,l],{delimeter:", "})})`}static max(...n){return`max(${t(n,{rem:!0,delimeter:", "})})`}static min(...n){return`min(${t(n,{rem:!0,delimeter:", "})})`}static opacity(n){return`opacity(${t([n])})`}static path(n){return`path(${t([n],{quote:!0})})`}static clipPath(n,s){return`path(${t([n,t([s],{quote:!0})],{delimeter:", "})})`}static perspective(n){return`perspective(${t([n])})`}static polygon(...n){return`polygon(${t(n,{percent:!0,delimeter:", "})})`}static ray(...n){return`ray(${t(n,{degree:!0})})`}static radialGradient(...n){return`radial-gradient(${t(n,{delimeter_arr:", ",percent:!0,delimeter:", "})})`}static repeatingConicGradient(...n){return`repeating-conic-gradient(${t(n,{degree:!0,delimeter:", "})})`}static repeatingLinearGradient(...n){return`repeating-linear-gradient(${t(n,{degree:!0,delimeter:", "})})`}static repeatingRadialGradient(...n){return`repeating-radial-gradient(${t(n,{degree:!0,delimeter:", "})})`}static rgb(n,s,a){return`rgb(${t([n,s,a])})`}static rgba(n,s,a,l){return`rgba(${t([n,s,a,l?["/",l]:void 0],{delimeter_arr:" "})})`}static rotate(n){return`rotate(${t([n],{degree:!0})})`}static rotate3d(n,s,a,l){return`rotate3d(${t([t([n,s,a],{delimeter:", "}),l],{degree:!0,delimeter:", "})})`}static rotateX(n){return`rotateX(${t([n],{degree:!0})})`}static rotateY(n){return`rotateY(${t([n],{degree:!0})})`}static rotateZ(n){return`rotateZ(${t([n],{degree:!0})})`}static saturate(...n){return`saturate(${t(n)})`}static scale(n,s){return`scale(${t([n,s],{delimeter:", "})})`}static scale3d(n,s,a){return`scale3d(${t([n,s,a],{delimeter:", "})})`}static scaleX(n){return`scaleX(${t([n])})`}static scaleY(n){return`scaleY(${t([n])})`}static scaleZ(n){return`scaleZ(${t([n])})`}static sepia(n){return`sepia(${t([n])})`}static skew(...n){return`skew(${t(n,{degree:!0,delimeter:", "})})`}static skewX(n){return`skewX(${t([n],{degree:!0})})`}static skewY(n){return`skewY(${t([n],{degree:!0})})`}static steps(n,s){return`steps(${t([n,s],{delimeter:", "})})`}static translate(...n){return`translate(${t(n,{rem:!0,delimeter:", "})})`}static translate3d(...n){return`translate3d(${t(n,{rem:!0,delimeter:", "})})`}static translateX(n){return`translateX(${t([n],{rem:!0})})`}static translateY(n){return`translateY(${t([n],{rem:!0})})`}static translateZ(...n){return`translateZ(${t(n,{rem:!0,delimeter:", "})})`}static url(n){return`url(${t([n],{quote:!0})})`}static format(n){return`format(${t([n],{quote:!0})})`}static var(n,s=""){n="--"+ft(n);let a=s?", "+t([s],{rem:!0,delimeter:", "}):"";return`var(${t([n],{rem:!0})}${a})`}}class zt{value;__;constructor(n){if(this.value=new E,C(n))this.value.set(n,[]);else Object.entries(n).forEach(([s,a])=>{this.value.set(`${s}:${a}`,[])});this.__=(...s)=>(this.value.forEach((a)=>{a.push(...s)}),this)}}var I=(n)=>{if($e(n))return I(n());if(n instanceof S)return n;if(n instanceof M)return e(n.__(),{});return e(n,{})},H=(n)=>n==='"'||n==="'",ht="([{",dt=")]}",Bt=(n,s)=>{let a=[],l=0,c=null,u=0;for(let f=0;f<n.length;f++){let h=n[f];if(c){if(h==="\\")f++;else if(h===c)c=null;continue}if(h==="\\")f++;else if(H(h))c=h;else if(ht.includes(h))u++;else if(dt.includes(h)){if(u>0)u--}else if(h===s&&u===0)a.push(n.slice(l,f)),l=f+1}return a.push(n.slice(l)),a},_e=(n,s)=>{let a=null,l=0;for(let c=0;c<n.length;c++){let u=n[c];if(a){if(u==="\\")c++;else if(u===a)a=null;continue}if(u==="\\")c++;else if(H(u))a=u;else if(ht.includes(u))l++;else if(dt.includes(u)){if(l>0)l--}else if(u===s&&l===0)return c}return-1},pt=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/,Ae=(n)=>{if(!pt.test(n))return;let s=Number(n);return Number.isFinite(s)?s:void 0};function Re(n){let s={};return Bt(n,";").forEach((a)=>{let l=a.trim();if(l==="")return;let c=_e(l,":");if(c===-1)return;let u=l.slice(0,c).trim();if(u==="")return;let f=l.slice(c+1).trim(),h=u.startsWith("--"),m=h?u:ut(u);if(h){s[m]=f;return}let w=Ae(f);s[m]=w===void 0?f:w}),s}var Zt=new Set(["initial","inherit","unset","revert","revert-layer"]),Me=new Set(["linear","ease","ease-in","ease-out","ease-in-out","step-start","step-end"]),De=new Set(["cubic-bezier","steps","linear"]),Ie=new Set(["normal","reverse","alternate","alternate-reverse"]),Pe=new Set(["forwards","backwards","both"]),Ne=new Set(["running","paused"]),Ut=/^-{0,2}[A-Za-z_][A-Za-z0-9_-]*$/,Gt=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:s|ms)$/i,mt=(n)=>n.length>=2&&H(n[0])&&n[n.length-1]===n[0],qt=(n)=>{let s=[],a=-1,l=null,c=0;for(let u=0;u<n.length;u++){let f=n[u];if(l){if(f==="\\")u++;else if(f===l)l=null;continue}if(f==="\\"){if(a===-1)a=u;u++;continue}if(H(f)){if(a===-1)a=u;l=f;continue}if(ht.includes(f)){if(a===-1)a=u;c++;continue}if(dt.includes(f)){if(a===-1)a=u;if(c>0)c--;continue}if(c===0&&/\s/.test(f)){if(a!==-1)s.push(n.slice(a,u)),a=-1;continue}if(a===-1)a=u}if(a!==-1)s.push(n.slice(a));return s},Te=(n)=>{if(mt(n))return"name";let s=n.match(/^([A-Za-z][A-Za-z0-9-]*)\(/);if(s){if(n.endsWith(")")&&De.has(s[1].toLowerCase()))return"skip";return"abort"}if(Gt.test(n)||pt.test(n))return"skip";if(n.toLowerCase()==="!important")return"skip";if(!Ut.test(n))return"abort";let a=n.toLowerCase();if(Zt.has(a)||Me.has(a)||Ie.has(a)||Pe.has(a)||Ne.has(a)||a==="infinite"||a==="none")return"skip";return"name"},at=(n,s)=>{if(mt(n)){let a=n.slice(1,-1);if(a==="")return;let l=n[0];return{text:`${l}${s}${a}${l}`,name:a}}return{text:`${s}${n}`,name:n}},Ce=(n,s)=>{let a=qt(n),l=-1,c="";for(let h=0;h<a.length;h++){let m=a[h],w=m.toLowerCase(),y=Te(m);if(y==="abort")return{value:n,names:[]};if(w==="!important"&&h!==a.length-1)return{value:n,names:[]};if(y==="skip")continue;if(l!==-1)return{value:n,names:[]};l=h,c=m}if(l===-1)return{value:n,names:[]};let u=at(c,s);if(!u)return{value:n,names:[]};let f=[...a];return f[l]=u.text,{value:f.join(" "),names:[u.name]}},Fe=(n,s)=>{let a=qt(n.trim()),l=a.length>1&&a[a.length-1].toLowerCase()==="!important"?a.pop():void 0;if(a.length!==1)return{value:n,names:[]};let c=a[0];if(mt(c)){let f=at(c,s);if(!f)return{value:n,names:[]};return{value:[f.text,l].filter(Boolean).join(" "),names:[f.name]}}if(c.includes("("))return{value:n,names:[]};if(Gt.test(c)||pt.test(c))return{value:n,names:[]};if(!Ut.test(c))return{value:n,names:[]};let u=c.toLowerCase();if(Zt.has(u)||u==="none")return{value:n,names:[]};return{value:[at(c,s).text,l].filter(Boolean).join(" "),names:[c]}},xt=(n,s,a)=>{let l=Bt(n,",");if(l.some((h)=>h.trim()===""))return{value:n,names:[]};let c=[],u=!1,f=l.map((h)=>{let m=a(h,s);if(c.push(...m.names),m.value!==h)u=!0;return m.value});return{value:u?f.map((h)=>h.trim()).join(", "):n,names:c}},Xe=(n,s,a="animation")=>{if(a==="animationName")return xt(n,s,Fe);return xt(n,s,Ce)},Le=(n)=>{n.value.forEach((s,a)=>{n.value.set(a,s.map((l)=>{let c={};return Object.entries(l).forEach(([u,f])=>{if(F(f))c[u]=I(f)}),c}))})},lt=(n,s=[])=>{if(j(n))return lt(n[0]);if(n instanceof M)return lt(Object.values(n.value));return[String(n)]};function gt(n){let s=[],a=0,l=0,c=null;for(let u=0;u<n.length;u++){let f=n[u];if(f==="\\"){u++;continue}if(c){if(f===c)c=null;continue}if(f==="/"&&n[u+1]==="*"){let h=n.indexOf("*/",u+2);u=h===-1?n.length:h+1;continue}if(f==='"'||f==="'")c=f;else if(f==="("||f==="[")l++;else if(f===")"||f==="]"){if(l>0)l--}else if(f===","&&l===0)s.push(n.slice(a,u)),a=u+1}return s.push(n.slice(a)),s}function kt(n,s){let a=gt(n);if(a.length<=1)return n+s;return a.map((l)=>`${l.trim()}${s}`).join(", ")}function We(n,s,a){let l=gt(n);if(l.length<=1)return a.map((c)=>`${n}${s}${c.trim()}`).join(", ");return l.flatMap((c)=>a.map((u)=>`${c.trim()}${s}${u.trim()}`)).join(", ")}class Yt{base;constructor(n){this.base=n}prefixAnimationValues(n,s,a){let l=ut(s);if(!(l==="animation"||l==="animationName"))return a;let c=Object.assign(new S,a);return Object.entries(c).forEach(([u,f])=>{c[u]=this.addPrefixToAnimation(n,l,f)}),c}addPrefixToAnimation(n,s,a){if(a instanceof M)this.saveAnim(n,a);else if(j(a))return a.map((l)=>this.addPrefixToAnimation(n,s,l));else if(C(a)){let l=Xe(a,this.base.PREFIX,s);return l.names.forEach((c)=>{let u=`${this.base.PREFIX}${c}`;this.base.ANIM.init(u,new Set).add(n)}),l.value}return a}saveAnim(n,s){lt(s).forEach((a)=>{this.base.ANIM.init(`${this.base.PREFIX}${a}`,new Set).add(n)})}processDeclaration(n,s,a,l,c){if(a instanceof M)this.saveAnim(n,a),tt(l,s,this.prefixAnimationValues(n,a.var,I(a)));else if(s.startsWith(","))this.set(n+s,a,c);else if(s.startsWith(":")||s.startsWith("["))this.set(kt(n,s),a,c);else if(s.startsWith(" ")){let u=s.match(/^\s*(?:[>+~]\s*)?/)?.[0]??"";this.set(We(n,u,gt(s.slice(u.length))),a,c)}else if(Nt(s))this.set(kt(n,s),a,c);else l.set(s,this.prefixAnimationValues(n,s,I(a)))}set(n,s,a){if(!q(s)&&!Tt(s)&&!C(s))return;let l=new E;if(s instanceof M)this.saveAnim(n,s),tt(l,s.var,this.prefixAnimationValues(n,s.var,I(s.value)));else if(s instanceof o)Object.entries(s._value).forEach(([u,f])=>{if(F(f))l.set(u,this.prefixAnimationValues(n,u,I(f)))});else if(s instanceof zt)Le(s),l.init("supports",[]).push(s);else if(j(s))s.forEach((u)=>{this.set(n,u,a)});else if(C(s)){let u=Re(s);this.set(n,u,a)}else Object.entries(s).forEach(([u,f])=>{if(f instanceof M){this.saveAnim(n,f),tt(l,f.var,this.prefixAnimationValues(n,f.var,I(f.value)));return}return this.processDeclaration(n,u,f,l,a)});let c=a.init(n,new E);l.forEach((u,f)=>{if(f==="supports"&&j(u))a.init(n,new E).init(f,[]).push(...u);else c.set(f,u)})}}class B{PRE;EXPORT;UNIT;SOURCE;PS;PREFIX;ARR=new E;CID=new E;DATA=new E;ANIM=new E;IMPORTED=[];constructor(n="",s="",a,l,c=""){this.PRE=n,this.EXPORT=a,this.UNIT=l,this.SOURCE=c,this.PREFIX=s?s+"_":s,this.PS=new Yt(this)}get(n,s,a){let l=n.PRE+s;if(n.DATA.has(l))return l;else if(s in n)return n[s];else return n.PRE+s}set(n,s,a){return!1}get css(){return new Proxy(this,this)}load(n){return this.IMPORTED.push(n),this}__(n){Object.entries(n).forEach(([s,a])=>{this.set(this,s,a)})}}var Jt=new Set(["transitionDuration","transitionDelay","animationDelay","animationDuration"]),ze=new Set([...Jt,"zIndex","opacity","aspectRatio","order","flexShrink","flexGrow","flex","fillOpacity","lineClamp","order","scale","webkitLineClamp","lineHeight","fontWeight","orphans","widows","tabSize","zoom","borderImageOutset","borderImageSlice","borderImageWidth","animationIterationCount","columnCount","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd"]),Be=new Set(["content"]),Ze=new Set(["transitionProperty","animation","animationName"]),Y=(n,s,a="rem")=>{let l=ut(n),c=t(s,{rem:!ze.has(l),second:Jt.has(l),quote:Be.has(l),delimeter:Ze.has(l)?", ":" ",unit:a});return`${ft(n)}: ${c};`};class D extends B{set(n,s,a){let l=n.PRE+s;return n.PS.set(l,a,n.DATA),!0}}class K extends B{webkit;constructor(n="",s=!0,a,l=""){super("",n,!1,a,l);this.webkit=s}set(n,s,a){let l=n.PREFIX+s,c=j(a)?a:[a],u=new E;if(c.forEach((f)=>{Object.entries(f).forEach(([h,m])=>{let w=Pt(h)?`${h}%`:h;n.PS.set(w,m,u)})}),n.ANIM.init(l,new Set),n.DATA.set(`@keyframes ${l}`,u),this.webkit)n.DATA.set(`@-webkit-keyframes ${l}`,u);return!0}}class Q extends B{constructor(n="",s=""){super("@",n,void 0,void 0,s)}set(n,s,a){return n.ARR.init(n.PRE+s,new Set).add(a),n}}class V extends B{constructor(n="",s=""){super("@font-face",n,void 0,void 0,s);this.ARR.set(this.PRE,new Set)}set(n,s,a){let l=Object.entries({fontFamily:t([s],{quote:!0}),...a}).map(([c,u])=>Y(c,u,this.UNIT));return n.ARR.get(n.PRE)?.add(l.join(`
4
+ `)),!0}}var Ue=(n,s=!1,a,l,c="")=>({d:new D("",n,a,l,c),i:new D("#",n,a,l,c),c:new D(".",n,a,l,c),kf:new K(n,s,l,c),at:new Q("",c),font:new V("",c)}),Ge=(n)=>{let s=new Set;return n.filter((a)=>{if(s.has(a))return!1;return s.add(a),!0})},qe=(n,s,a)=>(Ge(s).forEach((l)=>{a.add(l.path),l.imported.forEach((c)=>{a.add(c)}),Object.keys(n).forEach((c)=>{n[c].load(l[c])})}),n),Ye=(n)=>{let s={};return Object.keys(n).forEach((a)=>{s[a]=n[a].css}),s},J=(n,s)=>`${n} {
5
+ ${s.join(`
6
+ `)}
7
+ }`,He=(n)=>[...n].join(", "),Ke=(n)=>n.some((s)=>s.startsWith("animation")||s.startsWith("transition")),Ot=(n,s)=>J(He(n),s),Qe=(n,s,a)=>{let l=new Set;return n.atRules.forEach((c)=>{l.add(c)}),Object.entries(n.groupedRulesByMedia).forEach(([c,u])=>{let f=[],h=[];if(u.forEach(({selectors:y,declarations:d})=>{let g=Ot(y,d);if(Ke(d))h.push(g);else f.push(g)}),h.length)f.unshift(...h);let m=n.keyframeBlocksByMedia[c];if(m)Object.entries(m).forEach(([y,d])=>{f.push(J(y,d))});let w=n.groupedSupportsByMedia[c];if(w)Object.entries(w).forEach(([y,d])=>{let g=d.map(({selectors:v,declarations:p})=>Ot(v,p));f.push(J(y,g))});if(f.length)if(c===a)l.add(`/* -------------- ${c} ( default ) */`),l.add(f.join(`
8
+ `));else{let y=c.split("-").map((d)=>s[d]).join(" and ");if(y)l.add(`/* -------------- ${c} */`),l.add(`@media ${y} {
9
+ ${f.join(`
10
+ `)}
11
+ }`)}}),[...l].join(`
12
+ `)},Ht=(n,s,a,l)=>{let c={code:a.code,severity:a.severity,message:a.message,sourcePath:s.SOURCE||n.sourcePath||""};if(a.rule!==void 0)c.rule=a.rule;if(a.selector!==void 0)c.selector=a.selector;let u=n.onDiagnostic;if(typeof u==="function"){try{u(c)}catch{}return}l?.()},L=()=>({visited:new Set,active:new Set,stack:[]}),Z=(n,s,a,l)=>{if(a.active.has(s)){let c=[...a.stack,s].map((f)=>f.SOURCE||n.sourcePath||"").join(" -> "),u=l.get(s);if(u===void 0)u=new Set,l.set(s,u);if(!u.has(c))u.add(c),Ht(n,s,{code:"import.cycle",severity:"warning",message:`Circular import detected: ${c}`});return!1}if(a.visited.has(s))return!1;return a.visited.add(s),a.active.add(s),a.stack.push(s),!0},U=(n,s)=>{s.stack.pop(),s.active.delete(n)},Ve=(n,s)=>Array.from(n.matchAll(s),(a)=>a[1]).filter((a)=>a!==void 0),tr=(n)=>/[a-zA-Z0-9_-]/.test(n)||n.charCodeAt(0)>=128,er=(n,s)=>{let a=s,l="",c="";while(a<n.length){let u=n[a];if(u==="\\"){if(l+=u,a+=1,a>=n.length)break;let f=n[a];if(/[0-9a-fA-F]/.test(f)){let h="";while(a<n.length&&h.length<6&&/[0-9a-fA-F]/.test(n[a]))h+=n[a],a+=1;if(l+=h,a<n.length&&/\s/.test(n[a]))l+=n[a],a+=1;let m=parseInt(h,16);c+=m===0||m>1114111?"\uFFFD":String.fromCodePoint(m)}else l+=f,c+=f,a+=1;continue}if(!tr(u))break;l+=u,c+=u,a+=1}return{token:{raw:l,decoded:c},end:a}},rr=(n)=>{let s=[],a=[],l=0,c,u=0;while(l<n.length){let f=n[l];if(f==="\\"){l+=2;continue}if(c!==void 0){if(f===c)c=void 0;l+=1;continue}if(f==='"'||f==="'"){c=f,l+=1;continue}if(f==="/"&&n[l+1]==="*"){let h=n.indexOf("*/",l+2);l=h===-1?n.length:h+2;continue}if(f==="["){u+=1,l+=1;continue}if(f==="]"){u=Math.max(0,u-1),l+=1;continue}if(u===0&&(f==="."||f==="#")&&Qt(n,l+1)){let{token:h,end:m}=er(n,l+1);(f==="."?s:a).push(h),l=m;continue}l+=1}return{classes:s,ids:a}},ir=(n)=>{let s=n.split(""),a=0,l,c=0;while(a<n.length){let u=n[a];if(u==="\\"){a+=2;continue}if(l!==void 0){if(s[a]=" ",u===l)l=void 0;a+=1;continue}if(u==='"'||u==="'"){s[a]=" ",l=u,a+=1;continue}if(u==="/"&&n[a+1]==="*"){let f=n.indexOf("*/",a+2),h=f===-1?n.length:f+2;for(let m=a;m<h;m+=1)s[m]=" ";a=h;continue}if(u==="["){c+=1,s[a]=" ",a+=1;continue}if(u==="]"){c=Math.max(0,c-1),s[a]=" ",a+=1;continue}if(c>0)s[a]=" ";a+=1}return s.join("")},nr=/^[\p{ID_Start}_$][\p{ID_Continue}$]*$/u,sr=/[^\p{ID_Continue}$]/gu,ar=(n)=>{let s=n.replaceAll("-","_").replace(sr,"_");if(s==="")return"_";if(!nr.test(s))s=`_${s}`;return s},Kt=(n,s,a,l,c=!0)=>{let u=/\b([a-zA-Z][a-zA-Z0-9]*)\b(?![^{}]*})/g,{classes:f,ids:h}=rr(s),m=[...new Set(f.map((w)=>w.decoded)),...new Set(h.map((w)=>w.decoded))];if(c&&F(l)&&l){let w=(y)=>{let d=new Set;y.forEach(({raw:g,decoded:v})=>{if(d.has(g))return;d.add(g),n.cid.init(ar(v),new Set).add(a+g)})};w(f),w(h)}return m.push(...new Set(Ve(ir(s),u))),m.some((w)=>n.shaker.includes(w)||n.include.includes(w))},Qt=(n,s)=>{let a=n[s];if(a===void 0)return!1;if(a==="\\")return!0;if(/[a-zA-Z_-]/.test(a))return!0;return a.charCodeAt(0)>=128},lr=(n,s)=>{if(!s)return n;let a="",l=0,c,u=0;while(l<n.length){let f=n[l];if(f==="\\"){if(a+=f,l+1<n.length)a+=n[l+1];l+=2;continue}if(c!==void 0){if(a+=f,f===c)c=void 0;l+=1;continue}if(f==='"'||f==="'"){c=f,a+=f,l+=1;continue}if(f==="/"&&n[l+1]==="*"){let h=n.indexOf("*/",l+2),m=h===-1?n.length:h+2;a+=n.slice(l,m),l=m;continue}if(f==="[")u+=1;if(f==="]")u=Math.max(0,u-1);if(u===0&&(f==="."||f==="#")&&Qt(n,l+1)){a+=f+s,l+=1;continue}a+=f,l+=1}return a},or=(n,s,a)=>!(n.shaker.length>0&&(s.startsWith(".")||s.startsWith("#")))||a,Et=(n,s,a)=>{(n[s]??=[]).push(a)},Vt=(n,s,a,l,c,u)=>{if(!Z(s,n,c,u))return;n.DATA.forEach((f,h)=>{let m=lr(h,n.PREFIX),w=Kt(s,h,n.PREFIX,s.exportMap);if(!or(s,m,w))return;let y=new E,d=new E;f.forEach((g,v)=>{if(v==="supports"){if(j(g))g.forEach((p)=>{p.value.forEach((b,x)=>{let k=d.init(x,new E);b.forEach((O)=>{Object.entries(O).forEach(([R,_])=>{Object.entries(_).forEach(([X,ae])=>{k.init(X,[]).push(Y(R,ae,n.UNIT))})})})})})}else Object.entries(g).forEach(([p,b])=>{y.init(p,[]).push(Y(v,b,n.UNIT))})}),y.forEach((g,v)=>{Et(a,v,{selector:m,declarations:g})}),d.forEach((g,v)=>{let p=l[v]??={};g.forEach((b,x)=>{Et(p,x,{selector:m,declarations:b})})})}),n.IMPORTED.forEach((f)=>{if(f instanceof D)Vt(f,s,a,l,c,u)}),U(n,c)},cr=(n,s)=>{s.forEach((a,l)=>{a.forEach((c)=>{n.init(l,new Set).add(c)})})},te=(n,s,a,l,c)=>{if(!Z(s,n,l,c))return;cr(a,n.ANIM),n.IMPORTED.forEach((u)=>{if(u instanceof D)te(u,s,a,l,c)}),U(n,l)},ee=(n,s,a,l,c,u)=>{if(!Z(s,n,c,u))return;let f=(m,w,y)=>{let d=a[m]??={};(d[w]??=[]).push(y)},h=(m)=>{if(!s.shaker.length)return!0;let w=l.get(m);return w!==void 0&&[...w].some((y)=>Kt(s,y,"",!1,!1))};n.DATA.forEach((m,w)=>{let y=w.split(" ")[1],d=h(y);m.forEach((g,v)=>{if(!(g instanceof E))return;let p={};g.forEach((b,x)=>{if(x==="supports"||j(b)){Ht(s,n,{code:"keyframes.supports-unsupported",severity:"error",message:"@supports is not supported in @keyframes",rule:w,selector:v},()=>{Xt.e=["@supports not supported in @keyframes",{error:"support in keyframes"}]});return}if(!d)return;Object.entries(b).forEach(([k,O])=>{(p[k]??=[]).push(Y(x,O,n.UNIT))})}),Object.entries(p).forEach(([b,x])=>{f(b,w,J(v,x))})})}),n.IMPORTED.forEach((m)=>{if(m instanceof K)ee(m,s,a,l,c,u)}),U(n,c)},re=(n,s,a,l,c)=>{if(!Z(a,n,l,c))return;for(let[u,f]of n.ARR)f.forEach((h)=>{let m=h.includes("(")?h:`"${h}"`;s.add(`${u} ${m.trim()};`)});n.IMPORTED.forEach((u)=>{if(u instanceof Q)re(u,s,a,l,c)}),U(n,l)},jt="@font-face",ie=(n,s,a,l,c)=>{if(!Z(a,n,l,c))return;(n.ARR.get(jt)??new Set).forEach((u)=>{s.add(`${jt} {
13
+ ${u}
14
+ }`)}),n.IMPORTED.forEach((u)=>{if(u instanceof V)ie(u,s,a,l,c)}),U(n,l)},ur=(n,s)=>{let a={},l={},c={},u=new E,f=new Set,h=s,m=L(),w=L(),y=L(),d=L(),g=L(),v=new Map,p=Object.values(n);for(let b of p)if(b instanceof D)te(b,h,u,m,v);for(let b of p)if(b instanceof D)Vt(b,h,a,l,w,v);else if(b instanceof K)ee(b,h,c,u,y,v);else if(b instanceof Q)re(b,f,h,d,v);else if(b instanceof V)ie(b,f,h,g,v);return{styleRulesByMedia:a,supportsRulesByCondition:l,keyframeBlocksByMedia:c,atRules:f}},fr=(n,s)=>{if(n.length!==s.length)return!1;return n.every((a,l)=>a===s[l])},ne=(n)=>{let s=[];for(let a of n){let l=s[s.length-1];if(l&&fr(l.declarations,a.declarations))l.selectors.add(a.selector);else s.push({selectors:new Set([a.selector]),declarations:[...a.declarations]})}return s},hr=(n,s)=>{let a={};return s.forEach((l)=>{a[l]??=[]}),Object.entries(n).forEach(([l,c])=>{(a[l]??=[]).push(...ne(c))}),a},dr=(n)=>{let s={};return Object.entries(n).forEach(([a,l])=>{let c=`@supports(${a})`;Object.entries(l).forEach(([u,f])=>{let h=s[u]??={};(h[c]??=[]).push(...ne(f))})}),s};class se{shweet;shaker;include;CID=new E;css="";onDiagnostic;constructor(n,s=[],a=[],l){this.shweet=n,this.shaker=s,this.include=a,this.onDiagnostic=l??n.onDiagnostic}load(n,s={}){let a=S.default;this.CID.clear();let l={...S.prop,...S.extra,...s},c=ur(this.shweet,{shaker:this.shaker,include:this.include,exportMap:n,cid:this.CID,sourcePath:this.shweet.path,onDiagnostic:this.onDiagnostic}),u=hr(c.styleRulesByMedia,Object.keys(l)),f=dr(c.supportsRulesByCondition);return this.css=Qe({groupedRulesByMedia:u,groupedSupportsByMedia:f,keyframeBlocksByMedia:c.keyframeBlocksByMedia,atRules:c.atRules},l,a),this}}var mr=new Set("arguments await break case catch class const continue debugger default delete do else enum eval export extends false finally for function if implements import in instanceof interface let new null package private protected public return static super switch this throw true try typeof var void while with yield".split(" ")),gr=/^[$_\p{ID_Start}][$\u200c\u200d_\p{ID_Continue}]*$/u,rt=(n)=>gr.test(n)&&!mr.has(n),vr=(n)=>{let s=[...n.entries()].map(([u,f])=>{let h=[...f].join(" ");return{key:u,value:h,rendered:`${u}="${h}"`}}).sort((u,f)=>u.rendered.localeCompare(f.rendered,void 0,{numeric:!0}));if(s.length===0)return"export {}";if(s.every((u)=>rt(u.key)))return`export const ${s.map((u)=>u.rendered).join()};`;let a=new Set(s.map((u)=>u.key).filter((u)=>rt(u))),l=1,c=()=>{let u;do u=`_x${l}`,l+=1;while(a.has(u));return a.add(u),u};return s.map((u)=>{if(rt(u.key))return`export const ${u.rendered};`;let f=c();return`const ${f}=${JSON.stringify(u.value)}; export { ${f} as ${JSON.stringify(u.key)} };`}).join(`
15
+ `)},br=(n,s)=>{pr(n,vr(s))},it=(n)=>n!==void 0&&/\s/.test(n),N=(n)=>n!==void 0&&(/[a-zA-Z0-9_-]/.test(n)||n.charCodeAt(0)>=128),nt=(n)=>n!==void 0&&n>="0"&&n<="9",wr=(n)=>n!==void 0&&(/[a-zA-Z_-]/.test(n)||n.charCodeAt(0)>=128),St=(n,s)=>{let a=s;while(a<n.length){let l=n[a];if(l==="\\"){a+=Math.min(2,n.length-a);continue}if(!N(l))break;a+=1}return a},_t=new Set(["{","}",";",",",">","~"]),$r=/^(?:calc|min|max|clamp|hypot|round|mod|rem|abs|sign|sqrt|pow|log|exp|sin|cos|tan|asin|acos|atan|atan2)\(/i,yr=/^url\(/i,xr=(n,s)=>{if(n===void 0||s===void 0)return!1;if(N(n)&&N(s))return!0;if(nt(n)&&s===".")return!0;if(n==="."&&nt(s))return!0;if(n==="#"&&N(s))return!0;if(n==="@"&&N(s))return!0;if(N(n)&&s==="(")return!0;if(nt(n)&&s==="%")return!0;if(n==="/"&&s==="*")return!0;return!1},kr=(n,s,a)=>{if(a&&(n==="+"||n==="-"))return!1;if(a&&(s==="+"||s==="-"))return!1;if(s===":")return!1;if(n===":")return!0;if(s==="+")return!0;if(n==="+")return!0;return _t.has(n)||_t.has(s)},Or=(n)=>{let s="",a=0,l=!1,c=!1,u=0,f=[],h=0,m=(g)=>{if(!l)return;if(l=!1,s.length===0)return;let v=s[s.length-1];if(!kr(v,g,h>0))s+=" "},w=(g)=>{let v=n[g],p=g+1;while(p<n.length){let b=n[p];if(b==="\\"){p+=Math.min(2,n.length-p);continue}if(p+=1,b===v)break}return s+=n.slice(g,p),p},y=(g,v)=>{let p=v+1,b=1,x;while(p<n.length){let k=n[p];if(x!==void 0){if(k==="\\"){p+=Math.min(2,n.length-p);continue}if(p+=1,k===x)x=void 0;continue}if(k==="\\"){p+=Math.min(2,n.length-p);continue}if(k==='"'||k==="'"){x=k,p+=1;continue}if(k==="(")b+=1;else if(k===")"){if(b-=1,p+=1,b===0)break;continue}p+=1}return s+=n.slice(g,p),p},d=(g,v)=>{let p=g,b=0;while(p<n.length){let x=n[p];if(x==="\\"){p+=Math.min(2,n.length-p);continue}if(x==='"'||x==="'"){let k=x;p+=1;while(p<n.length){let O=n[p];if(O==="\\"){p+=Math.min(2,n.length-p);continue}if(p+=1,O===k)break}continue}if(x==="/"&&n[p+1]==="*"){let k=n.indexOf("*/",p+2);p=k===-1?n.length:k+2;continue}if(b===0){if(x===";"||x==="}")break;if(v&&x===")")break}if(x==="("||x==="["||x==="{")b+=1;else if(x===")"||x==="]"||x==="}")b=Math.max(0,b-1);p+=1}return p};while(a<n.length){let g=n[a];if(it(g)){l=!0,a+=1;continue}if(g==="/"&&n[a+1]==="*"){let v=n.indexOf("*/",a+2),p=v===-1?n.length:v+2,b=n.slice(a,p);if(/^\/\*[!#@]/.test(b))m("/"),s+=b;else if(!l){let x=n[p];if(x!==void 0&&!it(x)&&xr(s[s.length-1],x))l=!0}a=p;continue}if(g==='"'||g==="'"){m(g),a=w(a),c=!1;continue}if(g==="-"&&n[a+1]==="-"&&u===0&&(c||s.endsWith("("))){let v=St(n,a),p=v;while(it(n[p]))p+=1;if(n[p]===":"){let b=d(p+1,!c);l=!1,s+=n.slice(a,v)+":",s+=n.slice(p+1,b),a=b,c=!1;continue}}if(wr(g)){let v=St(n,a),p=n.slice(a,v),b=n[v]==="(";if(b&&yr.test(p+"(")){m(p[0]),a=y(a,v),c=!1;continue}if(b&&$r.test(p+"(")){m("("),s+=p+"(",f.push(!0),h+=1,a=v+1,c=!1;continue}m(p[0]),s+=p,a=v,c=!1;continue}if(g==="{"){m(g),s+=g,c=!0,a+=1;continue}if(g==="}"){m(g),s+=g,c=!1,a+=1;continue}if(g===";"){m(g),s+=g,c=!0,a+=1;continue}if(g==="("){m(g),s+=g,f.push(!1),a+=1,c=!1;continue}if(g===")"){if(m(g),s+=g,f.pop())h-=1;a+=1,c=!1;continue}if(g==="[")u+=1;else if(g==="]")u=Math.max(0,u-1);m(g),s+=g,a+=1,c=!1}return s.trimEnd()},Er=(n,s,a,l={})=>{let{dir:c,mapDir:u=[],mapName:f="index",minify:h=!0,shaker:m=[],include:w=[],name:y}=l,d=F(a)?a:!!u,g=y??n.name,v=new se(n,m,w,n.onDiagnostic).load(d,s),p=j(c)?c:[c],b=h?Or(v.css):v.css;p.forEach((k)=>{if(!k)return;let O=k.endsWith("/")?"":"/",R=`${k}${O}${g}.css`;$t(k+O),yt(R),Je(R,b||"/* --------------*/")});let x=j(u)?u:[u];for(let k of x){if(!k)continue;let O=k.endsWith("/")?"":"/",R=`${k}${O}${f}.js`;$t(k+O),yt(R),br(R,v.CID)}return n},G,At;class i{static{G=me(void 0),be(G,1,"med",At,this),Dt(G,this)}path=(ve(G,5,this),void 0);name;prefix;exportMap;onDiagnostic;mediaFeatures;_imported=new Set;save;constructor({__filename:n,name:s,prefix:a,shweets:l=[],exportMap:c,webkitKeyframes:u,mediaFeature:f={},unit:h="rem",onDiagnostic:m}){this.path=n,this.name=s||jr(n),this.prefix=a??"",this.exportMap=c,this.onDiagnostic=m;let w=j(l)?l:[l];this.mediaFeatures=f;let y=Ue(this.prefix,u,c,h,this.path);qe(y,w,this._imported),Object.assign(this,Ye(y));let d=this;Object.assign(this,{get shweet(){return d}}),this.save=(g={})=>(Er(this,this.mediaFeatures,c,g),this)}get imported(){return[...this._imported]}[(At=[je],"med")](n,s){if(s)return new S(n,s);if(typeof n==="object")return new S(void 0,n);return new S(n,{})}}function jr(n){return n.split("/").slice(-1)[0].split(".")[0]}
16
+ export{e,o,t,r,i};
@@ -0,0 +1,4 @@
1
+ // @bun
2
+ import{e,o,t,r}from"./index-bpdqaq7y.js";var d=(i)=>{if(typeof i==="string"&&i.trim()==="")return i;let a=Number(i);if(a||a===0)return a;return i};class u extends o{prop="";propFN;valFN;string=!0;replacer="-";constructor(i={}){super(i);return new Proxy(this,{get(a,l,h){let p=a;if(l in a&&typeof p[l]<"u")return p[l];else if(a.prop||a.propFN){let m=a.prop;if(a.propFN)m=a.propFN(l);let T=l;if(a.string)T=l.replaceAll("_",a.replacer);let ft=a.valFN?a.valFN(T):T;a._value={[m]:ft}}return h},set(a,l,h){let p=a;if(l in a&&typeof p[l]!=="function")return p[l]=h,!0;return!1}})}var(i,a){if(this.prop)this._value={[this.prop]:r.var(i,a)};return this}}class H{TH;prop;startEnd;_none;_auto;constructor(i,a,l=["flex-start","flex-end"],h="flex-start",p="auto"){this.TH=i;this.prop=a;this.startEnd=l;this._none=h;this._auto=p}get start(){return this.TH._value={[this.prop]:this.startEnd[0]},this.TH}get center(){return this.TH._value={[this.prop]:"center"},this.TH}get end(){return this.TH._value={[this.prop]:this.startEnd[1]},this.TH}get none(){return this.TH._value={[this.prop]:this._none},this.TH}}class W extends H{get around(){return this.TH._value={[this.prop]:"space-around"},this.TH}get between(){return this.TH._value={[this.prop]:"space-between"},this.TH}get even(){return this.TH._value={[this.prop]:"space-evenly"},this.TH}}class ye extends H{get stretch(){return this.TH._value={[this.prop]:"stretch"},this.TH}get baseline(){return this.TH._value={[this.prop]:"baseline"},this.TH}get auto(){return this.TH._value={[this.prop]:this._auto},this.TH}}var O=(i,a,l="justifyContent",h=["flex-start","flex-end"])=>{let{direction:p,reversed:m}=i.data,T=p==="row";if(T)i._value={alignItems:a};else{if(m)h.reverse();i._value={alignItems:a}}if(T&&m)h.reverse();return new W(i,l,h,h[0])},b=(i,a,l="gap")=>(i._value={[l]:a},i);class Oe extends u{prop="gap";valFN=d}class De extends u{constructor({prefix:i="",data:a={direction:"row",reversed:!1},values:l={}}={}){super({prefix:i,data:a,values:l})}gap(i){return b(this,i)}get gap0(){return b(this,0)}get gap1(){return b(this,1)}get gap2(){return b(this,2)}get gap3(){return b(this,3)}get gap4(){return b(this,4)}get gap5(){return b(this,5)}rowGap(i){return b(this,i,"rowGap")}colGap(i){return b(this,i,"columnGap")}get GAP(){return new Oe({values:this._value})}}class Ne extends u{prop="alignItems";get baseline(){return this._value={[this.prop]:"baseline"},this}get stretch(){return this._value={[this.prop]:"stretch"},this}get center(){return this._value={[this.prop]:"center"},this}get start(){return this._value={[this.prop]:"flex-start"},this}get end(){return this._value={[this.prop]:"flex-end"},this}}class Be extends u{prop="justifyContent";get start(){return this._value={[this.prop]:"flex-start"},this}get center(){return this._value={[this.prop]:"center"},this}get end(){return this._value={[this.prop]:"flex-end"},this}get none(){return this._value={[this.prop]:"none"},this}get around(){return this._value={[this.prop]:"space-around"},this}get between(){return this._value={[this.prop]:"space-between"},this}get even(){return this._value={[this.prop]:"space-evenly"},this}}class z extends De{constructor({prefix:i="",data:a={direction:"row",reversed:!1},values:l={}}={}){super({prefix:i,data:a,values:l});if(!i)this._value={display:"flex"}}get ALIGN(){return new Ne({values:this._value})}get JUSTIFY(){return new Be({values:this._value})}get BASELINE(){return O(this,"baseline")}get STRETCH(){return O(this,"stretch")}get CENTER(){return O(this,"center")}get START(){return O(this,"flex-start")}get END(){return O(this,"flex-end")}get column(){return this.data.direction="column",this.data.reversed=!1,this._value={flexDirection:"column"},this}get columnReverse(){return this.data.direction="column",this.data.reversed=!0,this._value={flexDirection:"column-reverse"},this}get row(){return this.data.direction="row",this.data.reversed=!1,this._value={flexDirection:"row"},this}get rowReverse(){return this.data.direction="row",this.data.reversed=!0,this._value={flexDirection:"row-reverse"},this}get wrap(){return this._value={flexWrap:"wrap"},this}get noWrap(){return this._value={flexWrap:"nowrap"},this}get wrapReverse(){return this._value={flexWrap:"wrap-reverse"},this}get WRAPPED(){return new W(this,"alignContent",["flex-start","flex-end"],"stretch")}get SELF(){return new ye(this,"alignSelf",["flex-start","flex-end"],"auto")}shrink(i=1){return this._value={flexShrink:i},this}grow(i=1){return this._value={flexGrow:i},this}basis(i=1){return this._value={flexBasis:i},this}flex(i,a,l){return this._value={flex:[String(i),String(a),l.toString()]},this}}var K=(i)=>typeof i==="string",wt=(i)=>Array.isArray(i),Le=Object.entries,N=(i)=>{if(i.startsWith("webkit"))i="-"+i;return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},c=(i,a)=>`${i}${a}`,E=(i)=>wt(i)?i:[i];function j(i=3){let h=((Error().stack?.split(`
3
+ `)??[])[i]||"").match(/at\s+([^(]+)\s*\(/);return(h?h[1].split(".").pop()?.trim():"?")??"?"}class ke{name;constructor(i){this.name=i}log=(...i)=>{let a=j(3);console.log(`[${this.name}.${a}]`,...i)};set i(i){let a=j(3);console.log(`[${this.name}.${a}]`,...E(i))}}class n{static logger=(i)=>new ke(K(i)?i:i.constructor.name);static set f(i){let a=j();console.log(`[${a}]`,...E(i))}static set i(i){console.info(...E(i))}static set e(i){console.error(...E(i))}static set w(i){console.warn(...E(i))}static set d(i){let a=new Date().toLocaleTimeString();console.log(...E(i),` @ ${a}`)}}class _ extends u{prop="";valFN=d;constructor({prefix:i="",data:a={wh:"",first:""},values:l={}}={}){super({prefix:i,data:a,values:l});this.prop=this.data.wh}get pr100(){return this._value={[this.data.wh]:"100%"},this}get auto(){return this._value={[this.data.wh]:"auto"},this}get screen(){let i=this.data.first;return this._value={[this.data.wh]:r.clamp("100v"+i,"100dv"+i,"100lv"+i)},this}px(i){return this._value={[this.data.wh]:c(i,"px")},this}pr(i){return this._value={[this.data.wh]:c(i,"%")},this}rm(i){return this._value={[this.data.wh]:i},this}value(i){return this._value={[this.data.wh]:i},this}var(i,a){return this._value={[this.data.wh]:r.var(i,a)},this}}class q extends u{get pr100(){return this._value={height:"100%",width:"100%"},this}get auto(){return this._value={height:"auto",width:"auto"},this}get screen(){return this._value={height:r.clamp("100vh","100dvh","100lvh"),width:r.clamp("100vw","100dvw","100lvw")},this}px(i){return this._value={height:c(i,"px"),width:c(i,"px")},this}pr(i){return this._value={height:c(i,"%"),width:c(i,"%")},this}rm(i){return this._value={height:i,width:i},this}value(i){return this._value={height:i,width:i},this}var(i,a){return this._value={height:r.var(i,a),width:r.var(i,a)},this}}class S extends u{valFN=d;propFN=()=>[this.data.mp,this.data.side].join("");get auto(){return this._value={[this.propFN()]:"auto"},this}px(i){return this._value={[this.propFN()]:c(i,"px")},this}rm(i){return this._value={[this.propFN()]:i},this}value(i){return this._value={[this.propFN()]:i},this}var(i,a){return this._value={[this.propFN()]:r.var(i,a)},this}get TOP(){return new S({values:this._values,data:{mp:this.data.mp,side:"Top"}})}get RIGHT(){return new S({values:this._values,data:{mp:this.data.mp,side:"Right"}})}get LEFT(){return new S({values:this._values,data:{mp:this.data.mp,side:"Left"}})}get BOTTOM(){return new S({values:this._values,data:{mp:this.data.mp,side:"Bottom"}})}get BLOCK(){return new f({values:this._values,data:{bin:this.data.mp+"Block",side:""}})}get INLINE(){return new f({values:this._values,data:{bin:this.data.mp+"Inline",side:""}})}}class f extends u{prop="";valFN=d;constructor({prefix:i="",data:a={bin:"",side:""},values:l={}}={}){super({prefix:i,data:a,values:l});this.prop=[this.data.bin,this.data.side].join("")}px(i){return this._value={[this.data.bin]:c(i,"px")},this}pr(i){return this._value={[this.data.bin]:c(i,"%")},this}rm(i){return this._value={[this.data.bin]:i},this}get END(){return new f({values:this._values,data:{bin:this.data.bin,side:"End"}})}get START(){return new f({values:this._values,data:{bin:this.data.bin,side:"Start"}})}}var y={aliceblue:["#F0F8FF","#2F4F4F"],antiquewhite:["#FAEBD7","#8B4513"],aqua:["#00FFFF","#008080"],aquamarine:["#7FFFD4","#008B8B"],azure:["#F0FFFF","#191970"],beige:["#F5F5DC","#556B2F"],bisque:["#FFE4C4","#A0522D"],black:["#000000","#FFFFFF"],blanchedalmond:["#FFEBCD","#8B4513"],blue:["#0000FF","#4169E1"],blueviolet:["#8A2BE2","#9932CC"],brown:["#A52A2A","#A0522D"],burlywood:["#DEB887","#CD853F"],cadetblue:["#5F9EA0","#2F4F4F"],chartreuse:["#7FFF00","#32CD32"],chocolate:["#D2691E","#8B4513"],coral:["#FF7F50","#FF6347"],cornflowerblue:["#6495ED","#4682B4"],cornsilk:["#FFF8DC","#B8860B"],crimson:["#DC143C","#8B0000"],cyan:["#00FFFF","#008B8B"],darkblue:["#00008B","#0000CD"],darkcyan:["#008B8B","#48D1CC"],darkgoldenrod:["#B8860B","#DAA520"],darkgray:["#A9A9A9","#696969"],darkgreen:["#006400","#228B22"],darkmagenta:["#8B008B","#800080"],darkorange:["#FF8C00","#D2691E"],darkorchid:["#9932CC","#BA55D3"],darkred:["#8B0000","#B22222"],darksalmon:["#E9967A","#F08080"],darkslategray:["#2F4F4F","#778899"],darkturquoise:["#00CED1","#40E0D0"],deeppink:["#FF1493","#C71585"],deepskyblue:["#00BFFF","#1E90FF"],dimgray:["#696969","#A9A9A9"],dodgerblue:["#1E90FF","#4682B4"],firebrick:["#B22222","#A52A2A"],forestgreen:["#228B22","#006400"],gainsboro:["#DCDCDC","#708090"],ghostwhite:["#F8F8FF","#2F4F4F"],gold:["#FFD700","#B8860B"],goldenrod:["#DAA520","#CD853F"],gray:["#808080","#696969"],green:["#008000","#006400"],honeydew:["#F0FFF0","#3CB371"],hotpink:["#FF69B4","#C71585"],indianred:["#CD5C5C","#A52A2A"],indigo:["#4B0082","#7B68EE"],ivory:["#FFFFF0","#FAFAD2"],khaki:["#F0E68C","#6B8E23"],lavender:["#E6E6FA","#D8BFD8"],lavenderblush:["#FFF0F5","#DB7093"],lawngreen:["#7CFC00","#32CD32"],lemonchiffon:["#FFFACD","#BDB76B"],lightblue:["#ADD8E6","#4682B4"],lightcoral:["#F08080","#CD5C5C"],lightcyan:["#E0FFFF","#5F9EA0"],lightgoldenrodyellow:["#FAFAD2","#BDB76B"],lightgray:["#D3D3D3","#708090"],lightgreen:["#90EE90","#3CB371"],lightskyblue:["#87CEFA","#4682B4"],lightslategray:["#778899","#708090"],lightsteelblue:["#B0C4DE","#5F9EA0"],lightyellow:["#FFFFE0","#BDB76B"],lime:["#00FF00","#228B22"],linen:["#FAF0E6","#8B4513"],maroon:["#800000","#B22222"],mediumaquamarine:["#66CDAA","#008080"],mediumblue:["#0000CD","#00008B"],mediumorchid:["#BA55D3","#9932CC"],mediumseagreen:["#3CB371","#2E8B57"],mediumslateblue:["#7B68EE","#4B0082"],mediumspringgreen:["#00FA9A","#006400"],mediumturquoise:["#48D1CC","#008B8B"],mediumvioletred:["#C71585","#8B008B"],midnightblue:["#191970","#000080"],mintcream:["#F5FFFA","#3CB371"],mistyrose:["#FFE4E1","#DB7093"],moccasin:["#FFE4B5","#CD853F"],navajowhite:["#FFDEAD","#A0522D"],oldlace:["#FDF5E6","#D2B48C"],olive:["#808000","#556B2F"],olivedrab:["#6B8E23","#006400"],orange:["#FFA500","#FF8C00"],orangered:["#FF4500","#FF6347"],orchid:["#DA70D6","#BA55D3"],palegoldenrod:["#EEE8AA","#DAA520"],palegreen:["#98FB98","#3CB371"],paleturquoise:["#AFEEEE","#5F9EA0"],palevioletred:["#DB7093","#C71585"],papayawhip:["#FFEFD5","#8B4513"],peachpuff:["#FFDAB9","#CD853F"],peru:["#CD853F","#A0522D"],pink:["#FFC0CB","#DB7093"],plum:["#DDA0DD","#9932CC"],powderblue:["#B0E0E6","#5F9EA0"],purple:["#800080","#4B0082"],rebeccapurple:["#663399","#4B0082"],red:["#FF0000","#8B0000"],rosybrown:["#BC8F8F","#A52A2A"],royalblue:["#4169E1","#191970"],saddlebrown:["#8B4513","#A0522D"],salmon:["#FA8072","#CD5C5C"],sandybrown:["#F4A460","#CD853F"],seagreen:["#2E8B57","#006400"],seashell:["#FFF5EE","#D2B48C"],sienna:["#A0522D","#8B4513"],silver:["#C0C0C0","#696969"],skyblue:["#87CEEB","#4682B4"],slategray:["#708090","#2F4F4F"],snow:["#FFFAFA","#778899"],springgreen:["#00FF7F","#3CB371"],steelblue:["#4682B4","#191970"],tan:["#D2B48C","#CD853F"],teal:["#008080","#008B8B"],thistle:["#D8BFD8","#DDA0DD"],tomato:["#FF6347","#B22222"],turquoise:["#40E0D0","#00CED1"],violet:["#EE82EE","#9932CC"],wheat:["#F5DEB3","#8B4513"],white:["#FFFFFF","#000000"],whitesmoke:["#F5F5F5","#696969"],yellow:["#FFFF00","#DAA520"],yellowgreen:["#9ACD32","#556B2F"]};var Ve=(i)=>Array.isArray(i)?[...i]:[i],Pe=(i=6,a)=>{if(!a)return Math.floor(Math.random()*i);return Math.round(Math.random()*(a-i)+i)},R=()=>{let i=Object.values(y),a=Pe(0,i.length-1);return i[a]};class B extends u{prop="";constructor({prefix:i="",data:a={prop:""},values:l={}}={}){super({prefix:i,data:a,values:l});this.prop=this.data.prop}}var Ge=(i=!1)=>{let a=Object.values(y),l=Pe(0,a.length-1),h=a[l];return i?e(h[1],{dark:h[0]}):e(h[0],{dark:h[1]})};class Xe extends B{valFN=(i)=>{let a=y[i];return e(a[1],{dark:a[0]})};get random(){return this._value={[this.prop]:Ge(!0)},this}}class Ye extends B{valFN=(i)=>{let a=y[i];return e(a[0],{dark:a[1]})};get random(){return this._value={[this.prop]:Ge()},this}}class g extends B{valFN=(i)=>y[i]?.[0]??"";color(i){return this._value={[this.prop]:i},this}rgba(i,a,l,h){return this._value={[this.prop]:r.rgba(i,a,l,h)},this}get random(){return this._value={[this.prop]:R()[0]},this}get transparent(){return this._value={[this.prop]:"transparent"},this}get inherit(){return this._value={[this.prop]:"inherit"},this}get initial(){return this._value={[this.prop]:"initial"},this}get current(){return this._value={[this.prop]:"currentColor"},this}get AUTOLIGHT(){return new Ye({values:this._value,data:{prop:this.data.prop}})}get AUTODARK(){return new Xe({values:this._value,data:{prop:this.data.prop}})}get MIX(){return new Me({values:this._value,data:{prop:this.data.prop}})}}var v=(i,a,l,h)=>({[i]:r.colorMix(`in ${a}`,Ve(l),Ve(h))});class Me extends u{constructor({prefix:i="",data:a={prop:""},values:l={}}={}){super({prefix:i,data:a,values:l});this.prop=this.data.prop}srgb(i,a){return this._value=v(this.prop,"srgb",i,a),this}srgb_linear(i,a){return this._value=v(this.prop,"srgb-linear",i,a),this}display_p3(i,a){return this._value=v(this.prop,"display-p3",i,a),this}a98_rgb(i,a){return this._value=v(this.prop,"a98-rgb",i,a),this}prophoto_rgb(i,a){return this._value=v(this.prop,"prophoto-rgb",i,a),this}rec2020(i,a){return this._value=v(this.prop,"rec2020",i,a),this}lab(i,a){return this._value=v(this.prop,"lab",i,a),this}oklab(i,a){return this._value=v(this.prop,"oklab",i,a),this}xyz(i,a){return this._value=v(this.prop,"xyz",i,a),this}xyz_d50(i,a){return this._value=v(this.prop,"xyz-d50",i,a),this}xyz_d65(i,a){return this._value=v(this.prop,"xyz-d65",i,a),this}hsl(i,a){return this._value=v(this.prop,"hsl",i,a),this}hwb(i,a){return this._value=v(this.prop,"hwb",i,a),this}lch(i,a){return this._value=v(this.prop,"lch",i,a),this}and(i,a){return this._value=v(this.prop,"and",i,a),this}oklch(i,a){return this._value=v(this.prop,"oklch",i,a),this}}var w=(i,a)=>{let l=["border",i.data.side,"Style"].join("");return i._value={[l]:a},i};class A extends o{constructor({prefix:i="",data:a={side:""},values:l={}}={}){super({prefix:i,data:a,values:l})}value(i){let a=["border",this.data.side].join("");return this._value={[a]:i},this}color(i){let a=["border",this.data.side,"Color"].join("");return this._value={[a]:i},this}width(i){let a=["border",this.data.side,"Width"].join("");return this._value={[a]:typeof i==="number"?c(i,"px"):i},this}image(i,...a){let l=["border",this.data.side,"Image"].join("");return this._value={[l]:[i,...a.map(String)]},this}get solid(){return w(this,"solid")}get dotted(){return w(this,"dotted")}get none(){return w(this,"none")}get hidden(){return w(this,"hidden")}get dashed(){return w(this,"dashed")}get double(){return w(this,"double")}get groove(){return w(this,"groove")}get ridge(){return w(this,"ridge")}get inset(){return w(this,"inset")}get outset(){return w(this,"outset")}get TOP(){return new A({values:this._values,data:{side:"Top"}})}get RIGHT(){return new A({values:this._values,data:{side:"Right"}})}get LEFT(){return new A({values:this._values,data:{side:"Left"}})}get BOTTOM(){return new A({values:this._values,data:{side:"Bottom"}})}get b1(){let i=["border",this.data.side,""].join("");return this._value={[i]:"1px solid currentColor"},this}get bRed(){let i=["border",this.data.side,""].join("");return this._value={[i]:"1px solid red"},this}get random(){let i=["border",this.data.side,""].join("");return this._value={[i]:["1px solid",R()[0]]},this}get bRandom(){let i=["border",this.data.side,""].join("");return this._value={[i]:["1px solid",R()[0]]},this}get COLOR(){let i=["border",this.data.side,"Color"].join("");return new g({values:this._value,data:{prop:i}})}}function L(i){return new Proxy(this,{get(a,l){let h=Number(l);if(h)a._value={[i]:h};return a}})}class Z extends u{prop="borderRadius";valFN=d;v(i){return this._value={borderRadius:i},this}get tL(){return L.call(this,"borderTopLeftRadius")}get tR(){return L.call(this,"borderTopRightRadius")}get bR(){return L.call(this,"borderBottomRightRadius")}get bL(){return L.call(this,"borderBottomLeftRadius")}x(i){return this._value={borderTopLeftRadius:i,borderTopRightRadius:i},this}y(i){return this._value={borderBottomLeftRadius:i,borderBottomRightRadius:i},this}get b0(){return this._value={borderRadius:0},this}get b0p5(){return this._value={borderRadius:0.5},this}get b1(){return this._value={borderRadius:1},this}get b1p5(){return this._value={borderRadius:1.5},this}get b2(){return this._value={borderRadius:2},this}pr(i){return this._value={[this.prop]:c(i,"%")},this}px(i){return this._value={[this.prop]:c(i,"px")},this}rm(i){return this._value={[this.prop]:i},this}value(i){return this._value={[this.prop]:i},this}}class J extends u{prop="cursor"}class Q extends u{prop="display"}class ee extends u{prop="position"}class D extends o{xy="";constructor({prefix:i="",data:a={xy:""},values:l={}}={}){super({prefix:i,data:a,values:l});this.xy=["overflow",a.xy].join("")}get visible(){return this._value={[this.xy]:"visible"},this}get hidden(){return this._value={[this.xy]:"hidden"},this}get scroll(){return this._value={[this.xy]:"scroll"},this}get auto(){return this._value={[this.xy]:"auto"},this}get X(){return new D({prefix:this._prefix,values:this._values,data:{xy:"X"}})}get Y(){return new D({prefix:this._prefix,values:this._values,data:{xy:"Y"}})}}class te extends u{prop="opacity";valFN=(i)=>{let a=Number(i);if(a&&a>1)return c(i,"%");return i};pr(i){return this._value={opacity:c(i,"%")},this}}class re extends u{prop="zIndex"}class se extends u{prop="whiteSpace"}class k extends u{get visible(){return this._value={visibility:"visible"},this}get hidden(){return this._value={visibility:"hidden"},this}get collapse(){return this._value={visibility:"collapse"},this}}class ie extends u{prop="verticalAlign";valFN=d;px(i){return this._value={verticalAlign:c(i,"px")},this}pr(i){return this._value={verticalAlign:c(i,"%")},this}}class V extends u{get select(){return this._value={userSelect:"auto"},this}get none(){return this._value={userSelect:"none"},this}}class P extends u{get auto(){return this._value={pointerEvents:"auto"},this}get none(){return this._value={pointerEvents:"none"},this}}class ae extends u{prop="lineHeight";valFN=d}class ne extends u{get auto(){return this._value={overscrollBehavior:"auto"},this}get contain(){return this._value={overscrollBehavior:"contain"},this}get none(){return this._value={overscrollBehavior:"none"},this}get XAuto(){return this._value={overscrollBehaviorX:"auto"},this}get XContain(){return this._value={overscrollBehaviorX:"contain"},this}get XNone(){return this._value={overscrollBehaviorX:"none"},this}get YAuto(){return this._value={overscrollBehaviorY:"auto"},this}get YContain(){return this._value={overscrollBehaviorY:"contain"},this}get YNone(){return this._value={overscrollBehaviorY:"none"},this}get INLINEAuto(){return this._value={overscrollBehaviorInline:"auto"},this}get INLINEContain(){return this._value={overscrollBehaviorInline:"contain"},this}get INLINENone(){return this._value={overscrollBehaviorInline:"none"},this}get BLOCKAuto(){return this._value={overscrollBehaviorBlock:"auto"},this}get BLOCKContain(){return this._value={overscrollBehaviorBlock:"contain"},this}get BLOCKNone(){return this._value={overscrollBehaviorBlock:"none"},this}var(i,a){return this._value={overscrollBehavior:r.var(i,a)},this}}var Ct={none:["none"],all:["all"],colors:["background-color","border-color","color","fill","stroke"],font:["font","color"],background:["background"],opacity:["opacity"],shadow:["box-shadow"],transform:["transform"],dimension:["height","width","margin","padding"]};class oe extends u{prop="transitionProperty";properties=new Set;valFN=(i)=>{let a=Ct[i]??[];if(a.includes("none"))return this.properties.clear(),["none"];return a.forEach((l)=>{this.properties.add(l)}),[...this.properties]};property(...i){return i.forEach((a)=>{this.properties.add(a)}),this._value={transitionProperty:[...this.properties]},this}}class Ue extends u{propFN=()=>this.data.prop;cubicBezier(i,a,l,h){return this._value={[this.propFN()]:r.cubicBezier(i,a,l,h)},this}steps(i,a){return this._value={[this.propFN()]:r.steps(i,a)},this}}class le extends u{valFN=(i)=>`${i}s`;propFN=()=>this.data.prop}class G extends u{prop;constructor({prefix:i="",data:a={isAnim:!1},values:l={}}={}){super({prefix:i,data:a,values:l});this.prop=this.data.isAnim?"animationDuration":"transitionDuration"}valFN=(i)=>`${i}s`;propFN=()=>this.prop;get TIMING(){return new Ue({data:{prop:this.data.isAnim?"animationTimingFunction":"transitionTimingFunction"},values:this._values})}get DELAY(){return new le({data:{prop:this.data.isAnim?"animationDelay":"transitionDelay"},values:this._values})}get DURATION(){return new le({data:{prop:this.data.isAnim?"animationDuration":"transitionDuration"},values:this._values})}get none(){let i=this.data.isAnim?"animation":"transition";return this._value={[i]:"none"},this}value(i){let a=this.data.isAnim?"animation":"transition";return this._value={[a]:i},this}var(i,a){let l=this.data.isAnim?"animation":"transition";return this._value={[l]:r.var(i,a)},this}}class ue extends G{get PROPERTY(){return new oe({values:this._values})}property(...i){return new oe({values:this._values}).property(...i)}}class He extends o{constructor({prefix:i="",data:a={kf:{}},values:l={}}){super({prefix:i,data:a,values:l})}get bounce(){return this._value={animation:["bounce","1s","infinite"]},this.data.kf.bounce={"10%, 100%":{transform:r.translateY("0%"),animationTimingFunction:r.cubicBezier(0.8,0,1,1)},"50%":{transform:r.translateY("20%"),animationTimingFunction:r.cubicBezier(0,0,0.2,1)}},this}get ping(){return this._value={animation:["ping","1s",r.cubicBezier(0,0,0.2,1),"infinite"]},this.data.kf.ping={"100%, 75%":{transform:r.scale(1.5),opacity:0}},this}get pulse(){return this._value={animation:["pulse","1s",r.cubicBezier(0.4,0,0.6,1),"infinite"]},this.data.kf.pulse={"50%":{opacity:0.5}},this}get spin(){return this._value={animation:["spin","1s","linear","infinite"]},this.data.kf.spin={"100%":{transform:r.rotate(360)}},this}}class We extends u{prop="animationDirection"}class ze extends u{prop="animationFillMode"}class je extends u{prop="animationIterationCount";get infinite(){return this._value={[this.prop]:"infinite"},this}}class he extends o{constructor({prefix:i="",data:a={},values:l={}}={}){super({prefix:i,data:a,values:l})}animation(i){return this._value={animation:i},this}name(i){return this._value={animationName:i},this}duration(i){return this._value={animationDuration:i},this}get paused(){return this._value={animationPlayState:"paused"},this}get running(){return this._value={animationPlayState:"running"},this}}class X extends G{SET(i){return new He({data:{kf:i}})}name(i){return new he({values:this._values}).name(i)}animation(i){return new he({values:this._values}).animation(i)}get DIRECTION(){return new We({values:this._values})}get FILL(){return new ze({values:this._values})}get ITERATION(){return new je({values:this._values})}}class $e extends u{prop="backgroundAttachment"}class Ke extends u{prop="backgroundBlendMode"}class de extends u{valFN=(i)=>{if(this.prop==="backgroundClip"&&i==="text")this._value={webkitBackgroundClip:i};return i};constructor({prefix:i="",data:a={name:""},values:l={}}={}){super({prefix:i,data:a,values:l});this.prop=this.data.name}}class qe extends u{prop="backgroundSize";valFN=d;get auto(){let i=[this.data.mp,this.data.side].join("");return this._value={[this.prop]:"auto"},this}get cover(){return this._value={[this.prop]:"cover"},this}get contain(){return this._value={[this.prop]:"contain"},this}px(i){return this._value={[this.prop]:c(i,"px")},this}rm(i){return this._value={[this.prop]:i},this}value(i){return this._value={[this.prop]:i},this}}class Ze extends u{prop="backgroundPosition";replacer=" ";value(i){return this._value={[this.prop]:i},this}XY(i,a){return this._value={[this.prop]:[i,a]},this}}class Je extends u{prop="backgroundImage";url(i){return this._value={[this.prop]:r.url(i)},this}conic(...i){return this._value={[this.prop]:r.conicGradient(...i)},this}repeatingConic(...i){return this._value={[this.prop]:r.repeatingConicGradient(...i)},this}linear(...i){return this._value={[this.prop]:r.linearGradient(...i)},this}repeatingLinear(...i){return this._value={[this.prop]:r.repeatingLinearGradient(...i)},this}radial(...i){return this._value={[this.prop]:r.radialGradient(...i)},this}repeatingRadial(...i){return this._value={[this.prop]:r.repeatingRadialGradient(...i)},this}get none(){return this._value={[this.prop]:"none"},this}value(i){return this._value={[this.prop]:i},this}var(i,a){return this._value={[this.prop]:r.var(i,a)},this}}class ce{get ATTACH(){return new $e}get BLEND(){return new Ke}get CLIP(){return new de({data:{name:"backgroundClip"}})}get ORIGIN(){return new de({data:{name:"backgroundOrigin"}})}get COLOR(){return new g({data:{prop:"backgroundColor"}})}get SIZE(){return new qe}get IMAGE(){return new Je}get POSITION(){return new Ze}get random(){return new g({data:{prop:"backgroundColor"}}).random}color(i){return new g({data:{prop:"backgroundColor"}}).color(i)}}class Qe extends u{prop="textAlign"}var xt=["none","underline","overline","line_through"];class et extends u{propFN=(i)=>{if(xt.includes(i))return"textDecorationLine";return"textDecorationStyle"};get COLOR(){return new g({values:this._value,data:{prop:"textDecorationColor"}})}thickness(i){return this._value={textDecorationThickness:i},this}get auto(){return this._value={textDecorationThickness:"auto"},this}get font(){return this._value={textDecorationThickness:"from-font"},this}}var bt=["over","under","left","right"];class tt extends u{prop="textEmphasis";propFN=(i)=>{if(bt.includes(i))return"textEmphasisPosition";return"textEmphasisStyle"};char(i){return this._value={textEmphasisStyle:`"${i}"`},this}get COLOR(){return new g({values:this._value,data:{prop:"textEmphasisColor"}})}}class rt extends u{prop="textIndent";valFN=d}class st extends u{prop="textJustify"}class it extends u{prop="textOrientation"}var Ft=["auto","under","from_font","left","right"];class at extends u{propFN=(i)=>{if(Ft.includes(i))return"textUnderlinePosition";return"textUnderlineOffset"};valFN=d;get autoOffset(){return this._value={textUnderlineOffset:"auto"},this}}class pe extends u{get ALIGN(){return new Qe}get DECOR(){return new et}get EMPHASIS(){return new tt}get INDENT(){return new rt}get JUSTIFY(){return new st}get ORIENTATION(){return new it}get UNDERLINE(){return new at}get clip(){return this._value={textOverflow:"clip"},this}get ellipsis(){return this._value={textOverflow:"ellipsis"},this}overflow(i){return this._value={textOverflow:`"${i}"`},this}decor(i){return this._value={textDecoration:i},this}get capitalize(){return this._value={textTransform:"capitalize"},this}get uppercase(){return this._value={textTransform:"uppercase"},this}get lowercase(){return this._value={textTransform:"lowercase"},this}get noTransform(){return this._value={textTransform:"none"},this}get COLOR(){return new g({values:this._value,data:{prop:"color"}})}}var C=(i,a)=>(i._value={outlineStyle:a},i);class ge extends o{constructor({prefix:i="",data:a={},values:l={}}={}){super({prefix:i,data:a,values:l})}color(i){return this._value={outlineColor:i},this}width(i){return this._value={outlineWidth:typeof i==="number"?`${i}px`:i},this}get solid(){return C(this,"solid")}get dotted(){return C(this,"dotted")}get none(){return C(this,"none")}get hidden(){return C(this,"hidden")}get dashed(){return C(this,"dashed")}get double(){return C(this,"double")}get groove(){return C(this,"groove")}get ridge(){return C(this,"ridge")}get inset(){return C(this,"inset")}get outset(){return C(this,"outset")}get b1(){return this._value={outline:"1px solid currentColor"},this}get bRed(){return this._value={outline:"1px solid red"},this}get random(){let i=["outline","",""].join("");return this._value={[i]:["1px solid",R()[0]]},this}get bRandom(){return this._value={outline:["1px solid",R()[0]]},this}get COLOR(){return new g({values:this._value,data:{prop:"outlineColor"}})}off(i){return I(this,i)}get off0(){return I(this,0)}get off1(){return I(this,1)}get off2(){return I(this,2)}get off3(){return I(this,3)}get off4(){return I(this,4)}get off5(){return I(this,5)}}var I=(i,a)=>(i._value={outlineOffset:a},i);var x=(i,a)=>(i._value={columnRuleStyle:a},i);class nt extends o{constructor({prefix:i="",data:a={},values:l={}}={}){super({prefix:i,data:a,values:l})}color(i){return this._value={columnRuleColor:i},this}width(i){return this._value={columnRuleWidth:i},this}get solid(){return x(this,"solid")}get dotted(){return x(this,"dotted")}get none(){return x(this,"none")}get hidden(){return x(this,"hidden")}get dashed(){return x(this,"dashed")}get double(){return x(this,"double")}get groove(){return x(this,"groove")}get ridge(){return x(this,"ridge")}get inset(){return x(this,"inset")}get outset(){return x(this,"outset")}get COLOR(){return new g({values:this._value,data:{prop:"columnRuleColor"}})}}class ve extends u{constructor({prefix:i="",data:a={prop:""},values:l={}}={}){super({prefix:i,data:a,values:l});this.prop=this.data.prop}}class me extends o{constructor({prefix:i="",data:a={wh:"",first:""},values:l={}}={}){super({prefix:i,data:a,values:l})}width(i){return this._value={columnRuleWidth:i},this}get COUNT(){return new ve({values:this._value,data:{prop:"columnCount"}})}count(i){return this._value={columnCount:i},this}get GAP(){return new ve({values:this._value,data:{prop:"columnGap"}})}gap(i){return this._value={columnGap:i},this}get balance(){return this._value={columnFill:"balance"},this}get auto(){return this._value={columnFill:"auto"},this}get span(){return this._value={columnSpan:"all"},this}get noSpan(){return this._value={columnSpan:"none"},this}rule(i){return this._value={columnRule:i},this}get RULE(){return new nt({values:this._value})}}class Y extends u{origin(...i){return this._value={transformOrigin:i},this}get flat(){return this._value={transformStyle:"flat"},this}get preserve3d(){return this._value={transformStyle:"preserve-3d"},this}get none(){return this._value={transform:"none"},this}transform(i){let a=[];if(Object.entries(i).forEach(([l,h])=>{if(l in r){let p=r[l];a.push(p(h))}}),a.length)this._value={transform:a};return this}var(i,a){return this._value={transform:r.var(i,a)},this}}class _e extends u{prop="perspective";valFN=d;get none(){return this._value={perspective:"none"},this}x(i){return this._value={perspectiveOrigin:i},this}y(i){return this._value={perspectiveOrigin:i},this}}var Tt=["break_all","keep_all"];class Se extends u{propFN=(i)=>{if(Tt.includes(i))return"wordBreak";return"wordSpacing"};valFN=d;get normalBreak(){return this._value={wordBreak:"normal"},this}get normalWrap(){return this._value={wordWrap:"normal"},this}get break(){return this._value={wordWrap:"break-word"},this}}class fe extends u{prop="listStyleType";image(i){return this._value={listStyleImage:i},this}get noImage(){return this._value={listStyleImage:"none"},this}get inside(){return this._value={listStylePosition:"inside"},this}get outside(){return this._value={listStylePosition:"outside"},this}}class ot extends u{prop="fontSize";valFN=d;px(i){return this._value={[this.prop]:c(i,"px")},this}pr(i){return this._value={[this.prop]:c(i,"%")},this}rm(i){return this._value={[this.prop]:i},this}value(i){return this._value={[this.prop]:i},this}var(i,a){return this._value={[this.prop]:r.var(i,a)},this}}class we extends u{font(i){return this._value={font:i},this}var(i,a){return this._value={font:r.var(i,a)},this}stretch(i){return this._value={fontStretch:i},this}family(i){return this._value={fontFamily:i},this}sizeAdjust(i){return this._value={fontSizeAdjust:i},this}get arial(){return this._value={fontFamily:"Arial, Helvetica, sans-serif"},this}get brushScript(){return this._value={fontFamily:'"Brush Script MT", cursive'},this}get comicSans(){return this._value={fontFamily:'"Comic Sans MS", cursive, sans-serif'},this}get courier(){return this._value={fontFamily:'"Courier New", Courier, monospace'},this}get georgia(){return this._value={fontFamily:'Georgia, "Times New Roman", serif'},this}get google(){return this._value={fontFamily:'"Google Sans Mono", monospace'},this}get monaco(){return this._value={fontFamily:'Monaco, Consolas, "Lucida Console", monospace'},this}get palatino(){return this._value={fontFamily:'"Palatino Linotype", "Book Antiqua", Palatino, serif'},this}get system(){return this._value={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},this}get timesNew(){return this._value={fontFamily:'"Times New Roman", Times, serif'},this}get trebuchet(){return this._value={fontFamily:'"Trebuchet MS", Tahoma, sans-serif'},this}get verdana(){return this._value={fontFamily:"Verdana, Geneva, sans-serif"},this}get normalStretch(){return this._value={fontStretch:"normal"},this}get normalStyle(){return this._value={fontStyle:"normal"},this}get italic(){return this._value={fontStyle:"italic"},this}get oblique(){return this._value={fontStyle:"oblique"},this}get normalVariant(){return this._value={fontVariant:"normal"},this}get smallCaps(){return this._value={fontVariant:"small-caps"},this}caps(i){return this._value={fontVariantCaps:i},this}weight(i){return this._value={fontWeight:i},this}get normalWeight(){return this._value={fontWeight:"normal"},this}get bold(){return this._value={fontWeight:"bold"},this}get bolder(){return this._value={fontWeight:"bolder"},this}get lighter(){return this._value={fontWeight:"lighter"},this}get SIZE(){return new ot({values:this._value})}}var M=(i)=>{let{x:a,y:l,blur:h,spread:p,color:m,inset:T}=i;return t([a,l,h,p,m,T?"inset":void 0],{rem:!0})};class Ce extends u{shadows=new Set;value(i){return this.shadows.add(t(i,{rem:!0})),this._value={boxShadow:[...this.shadows].join(", ")},this}set(i){let a=M(i);return this.shadows.add(a),this._value={boxShadow:[...this.shadows].join(", ")},this}get none(){return this._value={boxShadow:"none"},this}var(i,a){return this._value={boxShadow:r.var(i,a)},this}}class xe extends u{get slice(){return this._value={webkitBoxDecorationBreak:"slice",boxDecorationBreak:"slice"},this}get clone(){return this._value={webkitBoxDecorationBreak:"clone",boxDecorationBreak:"clone"},this}get content(){return this._value={boxSizing:"content-box"},this}get border(){return this._value={boxSizing:"border-box"},this}}class be extends u{get MARGIN(){return new S({values:this._value,data:{mp:"scrollMargin",side:""}})}get PADDING(){return new S({values:this._value,data:{mp:"scrollPadding",side:""}})}get SNAP(){return new lt({values:this._value,data:{mp:"scrollPadding",side:""}})}get auto(){return this._value={scrollBehavior:"auto"},this}get smooth(){return this._value={scrollBehavior:"smooth"},this}var(i,a){return this._value={scrollBehavior:r.var(i,a)},this}}class lt extends u{get normalStop(){return this._value={scrollSnapStop:"normal"},this}get alwaysStop(){return this._value={scrollSnapStop:"always"},this}get noType(){return this._value={scrollSnapType:"none"},this}get x(){return this._value={scrollSnapType:"x"},this}get y(){return this._value={scrollSnapType:"y"},this}get block(){return this._value={scrollSnapType:"block"},this}get inline(){return this._value={scrollSnapType:"inline"},this}get both(){return this._value={scrollSnapType:"both"},this}get mandatory(){return this._value={scrollSnapType:"mandatory"},this}get proximity(){return this._value={scrollSnapType:"proximity"},this}get none(){return this._value={scrollSnapAlign:"none"},this}get start(){return this._value={scrollSnapAlign:"start"},this}get end(){return this._value={scrollSnapAlign:"end"},this}get center(){return this._value={scrollSnapAlign:"center"},this}align(i){return this._value={scrollSnapAlign:i},this}type(i){return this._value={scrollSnapAlign:i},this}}class Te extends u{prop="";constructor({prefix:i="",data:a={aljust:"justifyContent",_auto:"auto"},values:l={}}={}){super({prefix:i,data:a,values:l});this.prop=this.data.aljust}get start(){return this._value={[this.prop]:"flex-start"},this}get center(){return this._value={[this.prop]:"center"},this}get end(){return this._value={[this.prop]:"flex-end"},this}get none(){return this._value={[this.prop]:"none"},this}}class Fe extends Te{get around(){return this._value={[this.prop]:"space-around"},this}get between(){return this._value={[this.prop]:"space-between"},this}get even(){return this._value={[this.prop]:"space-evenly"},this}get SELF(){let i=N(this.data.aljust).split("-")[0];return new Re({values:this._value,data:{aljust:`${i}Self`,_auto:"auto"}})}}class Re extends Te{get stretch(){return this._value={[this.prop]:"stretch"},this}get baseline(){return this._value={[this.prop]:"baseline"},this}get auto(){return this._value={[this.prop]:this.data._auto},this}}class ut extends u{prop="gridTemplate";get none(){return this._value={[this.prop]:"none"},this}get noArea(){return this._value={gridTemplateAreas:"none"},this}get noColumns(){return this._value={gridTemplateColumns:"none"},this}get noRows(){return this._value={gridTemplateRows:"none"},this}areas(...i){return this._value={gridTemplateAreas:t(i.map((a)=>t(a.map((l)=>l?l:"."))),{quote:!0})},this}col(...i){return this._value={gridTemplateColumns:i},this}row(...i){return this._value={gridTemplateRows:i},this}}class ht extends u{prop="gridTemplate";col(...i){return this._value={gridAutoColumns:i},this}row(...i){return this._value={gridAutoRows:i},this}get rowFlow(){return this._value={gridAutoFlow:"row"},this}get colFlow(){return this._value={gridAutoFlow:"column"},this}get dense(){return this._value={gridAutoFlow:"dense"},this}get rowDense(){return this._value={gridAutoFlow:"row dense"},this}get colDense(){return this._value={gridAutoFlow:"column dense"},this}}var F=(i,a,l="gap")=>(i._value={[l]:a},i);class dt extends u{prop="gap";valFN=d}class ct extends u{constructor({prefix:i="",data:a={},values:l={}}={}){super({prefix:i,data:a,values:l})}gap(i){return F(this,i)}get gap0(){return F(this,0)}get gap1(){return F(this,1)}get gap2(){return F(this,2)}get gap3(){return F(this,3)}get gap4(){return F(this,4)}get gap5(){return F(this,5)}rowGap(i){return F(this,i,"rowGap")}colGap(i){return F(this,i,"columnGap")}get GAP(){return new dt({values:this._value})}}class Ae extends ct{constructor({prefix:i="",data:a={},values:l={}}={}){super({prefix:i,data:a,values:l});if(!i)this._value={display:"grid"}}get ALIGN(){return new Fe({values:this._value,data:{aljust:"alignContent",_auto:"flex-start"}})}get JUSTIFY(){return new Fe({values:this._value})}get TEMPLATE(){return new ut({values:this._value})}get AUTO(){return new ht({values:this._value})}get SELF(){return new Re({values:this._value,data:{aljust:"placeSelf",_auto:"auto"}})}grid(i){return this._value={grid:i},this}template(i,a){let l=t(i,{rem:!0}),h=t(a,{rem:!0});return this._value={gridArea:h?l+" / "+h:l},this}area(i){let a="";if(K(i))a=i;else{let{rowS:l,rowE:h,colS:p,colE:m}=i;a=t([l,p,h,m],{delimeter:" / "})}return this._value={gridArea:a},this}col(i,a){return this._value={gridColumn:t([i,"/",a])},this}colStart(i){return this._value={gridColumnStart:i},this}colEnd(i){return this._value={gridColumnEnd:i},this}row(i,a){return this._value={gridRow:t([i,"/",a])},this}rowStart(i){return this._value={gridRowStart:i},this}rowEnd(i){return this._value={gridRowEnd:i},this}get autoColumn(){return this._value={gridColumn:"auto / auto"},this}}var pt=r,gt=(i)=>Le(i);class Ie extends u{filters=new Set;prop="filter";get none(){return this._value={[this.prop]:"none"},this}filter(i={}){return gt(i).forEach(([a,l])=>{if(a==="dropShadow"){let h=M(l);this.filters.add(r.dropShadow(h))}else if(a==="url")this.filters.add(r.url(l));else if(a==="blur")this.filters.add(r.blur(`${l}px`));else if(a==="hueRotate")this.filters.add(r.hueRotate(l));else{let h=pt[a];if(h)this.filters.add(h(`${l}%`))}}),this._value={[this.prop]:[...this.filters]},this}}class Ee extends u{filters=new Set;get none(){return this._value={backdropFilter:"none",webkitBackdropFilter:"none"},this}filter(i={}){return gt(i).forEach(([a,l])=>{if(a==="dropShadow"){let h=M(l);this.filters.add(r.dropShadow(h))}else if(a==="url")this.filters.add(r.url(l));else if(a==="blur")this.filters.add(r.blur(`${l}px`));else if(a==="hueRotate")this.filters.add(r.hueRotate(l));else{let h=pt[a];if(h)this.filters.add(h(`${l}%`))}}),this._value={backdropFilter:[...this.filters],webkitBackdropFilter:[...this.filters]},this}}var vt=(i,a)=>new Proxy({},{get(h,p){if(typeof p!=="string")return;let m=Reflect.get(i,p);if(m)return m;return a===void 0?r.var(p):r.var(p,a)}});class U{VARS(i){return Object.entries(i).reduce((a,[l,h])=>(a[`--${N(l)}`]=h,a),{})}get VAR(){return vt(this)}optVAR(i){return vt(this,i)}}class mt{static VARS(i){return new U().VARS(i)}static optVAR(i){return new U().optVAR(i)}static get VAR(){return new U().VAR}static get visible(){return new k().visible}static get hidden(){return new k().hidden}static get select(){return new V().select}static get noSelect(){return new V().none}static get pointer(){return new P().auto}static get noPointer(){return new P().none}}class _t extends mt{static get TRANSITION(){return new ue}static get ANIMATION(){return new X({data:{isAnim:!0}})}static animation(i){return new X({data:{isAnim:!0}}).animation(i)}}class St extends _t{static get BG(){return new ce}static get COLOR(){return new g({data:{prop:"color"}})}static get TEXT(){return new pe}static get FONT(){return new we}static get FILTER(){return new Ie}static get BACKDROP(){return new Ee}static get VALIGN(){return new ie}static get WORD(){return new Se}static get CURSOR(){return new J}static get DISPLAY(){return new Q}static get POSITION(){return new ee}static get RADIUS(){return new Z}static get BORDER(){return new A}static get OUTLINE(){return new ge}static get COLUMN(){return new me}static get OVERFLOW(){return new D}static get OPACITY(){return new te}static get ZIndex(){return new re}static get LINE(){return new ae}static get WHITESPACE(){return new se}}class s extends St{static get FLEX(){return new z}static get GRID(){return new Ae}static get HW(){return new q}static get WIDTH(){return new _({data:{wh:"width",first:""}})}static get HEIGHT(){return new _({data:{wh:"height",first:""}})}static get TOP(){return new _({data:{wh:"top",first:""}})}static get LEFT(){return new _({data:{wh:"left",first:""}})}static get RIGHT(){return new _({data:{wh:"right",first:""}})}static get BOTTOM(){return new _({data:{wh:"bottom",first:""}})}static get MAX(){return{get WIDTH(){return new _({data:{wh:"maxWidth",first:"w"}})},get HEIGHT(){return new _({data:{wh:"maxHeight",first:"h"}})},get BLOCK(){return new f({data:{bin:"maxBlockSize",side:""}})},get INLINE(){return new f({data:{bin:"maxInlineSize",side:""}})}}}static get MIN(){return{get WIDTH(){return new _({data:{wh:"minWidth",first:"w"}})},get HEIGHT(){return new _({data:{wh:"minHeight",first:"h"}})},get BLOCK(){return new f({data:{bin:"minBlockSize",side:""}})},get INLINE(){return new f({data:{bin:"minInlineSize",side:""}})}}}static get MARGIN(){return new S({data:{mp:"margin",side:""}})}static get PADDING(){return new S({data:{mp:"padding",side:""}})}static get TRANSFORM(){return new Y}static get PERSPECTIVE(){return new _e}static transform(i){return new Y().transform(i)}static get LIST(){return new fe}static get BOX(){return new xe}static get SHADOW(){return new Ce}static get SCROLL(){return new be}static get OVERSCROLL(){return new ne}}
4
+ export{n,s};