@shweet/qt 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -0
- package/dist/$/index-bpdqaq7y.js +16 -0
- package/dist/$/index-wz2nqnj9.js +4 -0
- package/dist/$/index.d.ts +1799 -0
- package/dist/$/index.js +2 -0
- package/dist/$strap/index.d.ts +558 -0
- package/dist/$strap/index.js +2 -0
- package/dist/$tally/index.d.ts +19285 -0
- package/dist/$tally/index.js +2 -0
- package/dist/index.d.ts +5 -1808
- package/dist/index.js +3 -15
- package/package.json +53 -9
- package/readme.md +0 -9
package/dist/index.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
`)??[])[e]||"").match(/at\s+([^(]+)\s*\(/);return(t?t[1].split(".").pop()?.trim():"?")??"?"}class Ct{name;constructor(e){this.name=e}log=(...e)=>{let t=Ee(3);console.log(`[${this.name}.${t}]`,...e)};set i(e){let t=Ee(3);console.log(`[${this.name}.${t}]`,...R(e))}}class Te{static logger=(e)=>{return new Ct(Y(e)?e:e.constructor.name)};static set f(e){let t=Ee();console.log(`[${t}]`,...R(e))}static set i(e){console.info(...R(e))}static set e(e){console.error(...R(e))}static set w(e){console.warn(...R(e))}static set d(e){let t=new Date().toLocaleTimeString();console.log(...R(e),` @ ${t}`)}}var kr=(e)=>JSON.stringify(e),Kr=(e)=>{return JSON.parse(e)},Hr=(e)=>{return e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase())},Xr=(e)=>{if(e.startsWith("webkit"))e="-"+e;return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};class B extends Map{obj(e){e&&g(e).forEach(([t,r])=>this.set(t,r))}map(e){e.forEach((t,r)=>{if(t instanceof B)this.set(r,t);else if(C(t)){if(this.lacks(r))this.set(r,[]);this.get(r).push(...t)}else if(Ce(t))this.ass(r,t);else this.set(r,t)})}ass(e,t){if(!this.has(e))this.set(e,{});se(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:Tt,keys:Vr,entries:g}=Object,se=Object.assign;var Lr=(e)=>{return Object.keys(e).length};var Q=(e,t=2)=>String(e).padStart(t,"0"),bt=new Map;function X(e,t){let r=JSON.stringify({locale:t,...e}),i=bt.get(r);if(!i)i=new Intl.DateTimeFormat(t,e),bt.set(r,i);return i}var qe={YYYY:(e)=>String(e.getFullYear()),YY:(e)=>Q(e.getFullYear()%100),MMMM:(e,t)=>X({month:"long"},t).format(e),MMM:(e,t)=>X({month:"short"},t).format(e),MM:(e)=>Q(e.getMonth()+1),M:(e)=>String(e.getMonth()+1),dddd:(e,t)=>X({weekday:"long"},t).format(e),ddd:(e,t)=>X({weekday:"short"},t).format(e),DD:(e)=>Q(e.getDate()),D:(e)=>String(e.getDate()),HH:(e)=>Q(e.getHours()),H:(e)=>String(e.getHours()),hh:(e)=>{let t=e.getHours()%12||12;return Q(t)},h:(e)=>String(e.getHours()%12||12),A:(e,t)=>{return(X({hour:"numeric",hour12:!0},t).formatToParts(e).find((r)=>r.type==="dayPeriod")?.value??(e.getHours()<12?"AM":"PM")).toUpperCase()},a:(e,t)=>{return(X({hour:"numeric",hour12:!0},t).formatToParts(e).find((r)=>r.type==="dayPeriod")?.value??(e.getHours()<12?"AM":"PM")).toLowerCase()},mm:(e)=>Q(e.getMinutes()),m:(e)=>String(e.getMinutes()),ss:(e)=>Q(e.getSeconds()),s:(e)=>String(e.getSeconds()),SSS:(e)=>Q(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 Rr(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let e=new RegExp(Object.keys(qe).sort((t,r)=>r.length-t.length).map((t)=>t.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=e,e}function Pr(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=Rr(),s=new Map;return t.replace(n,(l)=>{if(s.has(l))return s.get(l);let d=qe[l],f=d?d(i,r):l;return s.set(l,f),f})}Date.prototype.format=function(e,t){return Pr(this,e,t)};Date.registerFormat=function(e,t){qe[e]=t,globalThis.__dateTokenRegex=null};Date.format=function(e,t){return new Date().format(e,t)};var{getPrototypeOf:$n,defineProperty:Or,getOwnPropertyNames:xn}=Object,vr=(e,t)=>{for(var r in t)Or(e,r,{get:t[r],enumerable:!0,configurable:!0,set:(i)=>t[r]=()=>i})},ei={};vr(ei,{isWhitespace:()=>Ai,isWeakSet:()=>Fi,isWeakMap:()=>yi,isUndefined:()=>Wt,isUint8Array:()=>li,isSymbol:()=>ni,isSubclassOf:()=>ki,isString:()=>ri,isSet:()=>mi,isRegExp:()=>zi,isRecord:()=>fi,isReadonlyArray:()=>ai,isPromise:()=>Zi,isPrimitive:()=>Gi,isPositiveNumber:()=>Ti,isPlainObject:()=>ge,isObjectLike:()=>bi,isObject:()=>We,isNumberLike:()=>si,isNumber:()=>ae,isNullish:()=>xi,isNull:()=>_i,isNotNullish:()=>Bi,isNotNull:()=>oe,isNonNegativeNumber:()=>qi,isNonFunctionObject:()=>wi,isNonEmptyString:()=>Ei,isNonEmptyObject:()=>ci,isModule:()=>Qi,isMap:()=>pi,isIterable:()=>di,isInteger:()=>Mi,isInstanceOf:()=>Yi,isFunction:()=>qt,isFiniteNumber:()=>Ci,isError:()=>Si,isEmptyString:()=>Di,isEmpty:()=>ji,isDefined:()=>$i,isDate:()=>Wi,isClass:()=>Ni,isBoolean:()=>ti,isBinaryLike:()=>hi,isBigInt:()=>ii,isAsyncIterable:()=>gi,isAsyncFunction:()=>Ii,isArrayBufferView:()=>ui,isArrayBuffer:()=>oi,isArray:()=>Ae,IS_NOT_BROWSER:()=>Ui,IS_BROWSER:()=>Ji});var ti=(e)=>typeof e==="boolean",ri=(e)=>typeof e==="string",ae=(e)=>typeof e==="number"&&!Number.isNaN(e),ii=(e)=>typeof e==="bigint",ni=(e)=>typeof e==="symbol",qt=(e)=>typeof e==="function",si=(e)=>{let t=typeof e==="number"?e:parseFloat(String(e));return!Number.isNaN(t)&&Number.isFinite(t)},Ae=(e)=>Array.isArray(e),ai=(e)=>Array.isArray(e),oi=(e)=>e instanceof ArrayBuffer,ui=(e)=>typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e),li=(e)=>e instanceof Uint8Array,hi=(e)=>e instanceof Uint8Array||e instanceof ArrayBuffer||typeof e==="string",We=(e)=>oe(e)&&typeof e==="object",ge=(e)=>oe(e)&&We(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),ci=(e)=>ge(e)&&Object.keys(e).length>0,fi=(e)=>ge(e),di=(e)=>e!=null&&typeof e[Symbol.iterator]==="function",gi=(e)=>e!=null&&typeof e[Symbol.asyncIterator]==="function",pi=(e)=>e instanceof Map,mi=(e)=>e instanceof Set,yi=(e)=>e instanceof WeakMap,Fi=(e)=>e instanceof WeakSet,bi=(e)=>e!==null&&(typeof e==="object"||typeof e==="function"),wi=(e)=>e!==null&&typeof e==="object",_i=(e)=>e===null,Wt=(e)=>e===void 0,$i=(e)=>!Wt(e),xi=(e)=>e==null,oe=(e)=>e!==null,Bi=(e)=>e!=null,Di=(e)=>typeof e==="string"&&e.length===0,Ei=(e)=>typeof e==="string"&&e.length>0,Ai=(e)=>typeof e==="string"&&e.length>0&&e.trim().length===0,Mi=(e)=>ae(e)&&Number.isInteger(e),Ci=(e)=>ae(e)&&Number.isFinite(e),Ti=(e)=>ae(e)&&Number.isFinite(e)&&e>0,qi=(e)=>ae(e)&&Number.isFinite(e)&&e>=0,Wi=(e)=>e instanceof Date&&!Number.isNaN(e.getTime()),zi=(e)=>e instanceof RegExp,Si=(e)=>e instanceof Error,Zi=(e)=>!!e&&typeof e.then==="function",ji=(e)=>e==null||typeof e==="string"&&e.length===0||Array.isArray(e)&&e.length===0||(e instanceof Map||e instanceof Set)&&e.size===0||ge(e)&&Object.keys(e).length===0,Gi=(e)=>e===null||typeof e!=="object"&&typeof e!=="function",Qi=(e)=>oe(e)&&We(e)&&e[Symbol.toStringTag]==="Module",Ji=typeof window<"u",Ui=typeof window>"u",Ii=(e)=>qt(e)&&oe(e.constructor)&&e.constructor.name==="AsyncFunction",Ni=(e)=>typeof e==="function"&&/^class\s/.test(Function.prototype.toString.call(e)),Yi=(e,t)=>e instanceof t,ki=(e,t)=>typeof e==="function"&&typeof t==="function"&&e.prototype.isPrototypeOf(t.prototype),zt=(e)=>{if(e.startsWith("webkit"))e="-"+e;return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},J=(e,t=2)=>String(e).padStart(t,"0"),wt=new Map;function V(e,t){let r=JSON.stringify({locale:t,...e}),i=wt.get(r);if(!i)i=new Intl.DateTimeFormat(t,e),wt.set(r,i);return i}var ze={YYYY:(e)=>String(e.getFullYear()),YY:(e)=>J(e.getFullYear()%100),MMMM:(e,t)=>V({month:"long"},t).format(e),MMM:(e,t)=>V({month:"short"},t).format(e),MM:(e)=>J(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)=>J(e.getDate()),D:(e)=>String(e.getDate()),HH:(e)=>J(e.getHours()),H:(e)=>String(e.getHours()),hh:(e)=>{let t=e.getHours()%12||12;return J(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)=>J(e.getMinutes()),m:(e)=>String(e.getMinutes()),ss:(e)=>J(e.getSeconds()),s:(e)=>String(e.getSeconds()),SSS:(e)=>J(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 Ki(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let e=new RegExp(Object.keys(ze).sort((t,r)=>r.length-t.length).map((t)=>t.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=e,e}function Hi(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=Ki(),s=new Map;return t.replace(n,(l)=>{if(s.has(l))return s.get(l);let d=ze[l],f=d?d(i,r):l;return s.set(l,f),f})}Date.prototype.format=function(e,t){return Hi(this,e,t)};Date.registerFormat=function(e,t){ze[e]=t,globalThis.__dateTokenRegex=null};Date.format=function(e,t){return new Date().format(e,t)};var _t={xs:"480px",sm:"480px",smd:"624px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"};class T{static default="xs";static prop=g(_t).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)"};constructor(e,t={}){let r=T.default,i={};if(e!==void 0)P(i,r,e,r);g(t).forEach(([n,s])=>{P(i,n,s,r)}),se(this,i)}static get breakpoints(){return Kr(kr(_t))}}var P=(e,t,r,i)=>{if(r!==void 0)if(r instanceof T)g(r).forEach(([n,s])=>{if(i!==t)if(t!==n)if(i===n)P(e,t,s,i);else P(e,`${t}-${n}`,s,i);else P(e,n,s,i);else P(e,n,s,i)});else e[t]=r};function A(e,t){if(t)return new T(e,t);return new T(void 0,e)}function Xi(e){if(this._prefix)return A({[this._prefix]:e});else return A({xs:e})}function E(e){return new this.constructor({prefix:e,values:this._values,data:this.data})}class _{_prefix;data;_values;constructor({prefix:e,data:t,values:r}={data:{},values:{}}){this._prefix=e,this._values=r,g(r).forEach(([i,n])=>{if(!this._values[i])this._values[i]=A({});se(this._values[i],n)}),this.data=t}get XS(){return E.call(this,"xs")}get SM(){return E.call(this,"sm")}get SMD(){return E.call(this,"smd")}get MD(){return E.call(this,"md")}get LG(){return E.call(this,"lg")}get XL(){return E.call(this,"xl")}get XXL(){return E.call(this,"xxl")}get NO_HOVER(){return E.call(this,"no_hover")}get MOBILE(){return E.call(this,"no_hover")}get PRINT(){return E.call(this,"print")}get SCREEN(){return E.call(this,"screen")}get DARK(){return E.call(this,"dark")}set _value(e){g(e).forEach(([t,r])=>{if(!this._values[t])this._values[t]=A({});se(this._values[t],Xi.call(this,r))})}get _value(){return this._values}}class U{k="";fallback;var="";value;constructor(e={},t){if(Lr(e)){let[r,i]=g(e)[0];this.k=r,this.var="--"+Xr(r),this.value=i instanceof T?i:A(i,{}),this.fallback=t}else this.value=A({})}__(e){if(e)this.fallback=e;let t=this.fallback;if(t)return`var(${this.var}, ${o(t)})`;else return`var(${this.var})`}new(e,t){return new U({[this.k]:e instanceof T?e:o(e)},t)}}var o=(e,t={unit:"rem"})=>{let{rem:r,second:i,quote:n,degree:s,percent:l,delimeter:d,unit:f,delimeter_arr:y}=t;if(Mt(e)||At(e)||!n&&e==="")return"";let h=C(e)?e:[e];if(!h.length)return"";return h.filter((c)=>v(c)).map((c)=>{if(C(c))return d=y||", ",o(c,{...t,delimeter:" "});if(c instanceof U)return c.__();if(n)c=String(c);if(Et(c))if(r)return`${c}${f?f:"rem"}`;else if(s)return`${c}deg`;else if(l)return`${c}%`;else if(i)return`${c}s`;else return String(c);if(Y(c))if(c.includes("("))return c;else if(n)return`'${c}'`;else return c;return""}).filter((c)=>v(c)&&c!=="").join(d||" ")},St=new Set(["transitionDuration","transitionDelay","animationDelay","animationDuration"]),Vi=new Set([...St,"zIndex","opacity","aspectRatio","order","flexShrink","flexGrow","flex","fillOpacity","lineClamp","order","scale","webkitLineClamp","animationIterationCount","animationTimingFunction","transitionTimingFunction","columnCount","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd"]),Li=new Set(["content"]),Ri=new Set(["transitionProperty"]),de=(e,t,r="rem")=>{let i=o(t,{rem:!Vi.has(e),second:St.has(e),quote:Li.has(e),delimeter:Ri.has(e)?", ":" ",unit:r});return`${zt(e)}: ${i};`};class Zt{value;__;constructor(e){if(this.value=new B,Y(e))this.value.set(e,[]);else g(e).forEach(([t,r])=>{this.value.set(`${t}:${r}`,[])});this.__=(...t)=>{return this.value.forEach((r)=>{r.push(...t)}),this}}}var O=(e)=>{if(xt(e))return O(e());if(e instanceof T)return e;if(e instanceof U)return A(e.__(),{});return A(e,{})};function Pi(e){let t={};return e.split(";").map((r)=>r.trim()).filter((r)=>r!=="").forEach((r)=>{let[i,n]=r.split(":").map((l)=>l.trim()),s=Hr(i);if(!isNaN(Number(n))&&isFinite(Number(n)))t[s]=Number(n);else t[s]=n}),t}var Oi=(e)=>{e.value.forEach((t,r)=>{e.value.set(r,t.map((i)=>{let n={};return g(i).forEach(([s,l])=>{if(v(l))n[s]=O(l)}),n}))})},Me=(e,t=[])=>{let r=[];if(C(e))return Me(e[0],r);if(e instanceof U)return Me(Tt(e.value),r);return r.push(String(e)),r};class jt{base;constructor(e){this.base=e}props(e,t,r){let i=["animation","animationName"].includes(t);return g(r).forEach(([n,s])=>{if(i)r[n]=this.addPrefixToAnimation(e,s);else r[n]=s}),r}addPrefixToAnimation(e,t){if(t instanceof U)this.saveAnim(e,t);else if(C(t))return t[0]=this.addPrefixToAnimation(e,t[0]),t;else if(Y(t)&&!t.includes("("))return t.split(", ").map((r)=>{let i=r.split(" "),n=i[0],s=i.slice(1).join(" "),l=`${this.base.PREFIX}${n}`;return this.base.ANIM.init(l,new Set).add(e),`${this.base.PREFIX}${n} ${s}`.trim()}).join(", ");return t}saveAnim(e,t){Me(t).forEach((r)=>{this.base.ANIM.init(`${this.base.PREFIX}${r}`,new Set).add(e)})}process(e,t,r,i,n){if(r instanceof U)this.saveAnim(e,r),i.ass(t,this.props(e,r.var,O(r)));else if(t.startsWith(":")||t.startsWith(",")||t.startsWith("[")){if(t.startsWith("::before")||t.startsWith("::after")){if(C(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),l=t.replaceAll(/, /gm,`, ${e}${s}`);this.set(e+l,r,n)}else if(Dt(t))this.set(e+t,r,n);else i.set(t,this.props(e,t,O(r)))}set(e,t,r){if(!Ce(t)&&!Y(t))return;let i=new B;if(t instanceof U)this.saveAnim(e,t),i.ass(t.var,this.props(e,t.var,O(t.value)));else if(t instanceof _)g(t._value).forEach(([s,l])=>{if(v(l))i.set(s,this.props(e,s,O(l)))});else if(t instanceof Zt)Oi(t),i.init("supports",[]).push(t);else if(C(t))t.forEach((s)=>{this.set(e,s,r)});else if(Y(t)){let s=Pi(t);this.set(e,s,r)}else g(t).forEach(([s,l])=>{return this.process(e,s,l,i,r)});let n=r.init(e,new B);i.forEach((s,l)=>{if(l==="supports")r.init(e,new B).init(l,[])?.push(...s);else n.set(l,s)})}}class ue{PRE;EXPORT;UNIT;PS;PREFIX;ARR=new B;CID=new B;DATA=new B;ANIM=new B;IMPORTED=[];constructor(e="",t="",r,i){this.PRE=e,this.EXPORT=r,this.UNIT=i,this.PREFIX=t?t+"_":t,this.PS=new jt(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 Gt extends ue{set(e,t,r){let i=e.PRE+t;return e.PS.set(i,r,e.DATA),!0}}class Qt extends ue{webkit;constructor(e="",t=!0,r){super("",e,!1,r);this.webkit=t}set(e,t,r){let i=e.PREFIX+t,n=C(r)?r:[r],s=new B;if(n.forEach((l)=>{g(l).forEach(([d,f])=>{let y=Bt(d)?`${d}%`:d;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 Jt extends ue{constructor(e=""){super("@",e)}set(e,t,r){return e.ARR.init(e.PRE+t,new Set).add(r),e}}class Ut extends ue{constructor(e=""){super("@font-face",e);this.ARR.set(this.PRE,new Set)}set(e,t,r){let i=g({fontFamily:t,...r}).map(([n,s])=>{return de(n,s,this.UNIT)});return e.ARR.get(e.PRE)?.add(i.join(`
|
|
4
|
-
`)),!0}}var vi=Array.from;class en{shweet;shaker;include;CID=new B;css="";constructor(e,t=[],r=[]){this.shweet=e,this.shaker=t,this.include=r}load(e){let{default:t,prop:r}=T;se(r,T.extra);let i=new B,n={},s={},l={},d=new Set,f={},y={};Vr(r).forEach((h)=>{f[h]={}});for(let h of Tt(this.shweet))if(h instanceof Gt)this.ClassID(h,n,s,e),h.ANIM.forEach((c,m)=>{c.forEach((w)=>{i.init(m,new Set).add(w)})});else if(h instanceof Qt)this.KF(h,l,i);else if(h instanceof Jt)this.AT(h,d);else if(h instanceof Ut)this.FONT(h,d);return g(n).forEach(([h,c])=>{if(!f[h])f[h]={};g(c).forEach(([m,w])=>{let F=w.join(", ");if(!f[h][F])f[h][F]=[];f[h][F].push(m)})}),g(s).forEach(([h,c])=>{g(c).forEach(([m,w])=>{if(!y[m])y[m]={};g(w).forEach(([F,x])=>{let D=`@supports(${h})`;if(!y[m][D])y[m][D]={};let ne=x.join(", ");if(!y[m][D][ne])y[m][D][ne]=new Set;y[m][D][ne].add(F)})})}),g(f).forEach(([h,c])=>{let m=[],w=[];if(g(c).forEach(([F,x])=>{if(x.some((D)=>{return D.startsWith("animation")||D.startsWith("transition")}))w.push(L(F,x));else m.push(L(F,x))}),w.length)m.unshift(...w);if(l[h])g(l[h]).forEach(([F,x])=>{m.push(L(F,x))});if(y[h])g(y[h]).forEach(([F,x])=>{let D=g(x).map(([ne,Cr])=>{return L(ne,[...Cr])});m.push(L(F,D))});if(m.length)if(d.add(`/* -------------- ${h+(h===t?" ( default )":"")} */`),h===t)d.add(m.join(`
|
|
5
|
-
`));else{let F=h.split("-").map((x)=>r[x]).join(" and ");d.add(`@media ${F} {
|
|
6
|
-
${m.join(`
|
|
7
|
-
`)}
|
|
8
|
-
}`)}}),this.css=[...d].join(`
|
|
9
|
-
`),this}ClassID(e,t,r,i){let n=(s,l,d,f,y)=>{g(l).forEach(([h,c])=>{this.push(y,d,h,f,de(s,c,e.UNIT))})};e.DATA.forEach((s,l)=>{let d=rn(l,e.PREFIX),f=this.getCID(l,e.PREFIX,i);s.forEach((y,h)=>{if(h==="supports"){if(C(y))y.forEach((c)=>{c.value.forEach((m,w)=>{if(!(w in r))r[w]={};m.forEach((F)=>{g(F).forEach(([x,D])=>{n(x,D,d,f,r[w])})})})})}else n(h,y,d,f,t)})}),e.IMPORTED.forEach((s)=>{this.ClassID(s,t,r,s.EXPORT)})}KF(e,t,r){let i=(n,s,l)=>{$t(t,n,s),t[n][s].push(l)};e.DATA.forEach((n,s)=>{n.forEach((l,d)=>{let f={};l.forEach((y,h)=>{if(h==="supports")Te.e=["@supports not supported in @keyframes",{error:"support in keyframes"}];else g(y).forEach(([c,m])=>{if(this.shaker.length){let w=s.split(" ")[1];if(r.has(w)){if([...r.get(w)].some((F)=>{return this.getCID(F,"",!1,!1)})){if(!(c in f))f[c]=[];f[c].push(de(h,m,e.UNIT))}}}else{if(!(c in f))f[c]=[];f[c].push(de(h,m,e.UNIT))}})}),g(f).forEach(([y,h])=>{i(y,s,L(d,h))})})}),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,l=/\b([a-zA-Z][a-zA-Z0-9]*)\b(?![^{}]*})/g,d=[...new Set(De(e,n)),...new Set(De(e,s))];if(i&&v(r)&&r)d.forEach((f)=>{this.CID.init(f.replaceAll("-","_"),new Set).add(t+f)});return d.push(...new Set(De(e,l))),d.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)$t(e,r,n),tn(e,r,n,t)}}var L=(e,t)=>{return`${e} {
|
|
12
|
-
${t.join(`
|
|
13
|
-
`)}
|
|
14
|
-
}`},De=(e,t)=>{return vi(e.matchAll(t),(r)=>r[1])},$t=(e,t,r)=>{try{if(!e[t])e[t]={},e[t][r]=[];if(!e[t][r])e[t][r]=[]}catch(i){Te.e=[`property "${t}" not found!`,{error:"@ensurePropsInitialized"}]}},tn=(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()))},rn=(e,t)=>{if(t)return e.replaceAll(/\.|\#/g,(r)=>r+t);return e};class It{static minmax(e,t){return`minmax(${o([e,t],{rem:!0,delimeter:", "})})`}static fitContent(e){return`fit-content(${o([e],{rem:!0})})`}static repeat(e,...t){return`repeat(${o([e,o([t],{rem:!0})],{delimeter:", "})})`}}class u extends It{static attr(e,t,r){return`attr(${o([e,t,r])})`}static blur(e){return`blur(${o([e],{rem:!0})})`}static brightness(e){return`brightness(${o([e])})`}static calc(...e){return`calc(${o(e,{rem:!0})})`}static circle(e,t){return`circle(${o([e,t],{rem:!0})})`}static clamp(e,t,r){return`clamp(${o([e,t,r],{rem:!0,delimeter:", "})})`}static colorMix(e,t,r){return`color-mix(${o([e,o(Ae(t)?t:[t]),o(Ae(r)?r:[r])],{delimeter:", "})})`}static conicGradient(...e){return`conic-gradient(${o(e,{delimeter:", "})})`}static contrast(e){return`contrast(${o([e])})`}static cubicBezier(e,t,r,i){return`cubic-bezier(${o([e,t,r,i],{delimeter:", "})})`}static dropShadow(...e){return`drop-shadow(${o(e,{rem:!0})})`}static grayscale(e){return`grayscale(${o([e])})`}static hsl(e,t,r){return`hsl(${o([e,t,r])})`}static hsla(e,t,r,i){return`hsl(${o([e,t,r,i?["/",i]:i])})`}static hueRotate(e){return`hue-rotate(${o([e],{degree:!0})})`}static inset(...e){return`inset(${o(e,{rem:!0})})`}static invert(e){return`invert(${o([e])})`}static linearGradient(...e){return`linear-gradient(${o(e,{delimeter:", "})})`}static matrix(e,t,r,i,n,s){return`matrix(${o([e,t,r,i,n,s],{delimeter:", "})})`}static matrix3d(e,t,r,i){return`matrix3d(${o([e,t,r,i],{delimeter:", "})})`}static max(...e){return`max(${o(e,{rem:!0,delimeter:", "})})`}static min(...e){return`min(${o(e,{rem:!0,delimeter:", "})})`}static opacity(e){return`opacity(${o([e])})`}static path(e){return`path(${o([e],{quote:!0})})`}static clipPath(e,t){return`path(${o([e,o([t],{quote:!0})],{delimeter:", "})})`}static perspective(e){return`perspective(${o([e])})`}static polygon(...e){return`polygon(${o(e,{percent:!0,delimeter:", "})})`}static ray(...e){return`ray(${o(e,{degree:!0})})`}static radialGradient(...e){return`radial-gradient(${o(e,{delimeter_arr:", ",percent:!0,delimeter:", "})})`}static repeatingConicGradient(...e){return`repeating-conic-gradient(${o(e,{degree:!0,delimeter:", "})})`}static repeatingLinearGradient(...e){return`repeating-linear-gradient(${o(e,{degree:!0,delimeter:", "})})`}static repeatingRadialGradient(...e){return`repeating-radial-gradient(${o(e,{degree:!0,delimeter:", "})})`}static rgb(e,t,r){return`rgb(${o([e,t,r])})`}static rgba(e,t,r,i){return`rgba(${o([e,t,r,i?["/",i]:void 0],{delimeter_arr:" "})})`}static rotate(e){return`rotate(${o([e],{degree:!0})})`}static rotate3d(e,t,r,i){return`rotate3d(${o([o([e,t,r],{delimeter:", "}),i],{degree:!0,delimeter:", "})})`}static rotateX(e){return`rotateX(${o([e],{degree:!0})})`}static rotateY(e){return`rotateY(${o([e],{degree:!0})})`}static rotateZ(e){return`rotateZ(${o([e],{degree:!0})})`}static saturate(...e){return`saturate(${o(e)})`}static scale(e,t){return`scale(${o([e,t],{delimeter:", "})})`}static scale3d(e,t,r){return`scale3d(${o([e,t,r],{delimeter:", "})})`}static scaleX(e){return`scaleX(${o([e])})`}static scaleY(e){return`scaleY(${o([e])})`}static scaleZ(e){return`scaleZ(${o([e])})`}static sepia(e){return`sepia(${o([e])})`}static skew(...e){return`skew(${o(e,{degree:!0,delimeter:", "})})`}static skewX(e){return`skewX(${o([e],{degree:!0})})`}static skewY(e){return`skewY(${o([e],{degree:!0})})`}static steps(e,t){return`steps(${o([e,t],{delimeter:", "})})`}static translate(...e){return`translate(${o(e,{rem:!0,delimeter:", "})})`}static translate3d(...e){return`translate3d(${o(e,{rem:!0,delimeter:", "})})`}static translateX(e){return`translateX(${o([e],{rem:!0})})`}static translateY(e){return`translateY(${o([e],{rem:!0})})`}static translateZ(...e){return`translateZ(${o(e,{rem:!0,delimeter:", "})})`}static url(e){return`url(${o([e],{quote:!0})})`}static var(e,t=""){e="--"+zt(e);let r=t?", "+o([t],{rem:!0,delimeter:", "}):"";return`var(${o([e],{rem:!0})}${r})`}}var p=(e)=>{let t=Number(e);if(t)return t;return e};class a extends _{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 l=i.prop;if(i.propFN)l=i.propFN(n);let d=n;if(i.string)d=n.replaceAll("_",i.replacer);if(i.valFN)d=i.valFN(d);i._value={[l]:d}}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]:u.var(e,t)};return this}}class Se{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 Ze extends Se{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 Nt extends Se{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 le=(e,t,r="justifyContent",i=["flex-start","flex-end"])=>{let{direction:n,reversed:s}=e.data,l=n==="row";if(l)e._value={alignItems:t};else{if(s)i.reverse();e._value={alignItems:t}}if(l&&s)i.reverse();return new Ze(e,r,i,i[0])},j=(e,t,r="gap")=>{return e._value={[r]:t},e};class Yt extends a{prop="gap";valFN=p}class kt extends a{constructor({prefix:e="",data:t={direction:"row",reversed:!1},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 Yt({values:this._value})}}class Kt extends a{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 Ht extends a{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 je extends kt{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 Kt({values:this._value})}get JUSTIFY(){return new Ht({values:this._value})}get BASELINE(){return le(this,"baseline")}get STRETCH(){return le(this,"stretch")}get CENTER(){return le(this,"center")}get START(){return le(this,"flex-start")}get END(){return le(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 Ze(this,"alignContent",["flex-start","flex-end"],"stretch")}get SELF(){return new Nt(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 M extends a{prop="";valFN=p;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]:u.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]:u.var(e,t)},this}}class Ge extends a{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:u.clamp("100vh","100dvh","100lvh"),width:u.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:u.var(e,t),width:u.var(e,t)},this}}class q extends a{valFN=p;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()]:u.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 a{prop="";valFN=p;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 he=(e)=>typeof e==="string",I=(e)=>Array.isArray(e);var ee=(e)=>{return I(e)?e:[e]};function Qe(e=3){let i=((Error().stack?.split(`
|
|
15
|
-
`)??[])[e]||"").match(/at\s+([^(]+)\s*\(/);return(i?i[1].split(".").pop()?.trim():"?")??"?"}class Xt{name;constructor(e){this.name=e}log=(...e)=>{let t=Qe(3);console.log(`[${this.name}.${t}]`,...e)};set i(e){let t=Qe(3);console.log(`[${this.name}.${t}]`,...ee(e))}}class Vt{static logger=(e)=>{return new Xt(he(e)?e:e.constructor.name)};static set f(e){let t=Qe();console.log(`[${t}]`,...ee(e))}static set i(e){console.info(...ee(e))}static set e(e){console.error(...ee(e))}static set w(e){console.warn(...ee(e))}static set d(e){let t=new Date().toLocaleTimeString();console.log(...ee(e),` @ ${t}`)}}var te=(e)=>{if(e.startsWith("webkit"))e="-"+e;return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};var k=Object.entries;var N=(e,t=2)=>String(e).padStart(t,"0"),Rt=new Map;function re(e,t){let r=JSON.stringify({locale:t,...e}),i=Rt.get(r);if(!i)i=new Intl.DateTimeFormat(t,e),Rt.set(r,i);return i}var Je={YYYY:(e)=>String(e.getFullYear()),YY:(e)=>N(e.getFullYear()%100),MMMM:(e,t)=>re({month:"long"},t).format(e),MMM:(e,t)=>re({month:"short"},t).format(e),MM:(e)=>N(e.getMonth()+1),M:(e)=>String(e.getMonth()+1),dddd:(e,t)=>re({weekday:"long"},t).format(e),ddd:(e,t)=>re({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(re({hour:"numeric",hour12:!0},t).formatToParts(e).find((n)=>n.type==="dayPeriod")?.value??(e.getHours()<12?"AM":"PM")).toUpperCase()},a:(e,t)=>{return(re({hour:"numeric",hour12:!0},t).formatToParts(e).find((n)=>n.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 gn(){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 pn(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=gn(),s=new Map;return t.replace(n,(l)=>{if(s.has(l))return s.get(l);let d=Je[l],f=d?d(i,r):l;return s.set(l,f),f})}Date.prototype.format=function(e,t){return pn(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 Pt=(e=6,t)=>{if(!t)return Math.floor(Math.random()*e);return Math.round(Math.random()*(t-e)+e)},ie=()=>{let e=Object.values(ce),t=Pt(0,e.length-1);return e[t]},ce={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 pe extends a{prop="";constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}var Ot=(e=!1)=>{let t=Object.values(ce),r=Pt(0,t.length-1),i=t[r];if(e)i.reverse();return A(i[0],{dark:i[1]})};class vt extends pe{valFN=(e)=>{let t=ce[String(e)];return A(t[1],{dark:t[0]})};get random(){return this._value={[this.prop]:Ot(!0)},this}}class er extends pe{valFN=(e)=>{let t=ce[String(e)];return A(t[0],{dark:t[1]})};get random(){return this._value={[this.prop]:Ot()},this}}class b extends pe{valFN=(e)=>{return ce[e][0]};color(e){return this._value={[this.prop]:e},this}rgba(e,t,r,i){return this._value={[this.prop]:u.rgba(e,t,r,i)},this}get random(){return this._value={[this.prop]:ie()[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 er({values:this._value,data:{prop:this.data.prop}})}get AUTODARK(){return new vt({values:this._value,data:{prop:this.data.prop}})}get MIX(){return new tr({values:this._value,data:{prop:this.data.prop}})}}var $=(e,t,r,i)=>{return{[e]:u.colorMix(`in ${t}`,I(r)?r:[r],I(i)?i:[i])}};class tr extends a{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 K extends _{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 K({values:this._values,data:{side:"Top"}})}get RIGHT(){return new K({values:this._values,data:{side:"Right"}})}get LEFT(){return new K({values:this._values,data:{side:"Left"}})}get BOTTOM(){return new K({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",ie()[0]]},this}get bRandom(){let e=["border",this.data.side,""].join("");return this._value={[e]:["1px solid",ie()[0]]},this}get COLOR(){let e=["border",this.data.side,"Color"].join("");return new b({values:this._value,data:{prop:e}})}}function me(e){return new Proxy(this,{get(t,r){let i=Number(r);if(i)t._value={[e]:i};return t}})}class Ue extends a{prop="borderRadius";valFN=p;v(e){this._value={borderRadius:e}}get tL(){return me.call(this,"borderTopLeftRadius")}get tR(){return me.call(this,"borderTopRightRadius")}get bR(){return me.call(this,"borderBottomRightRadius")}get bL(){return me.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 Ie extends a{prop="cursor"}class Ne extends a{prop="display"}class Ye extends a{prop="position"}class fe extends _{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 ke extends a{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 Ke extends a{prop="zIndex"}class He extends a{prop="whiteSpace"}class ye extends a{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 Xe extends a{prop="verticalAlign";valFN=p;px(e){return this._value={verticalAlign:`${e}px`},this}pr(e){return this._value={verticalAlign:`${e}%`},this}}class Fe extends a{get select(){return this._value={userSelect:"auto"},this}get none(){return this._value={userSelect:"none"},this}}class be extends a{get auto(){return this._value={pointerEvents:"auto"},this}get none(){return this._value={pointerEvents:"none"},this}}class Ve extends a{prop="lineHeight";valFN=p}class Le extends a{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:u.var(e,t)},this}}var mn={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 Re extends a{prop="transitionProperty";properties=new Set;valFN=(e)=>{return mn[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 rr extends a{propFN=()=>{return this.data.prop};cubicBezier(e,t,r,i){return this._value={[this.propFN()]:u.cubicBezier(e,t,r,i)},this}steps(e,t){return this._value={[this.propFN()]:u.steps(e,t)},this}}class Pe extends a{valFN=(e)=>{return`${e}s`};propFN=()=>{return this.data.prop}}class we extends a{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 rr({data:{prop:this.data.isAnim?"animationTimingFunction":"transitionTimingFunction"},values:this._values})}get DELAY(){return new Pe({data:{prop:this.data.isAnim?"animationDelay":"transitionDelay"},values:this._values})}get DURATION(){return new Pe({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]:u.var(e,t)},this}}class Oe extends we{get PROPERTY(){return new Re({values:this._values})}property(...e){return new Re({values:this._values}).property(...e)}}class ir extends _{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:u.translateY("0%"),animationTimingFunction:u.cubicBezier(0.8,0,1,1)},"50%":{transform:u.translateY("20%"),animationTimingFunction:u.cubicBezier(0,0,0.2,1)}},this}get ping(){return this._value={animation:["ping","1s",u.cubicBezier(0,0,0.2,1),"infinite"]},this.data.kf.ping={"100%, 75%":{transform:u.scale(1.5),opacity:0}},this}get pulse(){return this._value={animation:["pulse","1s",u.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:u.rotate(360)}},this}}class nr extends a{prop="animationDirection"}class sr extends a{prop="animationFillMode"}class ar extends a{prop="animationIterationCount";get infinite(){return this._value={[this.prop]:"infinite"},this}}class ve extends _{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 _e extends we{SET(e){return new ir({data:{kf:e}})}name(e){return new ve({values:this._values}).name(e)}animation(e){return new ve({values:this._values}).animation(e)}get DIRECTION(){return new nr({values:this._values})}get FILL(){return new sr({values:this._values})}get ITERATION(){return new ar({values:this._values})}}class or extends a{prop="backgroundAttachment"}class ur extends a{prop="backgroundBlendMode"}class et extends a{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 lr extends a{prop="backgroundSize";valFN=p;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 hr extends a{prop="backgroundPosition";replacer=" ";value(e){return this._value={[this.prop]:e},this}XY(e,t){return this._value={[this.prop]:[e,t]},this}}class cr extends a{prop="backgroundImage";url(e){return this._value={[this.prop]:u.url(e)},this}conic(...e){return this._value={[this.prop]:u.conicGradient(...e)},this}repeatingConic(...e){return this._value={[this.prop]:u.repeatingConicGradient(...e)},this}linear(...e){return this._value={[this.prop]:u.linearGradient(...e)},this}repeatingLinear(...e){return this._value={[this.prop]:u.repeatingLinearGradient(...e)},this}radial(...e){return this._value={[this.prop]:u.radialGradient(...e)},this}repeatingRadial(...e){return this._value={[this.prop]:u.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]:u.var(e,t)},this}}class tt{get ATTACH(){return new or}get BLEND(){return new ur}get CLIP(){return new et({data:{name:"backgroundClip"}})}get ORIGIN(){return new et({data:{name:"backgroundOrigin"}})}get COLOR(){return new b({data:{prop:"backgroundColor"}})}get SIZE(){return new lr}get IMAGE(){return new cr}get POSITION(){return new hr}get random(){return new b({data:{prop:"backgroundColor"}}).random}color(e){return new b({data:{prop:"backgroundColor"}}).color(e)}}class fr extends a{prop="textAlign"}var yn=["none","underline","overline","line_through"];class dr extends a{propFN=(e)=>{if(yn.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 Fn=["over","under","left","right"];class gr extends a{prop="textEmphasis";propFN=(e)=>{if(Fn.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 pr extends a{prop="textIndent";valFN=p}class mr extends a{prop="textJustify"}class yr extends a{prop="textOrientation"}var bn=["auto","under","from_font","left","right"];class Fr extends a{propFN=(e)=>{if(bn.includes(e))return"textUnderlinePosition";return"textUnderlineOffset"};valFN=p;get autoOffset(){return this._value={textUnderlineOffset:"auto"},this}}class rt extends a{get ALIGN(){return new fr}get DECOR(){return new dr}get EMPHASIS(){return new gr}get INDENT(){return new pr}get JUSTIFY(){return new mr}get ORIENTATION(){return new yr}get UNDERLINE(){return new Fr}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 S=(e,t)=>{return e._value={outlineStyle:t},e};class it extends _{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 S(this,"solid")}get dotted(){return S(this,"dotted")}get none(){return S(this,"none")}get hidden(){return S(this,"hidden")}get dashed(){return S(this,"dashed")}get double(){return S(this,"double")}get groove(){return S(this,"groove")}get ridge(){return S(this,"ridge")}get inset(){return S(this,"inset")}get outset(){return S(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",ie()[0]]},this}get COLOR(){return new b({values:this._value,data:{prop:"outlineColor"}})}off(e){return H(this,e)}get off0(){return H(this,0)}get off1(){return H(this,1)}get off2(){return H(this,2)}get off3(){return H(this,3)}get off4(){return H(this,4)}get off5(){return H(this,5)}}var H=(e,t)=>{return e._value={outlineOffset:t},e};var Z=(e,t)=>{return e._value={columnRuleStyle:t},e};class br extends _{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 nt extends a{constructor({prefix:e="",data:t={prop:""},values:r={}}={}){super({prefix:e,data:t,values:r});this.prop=this.data.prop}}class st extends _{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 nt({values:this._value,data:{prop:"columnCount"}})}count(e){return this._value={columnCount:e},this}get GAP(){return new nt({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 br({values:this._value})}}class $e extends a{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 u){let n=u[r];t.push(n(i))}}),t.length)this._value={transform:t};return this}var(e,t){return this._value={transform:u.var(e,t)},this}}class at extends a{prop="perspective";valFN=p;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 wn=["break_all","keep_all"];class ot extends a{propFN=(e)=>{if(wn.includes(e))return"wordBreak";return"wordSpacing"};valFN=p;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 ut extends a{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 a{prop="fontSize";valFN=p;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]:u.var(e,t)},this}}class lt extends a{font(e){return this._value={font:e},this}var(e,t){return this._value={font:u.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 xe=(e)=>{let{x:t,y:r,blur:i,spread:n,color:s,inset:l}=e;return o([t,r,i,n,s,l?"inset":void 0],{rem:!0})};class ht extends a{shadows=new Set;value(e){return this.shadows.add(o(e,{rem:!0})),this._value={boxShadow:[...this.shadows].join(", ")},this}set(e){let t=xe(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:u.var(e,t)},this}}class ct extends a{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 ft extends a{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 _r({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:u.var(e,t)},this}}class _r extends a{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 gt extends a{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 dt extends gt{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=te(this.data.aljust).split("-")[0];return new pt({values:this._value,data:{aljust:`${e}Self`,_auto:"auto"}})}}class pt extends gt{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 $r extends a{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:o(e.map((t)=>o(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 xr extends a{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 G=(e,t,r="gap")=>{return e._value={[r]:t},e};class Br extends a{prop="gap";valFN=p}class Dr extends a{constructor({prefix:e="",data:t={},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 Br({values:this._value})}}class mt extends Dr{constructor({prefix:e="",data:t={},values:r={}}={}){super({prefix:e,data:t,values:r});if(!e)this._value={display:"grid"}}get ALIGN(){return new dt({values:this._value,data:{aljust:"alignContent",_auto:"flex-start"}})}get JUSTIFY(){return new dt({values:this._value})}get TEMPLATE(){return new $r({values:this._value})}get AUTO(){return new xr({values:this._value})}get SELF(){return new pt({values:this._value,data:{aljust:"placeSelf",_auto:"auto"}})}grid(e){return this._value={grid:e},this}template(e,t){let r=o(e,{rem:!0}),i=o(t,{rem:!0});return this._value={gridArea:i?r+" / "+i:r},this}area(e){let t="";if(he(e))t=e;else{let{rowS:r,rowE:i,colS:n,colE:s}=e;t=o([r,n,i,s],{delimeter:" / "})}return this._value={gridArea:t},this}col(e,t){return this._value={gridColumn:o([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:o([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 yt extends a{filters=new Set;prop="filter";get none(){return this._value={[this.prop]:"none"},this}filter(e={}){return k(e).forEach(([t,r])=>{if(t==="dropShadow"){let i=xe(r);this.filters.add(u.dropShadow(i))}else if(t==="url")this.filters.add(u.url(r));else if(t==="blur")this.filters.add(u.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(u.hueRotate(r));else{let i=u[t];if(i)this.filters.add(i(`${r}%`))}}),this._value={[this.prop]:[...this.filters]},this}}class Ft extends a{filters=new Set;get none(){return this._value={backdropFilter:"none",webkitBackdropFilter:"none"},this}filter(e={}){return k(e).forEach(([t,r])=>{if(t==="dropShadow"){let i=xe(r);this.filters.add(u.dropShadow(i))}else if(t==="url")this.filters.add(u.url(r));else if(t==="blur")this.filters.add(u.blur(`${r}px`));else if(t==="hueRotate")this.filters.add(u.hueRotate(r));else{let i=u[t];if(i)this.filters.add(i(`${r}%`))}}),this._value={backdropFilter:[...this.filters],webkitBackdropFilter:[...this.filters]},this}}class Be{VARS(e){return Object.entries(e).reduce((t,[r,i])=>{return t[`--${te(r)}`]=i,t},{})}get VAR(){return new Proxy(this,{get(e,t,r){let i=e[t];if(i)return i;return u.var(t)}})}optVAR(e){return new Proxy(this,{get(t,r,i){let n=t[r];if(n)return n;return u.var(r,e)}})}}class Er{static VARS(e){return new Be().VARS(e)}static optVAR(e){return new Be().optVAR(e)}static get VAR(){return new Be().VAR}static get visible(){return new ye().visible}static get hidden(){return new ye().hidden}static get select(){return new Fe().select}static get noSelect(){return new Fe().none}static get pointer(){return new be().auto}static get noPointer(){return new be().none}}class Ar extends Er{static get TRANSITION(){return new Oe}static get ANIMATION(){return new _e({data:{isAnim:!0}})}static animation(e){return new _e({data:{isAnim:!0}}).animation(e)}}class Mr extends Ar{static get BG(){return new tt}static get COLOR(){return new b({data:{prop:"color"}})}static get TEXT(){return new rt}static get FONT(){return new lt}static get FILTER(){return new yt}static get BACKDROP(){return new Ft}static get VALIGN(){return new Xe}static get WORD(){return new ot}static get CURSOR(){return new Ie}static get DISPLAY(){return new Ne}static get POSITION(){return new Ye}static get RADIUS(){return new Ue}static get BORDER(){return new K}static get OUTLINE(){return new it}static get COLUMN(){return new st}static get OVERFLOW(){return new fe}static get OPACITY(){return new ke}static get ZIndex(){return new Ke}static get LINE(){return new Ve}static get WHITESPACE(){return new He}}class _n extends Mr{static get FLEX(){return new je}static get GRID(){return new mt}static get HW(){return new Ge}static get WIDTH(){return new M({data:{wh:"width",first:""}})}static get HEIGHT(){return new M({data:{wh:"height",first:""}})}static get TOP(){return new M({data:{wh:"top",first:""}})}static get LEFT(){return new M({data:{wh:"left",first:""}})}static get RIGHT(){return new M({data:{wh:"right",first:""}})}static get BOTTOM(){return new M({data:{wh:"bottom",first:""}})}static get MAX(){return{get WIDTH(){return new M({data:{wh:"maxWidth",first:"w"}})},get HEIGHT(){return new M({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 M({data:{wh:"minWidth",first:"w"}})},get HEIGHT(){return new M({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 $e}static get PERSPECTIVE(){return new at}static transform(e){return new $e().transform(e)}static get LIST(){return new ut}static get BOX(){return new ct}static get SHADOW(){return new ht}static get SCROLL(){return new ft}static get OVERSCROLL(){return new Le}}export{Vt as log,_n as $};
|
|
1
|
+
export { $, log } from "./$/index.js";
|
|
2
|
+
export { S } from "./$strap/index.js";
|
|
3
|
+
export { T } from "./$tally/index.js";
|
package/package.json
CHANGED
|
@@ -1,19 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shweet/qt",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "Shweet utility",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./$": {
|
|
14
|
+
"types": "./dist/$/index.d.ts",
|
|
15
|
+
"import": "./dist/$/index.js",
|
|
16
|
+
"default": "./dist/$/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./$strap": {
|
|
19
|
+
"types": "./dist/$strap/index.d.ts",
|
|
20
|
+
"import": "./dist/$strap/index.js",
|
|
21
|
+
"default": "./dist/$strap/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./$tally": {
|
|
24
|
+
"types": "./dist/$tally/index.d.ts",
|
|
25
|
+
"import": "./dist/$tally/index.js",
|
|
26
|
+
"default": "./dist/$tally/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./strap": {
|
|
29
|
+
"types": "./dist/$strap/index.d.ts",
|
|
30
|
+
"import": "./dist/$strap/index.js",
|
|
31
|
+
"default": "./dist/$strap/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./tally": {
|
|
34
|
+
"types": "./dist/$tally/index.d.ts",
|
|
35
|
+
"import": "./dist/$tally/index.js",
|
|
36
|
+
"default": "./dist/$tally/index.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
7
39
|
"files": [
|
|
8
40
|
"dist"
|
|
9
41
|
],
|
|
10
42
|
"scripts": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"build": "rm -
|
|
43
|
+
"check": "tsc --noEmit --pretty false",
|
|
44
|
+
"test": "bun test ./test --path-ignore-patterns='**/legacy/*.test.js'",
|
|
45
|
+
"test:watch": "bun test --watch ./test --path-ignore-patterns='**/legacy/*.test.js'",
|
|
46
|
+
"build:types": "rm -rf ./types.next && tsc -p tsconfig.build.json --declarationDir ./types.next && test -f ./types.next/index.d.ts",
|
|
47
|
+
"build:bundle": "bun build ./src/index.ts --outdir ./dist --minify --packages external --target bun",
|
|
48
|
+
"build:declarations": "set -eu; mkdir -p ./dist; rm -rf ./dist/types.prev; had_types=0; if [ -d ./dist/types ]; then mv ./dist/types ./dist/types.prev; had_types=1; fi; if ! mv ./types.next ./dist/types; then rm -rf ./dist/types; if [ \"$had_types\" = 1 ]; then mv ./dist/types.prev ./dist/types; fi; exit 1; fi; rm -rf ./dist/types.prev; rm -f ./dist/index.d.ts",
|
|
49
|
+
"build:strap:bundle": "bun run ./scripts/build-strap.ts bundle",
|
|
50
|
+
"build:strap:types": "bun run ./scripts/build-strap.ts types",
|
|
51
|
+
"build:strap": "bun run build:strap:bundle && bun run build:strap:types",
|
|
52
|
+
"build:tally:bundle": "bun run ./scripts/build-tally.ts bundle",
|
|
53
|
+
"build:tally:types": "bun run ./scripts/build-tally.ts types",
|
|
54
|
+
"build:tally": "bun run build:tally:bundle && bun run build:tally:types",
|
|
55
|
+
"build": "bun run builder.ts"
|
|
17
56
|
},
|
|
18
57
|
"keywords": [
|
|
19
58
|
"css",
|
|
@@ -31,8 +70,13 @@
|
|
|
31
70
|
},
|
|
32
71
|
"homepage": "https://github.com/MARKjotep/-sweetss#readme",
|
|
33
72
|
"devDependencies": {
|
|
34
|
-
"
|
|
35
|
-
"@
|
|
73
|
+
"@ohmyqt/oven": "link:@ohmyqt/oven",
|
|
74
|
+
"@types/bun": "^1.4.5",
|
|
75
|
+
"typescript": "^5.9.3",
|
|
76
|
+
"shweet": "^0.0.37"
|
|
77
|
+
},
|
|
78
|
+
"peerDependencies": {
|
|
79
|
+
"shweet": "^0.0.35"
|
|
36
80
|
},
|
|
37
81
|
"publishConfig": {
|
|
38
82
|
"access": "public"
|