shweet 0.0.33 → 0.0.34

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
@@ -274,6 +274,7 @@ interface mtype {
274
274
  mobile?: CSSValue;
275
275
  print?: CSSValue;
276
276
  dark?: CSSValue;
277
+ light?: CSSValue;
277
278
  screen?: CSSValue;
278
279
  }
279
280
  declare class media {
@@ -284,12 +285,12 @@ declare class media {
284
285
  constructor(defValue?: CSSValue, g?: obj<any>);
285
286
  static get breakpoints(): any;
286
287
  }
287
- declare function med(g: mtype & {
288
+ type exmed$1 = {
288
289
  [k: string]: undefined | CSSValue;
289
- }): media;
290
- declare function med(defValue: CSSValue, g: mtype & {
291
- [k: string]: undefined | CSSValue;
292
- }): media;
290
+ };
291
+ declare function med(g: mtype & exmed$1): media;
292
+ declare function med(defValue: CSSValue): media;
293
+ declare function med(defValue: CSSValue, g: mtype & exmed$1): media;
293
294
  interface MedCFG<Q = Record<string, any>> {
294
295
  prefix?: string;
295
296
  data: Q;
@@ -301,7 +302,7 @@ declare class Medyas<T extends Medyas<T>, Q = Record<string, any>> {
301
302
  data: Q;
302
303
  protected _values: Record<string, media>;
303
304
  constructor({ prefix, data, values }?: MedCFG);
304
- get XS(): Medyas<T, Q>;
305
+ get XS(): T;
305
306
  get SM(): T;
306
307
  get SMD(): T;
307
308
  get MD(): T;
@@ -627,6 +628,13 @@ declare class ps {
627
628
  static where(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
628
629
  [x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support | undefined)[];
629
630
  };
631
+ /**
632
+ * i.e outer-spin-button
633
+ * @param xx string
634
+ */
635
+ static webkit(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
636
+ [x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support | undefined)[];
637
+ };
630
638
  static and(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
631
639
  [x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support | undefined)[];
632
640
  };
@@ -796,8 +804,9 @@ interface saveCSS {
796
804
  shaker?: string[];
797
805
  include?: string[];
798
806
  includeAnimation?: string[];
807
+ name?: string;
799
808
  }
800
- interface shweetCFG {
809
+ interface shweetCFG<T extends exmed> {
801
810
  __filename: string;
802
811
  name?: string;
803
812
  prefix?: string;
@@ -805,16 +814,21 @@ interface shweetCFG {
805
814
  exportMap?: boolean;
806
815
  webkitKeyframes?: boolean;
807
816
  unit?: "rem" | "em" | "px" | "pt" | "pc";
817
+ mediaFeature?: T;
808
818
  }
809
819
  type __CSS = CSS & {
810
820
  __: (a: CSS) => void;
811
821
  };
812
- declare class Shweet {
822
+ type exmed = {
823
+ [k: string]: undefined | CSSValue;
824
+ };
825
+ declare class Shweet<T extends exmed = exmed> {
813
826
  [k: string]: any;
814
827
  path: string;
815
828
  name: string | undefined;
816
829
  prefix: string;
817
830
  exportMap?: boolean | undefined;
831
+ private mediaFeatures;
818
832
  protected _imported: Set<string>;
819
833
  d: __CSS;
820
834
  i: __CSS;
@@ -829,8 +843,11 @@ declare class Shweet {
829
843
  font: FontFace["css"];
830
844
  shweet: this;
831
845
  save: (x?: saveCSS) => this;
832
- constructor({ __filename, name, prefix, shweets, exportMap, webkitKeyframes, unit, }: shweetCFG);
846
+ constructor({ __filename, name, prefix, shweets, exportMap, webkitKeyframes, mediaFeature, unit, }: shweetCFG<T>);
833
847
  get imported(): string[];
848
+ med(g: mtype & T): media;
849
+ med(defValue: CSSValue): media;
850
+ med(defValue: CSSValue, g: mtype & T): media;
834
851
  }
835
852
  declare function fileName(path: string): string | undefined;
836
853
 
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  // @bun
2
- var zn=Object.defineProperty;var mn=(t,n)=>{for(var i in n)zn(t,i,{get:n[i],enumerable:!0,configurable:!0,set:(r)=>n[i]=()=>r})};var Nt={};mn(Nt,{isWindow:()=>ii,isUndefined:()=>ct,isStr:()=>T,isPromise:()=>kn,isPlainObject:()=>xn,isObject:()=>vn,isObj:()=>Q,isNumber:()=>x,isNum:()=>lt,isNull:()=>G,isNotWindow:()=>Ot,isNotNull:()=>ni,isModule:()=>pn,isInt:()=>Bt,isFN:()=>gt,isDefined:()=>Y,isClassOrId:()=>yt,isBool:()=>qt,isAsync:()=>dn,isArraybuff:()=>ti,isArr:()=>y});var gt=(t)=>typeof t==="function",dn=(t)=>t.constructor.name==="AsyncFunction",kn=(t)=>!!t&&typeof t.then==="function",x=(t)=>{return!isNaN(parseFloat(t))&&isFinite(t)},vn=(t)=>{return t&&typeof t==="object"&&!Array.isArray(t)},xn=(t)=>{return typeof t==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype&&!Array.isArray(t)},pn=(t)=>{return t&&typeof t==="object"&&t[Symbol.toStringTag]==="Module"},ti=(t)=>{return t instanceof Uint8Array||t instanceof ArrayBuffer||typeof t==="string"},yt=(t)=>{return t.startsWith(".")||t.startsWith("#")},qt=(t)=>typeof t==="boolean",T=(t)=>typeof t==="string",y=(t)=>Array.isArray(t),Q=(t)=>typeof t==="object",lt=(t)=>typeof t==="number",G=(t)=>t===null,ni=(t)=>t===null,ct=(t)=>typeof t>"u",Y=(t)=>typeof t<"u",Bt=(t)=>{return Number.isInteger(Number(t))},ii=typeof window<"u",Ot=typeof window>"u";var j=(t)=>{return y(t)?t:[t]};function Ct(t=3){let r=((Error().stack?.split(`
3
- `)??[])[t]||"").match(/at\s+([^(]+)\s*\(/);return(r?r[1].split(".").pop()?.trim():"?")??"?"}class Qt{name;constructor(t){this.name=t}log=(...t)=>{let n=Ct(3);console.log(`[${this.name}.${n}]`,...t)};set i(t){let n=Ct(3);console.log(`[${this.name}.${n}]`,...j(t))}}class p{static logger=(t)=>{return new Qt(T(t)?t:t.constructor.name)};static set f(t){let n=Ct();console.log(`[${n}]`,...j(t))}static set i(t){console.info(...j(t))}static set e(t){console.error(...j(t))}static set w(t){console.warn(...j(t))}static set d(t){let n=new Date().toLocaleTimeString();console.log(...j(t),` @ ${n}`)}}var ri=(t)=>Array.from({length:t},(n,i)=>i),Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Gt="abcdefghijklmnopqrstuvwxyz";var I=(t)=>JSON.stringify(t),Et=(t)=>{return JSON.parse(t)},jt=(t)=>{return t.replace(/-([a-z])/g,(n,i)=>i.toUpperCase())},st=(t)=>{if(t.startsWith("webkit"))t="-"+t;return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},ut=(t)=>{let n=Lt+Gt,i=ri(10).join("");return Array.from({length:t},(r,o)=>n+(o?i:"")).reduce((r,o)=>{return r+=o.charAt(Math.floor(Math.random()*o.length))},"")},oi=(t=6,n)=>{if(!n)return Math.floor(Math.random()*t);return Math.round(Math.random()*(n-t)+t)},It=()=>{let t=[...Lt,...Gt],n=oi(0,t.length);return t[n]};class c extends Map{obj(t){t&&b(t).forEach(([n,i])=>this.set(n,i))}map(t){t.forEach((n,i)=>{if(n instanceof c)this.set(i,n);else if(y(n)){if(this.lacks(i))this.set(i,[]);this.get(i).push(...n)}else if(Q(n))this.ass(i,n);else this.set(i,n)})}ass(t,n){if(!this.has(t))this.set(t,{});D(this.get(t),n)}lacks(t){return!this.has(t)}init(t,n){return this.has(t)?this.get(t):this.set(t,n).get(t)}}var{values:U,keys:H,entries:b}=Object;var D=Object.assign,Zt=(t,n)=>Object.hasOwn(t,n),Z=(t)=>{return Object.keys(t).length};var $t=(t,n)=>{let i={added:{},removed:{},modified:{}},r=H(t),o=H(n);for(let f of o){let s=t[f],e=n[f];if(!(f in t))i.added[f]=e;else if(y(s)&&y(e)){if(I(s)!==I(e))i.modified[f]={old:s,new:e}}else if(Q(s)&&Q(e)&&!G(s)&&!G(e)){let a=$t(s,e);if(Z(a.added)||Z(a.removed)||Z(a.modified))i.modified[f]={old:s,new:e}}else if(s!==e)i.modified[f]={old:s,new:e}}for(let f of r)if(!(f in n))i.removed[f]=t[f];return i};var At=(t)=>{return U(t).some((n)=>{return Z(n)})};var q=(t,n=2)=>String(t).padStart(n,"0"),Xt=new Map;function A(t,n){let i=JSON.stringify({locale:n,...t}),r=Xt.get(i);if(!r)r=new Intl.DateTimeFormat(n,t),Xt.set(i,r);return r}var Tt={YYYY:(t)=>String(t.getFullYear()),YY:(t)=>q(t.getFullYear()%100),MMMM:(t,n)=>A({month:"long"},n).format(t),MMM:(t,n)=>A({month:"short"},n).format(t),MM:(t)=>q(t.getMonth()+1),M:(t)=>String(t.getMonth()+1),dddd:(t,n)=>A({weekday:"long"},n).format(t),ddd:(t,n)=>A({weekday:"short"},n).format(t),DD:(t)=>q(t.getDate()),D:(t)=>String(t.getDate()),HH:(t)=>q(t.getHours()),H:(t)=>String(t.getHours()),hh:(t)=>{let n=t.getHours()%12||12;return q(n)},h:(t)=>String(t.getHours()%12||12),A:(t,n)=>{return(A({hour:"numeric",hour12:!0},n).formatToParts(t).find((o)=>o.type==="dayPeriod")?.value??(t.getHours()<12?"AM":"PM")).toUpperCase()},a:(t,n)=>{return(A({hour:"numeric",hour12:!0},n).formatToParts(t).find((o)=>o.type==="dayPeriod")?.value??(t.getHours()<12?"AM":"PM")).toLowerCase()},mm:(t)=>q(t.getMinutes()),m:(t)=>String(t.getMinutes()),ss:(t)=>q(t.getSeconds()),s:(t)=>String(t.getSeconds()),SSS:(t)=>q(t.getMilliseconds(),3),Q:(t)=>String(Math.floor(t.getMonth()/3)+1),DoY:(t)=>{let n=new Date(t.getFullYear(),0,1),i=Math.floor((+t-+n)/86400000)+1;return String(i)}};function si(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let t=new RegExp(Object.keys(Tt).sort((n,i)=>i.length-n.length).map((n)=>n.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=t,t}function ei(t,n="YYYY-MM-DD HH:mm:ss",i){let r=typeof t==="number"?new Date(t):typeof t==="string"?new Date(t):t,o=si(),f=new Map;return n.replace(o,(s)=>{if(f.has(s))return f.get(s);let e=Tt[s],a=e?e(r,i):s;return f.set(s,a),a})}Date.prototype.format=function(t,n){return ei(this,t,n)};Date.registerFormat=function(t,n){Tt[t]=n,globalThis.__dateTokenRegex=null};Date.format=function(t,n){return new Date().format(t,n)};class Dt{static rand(t=6,n){if(n)return Math.floor(Math.random()*(n-t+1)+t);return Math.floor(Math.random()*t)+1-1}static fill(t,n=null){return Array(t).fill(n)}static new({dom:t,id:n,inner:i}){let r=document.createElement(t);if(n)r.id=n;if(i)r.innerHTML=i;return r}static randFrom(t){if(Array.isArray(t)){let n=t.length,i=this.rand(0,n-1);return t[i]}else if(typeof t=="object"){let n=H(t),i=n.length,r=this.rand(0,i-1);return n[r]}}static randArray(t=[],n=1,i=!1){let r=[],o=i?new Set:null;while((i?o.size:r.length)<n){let f=t[Dt.rand(0,t.length-1)];i?o.add(f):r.push(f)}return i?[...o]:r}static randomAZ=It;static makeID=ut;static class(t,...n){let i=n.filter(Boolean);if(t?.class)i.push(...y(t.class)?t.class:[t.class]);if(i.length)t.class=i}static get O(){return{vals:U,keys:H,items:b,has:Zt,ass:D,len:(t={})=>H(t).length}}static get is(){return Nt}static get return(){return Kt}static isHREF(t,n){return t===n?!0:t.startsWith(n)&&n!=="/"?!0:!1}static sleep=(t=1000)=>new Promise((n)=>setTimeout(n,t));static get screen(){let{innerWidth:t}=window,n={xs:t<=480,sm:t>=480,smd:t>=624,md:t>=768,lg:t>=1024,xl:t>=1280,xxl:t>=1536},i=b(n).reverse();for(let r=0;r<i.length;r++){let[o,f]=i[r];if(f)return o}return}bytes(t){if(t===0)return"0 Bytes";let n=1024,i=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(t)/Math.log(n));return parseFloat((t/Math.pow(n,r)).toFixed(2))+" "+i[r]}static format(t){return new Pt(t)}static compareObjects=$t;static isObjectUdpated=At}class Kt{static arr(t){return t?y(t)?t:[t]:[]}static num(t,n=0){let i=parseFloat(t);return isNaN(i)?n:i}static str(t){return String(t)}static arr2obj(t,n=!1){return t.reduce((i,r,o)=>{if(n)i[r]=o;else i[o]=r;return i},{})}}class Pt{val;constructor(t){this.val=t}get px(){return`${this.val}px`}get rem(){return`${this.val}rem`}get pr(){return`${this.val}%`}}var{getPrototypeOf:kr,defineProperty:hi,getOwnPropertyNames:vr}=Object;var bi=(t,n)=>{for(var i in n)hi(t,i,{get:n[i],enumerable:!0,configurable:!0,set:(r)=>n[i]=()=>r})};var Vt={};bi(Vt,{isWhitespace:()=>On,isWeakSet:()=>en,isWeakMap:()=>sn,isUndefined:()=>Yt,isUint8Array:()=>pt,isSymbol:()=>mt,isSubclassOf:()=>Qn,isString:()=>wt,isSet:()=>un,isRegExp:()=>Dn,isRecord:()=>rn,isReadonlyArray:()=>kt,isPromise:()=>Fn,isPrimitive:()=>Hn,isPositiveNumber:()=>En,isPlainObject:()=>tt,isObjectLike:()=>hn,isObject:()=>et,isNumberLike:()=>dt,isNumber:()=>X,isNullish:()=>Mn,isNull:()=>an,isNotNullish:()=>yn,isNotNull:()=>P,isNonNegativeNumber:()=>$n,isNonFunctionObject:()=>bn,isNonEmptyString:()=>cn,isNonEmptyObject:()=>nn,isModule:()=>Rn,isMap:()=>gn,isIterable:()=>on,isInteger:()=>Nn,isInstanceOf:()=>Bn,isFunction:()=>Ft,isFiniteNumber:()=>Cn,isError:()=>wn,isEmptyString:()=>ln,isEmpty:()=>Yn,isDefined:()=>Sn,isDate:()=>Tn,isClass:()=>qn,isBoolean:()=>_t,isBinaryLike:()=>tn,isBigInt:()=>zt,isAsyncIterable:()=>fn,isAsyncFunction:()=>Un,isArrayBufferView:()=>xt,isArrayBuffer:()=>vt,isArray:()=>K,IS_NOT_BROWSER:()=>Jn,IS_BROWSER:()=>Wn});var _t=(t)=>typeof t==="boolean",wt=(t)=>typeof t==="string",X=(t)=>typeof t==="number"&&!Number.isNaN(t),zt=(t)=>typeof t==="bigint",mt=(t)=>typeof t==="symbol",Ft=(t)=>typeof t==="function",dt=(t)=>{let n=typeof t==="number"?t:parseFloat(String(t));return!Number.isNaN(n)&&Number.isFinite(n)},K=(t)=>Array.isArray(t),kt=(t)=>Array.isArray(t),vt=(t)=>t instanceof ArrayBuffer,xt=(t)=>typeof ArrayBuffer<"u"&&ArrayBuffer.isView(t),pt=(t)=>t instanceof Uint8Array,tn=(t)=>t instanceof Uint8Array||t instanceof ArrayBuffer||typeof t==="string",et=(t)=>P(t)&&typeof t==="object",tt=(t)=>P(t)&&et(t)&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null),nn=(t)=>tt(t)&&Object.keys(t).length>0,rn=(t)=>tt(t),on=(t)=>t!=null&&typeof t[Symbol.iterator]==="function",fn=(t)=>t!=null&&typeof t[Symbol.asyncIterator]==="function",gn=(t)=>t instanceof Map,un=(t)=>t instanceof Set,sn=(t)=>t instanceof WeakMap,en=(t)=>t instanceof WeakSet,hn=(t)=>t!==null&&(typeof t==="object"||typeof t==="function"),bn=(t)=>t!==null&&typeof t==="object",an=(t)=>t===null,Yt=(t)=>t===void 0,Sn=(t)=>!Yt(t),Mn=(t)=>t==null,P=(t)=>t!==null,yn=(t)=>t!=null,ln=(t)=>typeof t==="string"&&t.length===0,cn=(t)=>typeof t==="string"&&t.length>0,On=(t)=>typeof t==="string"&&t.length>0&&t.trim().length===0,Nn=(t)=>X(t)&&Number.isInteger(t),Cn=(t)=>X(t)&&Number.isFinite(t),En=(t)=>X(t)&&Number.isFinite(t)&&t>0,$n=(t)=>X(t)&&Number.isFinite(t)&&t>=0,Tn=(t)=>t instanceof Date&&!Number.isNaN(t.getTime()),Dn=(t)=>t instanceof RegExp,wn=(t)=>t instanceof Error,Fn=(t)=>!!t&&typeof t.then==="function",Yn=(t)=>t==null||typeof t==="string"&&t.length===0||Array.isArray(t)&&t.length===0||(t instanceof Map||t instanceof Set)&&t.size===0||tt(t)&&Object.keys(t).length===0,Hn=(t)=>t===null||typeof t!=="object"&&typeof t!=="function",Rn=(t)=>P(t)&&et(t)&&t[Symbol.toStringTag]==="Module",Wn=typeof window<"u",Jn=typeof window>"u",Un=(t)=>Ft(t)&&P(t.constructor)&&t.constructor.name==="AsyncFunction",qn=(t)=>typeof t==="function"&&/^class\s/.test(Function.prototype.toString.call(t)),Bn=(t,n)=>t instanceof n,Qn=(t,n)=>typeof t==="function"&&typeof n==="function"&&t.prototype.isPrototypeOf(n.prototype);var nt=(t)=>{if(t.startsWith("webkit"))t="-"+t;return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};var B=(t,n=2)=>String(t).padStart(n,"0"),Ln=new Map;function V(t,n){let i=JSON.stringify({locale:n,...t}),r=Ln.get(i);if(!r)r=new Intl.DateTimeFormat(n,t),Ln.set(i,r);return r}var Ht={YYYY:(t)=>String(t.getFullYear()),YY:(t)=>B(t.getFullYear()%100),MMMM:(t,n)=>V({month:"long"},n).format(t),MMM:(t,n)=>V({month:"short"},n).format(t),MM:(t)=>B(t.getMonth()+1),M:(t)=>String(t.getMonth()+1),dddd:(t,n)=>V({weekday:"long"},n).format(t),ddd:(t,n)=>V({weekday:"short"},n).format(t),DD:(t)=>B(t.getDate()),D:(t)=>String(t.getDate()),HH:(t)=>B(t.getHours()),H:(t)=>String(t.getHours()),hh:(t)=>{let n=t.getHours()%12||12;return B(n)},h:(t)=>String(t.getHours()%12||12),A:(t,n)=>{return(V({hour:"numeric",hour12:!0},n).formatToParts(t).find((i)=>i.type==="dayPeriod")?.value??(t.getHours()<12?"AM":"PM")).toUpperCase()},a:(t,n)=>{return(V({hour:"numeric",hour12:!0},n).formatToParts(t).find((i)=>i.type==="dayPeriod")?.value??(t.getHours()<12?"AM":"PM")).toLowerCase()},mm:(t)=>B(t.getMinutes()),m:(t)=>String(t.getMinutes()),ss:(t)=>B(t.getSeconds()),s:(t)=>String(t.getSeconds()),SSS:(t)=>B(t.getMilliseconds(),3),Q:(t)=>String(Math.floor(t.getMonth()/3)+1),DoY:(t)=>{let n=new Date(t.getFullYear(),0,1),i=Math.floor((+t-+n)/86400000)+1;return String(i)}};function ai(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let t=new RegExp(Object.keys(Ht).sort((n,i)=>i.length-n.length).map((n)=>n.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=t,t}function Si(t,n="YYYY-MM-DD HH:mm:ss",i){let r=typeof t==="number"?new Date(t):typeof t==="string"?new Date(t):t,o=ai(),f=new Map;return n.replace(o,(s)=>{if(f.has(s))return f.get(s);let e=Ht[s],a=e?e(r,i):s;return f.set(s,a),a})}Date.prototype.format=function(t,n){return Si(this,t,n)};Date.registerFormat=function(t,n){Ht[t]=n,globalThis.__dateTokenRegex=null};Date.format=function(t,n){return new Date().format(t,n)};var Gn={xs:"480px",sm:"480px",smd:"624px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"};class ${static default="xs";static prop=b(Gn).reduce((t,[n,i],r)=>{return t[n]=`(${r==0?"max-width":"min-width"}: ${i})`,t},{});static extra={no_hover:"(pointer: coarse)",mobile:"(pointer: coarse)",print:"print",screen:"screen",dark:"(prefers-color-scheme: dark)"};constructor(t,n={}){let i=$.default,r={};if(t!==void 0)_(r,i,t,i);b(n).forEach(([o,f])=>{_(r,o,f,i)}),D(this,r)}static get breakpoints(){return Et(I(Gn))}}var _=(t,n,i,r)=>{if(i!==void 0)if(i instanceof $)b(i).forEach(([o,f])=>{if(r!==n)if(n!==o)if(r===o)_(t,n,f,r);else _(t,`${n}-${o}`,f,r);else _(t,o,f,r);else _(t,o,f,r)});else t[n]=i};function R(t,n){if(n)return new $(t,n);return new $(void 0,t)}function Mi(t){if(this._prefix)return R({[this._prefix]:t});else return R({xs:t})}function w(t){return new this.constructor({prefix:t,values:this._values,data:this.data})}class ht{_prefix;data;_values;constructor({prefix:t,data:n,values:i}={data:{},values:{}}){this._prefix=t,this._values=i,b(i).forEach(([r,o])=>{if(!this._values[r])this._values[r]=R({});D(this._values[r],o)}),this.data=n}get XS(){return w.call(this,"xs")}get SM(){return w.call(this,"sm")}get SMD(){return w.call(this,"smd")}get MD(){return w.call(this,"md")}get LG(){return w.call(this,"lg")}get XL(){return w.call(this,"xl")}get XXL(){return w.call(this,"xxl")}get NO_HOVER(){return w.call(this,"no_hover")}get MOBILE(){return w.call(this,"no_hover")}get PRINT(){return w.call(this,"print")}get SCREEN(){return w.call(this,"screen")}get DARK(){return w.call(this,"dark")}set _value(t){b(t).forEach(([n,i])=>{if(!this._values[n])this._values[n]=R({});D(this._values[n],Mi.call(this,i))})}get _value(){return this._values}}class F{k="";fallback;var="";value;constructor(t={},n){if(Z(t)){let[i,r]=b(t)[0];this.k=i,this.var="--"+st(i),this.value=r instanceof $?r:R(r,{}),this.fallback=n}else this.value=R({})}__(t){if(t)this.fallback=t;let n=this.fallback;if(n)return`var(${this.var}, ${u(n)})`;else return`var(${this.var})`}new(t,n){return new F({[this.k]:t instanceof $?t:u(t)},n)}}var yi=(t,n)=>{return new F(t,n)},li=(t)=>{let n={};for(let i in t)n[i]=new F({[i]:t[i]});return n};var u=(t,n={unit:"rem"})=>{let{rem:i,second:r,quote:o,degree:f,percent:s,delimeter:e,unit:a,delimeter_arr:M}=n;if(ct(t)||G(t)||!o&&t==="")return"";let h=y(t)?t:[t];if(!h.length)return"";return h.filter((S)=>Y(S)).map((S)=>{if(y(S))return e=M||", ",u(S,{...n,delimeter:" "});if(S instanceof F)return S.__();if(o)S=String(S);if(lt(S))if(i)return`${S}${a?a:"rem"}`;else if(f)return`${S}deg`;else if(s)return`${S}%`;else if(r)return`${S}s`;else return String(S);if(T(S))if(S.includes("("))return S;else if(o)return`'${S}'`;else return S;return""}).filter((S)=>Y(S)&&S!=="").join(e||" ")};var jn=new Set(["transitionDuration","transitionDelay","animationDelay","animationDuration"]),ci=new Set([...jn,"zIndex","opacity","aspectRatio","order","flexShrink","flexGrow","flex","fillOpacity","lineClamp","order","scale","webkitLineClamp","animationIterationCount","animationTimingFunction","transitionTimingFunction","columnCount","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd"]),Oi=new Set(["content"]),Ni=new Set(["transitionProperty"]),z=(t,n,i="rem")=>{let r=u(n,{rem:!ci.has(t),second:jn.has(t),quote:Oi.has(t),delimeter:Ni.has(t)?", ":" ",unit:i});return`${nt(t)}: ${r};`};class bt{value;__;constructor(t){if(this.value=new c,T(t))this.value.set(t,[]);else b(t).forEach(([n,i])=>{this.value.set(`${n}:${i}`,[])});this.__=(...n)=>{return this.value.forEach((i)=>{i.push(...n)}),this}}}function Ci(t){return new bt(t).__}var m=(t)=>{if(gt(t))return m(t());if(t instanceof $)return t;if(t instanceof F)return R(t.__(),{});return R(t,{})};function Ei(t){let n={};return t.split(";").map((i)=>i.trim()).filter((i)=>i!=="").forEach((i)=>{let[r,o]=i.split(":").map((s)=>s.trim()),f=jt(r);if(!isNaN(Number(o))&&isFinite(Number(o)))n[f]=Number(o);else n[f]=o}),n}var $i=(t)=>{t.value.forEach((n,i)=>{t.value.set(i,n.map((r)=>{let o={};return b(r).forEach(([f,s])=>{if(Y(s))o[f]=m(s)}),o}))})},Rt=(t,n=[])=>{let i=[];if(y(t))return Rt(t[0],i);if(t instanceof F)return Rt(U(t.value),i);return i.push(String(t)),i};class Wt{base;constructor(t){this.base=t}props(t,n,i){let r=["animation","animationName"].includes(n);return b(i).forEach(([o,f])=>{if(r)i[o]=this.addPrefixToAnimation(t,f);else i[o]=f}),i}addPrefixToAnimation(t,n){if(n instanceof F)this.saveAnim(t,n);else if(y(n))return n[0]=this.addPrefixToAnimation(t,n[0]),n;else if(T(n)&&!n.includes("("))return n.split(", ").map((o)=>{let f=o.split(" "),s=f[0],e=f.slice(1).join(" "),a=`${this.base.PREFIX}${s}`;return this.base.ANIM.init(a,new Set).add(t),`${this.base.PREFIX}${s} ${e}`.trim()}).join(", ");return n}saveAnim(t,n){Rt(n).forEach((i)=>{this.base.ANIM.init(`${this.base.PREFIX}${i}`,new Set).add(t)})}process(t,n,i,r,o){if(i instanceof F)this.saveAnim(t,i),r.ass(n,this.props(t,i.var,m(i)));else if(n.startsWith(":")||n.startsWith(",")||n.startsWith("[")){if(n.startsWith("::before")||n.startsWith("::after")){if(y(i)){if(!i.some((s)=>("content"in s)))i.push({content:""})}}this.set(t+n,i,o)}else if(n.startsWith(" ")){let s=n.match(/^.*?\w/gm)?.[0].slice(0,-1),e=n.replaceAll(/, /gm,`, ${t}${s}`);this.set(t+e,i,o)}else if(yt(n))this.set(t+n,i,o);else r.set(n,this.props(t,n,m(i)))}set(t,n,i){if(!Q(n)&&!T(n))return;let r=new c;if(n instanceof F)this.saveAnim(t,n),r.ass(n.var,this.props(t,n.var,m(n.value)));else if(n instanceof ht)b(n._value).forEach(([f,s])=>{if(Y(s))r.set(f,this.props(t,f,m(s)))});else if(n instanceof bt)$i(n),r.init("supports",[]).push(n);else if(y(n))n.forEach((f)=>{this.set(t,f,i)});else if(T(n)){let f=Ei(n);this.set(t,f,i)}else b(n).forEach(([f,s])=>{return this.process(t,f,s,r,i)});let o=i.init(t,new c);r.forEach((f,s)=>{if(s==="supports")i.init(t,new c).init(s,[])?.push(...f);else o.set(s,f)})}}class it{PRE;EXPORT;UNIT;PS;PREFIX;ARR=new c;CID=new c;DATA=new c;ANIM=new c;IMPORTED=[];constructor(t="",n="",i,r){this.PRE=t;this.EXPORT=i;this.UNIT=r;this.PREFIX=n?n+"_":n,this.PS=new Wt(this)}get(t,n,i){let r=t.PRE+n;if(t.DATA.has(r))return r;else if(n in t)return t[n];else return t.PRE+n}set(t,n,i){return!1}get css(){return new Proxy(this,this)}load(t){return this.IMPORTED.push(t),this}__(t){Object.entries(t).forEach(([n,i])=>{this.set(this,n,i)})}}class L extends it{set(t,n,i){let r=t.PRE+n;return t.PS.set(r,i,t.DATA),!0}}class rt extends it{webkit;constructor(t="",n=!0,i){super("",t,!1,i);this.webkit=n}set(t,n,i){let r=t.PREFIX+n,o=y(i)?i:[i],f=new c;if(o.forEach((s)=>{b(s).forEach(([e,a])=>{let M=x(e)?`${e}%`:e;t.PS.set(M,a,f)})}),t.ANIM.init(r,new Set),t.DATA.set(`@keyframes ${r}`,f),this.webkit)t.DATA.set(`@-webkit-keyframes ${r}`,f);return!0}}class ot extends it{constructor(t=""){super("@",t)}set(t,n,i){return t.ARR.init(t.PRE+n,new Set).add(i),t}}class ft extends it{constructor(t=""){super("@font-face",t);this.ARR.set(this.PRE,new Set)}set(t,n,i){let r=b({fontFamily:n,...i}).map(([o,f])=>{return z(o,f,this.UNIT)});return t.ARR.get(t.PRE)?.add(r.join(`
4
- `)),!0}}var In=Array.from;class Ut{shweet;shaker;include;CID=new c;css="";constructor(t,n=[],i=[]){this.shweet=t;this.shaker=n;this.include=i}load(t){let n=$.default,i=$.prop;D(i,$.extra);let r=new c,o={},f={},s={},e=new Set,a={},M={};H(i).forEach((h)=>{a[h]={}});for(let h of U(this.shweet))if(h instanceof L)this.ClassID(h,o,f,t),h.ANIM.forEach((S,l)=>{S.forEach((N)=>{r.init(l,new Set).add(N)})});else if(h instanceof rt)this.KF(h,s,r);else if(h instanceof ot)this.AT(h,e);else if(h instanceof ft)this.FONT(h,e);return b(o).forEach(([h,S])=>{if(!a[h])a[h]={};b(S).forEach(([l,N])=>{let O=N.join(", ");if(!a[h][O])a[h][O]=[];a[h][O].push(l)})}),b(f).forEach(([h,S])=>{b(S).forEach(([l,N])=>{if(!M[l])M[l]={};b(N).forEach(([O,C])=>{let E=`@supports(${h})`;if(!M[l][E])M[l][E]={};let W=C.join(", ");if(!M[l][E][W])M[l][E][W]=new Set;M[l][E][W].add(O)})})}),b(a).forEach(([h,S])=>{let l=[],N=[];if(b(S).forEach(([O,C])=>{if(C.some((W)=>{return W.startsWith("animation")||W.startsWith("transition")}))N.push(d(O,C));else l.push(d(O,C))}),N.length)l.unshift(...N);if(s[h])b(s[h]).forEach(([O,C])=>{l.push(d(O,C))});if(M[h])b(M[h]).forEach(([O,C])=>{let E=b(C).map(([W,Mt])=>{return d(W,[...Mt])});l.push(d(O,E))});if(l.length)if(e.add(`/* -------------- ${h+(h===n?" ( default )":"")} */`),h===n)e.add(l.join(`
5
- `));else{let O=h.split("-").map((C)=>i[C]).join(" and ");e.add(`@media ${O} {
6
- ${l.join(`
2
+ var ti=Object.defineProperty;var ni=(t,n)=>{for(var i in n)ti(t,i,{get:n[i],enumerable:!0,configurable:!0,set:(r)=>n[i]=()=>r})};var qt=function(t,n,i,r){var o=arguments.length,f=o<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,i):r,u;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")f=Reflect.decorate(t,n,i,r);else for(var h=t.length-1;h>=0;h--)if(u=t[h])f=(o<3?u(f):o>3?u(n,i,f):u(n,i))||f;return o>3&&f&&Object.defineProperty(n,i,f),f};var et=(t,n)=>{if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(t,n)};var Ot={};ni(Ot,{isWindow:()=>ei,isUndefined:()=>Nt,isStr:()=>Y,isPromise:()=>ri,isPlainObject:()=>fi,isObject:()=>oi,isObj:()=>j,isNumber:()=>nt,isNum:()=>Ct,isNull:()=>Z,isNotWindow:()=>$t,isNotNull:()=>si,isModule:()=>gi,isInt:()=>It,isFN:()=>ht,isDefined:()=>H,isClassOrId:()=>Et,isBool:()=>jt,isAsync:()=>ii,isArraybuff:()=>ui,isArr:()=>M});var ht=(t)=>typeof t==="function",ii=(t)=>t.constructor.name==="AsyncFunction",ri=(t)=>!!t&&typeof t.then==="function",nt=(t)=>{return!isNaN(parseFloat(t))&&isFinite(t)},oi=(t)=>{return t&&typeof t==="object"&&!Array.isArray(t)},fi=(t)=>{return typeof t==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype&&!Array.isArray(t)},gi=(t)=>{return t&&typeof t==="object"&&t[Symbol.toStringTag]==="Module"},ui=(t)=>{return t instanceof Uint8Array||t instanceof ArrayBuffer||typeof t==="string"},Et=(t)=>{return t.startsWith(".")||t.startsWith("#")},jt=(t)=>typeof t==="boolean",Y=(t)=>typeof t==="string",M=(t)=>Array.isArray(t),j=(t)=>typeof t==="object",Ct=(t)=>typeof t==="number",Z=(t)=>t===null,si=(t)=>t===null,Nt=(t)=>typeof t>"u",H=(t)=>typeof t<"u",It=(t)=>{return Number.isInteger(Number(t))},ei=typeof window<"u",$t=typeof window>"u";var G=(t)=>{return M(t)?t:[t]};function Tt(t=3){let r=((Error().stack?.split(`
3
+ `)??[])[t]||"").match(/at\s+([^(]+)\s*\(/);return(r?r[1].split(".").pop()?.trim():"?")??"?"}class At{name;constructor(t){this.name=t}log=(...t)=>{let n=Tt(3);console.log(`[${this.name}.${n}]`,...t)};set i(t){let n=Tt(3);console.log(`[${this.name}.${n}]`,...G(t))}}class it{static logger=(t)=>{return new At(Y(t)?t:t.constructor.name)};static set f(t){let n=Tt();console.log(`[${n}]`,...G(t))}static set i(t){console.info(...G(t))}static set e(t){console.error(...G(t))}static set w(t){console.warn(...G(t))}static set d(t){let n=new Date().toLocaleTimeString();console.log(...G(t),` @ ${n}`)}}var hi=(t)=>Array.from({length:t},(n,i)=>i),Zt="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Gt="abcdefghijklmnopqrstuvwxyz";var X=(t)=>JSON.stringify(t),Dt=(t)=>{return JSON.parse(t)},Xt=(t)=>{return t.replace(/-([a-z])/g,(n,i)=>i.toUpperCase())},St=(t)=>{if(t.startsWith("webkit"))t="-"+t;return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},bt=(t)=>{let n=Zt+Gt,i=hi(10).join("");return Array.from({length:t},(r,o)=>n+(o?i:"")).reduce((r,o)=>{return r+=o.charAt(Math.floor(Math.random()*o.length))},"")},bi=(t=6,n)=>{if(!n)return Math.floor(Math.random()*t);return Math.round(Math.random()*(n-t)+t)},Pt=()=>{let t=[...Zt,...Gt],n=bi(0,t.length);return t[n]};class E extends Map{obj(t){t&&b(t).forEach(([n,i])=>this.set(n,i))}map(t){t.forEach((n,i)=>{if(n instanceof E)this.set(i,n);else if(M(n)){if(this.lacks(i))this.set(i,[]);this.get(i).push(...n)}else if(j(n))this.ass(i,n);else this.set(i,n)})}ass(t,n){if(!this.has(t))this.set(t,{});D(this.get(t),n)}lacks(t){return!this.has(t)}init(t,n){return this.has(t)?this.get(t):this.set(t,n).get(t)}}var{values:Q,keys:R,entries:b}=Object;var D=Object.assign,Kt=(t,n)=>Object.hasOwn(t,n),P=(t)=>{return Object.keys(t).length};var wt=(t,n)=>{let i={added:{},removed:{},modified:{}},r=R(t),o=R(n);for(let f of o){let u=t[f],h=n[f];if(!(f in t))i.added[f]=h;else if(M(u)&&M(h)){if(X(u)!==X(h))i.modified[f]={old:u,new:h}}else if(j(u)&&j(h)&&!Z(u)&&!Z(h)){let S=wt(u,h);if(P(S.added)||P(S.removed)||P(S.modified))i.modified[f]={old:u,new:h}}else if(u!==h)i.modified[f]={old:u,new:h}}for(let f of r)if(!(f in n))i.removed[f]=t[f];return i};var Vt=(t)=>{return Q(t).some((n)=>{return P(n)})};var _t=(t,n,i)=>{let r=i.value;return{configurable:!0,get(){if(this===t.constructor.prototype)return r;let o=r.bind(this);return Object.defineProperty(this,n,{value:o,configurable:!0,writable:!0}),o}}};var U=(t,n=2)=>String(t).padStart(n,"0"),zt=new Map;function K(t,n){let i=JSON.stringify({locale:n,...t}),r=zt.get(i);if(!r)r=new Intl.DateTimeFormat(n,t),zt.set(i,r);return r}var Yt={YYYY:(t)=>String(t.getFullYear()),YY:(t)=>U(t.getFullYear()%100),MMMM:(t,n)=>K({month:"long"},n).format(t),MMM:(t,n)=>K({month:"short"},n).format(t),MM:(t)=>U(t.getMonth()+1),M:(t)=>String(t.getMonth()+1),dddd:(t,n)=>K({weekday:"long"},n).format(t),ddd:(t,n)=>K({weekday:"short"},n).format(t),DD:(t)=>U(t.getDate()),D:(t)=>String(t.getDate()),HH:(t)=>U(t.getHours()),H:(t)=>String(t.getHours()),hh:(t)=>{let n=t.getHours()%12||12;return U(n)},h:(t)=>String(t.getHours()%12||12),A:(t,n)=>{return(K({hour:"numeric",hour12:!0},n).formatToParts(t).find((o)=>o.type==="dayPeriod")?.value??(t.getHours()<12?"AM":"PM")).toUpperCase()},a:(t,n)=>{return(K({hour:"numeric",hour12:!0},n).formatToParts(t).find((o)=>o.type==="dayPeriod")?.value??(t.getHours()<12?"AM":"PM")).toLowerCase()},mm:(t)=>U(t.getMinutes()),m:(t)=>String(t.getMinutes()),ss:(t)=>U(t.getSeconds()),s:(t)=>String(t.getSeconds()),SSS:(t)=>U(t.getMilliseconds(),3),Q:(t)=>String(Math.floor(t.getMonth()/3)+1),DoY:(t)=>{let n=new Date(t.getFullYear(),0,1),i=Math.floor((+t-+n)/86400000)+1;return String(i)}};function Mi(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let t=new RegExp(Object.keys(Yt).sort((n,i)=>i.length-n.length).map((n)=>n.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=t,t}function li(t,n="YYYY-MM-DD HH:mm:ss",i){let r=typeof t==="number"?new Date(t):typeof t==="string"?new Date(t):t,o=Mi(),f=new Map;return n.replace(o,(u)=>{if(f.has(u))return f.get(u);let h=Yt[u],S=h?h(r,i):u;return f.set(u,S),S})}Date.prototype.format=function(t,n){return li(this,t,n)};Date.registerFormat=function(t,n){Yt[t]=n,globalThis.__dateTokenRegex=null};Date.format=function(t,n){return new Date().format(t,n)};class Ft{static rand(t=6,n){if(n)return Math.floor(Math.random()*(n-t+1)+t);return Math.floor(Math.random()*t)+1-1}static fill(t,n=null){return Array(t).fill(n)}static new({dom:t,id:n,inner:i}){let r=document.createElement(t);if(n)r.id=n;if(i)r.innerHTML=i;return r}static randFrom(t){if(Array.isArray(t)){let n=t.length,i=this.rand(0,n-1);return t[i]}else if(typeof t=="object"){let n=R(t),i=n.length,r=this.rand(0,i-1);return n[r]}}static randArray(t=[],n=1,i=!1){let r=[],o=i?new Set:null;while((i?o.size:r.length)<n){let f=t[Ft.rand(0,t.length-1)];i?o.add(f):r.push(f)}return i?[...o]:r}static randomAZ=Pt;static makeID=bt;static class(t,...n){let i=n.filter(Boolean);if(t?.class)i.push(...M(t.class)?t.class:[t.class]);if(i.length)t.class=i}static get O(){return{vals:Q,keys:R,items:b,has:Kt,ass:D,len:(t={})=>R(t).length}}static get is(){return Ot}static get return(){return mt}static isHREF(t,n){return t===n?!0:t.startsWith(n)&&n!=="/"?!0:!1}static sleep=(t=1000)=>new Promise((n)=>setTimeout(n,t));static get screen(){let{innerWidth:t}=window,n={xs:t<=480,sm:t>=480,smd:t>=624,md:t>=768,lg:t>=1024,xl:t>=1280,xxl:t>=1536},i=b(n).reverse();for(let r=0;r<i.length;r++){let[o,f]=i[r];if(f)return o}return}bytes(t){if(t===0)return"0 Bytes";let n=1024,i=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(t)/Math.log(n));return parseFloat((t/Math.pow(n,r)).toFixed(2))+" "+i[r]}static format(t){return new dt(t)}static compareObjects=wt;static isObjectUdpated=Vt}class mt{static arr(t){return t?M(t)?t:[t]:[]}static num(t,n=0){let i=parseFloat(t);return isNaN(i)?n:i}static str(t){return String(t)}static arr2obj(t,n=!1){return t.reduce((i,r,o)=>{if(n)i[r]=o;else i[o]=r;return i},{})}}class dt{val;constructor(t){this.val=t}get px(){return`${this.val}px`}get rem(){return`${this.val}rem`}get pr(){return`${this.val}%`}}var{getPrototypeOf:ro,defineProperty:yi,getOwnPropertyNames:oo}=Object;var Ei=(t,n)=>{for(var i in n)yi(t,i,{get:n[i],enumerable:!0,configurable:!0,set:(r)=>n[i]=()=>r})};var kt={};Ei(kt,{isWhitespace:()=>Tn,isWeakSet:()=>cn,isWeakMap:()=>an,isUndefined:()=>Wt,isUint8Array:()=>fn,isSymbol:()=>pt,isSubclassOf:()=>Zn,isString:()=>Ht,isSet:()=>Sn,isRegExp:()=>Rn,isRecord:()=>sn,isReadonlyArray:()=>nn,isPromise:()=>Bn,isPrimitive:()=>Ln,isPositiveNumber:()=>Yn,isPlainObject:()=>rt,isObjectLike:()=>Mn,isObject:()=>at,isNumberLike:()=>tn,isNumber:()=>V,isNullish:()=>Cn,isNull:()=>yn,isNotNullish:()=>Nn,isNotNull:()=>z,isNonNegativeNumber:()=>Fn,isNonFunctionObject:()=>ln,isNonEmptyString:()=>On,isNonEmptyObject:()=>un,isModule:()=>Qn,isMap:()=>bn,isIterable:()=>en,isInteger:()=>Dn,isInstanceOf:()=>An,isFunction:()=>Rt,isFiniteNumber:()=>wn,isError:()=>Wn,isEmptyString:()=>$n,isEmpty:()=>Jn,isDefined:()=>En,isDate:()=>Hn,isClass:()=>In,isBoolean:()=>vt,isBinaryLike:()=>gn,isBigInt:()=>xt,isAsyncIterable:()=>hn,isAsyncFunction:()=>jn,isArrayBufferView:()=>on,isArrayBuffer:()=>rn,isArray:()=>_,IS_NOT_BROWSER:()=>qn,IS_BROWSER:()=>Un});var vt=(t)=>typeof t==="boolean",Ht=(t)=>typeof t==="string",V=(t)=>typeof t==="number"&&!Number.isNaN(t),xt=(t)=>typeof t==="bigint",pt=(t)=>typeof t==="symbol",Rt=(t)=>typeof t==="function",tn=(t)=>{let n=typeof t==="number"?t:parseFloat(String(t));return!Number.isNaN(n)&&Number.isFinite(n)},_=(t)=>Array.isArray(t),nn=(t)=>Array.isArray(t),rn=(t)=>t instanceof ArrayBuffer,on=(t)=>typeof ArrayBuffer<"u"&&ArrayBuffer.isView(t),fn=(t)=>t instanceof Uint8Array,gn=(t)=>t instanceof Uint8Array||t instanceof ArrayBuffer||typeof t==="string",at=(t)=>z(t)&&typeof t==="object",rt=(t)=>z(t)&&at(t)&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null),un=(t)=>rt(t)&&Object.keys(t).length>0,sn=(t)=>rt(t),en=(t)=>t!=null&&typeof t[Symbol.iterator]==="function",hn=(t)=>t!=null&&typeof t[Symbol.asyncIterator]==="function",bn=(t)=>t instanceof Map,Sn=(t)=>t instanceof Set,an=(t)=>t instanceof WeakMap,cn=(t)=>t instanceof WeakSet,Mn=(t)=>t!==null&&(typeof t==="object"||typeof t==="function"),ln=(t)=>t!==null&&typeof t==="object",yn=(t)=>t===null,Wt=(t)=>t===void 0,En=(t)=>!Wt(t),Cn=(t)=>t==null,z=(t)=>t!==null,Nn=(t)=>t!=null,$n=(t)=>typeof t==="string"&&t.length===0,On=(t)=>typeof t==="string"&&t.length>0,Tn=(t)=>typeof t==="string"&&t.length>0&&t.trim().length===0,Dn=(t)=>V(t)&&Number.isInteger(t),wn=(t)=>V(t)&&Number.isFinite(t),Yn=(t)=>V(t)&&Number.isFinite(t)&&t>0,Fn=(t)=>V(t)&&Number.isFinite(t)&&t>=0,Hn=(t)=>t instanceof Date&&!Number.isNaN(t.getTime()),Rn=(t)=>t instanceof RegExp,Wn=(t)=>t instanceof Error,Bn=(t)=>!!t&&typeof t.then==="function",Jn=(t)=>t==null||typeof t==="string"&&t.length===0||Array.isArray(t)&&t.length===0||(t instanceof Map||t instanceof Set)&&t.size===0||rt(t)&&Object.keys(t).length===0,Ln=(t)=>t===null||typeof t!=="object"&&typeof t!=="function",Qn=(t)=>z(t)&&at(t)&&t[Symbol.toStringTag]==="Module",Un=typeof window<"u",qn=typeof window>"u",jn=(t)=>Rt(t)&&z(t.constructor)&&t.constructor.name==="AsyncFunction",In=(t)=>typeof t==="function"&&/^class\s/.test(Function.prototype.toString.call(t)),An=(t,n)=>t instanceof n,Zn=(t,n)=>typeof t==="function"&&typeof n==="function"&&t.prototype.isPrototypeOf(n.prototype);var ot=(t)=>{if(t.startsWith("webkit"))t="-"+t;return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};var q=(t,n=2)=>String(t).padStart(n,"0"),Gn=new Map;function m(t,n){let i=JSON.stringify({locale:n,...t}),r=Gn.get(i);if(!r)r=new Intl.DateTimeFormat(n,t),Gn.set(i,r);return r}var Bt={YYYY:(t)=>String(t.getFullYear()),YY:(t)=>q(t.getFullYear()%100),MMMM:(t,n)=>m({month:"long"},n).format(t),MMM:(t,n)=>m({month:"short"},n).format(t),MM:(t)=>q(t.getMonth()+1),M:(t)=>String(t.getMonth()+1),dddd:(t,n)=>m({weekday:"long"},n).format(t),ddd:(t,n)=>m({weekday:"short"},n).format(t),DD:(t)=>q(t.getDate()),D:(t)=>String(t.getDate()),HH:(t)=>q(t.getHours()),H:(t)=>String(t.getHours()),hh:(t)=>{let n=t.getHours()%12||12;return q(n)},h:(t)=>String(t.getHours()%12||12),A:(t,n)=>{return(m({hour:"numeric",hour12:!0},n).formatToParts(t).find((i)=>i.type==="dayPeriod")?.value??(t.getHours()<12?"AM":"PM")).toUpperCase()},a:(t,n)=>{return(m({hour:"numeric",hour12:!0},n).formatToParts(t).find((i)=>i.type==="dayPeriod")?.value??(t.getHours()<12?"AM":"PM")).toLowerCase()},mm:(t)=>q(t.getMinutes()),m:(t)=>String(t.getMinutes()),ss:(t)=>q(t.getSeconds()),s:(t)=>String(t.getSeconds()),SSS:(t)=>q(t.getMilliseconds(),3),Q:(t)=>String(Math.floor(t.getMonth()/3)+1),DoY:(t)=>{let n=new Date(t.getFullYear(),0,1),i=Math.floor((+t-+n)/86400000)+1;return String(i)}};function Ci(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let t=new RegExp(Object.keys(Bt).sort((n,i)=>i.length-n.length).map((n)=>n.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=t,t}function Ni(t,n="YYYY-MM-DD HH:mm:ss",i){let r=typeof t==="number"?new Date(t):typeof t==="string"?new Date(t):t,o=Ci(),f=new Map;return n.replace(o,(u)=>{if(f.has(u))return f.get(u);let h=Bt[u],S=h?h(r,i):u;return f.set(u,S),S})}Date.prototype.format=function(t,n){return Ni(this,t,n)};Date.registerFormat=function(t,n){Bt[t]=n,globalThis.__dateTokenRegex=null};Date.format=function(t,n){return new Date().format(t,n)};var Xn={xs:"480px",sm:"480px",smd:"624px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"};class C{static default="xs";static prop=b(Xn).reduce((t,[n,i],r)=>{return t[n]=`(${r==0?"max-width":"min-width"}: ${i})`,t},{});static extra={no_hover:"(pointer: coarse)",mobile:"(pointer: coarse)",print:"print",screen:"screen",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"};constructor(t,n={}){let i=C.default,r={};if(t!==void 0)d(r,i,t,i);b(n).forEach(([o,f])=>{d(r,o,f,i)}),D(this,r)}static get breakpoints(){return Dt(X(Xn))}}var d=(t,n,i,r)=>{if(i!==void 0)if(i instanceof C)b(i).forEach(([o,f])=>{if(r!==n)if(n!==o)if(r===o)d(t,n,f,r);else d(t,`${n}-${o}`,f,r);else d(t,o,f,r);else d(t,o,f,r)});else t[n]=i};function W(t,n){if(n)return new C(t,n);if(typeof t==="object")return new C(void 0,t);return new C(t,{})}function $i(t){if(this._prefix)return W({[this._prefix]:t});else return W({xs:t})}function F(t){return new this.constructor({prefix:t,values:this._values,data:this.data})}class ct{_prefix;data;_values;constructor({prefix:t,data:n,values:i}={data:{},values:{}}){this._prefix=t,this._values=i,b(i).forEach(([r,o])=>{if(!this._values[r])this._values[r]=W({});D(this._values[r],o)}),this.data=n}get XS(){return F.call(this,"xs")}get SM(){return F.call(this,"sm")}get SMD(){return F.call(this,"smd")}get MD(){return F.call(this,"md")}get LG(){return F.call(this,"lg")}get XL(){return F.call(this,"xl")}get XXL(){return F.call(this,"xxl")}get NO_HOVER(){return F.call(this,"no_hover")}get MOBILE(){return F.call(this,"no_hover")}get PRINT(){return F.call(this,"print")}get SCREEN(){return F.call(this,"screen")}get DARK(){return F.call(this,"dark")}set _value(t){b(t).forEach(([n,i])=>{if(!this._values[n])this._values[n]=W({});D(this._values[n],$i.call(this,i))})}get _value(){return this._values}}class w{k="";fallback;var="";value;constructor(t={},n){if(P(t)){let[i,r]=b(t)[0];this.k=i,this.var="--"+St(i),this.value=r instanceof C?r:W(r,{}),this.fallback=n}else this.value=W({})}__(t){if(t)this.fallback=t;let n=this.fallback;if(n)return`var(${this.var}, ${s(n)})`;else return`var(${this.var})`}new(t,n){return new w({[this.k]:t instanceof C?t:s(t)},n)}}var Oi=(t,n)=>{return new w(t,n)},Ti=(t)=>{let n={};for(let i in t)n[i]=new w({[i]:t[i]});return n};var s=(t,n={unit:"rem"})=>{let{rem:i,second:r,quote:o,degree:f,percent:u,delimeter:h,unit:S,delimeter_arr:l}=n;if(Nt(t)||Z(t)||!o&&t==="")return"";let c=M(t)?t:[t];if(!c.length)return"";return c.filter((e)=>H(e)).map((e)=>{if(M(e))return h=l||", ",s(e,{...n,delimeter:" "});if(e instanceof w)return e.__();if(o)e=String(e);if(Ct(e))if(i)return`${e}${S?S:"rem"}`;else if(f)return`${e}deg`;else if(u)return`${e}%`;else if(r)return`${e}s`;else return String(e);if(Y(e))if(e.includes("("))return e;else if(o)return`'${e}'`;else return e;return""}).filter((e)=>H(e)&&e!=="").join(h||" ")};var Pn=new Set(["transitionDuration","transitionDelay","animationDelay","animationDuration"]),Di=new Set([...Pn,"zIndex","opacity","aspectRatio","order","flexShrink","flexGrow","flex","fillOpacity","lineClamp","order","scale","webkitLineClamp","animationIterationCount","animationTimingFunction","transitionTimingFunction","columnCount","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd"]),wi=new Set(["content"]),Yi=new Set(["transitionProperty"]),k=(t,n,i="rem")=>{let r=s(n,{rem:!Di.has(t),second:Pn.has(t),quote:wi.has(t),delimeter:Yi.has(t)?", ":" ",unit:i});return`${ot(t)}: ${r};`};class Mt{value;__;constructor(t){if(this.value=new E,Y(t))this.value.set(t,[]);else b(t).forEach(([n,i])=>{this.value.set(`${n}:${i}`,[])});this.__=(...n)=>{return this.value.forEach((i)=>{i.push(...n)}),this}}}function Fi(t){return new Mt(t).__}var I=(t)=>{if(ht(t))return I(t());if(t instanceof C)return t;if(t instanceof w)return W(t.__(),{});return W(t,{})};function Hi(t){let n={};return t.split(";").map((i)=>i.trim()).filter((i)=>i!=="").forEach((i)=>{let[r,o]=i.split(":").map((u)=>u.trim()),f=Xt(r);if(!isNaN(Number(o))&&isFinite(Number(o)))n[f]=Number(o);else n[f]=o}),n}var Ri=(t)=>{t.value.forEach((n,i)=>{t.value.set(i,n.map((r)=>{let o={};return b(r).forEach(([f,u])=>{if(H(u))o[f]=I(u)}),o}))})},Jt=(t,n=[])=>{let i=[];if(M(t))return Jt(t[0],i);if(t instanceof w)return Jt(Q(t.value),i);return i.push(String(t)),i};class Lt{base;constructor(t){this.base=t}props(t,n,i){let r=["animation","animationName"].includes(n);return b(i).forEach(([o,f])=>{if(r)i[o]=this.addPrefixToAnimation(t,f);else i[o]=f}),i}addPrefixToAnimation(t,n){if(n instanceof w)this.saveAnim(t,n);else if(M(n))return n[0]=this.addPrefixToAnimation(t,n[0]),n;else if(Y(n)&&!n.includes("("))return n.split(", ").map((o)=>{let f=o.split(" "),u=f[0],h=f.slice(1).join(" "),S=`${this.base.PREFIX}${u}`;return this.base.ANIM.init(S,new Set).add(t),`${this.base.PREFIX}${u} ${h}`.trim()}).join(", ");return n}saveAnim(t,n){Jt(n).forEach((i)=>{this.base.ANIM.init(`${this.base.PREFIX}${i}`,new Set).add(t)})}process(t,n,i,r,o){if(i instanceof w)this.saveAnim(t,i),r.ass(n,this.props(t,i.var,I(i)));else if(n.startsWith(":")||n.startsWith(",")||n.startsWith("[")){if(n.startsWith("::before")||n.startsWith("::after")){if(M(i)){if(!i.some((u)=>("content"in u)))i.push({content:""})}}this.set(t+n,i,o)}else if(n.startsWith(" ")){let u=n.match(/^.*?\w/gm)?.[0].slice(0,-1),h=n.replaceAll(/, /gm,`, ${t}${u}`);this.set(t+h,i,o)}else if(Et(n))this.set(t+n,i,o);else r.set(n,this.props(t,n,I(i)))}set(t,n,i){if(!j(n)&&!Y(n))return;let r=new E;if(n instanceof w)this.saveAnim(t,n),r.ass(n.var,this.props(t,n.var,I(n.value)));else if(n instanceof ct)b(n._value).forEach(([f,u])=>{if(H(u))r.set(f,this.props(t,f,I(u)))});else if(n instanceof Mt)Ri(n),r.init("supports",[]).push(n);else if(M(n))n.forEach((f)=>{this.set(t,f,i)});else if(Y(n)){let f=Hi(n);this.set(t,f,i)}else b(n).forEach(([f,u])=>{if(u instanceof w){this.saveAnim(t,u),r.ass(u.var,this.props(t,u.var,I(u.value)));return}return this.process(t,f,u,r,i)});let o=i.init(t,new E);r.forEach((f,u)=>{if(u==="supports")i.init(t,new E).init(u,[])?.push(...f);else o.set(u,f)})}}class ft{PRE;EXPORT;UNIT;PS;PREFIX;ARR=new E;CID=new E;DATA=new E;ANIM=new E;IMPORTED=[];constructor(t="",n="",i,r){this.PRE=t;this.EXPORT=i;this.UNIT=r;this.PREFIX=n?n+"_":n,this.PS=new Lt(this)}get(t,n,i){let r=t.PRE+n;if(t.DATA.has(r))return r;else if(n in t)return t[n];else return t.PRE+n}set(t,n,i){return!1}get css(){return new Proxy(this,this)}load(t){return this.IMPORTED.push(t),this}__(t){Object.entries(t).forEach(([n,i])=>{this.set(this,n,i)})}}class A extends ft{set(t,n,i){let r=t.PRE+n;return t.PS.set(r,i,t.DATA),!0}}class gt extends ft{webkit;constructor(t="",n=!0,i){super("",t,!1,i);this.webkit=n}set(t,n,i){let r=t.PREFIX+n,o=M(i)?i:[i],f=new E;if(o.forEach((u)=>{b(u).forEach(([h,S])=>{let l=nt(h)?`${h}%`:h;t.PS.set(l,S,f)})}),t.ANIM.init(r,new Set),t.DATA.set(`@keyframes ${r}`,f),this.webkit)t.DATA.set(`@-webkit-keyframes ${r}`,f);return!0}}class ut extends ft{constructor(t=""){super("@",t)}set(t,n,i){return t.ARR.init(t.PRE+n,new Set).add(i),t}}class st extends ft{constructor(t=""){super("@font-face",t);this.ARR.set(this.PRE,new Set)}set(t,n,i){let r=b({fontFamily:n,...i}).map(([o,f])=>{return k(o,f,this.UNIT)});return t.ARR.get(t.PRE)?.add(r.join(`
4
+ `)),!0}}var Kn=Array.from;class Ut{shweet;shaker;include;CID=new E;css="";constructor(t,n=[],i=[]){this.shweet=t;this.shaker=n;this.include=i}load(t,n={}){let i=C.default,r=C.prop;D(r,C.extra),D(r,n);let o=new E,f={},u={},h={},S=new Set,l={},c={};R(r).forEach((e)=>{l[e]={}});for(let e of Q(this.shweet))if(e instanceof A)this.ClassID(e,f,u,t),e.ANIM.forEach(($,a)=>{$.forEach((O)=>{o.init(a,new Set).add(O)})});else if(e instanceof gt)this.KF(e,h,o);else if(e instanceof ut)this.AT(e,S);else if(e instanceof st)this.FONT(e,S);return b(f).forEach(([e,$])=>{if(!l[e])l[e]={};b($).forEach(([a,O])=>{let y=O.join(", ");if(!l[e][y])l[e][y]=[];l[e][y].push(a)})}),b(u).forEach(([e,$])=>{b($).forEach(([a,O])=>{if(!c[a])c[a]={};b(O).forEach(([y,N])=>{let B=`@supports(${e})`;if(!c[a][B])c[a][B]={};let J=N.join(", ");if(!c[a][B][J])c[a][B][J]=new Set;c[a][B][J].add(y)})})}),b(l).forEach(([e,$])=>{let a=[],O=[];if(b($).forEach(([y,N])=>{if(N.some((J)=>{return J.startsWith("animation")||J.startsWith("transition")}))O.push(v(y,N));else a.push(v(y,N))}),O.length)a.unshift(...O);if(h[e])b(h[e]).forEach(([y,N])=>{a.push(v(y,N))});if(c[e])b(c[e]).forEach(([y,N])=>{let B=b(N).map(([J,x])=>{return v(J,[...x])});a.push(v(y,B))});if(a.length)if(S.add(`/* -------------- ${e+(e===i?" ( default )":"")} */`),e===i)S.add(a.join(`
5
+ `));else{let y=e.split("-").map((N)=>r[N]).join(" and ");if(y)S.add(`@media ${y} {
6
+ ${a.join(`
7
7
  `)}
8
- }`)}}),this.css=[...e].join(`
9
- `),this}ClassID(t,n,i,r){let o=(f,s,e,a,M)=>{b(s).forEach(([h,S])=>{this.push(M,e,h,a,z(f,S,t.UNIT))})};t.DATA.forEach((f,s)=>{let e=Di(s,t.PREFIX),a=this.getCID(s,t.PREFIX,r);f.forEach((M,h)=>{if(h==="supports"){if(y(M))M.forEach((S)=>{S.value.forEach((l,N)=>{if(!(N in i))i[N]={};l.forEach((O)=>{b(O).forEach(([C,E])=>{o(C,E,e,a,i[N])})})})})}else o(h,M,e,a,n)})}),t.IMPORTED.forEach((f)=>{this.ClassID(f,n,i,f.EXPORT)})}KF(t,n,i){let r=(o,f,s)=>{Zn(n,o,f),n[o][f].push(s)};t.DATA.forEach((o,f)=>{o.forEach((s,e)=>{let a={};s.forEach((M,h)=>{if(h==="supports")p.e=["@supports not supported in @keyframes",{error:"support in keyframes"}];else b(M).forEach(([S,l])=>{if(this.shaker.length){let N=f.split(" ")[1];if(i.has(N)){if([...i.get(N)].some((E)=>{return this.getCID(E,"",!1,!1)})){if(!(S in a))a[S]=[];a[S].push(z(h,l,t.UNIT))}}}else{if(!(S in a))a[S]=[];a[S].push(z(h,l,t.UNIT))}})}),b(a).forEach(([M,h])=>{r(M,f,d(e,h))})})}),t.IMPORTED.forEach((o)=>{this.KF(o,n,i)})}AT(t,n){for(let[i,r]of t.ARR)r.forEach((o)=>{let f=o.includes("(")?o:`"${o}"`;n.add(`${i} ${f.trim()};`)});t.IMPORTED.forEach((i)=>{this.AT(i,n)})}FONT(t,n){(t.ARR.get("@font-face")??new Set).forEach((o)=>{n.add(`@font-face {
8
+ }`)}}),this.css=[...S].join(`
9
+ `),this}ClassID(t,n,i,r){let o=(f,u,h,S,l)=>{b(u).forEach(([c,e])=>{this.push(l,h,c,S,k(f,e,t.UNIT))})};t.DATA.forEach((f,u)=>{let h=Bi(u,t.PREFIX),S=this.getCID(u,t.PREFIX,r);f.forEach((l,c)=>{if(c==="supports"){if(M(l))l.forEach((e)=>{e.value.forEach(($,a)=>{if(!(a in i))i[a]={};$.forEach((O)=>{b(O).forEach(([y,N])=>{o(y,N,h,S,i[a])})})})})}else o(c,l,h,S,n)})}),t.IMPORTED.forEach((f)=>{this.ClassID(f,n,i,f.EXPORT)})}KF(t,n,i){let r=(o,f,u)=>{Vn(n,o,f),n[o][f].push(u)};t.DATA.forEach((o,f)=>{o.forEach((u,h)=>{let S={};u.forEach((l,c)=>{if(c==="supports")it.e=["@supports not supported in @keyframes",{error:"support in keyframes"}];else b(l).forEach(([e,$])=>{if(this.shaker.length){let a=f.split(" ")[1];if(i.has(a)){if([...i.get(a)].some((N)=>{return this.getCID(N,"",!1,!1)})){if(!(e in S))S[e]=[];S[e].push(k(c,$,t.UNIT))}}}else{if(!(e in S))S[e]=[];S[e].push(k(c,$,t.UNIT))}})}),b(S).forEach(([l,c])=>{r(l,f,v(h,c))})})}),t.IMPORTED.forEach((o)=>{this.KF(o,n,i)})}AT(t,n){for(let[i,r]of t.ARR)r.forEach((o)=>{let f=o.includes("(")?o:`"${o}"`;n.add(`${i} ${f.trim()};`)});t.IMPORTED.forEach((i)=>{this.AT(i,n)})}FONT(t,n){(t.ARR.get("@font-face")??new Set).forEach((o)=>{n.add(`@font-face {
10
10
  ${o}
11
- }`)}),t.IMPORTED.forEach((o)=>{this.FONT(o,n)})}getCID(t,n,i,r=!0){let o=/\.(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,f=/#(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,s=/\b([a-zA-Z][a-zA-Z0-9]*)\b(?![^{}]*})/g,e=[...new Set(Jt(t,o)),...new Set(Jt(t,f))];if(r&&Y(i)&&i)e.forEach((a)=>{this.CID.init(a.replaceAll("-","_"),new Set).add(n+a)});return e.push(...new Set(Jt(t,s))),e.some((a)=>this.shaker.includes(a)||this.include.includes(a))}push(t,n,i,r,o){if(!(this.shaker.length&&n.startsWith(".")||this.shaker.length&&n.startsWith("#"))||r)Zn(t,i,o),Ti(t,i,o,n)}}var d=(t,n)=>{return`${t} {
11
+ }`)}),t.IMPORTED.forEach((o)=>{this.FONT(o,n)})}getCID(t,n,i,r=!0){let o=/\.(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,f=/#(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,u=/\b([a-zA-Z][a-zA-Z0-9]*)\b(?![^{}]*})/g,h=[...new Set(Qt(t,o)),...new Set(Qt(t,f))];if(r&&H(i)&&i)h.forEach((S)=>{this.CID.init(S.replaceAll("-","_"),new Set).add(n+S)});return h.push(...new Set(Qt(t,u))),h.some((S)=>this.shaker.includes(S)||this.include.includes(S))}push(t,n,i,r,o){if(!(this.shaker.length&&n.startsWith(".")||this.shaker.length&&n.startsWith("#"))||r)Vn(t,i,o),Wi(t,i,o,n)}}var v=(t,n)=>{return`${t} {
12
12
  ${n.join(`
13
13
  `)}
14
- }`},Jt=(t,n)=>{return In(t.matchAll(n),(i)=>i[1])},Zn=(t,n,i)=>{try{if(!t[n])t[n]={},t[n][i]=[];if(!t[n][i])t[n][i]=[]}catch(r){p.e=[`property "${n}" not found!`,{error:"@ensurePropsInitialized"}]}},Ti=(t,n,i,r)=>{if(!t[n])t[n]={[i]:r.split(",").map((o)=>o.trim())};else t[n][i].push(...r.split(",").map((o)=>o.trim()))},Di=(t,n)=>{if(n)return t.replaceAll(/\.|\#/g,(i)=>i+n);return t};import{mkdirSync as wi,writeFileSync as Fi,existsSync as An}from"fs";var at=(t,n="")=>{if(An(t))return!0;return Fi(t,n,{flag:"wx"}),!0},St=(t)=>{if(An(t))return!0;return wi(t,{recursive:!0}),!0};import{writeFileSync as Vn}from"fs";function g(t){return function(...n){return{[t]:n}}}class Xn{static attr(t){let[n,i]=b(t)[0];return g(`[${n}="${i}"]`)}static after(t=""){return g("::after"+t)}static before(t=""){return g("::before"+t)}static backdrop(t=""){return g("::backdrop"+t)}static cue(t=""){return g("::cue"+t)}static cueRegion(t=""){return g("::cue-region"+t)}static firstLetter(t=""){return g("::first-letter"+t)}static firstLine(t=""){return g("::first-line"+t)}static marker(t=""){return g("::marker"+t)}static part(t=""){return g("::part"+t)}static placeholder(t=""){return g("::placeholder"+t)}static selection(t=""){return g("::selection"+t)}static slotted(t=""){return g("::slotted"+t)}static spellingError(t=""){return g("::spelling-error"+t)}static targetText(t=""){return g("::target-text"+t)}static viewTransition(t=""){return g("::view-transition"+t)}static viewTransitionGroup(t=""){return g("::view-transition-group"+t)}static viewTransitionImagePair(t=""){return g("::view-transition-image-pair"+t)}static viewTransitionNew(t=""){return g("::view-transition-new"+t)}static viewTransitionOld(t=""){return g("::view-transition-old"+t)}static scrollbar(t=""){return g("::-webkit-scrollbar"+t)}static scrollbarThumb(t=""){return g("::-webkit-scrollbar-thumb"+t)}static scrollbarTrack(t=""){return g("::-webkit-scrollbar-track"+t)}static scrollbarCorner(t=""){return g("::-webkit-scrollbar-corner"+t)}static active(t=""){return g(":active"+t)}static anyLink(t=""){return g(":any-link"+t)}static autofill(t=""){return g(":autofill"+t)}static blank(t=""){return g(":blank"+t)}static checked(t=""){return g(":checked"+t)}static current(t=""){return g(":current"+t)}static default(t=""){return g(":default"+t)}static defined(t=""){return g(":defined"+t)}static disabled(t=""){return g(":disabled"+t)}static empty(t=""){return g(":empty"+t)}static enabled(t=""){return g(":enabled"+t)}static first(t=""){return g(":first"+t)}static firstChild(t=""){return g(":first-child"+t)}static firstOfType(t=""){return g(":first-of-type"+t)}static fullscreen(t=""){return g(":fullscreen"+t)}static future(t=""){return g(":future"+t)}static focus(t=""){return g(":focus"+t)}static focusVisible(t=""){return g(":focus-visible"+t)}static focusWithin(t=""){return g(":focus-within"+t)}static host(t=""){return g(":host"+t)}static hover(t=""){return g(":hover"+t)}static indeterminate(t=""){return g(":indeterminate"+t)}static inRange(t=""){return g(":in-range"+t)}static invalid(t=""){return g(":invalid"+t)}static lastChild(t=""){return g(":last-child"+t)}static lastOfType(t=""){return g(":last-of-type"+t)}static left(t=""){return g(":left"+t)}static link(t=""){return g(":link"+t)}static localLink(t=""){return g(":local-link"+t)}static modal(t=""){return g(":modal"+t)}static onlyChild(t=""){return g(":only-child"+t)}static onlyOfType(t=""){return g(":only-of-type"+t)}static optional(t=""){return g(":optional"+t)}static outOfRange(t=""){return g(":out-of-range"+t)}static past(t=""){return g(":past"+t)}static pictureInPicture(t=""){return g(":picture-in-picture"+t)}static placeholderShown(t=""){return g(":placeholder-shown"+t)}static paused(t=""){return g(":paused"+t)}static playing(t=""){return g(":playing"+t)}static readOnly(t=""){return g(":read-only"+t)}static readWrite(t=""){return g(":read-write"+t)}static required(t=""){return g(":required"+t)}static right(t=""){return g(":right"+t)}static root(t=""){return g(":root"+t)}static scope(t=""){return g(":scope"+t)}static target(t=""){return g(":target"+t)}static targetWithin(t=""){return g(":target-within"+t)}static userInvalid(t=""){return g(":user-invalid"+t)}static valid(t=""){return g(":valid"+t)}static visited(t=""){return g(":visited"+t)}static dir(t){return g(`:dir(${t})`)}static has(t){return g(`:has(${t})`)}static host_(t){return g(`:host(${t})`)}static hostContext(t){return g(`:host-context(${t})`)}static is(t){return g(`:is(${t})`)}static lang(t){return g(`:lang(${t})`)}static not(t){return g(`:not(${t})`)}static nthChild(t){return g(`:nth-child(${t})`)}static nthCol(t){return g(`:nth-col(${t})`)}static nthLastChild(t){return g(`:nth-last-child(${t})`)}static nthLastCol(t){return g(`:nth-last-col(${t})`)}static nthLastOfType(t){return g(`:nth-last-of-type(${t})`)}static nthOfType(t){return g(`:nth-of-type(${t})`)}static state(t){return g(`:state(${t})`)}static where(t){return g(`:where(${t})`)}static and(t){return g(", "+t)}static child(t){return g(" > "+t)}static desc(t){return g(" "+t)}static next(t){return g(" + "+t)}static general(t){return g(" ~ "+t)}static withClass(t){if(!t.startsWith("."))throw Error("should start with . or # - class / id");return g(t)}}class Kn{static minmax(t,n){return`minmax(${u([t,n],{rem:!0,delimeter:", "})})`}static fitContent(t){return`fit-content(${u([t],{rem:!0})})`}static repeat(t,...n){return`repeat(${u([t,u([n],{rem:!0})],{delimeter:", "})})`}}class Pn extends Kn{static attr(t,n,i){return`attr(${u([t,n,i])})`}static blur(t){return`blur(${u([t],{rem:!0})})`}static brightness(t){return`brightness(${u([t])})`}static calc(...t){return`calc(${u(t,{rem:!0})})`}static circle(t,n){return`circle(${u([t,n],{rem:!0})})`}static clamp(t,n,i){return`clamp(${u([t,n,i],{rem:!0,delimeter:", "})})`}static colorMix(t,n,i){return`color-mix(${u([t,u(K(n)?n:[n]),u(K(i)?i:[i])],{delimeter:", "})})`}static conicGradient(...t){return`conic-gradient(${u(t,{delimeter:", "})})`}static contrast(t){return`contrast(${u([t])})`}static cubicBezier(t,n,i,r){return`cubic-bezier(${u([t,n,i,r],{delimeter:", "})})`}static dropShadow(...t){return`drop-shadow(${u(t,{rem:!0})})`}static grayscale(t){return`grayscale(${u([t])})`}static hsl(t,n,i){return`hsl(${u([t,n,i])})`}static hsla(t,n,i,r){return`hsl(${u([t,n,i,r?["/",r]:r])})`}static hueRotate(t){return`hue-rotate(${u([t],{degree:!0})})`}static inset(...t){return`inset(${u(t,{rem:!0})})`}static invert(t){return`invert(${u([t])})`}static linearGradient(...t){return`linear-gradient(${u(t,{delimeter:", "})})`}static matrix(t,n,i,r,o,f){return`matrix(${u([t,n,i,r,o,f],{delimeter:", "})})`}static matrix3d(t,n,i,r){return`matrix3d(${u([t,n,i,r],{delimeter:", "})})`}static max(...t){return`max(${u(t,{rem:!0,delimeter:", "})})`}static min(...t){return`min(${u(t,{rem:!0,delimeter:", "})})`}static opacity(t){return`opacity(${u([t])})`}static path(t){return`path(${u([t],{quote:!0})})`}static clipPath(t,n){return`path(${u([t,u([n],{quote:!0})],{delimeter:", "})})`}static perspective(t){return`perspective(${u([t])})`}static polygon(...t){return`polygon(${u(t,{percent:!0,delimeter:", "})})`}static ray(...t){return`ray(${u(t,{degree:!0})})`}static radialGradient(...t){return`radial-gradient(${u(t,{delimeter_arr:", ",percent:!0,delimeter:", "})})`}static repeatingConicGradient(...t){return`repeating-conic-gradient(${u(t,{degree:!0,delimeter:", "})})`}static repeatingLinearGradient(...t){return`repeating-linear-gradient(${u(t,{degree:!0,delimeter:", "})})`}static repeatingRadialGradient(...t){return`repeating-radial-gradient(${u(t,{degree:!0,delimeter:", "})})`}static rgb(t,n,i){return`rgb(${u([t,n,i])})`}static rgba(t,n,i,r){return`rgba(${u([t,n,i,r?["/",r]:void 0],{delimeter_arr:" "})})`}static rotate(t){return`rotate(${u([t],{degree:!0})})`}static rotate3d(t,n,i,r){return`rotate3d(${u([u([t,n,i],{delimeter:", "}),r],{degree:!0,delimeter:", "})})`}static rotateX(t){return`rotateX(${u([t],{degree:!0})})`}static rotateY(t){return`rotateY(${u([t],{degree:!0})})`}static rotateZ(t){return`rotateZ(${u([t],{degree:!0})})`}static saturate(...t){return`saturate(${u(t)})`}static scale(t,n){return`scale(${u([t,n],{delimeter:", "})})`}static scale3d(t,n,i){return`scale3d(${u([t,n,i],{delimeter:", "})})`}static scaleX(t){return`scaleX(${u([t])})`}static scaleY(t){return`scaleY(${u([t])})`}static scaleZ(t){return`scaleZ(${u([t])})`}static sepia(t){return`sepia(${u([t])})`}static skew(...t){return`skew(${u(t,{degree:!0,delimeter:", "})})`}static skewX(t){return`skewX(${u([t],{degree:!0})})`}static skewY(t){return`skewY(${u([t],{degree:!0})})`}static steps(t,n){return`steps(${u([t,n],{delimeter:", "})})`}static translate(...t){return`translate(${u(t,{rem:!0,delimeter:", "})})`}static translate3d(...t){return`translate3d(${u(t,{rem:!0,delimeter:", "})})`}static translateX(t){return`translateX(${u([t],{rem:!0})})`}static translateY(t){return`translateY(${u([t],{rem:!0})})`}static translateZ(...t){return`translateZ(${u(t,{rem:!0,delimeter:", "})})`}static url(t){return`url(${u([t],{quote:!0})})`}static var(t,n=""){t="--"+nt(t);let i=n?", "+u([n],{rem:!0,delimeter:", "}):"";return`var(${u([t],{rem:!0})}${i})`}}var Yi={important:" !important",visible:"visible",hidden:"hidden",auto:"auto",none:"none",clip:"clip",scroll:"scroll",initial:"initial",inherit:"inherit",flex:"flex",center:"center",flex_start:"flex-start",flex_end:"flex-end",space_evenly:"space-evenly",stretch:"stretch",wrap:"wrap",column:"column",column_reverse:"column-reverse",row:"row",row_reverse:"row-reverse",space_between:"space-between",space_around:"space-around",pr100:"100%",pr50:"50%",i100vh:"100vh",i100vw:"100vw",block:"block",sticky:"sticky",fixed:"fixed",absolute:"absolute",relative:"relative",pointer:"pointer",grabbing:"grabbing",checkbox:"checkbox",solid:"solid",inset:"inset",bold:"bold",currentColor:"currentColor",forwards:"forwards",text:"text",norepeat:"no-repeat",nowrap:"nowrap",difference:"difference",preserve3d:"preserve-3d"};class Hi{path;name;prefix;exportMap;_imported=new Set;save;constructor({__filename:t,name:n,prefix:i,shweets:r=[],exportMap:o,webkitKeyframes:f,unit:s="rem"}){this.path=t,this.name=n||Ui(t),this.prefix=i??"",this.exportMap=o;let e=y(r)?r:[r];Ji.call(this,this.prefix,e,f,o,s);let a=this;Object.assign(this,{get shweet(){return a}}),this.save=({dir:M,mapDir:h=[],mapName:S="index",minify:l=!0,shaker:N=[],include:O=[]}={})=>{let C=Y(o)?o:!!h,E=new Ut(this,N,O).load(C),W=y(M)?M:[M],Mt=l?Ri(E.css):E.css;W.forEach((J)=>{if(!J)return;let k=J.endsWith("/")?"":"/",v=J+k+this.name+".css";St(J+k),at(v),Vn(v,Mt||"/* --------------*/")});let _n=y(h)?h:[h];for(let J of _n){let k=J.endsWith("/")?"":"/",v=J+k+S+".js";St(J+k),at(v),Wi(v,E.CID)}return this}}get imported(){return[...this._imported]}}var Ri=(t)=>{return t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,])\s*/g,"$1").replace(/\s*([>~+])\s*/g,"$1").trim()},Wi=(t,n)=>{let i={};n.forEach((o)=>{b(o).forEach(([f,s])=>{if(!i[f])i[f]=[s];else i[f].push(s)})});let r=[...n.entries()].map(([o,f])=>{return`${o}="${[...f].join(" ")}"`}).sort((o,f)=>o.localeCompare(f,void 0,{numeric:!0}));Vn(t,r.length?`export const ${r.join()};`:"export {}");return};function Ji(t,n,i=!1,r,o){let f={d:new L("",t,r,o),i:new L("#",t,r,o),c:new L(".",t,r,o),kf:new rt(t,i,o),at:new ot,font:new ft};n.forEach((s)=>{this._imported.add(s.path),s._imported.forEach((e)=>{this._imported.add(e)}),H(f).forEach((e)=>{f[e].load(s[e])})}),H(f).forEach((s)=>{f[s]=f[s].css}),D(this,f)}function Ui(t){return t.split("/").slice(-1)[0].split(".")[0]}export{Yi as v,Ci as supports,Xn as ps,$ as media,R as med,p as log,Ui as fileName,Pn as f,Dt as __,li as Vars,yi as Var,u as Value,Hi as Shweet,ht as Medyas};
14
+ }`},Qt=(t,n)=>{return Kn(t.matchAll(n),(i)=>i[1])},Vn=(t,n,i)=>{try{if(!t[n])t[n]={},t[n][i]=[];if(!t[n][i])t[n][i]=[]}catch(r){it.e=[`property "${n}" not found!`,{error:"@ensurePropsInitialized"}]}},Wi=(t,n,i,r)=>{if(!t[n])t[n]={[i]:r.split(",").map((o)=>o.trim())};else t[n][i].push(...r.split(",").map((o)=>o.trim()))},Bi=(t,n)=>{if(n)return t.replaceAll(/\.|\#/g,(i)=>i+n);return t};import{mkdirSync as Ji,writeFileSync as Li,existsSync as _n}from"fs";var lt=(t,n="")=>{if(_n(t))return!0;return Li(t,n,{flag:"wx"}),!0},yt=(t)=>{if(_n(t))return!0;return Ji(t,{recursive:!0}),!0};import{writeFileSync as kn}from"fs";function g(t){return function(...n){return{[t]:n}}}class zn{static attr(t){let[n,i]=b(t)[0];return g(`[${n}="${i}"]`)}static after(t=""){return g("::after"+t)}static before(t=""){return g("::before"+t)}static backdrop(t=""){return g("::backdrop"+t)}static cue(t=""){return g("::cue"+t)}static cueRegion(t=""){return g("::cue-region"+t)}static firstLetter(t=""){return g("::first-letter"+t)}static firstLine(t=""){return g("::first-line"+t)}static marker(t=""){return g("::marker"+t)}static part(t=""){return g("::part"+t)}static placeholder(t=""){return g("::placeholder"+t)}static selection(t=""){return g("::selection"+t)}static slotted(t=""){return g("::slotted"+t)}static spellingError(t=""){return g("::spelling-error"+t)}static targetText(t=""){return g("::target-text"+t)}static viewTransition(t=""){return g("::view-transition"+t)}static viewTransitionGroup(t=""){return g("::view-transition-group"+t)}static viewTransitionImagePair(t=""){return g("::view-transition-image-pair"+t)}static viewTransitionNew(t=""){return g("::view-transition-new"+t)}static viewTransitionOld(t=""){return g("::view-transition-old"+t)}static scrollbar(t=""){return g("::-webkit-scrollbar"+t)}static scrollbarThumb(t=""){return g("::-webkit-scrollbar-thumb"+t)}static scrollbarTrack(t=""){return g("::-webkit-scrollbar-track"+t)}static scrollbarCorner(t=""){return g("::-webkit-scrollbar-corner"+t)}static active(t=""){return g(":active"+t)}static anyLink(t=""){return g(":any-link"+t)}static autofill(t=""){return g(":autofill"+t)}static blank(t=""){return g(":blank"+t)}static checked(t=""){return g(":checked"+t)}static current(t=""){return g(":current"+t)}static default(t=""){return g(":default"+t)}static defined(t=""){return g(":defined"+t)}static disabled(t=""){return g(":disabled"+t)}static empty(t=""){return g(":empty"+t)}static enabled(t=""){return g(":enabled"+t)}static first(t=""){return g(":first"+t)}static firstChild(t=""){return g(":first-child"+t)}static firstOfType(t=""){return g(":first-of-type"+t)}static fullscreen(t=""){return g(":fullscreen"+t)}static future(t=""){return g(":future"+t)}static focus(t=""){return g(":focus"+t)}static focusVisible(t=""){return g(":focus-visible"+t)}static focusWithin(t=""){return g(":focus-within"+t)}static host(t=""){return g(":host"+t)}static hover(t=""){return g(":hover"+t)}static indeterminate(t=""){return g(":indeterminate"+t)}static inRange(t=""){return g(":in-range"+t)}static invalid(t=""){return g(":invalid"+t)}static lastChild(t=""){return g(":last-child"+t)}static lastOfType(t=""){return g(":last-of-type"+t)}static left(t=""){return g(":left"+t)}static link(t=""){return g(":link"+t)}static localLink(t=""){return g(":local-link"+t)}static modal(t=""){return g(":modal"+t)}static onlyChild(t=""){return g(":only-child"+t)}static onlyOfType(t=""){return g(":only-of-type"+t)}static optional(t=""){return g(":optional"+t)}static outOfRange(t=""){return g(":out-of-range"+t)}static past(t=""){return g(":past"+t)}static pictureInPicture(t=""){return g(":picture-in-picture"+t)}static placeholderShown(t=""){return g(":placeholder-shown"+t)}static paused(t=""){return g(":paused"+t)}static playing(t=""){return g(":playing"+t)}static readOnly(t=""){return g(":read-only"+t)}static readWrite(t=""){return g(":read-write"+t)}static required(t=""){return g(":required"+t)}static right(t=""){return g(":right"+t)}static root(t=""){return g(":root"+t)}static scope(t=""){return g(":scope"+t)}static target(t=""){return g(":target"+t)}static targetWithin(t=""){return g(":target-within"+t)}static userInvalid(t=""){return g(":user-invalid"+t)}static valid(t=""){return g(":valid"+t)}static visited(t=""){return g(":visited"+t)}static dir(t){return g(`:dir(${t})`)}static has(t){return g(`:has(${t})`)}static host_(t){return g(`:host(${t})`)}static hostContext(t){return g(`:host-context(${t})`)}static is(t){return g(`:is(${t})`)}static lang(t){return g(`:lang(${t})`)}static not(t){return g(`:not(${t})`)}static nthChild(t){return g(`:nth-child(${t})`)}static nthCol(t){return g(`:nth-col(${t})`)}static nthLastChild(t){return g(`:nth-last-child(${t})`)}static nthLastCol(t){return g(`:nth-last-col(${t})`)}static nthLastOfType(t){return g(`:nth-last-of-type(${t})`)}static nthOfType(t){return g(`:nth-of-type(${t})`)}static state(t){return g(`:state(${t})`)}static where(t){return g(`:where(${t})`)}static webkit(t){return g(`::-webkit-${t}`)}static and(t){return g(", "+t)}static child(t){return g(" > "+t)}static desc(t){return g(" "+t)}static next(t){return g(" + "+t)}static general(t){return g(" ~ "+t)}static withClass(t){if(!t.startsWith("."))throw Error("should start with . or # - class / id");return g(t)}}class mn{static minmax(t,n){return`minmax(${s([t,n],{rem:!0,delimeter:", "})})`}static fitContent(t){return`fit-content(${s([t],{rem:!0})})`}static repeat(t,...n){return`repeat(${s([t,s([n],{rem:!0})],{delimeter:", "})})`}}class dn extends mn{static attr(t,n,i){return`attr(${s([t,n,i])})`}static blur(t){return`blur(${s([t],{rem:!0})})`}static brightness(t){return`brightness(${s([t])})`}static calc(...t){return`calc(${s(t,{rem:!0})})`}static circle(t,n){return`circle(${s([t,n],{rem:!0})})`}static clamp(t,n,i){return`clamp(${s([t,n,i],{rem:!0,delimeter:", "})})`}static colorMix(t,n,i){return`color-mix(${s([t,s(_(n)?n:[n]),s(_(i)?i:[i])],{delimeter:", "})})`}static conicGradient(...t){return`conic-gradient(${s(t,{delimeter:", "})})`}static contrast(t){return`contrast(${s([t])})`}static cubicBezier(t,n,i,r){return`cubic-bezier(${s([t,n,i,r],{delimeter:", "})})`}static dropShadow(...t){return`drop-shadow(${s(t,{rem:!0})})`}static grayscale(t){return`grayscale(${s([t])})`}static hsl(t,n,i){return`hsl(${s([t,n,i])})`}static hsla(t,n,i,r){return`hsl(${s([t,n,i,r?["/",r]:r])})`}static hueRotate(t){return`hue-rotate(${s([t],{degree:!0})})`}static inset(...t){return`inset(${s(t,{rem:!0})})`}static invert(t){return`invert(${s([t])})`}static linearGradient(...t){return`linear-gradient(${s(t,{delimeter:", "})})`}static matrix(t,n,i,r,o,f){return`matrix(${s([t,n,i,r,o,f],{delimeter:", "})})`}static matrix3d(t,n,i,r){return`matrix3d(${s([t,n,i,r],{delimeter:", "})})`}static max(...t){return`max(${s(t,{rem:!0,delimeter:", "})})`}static min(...t){return`min(${s(t,{rem:!0,delimeter:", "})})`}static opacity(t){return`opacity(${s([t])})`}static path(t){return`path(${s([t],{quote:!0})})`}static clipPath(t,n){return`path(${s([t,s([n],{quote:!0})],{delimeter:", "})})`}static perspective(t){return`perspective(${s([t])})`}static polygon(...t){return`polygon(${s(t,{percent:!0,delimeter:", "})})`}static ray(...t){return`ray(${s(t,{degree:!0})})`}static radialGradient(...t){return`radial-gradient(${s(t,{delimeter_arr:", ",percent:!0,delimeter:", "})})`}static repeatingConicGradient(...t){return`repeating-conic-gradient(${s(t,{degree:!0,delimeter:", "})})`}static repeatingLinearGradient(...t){return`repeating-linear-gradient(${s(t,{degree:!0,delimeter:", "})})`}static repeatingRadialGradient(...t){return`repeating-radial-gradient(${s(t,{degree:!0,delimeter:", "})})`}static rgb(t,n,i){return`rgb(${s([t,n,i])})`}static rgba(t,n,i,r){return`rgba(${s([t,n,i,r?["/",r]:void 0],{delimeter_arr:" "})})`}static rotate(t){return`rotate(${s([t],{degree:!0})})`}static rotate3d(t,n,i,r){return`rotate3d(${s([s([t,n,i],{delimeter:", "}),r],{degree:!0,delimeter:", "})})`}static rotateX(t){return`rotateX(${s([t],{degree:!0})})`}static rotateY(t){return`rotateY(${s([t],{degree:!0})})`}static rotateZ(t){return`rotateZ(${s([t],{degree:!0})})`}static saturate(...t){return`saturate(${s(t)})`}static scale(t,n){return`scale(${s([t,n],{delimeter:", "})})`}static scale3d(t,n,i){return`scale3d(${s([t,n,i],{delimeter:", "})})`}static scaleX(t){return`scaleX(${s([t])})`}static scaleY(t){return`scaleY(${s([t])})`}static scaleZ(t){return`scaleZ(${s([t])})`}static sepia(t){return`sepia(${s([t])})`}static skew(...t){return`skew(${s(t,{degree:!0,delimeter:", "})})`}static skewX(t){return`skewX(${s([t],{degree:!0})})`}static skewY(t){return`skewY(${s([t],{degree:!0})})`}static steps(t,n){return`steps(${s([t,n],{delimeter:", "})})`}static translate(...t){return`translate(${s(t,{rem:!0,delimeter:", "})})`}static translate3d(...t){return`translate3d(${s(t,{rem:!0,delimeter:", "})})`}static translateX(t){return`translateX(${s([t],{rem:!0})})`}static translateY(t){return`translateY(${s([t],{rem:!0})})`}static translateZ(...t){return`translateZ(${s(t,{rem:!0,delimeter:", "})})`}static url(t){return`url(${s([t],{quote:!0})})`}static var(t,n=""){t="--"+ot(t);let i=n?", "+s([n],{rem:!0,delimeter:", "}):"";return`var(${s([t],{rem:!0})}${i})`}}var Qi={important:" !important",visible:"visible",hidden:"hidden",auto:"auto",none:"none",clip:"clip",scroll:"scroll",initial:"initial",inherit:"inherit",flex:"flex",center:"center",flex_start:"flex-start",flex_end:"flex-end",space_evenly:"space-evenly",stretch:"stretch",wrap:"wrap",column:"column",column_reverse:"column-reverse",row:"row",row_reverse:"row-reverse",space_between:"space-between",space_around:"space-around",pr100:"100%",pr50:"50%",i100vh:"100vh",i100vw:"100vw",block:"block",sticky:"sticky",fixed:"fixed",absolute:"absolute",relative:"relative",pointer:"pointer",grabbing:"grabbing",checkbox:"checkbox",solid:"solid",inset:"inset",bold:"bold",currentColor:"currentColor",forwards:"forwards",text:"text",norepeat:"no-repeat",nowrap:"nowrap",difference:"difference",preserve3d:"preserve-3d"};class Ui{path;name;prefix;exportMap;mediaFeatures;_imported=new Set;save;constructor({__filename:t,name:n,prefix:i,shweets:r=[],exportMap:o,webkitKeyframes:f,mediaFeature:u={},unit:h="rem"}){this.path=t,this.name=n||Ai(t),this.prefix=i??"",this.exportMap=o;let S=M(r)?r:[r];this.mediaFeatures=u,Ii.call(this,this.prefix,S,f,o,h);let l=this;Object.assign(this,{get shweet(){return l}}),this.save=({dir:c,mapDir:e=[],mapName:$="index",minify:a=!0,shaker:O=[],include:y=[],name:N}={})=>{let B=H(o)?o:!!e,J=N??this.name,x=new Ut(this,O,y).load(B,this.mediaFeatures),vn=M(c)?c:[c],xn=a?qi(x.css):x.css;vn.forEach((L)=>{if(!L)return;let p=L.endsWith("/")?"":"/",tt=L+p+J+".css";yt(L+p),lt(tt),kn(tt,xn||"/* --------------*/")});let pn=M(e)?e:[e];for(let L of pn){let p=L.endsWith("/")?"":"/",tt=L+p+$+".js";yt(L+p),lt(tt),ji(tt,x.CID)}return this}}get imported(){return[...this._imported]}med(t,n){if(n)return new C(t,n);if(typeof t==="object")return new C(void 0,t);return new C(t,{})}}qt([_t,et("design:type",Function),et("design:paramtypes",[Object,Object]),et("design:returntype",void 0)],Ui.prototype,"med",null);var qi=(t)=>{return t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,])\s*/g,"$1").replace(/\s*([>~+])\s*/g,"$1").trim()},ji=(t,n)=>{let i={};n.forEach((o)=>{b(o).forEach(([f,u])=>{if(!i[f])i[f]=[u];else i[f].push(u)})});let r=[...n.entries()].map(([o,f])=>{return`${o}="${[...f].join(" ")}"`}).sort((o,f)=>o.localeCompare(f,void 0,{numeric:!0}));kn(t,r.length?`export const ${r.join()};`:"export {}");return};function Ii(t,n,i=!1,r,o){let f={d:new A("",t,r,o),i:new A("#",t,r,o),c:new A(".",t,r,o),kf:new gt(t,i,o),at:new ut,font:new st};n.forEach((u)=>{this._imported.add(u.path),u._imported.forEach((h)=>{this._imported.add(h)}),R(f).forEach((h)=>{f[h].load(u[h])})}),R(f).forEach((u)=>{f[u]=f[u].css}),D(this,f)}function Ai(t){return t.split("/").slice(-1)[0].split(".")[0]}export{Qi as v,Fi as supports,zn as ps,C as media,W as med,it as log,Ai as fileName,dn as f,Ft as __,Ti as Vars,Oi as Var,s as Value,Ui as Shweet,ct as Medyas};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shweet",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "CSS in TS",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",