@shweet/qt 0.0.16 → 0.0.19

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as shweet from 'shweet';
2
- import { Medyas, CSSinR, KFCSS, CSSValue } from 'shweet';
2
+ import { Medyas, KFCSS, CSSinR, CSSValue } from 'shweet';
3
3
 
4
4
  declare class PROXY<T extends Medyas<T>, Q = Record<string, any>> extends Medyas<T, Q> {
5
5
  protected prop: string;
@@ -1659,10 +1659,72 @@ declare class BACKFILTER extends PROXY<FILTER, {}> {
1659
1659
  filter(filter?: filters): this;
1660
1660
  }
1661
1661
 
1662
+ declare class Logger {
1663
+ private name;
1664
+ constructor(name: string);
1665
+ log: (...args: any[]) => void;
1666
+ set i(a: any);
1667
+ }
1662
1668
  declare class log {
1669
+ static logger: <T extends abstract new (...args: any) => any>(ctx: InstanceType<T> | string) => Logger;
1670
+ static set f(a: any);
1663
1671
  static set i(a: any);
1664
1672
  static set e(a: any);
1665
1673
  static set w(a: any);
1674
+ static set d(a: any);
1675
+ }
1676
+
1677
+ declare global {
1678
+ interface Date {
1679
+ /**
1680
+ *
1681
+ * * Format a date using tokens.
1682
+ *
1683
+ * ### Available tokens:
1684
+ * - `YYYY, YY` —— Year
1685
+ * - `MMMM, MMM, MM, M` —— Month
1686
+ * - `dddd, ddd` —— Weekday
1687
+ * - `DD, D` —— Day of Month
1688
+ * - `HH, H, hh, h` —— Hour
1689
+ * - `mm, m` —— Minute
1690
+ * - `ss, s` —— Second
1691
+ * - `SSS` —— Millisecond
1692
+ * - `A, a` —— AM/PM
1693
+ * - `Q` —— Quarter
1694
+ * - `DoY` —— Day of Year
1695
+ * @param pattern - Format string with tokens (default: `"YYYY-MM-DD HH:mm:ss"`)
1696
+ * @param locale - Optional locale or array of locales (default: system locale)
1697
+ */
1698
+ format(pattern?: string, locale?: string | string[]): string;
1699
+ }
1700
+ interface DateConstructor {
1701
+ /**
1702
+ * Register or override a custom format token.
1703
+ * @param token The token string to replace (e.g. "DoY")
1704
+ * @param fn A function that returns a string when formatting
1705
+ */
1706
+ registerFormat(token: string, fn: (d: Date, locale?: string | string[]) => string): void;
1707
+ /**
1708
+ *
1709
+ * * Format a date using tokens.
1710
+ *
1711
+ * ### Available tokens:
1712
+ * - `YYYY, YY` —— Year
1713
+ * - `MMMM, MMM, MM, M` —— Month
1714
+ * - `dddd, ddd` —— Weekday
1715
+ * - `DD, D` —— Day of Month
1716
+ * - `HH, H, hh, h` —— Hour
1717
+ * - `mm, m` —— Minute
1718
+ * - `ss, s` —— Second
1719
+ * - `SSS` —— Millisecond
1720
+ * - `A, a` —— AM/PM
1721
+ * - `Q` —— Quarter
1722
+ * - `DoY` —— Day of Year
1723
+ * @param pattern - Format string with tokens (default: `"YYYY-MM-DD HH:mm:ss"`)
1724
+ * @param locale - Optional locale or array of locales (default: system locale)
1725
+ */
1726
+ format(pattern?: string, locale?: string | string[]): string;
1727
+ }
1666
1728
  }
1667
1729
 
1668
1730
  declare class VAR {
package/dist/index.js CHANGED
@@ -1,2 +1,15 @@
1
1
  // @bun
2
- import{f as Bt}from"shweet";import{Medyas as wt,f as xt}from"shweet";var s=(e)=>{let t=Number(e);if(t)return t;return e};class i extends wt{prop="";propFN;valFN;string=!0;replacer="-";constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r});return new Proxy(this,{get(n,h,c){if(h in n&&typeof n[h]!=="undefined")return n[h];else if(n.prop||n.propFN){let D=n.prop;if(n.propFN)D=n.propFN(h);let A=h;if(n.string)A=h.replaceAll("_",n.replacer);if(n.valFN)A=n.valFN(A);n._value={[D]:A}}return c},set(n,h,c){if(h in n&&typeof n[h]!=="function")return n[h]=c,!0;return!1}})}var(e,t){if(this.prop)this._value={[this.prop]:xt.var(e,t)};return this}}class Y{TH;prop;startEnd;_none;_auto;constructor(e,t,r=["flex-start","flex-end"],n="flex-start",h="auto"){this.TH=e;this.prop=t;this.startEnd=r;this._none=n;this._auto=h}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 S extends Y{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 Je extends Y{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 Z=(e,t,r="justifyContent",n=["flex-start","flex-end"])=>{let{direction:h,reversed:c}=e.data,D=h==="row";if(D)e._value={alignItems:t};else{if(c)n.reverse();e._value={alignItems:t}}if(D&&c)n.reverse();return new S(e,r,n,n[0])},p=(e,t,r="gap")=>{return e._value={[r]:t},e};class Ae extends i{prop="gap";valFN=s}class Ge extends i{constructor({prefix:e="",data:t={direction:"row",reversed:!1},values:r={}}={}){super({prefix:e,data:t,values:r})}gap(e){return p(this,e)}get gap0(){return p(this,0)}get gap1(){return p(this,1)}get gap2(){return p(this,2)}get gap3(){return p(this,3)}get gap4(){return p(this,4)}get gap5(){return p(this,5)}rowGap(e){return p(this,e,"rowGap")}colGap(e){return p(this,e,"columnGap")}get GAP(){return new Ae({values:this._value})}}class We extends i{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 je extends i{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 k extends Ge{constructor({prefix:e="",data:t={direction:"row",reversed:!1},values:r={}}={}){super({prefix:e,data:t,values:r});if(!e)this._value={display:"flex"}}get ALIGN(){return new We({values:this._value})}get JUSTIFY(){return new je({values:this._value})}get BASELINE(){return Z(this,"baseline")}get STRETCH(){return Z(this,"stretch")}get CENTER(){return Z(this,"center")}get START(){return Z(this,"flex-start")}get END(){return Z(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 S(this,"alignContent",["flex-start","flex-end"],"stretch")}get SELF(){return new Je(this,"alignSelf",["flex-start","flex-end"],"auto")}shrink(e=1){return this._value={flexShrink:e},this}grow(e=1){return this._value={flexGrow:e},this}basis(e=1){return this._value={flexBasis:e},this}flex(e,t,r){return this._value={flex:[String(e),String(t),r.toString()]},this}}import{f as $}from"shweet";class o extends i{prop="";valFN=s;constructor({prefix:e="",data:t={wh:"",first:""},values:r={}}={}){super({prefix:e,data:t,values:r});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 e=this.data.first;return this._value={[this.data.wh]:$.clamp("100v"+e,"100dv"+e,"100lv"+e)},this}px(e){return this._value={[this.data.wh]:`${e}px`},this}pr(e){return this._value={[this.data.wh]:`${e}%`},this}rm(e){return this._value={[this.data.wh]:e},this}value(e){return this._value={[this.data.wh]:e},this}var(e,t){return this._value={[this.data.wh]:$.var(e,t)},this}}class L extends i{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:$.clamp("100vh","100dvh","100lvh"),width:$.clamp("100vw","100dvw","100lvw")},this}px(e){return this._value={height:`${e}px`,width:`${e}px`},this}pr(e){return this._value={height:`${e}%`,width:`${e}%`},this}rm(e){return this._value={height:e,width:e},this}value(e){return this._value={height:e,width:e},this}var(e,t){return this._value={height:$.var(e,t),width:$.var(e,t)},this}}import{f as Ct}from"shweet";class l extends i{valFN=s;propFN=()=>{return[this.data.mp,this.data.side].join("")};get auto(){return this._value={[this.propFN()]:"auto"},this}px(e){return this._value={[this.propFN()]:`${e}px`},this}rm(e){return this._value={[this.propFN()]:e},this}value(e){return this._value={[this.propFN()]:e},this}var(e,t){return this._value={[this.propFN()]:Ct.var(e,t)},this}get TOP(){return new l({values:this._values,data:{mp:this.data.mp,side:"Top"}})}get RIGHT(){return new l({values:this._values,data:{mp:this.data.mp,side:"Right"}})}get LEFT(){return new l({values:this._values,data:{mp:this.data.mp,side:"Left"}})}get BOTTOM(){return new l({values:this._values,data:{mp:this.data.mp,side:"Bottom"}})}get BLOCK(){return new a({values:this._values,data:{bin:this.data.mp+"Block",side:""}})}get INLINE(){return new a({values:this._values,data:{bin:this.data.mp+"Inline",side:""}})}}class a extends i{prop="";valFN=s;constructor({prefix:e="",data:t={bin:"",side:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=[this.data.bin,this.data.side].join("")}px(e){return this._value={[this.data.bin]:`${e}px`},this}pr(e){return this._value={[this.data.bin]:`${e}%`},this}rm(e){return this._value={[this.data.bin]:e},this}get END(){return new a({values:this._values,data:{bin:this.data.bin,side:"End"}})}get START(){return new a({values:this._values,data:{bin:this.data.bin,side:"Start"}})}}import{Medyas as Gt}from"shweet";import{f as Me,med as R}from"shweet";var I=(e)=>typeof e==="string",B=(e)=>Array.isArray(e);var N=(e)=>{return B(e)?e:[e]};class Ke{static set i(e){console.info(...N(e))}static set e(e){console.error(...N(e))}static set w(e){console.info(...N(e))}}var z=(e)=>{if(e.startsWith("webkit"))e="-"+e;return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};var w=Object.entries;var Te=(e=6,t)=>{if(!t)return Math.floor(Math.random()*e);return Math.round(Math.random()*(t-e)+e)},Q=()=>{let e=Object.values(E),t=Te(0,e.length-1);return e[t]},E={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"]};class G extends i{prop="";constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}var He=(e=!1)=>{let t=Object.values(E),r=Te(0,t.length-1),n=t[r];if(e)n.reverse();return R(n[0],{dark:n[1]})};class Ve extends G{valFN=(e)=>{let t=E[String(e)];return R(t[1],{dark:t[0]})};get random(){return this._value={[this.prop]:He(!0)},this}}class Xe extends G{valFN=(e)=>{let t=E[String(e)];return R(t[0],{dark:t[1]})};get random(){return this._value={[this.prop]:He()},this}}class u extends G{valFN=(e)=>{return E[e][0]};color(e){return this._value={[this.prop]:e},this}rgba(e,t,r,n){return this._value={[this.prop]:Me.rgba(e,t,r,n)},this}get random(){return this._value={[this.prop]:Q()[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 Xe({values:this._value,data:{prop:this.data.prop}})}get AUTODARK(){return new Ve({values:this._value,data:{prop:this.data.prop}})}get MIX(){return new Ye({values:this._value,data:{prop:this.data.prop}})}}var d=(e,t,r,n)=>{return{[e]:Me.colorMix(`in ${t}`,B(r)?r:[r],B(n)?n:[n])}};class Ye extends i{constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}srgb(e,t){return this._value=d(this.prop,"srgb",e,t),this}srgb_linear(e,t){return this._value=d(this.prop,"srgb-linear",e,t),this}display_p3(e,t){return this._value=d(this.prop,"display-p3",e,t),this}a98_rgb(e,t){return this._value=d(this.prop,"a98-rgb",e,t),this}prophoto_rgb(e,t){return this._value=d(this.prop,"prophoto-rgb",e,t),this}rec2020(e,t){return this._value=d(this.prop,"rec2020",e,t),this}lab(e,t){return this._value=d(this.prop,"lab",e,t),this}oklab(e,t){return this._value=d(this.prop,"oklab",e,t),this}xyz(e,t){return this._value=d(this.prop,"xyz",e,t),this}xyz_d50(e,t){return this._value=d(this.prop,"xyz-d50",e,t),this}xyz_d65(e,t){return this._value=d(this.prop,"xyz-d65",e,t),this}hsl(e,t){return this._value=d(this.prop,"hsl",e,t),this}hwb(e,t){return this._value=d(this.prop,"hwb",e,t),this}lch(e,t){return this._value=d(this.prop,"lch",e,t),this}and(e,t){return this._value=d(this.prop,"and",e,t),this}oklch(e,t){return this._value=d(this.prop,"oklch",e,t),this}}var F=(e,t)=>{let r=["border",e.data.side,"Style"].join("");return e._value={[r]:t},e};class x extends Gt{constructor({prefix:e="",data:t={side:""},values:r={}}={}){super({prefix:e,data:t,values:r})}value(e){let t=["border",this.data.side].join("");return this._value={[t]:e},this}color(e){let t=["border",this.data.side,"Color"].join("");return this._value={[t]:e},this}width(e){let t=["border",this.data.side,"Width"].join("");return this._value={[t]:e},this}image(e,...t){let r=["border",this.data.side,"Image"].join("");return this._value={[r]:[e,...t.map(String)]},this}get solid(){return F(this,"solid")}get dotted(){return F(this,"dotted")}get none(){return F(this,"none")}get hidden(){return F(this,"hidden")}get dashed(){return F(this,"dashed")}get double(){return F(this,"double")}get groove(){return F(this,"groove")}get ridge(){return F(this,"ridge")}get inset(){return F(this,"inset")}get outset(){return F(this,"outset")}get TOP(){return new x({values:this._values,data:{side:"Top"}})}get RIGHT(){return new x({values:this._values,data:{side:"Right"}})}get LEFT(){return new x({values:this._values,data:{side:"Left"}})}get BOTTOM(){return new x({values:this._values,data:{side:"Bottom"}})}get b1(){let e=["border",this.data.side,""].join("");return this._value={[e]:"1px solid currentColor"},this}get bRed(){let e=["border",this.data.side,""].join("");return this._value={[e]:"1px solid red"},this}get random(){let e=["border",this.data.side,""].join("");return this._value={[e]:["1px solid",Q()[0]]},this}get bRandom(){let e=["border",this.data.side,""].join("");return this._value={[e]:["1px solid",Q()[0]]},this}get COLOR(){let e=["border",this.data.side,"Color"].join("");return new u({values:this._value,data:{prop:e}})}}function W(e){return new Proxy(this,{get(t,r){let n=Number(r);if(n)t._value={[e]:n};return t}})}class P extends i{prop="borderRadius";valFN=s;v(e){this._value={borderRadius:e}}get tL(){return W.call(this,"borderTopLeftRadius")}get tR(){return W.call(this,"borderTopRightRadius")}get bR(){return W.call(this,"borderBottomRightRadius")}get bL(){return W.call(this,"borderBottomLeftRadius")}x(e){return this._value={borderTopLeftRadius:e,borderTopRightRadius:e},this}y(e){return this._value={borderBottomLeftRadius:e,borderBottomRightRadius:e},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(e){return this._value={[this.prop]:`${e}%`},this}px(e){return this._value={[this.prop]:`${e}px`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}}import{Medyas as Wt,f as jt}from"shweet";class O extends i{prop="cursor"}class v extends i{prop="display"}class ee extends i{prop="position"}class J extends Wt{xy="";constructor({prefix:e="",data:t={xy:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.xy=["overflow",t.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 J({prefix:this._prefix,values:this._values,data:{xy:"X"}})}get Y(){return new J({prefix:this._prefix,values:this._values,data:{xy:"Y"}})}}class te extends i{prop="opacity";valFN=(e)=>{let t=Number(e);if(t&&t>1)return`${e}%`;return e};pr(e){return this._value={opacity:`${e}%`},this}}class re extends i{prop="zIndex"}class ie extends i{prop="whiteSpace"}class j extends i{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 ne extends i{prop="verticalAlign";valFN=s;px(e){return this._value={verticalAlign:`${e}px`},this}pr(e){return this._value={verticalAlign:`${e}%`},this}}class K extends i{get select(){return this._value={userSelect:"auto"},this}get none(){return this._value={userSelect:"none"},this}}class U extends i{get auto(){return this._value={pointerEvents:"auto"},this}get none(){return this._value={pointerEvents:"none"},this}}class se extends i{prop="lineHeight";valFN=s}class he extends i{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(e,t){return this._value={overscrollBehavior:jt.var(e,t)},this}}import{f as ue}from"shweet";var Kt={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 de extends i{prop="transitionProperty";properties=new Set;valFN=(e)=>{return Kt[e].forEach((r)=>{if(r==="none")this.properties.clear();else this.properties.add(r)}),[...this.properties]};property(...e){return e.forEach((t)=>{this.properties.add(t)}),this._value={transitionProperty:[...this.properties]},this}}class Se extends i{propFN=()=>{return this.data.prop};cubicBezier(e,t,r,n){return this._value={[this.propFN()]:ue.cubicBezier(e,t,r,n)},this}steps(e,t){return this._value={[this.propFN()]:ue.steps(e,t)},this}}class oe extends i{valFN=(e)=>{return`${e}s`};propFN=()=>{return this.data.prop}}class M extends i{prop;constructor({prefix:e="",data:t={isAnim:!1},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.isAnim?"animationDuration":"transitionDuration"}valFN=(e)=>{return`${e}s`};propFN=()=>{return this.prop};get TIMING(){return new Se({data:{prop:this.data.isAnim?"animationTimingFunction":"transitionTimingFunction"},values:this._values})}get DELAY(){return new oe({data:{prop:this.data.isAnim?"animationDelay":"transitionDelay"},values:this._values})}get DURATION(){return new oe({data:{prop:this.data.isAnim?"animationDuration":"transitionDuration",values:this._values}})}get none(){let e=this.data.isAnim?"animation":"transition";return this._value={[e]:"none"},this}value(e){let t=this.data.isAnim?"animation":"transition";return this._value={[t]:e},this}var(e,t){let r=this.data.isAnim?"animation":"transition";return this._value={[r]:ue.var(e,t)},this}}class le extends M{get PROPERTY(){return new de({values:this._values})}property(...e){return new de({values:this._values}).property(...e)}}import{Medyas as ke,f}from"shweet";class Le extends ke{constructor({prefix:e="",data:t={kf:{}},values:r={}}){super({prefix:e,data:t,values:r})}get bounce(){return this._value={animation:["bounce","1s","infinite"]},this.data.kf.bounce={"10%, 100%":{transform:f.translateY("0%"),animationTimingFunction:f.cubicBezier(0.8,0,1,1)},"50%":{transform:f.translateY("20%"),animationTimingFunction:f.cubicBezier(0,0,0.2,1)}},this}get ping(){return this._value={animation:["ping","1s",f.cubicBezier(0,0,0.2,1),"infinite"]},this.data.kf.ping={"100%, 75%":{transform:f.scale(1.5),opacity:0}},this}get pulse(){return this._value={animation:["pulse","1s",f.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:f.rotate(360)}},this}}class Ie extends i{prop="animationDirection"}class Ne extends i{prop="animationFillMode"}class Re extends i{prop="animationIterationCount";get infinite(){return this._value={[this.prop]:"infinite"},this}}class ce extends ke{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}animation(e){return this._value={animation:e},this}name(e){return this._value={animationName:e},this}duration(e){return this._value={animationDuration:e},this}get paused(){return this._value={animationPlayState:"paused"},this}get running(){return this._value={animationPlayState:"running"},this}}class T extends M{SET(e){return new Le({data:{kf:e}})}name(e){return new ce({values:this._values}).name(e)}animation(e){return new ce({values:this._values}).animation(e)}get DIRECTION(){return new Ie({values:this._values})}get FILL(){return new Ne({values:this._values})}get ITERATION(){return new Re({values:this._values})}}import{f as b}from"shweet";class Pe extends i{prop="backgroundAttachment"}class Oe extends i{prop="backgroundBlendMode"}class ae extends i{valFN=(e)=>{if(this.prop==="backgroundClip"&&e==="text")this._value={webkitBackgroundClip:e};return e};constructor({prefix:e="",data:t={name:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.name}}class ve extends i{prop="backgroundSize";valFN=s;get auto(){let e=[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(e){return this._value={[this.prop]:`${e}px`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}}class et extends i{prop="backgroundPosition";replacer=" ";value(e){return this._value={[this.prop]:e},this}XY(e,t){return this._value={[this.prop]:[e,t]},this}}class tt extends i{prop="backgroundImage";url(e){return this._value={[this.prop]:b.url(e)},this}conic(...e){return this._value={[this.prop]:b.conicGradient(...e)},this}repeatingConic(...e){return this._value={[this.prop]:b.repeatingConicGradient(...e)},this}linear(...e){return this._value={[this.prop]:b.linearGradient(...e)},this}repeatingLinear(...e){return this._value={[this.prop]:b.repeatingLinearGradient(...e)},this}radial(...e){return this._value={[this.prop]:b.radialGradient(...e)},this}repeatingRadial(...e){return this._value={[this.prop]:b.repeatingRadialGradient(...e)},this}get none(){return this._value={[this.prop]:"none"},this}value(e){return this._value={[this.prop]:e},this}var(e,t){return this._value={[this.prop]:b.var(e,t)},this}}class Fe{get ATTACH(){return new Pe}get BLEND(){return new Oe}get CLIP(){return new ae({data:{name:"backgroundClip"}})}get ORIGIN(){return new ae({data:{name:"backgroundOrigin"}})}get COLOR(){return new u({data:{prop:"backgroundColor"}})}get SIZE(){return new ve}get IMAGE(){return new tt}get POSITION(){return new et}get random(){return new u({data:{prop:"backgroundColor"}}).random}color(e){return new u({data:{prop:"backgroundColor"}}).color(e)}}class rt extends i{prop="textAlign"}var Ut=["none","underline","overline","line_through"];class it extends i{propFN=(e)=>{if(Ut.includes(e))return"textDecorationLine";return"textDecorationStyle"};get COLOR(){return new u({values:this._value,data:{prop:"textDecorationColor"}})}thickness(e){return this._value={textDecorationThickness:e},this}get auto(){return this._value={textDecorationThickness:"auto"},this}get font(){return this._value={textDecorationThickness:"from-font"},this}}var Mt=["over","under","left","right"];class nt extends i{prop="textEmphasis";propFN=(e)=>{if(Mt.includes(e))return"textEmphasisPosition";return"textEmphasisStyle"};char(e){return this._value={textEmphasisStyle:`"${e}"`},this}get COLOR(){return new u({values:this._value,data:{prop:"textEmphasisColor"}})}}class st extends i{prop="textIndent";valFN=s}class ht extends i{prop="textJustify"}class ut extends i{prop="textOrientation"}var Tt=["auto","under","from_font","left","right"];class dt extends i{propFN=(e)=>{if(Tt.includes(e))return"textUnderlinePosition";return"textUnderlineOffset"};valFN=s;get autoOffset(){return this._value={textUnderlineOffset:"auto"},this}}class ge extends i{get ALIGN(){return new rt}get DECOR(){return new it}get EMPHASIS(){return new nt}get INDENT(){return new st}get JUSTIFY(){return new ht}get ORIENTATION(){return new ut}get UNDERLINE(){return new dt}get clip(){return this._value={textOverflow:"clip"},this}get ellipsis(){return this._value={textOverflow:"ellipsis"},this}overflow(e){return this._value={textOverflow:`"${e}"`},this}decor(e){return this._value={textDecoration:e},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 u({values:this._value,data:{prop:"color"}})}}import{Medyas as Ht}from"shweet";var g=(e,t)=>{return e._value={outlineStyle:t},e};class me extends Ht{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}color(e){return this._value={outlineColor:e},this}width(e){return this._value={outlineWidth:e},this}get solid(){return g(this,"solid")}get dotted(){return g(this,"dotted")}get none(){return g(this,"none")}get hidden(){return g(this,"hidden")}get dashed(){return g(this,"dashed")}get double(){return g(this,"double")}get groove(){return g(this,"groove")}get ridge(){return g(this,"ridge")}get inset(){return g(this,"inset")}get outset(){return g(this,"outset")}get b1(){return this._value={outline:"1px solid currentColor"},this}get bRed(){return this._value={outline:"1px solid red"},this}get bRandom(){return this._value={outline:["1px solid",Q()[0]]},this}get COLOR(){return new u({values:this._value,data:{prop:"outlineColor"}})}off(e){return C(this,e)}get off0(){return C(this,0)}get off1(){return C(this,1)}get off2(){return C(this,2)}get off3(){return C(this,3)}get off4(){return C(this,4)}get off5(){return C(this,5)}}var C=(e,t)=>{return e._value={outlineOffset:t},e};import{Medyas as ot}from"shweet";var m=(e,t)=>{return e._value={columnRuleStyle:t},e};class lt extends ot{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}color(e){return this._value={columnRuleColor:e},this}width(e){return this._value={columnRuleWidth:e},this}get solid(){return m(this,"solid")}get dotted(){return m(this,"dotted")}get none(){return m(this,"none")}get hidden(){return m(this,"hidden")}get dashed(){return m(this,"dashed")}get double(){return m(this,"double")}get groove(){return m(this,"groove")}get ridge(){return m(this,"ridge")}get inset(){return m(this,"inset")}get outset(){return m(this,"outset")}get COLOR(){return new u({values:this._value,data:{prop:"columnRuleColor"}})}}class ye extends i{constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}class pe extends ot{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}width(e){return this._value={columnRuleWidth:e},this}get COUNT(){return new ye({values:this._value,data:{prop:"columnCount"}})}count(e){return this._value={columnCount:e},this}get GAP(){return new ye({values:this._value,data:{prop:"columnGap"}})}gap(e){return this._value={columnGap:e},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(e){return this._value={columnRule:e},this}get RULE(){return new lt({values:this._value})}}import{f as _e}from"shweet";class H extends i{origin(...e){return this._value={transformOrigin:e},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(e){let t=[];if(Object.entries(e).forEach(([r,n])=>{if(r in _e){let h=_e[r];t.push(h(n))}}),t.length)this._value={transform:t};return this}var(e,t){return this._value={transform:_e.var(e,t)},this}}class Be extends i{prop="perspective";valFN=s;get none(){return this._value={perspective:"none"},this}x(e){return this._value={perspectiveOrigin:e},this}y(e){return this._value={perspectiveOrigin:e},this}}var Vt=["break_all","keep_all"];class fe extends i{propFN=(e)=>{if(Vt.includes(e))return"wordBreak";return"wordSpacing"};valFN=s;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 be extends i{prop="listStyleType";image(e){return this._value={listStyleImage:e},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}}import{f as ct}from"shweet";class at extends i{prop="fontSize";valFN=s;px(e){return this._value={[this.prop]:`${e}px`},this}pr(e){return this._value={[this.prop]:`${e}%`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}var(e,t){return this._value={[this.prop]:ct.var(e,t)},this}}class De extends i{font(e){return this._value={font:e},this}var(e,t){return this._value={font:ct.var(e,t)},this}stretch(e){return this._value={fontStretch:e},this}family(e){return this._value={fontFamily:e},this}sizeAdjust(e){return this._value={fontSizeAdjust:e},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(e){return this._value={fontVariantCaps:e},this}weight(e){return this._value={fontWeight:e},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 at({values:this._value})}}import{Value as Ft,f as Xt}from"shweet";var V=(e)=>{let{x:t,y:r,blur:n,spread:h,color:c,inset:D}=e;return Ft([t,r,n,h,c,D?"inset":void 0],{rem:!0})};class we extends i{shadows=new Set;value(e){return this.shadows.add(Ft(e,{rem:!0})),this._value={boxShadow:[...this.shadows].join(", ")},this}set(e){let t=V(e);return this.shadows.add(t),this._value={boxShadow:[...this.shadows].join(", ")},this}get none(){return this._value={boxShadow:"none"},this}var(e,t){return this._value={boxShadow:Xt.var(e,t)},this}}class xe extends i{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}}import{f as Yt}from"shweet";class Ce extends i{get MARGIN(){return new l({values:this._value,data:{mp:"scrollMargin",side:""}})}get PADDING(){return new l({values:this._value,data:{mp:"scrollPadding",side:""}})}get SNAP(){return new gt({values:this._value,data:{mp:"scrollPadding",side:""}})}get auto(){return this._value={scrollBehavior:"auto"},this}get smooth(){return this._value={scrollBehavior:"smooth"},this}var(e,t){return this._value={scrollBehavior:Yt.var(e,t)},this}}class gt extends i{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(e){return this._value={scrollSnapAlign:e},this}type(e){return this._value={scrollSnapAlign:e},this}}import{Value as q}from"shweet";class $e extends i{prop="";constructor({prefix:e="",data:t={aljust:"justifyContent",_auto:"auto"},values:r={}}={}){super({prefix:e,data:t,values:r});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 qe extends $e{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 e=z(this.data.aljust).split("-")[0];return new ze({values:this._value,data:{aljust:`${e}Self`,_auto:"auto"}})}}class ze extends $e{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 mt extends i{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(...e){return this._value={gridTemplateAreas:q(e.map((t)=>q(t.map((r)=>r?r:"."))),{quote:!0})},this}col(...e){return this._value={gridTemplateColumns:e},this}row(...e){return this._value={gridTemplateRows:e},this}}class yt extends i{prop="gridTemplate";col(...e){return this._value={gridAutoColumns:e},this}row(...e){return this._value={gridAutoRows:e},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 _=(e,t,r="gap")=>{return e._value={[r]:t},e};class pt extends i{prop="gap";valFN=s}class _t extends i{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}gap(e){return _(this,e)}get gap0(){return _(this,0)}get gap1(){return _(this,1)}get gap2(){return _(this,2)}get gap3(){return _(this,3)}get gap4(){return _(this,4)}get gap5(){return _(this,5)}rowGap(e){return _(this,e,"rowGap")}colGap(e){return _(this,e,"columnGap")}get GAP(){return new pt({values:this._value})}}class Qe extends _t{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r});if(!e)this._value={display:"grid"}}get ALIGN(){return new qe({values:this._value,data:{aljust:"alignContent",_auto:"flex-start"}})}get JUSTIFY(){return new qe({values:this._value})}get TEMPLATE(){return new mt({values:this._value})}get AUTO(){return new yt({values:this._value})}get SELF(){return new ze({values:this._value,data:{aljust:"placeSelf",_auto:"auto"}})}grid(e){return this._value={grid:e},this}template(e,t){let r=q(e,{rem:!0}),n=q(t,{rem:!0});return this._value={gridArea:n?r+" / "+n:r},this}area(e){let t="";if(I(e))t=e;else{let{rowS:r,rowE:n,colS:h,colE:c}=e;t=q([r,h,n,c],{delimeter:" / "})}return this._value={gridArea:t},this}col(e,t){return this._value={gridColumn:q([e,"/",t])},this}colStart(e){return this._value={gridColumnStart:e},this}colEnd(e){return this._value={gridColumnStart:e},this}row(e,t){return this._value={gridRow:q([e,"/",t])},this}rowStart(e){return this._value={gridRow:e},this}rowEnd(e){return this._value={gridRow:e},this}get autoColumn(){return this._value={gridColumn:"auto / auto"},this}}import{f as y}from"shweet";class Ze extends i{filters=new Set;prop="filter";get none(){return this._value={[this.prop]:"none"},this}filter(e={}){return w(e).forEach(([t,r])=>{if(t==="dropShadow"){let n=V(r);this.filters.add(y.dropShadow(n))}else if(t==="url")this.filters.add(y.url(r));else if(t==="blur")this.filters.add(y.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(y.hueRotate(r));else{let n=y[t];if(n)this.filters.add(n(`${r}%`))}}),this._value={[this.prop]:[...this.filters]},this}}class Ee extends i{filters=new Set;get none(){return this._value={backdropFilter:"none",webkitBackdropFilter:"none"},this}filter(e={}){return w(e).forEach(([t,r])=>{if(t==="dropShadow"){let n=V(r);this.filters.add(y.dropShadow(n))}else if(t==="url")this.filters.add(y.url(r));else if(t==="blur")this.filters.add(y.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(y.hueRotate(r));else{let n=y[t];if(n)this.filters.add(n(`${r}%`))}}),this._value={backdropFilter:[...this.filters],webkitBackdropFilter:[...this.filters]},this}}class X{VARS(e){return Object.entries(e).reduce((t,[r,n])=>{return t[`--${z(r)}`]=n,t},{})}get VAR(){return new Proxy(this,{get(e,t,r){let n=e[t];if(n)return n;return Bt.var(t)}})}optVAR(e){return new Proxy(this,{get(t,r,n){let h=t[r];if(h)return h;return Bt.var(r,e)}})}}class ft{static VARS(e){return new X().VARS(e)}static optVAR(e){return new X().optVAR(e)}static get VAR(){return new X().VAR}static get visible(){return new j().visible}static get hidden(){return new j().hidden}static get select(){return new K().select}static get noSelect(){return new K().none}static get pointer(){return new U().auto}static get noPointer(){return new U().none}}class bt extends ft{static get TRANSITION(){return new le}static get ANIMATION(){return new T({data:{isAnim:!0}})}static animation(e){return new T({data:{isAnim:!0}}).animation(e)}}class Dt extends bt{static get BG(){return new Fe}static get COLOR(){return new u({data:{prop:"color"}})}static get TEXT(){return new ge}static get FONT(){return new De}static get FILTER(){return new Ze}static get BACKDROP(){return new Ee}static get VALIGN(){return new ne}static get WORD(){return new fe}static get CURSOR(){return new O}static get DISPLAY(){return new v}static get POSITION(){return new ee}static get RADIUS(){return new P}static get BORDER(){return new x}static get OUTLINE(){return new me}static get COLUMN(){return new pe}static get OVERFLOW(){return new J}static get OPACITY(){return new te}static get ZIndex(){return new re}static get LINE(){return new se}static get WHITESPACE(){return new ie}}class St extends Dt{static get FLEX(){return new k}static get GRID(){return new Qe}static get HW(){return new L}static get WIDTH(){return new o({data:{wh:"width",first:""}})}static get HEIGHT(){return new o({data:{wh:"height",first:""}})}static get TOP(){return new o({data:{wh:"top",first:""}})}static get LEFT(){return new o({data:{wh:"left",first:""}})}static get RIGHT(){return new o({data:{wh:"right",first:""}})}static get BOTTOM(){return new o({data:{wh:"bottom",first:""}})}static get MAX(){return{get WIDTH(){return new o({data:{wh:"maxWidth",first:"w"}})},get HEIGHT(){return new o({data:{wh:"maxHeight",first:"h"}})},get BLOCK(){return new a({data:{bin:"maxBlockSize",side:""}})},get INLINE(){return new a({data:{bin:"maxInlineSize",side:""}})}}}static get MIN(){return{get WIDTH(){return new o({data:{wh:"minWidth",first:"w"}})},get HEIGHT(){return new o({data:{wh:"minHeight",first:"h"}})},get BLOCK(){return new a({data:{bin:"minBlockSize",side:""}})},get INLINE(){return new a({data:{bin:"minInlineSize",side:""}})}}}static get MARGIN(){return new l({data:{mp:"margin",side:""}})}static get PADDING(){return new l({data:{mp:"padding",side:""}})}static get TRANSFORM(){return new H}static get PERSPECTIVE(){return new Be}static transform(e){return new H().transform(e)}static get LIST(){return new be}static get BOX(){return new xe}static get SHADOW(){return new we}static get SCROLL(){return new Ce}static get OVERSCROLL(){return new he}}export{Ke as log,St as $};
2
+ import{mkdirSync as bn,writeFileSync as wn,existsSync as Pt}from"fs";import{writeFileSync as Ot}from"fs";var Kr=Object.defineProperty,Hr=(e,t)=>{for(var r in t)Kr(e,r,{get:t[r],enumerable:!0,configurable:!0,set:(i)=>t[r]=()=>i})},Xr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,r,i);else for(var c=e.length-1;c>=0;c--)if(a=e[c])s=(n<3?a(s):n>3?a(t,r,s):a(t,r))||s;return n>3&&s&&Object.defineProperty(t,r,s),s},Te=(e,t)=>{if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)},Vr={};Hr(Vr,{isWindow:()=>ni,isUndefined:()=>Ut,isStr:()=>X,isPromise:()=>Rr,isPlainObject:()=>Or,isObject:()=>Pr,isObj:()=>Qe,isNumber:()=>Qt,isNum:()=>Jt,isNull:()=>It,isNotWindow:()=>si,isNotNull:()=>ri,isModule:()=>vr,isInt:()=>ii,isFN:()=>Zt,isDefined:()=>V,isClassOrId:()=>Gt,isBool:()=>ti,isAsync:()=>Lr,isArraybuff:()=>ei,isArr:()=>E});var Zt=(e)=>typeof e==="function",Lr=(e)=>e.constructor.name==="AsyncFunction",Rr=(e)=>!!e&&typeof e.then==="function",Qt=(e)=>{return!isNaN(parseFloat(e))&&isFinite(e)},Pr=(e)=>{return e&&typeof e==="object"&&!Array.isArray(e)},Or=(e)=>{return typeof e==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype&&!Array.isArray(e)},vr=(e)=>{return e&&typeof e==="object"&&e[Symbol.toStringTag]==="Module"},ei=(e)=>{return e instanceof Uint8Array||e instanceof ArrayBuffer||typeof e==="string"},Gt=(e)=>{return e.startsWith(".")||e.startsWith("#")},ti=(e)=>typeof e==="boolean",X=(e)=>typeof e==="string",E=(e)=>Array.isArray(e),Qe=(e)=>typeof e==="object",Jt=(e)=>typeof e==="number",It=(e)=>e===null,ri=(e)=>e===null,Ut=(e)=>typeof e>"u",V=(e)=>typeof e<"u",ii=(e)=>{return Number.isInteger(Number(e))},ni=typeof window<"u",si=typeof window>"u",re=(e)=>{return E(e)?e:[e]};function We(e=3){let t=((Error().stack?.split(`
3
+ `)??[])[e]||"").match(/at\s+([^(]+)\s*\(/);return(t?t[1].split(".").pop()?.trim():"?")??"?"}class Nt{name;constructor(e){this.name=e}log=(...e)=>{let t=We(3);console.log(`[${this.name}.${t}]`,...e)};set i(e){let t=We(3);console.log(`[${this.name}.${t}]`,...re(e))}}class Ge{static logger=(e)=>{return new Nt(X(e)?e:e.constructor.name)};static set f(e){let t=We();console.log(`[${t}]`,...re(e))}static set i(e){console.info(...re(e))}static set e(e){console.error(...re(e))}static set w(e){console.warn(...re(e))}static set d(e){let t=new Date().toLocaleTimeString();console.log(...re(e),` @ ${t}`)}}var ai=(e)=>JSON.stringify(e),oi=(e)=>{return JSON.parse(e)},ui=(e)=>{return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())},li=(e)=>{if(e.startsWith("webkit"))e="-"+e;return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};class A extends Map{obj(e){e&&d(e).forEach(([t,r])=>this.set(t,r))}map(e){e.forEach((t,r)=>{if(t instanceof A)this.set(r,t);else if(E(t)){if(this.lacks(r))this.set(r,[]);this.get(r).push(...t)}else if(Qe(t))this.ass(r,t);else this.set(r,t)})}ass(e,t){if(!this.has(e))this.set(e,{});L(this.get(e),t)}lacks(e){return!this.has(e)}init(e,t){return this.has(e)?this.get(e):this.set(e,t).get(e)}}var{values:Yt,keys:ze,entries:d}=Object,L=Object.assign;var hi=(e)=>{return Object.keys(e).length};var ci=(e,t,r)=>{let i=r.value;return{configurable:!0,get(){if(this===e.constructor.prototype)return i;let n=i.bind(this);return Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),n}}},U=(e,t=2)=>String(e).padStart(t,"0"),St=new Map;function v(e,t){let r=JSON.stringify({locale:t,...e}),i=St.get(r);if(!i)i=new Intl.DateTimeFormat(t,e),St.set(r,i);return i}var Je={YYYY:(e)=>String(e.getFullYear()),YY:(e)=>U(e.getFullYear()%100),MMMM:(e,t)=>v({month:"long"},t).format(e),MMM:(e,t)=>v({month:"short"},t).format(e),MM:(e)=>U(e.getMonth()+1),M:(e)=>String(e.getMonth()+1),dddd:(e,t)=>v({weekday:"long"},t).format(e),ddd:(e,t)=>v({weekday:"short"},t).format(e),DD:(e)=>U(e.getDate()),D:(e)=>String(e.getDate()),HH:(e)=>U(e.getHours()),H:(e)=>String(e.getHours()),hh:(e)=>{let t=e.getHours()%12||12;return U(t)},h:(e)=>String(e.getHours()%12||12),A:(e,t)=>{return(v({hour:"numeric",hour12:!0},t).formatToParts(e).find((r)=>r.type==="dayPeriod")?.value??(e.getHours()<12?"AM":"PM")).toUpperCase()},a:(e,t)=>{return(v({hour:"numeric",hour12:!0},t).formatToParts(e).find((r)=>r.type==="dayPeriod")?.value??(e.getHours()<12?"AM":"PM")).toLowerCase()},mm:(e)=>U(e.getMinutes()),m:(e)=>String(e.getMinutes()),ss:(e)=>U(e.getSeconds()),s:(e)=>String(e.getSeconds()),SSS:(e)=>U(e.getMilliseconds(),3),Q:(e)=>String(Math.floor(e.getMonth()/3)+1),DoY:(e)=>{let t=new Date(e.getFullYear(),0,1),r=Math.floor((+e-+t)/86400000)+1;return String(r)}};function fi(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let e=new RegExp(Object.keys(Je).sort((t,r)=>r.length-t.length).map((t)=>t.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=e,e}function di(e,t="YYYY-MM-DD HH:mm:ss",r){let i=typeof e==="number"?new Date(e):typeof e==="string"?new Date(e):e,n=fi(),s=new Map;return t.replace(n,(a)=>{if(s.has(a))return s.get(a);let c=Je[a],f=c?c(i,r):a;return s.set(a,f),f})}Date.prototype.format=function(e,t){return di(this,e,t)};Date.registerFormat=function(e,t){Je[e]=t,globalThis.__dateTokenRegex=null};Date.format=function(e,t){return new Date().format(e,t)};var{getPrototypeOf:Yn,defineProperty:gi,getOwnPropertyNames:kn}=Object,pi=(e,t)=>{for(var r in t)gi(e,r,{get:t[r],enumerable:!0,configurable:!0,set:(i)=>t[r]=()=>i})},mi={};pi(mi,{isWhitespace:()=>Yi,isWeakSet:()=>zi,isWeakMap:()=>Wi,isUndefined:()=>Kt,isUint8Array:()=>Di,isSymbol:()=>wi,isSubclassOf:()=>on,isString:()=>Fi,isSet:()=>qi,isRegExp:()=>Li,isRecord:()=>Mi,isReadonlyArray:()=>$i,isPromise:()=>Pi,isPrimitive:()=>vi,isPositiveNumber:()=>Hi,isPlainObject:()=>we,isObjectLike:()=>ji,isObject:()=>Ie,isNumberLike:()=>_i,isNumber:()=>fe,isNullish:()=>Ji,isNull:()=>Qi,isNotNullish:()=>Ii,isNotNull:()=>de,isNonNegativeNumber:()=>Xi,isNonFunctionObject:()=>Zi,isNonEmptyString:()=>Ni,isNonEmptyObject:()=>Ai,isModule:()=>en,isMap:()=>Ti,isIterable:()=>Ci,isInteger:()=>ki,isInstanceOf:()=>an,isFunction:()=>kt,isFiniteNumber:()=>Ki,isError:()=>Ri,isEmptyString:()=>Ui,isEmpty:()=>Oi,isDefined:()=>Gi,isDate:()=>Vi,isClass:()=>sn,isBoolean:()=>yi,isBinaryLike:()=>Ei,isBigInt:()=>bi,isAsyncIterable:()=>Si,isAsyncFunction:()=>nn,isArrayBufferView:()=>Bi,isArrayBuffer:()=>xi,isArray:()=>je,IS_NOT_BROWSER:()=>rn,IS_BROWSER:()=>tn});var yi=(e)=>typeof e==="boolean",Fi=(e)=>typeof e==="string",fe=(e)=>typeof e==="number"&&!Number.isNaN(e),bi=(e)=>typeof e==="bigint",wi=(e)=>typeof e==="symbol",kt=(e)=>typeof e==="function",_i=(e)=>{let t=typeof e==="number"?e:parseFloat(String(e));return!Number.isNaN(t)&&Number.isFinite(t)},je=(e)=>Array.isArray(e),$i=(e)=>Array.isArray(e),xi=(e)=>e instanceof ArrayBuffer,Bi=(e)=>typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e),Di=(e)=>e instanceof Uint8Array,Ei=(e)=>e instanceof Uint8Array||e instanceof ArrayBuffer||typeof e==="string",Ie=(e)=>de(e)&&typeof e==="object",we=(e)=>de(e)&&Ie(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),Ai=(e)=>we(e)&&Object.keys(e).length>0,Mi=(e)=>we(e),Ci=(e)=>e!=null&&typeof e[Symbol.iterator]==="function",Si=(e)=>e!=null&&typeof e[Symbol.asyncIterator]==="function",Ti=(e)=>e instanceof Map,qi=(e)=>e instanceof Set,Wi=(e)=>e instanceof WeakMap,zi=(e)=>e instanceof WeakSet,ji=(e)=>e!==null&&(typeof e==="object"||typeof e==="function"),Zi=(e)=>e!==null&&typeof e==="object",Qi=(e)=>e===null,Kt=(e)=>e===void 0,Gi=(e)=>!Kt(e),Ji=(e)=>e==null,de=(e)=>e!==null,Ii=(e)=>e!=null,Ui=(e)=>typeof e==="string"&&e.length===0,Ni=(e)=>typeof e==="string"&&e.length>0,Yi=(e)=>typeof e==="string"&&e.length>0&&e.trim().length===0,ki=(e)=>fe(e)&&Number.isInteger(e),Ki=(e)=>fe(e)&&Number.isFinite(e),Hi=(e)=>fe(e)&&Number.isFinite(e)&&e>0,Xi=(e)=>fe(e)&&Number.isFinite(e)&&e>=0,Vi=(e)=>e instanceof Date&&!Number.isNaN(e.getTime()),Li=(e)=>e instanceof RegExp,Ri=(e)=>e instanceof Error,Pi=(e)=>!!e&&typeof e.then==="function",Oi=(e)=>e==null||typeof e==="string"&&e.length===0||Array.isArray(e)&&e.length===0||(e instanceof Map||e instanceof Set)&&e.size===0||we(e)&&Object.keys(e).length===0,vi=(e)=>e===null||typeof e!=="object"&&typeof e!=="function",en=(e)=>de(e)&&Ie(e)&&e[Symbol.toStringTag]==="Module",tn=typeof window<"u",rn=typeof window>"u",nn=(e)=>kt(e)&&de(e.constructor)&&e.constructor.name==="AsyncFunction",sn=(e)=>typeof e==="function"&&/^class\s/.test(Function.prototype.toString.call(e)),an=(e,t)=>e instanceof t,on=(e,t)=>typeof e==="function"&&typeof t==="function"&&e.prototype.isPrototypeOf(t.prototype),Ht=(e)=>{if(e.startsWith("webkit"))e="-"+e;return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},N=(e,t=2)=>String(e).padStart(t,"0"),Tt=new Map;function ee(e,t){let r=JSON.stringify({locale:t,...e}),i=Tt.get(r);if(!i)i=new Intl.DateTimeFormat(t,e),Tt.set(r,i);return i}var Ue={YYYY:(e)=>String(e.getFullYear()),YY:(e)=>N(e.getFullYear()%100),MMMM:(e,t)=>ee({month:"long"},t).format(e),MMM:(e,t)=>ee({month:"short"},t).format(e),MM:(e)=>N(e.getMonth()+1),M:(e)=>String(e.getMonth()+1),dddd:(e,t)=>ee({weekday:"long"},t).format(e),ddd:(e,t)=>ee({weekday:"short"},t).format(e),DD:(e)=>N(e.getDate()),D:(e)=>String(e.getDate()),HH:(e)=>N(e.getHours()),H:(e)=>String(e.getHours()),hh:(e)=>{let t=e.getHours()%12||12;return N(t)},h:(e)=>String(e.getHours()%12||12),A:(e,t)=>{return(ee({hour:"numeric",hour12:!0},t).formatToParts(e).find((r)=>r.type==="dayPeriod")?.value??(e.getHours()<12?"AM":"PM")).toUpperCase()},a:(e,t)=>{return(ee({hour:"numeric",hour12:!0},t).formatToParts(e).find((r)=>r.type==="dayPeriod")?.value??(e.getHours()<12?"AM":"PM")).toLowerCase()},mm:(e)=>N(e.getMinutes()),m:(e)=>String(e.getMinutes()),ss:(e)=>N(e.getSeconds()),s:(e)=>String(e.getSeconds()),SSS:(e)=>N(e.getMilliseconds(),3),Q:(e)=>String(Math.floor(e.getMonth()/3)+1),DoY:(e)=>{let t=new Date(e.getFullYear(),0,1),r=Math.floor((+e-+t)/86400000)+1;return String(r)}};function un(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let e=new RegExp(Object.keys(Ue).sort((t,r)=>r.length-t.length).map((t)=>t.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=e,e}function ln(e,t="YYYY-MM-DD HH:mm:ss",r){let i=typeof e==="number"?new Date(e):typeof e==="string"?new Date(e):e,n=un(),s=new Map;return t.replace(n,(a)=>{if(s.has(a))return s.get(a);let c=Ue[a],f=c?c(i,r):a;return s.set(a,f),f})}Date.prototype.format=function(e,t){return ln(this,e,t)};Date.registerFormat=function(e,t){Ue[e]=t,globalThis.__dateTokenRegex=null};Date.format=function(e,t){return new Date().format(e,t)};var qt={xs:"480px",sm:"480px",smd:"624px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"};class B{static default="xs";static prop=d(qt).reduce((e,[t,r],i)=>{return e[t]=`(${i==0?"max-width":"min-width"}: ${r})`,e},{});static extra={no_hover:"(pointer: coarse)",mobile:"(pointer: coarse)",print:"print",screen:"screen",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"};constructor(e,t={}){let r=B.default,i={};if(e!==void 0)ie(i,r,e,r);d(t).forEach(([n,s])=>{ie(i,n,s,r)}),L(this,i)}static get breakpoints(){return oi(ai(qt))}}var ie=(e,t,r,i)=>{if(r!==void 0)if(r instanceof B)d(r).forEach(([n,s])=>{if(i!==t)if(t!==n)if(i===n)ie(e,t,s,i);else ie(e,`${t}-${n}`,s,i);else ie(e,n,s,i);else ie(e,n,s,i)});else e[t]=r};function S(e,t){if(t)return new B(e,t);if(typeof e==="object")return new B(void 0,e);return new B(e,{})}function hn(e){if(this._prefix)return S({[this._prefix]:e});else return S({xs:e})}function C(e){return new this.constructor({prefix:e,values:this._values,data:this.data})}class w{_prefix;data;_values;constructor({prefix:e,data:t,values:r}={data:{},values:{}}){this._prefix=e,this._values=r,d(r).forEach(([i,n])=>{if(!this._values[i])this._values[i]=S({});L(this._values[i],n)}),this.data=t}get XS(){return C.call(this,"xs")}get SM(){return C.call(this,"sm")}get SMD(){return C.call(this,"smd")}get MD(){return C.call(this,"md")}get LG(){return C.call(this,"lg")}get XL(){return C.call(this,"xl")}get XXL(){return C.call(this,"xxl")}get NO_HOVER(){return C.call(this,"no_hover")}get MOBILE(){return C.call(this,"no_hover")}get PRINT(){return C.call(this,"print")}get SCREEN(){return C.call(this,"screen")}get DARK(){return C.call(this,"dark")}set _value(e){d(e).forEach(([t,r])=>{if(!this._values[t])this._values[t]=S({});L(this._values[t],hn.call(this,r))})}get _value(){return this._values}}class Q{k="";fallback;var="";value;constructor(e={},t){if(hi(e)){let[r,i]=d(e)[0];this.k=r,this.var="--"+li(r),this.value=i instanceof B?i:S(i,{}),this.fallback=t}else this.value=S({})}__(e){if(e)this.fallback=e;let t=this.fallback;if(t)return`var(${this.var}, ${u(t)})`;else return`var(${this.var})`}new(e,t){return new Q({[this.k]:e instanceof B?e:u(e)},t)}}var u=(e,t={unit:"rem"})=>{let{rem:r,second:i,quote:n,degree:s,percent:a,delimeter:c,unit:f,delimeter_arr:y}=t;if(Ut(e)||It(e)||!n&&e==="")return"";let p=E(e)?e:[e];if(!p.length)return"";return p.filter((l)=>V(l)).map((l)=>{if(E(l))return c=y||", ",u(l,{...t,delimeter:" "});if(l instanceof Q)return l.__();if(n)l=String(l);if(Jt(l))if(r)return`${l}${f?f:"rem"}`;else if(s)return`${l}deg`;else if(a)return`${l}%`;else if(i)return`${l}s`;else return String(l);if(X(l))if(l.includes("("))return l;else if(n)return`'${l}'`;else return l;return""}).filter((l)=>V(l)&&l!=="").join(c||" ")},Xt=new Set(["transitionDuration","transitionDelay","animationDelay","animationDuration"]),cn=new Set([...Xt,"zIndex","opacity","aspectRatio","order","flexShrink","flexGrow","flex","fillOpacity","lineClamp","order","scale","webkitLineClamp","animationIterationCount","animationTimingFunction","transitionTimingFunction","columnCount","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd"]),fn=new Set(["content"]),dn=new Set(["transitionProperty"]),be=(e,t,r="rem")=>{let i=u(t,{rem:!cn.has(e),second:Xt.has(e),quote:fn.has(e),delimeter:dn.has(e)?", ":" ",unit:r});return`${Ht(e)}: ${i};`};class Vt{value;__;constructor(e){if(this.value=new A,X(e))this.value.set(e,[]);else d(e).forEach(([t,r])=>{this.value.set(`${t}:${r}`,[])});this.__=(...t)=>{return this.value.forEach((r)=>{r.push(...t)}),this}}}var H=(e)=>{if(Zt(e))return H(e());if(e instanceof B)return e;if(e instanceof Q)return S(e.__(),{});return S(e,{})};function gn(e){let t={};return e.split(";").map((r)=>r.trim()).filter((r)=>r!=="").forEach((r)=>{let[i,n]=r.split(":").map((a)=>a.trim()),s=ui(i);if(!isNaN(Number(n))&&isFinite(Number(n)))t[s]=Number(n);else t[s]=n}),t}var pn=(e)=>{e.value.forEach((t,r)=>{e.value.set(r,t.map((i)=>{let n={};return d(i).forEach(([s,a])=>{if(V(a))n[s]=H(a)}),n}))})},Ze=(e,t=[])=>{let r=[];if(E(e))return Ze(e[0],r);if(e instanceof Q)return Ze(Yt(e.value),r);return r.push(String(e)),r};class Lt{base;constructor(e){this.base=e}props(e,t,r){let i=["animation","animationName"].includes(t);return d(r).forEach(([n,s])=>{if(i)r[n]=this.addPrefixToAnimation(e,s);else r[n]=s}),r}addPrefixToAnimation(e,t){if(t instanceof Q)this.saveAnim(e,t);else if(E(t))return t[0]=this.addPrefixToAnimation(e,t[0]),t;else if(X(t)&&!t.includes("("))return t.split(", ").map((r)=>{let i=r.split(" "),n=i[0],s=i.slice(1).join(" "),a=`${this.base.PREFIX}${n}`;return this.base.ANIM.init(a,new Set).add(e),`${this.base.PREFIX}${n} ${s}`.trim()}).join(", ");return t}saveAnim(e,t){Ze(t).forEach((r)=>{this.base.ANIM.init(`${this.base.PREFIX}${r}`,new Set).add(e)})}process(e,t,r,i,n){if(r instanceof Q)this.saveAnim(e,r),i.ass(t,this.props(e,r.var,H(r)));else if(t.startsWith(":")||t.startsWith(",")||t.startsWith("[")){if(t.startsWith("::before")||t.startsWith("::after")){if(E(r)){if(!r.some((s)=>("content"in s)))r.push({content:""})}}this.set(e+t,r,n)}else if(t.startsWith(" ")){let s=t.match(/^.*?\w/gm)?.[0].slice(0,-1),a=t.replaceAll(/, /gm,`, ${e}${s}`);this.set(e+a,r,n)}else if(Gt(t))this.set(e+t,r,n);else i.set(t,this.props(e,t,H(r)))}set(e,t,r){if(!Qe(t)&&!X(t))return;let i=new A;if(t instanceof Q)this.saveAnim(e,t),i.ass(t.var,this.props(e,t.var,H(t.value)));else if(t instanceof w)d(t._value).forEach(([s,a])=>{if(V(a))i.set(s,this.props(e,s,H(a)))});else if(t instanceof Vt)pn(t),i.init("supports",[]).push(t);else if(E(t))t.forEach((s)=>{this.set(e,s,r)});else if(X(t)){let s=gn(t);this.set(e,s,r)}else d(t).forEach(([s,a])=>{if(a instanceof Q){this.saveAnim(e,a),i.ass(a.var,this.props(e,a.var,H(a.value)));return}return this.process(e,s,a,i,r)});let n=r.init(e,new A);i.forEach((s,a)=>{if(a==="supports")r.init(e,new A).init(a,[])?.push(...s);else n.set(a,s)})}}class ge{PRE;EXPORT;UNIT;PS;PREFIX;ARR=new A;CID=new A;DATA=new A;ANIM=new A;IMPORTED=[];constructor(e="",t="",r,i){this.PRE=e,this.EXPORT=r,this.UNIT=i,this.PREFIX=t?t+"_":t,this.PS=new Lt(this)}get(e,t,r){let i=e.PRE+t;if(e.DATA.has(i))return i;else if(t in e)return e[t];else return e.PRE+t}set(e,t,r){return!1}get css(){return new Proxy(this,this)}load(e){return this.IMPORTED.push(e),this}__(e){Object.entries(e).forEach(([t,r])=>{this.set(this,t,r)})}}class ce extends ge{set(e,t,r){let i=e.PRE+t;return e.PS.set(i,r,e.DATA),!0}}class Ne extends ge{webkit;constructor(e="",t=!0,r){super("",e,!1,r);this.webkit=t}set(e,t,r){let i=e.PREFIX+t,n=E(r)?r:[r],s=new A;if(n.forEach((a)=>{d(a).forEach(([c,f])=>{let y=Qt(c)?`${c}%`:c;e.PS.set(y,f,s)})}),e.ANIM.init(i,new Set),e.DATA.set(`@keyframes ${i}`,s),this.webkit)e.DATA.set(`@-webkit-keyframes ${i}`,s);return!0}}class Ye extends ge{constructor(e=""){super("@",e)}set(e,t,r){return e.ARR.init(e.PRE+t,new Set).add(r),e}}class ke extends ge{constructor(e=""){super("@font-face",e);this.ARR.set(this.PRE,new Set)}set(e,t,r){let i=d({fontFamily:t,...r}).map(([n,s])=>{return be(n,s,this.UNIT)});return e.ARR.get(e.PRE)?.add(i.join(`
4
+ `)),!0}}var mn=Array.from;class Rt{shweet;shaker;include;CID=new A;css="";constructor(e,t=[],r=[]){this.shweet=e,this.shaker=t,this.include=r}load(e,t={}){let{default:r,prop:i}=B;L(i,B.extra),L(i,t);let n=new A,s={},a={},c={},f=new Set,y={},p={};ze(i).forEach((l)=>{y[l]={}});for(let l of Yt(this.shweet))if(l instanceof ce)this.ClassID(l,s,a,e),l.ANIM.forEach((D,g)=>{D.forEach(($)=>{n.init(g,new Set).add($)})});else if(l instanceof Ne)this.KF(l,c,n);else if(l instanceof Ye)this.AT(l,f);else if(l instanceof ke)this.FONT(l,f);return d(s).forEach(([l,D])=>{if(!y[l])y[l]={};d(D).forEach(([g,$])=>{let F=$.join(", ");if(!y[l][F])y[l][F]=[];y[l][F].push(g)})}),d(a).forEach(([l,D])=>{d(D).forEach(([g,$])=>{if(!p[g])p[g]={};d($).forEach(([F,x])=>{let M=`@supports(${l})`;if(!p[g][M])p[g][M]={};let K=x.join(", ");if(!p[g][M][K])p[g][M][K]=new Set;p[g][M][K].add(F)})})}),d(y).forEach(([l,D])=>{let g=[],$=[];if(d(D).forEach(([F,x])=>{if(x.some((M)=>{return M.startsWith("animation")||M.startsWith("transition")}))$.push(te(F,x));else g.push(te(F,x))}),$.length)g.unshift(...$);if(c[l])d(c[l]).forEach(([F,x])=>{g.push(te(F,x))});if(p[l])d(p[l]).forEach(([F,x])=>{let M=d(x).map(([K,ue])=>{return te(K,[...ue])});g.push(te(F,M))});if(g.length)if(f.add(`/* -------------- ${l+(l===r?" ( default )":"")} */`),l===r)f.add(g.join(`
5
+ `));else{let F=l.split("-").map((x)=>i[x]).join(" and ");if(F)f.add(`@media ${F} {
6
+ ${g.join(`
7
+ `)}
8
+ }`)}}),this.css=[...f].join(`
9
+ `),this}ClassID(e,t,r,i){let n=(s,a,c,f,y)=>{d(a).forEach(([p,l])=>{this.push(y,c,p,f,be(s,l,e.UNIT))})};e.DATA.forEach((s,a)=>{let c=Fn(a,e.PREFIX),f=this.getCID(a,e.PREFIX,i);s.forEach((y,p)=>{if(p==="supports"){if(E(y))y.forEach((l)=>{l.value.forEach((D,g)=>{if(!(g in r))r[g]={};D.forEach(($)=>{d($).forEach(([F,x])=>{n(F,x,c,f,r[g])})})})})}else n(p,y,c,f,t)})}),e.IMPORTED.forEach((s)=>{this.ClassID(s,t,r,s.EXPORT)})}KF(e,t,r){let i=(n,s,a)=>{Wt(t,n,s),t[n][s].push(a)};e.DATA.forEach((n,s)=>{n.forEach((a,c)=>{let f={};a.forEach((y,p)=>{if(p==="supports")Ge.e=["@supports not supported in @keyframes",{error:"support in keyframes"}];else d(y).forEach(([l,D])=>{if(this.shaker.length){let g=s.split(" ")[1];if(r.has(g)){if([...r.get(g)].some(($)=>{return this.getCID($,"",!1,!1)})){if(!(l in f))f[l]=[];f[l].push(be(p,D,e.UNIT))}}}else{if(!(l in f))f[l]=[];f[l].push(be(p,D,e.UNIT))}})}),d(f).forEach(([y,p])=>{i(y,s,te(c,p))})})}),e.IMPORTED.forEach((n)=>{this.KF(n,t,r)})}AT(e,t){for(let[r,i]of e.ARR)i.forEach((n)=>{let s=n.includes("(")?n:`"${n}"`;t.add(`${r} ${s.trim()};`)});e.IMPORTED.forEach((r)=>{this.AT(r,t)})}FONT(e,t){(e.ARR.get("@font-face")??new Set).forEach((r)=>{t.add(`@font-face {
10
+ ${r}
11
+ }`)}),e.IMPORTED.forEach((r)=>{this.FONT(r,t)})}getCID(e,t,r,i=!0){let n=/\.(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,s=/#(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,a=/\b([a-zA-Z][a-zA-Z0-9]*)\b(?![^{}]*})/g,c=[...new Set(qe(e,n)),...new Set(qe(e,s))];if(i&&V(r)&&r)c.forEach((f)=>{this.CID.init(f.replaceAll("-","_"),new Set).add(t+f)});return c.push(...new Set(qe(e,a))),c.some((f)=>this.shaker.includes(f)||this.include.includes(f))}push(e,t,r,i,n){if(!(this.shaker.length&&t.startsWith(".")||this.shaker.length&&t.startsWith("#"))||i)Wt(e,r,n),yn(e,r,n,t)}}var te=(e,t)=>{return`${e} {
12
+ ${t.join(`
13
+ `)}
14
+ }`},qe=(e,t)=>{return mn(e.matchAll(t),(r)=>r[1])},Wt=(e,t,r)=>{try{if(!e[t])e[t]={},e[t][r]=[];if(!e[t][r])e[t][r]=[]}catch(i){Ge.e=[`property "${t}" not found!`,{error:"@ensurePropsInitialized"}]}},yn=(e,t,r,i)=>{if(!e[t])e[t]={[r]:i.split(",").map((n)=>n.trim())};else e[t][r].push(...i.split(",").map((n)=>n.trim()))},Fn=(e,t)=>{if(t)return e.replaceAll(/\.|\#/g,(r)=>r+t);return e},zt=(e,t="")=>{if(Pt(e))return!0;return wn(e,t,{flag:"wx"}),!0},jt=(e)=>{if(Pt(e))return!0;return bn(e,{recursive:!0}),!0};class vt{static minmax(e,t){return`minmax(${u([e,t],{rem:!0,delimeter:", "})})`}static fitContent(e){return`fit-content(${u([e],{rem:!0})})`}static repeat(e,...t){return`repeat(${u([e,u([t],{rem:!0})],{delimeter:", "})})`}}class h extends vt{static attr(e,t,r){return`attr(${u([e,t,r])})`}static blur(e){return`blur(${u([e],{rem:!0})})`}static brightness(e){return`brightness(${u([e])})`}static calc(...e){return`calc(${u(e,{rem:!0})})`}static circle(e,t){return`circle(${u([e,t],{rem:!0})})`}static clamp(e,t,r){return`clamp(${u([e,t,r],{rem:!0,delimeter:", "})})`}static colorMix(e,t,r){return`color-mix(${u([e,u(je(t)?t:[t]),u(je(r)?r:[r])],{delimeter:", "})})`}static conicGradient(...e){return`conic-gradient(${u(e,{delimeter:", "})})`}static contrast(e){return`contrast(${u([e])})`}static cubicBezier(e,t,r,i){return`cubic-bezier(${u([e,t,r,i],{delimeter:", "})})`}static dropShadow(...e){return`drop-shadow(${u(e,{rem:!0})})`}static grayscale(e){return`grayscale(${u([e])})`}static hsl(e,t,r){return`hsl(${u([e,t,r])})`}static hsla(e,t,r,i){return`hsl(${u([e,t,r,i?["/",i]:i])})`}static hueRotate(e){return`hue-rotate(${u([e],{degree:!0})})`}static inset(...e){return`inset(${u(e,{rem:!0})})`}static invert(e){return`invert(${u([e])})`}static linearGradient(...e){return`linear-gradient(${u(e,{delimeter:", "})})`}static matrix(e,t,r,i,n,s){return`matrix(${u([e,t,r,i,n,s],{delimeter:", "})})`}static matrix3d(e,t,r,i){return`matrix3d(${u([e,t,r,i],{delimeter:", "})})`}static max(...e){return`max(${u(e,{rem:!0,delimeter:", "})})`}static min(...e){return`min(${u(e,{rem:!0,delimeter:", "})})`}static opacity(e){return`opacity(${u([e])})`}static path(e){return`path(${u([e],{quote:!0})})`}static clipPath(e,t){return`path(${u([e,u([t],{quote:!0})],{delimeter:", "})})`}static perspective(e){return`perspective(${u([e])})`}static polygon(...e){return`polygon(${u(e,{percent:!0,delimeter:", "})})`}static ray(...e){return`ray(${u(e,{degree:!0})})`}static radialGradient(...e){return`radial-gradient(${u(e,{delimeter_arr:", ",percent:!0,delimeter:", "})})`}static repeatingConicGradient(...e){return`repeating-conic-gradient(${u(e,{degree:!0,delimeter:", "})})`}static repeatingLinearGradient(...e){return`repeating-linear-gradient(${u(e,{degree:!0,delimeter:", "})})`}static repeatingRadialGradient(...e){return`repeating-radial-gradient(${u(e,{degree:!0,delimeter:", "})})`}static rgb(e,t,r){return`rgb(${u([e,t,r])})`}static rgba(e,t,r,i){return`rgba(${u([e,t,r,i?["/",i]:void 0],{delimeter_arr:" "})})`}static rotate(e){return`rotate(${u([e],{degree:!0})})`}static rotate3d(e,t,r,i){return`rotate3d(${u([u([e,t,r],{delimeter:", "}),i],{degree:!0,delimeter:", "})})`}static rotateX(e){return`rotateX(${u([e],{degree:!0})})`}static rotateY(e){return`rotateY(${u([e],{degree:!0})})`}static rotateZ(e){return`rotateZ(${u([e],{degree:!0})})`}static saturate(...e){return`saturate(${u(e)})`}static scale(e,t){return`scale(${u([e,t],{delimeter:", "})})`}static scale3d(e,t,r){return`scale3d(${u([e,t,r],{delimeter:", "})})`}static scaleX(e){return`scaleX(${u([e])})`}static scaleY(e){return`scaleY(${u([e])})`}static scaleZ(e){return`scaleZ(${u([e])})`}static sepia(e){return`sepia(${u([e])})`}static skew(...e){return`skew(${u(e,{degree:!0,delimeter:", "})})`}static skewX(e){return`skewX(${u([e],{degree:!0})})`}static skewY(e){return`skewY(${u([e],{degree:!0})})`}static steps(e,t){return`steps(${u([e,t],{delimeter:", "})})`}static translate(...e){return`translate(${u(e,{rem:!0,delimeter:", "})})`}static translate3d(...e){return`translate3d(${u(e,{rem:!0,delimeter:", "})})`}static translateX(e){return`translateX(${u([e],{rem:!0})})`}static translateY(e){return`translateY(${u([e],{rem:!0})})`}static translateZ(...e){return`translateZ(${u(e,{rem:!0,delimeter:", "})})`}static url(e){return`url(${u([e],{quote:!0})})`}static var(e,t=""){e="--"+Ht(e);let r=t?", "+u([t],{rem:!0,delimeter:", "}):"";return`var(${u([e],{rem:!0})}${r})`}}class er{path;name;prefix;exportMap;mediaFeatures;_imported=new Set;save;constructor({__filename:e,name:t,prefix:r,shweets:i=[],exportMap:n,webkitKeyframes:s,mediaFeature:a={},unit:c="rem"}){this.path=e,this.name=t||Bn(e),this.prefix=r??"",this.exportMap=n;let f=E(i)?i:[i];this.mediaFeatures=a,xn.call(this,this.prefix,f,s,n,c);let y=this;Object.assign(this,{get shweet(){return y}}),this.save=({dir:p,mapDir:l=[],mapName:D="index",minify:g=!0,shaker:$=[],include:F=[],name:x}={})=>{let M=V(n)?n:!!l,K=x??this.name,ue=new Rt(this,$,F).load(M,this.mediaFeatures),Nr=E(p)?p:[p],Yr=g?_n(ue.css):ue.css;Nr.forEach((I)=>{if(!I)return;let le=I.endsWith("/")?"":"/",he=I+le+K+".css";jt(I+le),zt(he),Ot(he,Yr||"/* --------------*/")});let kr=E(l)?l:[l];for(let I of kr){let le=I.endsWith("/")?"":"/",he=I+le+D+".js";jt(I+le),zt(he),$n(he,ue.CID)}return this}}get imported(){return[...this._imported]}med(e,t){if(t)return new B(e,t);if(typeof e==="object")return new B(void 0,e);return new B(e,{})}}Xr([ci,Te("design:type",Function),Te("design:paramtypes",[Object,Object]),Te("design:returntype",void 0)],er.prototype,"med",null);var _n=(e)=>{return e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,])\s*/g,"$1").replace(/\s*([>~+])\s*/g,"$1").trim()},$n=(e,t)=>{let r={};t.forEach((n)=>{d(n).forEach(([s,a])=>{if(!r[s])r[s]=[a];else r[s].push(a)})});let i=[...t.entries()].map(([n,s])=>{return`${n}="${[...s].join(" ")}"`}).sort((n,s)=>n.localeCompare(s,void 0,{numeric:!0}));Ot(e,i.length?`export const ${i.join()};`:"export {}");return};function xn(e,t,r=!1,i,n){let s={d:new ce("",e,i,n),i:new ce("#",e,i,n),c:new ce(".",e,i,n),kf:new Ne(e,r,n),at:new Ye,font:new ke};t.forEach((a)=>{this._imported.add(a.path),a._imported.forEach((c)=>{this._imported.add(c)}),ze(s).forEach((c)=>{s[c].load(a[c])})}),ze(s).forEach((a)=>{s[a]=s[a].css}),L(this,s)}function Bn(e){return e.split("/").slice(-1)[0].split(".")[0]}var m=(e)=>{let t=Number(e);if(t)return t;return e};class o extends w{prop="";propFN;valFN;string=!0;replacer="-";constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r});return new Proxy(this,{get(i,n,s){if(n in i&&typeof i[n]<"u")return i[n];else if(i.prop||i.propFN){let a=i.prop;if(i.propFN)a=i.propFN(n);let c=n;if(i.string)c=n.replaceAll("_",i.replacer);if(i.valFN)c=i.valFN(c);i._value={[a]:c}}return s},set(i,n,s){if(n in i&&typeof i[n]!=="function")return i[n]=s,!0;return!1}})}var(e,t){if(this.prop)this._value={[this.prop]:h.var(e,t)};return this}}class Ke{TH;prop;startEnd;_none;_auto;constructor(e,t,r=["flex-start","flex-end"],i="flex-start",n="auto"){this.TH=e;this.prop=t;this.startEnd=r;this._none=i;this._auto=n}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 He extends Ke{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 tr extends Ke{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 pe=(e,t,r="justifyContent",i=["flex-start","flex-end"])=>{let{direction:n,reversed:s}=e.data,a=n==="row";if(a)e._value={alignItems:t};else{if(s)i.reverse();e._value={alignItems:t}}if(a&&s)i.reverse();return new He(e,r,i,i[0])},G=(e,t,r="gap")=>{return e._value={[r]:t},e};class rr extends o{prop="gap";valFN=m}class ir extends o{constructor({prefix:e="",data:t={direction:"row",reversed:!1},values:r={}}={}){super({prefix:e,data:t,values:r})}gap(e){return G(this,e)}get gap0(){return G(this,0)}get gap1(){return G(this,1)}get gap2(){return G(this,2)}get gap3(){return G(this,3)}get gap4(){return G(this,4)}get gap5(){return G(this,5)}rowGap(e){return G(this,e,"rowGap")}colGap(e){return G(this,e,"columnGap")}get GAP(){return new rr({values:this._value})}}class nr extends o{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 sr extends o{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 Xe extends ir{constructor({prefix:e="",data:t={direction:"row",reversed:!1},values:r={}}={}){super({prefix:e,data:t,values:r});if(!e)this._value={display:"flex"}}get ALIGN(){return new nr({values:this._value})}get JUSTIFY(){return new sr({values:this._value})}get BASELINE(){return pe(this,"baseline")}get STRETCH(){return pe(this,"stretch")}get CENTER(){return pe(this,"center")}get START(){return pe(this,"flex-start")}get END(){return pe(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 He(this,"alignContent",["flex-start","flex-end"],"stretch")}get SELF(){return new tr(this,"alignSelf",["flex-start","flex-end"],"auto")}shrink(e=1){return this._value={flexShrink:e},this}grow(e=1){return this._value={flexGrow:e},this}basis(e=1){return this._value={flexBasis:e},this}flex(e,t,r){return this._value={flex:[String(e),String(t),r.toString()]},this}}class T extends o{prop="";valFN=m;constructor({prefix:e="",data:t={wh:"",first:""},values:r={}}={}){super({prefix:e,data:t,values:r});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 e=this.data.first;return this._value={[this.data.wh]:h.clamp("100v"+e,"100dv"+e,"100lv"+e)},this}px(e){return this._value={[this.data.wh]:`${e}px`},this}pr(e){return this._value={[this.data.wh]:`${e}%`},this}rm(e){return this._value={[this.data.wh]:e},this}value(e){return this._value={[this.data.wh]:e},this}var(e,t){return this._value={[this.data.wh]:h.var(e,t)},this}}class Ve extends o{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:h.clamp("100vh","100dvh","100lvh"),width:h.clamp("100vw","100dvw","100lvw")},this}px(e){return this._value={height:`${e}px`,width:`${e}px`},this}pr(e){return this._value={height:`${e}%`,width:`${e}%`},this}rm(e){return this._value={height:e,width:e},this}value(e){return this._value={height:e,width:e},this}var(e,t){return this._value={height:h.var(e,t),width:h.var(e,t)},this}}class q extends o{valFN=m;propFN=()=>{return[this.data.mp,this.data.side].join("")};get auto(){return this._value={[this.propFN()]:"auto"},this}px(e){return this._value={[this.propFN()]:`${e}px`},this}rm(e){return this._value={[this.propFN()]:e},this}value(e){return this._value={[this.propFN()]:e},this}var(e,t){return this._value={[this.propFN()]:h.var(e,t)},this}get TOP(){return new q({values:this._values,data:{mp:this.data.mp,side:"Top"}})}get RIGHT(){return new q({values:this._values,data:{mp:this.data.mp,side:"Right"}})}get LEFT(){return new q({values:this._values,data:{mp:this.data.mp,side:"Left"}})}get BOTTOM(){return new q({values:this._values,data:{mp:this.data.mp,side:"Bottom"}})}get BLOCK(){return new W({values:this._values,data:{bin:this.data.mp+"Block",side:""}})}get INLINE(){return new W({values:this._values,data:{bin:this.data.mp+"Inline",side:""}})}}class W extends o{prop="";valFN=m;constructor({prefix:e="",data:t={bin:"",side:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=[this.data.bin,this.data.side].join("")}px(e){return this._value={[this.data.bin]:`${e}px`},this}pr(e){return this._value={[this.data.bin]:`${e}%`},this}rm(e){return this._value={[this.data.bin]:e},this}get END(){return new W({values:this._values,data:{bin:this.data.bin,side:"End"}})}get START(){return new W({values:this._values,data:{bin:this.data.bin,side:"Start"}})}}var me=(e)=>typeof e==="string",Y=(e)=>Array.isArray(e);var ne=(e)=>{return Y(e)?e:[e]};function Le(e=3){let i=((Error().stack?.split(`
15
+ `)??[])[e]||"").match(/at\s+([^(]+)\s*\(/);return(i?i[1].split(".").pop()?.trim():"?")??"?"}class ar{name;constructor(e){this.name=e}log=(...e)=>{let t=Le(3);console.log(`[${this.name}.${t}]`,...e)};set i(e){let t=Le(3);console.log(`[${this.name}.${t}]`,...ne(e))}}class or{static logger=(e)=>{return new ar(me(e)?e:e.constructor.name)};static set f(e){let t=Le();console.log(`[${t}]`,...ne(e))}static set i(e){console.info(...ne(e))}static set e(e){console.error(...ne(e))}static set w(e){console.warn(...ne(e))}static set d(e){let t=new Date().toLocaleTimeString();console.log(...ne(e),` @ ${t}`)}}var se=(e)=>{if(e.startsWith("webkit"))e="-"+e;return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};var R=Object.entries;var k=(e,t=2)=>String(e).padStart(t,"0"),lr=new Map;function ae(e,t){let r=JSON.stringify({locale:t,...e}),i=lr.get(r);if(!i)i=new Intl.DateTimeFormat(t,e),lr.set(r,i);return i}var Re={YYYY:(e)=>String(e.getFullYear()),YY:(e)=>k(e.getFullYear()%100),MMMM:(e,t)=>ae({month:"long"},t).format(e),MMM:(e,t)=>ae({month:"short"},t).format(e),MM:(e)=>k(e.getMonth()+1),M:(e)=>String(e.getMonth()+1),dddd:(e,t)=>ae({weekday:"long"},t).format(e),ddd:(e,t)=>ae({weekday:"short"},t).format(e),DD:(e)=>k(e.getDate()),D:(e)=>String(e.getDate()),HH:(e)=>k(e.getHours()),H:(e)=>String(e.getHours()),hh:(e)=>{let t=e.getHours()%12||12;return k(t)},h:(e)=>String(e.getHours()%12||12),A:(e,t)=>{return(ae({hour:"numeric",hour12:!0},t).formatToParts(e).find((n)=>n.type==="dayPeriod")?.value??(e.getHours()<12?"AM":"PM")).toUpperCase()},a:(e,t)=>{return(ae({hour:"numeric",hour12:!0},t).formatToParts(e).find((n)=>n.type==="dayPeriod")?.value??(e.getHours()<12?"AM":"PM")).toLowerCase()},mm:(e)=>k(e.getMinutes()),m:(e)=>String(e.getMinutes()),ss:(e)=>k(e.getSeconds()),s:(e)=>String(e.getSeconds()),SSS:(e)=>k(e.getMilliseconds(),3),Q:(e)=>String(Math.floor(e.getMonth()/3)+1),DoY:(e)=>{let t=new Date(e.getFullYear(),0,1),r=Math.floor((+e-+t)/86400000)+1;return String(r)}};function jn(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let e=new RegExp(Object.keys(Re).sort((t,r)=>r.length-t.length).map((t)=>t.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=e,e}function Zn(e,t="YYYY-MM-DD HH:mm:ss",r){let i=typeof e==="number"?new Date(e):typeof e==="string"?new Date(e):e,n=jn(),s=new Map;return t.replace(n,(a)=>{if(s.has(a))return s.get(a);let c=Re[a],f=c?c(i,r):a;return s.set(a,f),f})}Date.prototype.format=function(e,t){return Zn(this,e,t)};Date.registerFormat=function(e,t){Re[e]=t,globalThis.__dateTokenRegex=null};Date.format=function(e,t){return new Date().format(e,t)};var hr=(e=6,t)=>{if(!t)return Math.floor(Math.random()*e);return Math.round(Math.random()*(t-e)+e)},oe=()=>{let e=Object.values(ye),t=hr(0,e.length-1);return e[t]},ye={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"]};class _e extends o{prop="";constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}var cr=(e=!1)=>{let t=Object.values(ye),r=hr(0,t.length-1),i=t[r];if(e)i.reverse();return S(i[0],{dark:i[1]})};class fr extends _e{valFN=(e)=>{let t=ye[String(e)];return S(t[1],{dark:t[0]})};get random(){return this._value={[this.prop]:cr(!0)},this}}class dr extends _e{valFN=(e)=>{let t=ye[String(e)];return S(t[0],{dark:t[1]})};get random(){return this._value={[this.prop]:cr()},this}}class b extends _e{valFN=(e)=>{return ye[e]?.[0]??""};color(e){return this._value={[this.prop]:e},this}rgba(e,t,r,i){return this._value={[this.prop]:h.rgba(e,t,r,i)},this}get random(){return this._value={[this.prop]:oe()[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 dr({values:this._value,data:{prop:this.data.prop}})}get AUTODARK(){return new fr({values:this._value,data:{prop:this.data.prop}})}get MIX(){return new gr({values:this._value,data:{prop:this.data.prop}})}}var _=(e,t,r,i)=>{return{[e]:h.colorMix(`in ${t}`,Y(r)?r:[r],Y(i)?i:[i])}};class gr extends o{constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}srgb(e,t){return this._value=_(this.prop,"srgb",e,t),this}srgb_linear(e,t){return this._value=_(this.prop,"srgb-linear",e,t),this}display_p3(e,t){return this._value=_(this.prop,"display-p3",e,t),this}a98_rgb(e,t){return this._value=_(this.prop,"a98-rgb",e,t),this}prophoto_rgb(e,t){return this._value=_(this.prop,"prophoto-rgb",e,t),this}rec2020(e,t){return this._value=_(this.prop,"rec2020",e,t),this}lab(e,t){return this._value=_(this.prop,"lab",e,t),this}oklab(e,t){return this._value=_(this.prop,"oklab",e,t),this}xyz(e,t){return this._value=_(this.prop,"xyz",e,t),this}xyz_d50(e,t){return this._value=_(this.prop,"xyz-d50",e,t),this}xyz_d65(e,t){return this._value=_(this.prop,"xyz-d65",e,t),this}hsl(e,t){return this._value=_(this.prop,"hsl",e,t),this}hwb(e,t){return this._value=_(this.prop,"hwb",e,t),this}lch(e,t){return this._value=_(this.prop,"lch",e,t),this}and(e,t){return this._value=_(this.prop,"and",e,t),this}oklch(e,t){return this._value=_(this.prop,"oklch",e,t),this}}var z=(e,t)=>{let r=["border",e.data.side,"Style"].join("");return e._value={[r]:t},e};class P extends w{constructor({prefix:e="",data:t={side:""},values:r={}}={}){super({prefix:e,data:t,values:r})}value(e){let t=["border",this.data.side].join("");return this._value={[t]:e},this}color(e){let t=["border",this.data.side,"Color"].join("");return this._value={[t]:e},this}width(e){let t=["border",this.data.side,"Width"].join("");return this._value={[t]:e},this}image(e,...t){let r=["border",this.data.side,"Image"].join("");return this._value={[r]:[e,...t.map(String)]},this}get solid(){return z(this,"solid")}get dotted(){return z(this,"dotted")}get none(){return z(this,"none")}get hidden(){return z(this,"hidden")}get dashed(){return z(this,"dashed")}get double(){return z(this,"double")}get groove(){return z(this,"groove")}get ridge(){return z(this,"ridge")}get inset(){return z(this,"inset")}get outset(){return z(this,"outset")}get TOP(){return new P({values:this._values,data:{side:"Top"}})}get RIGHT(){return new P({values:this._values,data:{side:"Right"}})}get LEFT(){return new P({values:this._values,data:{side:"Left"}})}get BOTTOM(){return new P({values:this._values,data:{side:"Bottom"}})}get b1(){let e=["border",this.data.side,""].join("");return this._value={[e]:"1px solid currentColor"},this}get bRed(){let e=["border",this.data.side,""].join("");return this._value={[e]:"1px solid red"},this}get random(){let e=["border",this.data.side,""].join("");return this._value={[e]:["1px solid",oe()[0]]},this}get bRandom(){let e=["border",this.data.side,""].join("");return this._value={[e]:["1px solid",oe()[0]]},this}get COLOR(){let e=["border",this.data.side,"Color"].join("");return new b({values:this._value,data:{prop:e}})}}function $e(e){return new Proxy(this,{get(t,r){let i=Number(r);if(i)t._value={[e]:i};return t}})}class Pe extends o{prop="borderRadius";valFN=m;v(e){this._value={borderRadius:e}}get tL(){return $e.call(this,"borderTopLeftRadius")}get tR(){return $e.call(this,"borderTopRightRadius")}get bR(){return $e.call(this,"borderBottomRightRadius")}get bL(){return $e.call(this,"borderBottomLeftRadius")}x(e){return this._value={borderTopLeftRadius:e,borderTopRightRadius:e},this}y(e){return this._value={borderBottomLeftRadius:e,borderBottomRightRadius:e},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(e){return this._value={[this.prop]:`${e}%`},this}px(e){return this._value={[this.prop]:`${e}px`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}}class Oe extends o{prop="cursor"}class ve extends o{prop="display"}class et extends o{prop="position"}class Fe extends w{xy="";constructor({prefix:e="",data:t={xy:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.xy=["overflow",t.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 Fe({prefix:this._prefix,values:this._values,data:{xy:"X"}})}get Y(){return new Fe({prefix:this._prefix,values:this._values,data:{xy:"Y"}})}}class tt extends o{prop="opacity";valFN=(e)=>{let t=Number(e);if(t&&t>1)return`${e}%`;return e};pr(e){return this._value={opacity:`${e}%`},this}}class rt extends o{prop="zIndex"}class it extends o{prop="whiteSpace"}class xe extends o{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 nt extends o{prop="verticalAlign";valFN=m;px(e){return this._value={verticalAlign:`${e}px`},this}pr(e){return this._value={verticalAlign:`${e}%`},this}}class Be extends o{get select(){return this._value={userSelect:"auto"},this}get none(){return this._value={userSelect:"none"},this}}class De extends o{get auto(){return this._value={pointerEvents:"auto"},this}get none(){return this._value={pointerEvents:"none"},this}}class st extends o{prop="lineHeight";valFN=m}class at extends o{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(e,t){return this._value={overscrollBehavior:h.var(e,t)},this}}var Qn={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 ot extends o{prop="transitionProperty";properties=new Set;valFN=(e)=>{return Qn[e].forEach((r)=>{if(r==="none")this.properties.clear();else this.properties.add(r)}),[...this.properties]};property(...e){return e.forEach((t)=>{this.properties.add(t)}),this._value={transitionProperty:[...this.properties]},this}}class pr extends o{propFN=()=>{return this.data.prop};cubicBezier(e,t,r,i){return this._value={[this.propFN()]:h.cubicBezier(e,t,r,i)},this}steps(e,t){return this._value={[this.propFN()]:h.steps(e,t)},this}}class ut extends o{valFN=(e)=>{return`${e}s`};propFN=()=>{return this.data.prop}}class Ee extends o{prop;constructor({prefix:e="",data:t={isAnim:!1},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.isAnim?"animationDuration":"transitionDuration"}valFN=(e)=>{return`${e}s`};propFN=()=>{return this.prop};get TIMING(){return new pr({data:{prop:this.data.isAnim?"animationTimingFunction":"transitionTimingFunction"},values:this._values})}get DELAY(){return new ut({data:{prop:this.data.isAnim?"animationDelay":"transitionDelay"},values:this._values})}get DURATION(){return new ut({data:{prop:this.data.isAnim?"animationDuration":"transitionDuration",values:this._values}})}get none(){let e=this.data.isAnim?"animation":"transition";return this._value={[e]:"none"},this}value(e){let t=this.data.isAnim?"animation":"transition";return this._value={[t]:e},this}var(e,t){let r=this.data.isAnim?"animation":"transition";return this._value={[r]:h.var(e,t)},this}}class lt extends Ee{get PROPERTY(){return new ot({values:this._values})}property(...e){return new ot({values:this._values}).property(...e)}}class mr extends w{constructor({prefix:e="",data:t={kf:{}},values:r={}}){super({prefix:e,data:t,values:r})}get bounce(){return this._value={animation:["bounce","1s","infinite"]},this.data.kf.bounce={"10%, 100%":{transform:h.translateY("0%"),animationTimingFunction:h.cubicBezier(0.8,0,1,1)},"50%":{transform:h.translateY("20%"),animationTimingFunction:h.cubicBezier(0,0,0.2,1)}},this}get ping(){return this._value={animation:["ping","1s",h.cubicBezier(0,0,0.2,1),"infinite"]},this.data.kf.ping={"100%, 75%":{transform:h.scale(1.5),opacity:0}},this}get pulse(){return this._value={animation:["pulse","1s",h.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:h.rotate(360)}},this}}class yr extends o{prop="animationDirection"}class Fr extends o{prop="animationFillMode"}class br extends o{prop="animationIterationCount";get infinite(){return this._value={[this.prop]:"infinite"},this}}class ht extends w{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}animation(e){return this._value={animation:e},this}name(e){return this._value={animationName:e},this}duration(e){return this._value={animationDuration:e},this}get paused(){return this._value={animationPlayState:"paused"},this}get running(){return this._value={animationPlayState:"running"},this}}class Ae extends Ee{SET(e){return new mr({data:{kf:e}})}name(e){return new ht({values:this._values}).name(e)}animation(e){return new ht({values:this._values}).animation(e)}get DIRECTION(){return new yr({values:this._values})}get FILL(){return new Fr({values:this._values})}get ITERATION(){return new br({values:this._values})}}class wr extends o{prop="backgroundAttachment"}class _r extends o{prop="backgroundBlendMode"}class ct extends o{valFN=(e)=>{if(this.prop==="backgroundClip"&&e==="text")this._value={webkitBackgroundClip:e};return e};constructor({prefix:e="",data:t={name:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.name}}class $r extends o{prop="backgroundSize";valFN=m;get auto(){let e=[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(e){return this._value={[this.prop]:`${e}px`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}}class xr extends o{prop="backgroundPosition";replacer=" ";value(e){return this._value={[this.prop]:e},this}XY(e,t){return this._value={[this.prop]:[e,t]},this}}class Br extends o{prop="backgroundImage";url(e){return this._value={[this.prop]:h.url(e)},this}conic(...e){return this._value={[this.prop]:h.conicGradient(...e)},this}repeatingConic(...e){return this._value={[this.prop]:h.repeatingConicGradient(...e)},this}linear(...e){return this._value={[this.prop]:h.linearGradient(...e)},this}repeatingLinear(...e){return this._value={[this.prop]:h.repeatingLinearGradient(...e)},this}radial(...e){return this._value={[this.prop]:h.radialGradient(...e)},this}repeatingRadial(...e){return this._value={[this.prop]:h.repeatingRadialGradient(...e)},this}get none(){return this._value={[this.prop]:"none"},this}value(e){return this._value={[this.prop]:e},this}var(e,t){return this._value={[this.prop]:h.var(e,t)},this}}class ft{get ATTACH(){return new wr}get BLEND(){return new _r}get CLIP(){return new ct({data:{name:"backgroundClip"}})}get ORIGIN(){return new ct({data:{name:"backgroundOrigin"}})}get COLOR(){return new b({data:{prop:"backgroundColor"}})}get SIZE(){return new $r}get IMAGE(){return new Br}get POSITION(){return new xr}get random(){return new b({data:{prop:"backgroundColor"}}).random}color(e){return new b({data:{prop:"backgroundColor"}}).color(e)}}class Dr extends o{prop="textAlign"}var Gn=["none","underline","overline","line_through"];class Er extends o{propFN=(e)=>{if(Gn.includes(e))return"textDecorationLine";return"textDecorationStyle"};get COLOR(){return new b({values:this._value,data:{prop:"textDecorationColor"}})}thickness(e){return this._value={textDecorationThickness:e},this}get auto(){return this._value={textDecorationThickness:"auto"},this}get font(){return this._value={textDecorationThickness:"from-font"},this}}var Jn=["over","under","left","right"];class Ar extends o{prop="textEmphasis";propFN=(e)=>{if(Jn.includes(e))return"textEmphasisPosition";return"textEmphasisStyle"};char(e){return this._value={textEmphasisStyle:`"${e}"`},this}get COLOR(){return new b({values:this._value,data:{prop:"textEmphasisColor"}})}}class Mr extends o{prop="textIndent";valFN=m}class Cr extends o{prop="textJustify"}class Sr extends o{prop="textOrientation"}var In=["auto","under","from_font","left","right"];class Tr extends o{propFN=(e)=>{if(In.includes(e))return"textUnderlinePosition";return"textUnderlineOffset"};valFN=m;get autoOffset(){return this._value={textUnderlineOffset:"auto"},this}}class dt extends o{get ALIGN(){return new Dr}get DECOR(){return new Er}get EMPHASIS(){return new Ar}get INDENT(){return new Mr}get JUSTIFY(){return new Cr}get ORIENTATION(){return new Sr}get UNDERLINE(){return new Tr}get clip(){return this._value={textOverflow:"clip"},this}get ellipsis(){return this._value={textOverflow:"ellipsis"},this}overflow(e){return this._value={textOverflow:`"${e}"`},this}decor(e){return this._value={textDecoration:e},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 b({values:this._value,data:{prop:"color"}})}}var j=(e,t)=>{return e._value={outlineStyle:t},e};class gt extends w{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}color(e){return this._value={outlineColor:e},this}width(e){return this._value={outlineWidth:e},this}get solid(){return j(this,"solid")}get dotted(){return j(this,"dotted")}get none(){return j(this,"none")}get hidden(){return j(this,"hidden")}get dashed(){return j(this,"dashed")}get double(){return j(this,"double")}get groove(){return j(this,"groove")}get ridge(){return j(this,"ridge")}get inset(){return j(this,"inset")}get outset(){return j(this,"outset")}get b1(){return this._value={outline:"1px solid currentColor"},this}get bRed(){return this._value={outline:"1px solid red"},this}get bRandom(){return this._value={outline:["1px solid",oe()[0]]},this}get COLOR(){return new b({values:this._value,data:{prop:"outlineColor"}})}off(e){return O(this,e)}get off0(){return O(this,0)}get off1(){return O(this,1)}get off2(){return O(this,2)}get off3(){return O(this,3)}get off4(){return O(this,4)}get off5(){return O(this,5)}}var O=(e,t)=>{return e._value={outlineOffset:t},e};var Z=(e,t)=>{return e._value={columnRuleStyle:t},e};class qr extends w{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}color(e){return this._value={columnRuleColor:e},this}width(e){return this._value={columnRuleWidth:e},this}get solid(){return Z(this,"solid")}get dotted(){return Z(this,"dotted")}get none(){return Z(this,"none")}get hidden(){return Z(this,"hidden")}get dashed(){return Z(this,"dashed")}get double(){return Z(this,"double")}get groove(){return Z(this,"groove")}get ridge(){return Z(this,"ridge")}get inset(){return Z(this,"inset")}get outset(){return Z(this,"outset")}get COLOR(){return new b({values:this._value,data:{prop:"columnRuleColor"}})}}class pt extends o{constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}class mt extends w{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}width(e){return this._value={columnRuleWidth:e},this}get COUNT(){return new pt({values:this._value,data:{prop:"columnCount"}})}count(e){return this._value={columnCount:e},this}get GAP(){return new pt({values:this._value,data:{prop:"columnGap"}})}gap(e){return this._value={columnGap:e},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(e){return this._value={columnRule:e},this}get RULE(){return new qr({values:this._value})}}class Me extends o{origin(...e){return this._value={transformOrigin:e},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(e){let t=[];if(Object.entries(e).forEach(([r,i])=>{if(r in h){let n=h[r];t.push(n(i))}}),t.length)this._value={transform:t};return this}var(e,t){return this._value={transform:h.var(e,t)},this}}class yt extends o{prop="perspective";valFN=m;get none(){return this._value={perspective:"none"},this}x(e){return this._value={perspectiveOrigin:e},this}y(e){return this._value={perspectiveOrigin:e},this}}var Un=["break_all","keep_all"];class Ft extends o{propFN=(e)=>{if(Un.includes(e))return"wordBreak";return"wordSpacing"};valFN=m;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 bt extends o{prop="listStyleType";image(e){return this._value={listStyleImage:e},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 Wr extends o{prop="fontSize";valFN=m;px(e){return this._value={[this.prop]:`${e}px`},this}pr(e){return this._value={[this.prop]:`${e}%`},this}rm(e){return this._value={[this.prop]:e},this}value(e){return this._value={[this.prop]:e},this}var(e,t){return this._value={[this.prop]:h.var(e,t)},this}}class wt extends o{font(e){return this._value={font:e},this}var(e,t){return this._value={font:h.var(e,t)},this}stretch(e){return this._value={fontStretch:e},this}family(e){return this._value={fontFamily:e},this}sizeAdjust(e){return this._value={fontSizeAdjust:e},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(e){return this._value={fontVariantCaps:e},this}weight(e){return this._value={fontWeight:e},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 Wr({values:this._value})}}var Ce=(e)=>{let{x:t,y:r,blur:i,spread:n,color:s,inset:a}=e;return u([t,r,i,n,s,a?"inset":void 0],{rem:!0})};class _t extends o{shadows=new Set;value(e){return this.shadows.add(u(e,{rem:!0})),this._value={boxShadow:[...this.shadows].join(", ")},this}set(e){let t=Ce(e);return this.shadows.add(t),this._value={boxShadow:[...this.shadows].join(", ")},this}get none(){return this._value={boxShadow:"none"},this}var(e,t){return this._value={boxShadow:h.var(e,t)},this}}class $t extends o{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 xt extends o{get MARGIN(){return new q({values:this._value,data:{mp:"scrollMargin",side:""}})}get PADDING(){return new q({values:this._value,data:{mp:"scrollPadding",side:""}})}get SNAP(){return new zr({values:this._value,data:{mp:"scrollPadding",side:""}})}get auto(){return this._value={scrollBehavior:"auto"},this}get smooth(){return this._value={scrollBehavior:"smooth"},this}var(e,t){return this._value={scrollBehavior:h.var(e,t)},this}}class zr extends o{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(e){return this._value={scrollSnapAlign:e},this}type(e){return this._value={scrollSnapAlign:e},this}}class Dt extends o{prop="";constructor({prefix:e="",data:t={aljust:"justifyContent",_auto:"auto"},values:r={}}={}){super({prefix:e,data:t,values:r});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 Bt extends Dt{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 e=se(this.data.aljust).split("-")[0];return new Et({values:this._value,data:{aljust:`${e}Self`,_auto:"auto"}})}}class Et extends Dt{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 jr extends o{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(...e){return this._value={gridTemplateAreas:u(e.map((t)=>u(t.map((r)=>r?r:"."))),{quote:!0})},this}col(...e){return this._value={gridTemplateColumns:e},this}row(...e){return this._value={gridTemplateRows:e},this}}class Zr extends o{prop="gridTemplate";col(...e){return this._value={gridAutoColumns:e},this}row(...e){return this._value={gridAutoRows:e},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 J=(e,t,r="gap")=>{return e._value={[r]:t},e};class Qr extends o{prop="gap";valFN=m}class Gr extends o{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r})}gap(e){return J(this,e)}get gap0(){return J(this,0)}get gap1(){return J(this,1)}get gap2(){return J(this,2)}get gap3(){return J(this,3)}get gap4(){return J(this,4)}get gap5(){return J(this,5)}rowGap(e){return J(this,e,"rowGap")}colGap(e){return J(this,e,"columnGap")}get GAP(){return new Qr({values:this._value})}}class At extends Gr{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r});if(!e)this._value={display:"grid"}}get ALIGN(){return new Bt({values:this._value,data:{aljust:"alignContent",_auto:"flex-start"}})}get JUSTIFY(){return new Bt({values:this._value})}get TEMPLATE(){return new jr({values:this._value})}get AUTO(){return new Zr({values:this._value})}get SELF(){return new Et({values:this._value,data:{aljust:"placeSelf",_auto:"auto"}})}grid(e){return this._value={grid:e},this}template(e,t){let r=u(e,{rem:!0}),i=u(t,{rem:!0});return this._value={gridArea:i?r+" / "+i:r},this}area(e){let t="";if(me(e))t=e;else{let{rowS:r,rowE:i,colS:n,colE:s}=e;t=u([r,n,i,s],{delimeter:" / "})}return this._value={gridArea:t},this}col(e,t){return this._value={gridColumn:u([e,"/",t])},this}colStart(e){return this._value={gridColumnStart:e},this}colEnd(e){return this._value={gridColumnStart:e},this}row(e,t){return this._value={gridRow:u([e,"/",t])},this}rowStart(e){return this._value={gridRow:e},this}rowEnd(e){return this._value={gridRow:e},this}get autoColumn(){return this._value={gridColumn:"auto / auto"},this}}class Mt extends o{filters=new Set;prop="filter";get none(){return this._value={[this.prop]:"none"},this}filter(e={}){return R(e).forEach(([t,r])=>{if(t==="dropShadow"){let i=Ce(r);this.filters.add(h.dropShadow(i))}else if(t==="url")this.filters.add(h.url(r));else if(t==="blur")this.filters.add(h.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(h.hueRotate(r));else{let i=h[t];if(i)this.filters.add(i(`${r}%`))}}),this._value={[this.prop]:[...this.filters]},this}}class Ct extends o{filters=new Set;get none(){return this._value={backdropFilter:"none",webkitBackdropFilter:"none"},this}filter(e={}){return R(e).forEach(([t,r])=>{if(t==="dropShadow"){let i=Ce(r);this.filters.add(h.dropShadow(i))}else if(t==="url")this.filters.add(h.url(r));else if(t==="blur")this.filters.add(h.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(h.hueRotate(r));else{let i=h[t];if(i)this.filters.add(i(`${r}%`))}}),this._value={backdropFilter:[...this.filters],webkitBackdropFilter:[...this.filters]},this}}class Se{VARS(e){return Object.entries(e).reduce((t,[r,i])=>{return t[`--${se(r)}`]=i,t},{})}get VAR(){return new Proxy(this,{get(e,t,r){let i=e[t];if(i)return i;return h.var(t)}})}optVAR(e){return new Proxy(this,{get(t,r,i){let n=t[r];if(n)return n;return h.var(r,e)}})}}class Jr{static VARS(e){return new Se().VARS(e)}static optVAR(e){return new Se().optVAR(e)}static get VAR(){return new Se().VAR}static get visible(){return new xe().visible}static get hidden(){return new xe().hidden}static get select(){return new Be().select}static get noSelect(){return new Be().none}static get pointer(){return new De().auto}static get noPointer(){return new De().none}}class Ir extends Jr{static get TRANSITION(){return new lt}static get ANIMATION(){return new Ae({data:{isAnim:!0}})}static animation(e){return new Ae({data:{isAnim:!0}}).animation(e)}}class Ur extends Ir{static get BG(){return new ft}static get COLOR(){return new b({data:{prop:"color"}})}static get TEXT(){return new dt}static get FONT(){return new wt}static get FILTER(){return new Mt}static get BACKDROP(){return new Ct}static get VALIGN(){return new nt}static get WORD(){return new Ft}static get CURSOR(){return new Oe}static get DISPLAY(){return new ve}static get POSITION(){return new et}static get RADIUS(){return new Pe}static get BORDER(){return new P}static get OUTLINE(){return new gt}static get COLUMN(){return new mt}static get OVERFLOW(){return new Fe}static get OPACITY(){return new tt}static get ZIndex(){return new rt}static get LINE(){return new st}static get WHITESPACE(){return new it}}class Nn extends Ur{static get FLEX(){return new Xe}static get GRID(){return new At}static get HW(){return new Ve}static get WIDTH(){return new T({data:{wh:"width",first:""}})}static get HEIGHT(){return new T({data:{wh:"height",first:""}})}static get TOP(){return new T({data:{wh:"top",first:""}})}static get LEFT(){return new T({data:{wh:"left",first:""}})}static get RIGHT(){return new T({data:{wh:"right",first:""}})}static get BOTTOM(){return new T({data:{wh:"bottom",first:""}})}static get MAX(){return{get WIDTH(){return new T({data:{wh:"maxWidth",first:"w"}})},get HEIGHT(){return new T({data:{wh:"maxHeight",first:"h"}})},get BLOCK(){return new W({data:{bin:"maxBlockSize",side:""}})},get INLINE(){return new W({data:{bin:"maxInlineSize",side:""}})}}}static get MIN(){return{get WIDTH(){return new T({data:{wh:"minWidth",first:"w"}})},get HEIGHT(){return new T({data:{wh:"minHeight",first:"h"}})},get BLOCK(){return new W({data:{bin:"minBlockSize",side:""}})},get INLINE(){return new W({data:{bin:"minInlineSize",side:""}})}}}static get MARGIN(){return new q({data:{mp:"margin",side:""}})}static get PADDING(){return new q({data:{mp:"padding",side:""}})}static get TRANSFORM(){return new Me}static get PERSPECTIVE(){return new yt}static transform(e){return new Me().transform(e)}static get LIST(){return new bt}static get BOX(){return new $t}static get SHADOW(){return new _t}static get SCROLL(){return new xt}static get OVERSCROLL(){return new at}}export{or as log,Nn as $};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shweet/qt",
3
- "version": "0.0.16",
3
+ "version": "0.0.19",
4
4
  "description": "Shweet utility",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,8 @@
31
31
  },
32
32
  "homepage": "https://github.com/MARKjotep/-sweetss#readme",
33
33
  "devDependencies": {
34
- "shweet": "latest"
34
+ "shweet": "latest",
35
+ "@coff-r/oven": "link:@coff-r/oven"
35
36
  },
36
37
  "publishConfig": {
37
38
  "access": "public"