2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
|
"use strict";var s=require("autoprefixer"),e=require("cssdb"),t=require("@csstools/postcss-progressive-custom-properties"),o=require("fs"),i=require("path"),r=require("browserslist"),a=require("postcss-initial"),n=require("postcss-pseudo-class-any-link"),c=require("css-blank-pseudo"),p=require("postcss-page-break"),u=require("@csstools/postcss-cascade-layers"),l=require("postcss-attribute-case-insensitive"),m=require("postcss-clamp"),d=require("@csstools/postcss-color-function"),f=require("postcss-color-functional-notation"),g=require("postcss-custom-media"),b=require("postcss-custom-properties"),h=require("postcss-custom-selectors"),N=require("postcss-dir-pseudo-class"),y=require("@csstools/postcss-normalize-display-values"),k=require("postcss-double-position-gradients"),v=require("postcss-env-function"),w=require("postcss-focus-visible"),q=require("postcss-focus-within"),$=require("@csstools/postcss-font-format-keywords"),O=require("postcss-font-variant"),S=require("postcss-gap-properties"),x=require("css-has-pseudo"),j=require("postcss-color-hex-alpha"),P=require("@csstools/postcss-hwb-function"),F=require("@csstools/postcss-ic-unit"),E=require("postcss-image-set-function"),C=require("@csstools/postcss-is-pseudo-class"),M=require("postcss-lab-function"),_=require("postcss-logical"),A=require("postcss-media-minmax"),R=require("@csstools/postcss-nested-calc"),U=require("postcss-nesting"),T=require("postcss-selector-not"),B=require("@csstools/postcss-oklab-function"),I=require("postcss-opacity-percentage"),V=require("postcss-overflow-shorthand"),W=require("postcss-replace-overflow-wrap"),L=require("postcss-place"),D=require("css-prefers-color-scheme"),H=require("postcss-color-rebeccapurple"),J=require("@csstools/postcss-stepped-value-functions"),z=require("@csstools/postcss-text-decoration-shorthand"),G=require("@csstools/postcss-trigonometric-functions"),K=require("@csstools/postcss-unset-value");function Q(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}var X=Q(s),Y=Q(e),Z=Q(t),ss=Q(o),es=Q(i),ts=Q(r),os=Q(a),is=Q(n),rs=Q(c),as=Q(p),ns=Q(u),cs=Q(l),ps=Q(m),us=Q(d),ls=Q(f),ms=Q(g),ds=Q(b),fs=Q(h),gs=Q(N),bs=Q(y),hs=Q(k),Ns=Q(v),ys=Q(w),ks=Q(q),vs=Q($),ws=Q(O),qs=Q(S),$s=Q(x),Os=Q(j),Ss=Q(P),xs=Q(F),js=Q(E),Ps=Q(C),Fs=Q(M),Es=Q(_),Cs=Q(A),Ms=Q(R),_s=Q(U),As=Q(T),Rs=Q(B),Us=Q(I),Ts=Q(V),Bs=Q(W),Is=Q(L),Vs=Q(D),Ws=Q(H),Ls=Q(J),Ds=Q(z),Hs=Q(G),Js=Q(K);const zs={"blank-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README-BROWSER.md","focus-visible-pseudo-class":"https://github.com/WICG/focus-visible","focus-within-pseudo-class":"https://github.com/jsxtools/focus-within/blob/master/README-BROWSER.md","has-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-has-pseudo/README-BROWSER.md","prefers-color-scheme-query":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-prefers-color-scheme/README-BROWSER.md"},Gs=["blank-pseudo-class","focus-visible-pseudo-class","focus-within-pseudo-class","has-pseudo-class","prefers-color-scheme-query"];async function Ks(s,e,t,o){const i=function(s){return`:root {\n${Object.keys(s).reduce(((e,t)=>(e.push(`\t${t}: ${s[t]};`),e)),[]).join("\n")}\n}\n`}(t),r=function(s){return`${Object.keys(s).reduce(((e,t)=>(e.push(`@custom-media ${t} ${s[t]};`),e)),[]).join("\n")}\n`}(e),a=function(s){return`${Object.keys(s).reduce(((e,t)=>(e.push(`@custom-selector ${t} ${s[t]};`),e)),[]).join("\n")}\n`}(o),n=`${r}\n${a}\n${i}`;await se(s,n)}function Qs(s,e){return`\n\t${s}: {\n${Object.keys(e).reduce(((s,t)=>(s.push(`\t\t'${ee(t)}': '${ee(e[t])}'`),s)),[]).join(",\n")}\n\t}`}function Xs(s,e){return`export const ${s} = {\n${Object.keys(e).reduce(((s,t)=>(s.push(`\t'${ee(t)}': '${ee(e[t])}'`),s)),[]).join(",\n")}\n};\n`}function Ys(s,e){return Promise.all([].concat(e).map((async e=>{if(e instanceof Function)await e({customMedia:Zs(s.customMedia),customProperties:Zs(s.customProperties),customSelectors:Zs(s.customSelectors)});else{const t=e===Object(e)?e:{to:String(e)},o=t.toJSON||Zs;if("customMedia"in t||"custo
|