From 1f8105171c9f98230465aa3d606c1526537b937c Mon Sep 17 00:00:00 2001 From: Nick Mudge Date: Mon, 7 Sep 2020 15:45:14 -0400 Subject: [PATCH] Fixed opacity bug --- .vscode/settings.json | 3 +++ dist/runcss.esm.js | 2 +- dist/runcss.esm.js.map | 2 +- dist/runcss.js | 2 +- dist/runcss.js.map | 2 +- dist/runcss.modern.js | 2 +- dist/runcss.modern.js.map | 2 +- dist/runcss.umd.js | 2 +- dist/runcss.umd.js.map | 2 +- docs/app.js | 2 +- docs/index.html | 2 +- src/runcss.js | 4 ++-- 12 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/dist/runcss.esm.js b/dist/runcss.esm.js index aceae62..778227f 100644 --- a/dist/runcss.esm.js +++ b/dist/runcss.esm.js @@ -1,2 +1,2 @@ -function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(o=t[Symbol.iterator]()).next.bind(o)}var r,o,i,n=function(e){return!isNaN(e)},a=function(e){return!isNaN(parseInt(e))},l=function(e){return e.split("!")},s=function(e,t){return l(e).indexOf(t)},c=function(e,t){return l(e).includes(t)},f=function(e){return n(e)?q+.25*Number(e)+"rem":q+e},d=function(e){return void 0===e&&(e={}),Object.assign(Object.create(null),e)},p=new Map,u=new Map,m=d({separator:":",screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),b=function(e,t,r){if("string"!=typeof e)throw Error("Component must have a name.");if(e=e.trim(),p.get(e))throw Error("Class '"+e+"' was already processed.");u.set(e,[t,r])},g=function(e){return"[object Object]"===Object.prototype.toString.call(e)},x=function(e){if("string"!=typeof e)throw Error("Hex value is not a hex string.");if(e.startsWith("#")||(e="#"+e),e=4===e.length?e.slice(1).split("").map(function(e){return e+e}).join(""):e.slice(1),!/^[0-9a-f]{6}$/i.test(e))throw Error("Incorrect hex color format.");return e},w=function(e){if(!g(e))throw Error("Config value must be an object.")},h=new Map,v=function(e){void 0===e&&(e=d());for(var r,o=t(l("separator!prefix"));!(r=o()).done;){var i=r.value;if(void 0!==e[i]&&"string"!=typeof e[i])throw Error("config."+i+" must be a string.")}if(e.screens&&w(e.screens),e.colors){w(e.colors);for(var n=0,a=Object.entries(e.colors);n-1)J="font-size:"+(.75+.125*e)+"rem";else if(H.endsWith("xl")){var t=H.split("x")[0];n(t)&&(J="font-size:"+(Number(t)-2)+"rem")}else c("left!center!right!justify",Y)?J="text-align:"+Y:te("color")},font:function(){var e=s("hairline!thin!light!normal!medium!semibold!bold!extrabold!black",H);e>-1?J="font-weight:"+100*(1+e):n(H)&&(J="font-weight:"+H)},whitespace:function(){c("normal!pre!pre-line!pre-wrap",Y)&&(J="white-space:"+Y)},inset:re,top:re,right:re,bottom:re,left:re,flex:function(){var e=function(e,t,r){return void 0===t&&(t=1),void 0===r&&(r="0%"),"-webkit-box-flex:"+e+";-ms-flex:"+e+" "+t+" "+r+";flex:"+e+" "+t+" "+r};if(c("row!row-reverse!col!col-reverse",Y))Y=Y.replace("col","column"),J="-webkit-box-orient:"+("row"===H?"horizontal":"vertical")+";-webkit-box-direction:"+("reverse"===_?_:"normal")+";-ms-flex-direction:"+Y+";flex-direction:"+Y;else if(c("no-wrap!flex-wrap!wrap-reverse",Y))"no-wrap"===Y&&(Y="nowrap"),J="-ms-flex-wrap:"+Y+";flex-wrap:"+Y;else if(c("grow!shrink",H)){Q=1;var t=_||1;J="grow"===H?"-webkit-box-flex:"+t+";-ms-flex-positive:"+t+";flex-grow:"+t:"-ms-flex-negative:"+t+";flex-shrink:"+t}else J="initial"===Y?e(0,1,"auto"):"auto"===Y?e(1,1,"auto"):"none"===Y?"-webkit-box-flex:0;-ms-flex:none;flex:none":B?e(H,_,B):_?e(H,_):e(H)},order:function(){if(n(H)){var e=q+H;J="-webkit-box-ordinal-group:"+(Number(e)+1)+";-ms-flex-order:"+e+";order:"+e}},grid:function(){n(_)&&(J=d({cols:"-ms-grid-columns:(minmax(0,1fr))["+_+"];grid-template-columns: repeat("+_+", minmax(0, 1fr))",span:"-ms-grid-column-span:"+_+";grid-column: span "+_+" / span "+_,start:"-ms-grid-column:"+_+";grid-column-start:"+_,end:"-ms-grid-column-span:"+_+";grid-column-end:"+_,rows:"-ms-grid-rows:(minmax(0,1fr))["+_+"];grid-template-rows: repeat("+_+", minmax(0, 1fr))"})[H])},row:function(){a(_)&&(J=d({span:"-ms-grid-row-span:"+_+";grid-row: span "+_+" / span "+_,start:"-ms-grid-row:"+_+";grid-row-start:"+_,end:"-ms-grid-row-span:"+_+";grid-row-end:"+_,gap:"row-gap:"+f(_)})[H])},col:function(){if(n(_)&&("span"===H?J="-ms-grid-column-span:"+_+";grid-column:span "+_+" / span "+_+";":"start"===H?J="-ms-grid-column:"+_+";grid-column-start:"+_:"end"===H&&(J="-ms-grid-column-span:"+_+";grid-column-end:"+_)),a(_)&&"gap"===H){var e="px"===_?"1px":f(_);J="-webkit-column-gap:"+e+";-moz-column-gap:"+e+"column-gap:"+e}},gap:function(){a(H)&&(J="gap:"+f(H))},space:function(){if(K=[">:not(template)~:not(template)"],"px"===_&&(_="1px"),_)if(a(_)){var e=f(_);"x"===H?J="margin-right:calc("+e+"*var(--space-x-reverse,0));margin-left:calc("+e+"*(1 - var(--space-x-reverse,0)))":"y"===H&&(J="margin-top:calc("+e+"*(1 - var(--space-y-reverse,0)));margin-bottom:calc("+e+"*var(--space-y-reverse,0))")}else"reverse"===_&&(J="--space-"+H+"-reverse:1")},divide:function(){var e;K=[">:not(template)~:not(template)"],Q=1,B||(n(_)?e=_+"px":a(_)?e=_:"reverse"===_?J="--divide-"+H+"-reverse:1":H&&(e="1px"),e&&("y"===H?J="border-top-width:calc("+e+"*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc("+e+"*var(--divide-y-reverse,0)))":"x"===H&&(J="border-right-width:calc("+e+"*var(--divide-x-reverse,0));border-left-width:calc("+e+"*calc(1 - var(--divide-x-reverse,0)))"))),J||te("border-color")},min:function(){a(_)&&("w"!==H&&"h"!==H||(J="min-"+("w"===H?"width":"height")+":"+_))},max:function(){if("w"===H){var e=s("xs!sm!md!lg!xl",_);e>-1?J="max-width:"+(4*e+20)+"rem":a(_)&&(J=_.endsWith("xl")?"max-width:"+(8*parseInt(_)+24)+"rem":"max-width:"+_)}else"h"===H&&a(_)&&(J="max-height:"+_)},tracking:function(){a(H)&&(J="letter-spacing:"+H)},leading:function(){n(H)?J="line-height:"+.25*Number(H)+"rem":a(H)&&(J="line-height:"+H)},placeholder:function(){K.push("::placeholder"),te("color")},align:function(){c("baseline!top!middle!bottom!text-top!text-bottom",Y)&&(J="vertical-align:"+Y)},bg:function(){Y=Y.replace("-"," "),c("bottom!center!left!left bottom!left top!right!right bottom!right top!top",Y)?J="background-position:"+Y:c("repeat!no-repeat!repeat-x!repeat-y",Y)?J="background-repeat:"+Y:c("repeat-round!repeat-space",Y)?J="background-repeat:"+_:c("auto!cover!contain",Y)?J="background-size:"+Y:c("fixed!local!scroll",H)?J="background-attachment:"+H:te("background-color")},rounded:function(){var e,t=Z.indexOf(D);if(a(D)?(e=D,t=9):5===t?e="9999px":t>-1?e=.125*t+"rem":(!H||ee[H]||c("t!b",H[0])&&c("r!l",H[1]))&&(e="0.25rem"),e){var r=ee[H[0]];!H||!_&&t>-1?J="border-radius:"+e:c("t!b",H)?(Q=1,J="border-"+r+"-left-radius:"+e+";border-"+r+"-right-radius:"+e):c("l!r",H)?(Q=1,J="border-top-"+r+"-radius:"+e+";border-bottom-"+r+"-radius:"+e):(Q=2,J="border-"+r+"-"+ee[H[1]]+"-radius:"+e)}},border:function(){var e=ee[H];_&&e?n(_)?(Q=1,J="border-"+e+"-width:"+_+"px"):a(_)&&(J="border-"+e+"-width:"+_):c("solid!dashed!dotted!double!none",H)?J="border-style:"+H:e?(Q=1,J="border-"+e+"-width:1px"):n(H)?J="border-width:"+H+"px":a(H)?J="border-width:"+H:te("border-color")},opacity:function(){n(H)&&(J="opacity:"+100/H)},transition:function(){var e=function(e){return"-webkit-transition-property:"+e+";-o-transition-property:"+e+";transition-property:"+e},t=function(e){return"-webkit-transition-property:-webkit-"+e+";transition-property:-webkit-"+e+";-o-transition-property:"+e+";transition-property:"+e+";transition-property:"+e+",-webkit-"+e};H?"colors"===H?J=e("background-color,border-color,color,fill,stroke"):"shadow"===H?J=t("box-shadow"):"transform"===H?J=t("transform"):H&&(J=e(H)):J=(J="-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform").replace(/S/g,"background-color,border-color,color,fill,stroke,opacity,")},duration:oe,delay:oe,ease:function(){var e=function(e){return"-webkit-transition-timing-function:"+e+";-o-transition-timing-function:"+e+";transition-timing-function:"+e};"in"===Y?J=e("cubic-bezier(0.4,0,1,1)"):"out"===Y?J=e("cubic-bezier(0,0,0.2,1)"):"in-out"===Y?J=e("cubic-bezier(0.4,0,0.2,1)"):"linear"===Y&&(J=e("linear"))},scale:function(){if(n(D)){var e=D/100;c("x!y",H)?(Q=1,J="--transform-scale-"+H+":"+e):J="--transform-scale-x:"+e+";--transform-scale-y:"+e}},rotate:function(){n(H)&&(J="--transform-rotate:"+q+H+"deg")},translate:function(){if(c("x!y",H)){if("px"===_)_="1px";else if("full"===_)_="100%";else if(_.includes("/")){var e=_.split("/");2===e.length&&(_=Number(e[0])/Number(e[1])+"%")}a(_)&&(J="--transform-translate-"+H+":"+f(_))}},skew:function(){c("x!y",H)&&n(_)&&(J="--transform-skew-"+H+":"+(q+_)+"deg")},transform:function(){var e="translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))";J="-webkit-transform:"+e+";-ms-transform:"+e+";transform:"+e},origin:function(){c("center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left",Y)&&(Y=Y.replace("-"," "),J="-webkit-transform-origin:"+Y+";-ms-transform-origin:"+Y+";transform-origin:"+Y)},cursor:function(){c("auto!default!pointer!wait!text!move!not-allowed",Y)&&(J="cursor:"+Y)},shadow:function(){var e=d({xs:"0 0 0 1pxR.05)",sm:"0 1px 2px 0R.05)","":"0 1px 3px 0R.1), 0 1px 2px 0R.06)",md:"0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)",lg:"0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)",xl:"0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)","2xl":"0 25px 50px -12pxR.25)",inner:"inset 0 2px 4px 0R.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"})[H];e&&(e=e.replace(/R/g," rgba(0, 0, 0, 0"),console.log(e),J="-webkit-box-shadow:"+e+";box-shadow:"+e)},outline:function(){H&&(J="outline:"+Y.replace("-"," "))},pointer:function(){H&&(J="pointer-events:"+H)},select:function(){c("none!auto!text!contain!all!inherit!initial!unset",Y)&&(J="-webkit-user-select:"+Y+";-moz-user-select:"+Y+";-ms-user-select:"+Y+";user-select:"+Y)},fill:function(){H&&(J="fill:"+H)},stroke:function(){n(H)?J="stroke-width:"+H:H&&(J="stroke:"+H)},items:function(){c("stretch!start!center!end!baseline",Y)&&(J="-webkit-box-align:"+Y+";-ms-flex-align:"+Y+";align-items:"+(c("start!end",Y)?"flex-":"")+Y)},content:function(){if(c("start!center!end!between!around")){var e=Y;c("start!end",Y)?Y="flex-"+Y:"between"===Y?(e="justify",Y="space-"+Y):"around"===Y&&(e="distribute",Y="space-"+Y),J="-ms-flex-line-pack:"+e+";align-content:"+Y}},self:function(){if(c("auto!start!center!end!stretch",Y)){var e="-ms-grid-row-align:"+Y+";",t=Y;c("start!end",Y)&&(Y="flex-"+Y,e=""),J="-ms-flex-item-align:"+t+";"+e+"align-self:"+Y}},justify:function(){if(c("start!center!end!between!around",Y)){var e=Y;"between"===e?(e="justify",Y="space-"+Y):c("start!end")&&(Y="flex-"+Y);var t="-webkit-box-pack:"+e+";";"around"===e&&(e="distribute",Y="space-"+Y,t=""),J=t+"-ms-flex-pack:"+e+";justify-content:"+Y}}}),ne=/[^:]+::?|.+/g,ae=/[.*+\-?^${}()|[\]\\]/g;function le(){Q=0,J="",q="",k=y;var e=m.separator;":"!==e&&(y=y.replace(new RegExp(e.replace(ae,"\\$&"),"g"),":")),K=y.match(ne),y=K.pop(),K=K.map(function(e){return e.endsWith("::")?"::"+e.slice(0,-2):":"+e.slice(0,-1)});var r=u.get(y);if(r){var i=r[0],l=r[1],s=[k.slice(0,k.lastIndexOf(y)),K],c=s[0],f=s[1];if(o=k,"string"==typeof i)for(var d,p=t(i.trim().replace(/\s\s+/g," ").split(" "));!(d=p()).done;)y=c+(y=d.value),le();return K=f,l&&"string"==typeof l&&pe(l),void(o="")}if("-"===y[0]&&(q="-",y=y.slice(1)),"string"==typeof m.prefix){if(!y.startsWith(m.prefix))return void fe();y=y.slice(m.prefix.length)}var b=y.split("-");F=b[0];var g=b[1];H=void 0===g?"":g;var x=b[2];_=void 0===x?"":x;var w,h=b[3];if(B=void 0===h?"":h,D=b[b.length-1],G=b.slice(0,-1).join("-"),Y=b.slice(1).join("-"),!(J=N[y])&&(w=ie[F])?w():F.length<3&&!_&&function(){var e;if("px"===H)e=q+"1px";else if("full"===H)e="100%";else if("screen"===H)"w"===F?e="100vw":"h"===F&&(e="100vh");else if("auto"===H)e="auto";else if(n(H))e=q+.25*Number(H)+"rem";else if(H.indexOf("/")>-1){var t=H.split("/"),r=t[0],o=t[1];n(r)&&n(o)&&(e=q+(Number(r)/Number(o)).toFixed(6)+"%")}else a(H)&&(e=q+H);var i=S[F[0]],l=ee[F[1]];e&&i&&("x"===F[1]?(Q=1,J=i+"-right:"+e+";"+i+"-left:"+e):"y"===F[1]?(Q=1,J=i+"-top:"+e+";"+i+"-bottom:"+e):l?(Q=2,J=i+"-"+l+":"+e):J=i+":"+e)}(),J)pe(J);else if("container"===y){pe("width:100%");for(var v=0,j=Object.entries(m.screens);v0){for(var e,r=[],o=t(document.styleSheets);!(e=o()).done;)r.push.apply(r,se(e.value));var i=K[0].slice(1);if(m.screens[i])for(var n,a=Object.entries(m.screens),l=t(r);!(n=l()).done;){var s=n.value,c=s[0],f=s[1],p=ce.get(f);if(!p){p=d();for(var u,b=t(a);!(u=b()).done;){var g=u.value;p[g[0]]=f.cssRules[f.insertRule("@media(min-width:"+g[1]+"){}",f.cssRules.length)]}ce[f]=p}pe(c,p[i])}else for(var x,w=t(r);!(x=w()).done;){var h=x.value;pe(h[0],h[1])}}},de=d({"::placeholder":"::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P".replace(/P/g,"placeholder"),"::selection":":::-moz-selection"});function pe(e,r){var i="",n=k,a="default",s="",f=function(){try{r.insertRule(s+"."+n+i+"{"+e+"}",r.cssRules.length)}catch(e){}};if(o&&(n=o,a="custom"),n=n.replace(/[.:()&@~*^$%,#]/g,"\\$&"),m.important&&(!0===m.important?e=e.replace(/;/g,"!important;")+"!important":"string"==typeof m.important&&(s=m.important+" ")),K.length>0){var d=z.get(a+K[0].slice(1)+Q);d&&(r=r||d,K.shift())}if(r||(r=z.get(a+Q)),K.length>0){for(var p=0,u=[].concat(K);pe.length)&&(t=e.length);for(var r=0,o=new Array(t);r=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(o=t[Symbol.iterator]()).next.bind(o)}var r,o,i,n=function(e){return!isNaN(e)},a=function(e){return!isNaN(parseInt(e))},l=function(e){return e.split("!")},s=function(e,t){return l(e).indexOf(t)},c=function(e,t){return l(e).includes(t)},f=function(e){return n(e)?q+.25*Number(e)+"rem":q+e},d=function(e){return void 0===e&&(e={}),Object.assign(Object.create(null),e)},p=new Map,u=new Map,m=d({separator:":",screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),b=function(e,t,r){if("string"!=typeof e)throw Error("Component must have a name.");if(e=e.trim(),p.get(e))throw Error("Class '"+e+"' was already processed.");u.set(e,[t,r])},g=function(e){return"[object Object]"===Object.prototype.toString.call(e)},x=function(e){if("string"!=typeof e)throw Error("Hex value is not a hex string.");if(e.startsWith("#")||(e="#"+e),e=4===e.length?e.slice(1).split("").map(function(e){return e+e}).join(""):e.slice(1),!/^[0-9a-f]{6}$/i.test(e))throw Error("Incorrect hex color format.");return e},w=function(e){if(!g(e))throw Error("Config value must be an object.")},h=new Map,v=function(e){void 0===e&&(e=d());for(var r,o=t(l("separator!prefix"));!(r=o()).done;){var i=r.value;if(void 0!==e[i]&&"string"!=typeof e[i])throw Error("config."+i+" must be a string.")}if(e.screens&&w(e.screens),e.colors){w(e.colors);for(var n=0,a=Object.entries(e.colors);n-1)J="font-size:"+(.75+.125*e)+"rem";else if(H.endsWith("xl")){var t=H.split("x")[0];n(t)&&(J="font-size:"+(Number(t)-2)+"rem")}else c("left!center!right!justify",Y)?J="text-align:"+Y:te("color")},font:function(){var e=s("hairline!thin!light!normal!medium!semibold!bold!extrabold!black",H);e>-1?J="font-weight:"+100*(1+e):n(H)&&(J="font-weight:"+H)},whitespace:function(){c("normal!pre!pre-line!pre-wrap",Y)&&(J="white-space:"+Y)},inset:re,top:re,right:re,bottom:re,left:re,flex:function(){var e=function(e,t,r){return void 0===t&&(t=1),void 0===r&&(r="0%"),"-webkit-box-flex:"+e+";-ms-flex:"+e+" "+t+" "+r+";flex:"+e+" "+t+" "+r};if(c("row!row-reverse!col!col-reverse",Y))Y=Y.replace("col","column"),J="-webkit-box-orient:"+("row"===H?"horizontal":"vertical")+";-webkit-box-direction:"+("reverse"===_?_:"normal")+";-ms-flex-direction:"+Y+";flex-direction:"+Y;else if(c("no-wrap!flex-wrap!wrap-reverse",Y))"no-wrap"===Y&&(Y="nowrap"),J="-ms-flex-wrap:"+Y+";flex-wrap:"+Y;else if(c("grow!shrink",H)){Q=1;var t=_||1;J="grow"===H?"-webkit-box-flex:"+t+";-ms-flex-positive:"+t+";flex-grow:"+t:"-ms-flex-negative:"+t+";flex-shrink:"+t}else J="initial"===Y?e(0,1,"auto"):"auto"===Y?e(1,1,"auto"):"none"===Y?"-webkit-box-flex:0;-ms-flex:none;flex:none":B?e(H,_,B):_?e(H,_):e(H)},order:function(){if(n(H)){var e=q+H;J="-webkit-box-ordinal-group:"+(Number(e)+1)+";-ms-flex-order:"+e+";order:"+e}},grid:function(){n(_)&&(J=d({cols:"-ms-grid-columns:(minmax(0,1fr))["+_+"];grid-template-columns: repeat("+_+", minmax(0, 1fr))",span:"-ms-grid-column-span:"+_+";grid-column: span "+_+" / span "+_,start:"-ms-grid-column:"+_+";grid-column-start:"+_,end:"-ms-grid-column-span:"+_+";grid-column-end:"+_,rows:"-ms-grid-rows:(minmax(0,1fr))["+_+"];grid-template-rows: repeat("+_+", minmax(0, 1fr))"})[H])},row:function(){a(_)&&(J=d({span:"-ms-grid-row-span:"+_+";grid-row: span "+_+" / span "+_,start:"-ms-grid-row:"+_+";grid-row-start:"+_,end:"-ms-grid-row-span:"+_+";grid-row-end:"+_,gap:"row-gap:"+f(_)})[H])},col:function(){if(n(_)&&("span"===H?J="-ms-grid-column-span:"+_+";grid-column:span "+_+" / span "+_+";":"start"===H?J="-ms-grid-column:"+_+";grid-column-start:"+_:"end"===H&&(J="-ms-grid-column-span:"+_+";grid-column-end:"+_)),a(_)&&"gap"===H){var e="px"===_?"1px":f(_);J="-webkit-column-gap:"+e+";-moz-column-gap:"+e+"column-gap:"+e}},gap:function(){a(H)&&(J="gap:"+f(H))},space:function(){if(K=[">:not(template)~:not(template)"],"px"===_&&(_="1px"),_)if(a(_)){var e=f(_);"x"===H?J="margin-right:calc("+e+"*var(--space-x-reverse,0));margin-left:calc("+e+"*(1 - var(--space-x-reverse,0)))":"y"===H&&(J="margin-top:calc("+e+"*(1 - var(--space-y-reverse,0)));margin-bottom:calc("+e+"*var(--space-y-reverse,0))")}else"reverse"===_&&(J="--space-"+H+"-reverse:1")},divide:function(){var e;K=[">:not(template)~:not(template)"],Q=1,B||(n(_)?e=_+"px":a(_)?e=_:"reverse"===_?J="--divide-"+H+"-reverse:1":H&&(e="1px"),e&&("y"===H?J="border-top-width:calc("+e+"*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc("+e+"*var(--divide-y-reverse,0)))":"x"===H&&(J="border-right-width:calc("+e+"*var(--divide-x-reverse,0));border-left-width:calc("+e+"*calc(1 - var(--divide-x-reverse,0)))"))),J||te("border-color")},min:function(){a(_)&&("w"!==H&&"h"!==H||(J="min-"+("w"===H?"width":"height")+":"+_))},max:function(){if("w"===H){var e=s("xs!sm!md!lg!xl",_);e>-1?J="max-width:"+(4*e+20)+"rem":a(_)&&(J=_.endsWith("xl")?"max-width:"+(8*parseInt(_)+24)+"rem":"max-width:"+_)}else"h"===H&&a(_)&&(J="max-height:"+_)},tracking:function(){a(H)&&(J="letter-spacing:"+H)},leading:function(){n(H)?J="line-height:"+.25*Number(H)+"rem":a(H)&&(J="line-height:"+H)},placeholder:function(){K.push("::placeholder"),te("color")},align:function(){c("baseline!top!middle!bottom!text-top!text-bottom",Y)&&(J="vertical-align:"+Y)},bg:function(){Y=Y.replace("-"," "),c("bottom!center!left!left bottom!left top!right!right bottom!right top!top",Y)?J="background-position:"+Y:c("repeat!no-repeat!repeat-x!repeat-y",Y)?J="background-repeat:"+Y:c("repeat-round!repeat-space",Y)?J="background-repeat:"+_:c("auto!cover!contain",Y)?J="background-size:"+Y:c("fixed!local!scroll",H)?J="background-attachment:"+H:te("background-color")},rounded:function(){var e,t=Z.indexOf(D);if(a(D)?(e=D,t=9):5===t?e="9999px":t>-1?e=.125*t+"rem":(!H||ee[H]||c("t!b",H[0])&&c("r!l",H[1]))&&(e="0.25rem"),e){var r=ee[H[0]];!H||!_&&t>-1?J="border-radius:"+e:c("t!b",H)?(Q=1,J="border-"+r+"-left-radius:"+e+";border-"+r+"-right-radius:"+e):c("l!r",H)?(Q=1,J="border-top-"+r+"-radius:"+e+";border-bottom-"+r+"-radius:"+e):(Q=2,J="border-"+r+"-"+ee[H[1]]+"-radius:"+e)}},border:function(){var e=ee[H];_&&e?n(_)?(Q=1,J="border-"+e+"-width:"+_+"px"):a(_)&&(J="border-"+e+"-width:"+_):c("solid!dashed!dotted!double!none",H)?J="border-style:"+H:e?(Q=1,J="border-"+e+"-width:1px"):n(H)?J="border-width:"+H+"px":a(H)?J="border-width:"+H:te("border-color")},opacity:function(){n(H)&&(J="opacity:"+H/100)},transition:function(){var e=function(e){return"-webkit-transition-property:"+e+";-o-transition-property:"+e+";transition-property:"+e},t=function(e){return"-webkit-transition-property:-webkit-"+e+";transition-property:-webkit-"+e+";-o-transition-property:"+e+";transition-property:"+e+";transition-property:"+e+",-webkit-"+e};H?"colors"===H?J=e("background-color,border-color,color,fill,stroke"):"shadow"===H?J=t("box-shadow"):"transform"===H?J=t("transform"):H&&(J=e(H)):J=(J="-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform").replace(/S/g,"background-color,border-color,color,fill,stroke,opacity,")},duration:oe,delay:oe,ease:function(){var e=function(e){return"-webkit-transition-timing-function:"+e+";-o-transition-timing-function:"+e+";transition-timing-function:"+e};"in"===Y?J=e("cubic-bezier(0.4,0,1,1)"):"out"===Y?J=e("cubic-bezier(0,0,0.2,1)"):"in-out"===Y?J=e("cubic-bezier(0.4,0,0.2,1)"):"linear"===Y&&(J=e("linear"))},scale:function(){if(n(D)){var e=D/100;c("x!y",H)?(Q=1,J="--transform-scale-"+H+":"+e):J="--transform-scale-x:"+e+";--transform-scale-y:"+e}},rotate:function(){n(H)&&(J="--transform-rotate:"+q+H+"deg")},translate:function(){if(c("x!y",H)){if("px"===_)_="1px";else if("full"===_)_="100%";else if(_.includes("/")){var e=_.split("/");2===e.length&&(_=Number(e[0])/Number(e[1])+"%")}a(_)&&(J="--transform-translate-"+H+":"+f(_))}},skew:function(){c("x!y",H)&&n(_)&&(J="--transform-skew-"+H+":"+(q+_)+"deg")},transform:function(){var e="translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))";J="-webkit-transform:"+e+";-ms-transform:"+e+";transform:"+e},origin:function(){c("center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left",Y)&&(Y=Y.replace("-"," "),J="-webkit-transform-origin:"+Y+";-ms-transform-origin:"+Y+";transform-origin:"+Y)},cursor:function(){c("auto!default!pointer!wait!text!move!not-allowed",Y)&&(J="cursor:"+Y)},shadow:function(){var e=d({xs:"0 0 0 1pxR.05)",sm:"0 1px 2px 0R.05)","":"0 1px 3px 0R.1), 0 1px 2px 0R.06)",md:"0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)",lg:"0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)",xl:"0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)","2xl":"0 25px 50px -12pxR.25)",inner:"inset 0 2px 4px 0R.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"})[H];e&&(e=e.replace(/R/g," rgba(0, 0, 0, 0"),J="-webkit-box-shadow:"+e+";box-shadow:"+e)},outline:function(){H&&(J="outline:"+Y.replace("-"," "))},pointer:function(){H&&(J="pointer-events:"+H)},select:function(){c("none!auto!text!contain!all!inherit!initial!unset",Y)&&(J="-webkit-user-select:"+Y+";-moz-user-select:"+Y+";-ms-user-select:"+Y+";user-select:"+Y)},fill:function(){H&&(J="fill:"+H)},stroke:function(){n(H)?J="stroke-width:"+H:H&&(J="stroke:"+H)},items:function(){c("stretch!start!center!end!baseline",Y)&&(J="-webkit-box-align:"+Y+";-ms-flex-align:"+Y+";align-items:"+(c("start!end",Y)?"flex-":"")+Y)},content:function(){if(c("start!center!end!between!around")){var e=Y;c("start!end",Y)?Y="flex-"+Y:"between"===Y?(e="justify",Y="space-"+Y):"around"===Y&&(e="distribute",Y="space-"+Y),J="-ms-flex-line-pack:"+e+";align-content:"+Y}},self:function(){if(c("auto!start!center!end!stretch",Y)){var e="-ms-grid-row-align:"+Y+";",t=Y;c("start!end",Y)&&(Y="flex-"+Y,e=""),J="-ms-flex-item-align:"+t+";"+e+"align-self:"+Y}},justify:function(){if(c("start!center!end!between!around",Y)){var e=Y;"between"===e?(e="justify",Y="space-"+Y):c("start!end")&&(Y="flex-"+Y);var t="-webkit-box-pack:"+e+";";"around"===e&&(e="distribute",Y="space-"+Y,t=""),J=t+"-ms-flex-pack:"+e+";justify-content:"+Y}}}),ne=/[^:]+::?|.+/g,ae=/[.*+\-?^${}()|[\]\\]/g;function le(){Q=0,J="",q="",k=y;var e=m.separator;":"!==e&&(y=y.replace(new RegExp(e.replace(ae,"\\$&"),"g"),":")),K=y.match(ne),y=K.pop(),K=K.map(function(e){return e.endsWith("::")?"::"+e.slice(0,-2):":"+e.slice(0,-1)});var r=u.get(y);if(r){var i=r[0],l=r[1],s=[k.slice(0,k.lastIndexOf(y)),K],c=s[0],f=s[1];if(o=k,"string"==typeof i)for(var d,p=t(i.trim().replace(/\s\s+/g," ").split(" "));!(d=p()).done;)y=c+(y=d.value),le();return K=f,l&&"string"==typeof l&&pe(l),void(o="")}if("-"===y[0]&&(q="-",y=y.slice(1)),"string"==typeof m.prefix){if(!y.startsWith(m.prefix))return void fe();y=y.slice(m.prefix.length)}var b=y.split("-");F=b[0];var g=b[1];H=void 0===g?"":g;var x=b[2];_=void 0===x?"":x;var w,h=b[3];if(B=void 0===h?"":h,D=b[b.length-1],G=b.slice(0,-1).join("-"),Y=b.slice(1).join("-"),!(J=N[y])&&(w=ie[F])?w():F.length<3&&!_&&function(){var e;if("px"===H)e=q+"1px";else if("full"===H)e="100%";else if("screen"===H)"w"===F?e="100vw":"h"===F&&(e="100vh");else if("auto"===H)e="auto";else if(n(H))e=q+.25*Number(H)+"rem";else if(H.indexOf("/")>-1){var t=H.split("/"),r=t[0],o=t[1];n(r)&&n(o)&&(e=q+(Number(r)/Number(o)).toFixed(6)+"%")}else a(H)&&(e=q+H);var i=S[F[0]],l=ee[F[1]];e&&i&&("x"===F[1]?(Q=1,J=i+"-right:"+e+";"+i+"-left:"+e):"y"===F[1]?(Q=1,J=i+"-top:"+e+";"+i+"-bottom:"+e):l?(Q=2,J=i+"-"+l+":"+e):J=i+":"+e)}(),J)pe(J);else if("container"===y){pe("width:100%");for(var v=0,j=Object.entries(m.screens);v0){for(var e,r=[],o=t(document.styleSheets);!(e=o()).done;)r.push.apply(r,se(e.value));var i=K[0].slice(1);if(m.screens[i])for(var n,a=Object.entries(m.screens),l=t(r);!(n=l()).done;){var s=n.value,c=s[0],f=s[1],p=ce.get(f);if(!p){p=d();for(var u,b=t(a);!(u=b()).done;){var g=u.value;p[g[0]]=f.cssRules[f.insertRule("@media(min-width:"+g[1]+"){}",f.cssRules.length)]}ce[f]=p}pe(c,p[i])}else for(var x,w=t(r);!(x=w()).done;){var h=x.value;pe(h[0],h[1])}}},de=d({"::placeholder":"::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P".replace(/P/g,"placeholder"),"::selection":":::-moz-selection"});function pe(e,r){var i="",n=k,a="default",s="",f=function(){try{r.insertRule(s+"."+n+i+"{"+e+"}",r.cssRules.length)}catch(e){}};if(o&&(n=o,a="custom"),n=n.replace(/[.:()&@~*^$%,#]/g,"\\$&"),m.important&&(!0===m.important?e=e.replace(/;/g,"!important;")+"!important":"string"==typeof m.important&&(s=m.important+" ")),K.length>0){var d=z.get(a+K[0].slice(1)+Q);d&&(r=r||d,K.shift())}if(r||(r=z.get(a+Q)),K.length>0){for(var p=0,u=[].concat(K);p !isNaN(v)\r\nlet isStartNum = (v) => !isNaN(parseInt(v))\r\nlet split = (s) => s.split('!')\r\nlet indexOf = (s, v) => split(s).indexOf(v)\r\nlet includes = (s, v) => split(s).includes(v)\r\nlet ifRemTo = (v) => isNum(v) ? negative + Number(v) * 0.25 + 'rem' : negative + v\r\nlet newObject = (o = {}) => Object.assign(Object.create(null), o)\r\nlet classesCache = new Map()\r\nlet customCache = new Map()\r\nlet parentSheet\r\nlet config = newObject({ separator: ':', screens: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px' } })\r\nlet componentName\r\nlet addedScreens\r\n\r\nexport let component = (name, classes, props) => {\r\n if (typeof name !== 'string') {\r\n throw Error('Component must have a name.')\r\n }\r\n name = name.trim()\r\n if (classesCache.get(name)) {\r\n throw Error(`Class '${name}' was already processed.`)\r\n }\r\n customCache.set(name, [classes, props])\r\n}\r\n\r\nlet isObject = value => Object.prototype.toString.call(value) === '[object Object]'\r\nlet hex6 = value => {\r\n if (typeof value !== 'string') {\r\n throw Error('Hex value is not a hex string.')\r\n }\r\n if (!value.startsWith('#')) {\r\n value = '#' + value\r\n }\r\n value = value.length === 4 ? value.slice(1).split('').map((v) => v + v).join('') : value.slice(1)\r\n if (!/^[0-9a-f]{6}$/i.test(value)) {\r\n throw Error('Incorrect hex color format.')\r\n }\r\n return value\r\n}\r\n\r\nlet errorNotObject = value => {\r\n if (!isObject(value)) {\r\n throw Error('Config value must be an object.')\r\n }\r\n}\r\n\r\nlet customColors = new Map()\r\n\r\nexport let configure = (conf = newObject()) => {\r\n for (let s of split('separator!prefix')) {\r\n if (conf[s] !== undefined && typeof conf[s] !== 'string') {\r\n throw Error(`config.${s} must be a string.`)\r\n }\r\n }\r\n if (conf.screens) {\r\n errorNotObject(conf.screens)\r\n }\r\n if (conf.colors) {\r\n errorNotObject(conf.colors)\r\n for (let [key1, value1] of Object.entries(conf.colors)) {\r\n if (isObject(value1)) {\r\n for (let [key2, value2] of Object.entries(value1)) {\r\n customColors.set(key1 + '-' + key2, hex6(value2))\r\n }\r\n } else {\r\n customColors.set(key1, hex6(value1))\r\n }\r\n }\r\n } else {\r\n Object.assign(config, conf)\r\n }\r\n}\r\n\r\nif (document.styleSheets.length === 0) {\r\n parentSheet = document.head.appendChild(document.createElement('style')).sheet\r\n} else {\r\n parentSheet = document.styleSheets[0]\r\n}\r\n\r\nlet media = new Map()\r\nlet setMedia = (prefix, size) => {\r\n let condition = size ? `(min-width:${size})` : ''\r\n for (let i = 0; i < 3; i++) {\r\n media.set(prefix + i, parentSheet.cssRules[parentSheet.insertRule(`@media${condition}{}`, parentSheet.cssRules.length)])\r\n }\r\n}\r\n\r\nlet cls\r\nlet originalClass\r\n\r\nlet processClasses = (classes) => {\r\n if (!addedScreens) {\r\n addedScreens = true\r\n let entries = Object.entries(config.screens)\r\n for (const m of split('custom!default')) {\r\n setMedia(m)\r\n for (const [key, size] of entries) {\r\n setMedia(m + key, size)\r\n }\r\n }\r\n }\r\n if (typeof classes === 'string') {\r\n classes = classes.trim()\r\n if (!classesCache.has(classes)) {\r\n for (cls of classes.replace(/\\s\\s+/g, ' ').split(' ')) {\r\n if (classesCache.has(cls)) {\r\n continue\r\n }\r\n classesCache.set(cls, true)\r\n processClass()\r\n }\r\n classesCache.set(classes, true)\r\n }\r\n }\r\n}\r\nexport default processClasses\r\n\r\nlet formatters = newObject({\r\n p: 'padding',\r\n m: 'margin',\r\n h: 'height',\r\n z: 'z-index',\r\n w: 'width'\r\n})\r\n\r\nlet classNames = newObject()\r\n\r\n// direct map from class to values\r\nfor (let c of split('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji!font-serif|font-family:Georgia,Cambria,\"Times New Roman\",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace!sticky|position:-webkit-sticky;position:sticky')) {\r\n let [k, v] = c.split('|')\r\n classNames[k] = v\r\n}\r\n\r\n// class to value\r\nfor (let c of split('float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none')) {\r\n classNames[c] = c.replace('-', ':')\r\n}\r\n\r\n// display\r\nfor (let c of split('block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row')) {\r\n let p = c\r\n if (c === 'flex') {\r\n p = '-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex'\r\n } else if (c === 'inline-flex') {\r\n p = '-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex'\r\n } else if (c === 'grid') {\r\n p = '-ms-grid;display:grid'\r\n } else if (c === 'inline-grid') {\r\n p = '-ms-inline-grid;display:inline-grid'\r\n }\r\n classNames[c] = 'display:' + p\r\n}\r\n\r\n// position\r\nfor (let c of split('static!fixed!absolute!relative')) {\r\n classNames[c] = 'position:' + c\r\n}\r\n\r\nlet colors = split('f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459')\r\n\r\nlet colorNames = split('gray!red!orange!yellow!green!teal!blue!indigo!purple!pink')\r\n\r\nlet roundedSize = split('none!sm!nm!md!lg!full')\r\n\r\nlet edge = newObject({ l: 'left', r: 'right', t: 'top', b: 'bottom' })\r\n\r\nlet setColor = (type) => {\r\n if (secondPart === 'opacity' && isNum(thirdPart)) {\r\n rule = `--${type}-opacity:` + (thirdPart === '100' ? '1' : thirdPart / 100)\r\n } else {\r\n let color = customColors.get(rest)\r\n if (color) {\r\n if (thirdPart && isObject(color)) {\r\n color = color[thirdPart]\r\n }\r\n } else {\r\n if (thirdPart) {\r\n let colorPos = colorNames.indexOf(secondPart)\r\n color = colors[colorPos * 9 + (Number(thirdPart[0]) - 1)]\r\n } else if (secondPart && secondPart.startsWith('#')) {\r\n try {\r\n color = hex6(secondPart)\r\n } catch {}\r\n }\r\n }\r\n if (color) {\r\n let rgba = type + `:rgba(${parseInt(color.slice(0, 2), 16)},${parseInt(color.slice(2, 4), 16)},${parseInt(color.slice(4, 6), 16)},var(--${type}-opacity,1))`\r\n rule = type + `:#${color};` + rgba\r\n } else if (secondPart === 'current') {\r\n rule = type + ':' + 'currentColor'\r\n } else {\r\n rule = type + ':' + rest\r\n // console.log(rule)\r\n }\r\n }\r\n}\r\n\r\nlet setPosition = () => {\r\n if (!fourthPart && (includes('auto!initial!inherit', lastPart) || isStartNum(lastPart))) {\r\n let v = negative + lastPart\r\n if (thirdPart) {\r\n sheetLevel = 1\r\n if (secondPart === 'y') {\r\n rule = `top:${v};bottom:` + v\r\n } else if (secondPart === 'x') {\r\n rule = `left:${v};right:` + v\r\n }\r\n } else if (secondPart) {\r\n if (firstPart === 'inset') {\r\n rule = `top:${v};right:${v};bottom:${v};left:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = firstPart + ':' + v\r\n }\r\n }\r\n }\r\n}\r\n\r\nlet timeProp = () => {\r\n let v\r\n if (isNum(secondPart)) {\r\n v = secondPart + 'ms'\r\n } else if (isStartNum(secondPart)) {\r\n v = secondPart\r\n }\r\n if (v) {\r\n rule = `-webkit-transition-${firstPart}:${v};-o-transition-${firstPart}:${v};transition-${firstPart}:` + v\r\n }\r\n}\r\n\r\nlet cls2process = newObject({\r\n object: () => {\r\n if (includes('contain!cover!fill!none!bottom', rest)) {\r\n rule = `-o-object-fit:${rest};object-fit:` + rest\r\n } else if (includes('bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-o-object-position:${rest};object-position:` + rest\r\n }\r\n },\r\n overflow: () => {\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n }\r\n rule = partsWithoutEnd + ':' + lastPart\r\n },\r\n clearfix: () => {\r\n originalClass = 'clearfix::after'\r\n rule = 'content:\"\";display:table;clear:both'\r\n },\r\n text: () => {\r\n let pos = indexOf('xs!sm!base!lg!xl', secondPart)\r\n if (pos > -1) {\r\n rule = `font-size:${0.75 + (0.125 * pos)}rem`\r\n } else if (secondPart.endsWith('xl')) {\r\n let [num] = secondPart.split('x')\r\n if (isNum(num)) {\r\n rule = `font-size:${Number(num) - 2}rem`\r\n }\r\n } else if (includes('left!center!right!justify', rest)) {\r\n rule = 'text-align:' + rest\r\n } else {\r\n setColor('color')\r\n }\r\n },\r\n font: () => {\r\n let pos = indexOf('hairline!thin!light!normal!medium!semibold!bold!extrabold!black', secondPart)\r\n if (pos > -1) {\r\n rule = 'font-weight:' + (100 * (1 + pos))\r\n } else if (isNum(secondPart)) {\r\n rule = 'font-weight:' + secondPart\r\n }\r\n },\r\n whitespace: () => {\r\n if (includes('normal!pre!pre-line!pre-wrap', rest)) {\r\n rule = 'white-space:' + rest\r\n }\r\n },\r\n inset: setPosition,\r\n top: setPosition,\r\n right: setPosition,\r\n bottom: setPosition,\r\n left: setPosition,\r\n flex: () => {\r\n let ruleFunc = (v1, v2 = 1, v3 = '0%') => `-webkit-box-flex:${v1};-ms-flex:${v1} ${v2} ${v3};flex:${v1} ${v2} ` + v3\r\n if (includes('row!row-reverse!col!col-reverse', rest)) {\r\n rest = rest.replace('col', 'column')\r\n rule = `-webkit-box-orient:${secondPart === 'row' ? 'horizontal' : 'vertical'};-webkit-box-direction:${thirdPart === 'reverse' ? thirdPart : 'normal'};-ms-flex-direction:${rest};flex-direction:${rest}`\r\n } else if (includes('no-wrap!flex-wrap!wrap-reverse', rest)) {\r\n if (rest === 'no-wrap') {\r\n rest = 'nowrap'\r\n }\r\n rule = `-ms-flex-wrap:${rest};flex-wrap:${rest}`\r\n } else if (includes('grow!shrink', secondPart)) {\r\n sheetLevel = 1\r\n let v = thirdPart || 1\r\n if (secondPart === 'grow') {\r\n rule = `-webkit-box-flex:${v};-ms-flex-positive:${v};flex-grow:${v}`\r\n } else {\r\n rule = `-ms-flex-negative:${v};flex-shrink:${v}`\r\n }\r\n } else if (rest === 'initial') {\r\n rule = ruleFunc(0, 1, 'auto')\r\n } else if (rest === 'auto') {\r\n rule = ruleFunc(1, 1, 'auto')\r\n } else if (rest === 'none') {\r\n rule = '-webkit-box-flex:0;-ms-flex:none;flex:none'\r\n } else if (fourthPart) {\r\n rule = ruleFunc(secondPart, thirdPart, fourthPart)\r\n } else if (thirdPart) {\r\n rule = ruleFunc(secondPart, thirdPart)\r\n } else {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n order: () => {\r\n if (isNum(secondPart)) {\r\n let num = negative + secondPart\r\n rule = `-webkit-box-ordinal-group:${Number(num) + 1};-ms-flex-order:${num};order:` + num\r\n }\r\n },\r\n grid: () => {\r\n if (isNum(thirdPart)) {\r\n rule = newObject({\r\n cols: `-ms-grid-columns:(minmax(0,1fr))[${thirdPart}];grid-template-columns: repeat(${thirdPart}, minmax(0, 1fr))`,\r\n span: `-ms-grid-column-span:${thirdPart};grid-column: span ${thirdPart} / span ` + thirdPart,\r\n start: `-ms-grid-column:${thirdPart};grid-column-start:` + thirdPart,\r\n end: `-ms-grid-column-span:${thirdPart};grid-column-end:` + thirdPart,\r\n rows: `-ms-grid-rows:(minmax(0,1fr))[${thirdPart}];grid-template-rows: repeat(${thirdPart}, minmax(0, 1fr))`\r\n })[secondPart]\r\n }\r\n },\r\n row: () => {\r\n if (isStartNum(thirdPart)) {\r\n rule = newObject({\r\n span: `-ms-grid-row-span:${thirdPart};grid-row: span ${thirdPart} / span ${thirdPart}`,\r\n start: `-ms-grid-row:${thirdPart};grid-row-start:` + thirdPart,\r\n end: `-ms-grid-row-span:${thirdPart};grid-row-end:` + thirdPart,\r\n gap: 'row-gap:' + ifRemTo(thirdPart)\r\n })[secondPart]\r\n }\r\n },\r\n col: () => {\r\n if (isNum(thirdPart)) {\r\n if (secondPart === 'span') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column:span ${thirdPart} / span ${thirdPart};`\r\n } else if (secondPart === 'start') {\r\n rule = `-ms-grid-column:${thirdPart};grid-column-start:${thirdPart}`\r\n } else if (secondPart === 'end') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column-end:${thirdPart}`\r\n }\r\n }\r\n if (isStartNum(thirdPart) && secondPart === 'gap') {\r\n let v = thirdPart === 'px' ? '1px' : ifRemTo(thirdPart)\r\n rule = `-webkit-column-gap:${v};-moz-column-gap:${v}column-gap:` + v\r\n }\r\n },\r\n gap: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'gap:' + ifRemTo(secondPart)\r\n }\r\n },\r\n space: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n }\r\n if (thirdPart) {\r\n if (isStartNum(thirdPart)) {\r\n let v = ifRemTo(thirdPart)\r\n if (secondPart === 'x') {\r\n rule = `margin-right:calc(${v}*var(--space-x-reverse,0));margin-left:calc(${v}*(1 - var(--space-x-reverse,0)))`\r\n } else if (secondPart === 'y') {\r\n rule = `margin-top:calc(${v}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${v}*var(--space-y-reverse,0))`\r\n }\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--space-${secondPart}-reverse:1`\r\n }\r\n }\r\n },\r\n divide: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n sheetLevel = 1\r\n if (!fourthPart) {\r\n let v\r\n if (isNum(thirdPart)) {\r\n v = thirdPart + 'px'\r\n } else if (isStartNum(thirdPart)) {\r\n v = thirdPart\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--divide-${secondPart}-reverse:1`\r\n } else if (secondPart) {\r\n v = '1px'\r\n }\r\n\r\n if (v) {\r\n if (secondPart === 'y') {\r\n rule = `border-top-width:calc(${v}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${v}*var(--divide-y-reverse,0)))`\r\n } else if (secondPart === 'x') {\r\n rule = `border-right-width:calc(${v}*var(--divide-x-reverse,0));border-left-width:calc(${v}*calc(1 - var(--divide-x-reverse,0)))`\r\n }\r\n }\r\n }\r\n if (!rule) {\r\n setColor('border-color')\r\n }\r\n },\r\n min: () => {\r\n if (isStartNum(thirdPart)) {\r\n if (secondPart === 'w' || secondPart === 'h') {\r\n let p = secondPart === 'w' ? 'width' : 'height'\r\n rule = `min-${p}:` + thirdPart\r\n }\r\n }\r\n },\r\n max: () => {\r\n if (secondPart === 'w') {\r\n let pos = indexOf('xs!sm!md!lg!xl', thirdPart)\r\n if (pos > -1) {\r\n rule = `max-width:${pos * 4 + 20}rem`\r\n } else if (isStartNum(thirdPart)) {\r\n if (thirdPart.endsWith('xl')) {\r\n rule = `max-width:${parseInt(thirdPart) * 8 + 24}rem`\r\n } else {\r\n rule = 'max-width:' + thirdPart\r\n }\r\n }\r\n } else if (secondPart === 'h' && isStartNum(thirdPart)) {\r\n rule = 'max-height:' + thirdPart\r\n }\r\n },\r\n tracking: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'letter-spacing:' + secondPart\r\n }\r\n },\r\n leading: () => {\r\n if (isNum(secondPart)) {\r\n rule = `line-height:${Number(secondPart) * 0.25}rem`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'line-height:' + secondPart\r\n }\r\n },\r\n placeholder: () => {\r\n pseudos.push('::placeholder')\r\n setColor('color')\r\n },\r\n align: () => {\r\n if (includes('baseline!top!middle!bottom!text-top!text-bottom', rest)) {\r\n rule = 'vertical-align:' + rest\r\n }\r\n },\r\n bg: () => {\r\n rest = rest.replace('-', ' ')\r\n if (includes('bottom!center!left!left bottom!left top!right!right bottom!right top!top', rest)) {\r\n rule = 'background-position:' + rest\r\n } else if (includes('repeat!no-repeat!repeat-x!repeat-y', rest)) {\r\n rule = 'background-repeat:' + rest\r\n } else if (includes('repeat-round!repeat-space', rest)) {\r\n rule = 'background-repeat:' + thirdPart\r\n } else if (includes('auto!cover!contain', rest)) {\r\n rule = 'background-size:' + rest\r\n } else if (includes('fixed!local!scroll', secondPart)) {\r\n rule = 'background-attachment:' + secondPart\r\n } else {\r\n setColor('background-color')\r\n }\r\n },\r\n rounded: () => {\r\n let v\r\n let pos = roundedSize.indexOf(lastPart)\r\n if (isStartNum(lastPart)) {\r\n v = lastPart\r\n pos = 9\r\n } else if (pos === 5) {\r\n v = '9999px'\r\n } else if (pos > -1) {\r\n v = pos * 0.125 + 'rem'\r\n } else if (!secondPart || edge[secondPart] || (includes('t!b', secondPart[0]) && includes('r!l', secondPart[1]))) {\r\n v = '0.25rem'\r\n }\r\n if (v) {\r\n let place1 = edge[secondPart[0]]\r\n if (!secondPart || (!thirdPart && pos > -1)) {\r\n rule = 'border-radius:' + v\r\n } else if (includes('t!b', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-${place1}-left-radius:${v};border-${place1}-right-radius:` + v\r\n } else if (includes('l!r', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-top-${place1}-radius:${v};border-bottom-${place1}-radius:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = `border-${place1}-${edge[secondPart[1]]}-radius:` + v\r\n }\r\n }\r\n },\r\n border: () => {\r\n let b = edge[secondPart]\r\n if (thirdPart && b) {\r\n if (isNum(thirdPart)) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:${thirdPart}px`\r\n } else if (isStartNum(thirdPart)) {\r\n rule = `border-${b}-width:` + thirdPart\r\n }\r\n } else {\r\n if (includes('solid!dashed!dotted!double!none', secondPart)) {\r\n rule = 'border-style:' + secondPart\r\n } else if (b) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:1px`\r\n } else if (isNum(secondPart)) {\r\n rule = `border-width:${secondPart}px`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'border-width:' + secondPart\r\n } else {\r\n setColor('border-color')\r\n }\r\n }\r\n },\r\n opacity: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'opacity:' + 100 / secondPart\r\n }\r\n },\r\n transition: () => {\r\n let ruleFunc = (value) => `-webkit-transition-property:${value};-o-transition-property:${value};transition-property:` + value\r\n let ruleFunc2 = (value) => `-webkit-transition-property:-webkit-${value};transition-property:-webkit-${value};-o-transition-property:${value};transition-property:${value};transition-property:${value},-webkit-${value}`\r\n if (!secondPart) {\r\n rule = '-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform'\r\n rule = rule.replace(/S/g, 'background-color,border-color,color,fill,stroke,opacity,')\r\n } else if (secondPart === 'colors') {\r\n rule = ruleFunc('background-color,border-color,color,fill,stroke')\r\n } else if (secondPart === 'shadow') {\r\n rule = ruleFunc2('box-shadow')\r\n } else if (secondPart === 'transform') {\r\n rule = ruleFunc2('transform')\r\n } else if (secondPart) {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n duration: timeProp,\r\n delay: timeProp,\r\n ease: () => {\r\n let ruleFunc = (value) => `-webkit-transition-timing-function:${value};-o-transition-timing-function:${value};transition-timing-function:${value}`\r\n if (rest === 'in') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,1,1)')\r\n } else if (rest === 'out') {\r\n rule = ruleFunc('cubic-bezier(0,0,0.2,1)')\r\n } else if (rest === 'in-out') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,0.2,1)')\r\n } else if (rest === 'linear') {\r\n rule = ruleFunc('linear')\r\n }\r\n },\r\n scale: () => {\r\n if (isNum(lastPart)) {\r\n let v = lastPart / 100\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n rule = `--transform-scale-${secondPart}:` + v\r\n } else {\r\n rule = `--transform-scale-x:${v};--transform-scale-y:` + v\r\n }\r\n }\r\n },\r\n rotate: () => {\r\n if (isNum(secondPart)) {\r\n rule = `--transform-rotate:${negative}${secondPart}deg`\r\n }\r\n },\r\n translate: () => {\r\n if (includes('x!y', secondPart)) {\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n } else if (thirdPart === 'full') {\r\n thirdPart = '100%'\r\n } else if (thirdPart.includes('/')) {\r\n let fractions = thirdPart.split('/')\r\n if (fractions.length === 2) {\r\n thirdPart = Number(fractions[0]) / Number(fractions[1]) + '%'\r\n }\r\n }\r\n if (isStartNum(thirdPart)) {\r\n rule = `--transform-translate-${secondPart}:` + ifRemTo(thirdPart)\r\n }\r\n }\r\n },\r\n skew: () => {\r\n if (includes('x!y', secondPart) && isNum(thirdPart)) {\r\n rule = `--transform-skew-${secondPart}:${negative + thirdPart}deg`\r\n }\r\n },\r\n transform: () => {\r\n let v = 'translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))'\r\n rule = `-webkit-transform:${v};-ms-transform:${v};transform:` + v\r\n },\r\n origin: () => {\r\n if (includes('center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-webkit-transform-origin:${rest};-ms-transform-origin:${rest};transform-origin:` + rest\r\n }\r\n },\r\n cursor: () => {\r\n if (includes('auto!default!pointer!wait!text!move!not-allowed', rest)) {\r\n rule = 'cursor:' + rest\r\n }\r\n },\r\n shadow: () => {\r\n let shadows = newObject({\r\n xs: '0 0 0 1pxR.05)',\r\n sm: '0 1px 2px 0R.05)',\r\n '': '0 1px 3px 0R.1), 0 1px 2px 0R.06)',\r\n md: '0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)',\r\n lg: '0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)',\r\n xl: '0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)',\r\n '2xl': '0 25px 50px -12pxR.25)',\r\n inner: 'inset 0 2px 4px 0R.06)',\r\n outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',\r\n none: 'none'\r\n })\r\n let v = shadows[secondPart]\r\n if (v) {\r\n v = v.replace(/R/g, ' rgba(0, 0, 0, 0')\r\n console.log(v)\r\n rule = `-webkit-box-shadow:${v};box-shadow:` + v\r\n }\r\n },\r\n outline: () => {\r\n if (secondPart) {\r\n rule = 'outline:' + rest.replace('-', ' ')\r\n }\r\n },\r\n pointer: () => {\r\n if (secondPart) {\r\n rule = 'pointer-events:' + secondPart\r\n }\r\n },\r\n select: () => {\r\n if (includes('none!auto!text!contain!all!inherit!initial!unset', rest)) {\r\n rule = `-webkit-user-select:${rest};-moz-user-select:${rest};-ms-user-select:${rest};user-select:` + rest\r\n }\r\n },\r\n fill: () => {\r\n if (secondPart) {\r\n rule = 'fill:' + secondPart\r\n }\r\n },\r\n stroke: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'stroke-width:' + secondPart\r\n } else if (secondPart) {\r\n rule = 'stroke:' + secondPart\r\n }\r\n },\r\n items: () => {\r\n if (includes('stretch!start!center!end!baseline', rest)) {\r\n rule = `-webkit-box-align:${rest};-ms-flex-align:${rest};align-items:` + (includes('start!end', rest) ? 'flex-' : '') + rest\r\n }\r\n },\r\n content: () => {\r\n if (includes('start!center!end!between!around')) {\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n } else if (rest === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (rest === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n }\r\n\r\n rule = `-ms-flex-line-pack:${v};align-content:` + rest\r\n }\r\n },\r\n self: () => {\r\n if (includes('auto!start!center!end!stretch', rest)) {\r\n let gridRowAlign = `-ms-grid-row-align:${rest};`\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n gridRowAlign = ''\r\n }\r\n rule = `-ms-flex-item-align:${v};${gridRowAlign}align-self:` + rest\r\n }\r\n },\r\n justify: () => {\r\n if (includes('start!center!end!between!around', rest)) {\r\n let v = rest\r\n if (v === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (includes('start!end')) {\r\n rest = 'flex-' + rest\r\n }\r\n let webkit = `-webkit-box-pack:${v};`\r\n if (v === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n webkit = ''\r\n }\r\n rule = webkit + `-ms-flex-pack:${v};justify-content:` + rest\r\n }\r\n }\r\n})\r\n\r\nlet firstPart // first part\r\nlet secondPart // second part\r\nlet thirdPart // third part\r\nlet fourthPart\r\nlet lastPart // last part\r\nlet partsWithoutEnd // without end\r\nlet rest\r\nlet negative\r\nlet rule\r\nlet pseudos\r\nlet pseudosRegex = /[^:]+::?|.+/g\r\nlet specialChars = /[.*+\\-?^${}()|[\\]\\\\]/g\r\nlet sheetLevel\r\n\r\nfunction processClass () {\r\n sheetLevel = 0\r\n rule = ''\r\n negative = ''\r\n originalClass = cls\r\n let separator = config.separator\r\n if (separator !== ':') {\r\n cls = cls.replace(new RegExp(separator.replace(specialChars, '\\\\$&'), 'g'), ':')\r\n }\r\n pseudos = cls.match(pseudosRegex)\r\n cls = pseudos.pop()\r\n pseudos = pseudos.map(v => v.endsWith('::') ? '::' + v.slice(0, -2) : ':' + v.slice(0, -1))\r\n let customData = customCache.get(cls)\r\n if (customData) {\r\n let [classes, props] = customData\r\n let [pseudosStr, originalPseudos] = [originalClass.slice(0, originalClass.lastIndexOf(cls)), pseudos]\r\n componentName = originalClass\r\n if (typeof classes === 'string') {\r\n for (cls of classes.trim().replace(/\\s\\s+/g, ' ').split(' ')) {\r\n cls = pseudosStr + cls\r\n processClass()\r\n }\r\n }\r\n pseudos = originalPseudos\r\n if (props && typeof props === 'string') {\r\n setRule(props)\r\n }\r\n componentName = ''\r\n return\r\n }\r\n\r\n if (cls[0] === '-') {\r\n negative = '-'\r\n cls = cls.slice(1)\r\n }\r\n\r\n if (typeof config.prefix === 'string') {\r\n if (!cls.startsWith(config.prefix)) {\r\n notFound()\r\n return\r\n } else {\r\n cls = cls.slice(config.prefix.length)\r\n }\r\n }\r\n let parts = cls.split('-')\r\n ;[firstPart, secondPart = '', thirdPart = '', fourthPart = ''] = parts\r\n lastPart = parts[parts.length - 1]\r\n partsWithoutEnd = parts.slice(0, -1).join('-')\r\n rest = parts.slice(1).join('-')\r\n\r\n let process\r\n if (!(rule = classNames[cls]) && (process = cls2process[firstPart])) {\r\n process()\r\n } else if (firstPart.length < 3 && !thirdPart) {\r\n formatClass()\r\n }\r\n\r\n if (rule) {\r\n setRule(rule)\r\n } else if (cls === 'container') {\r\n setRule('width:100%')\r\n for (const [r, size] of Object.entries(config.screens)) {\r\n setRule('max-width:' + size, media.get(`default${r}0`))\r\n }\r\n } else {\r\n notFound()\r\n }\r\n}\r\n\r\nfunction formatClass () {\r\n let v\r\n if (secondPart === 'px') {\r\n v = `${negative}1px`\r\n } else if (secondPart === 'full') {\r\n v = '100%'\r\n } else if (secondPart === 'screen') {\r\n if (firstPart === 'w') {\r\n v = '100vw'\r\n } else if (firstPart === 'h') {\r\n v = '100vh'\r\n }\r\n } else if (secondPart === 'auto') {\r\n v = 'auto'\r\n } else if (isNum(secondPart)) {\r\n v = negative + Number(secondPart) * 0.25 + 'rem'\r\n } else if (secondPart.indexOf('/') > -1) {\r\n let [top, bottom] = secondPart.split('/')\r\n if (isNum(top) && isNum(bottom)) {\r\n v = negative + (Number(top) / Number(bottom)).toFixed(6) + '%'\r\n }\r\n } else if (isStartNum(secondPart)) {\r\n v = negative + secondPart\r\n }\r\n\r\n let basicPart = formatters[firstPart[0]]\r\n let e = edge[firstPart[1]]\r\n if (v && basicPart) {\r\n if (firstPart[1] === 'x') {\r\n sheetLevel = 1\r\n rule = basicPart + `-right:${v};${basicPart}-left:` + v\r\n } else if (firstPart[1] === 'y') {\r\n sheetLevel = 1\r\n rule = basicPart + `-top:${v};${basicPart}-bottom:` + v\r\n } else if (e) {\r\n sheetLevel = 2\r\n rule = basicPart + `-${e}:` + v\r\n } else {\r\n rule = basicPart + ':' + v\r\n }\r\n }\r\n}\r\n\r\nlet findInSheet = (sheet) => {\r\n let rules = []\r\n for (let rule of [...sheet.cssRules]) {\r\n // eslint-disable-next-line no-undef\r\n if (rule.type === CSSRule.STYLE_RULE) {\r\n if (rule.selectorText.split(',').map((item) => item.trim()).includes('.' + cls)) {\r\n let text = rule.cssText\r\n rules.push([text.slice(text.indexOf('{') + 1, text.lastIndexOf('}')), sheet])\r\n }\r\n // eslint-disable-next-line no-undef\r\n } else if (rule.type === CSSRule.MEDIA_RULE) {\r\n rules.push(...findInSheet(rule))\r\n }\r\n }\r\n return rules\r\n}\r\n\r\nlet responsiveSheets = new Map()\r\n\r\nlet notFound = () => {\r\n if (pseudos.length > 0) {\r\n let rules = []\r\n for (const sheet of document.styleSheets) {\r\n rules.push(...findInSheet(sheet))\r\n }\r\n let responsive = pseudos[0].slice(1)\r\n if (config.screens[responsive]) {\r\n let screens = Object.entries(config.screens)\r\n for (let [rule, sheet] of rules) {\r\n let sheets = responsiveSheets.get(sheet)\r\n if (!sheets) {\r\n sheets = newObject()\r\n for (const [r, size] of screens) {\r\n sheets[r] = sheet.cssRules[sheet.insertRule(`@media(min-width:${size}){}`, sheet.cssRules.length)]\r\n }\r\n responsiveSheets[sheet] = sheets\r\n }\r\n setRule(rule, sheets[responsive])\r\n }\r\n } else {\r\n for (let [rule, sheet] of rules) {\r\n setRule(rule, sheet)\r\n }\r\n }\r\n }\r\n}\r\n\r\n// pseudos = split('::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P!::P'.replace(/P/g, 'placeholder'))\r\nlet pseudoVendorPrefixes = newObject({\r\n '::placeholder': '::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P'.replace(/P/g, 'placeholder'),\r\n '::selection': ':::-moz-selection'\r\n})\r\n\r\nfunction setRule (rule, sheet) {\r\n let pseudo = ''\r\n let ruleCls = originalClass\r\n let sheetPrefix = 'default'\r\n let important = ''\r\n let insertRule = () => {\r\n try {\r\n sheet.insertRule(important + `.${ruleCls}${pseudo}{${rule}}`, sheet.cssRules.length)\r\n } catch (err) {\r\n // console.log(err)\r\n }\r\n }\r\n\r\n if (componentName) {\r\n ruleCls = componentName\r\n sheetPrefix = 'custom'\r\n }\r\n ruleCls = ruleCls.replace(/[.:()&@~*^$%,#]/g, '\\\\$&')\r\n if (config.important) {\r\n if (config.important === true) {\r\n rule = rule.replace(/;/g, '!important;') + '!important'\r\n } else if (typeof config.important === 'string') {\r\n important = config.important + ' '\r\n }\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n let mediaQuery = media.get(sheetPrefix + pseudos[0].slice(1) + sheetLevel)\r\n if (mediaQuery) {\r\n sheet = sheet || mediaQuery\r\n pseudos.shift()\r\n }\r\n }\r\n\r\n if (!sheet) {\r\n sheet = media.get(sheetPrefix + sheetLevel)\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n for (const pseudo of [...pseudos]) {\r\n let prefixes = pseudoVendorPrefixes[pseudo]\r\n if (prefixes) {\r\n pseudos.push(...split(prefixes))\r\n }\r\n }\r\n for (pseudo of pseudos) {\r\n // console.log(`.${cls}${pseudo}{${t}}`)\r\n if (includes(':first!:last', pseudo)) {\r\n pseudo = pseudo + '-child'\r\n } else if (includes(':odd!:even', pseudo)) {\r\n pseudo = `:nth-child(${pseudo.slice(1)})`\r\n } else if (pseudo.startsWith(':group')) {\r\n ruleCls = pseudo.slice(1).replace('-', ':') + ' .' + ruleCls\r\n pseudo = ''\r\n }\r\n insertRule()\r\n }\r\n } else {\r\n insertRule()\r\n }\r\n}\r\n"],"names":["parentSheet","componentName","addedScreens","isNum","v","isNaN","isStartNum","parseInt","split","s","indexOf","includes","ifRemTo","negative","Number","newObject","o","Object","assign","create","classesCache","Map","customCache","config","separator","screens","sm","md","lg","xl","component","name","classes","props","Error","trim","get","set","isObject","value","prototype","toString","call","hex6","startsWith","length","slice","map","join","test","errorNotObject","customColors","configure","conf","undefined","colors","entries","key1","value1","document","styleSheets","head","appendChild","createElement","sheet","cls","originalClass","media","setMedia","prefix","size","condition","i","cssRules","insertRule","formatters","p","m","h","z","w","classNames","c","replace","firstPart","secondPart","thirdPart","fourthPart","lastPart","partsWithoutEnd","rest","rule","pseudos","sheetLevel","colorNames","roundedSize","edge","l","r","t","b","setColor","type","color","colorPos","rgba","setPosition","timeProp","cls2process","object","overflow","clearfix","text","pos","endsWith","num","font","whitespace","inset","top","right","bottom","left","flex","ruleFunc","v1","v2","v3","order","grid","cols","span","start","end","rows","row","gap","col","space","divide","min","max","tracking","leading","placeholder","push","align","bg","rounded","place1","border","opacity","transition","ruleFunc2","duration","delay","ease","scale","rotate","translate","fractions","skew","transform","origin","cursor","shadow","xs","2xl","inner","outline","none","console","log","pointer","select","fill","stroke","items","content","self","gridRowAlign","justify","webkit","pseudosRegex","specialChars","processClass","RegExp","match","pop","customData","lastIndexOf","pseudosStr","originalPseudos","setRule","notFound","parts","process","toFixed","basicPart","e","formatClass","findInSheet","rules","CSSRule","STYLE_RULE","selectorText","item","cssText","MEDIA_RULE","responsiveSheets","responsive","sheets","pseudoVendorPrefixes","::placeholder","::selection","pseudo","ruleCls","sheetPrefix","important","err","mediaQuery","shift","prefixes","has"],"mappings":"+zBAEA,IASIA,EAEAC,EACAC,EAZAC,EAAQ,SAACC,UAAOC,MAAMD,IACtBE,EAAa,SAACF,UAAOC,MAAME,SAASH,KACpCI,EAAQ,SAACC,UAAMA,EAAED,MAAM,MACvBE,EAAU,SAACD,EAAGL,UAAMI,EAAMC,GAAGC,QAAQN,IACrCO,EAAW,SAACF,EAAGL,UAAMI,EAAMC,GAAGE,SAASP,IACvCQ,EAAU,SAACR,UAAMD,EAAMC,GAAKS,EAAuB,IAAZC,OAAOV,GAAY,MAAQS,EAAWT,GAC7EW,EAAY,SAACC,mBAAAA,IAAAA,EAAI,IAAOC,OAAOC,OAAOD,OAAOE,OAAO,MAAOH,IAC3DI,EAAe,IAAIC,IACnBC,EAAc,IAAID,IAElBE,EAASR,EAAU,CAAES,UAAW,IAAKC,QAAS,CAAEC,GAAI,QAASC,GAAI,QAASC,GAAI,SAAUC,GAAI,YAIrFC,EAAY,SAACC,EAAM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AIL,GAAS"} \ No newline at end of file +{"version":3,"file":"runcss.esm.js","sources":["../src/runcss.js"],"sourcesContent":["/* eslint-disable prefer-const */\r\n\r\nlet isNum = (v) => !isNaN(v)\r\nlet isStartNum = (v) => !isNaN(parseInt(v))\r\nlet split = (s) => s.split('!')\r\nlet indexOf = (s, v) => split(s).indexOf(v)\r\nlet includes = (s, v) => split(s).includes(v)\r\nlet ifRemTo = (v) => isNum(v) ? negative + Number(v) * 0.25 + 'rem' : negative + v\r\nlet newObject = (o = {}) => Object.assign(Object.create(null), o)\r\nlet classesCache = new Map()\r\nlet customCache = new Map()\r\nlet parentSheet\r\nlet config = newObject({ separator: ':', screens: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px' } })\r\nlet componentName\r\nlet addedScreens\r\n\r\nexport let component = (name, classes, props) => {\r\n if (typeof name !== 'string') {\r\n throw Error('Component must have a name.')\r\n }\r\n name = name.trim()\r\n if (classesCache.get(name)) {\r\n throw Error(`Class '${name}' was already processed.`)\r\n }\r\n customCache.set(name, [classes, props])\r\n}\r\n\r\nlet isObject = value => Object.prototype.toString.call(value) === '[object Object]'\r\nlet hex6 = value => {\r\n if (typeof value !== 'string') {\r\n throw Error('Hex value is not a hex string.')\r\n }\r\n if (!value.startsWith('#')) {\r\n value = '#' + value\r\n }\r\n value = value.length === 4 ? value.slice(1).split('').map((v) => v + v).join('') : value.slice(1)\r\n if (!/^[0-9a-f]{6}$/i.test(value)) {\r\n throw Error('Incorrect hex color format.')\r\n }\r\n return value\r\n}\r\n\r\nlet errorNotObject = value => {\r\n if (!isObject(value)) {\r\n throw Error('Config value must be an object.')\r\n }\r\n}\r\n\r\nlet customColors = new Map()\r\n\r\nexport let configure = (conf = newObject()) => {\r\n for (let s of split('separator!prefix')) {\r\n if (conf[s] !== undefined && typeof conf[s] !== 'string') {\r\n throw Error(`config.${s} must be a string.`)\r\n }\r\n }\r\n if (conf.screens) {\r\n errorNotObject(conf.screens)\r\n }\r\n if (conf.colors) {\r\n errorNotObject(conf.colors)\r\n for (let [key1, value1] of Object.entries(conf.colors)) {\r\n if (isObject(value1)) {\r\n for (let [key2, value2] of Object.entries(value1)) {\r\n customColors.set(key1 + '-' + key2, hex6(value2))\r\n }\r\n } else {\r\n customColors.set(key1, hex6(value1))\r\n }\r\n }\r\n } else {\r\n Object.assign(config, conf)\r\n }\r\n}\r\n\r\nif (document.styleSheets.length === 0) {\r\n parentSheet = document.head.appendChild(document.createElement('style')).sheet\r\n} else {\r\n parentSheet = document.styleSheets[0]\r\n}\r\n\r\nlet media = new Map()\r\nlet setMedia = (prefix, size) => {\r\n let condition = size ? `(min-width:${size})` : ''\r\n for (let i = 0; i < 3; i++) {\r\n media.set(prefix + i, parentSheet.cssRules[parentSheet.insertRule(`@media${condition}{}`, parentSheet.cssRules.length)])\r\n }\r\n}\r\n\r\nlet cls\r\nlet originalClass\r\n\r\nlet processClasses = (classes) => {\r\n if (!addedScreens) {\r\n addedScreens = true\r\n let entries = Object.entries(config.screens)\r\n for (const m of split('custom!default')) {\r\n setMedia(m)\r\n for (const [key, size] of entries) {\r\n setMedia(m + key, size)\r\n }\r\n }\r\n }\r\n if (typeof classes === 'string') {\r\n classes = classes.trim()\r\n if (!classesCache.has(classes)) {\r\n for (cls of classes.replace(/\\s\\s+/g, ' ').split(' ')) {\r\n if (classesCache.has(cls)) {\r\n continue\r\n }\r\n classesCache.set(cls, true)\r\n processClass()\r\n }\r\n classesCache.set(classes, true)\r\n }\r\n }\r\n}\r\nexport default processClasses\r\n\r\nlet formatters = newObject({\r\n p: 'padding',\r\n m: 'margin',\r\n h: 'height',\r\n z: 'z-index',\r\n w: 'width'\r\n})\r\n\r\nlet classNames = newObject()\r\n\r\n// direct map from class to values\r\nfor (let c of split('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji!font-serif|font-family:Georgia,Cambria,\"Times New Roman\",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace!sticky|position:-webkit-sticky;position:sticky')) {\r\n let [k, v] = c.split('|')\r\n classNames[k] = v\r\n}\r\n\r\n// class to value\r\nfor (let c of split('float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none')) {\r\n classNames[c] = c.replace('-', ':')\r\n}\r\n\r\n// display\r\nfor (let c of split('block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row')) {\r\n let p = c\r\n if (c === 'flex') {\r\n p = '-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex'\r\n } else if (c === 'inline-flex') {\r\n p = '-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex'\r\n } else if (c === 'grid') {\r\n p = '-ms-grid;display:grid'\r\n } else if (c === 'inline-grid') {\r\n p = '-ms-inline-grid;display:inline-grid'\r\n }\r\n classNames[c] = 'display:' + p\r\n}\r\n\r\n// position\r\nfor (let c of split('static!fixed!absolute!relative')) {\r\n classNames[c] = 'position:' + c\r\n}\r\n\r\nlet colors = split('f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459')\r\n\r\nlet colorNames = split('gray!red!orange!yellow!green!teal!blue!indigo!purple!pink')\r\n\r\nlet roundedSize = split('none!sm!nm!md!lg!full')\r\n\r\nlet edge = newObject({ l: 'left', r: 'right', t: 'top', b: 'bottom' })\r\n\r\nlet setColor = (type) => {\r\n if (secondPart === 'opacity' && isNum(thirdPart)) {\r\n rule = `--${type}-opacity:` + (thirdPart === '100' ? '1' : thirdPart / 100)\r\n } else {\r\n let color = customColors.get(rest)\r\n if (color) {\r\n if (thirdPart && isObject(color)) {\r\n color = color[thirdPart]\r\n }\r\n } else {\r\n if (thirdPart) {\r\n let colorPos = colorNames.indexOf(secondPart)\r\n color = colors[colorPos * 9 + (Number(thirdPart[0]) - 1)]\r\n } else if (secondPart && secondPart.startsWith('#')) {\r\n try {\r\n color = hex6(secondPart)\r\n } catch {}\r\n }\r\n }\r\n if (color) {\r\n let rgba = type + `:rgba(${parseInt(color.slice(0, 2), 16)},${parseInt(color.slice(2, 4), 16)},${parseInt(color.slice(4, 6), 16)},var(--${type}-opacity,1))`\r\n rule = type + `:#${color};` + rgba\r\n } else if (secondPart === 'current') {\r\n rule = type + ':' + 'currentColor'\r\n } else {\r\n rule = type + ':' + rest\r\n // console.log(rule)\r\n }\r\n }\r\n}\r\n\r\nlet setPosition = () => {\r\n if (!fourthPart && (includes('auto!initial!inherit', lastPart) || isStartNum(lastPart))) {\r\n let v = negative + lastPart\r\n if (thirdPart) {\r\n sheetLevel = 1\r\n if (secondPart === 'y') {\r\n rule = `top:${v};bottom:` + v\r\n } else if (secondPart === 'x') {\r\n rule = `left:${v};right:` + v\r\n }\r\n } else if (secondPart) {\r\n if (firstPart === 'inset') {\r\n rule = `top:${v};right:${v};bottom:${v};left:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = firstPart + ':' + v\r\n }\r\n }\r\n }\r\n}\r\n\r\nlet timeProp = () => {\r\n let v\r\n if (isNum(secondPart)) {\r\n v = secondPart + 'ms'\r\n } else if (isStartNum(secondPart)) {\r\n v = secondPart\r\n }\r\n if (v) {\r\n rule = `-webkit-transition-${firstPart}:${v};-o-transition-${firstPart}:${v};transition-${firstPart}:` + v\r\n }\r\n}\r\n\r\nlet cls2process = newObject({\r\n object: () => {\r\n if (includes('contain!cover!fill!none!bottom', rest)) {\r\n rule = `-o-object-fit:${rest};object-fit:` + rest\r\n } else if (includes('bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-o-object-position:${rest};object-position:` + rest\r\n }\r\n },\r\n overflow: () => {\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n }\r\n rule = partsWithoutEnd + ':' + lastPart\r\n },\r\n clearfix: () => {\r\n originalClass = 'clearfix::after'\r\n rule = 'content:\"\";display:table;clear:both'\r\n },\r\n text: () => {\r\n let pos = indexOf('xs!sm!base!lg!xl', secondPart)\r\n if (pos > -1) {\r\n rule = `font-size:${0.75 + (0.125 * pos)}rem`\r\n } else if (secondPart.endsWith('xl')) {\r\n let [num] = secondPart.split('x')\r\n if (isNum(num)) {\r\n rule = `font-size:${Number(num) - 2}rem`\r\n }\r\n } else if (includes('left!center!right!justify', rest)) {\r\n rule = 'text-align:' + rest\r\n } else {\r\n setColor('color')\r\n }\r\n },\r\n font: () => {\r\n let pos = indexOf('hairline!thin!light!normal!medium!semibold!bold!extrabold!black', secondPart)\r\n if (pos > -1) {\r\n rule = 'font-weight:' + (100 * (1 + pos))\r\n } else if (isNum(secondPart)) {\r\n rule = 'font-weight:' + secondPart\r\n }\r\n },\r\n whitespace: () => {\r\n if (includes('normal!pre!pre-line!pre-wrap', rest)) {\r\n rule = 'white-space:' + rest\r\n }\r\n },\r\n inset: setPosition,\r\n top: setPosition,\r\n right: setPosition,\r\n bottom: setPosition,\r\n left: setPosition,\r\n flex: () => {\r\n let ruleFunc = (v1, v2 = 1, v3 = '0%') => `-webkit-box-flex:${v1};-ms-flex:${v1} ${v2} ${v3};flex:${v1} ${v2} ` + v3\r\n if (includes('row!row-reverse!col!col-reverse', rest)) {\r\n rest = rest.replace('col', 'column')\r\n rule = `-webkit-box-orient:${secondPart === 'row' ? 'horizontal' : 'vertical'};-webkit-box-direction:${thirdPart === 'reverse' ? thirdPart : 'normal'};-ms-flex-direction:${rest};flex-direction:${rest}`\r\n } else if (includes('no-wrap!flex-wrap!wrap-reverse', rest)) {\r\n if (rest === 'no-wrap') {\r\n rest = 'nowrap'\r\n }\r\n rule = `-ms-flex-wrap:${rest};flex-wrap:${rest}`\r\n } else if (includes('grow!shrink', secondPart)) {\r\n sheetLevel = 1\r\n let v = thirdPart || 1\r\n if (secondPart === 'grow') {\r\n rule = `-webkit-box-flex:${v};-ms-flex-positive:${v};flex-grow:${v}`\r\n } else {\r\n rule = `-ms-flex-negative:${v};flex-shrink:${v}`\r\n }\r\n } else if (rest === 'initial') {\r\n rule = ruleFunc(0, 1, 'auto')\r\n } else if (rest === 'auto') {\r\n rule = ruleFunc(1, 1, 'auto')\r\n } else if (rest === 'none') {\r\n rule = '-webkit-box-flex:0;-ms-flex:none;flex:none'\r\n } else if (fourthPart) {\r\n rule = ruleFunc(secondPart, thirdPart, fourthPart)\r\n } else if (thirdPart) {\r\n rule = ruleFunc(secondPart, thirdPart)\r\n } else {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n order: () => {\r\n if (isNum(secondPart)) {\r\n let num = negative + secondPart\r\n rule = `-webkit-box-ordinal-group:${Number(num) + 1};-ms-flex-order:${num};order:` + num\r\n }\r\n },\r\n grid: () => {\r\n if (isNum(thirdPart)) {\r\n rule = newObject({\r\n cols: `-ms-grid-columns:(minmax(0,1fr))[${thirdPart}];grid-template-columns: repeat(${thirdPart}, minmax(0, 1fr))`,\r\n span: `-ms-grid-column-span:${thirdPart};grid-column: span ${thirdPart} / span ` + thirdPart,\r\n start: `-ms-grid-column:${thirdPart};grid-column-start:` + thirdPart,\r\n end: `-ms-grid-column-span:${thirdPart};grid-column-end:` + thirdPart,\r\n rows: `-ms-grid-rows:(minmax(0,1fr))[${thirdPart}];grid-template-rows: repeat(${thirdPart}, minmax(0, 1fr))`\r\n })[secondPart]\r\n }\r\n },\r\n row: () => {\r\n if (isStartNum(thirdPart)) {\r\n rule = newObject({\r\n span: `-ms-grid-row-span:${thirdPart};grid-row: span ${thirdPart} / span ${thirdPart}`,\r\n start: `-ms-grid-row:${thirdPart};grid-row-start:` + thirdPart,\r\n end: `-ms-grid-row-span:${thirdPart};grid-row-end:` + thirdPart,\r\n gap: 'row-gap:' + ifRemTo(thirdPart)\r\n })[secondPart]\r\n }\r\n },\r\n col: () => {\r\n if (isNum(thirdPart)) {\r\n if (secondPart === 'span') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column:span ${thirdPart} / span ${thirdPart};`\r\n } else if (secondPart === 'start') {\r\n rule = `-ms-grid-column:${thirdPart};grid-column-start:${thirdPart}`\r\n } else if (secondPart === 'end') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column-end:${thirdPart}`\r\n }\r\n }\r\n if (isStartNum(thirdPart) && secondPart === 'gap') {\r\n let v = thirdPart === 'px' ? '1px' : ifRemTo(thirdPart)\r\n rule = `-webkit-column-gap:${v};-moz-column-gap:${v}column-gap:` + v\r\n }\r\n },\r\n gap: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'gap:' + ifRemTo(secondPart)\r\n }\r\n },\r\n space: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n }\r\n if (thirdPart) {\r\n if (isStartNum(thirdPart)) {\r\n let v = ifRemTo(thirdPart)\r\n if (secondPart === 'x') {\r\n rule = `margin-right:calc(${v}*var(--space-x-reverse,0));margin-left:calc(${v}*(1 - var(--space-x-reverse,0)))`\r\n } else if (secondPart === 'y') {\r\n rule = `margin-top:calc(${v}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${v}*var(--space-y-reverse,0))`\r\n }\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--space-${secondPart}-reverse:1`\r\n }\r\n }\r\n },\r\n divide: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n sheetLevel = 1\r\n if (!fourthPart) {\r\n let v\r\n if (isNum(thirdPart)) {\r\n v = thirdPart + 'px'\r\n } else if (isStartNum(thirdPart)) {\r\n v = thirdPart\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--divide-${secondPart}-reverse:1`\r\n } else if (secondPart) {\r\n v = '1px'\r\n }\r\n\r\n if (v) {\r\n if (secondPart === 'y') {\r\n rule = `border-top-width:calc(${v}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${v}*var(--divide-y-reverse,0)))`\r\n } else if (secondPart === 'x') {\r\n rule = `border-right-width:calc(${v}*var(--divide-x-reverse,0));border-left-width:calc(${v}*calc(1 - var(--divide-x-reverse,0)))`\r\n }\r\n }\r\n }\r\n if (!rule) {\r\n setColor('border-color')\r\n }\r\n },\r\n min: () => {\r\n if (isStartNum(thirdPart)) {\r\n if (secondPart === 'w' || secondPart === 'h') {\r\n let p = secondPart === 'w' ? 'width' : 'height'\r\n rule = `min-${p}:` + thirdPart\r\n }\r\n }\r\n },\r\n max: () => {\r\n if (secondPart === 'w') {\r\n let pos = indexOf('xs!sm!md!lg!xl', thirdPart)\r\n if (pos > -1) {\r\n rule = `max-width:${pos * 4 + 20}rem`\r\n } else if (isStartNum(thirdPart)) {\r\n if (thirdPart.endsWith('xl')) {\r\n rule = `max-width:${parseInt(thirdPart) * 8 + 24}rem`\r\n } else {\r\n rule = 'max-width:' + thirdPart\r\n }\r\n }\r\n } else if (secondPart === 'h' && isStartNum(thirdPart)) {\r\n rule = 'max-height:' + thirdPart\r\n }\r\n },\r\n tracking: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'letter-spacing:' + secondPart\r\n }\r\n },\r\n leading: () => {\r\n if (isNum(secondPart)) {\r\n rule = `line-height:${Number(secondPart) * 0.25}rem`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'line-height:' + secondPart\r\n }\r\n },\r\n placeholder: () => {\r\n pseudos.push('::placeholder')\r\n setColor('color')\r\n },\r\n align: () => {\r\n if (includes('baseline!top!middle!bottom!text-top!text-bottom', rest)) {\r\n rule = 'vertical-align:' + rest\r\n }\r\n },\r\n bg: () => {\r\n rest = rest.replace('-', ' ')\r\n if (includes('bottom!center!left!left bottom!left top!right!right bottom!right top!top', rest)) {\r\n rule = 'background-position:' + rest\r\n } else if (includes('repeat!no-repeat!repeat-x!repeat-y', rest)) {\r\n rule = 'background-repeat:' + rest\r\n } else if (includes('repeat-round!repeat-space', rest)) {\r\n rule = 'background-repeat:' + thirdPart\r\n } else if (includes('auto!cover!contain', rest)) {\r\n rule = 'background-size:' + rest\r\n } else if (includes('fixed!local!scroll', secondPart)) {\r\n rule = 'background-attachment:' + secondPart\r\n } else {\r\n setColor('background-color')\r\n }\r\n },\r\n rounded: () => {\r\n let v\r\n let pos = roundedSize.indexOf(lastPart)\r\n if (isStartNum(lastPart)) {\r\n v = lastPart\r\n pos = 9\r\n } else if (pos === 5) {\r\n v = '9999px'\r\n } else if (pos > -1) {\r\n v = pos * 0.125 + 'rem'\r\n } else if (!secondPart || edge[secondPart] || (includes('t!b', secondPart[0]) && includes('r!l', secondPart[1]))) {\r\n v = '0.25rem'\r\n }\r\n if (v) {\r\n let place1 = edge[secondPart[0]]\r\n if (!secondPart || (!thirdPart && pos > -1)) {\r\n rule = 'border-radius:' + v\r\n } else if (includes('t!b', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-${place1}-left-radius:${v};border-${place1}-right-radius:` + v\r\n } else if (includes('l!r', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-top-${place1}-radius:${v};border-bottom-${place1}-radius:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = `border-${place1}-${edge[secondPart[1]]}-radius:` + v\r\n }\r\n }\r\n },\r\n border: () => {\r\n let b = edge[secondPart]\r\n if (thirdPart && b) {\r\n if (isNum(thirdPart)) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:${thirdPart}px`\r\n } else if (isStartNum(thirdPart)) {\r\n rule = `border-${b}-width:` + thirdPart\r\n }\r\n } else {\r\n if (includes('solid!dashed!dotted!double!none', secondPart)) {\r\n rule = 'border-style:' + secondPart\r\n } else if (b) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:1px`\r\n } else if (isNum(secondPart)) {\r\n rule = `border-width:${secondPart}px`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'border-width:' + secondPart\r\n } else {\r\n setColor('border-color')\r\n }\r\n }\r\n },\r\n opacity: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'opacity:' + secondPart / 100.0\r\n }\r\n },\r\n transition: () => {\r\n let ruleFunc = (value) => `-webkit-transition-property:${value};-o-transition-property:${value};transition-property:` + value\r\n let ruleFunc2 = (value) => `-webkit-transition-property:-webkit-${value};transition-property:-webkit-${value};-o-transition-property:${value};transition-property:${value};transition-property:${value},-webkit-${value}`\r\n if (!secondPart) {\r\n rule = '-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform'\r\n rule = rule.replace(/S/g, 'background-color,border-color,color,fill,stroke,opacity,')\r\n } else if (secondPart === 'colors') {\r\n rule = ruleFunc('background-color,border-color,color,fill,stroke')\r\n } else if (secondPart === 'shadow') {\r\n rule = ruleFunc2('box-shadow')\r\n } else if (secondPart === 'transform') {\r\n rule = ruleFunc2('transform')\r\n } else if (secondPart) {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n duration: timeProp,\r\n delay: timeProp,\r\n ease: () => {\r\n let ruleFunc = (value) => `-webkit-transition-timing-function:${value};-o-transition-timing-function:${value};transition-timing-function:${value}`\r\n if (rest === 'in') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,1,1)')\r\n } else if (rest === 'out') {\r\n rule = ruleFunc('cubic-bezier(0,0,0.2,1)')\r\n } else if (rest === 'in-out') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,0.2,1)')\r\n } else if (rest === 'linear') {\r\n rule = ruleFunc('linear')\r\n }\r\n },\r\n scale: () => {\r\n if (isNum(lastPart)) {\r\n let v = lastPart / 100\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n rule = `--transform-scale-${secondPart}:` + v\r\n } else {\r\n rule = `--transform-scale-x:${v};--transform-scale-y:` + v\r\n }\r\n }\r\n },\r\n rotate: () => {\r\n if (isNum(secondPart)) {\r\n rule = `--transform-rotate:${negative}${secondPart}deg`\r\n }\r\n },\r\n translate: () => {\r\n if (includes('x!y', secondPart)) {\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n } else if (thirdPart === 'full') {\r\n thirdPart = '100%'\r\n } else if (thirdPart.includes('/')) {\r\n let fractions = thirdPart.split('/')\r\n if (fractions.length === 2) {\r\n thirdPart = Number(fractions[0]) / Number(fractions[1]) + '%'\r\n }\r\n }\r\n if (isStartNum(thirdPart)) {\r\n rule = `--transform-translate-${secondPart}:` + ifRemTo(thirdPart)\r\n }\r\n }\r\n },\r\n skew: () => {\r\n if (includes('x!y', secondPart) && isNum(thirdPart)) {\r\n rule = `--transform-skew-${secondPart}:${negative + thirdPart}deg`\r\n }\r\n },\r\n transform: () => {\r\n let v = 'translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))'\r\n rule = `-webkit-transform:${v};-ms-transform:${v};transform:` + v\r\n },\r\n origin: () => {\r\n if (includes('center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-webkit-transform-origin:${rest};-ms-transform-origin:${rest};transform-origin:` + rest\r\n }\r\n },\r\n cursor: () => {\r\n if (includes('auto!default!pointer!wait!text!move!not-allowed', rest)) {\r\n rule = 'cursor:' + rest\r\n }\r\n },\r\n shadow: () => {\r\n let shadows = newObject({\r\n xs: '0 0 0 1pxR.05)',\r\n sm: '0 1px 2px 0R.05)',\r\n '': '0 1px 3px 0R.1), 0 1px 2px 0R.06)',\r\n md: '0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)',\r\n lg: '0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)',\r\n xl: '0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)',\r\n '2xl': '0 25px 50px -12pxR.25)',\r\n inner: 'inset 0 2px 4px 0R.06)',\r\n outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',\r\n none: 'none'\r\n })\r\n let v = shadows[secondPart]\r\n if (v) {\r\n v = v.replace(/R/g, ' rgba(0, 0, 0, 0')\r\n // console.log(v)\r\n rule = `-webkit-box-shadow:${v};box-shadow:` + v\r\n }\r\n },\r\n outline: () => {\r\n if (secondPart) {\r\n rule = 'outline:' + rest.replace('-', ' ')\r\n }\r\n },\r\n pointer: () => {\r\n if (secondPart) {\r\n rule = 'pointer-events:' + secondPart\r\n }\r\n },\r\n select: () => {\r\n if (includes('none!auto!text!contain!all!inherit!initial!unset', rest)) {\r\n rule = `-webkit-user-select:${rest};-moz-user-select:${rest};-ms-user-select:${rest};user-select:` + rest\r\n }\r\n },\r\n fill: () => {\r\n if (secondPart) {\r\n rule = 'fill:' + secondPart\r\n }\r\n },\r\n stroke: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'stroke-width:' + secondPart\r\n } else if (secondPart) {\r\n rule = 'stroke:' + secondPart\r\n }\r\n },\r\n items: () => {\r\n if (includes('stretch!start!center!end!baseline', rest)) {\r\n rule = `-webkit-box-align:${rest};-ms-flex-align:${rest};align-items:` + (includes('start!end', rest) ? 'flex-' : '') + rest\r\n }\r\n },\r\n content: () => {\r\n if (includes('start!center!end!between!around')) {\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n } else if (rest === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (rest === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n }\r\n\r\n rule = `-ms-flex-line-pack:${v};align-content:` + rest\r\n }\r\n },\r\n self: () => {\r\n if (includes('auto!start!center!end!stretch', rest)) {\r\n let gridRowAlign = `-ms-grid-row-align:${rest};`\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n gridRowAlign = ''\r\n }\r\n rule = `-ms-flex-item-align:${v};${gridRowAlign}align-self:` + rest\r\n }\r\n },\r\n justify: () => {\r\n if (includes('start!center!end!between!around', rest)) {\r\n let v = rest\r\n if (v === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (includes('start!end')) {\r\n rest = 'flex-' + rest\r\n }\r\n let webkit = `-webkit-box-pack:${v};`\r\n if (v === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n webkit = ''\r\n }\r\n rule = webkit + `-ms-flex-pack:${v};justify-content:` + rest\r\n }\r\n }\r\n})\r\n\r\nlet firstPart // first part\r\nlet secondPart // second part\r\nlet thirdPart // third part\r\nlet fourthPart\r\nlet lastPart // last part\r\nlet partsWithoutEnd // without end\r\nlet rest\r\nlet negative\r\nlet rule\r\nlet pseudos\r\nlet pseudosRegex = /[^:]+::?|.+/g\r\nlet specialChars = /[.*+\\-?^${}()|[\\]\\\\]/g\r\nlet sheetLevel\r\n\r\nfunction processClass () {\r\n sheetLevel = 0\r\n rule = ''\r\n negative = ''\r\n originalClass = cls\r\n let separator = config.separator\r\n if (separator !== ':') {\r\n cls = cls.replace(new RegExp(separator.replace(specialChars, '\\\\$&'), 'g'), ':')\r\n }\r\n pseudos = cls.match(pseudosRegex)\r\n cls = pseudos.pop()\r\n pseudos = pseudos.map(v => v.endsWith('::') ? '::' + v.slice(0, -2) : ':' + v.slice(0, -1))\r\n let customData = customCache.get(cls)\r\n if (customData) {\r\n let [classes, props] = customData\r\n let [pseudosStr, originalPseudos] = [originalClass.slice(0, originalClass.lastIndexOf(cls)), pseudos]\r\n componentName = originalClass\r\n if (typeof classes === 'string') {\r\n for (cls of classes.trim().replace(/\\s\\s+/g, ' ').split(' ')) {\r\n cls = pseudosStr + cls\r\n processClass()\r\n }\r\n }\r\n pseudos = originalPseudos\r\n if (props && typeof props === 'string') {\r\n setRule(props)\r\n }\r\n componentName = ''\r\n return\r\n }\r\n\r\n if (cls[0] === '-') {\r\n negative = '-'\r\n cls = cls.slice(1)\r\n }\r\n\r\n if (typeof config.prefix === 'string') {\r\n if (!cls.startsWith(config.prefix)) {\r\n notFound()\r\n return\r\n } else {\r\n cls = cls.slice(config.prefix.length)\r\n }\r\n }\r\n let parts = cls.split('-')\r\n ;[firstPart, secondPart = '', thirdPart = '', fourthPart = ''] = parts\r\n lastPart = parts[parts.length - 1]\r\n partsWithoutEnd = parts.slice(0, -1).join('-')\r\n rest = parts.slice(1).join('-')\r\n\r\n let process\r\n if (!(rule = classNames[cls]) && (process = cls2process[firstPart])) {\r\n process()\r\n } else if (firstPart.length < 3 && !thirdPart) {\r\n formatClass()\r\n }\r\n\r\n if (rule) {\r\n setRule(rule)\r\n } else if (cls === 'container') {\r\n setRule('width:100%')\r\n for (const [r, size] of Object.entries(config.screens)) {\r\n setRule('max-width:' + size, media.get(`default${r}0`))\r\n }\r\n } else {\r\n notFound()\r\n }\r\n}\r\n\r\nfunction formatClass () {\r\n let v\r\n if (secondPart === 'px') {\r\n v = `${negative}1px`\r\n } else if (secondPart === 'full') {\r\n v = '100%'\r\n } else if (secondPart === 'screen') {\r\n if (firstPart === 'w') {\r\n v = '100vw'\r\n } else if (firstPart === 'h') {\r\n v = '100vh'\r\n }\r\n } else if (secondPart === 'auto') {\r\n v = 'auto'\r\n } else if (isNum(secondPart)) {\r\n v = negative + Number(secondPart) * 0.25 + 'rem'\r\n } else if (secondPart.indexOf('/') > -1) {\r\n let [top, bottom] = secondPart.split('/')\r\n if (isNum(top) && isNum(bottom)) {\r\n v = negative + (Number(top) / Number(bottom)).toFixed(6) + '%'\r\n }\r\n } else if (isStartNum(secondPart)) {\r\n v = negative + secondPart\r\n }\r\n\r\n let basicPart = formatters[firstPart[0]]\r\n let e = edge[firstPart[1]]\r\n if (v && basicPart) {\r\n if (firstPart[1] === 'x') {\r\n sheetLevel = 1\r\n rule = basicPart + `-right:${v};${basicPart}-left:` + v\r\n } else if (firstPart[1] === 'y') {\r\n sheetLevel = 1\r\n rule = basicPart + `-top:${v};${basicPart}-bottom:` + v\r\n } else if (e) {\r\n sheetLevel = 2\r\n rule = basicPart + `-${e}:` + v\r\n } else {\r\n rule = basicPart + ':' + v\r\n }\r\n }\r\n}\r\n\r\nlet findInSheet = (sheet) => {\r\n let rules = []\r\n for (let rule of [...sheet.cssRules]) {\r\n // eslint-disable-next-line no-undef\r\n if (rule.type === CSSRule.STYLE_RULE) {\r\n if (rule.selectorText.split(',').map((item) => item.trim()).includes('.' + cls)) {\r\n let text = rule.cssText\r\n rules.push([text.slice(text.indexOf('{') + 1, text.lastIndexOf('}')), sheet])\r\n }\r\n // eslint-disable-next-line no-undef\r\n } else if (rule.type === CSSRule.MEDIA_RULE) {\r\n rules.push(...findInSheet(rule))\r\n }\r\n }\r\n return rules\r\n}\r\n\r\nlet responsiveSheets = new Map()\r\n\r\nlet notFound = () => {\r\n if (pseudos.length > 0) {\r\n let rules = []\r\n for (const sheet of document.styleSheets) {\r\n rules.push(...findInSheet(sheet))\r\n }\r\n let responsive = pseudos[0].slice(1)\r\n if (config.screens[responsive]) {\r\n let screens = Object.entries(config.screens)\r\n for (let [rule, sheet] of rules) {\r\n let sheets = responsiveSheets.get(sheet)\r\n if (!sheets) {\r\n sheets = newObject()\r\n for (const [r, size] of screens) {\r\n sheets[r] = sheet.cssRules[sheet.insertRule(`@media(min-width:${size}){}`, sheet.cssRules.length)]\r\n }\r\n responsiveSheets[sheet] = sheets\r\n }\r\n setRule(rule, sheets[responsive])\r\n }\r\n } else {\r\n for (let [rule, sheet] of rules) {\r\n setRule(rule, sheet)\r\n }\r\n }\r\n }\r\n}\r\n\r\n// pseudos = split('::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P!::P'.replace(/P/g, 'placeholder'))\r\nlet pseudoVendorPrefixes = newObject({\r\n '::placeholder': '::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P'.replace(/P/g, 'placeholder'),\r\n '::selection': ':::-moz-selection'\r\n})\r\n\r\nfunction setRule (rule, sheet) {\r\n let pseudo = ''\r\n let ruleCls = originalClass\r\n let sheetPrefix = 'default'\r\n let important = ''\r\n let insertRule = () => {\r\n try {\r\n sheet.insertRule(important + `.${ruleCls}${pseudo}{${rule}}`, sheet.cssRules.length)\r\n } catch (err) {\r\n // console.log(err)\r\n }\r\n }\r\n\r\n if (componentName) {\r\n ruleCls = componentName\r\n sheetPrefix = 'custom'\r\n }\r\n ruleCls = ruleCls.replace(/[.:()&@~*^$%,#]/g, '\\\\$&')\r\n if (config.important) {\r\n if (config.important === true) {\r\n rule = rule.replace(/;/g, '!important;') + '!important'\r\n } else if (typeof config.important === 'string') {\r\n important = config.important + ' '\r\n }\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n let mediaQuery = media.get(sheetPrefix + pseudos[0].slice(1) + sheetLevel)\r\n if (mediaQuery) {\r\n sheet = sheet || mediaQuery\r\n pseudos.shift()\r\n }\r\n }\r\n\r\n if (!sheet) {\r\n sheet = media.get(sheetPrefix + sheetLevel)\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n for (const pseudo of [...pseudos]) {\r\n let prefixes = pseudoVendorPrefixes[pseudo]\r\n if (prefixes) {\r\n pseudos.push(...split(prefixes))\r\n }\r\n }\r\n for (pseudo of pseudos) {\r\n // console.log(`.${cls}${pseudo}{${t}}`)\r\n if (includes(':first!:last', pseudo)) {\r\n pseudo = pseudo + '-child'\r\n } else if (includes(':odd!:even', pseudo)) {\r\n pseudo = `:nth-child(${pseudo.slice(1)})`\r\n } else if (pseudo.startsWith(':group')) {\r\n ruleCls = pseudo.slice(1).replace('-', ':') + ' .' + ruleCls\r\n pseudo = ''\r\n }\r\n insertRule()\r\n }\r\n } else {\r\n insertRule()\r\n }\r\n}\r\n"],"names":["parentSheet","componentName","addedScreens","isNum","v","isNaN","isStartNum","parseInt","split","s","indexOf","includes","ifRemTo","negative","Number","newObject","o","Object","assign","create","classesCache","Map","customCache","config","separator","screens","sm","md","lg","xl","component","name","classes","props","Error","trim","get","set","isObject","value","prototype","toString","call","hex6","startsWith","length","slice","map","join","test","errorNotObject","customColors","configure","conf","undefined","colors","entries","key1","value1","document","styleSheets","head","appendChild","createElement","sheet","cls","originalClass","media","setMedia","prefix","size","condition","i","cssRules","insertRule","formatters","p","m","h","z","w","classNames","c","replace","firstPart","secondPart","thirdPart","fourthPart","lastPart","partsWithoutEnd","rest","rule","pseudos","sheetLevel","colorNames","roundedSize","edge","l","r","t","b","setColor","type","color","colorPos","rgba","setPosition","timeProp","cls2process","object","overflow","clearfix","text","pos","endsWith","num","font","whitespace","inset","top","right","bottom","left","flex","ruleFunc","v1","v2","v3","order","grid","cols","span","start","end","rows","row","gap","col","space","divide","min","max","tracking","leading","placeholder","push","align","bg","rounded","place1","border","opacity","transition","ruleFunc2","duration","delay","ease","scale","rotate","translate","fractions","skew","transform","origin","cursor","shadow","xs","2xl","inner","outline","none","pointer","select","fill","stroke","items","content","self","gridRowAlign","justify","webkit","pseudosRegex","specialChars","processClass","RegExp","match","pop","customData","lastIndexOf","pseudosStr","originalPseudos","setRule","notFound","parts","process","toFixed","basicPart","e","formatClass","findInSheet","rules","CSSRule","STYLE_RULE","selectorText","item","cssText","MEDIA_RULE","responsiveSheets","responsive","sheets","pseudoVendorPrefixes","::placeholder","::selection","pseudo","ruleCls","sheetPrefix","important","err","mediaQuery","shift","prefixes","has"],"mappings":"+zBAEA,IASIA,EAEAC,EACAC,EAZAC,EAAQ,SAACC,UAAOC,MAAMD,IACtBE,EAAa,SAACF,UAAOC,MAAME,SAASH,KACpCI,EAAQ,SAACC,UAAMA,EAAED,MAAM,MACvBE,EAAU,SAACD,EAAGL,UAAMI,EAAMC,GAAGC,QAAQN,IACrCO,EAAW,SAACF,EAAGL,UAAMI,EAAMC,GAAGE,SAASP,IACvCQ,EAAU,SAACR,UAAMD,EAAMC,GAAKS,EAAuB,IAAZC,OAAOV,GAAY,MAAQS,EAAWT,GAC7EW,EAAY,SAACC,mBAAAA,IAAAA,EAAI,IAAOC,OAAOC,OAAOD,OAAOE,OAAO,MAAOH,IAC3DI,EAAe,IAAIC,IACnBC,EAAc,IAAID,IAElBE,EAASR,EAAU,CAAES,UAAW,IAAKC,QAAS,CAAEC,GAAI,QAASC,GAAI,QAASC,GAAI,SAAUC,GAAI,YAIrFC,EAAY,SAACC,EAAMC,EAASC,GACrC,GAAoB,iBAATF,EACT,MAAM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 100644 --- a/dist/runcss.js +++ b/dist/runcss.js @@ -1,2 +1,2 @@ -function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(o=t[Symbol.iterator]()).next.bind(o)}var r,o,i,n=function(e){return!isNaN(e)},a=function(e){return!isNaN(parseInt(e))},l=function(e){return e.split("!")},s=function(e,t){return l(e).indexOf(t)},c=function(e,t){return l(e).includes(t)},f=function(e){return n(e)?G+.25*Number(e)+"rem":G+e},d=function(e){return void 0===e&&(e={}),Object.assign(Object.create(null),e)},p=new Map,u=new Map,m=d({separator:":",screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),b=function(e){return"[object Object]"===Object.prototype.toString.call(e)},g=function(e){if("string"!=typeof e)throw Error("Hex value is not a hex string.");if(e.startsWith("#")||(e="#"+e),e=4===e.length?e.slice(1).split("").map(function(e){return e+e}).join(""):e.slice(1),!/^[0-9a-f]{6}$/i.test(e))throw Error("Incorrect hex color format.");return e},x=function(e){if(!b(e))throw Error("Config value must be an object.")},w=new Map;r=0===document.styleSheets.length?document.head.appendChild(document.createElement("style")).sheet:document.styleSheets[0];for(var h,v,y,k=new Map,j=function(e,t){for(var o=t?"(min-width:"+t+")":"",i=0;i<3;i++)k.set(e+i,r.cssRules[r.insertRule("@media"+o+"{}",r.cssRules.length)])},z=d({p:"padding",m:"margin",h:"height",z:"z-index",w:"width"}),R=d(),S=t(l('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji!font-serif|font-family:Georgia,Cambria,"Times New Roman",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!sticky|position:-webkit-sticky;position:sticky'));!(y=S()).done;){var N=y.value.split("|");R[N[0]]=N[1]}for(var O,E=t(l("float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none"));!(O=E()).done;){var C=O.value;R[C]=C.replace("-",":")}for(var I,M=t(l("block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row"));!(I=M()).done;){var A=I.value,W=A;"flex"===A?W="-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex":"inline-flex"===A?W="-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex":"grid"===A?W="-ms-grid;display:grid":"inline-grid"===A&&(W="-ms-inline-grid;display:inline-grid"),R[A]="display:"+W}for(var T,U=t(l("static!fixed!absolute!relative"));!(T=U()).done;){var $=T.value;R[$]="position:"+$}var P,L,F,H,_,B,D,G,Y,q,J,K=l("f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459"),Q=l("gray!red!orange!yellow!green!teal!blue!indigo!purple!pink"),V=l("none!sm!nm!md!lg!full"),X=d({l:"left",r:"right",t:"top",b:"bottom"}),Z=function(e){if("opacity"===L&&n(F))Y="--"+e+"-opacity:"+("100"===F?"1":F/100);else{var t=w.get(D);if(t)F&&b(t)&&(t=t[F]);else if(F){var r=Q.indexOf(L);t=K[9*r+(Number(F[0])-1)]}else if(L&&L.startsWith("#"))try{t=g(L)}catch(e){}if(t){var o=e+":rgba("+parseInt(t.slice(0,2),16)+","+parseInt(t.slice(2,4),16)+","+parseInt(t.slice(4,6),16)+",var(--"+e+"-opacity,1))";Y=e+":#"+t+";"+o}else Y="current"===L?e+":currentColor":e+":"+D}},ee=function(){if(!H&&(c("auto!initial!inherit",_)||a(_))){var e=G+_;F?(J=1,"y"===L?Y="top:"+e+";bottom:"+e:"x"===L&&(Y="left:"+e+";right:"+e)):L&&("inset"===P?Y="top:"+e+";right:"+e+";bottom:"+e+";left:"+e:(J=2,Y=P+":"+e))}},te=function(){var e;n(L)?e=L+"ms":a(L)&&(e=L),e&&(Y="-webkit-transition-"+P+":"+e+";-o-transition-"+P+":"+e+";transition-"+P+":"+e)},re=d({object:function(){c("contain!cover!fill!none!bottom",D)?Y="-o-object-fit:"+D+";object-fit:"+D:c("bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top",D)&&(D=D.replace("-"," "),Y="-o-object-position:"+D+";object-position:"+D)},overflow:function(){c("x!y",L)&&(J=1),Y=B+":"+_},clearfix:function(){v="clearfix::after",Y='content:"";display:table;clear:both'},text:function(){var e=s("xs!sm!base!lg!xl",L);if(e>-1)Y="font-size:"+(.75+.125*e)+"rem";else if(L.endsWith("xl")){var t=L.split("x")[0];n(t)&&(Y="font-size:"+(Number(t)-2)+"rem")}else c("left!center!right!justify",D)?Y="text-align:"+D:Z("color")},font:function(){var e=s("hairline!thin!light!normal!medium!semibold!bold!extrabold!black",L);e>-1?Y="font-weight:"+100*(1+e):n(L)&&(Y="font-weight:"+L)},whitespace:function(){c("normal!pre!pre-line!pre-wrap",D)&&(Y="white-space:"+D)},inset:ee,top:ee,right:ee,bottom:ee,left:ee,flex:function(){var e=function(e,t,r){return void 0===t&&(t=1),void 0===r&&(r="0%"),"-webkit-box-flex:"+e+";-ms-flex:"+e+" "+t+" "+r+";flex:"+e+" "+t+" "+r};if(c("row!row-reverse!col!col-reverse",D))D=D.replace("col","column"),Y="-webkit-box-orient:"+("row"===L?"horizontal":"vertical")+";-webkit-box-direction:"+("reverse"===F?F:"normal")+";-ms-flex-direction:"+D+";flex-direction:"+D;else if(c("no-wrap!flex-wrap!wrap-reverse",D))"no-wrap"===D&&(D="nowrap"),Y="-ms-flex-wrap:"+D+";flex-wrap:"+D;else if(c("grow!shrink",L)){J=1;var t=F||1;Y="grow"===L?"-webkit-box-flex:"+t+";-ms-flex-positive:"+t+";flex-grow:"+t:"-ms-flex-negative:"+t+";flex-shrink:"+t}else Y="initial"===D?e(0,1,"auto"):"auto"===D?e(1,1,"auto"):"none"===D?"-webkit-box-flex:0;-ms-flex:none;flex:none":H?e(L,F,H):F?e(L,F):e(L)},order:function(){if(n(L)){var e=G+L;Y="-webkit-box-ordinal-group:"+(Number(e)+1)+";-ms-flex-order:"+e+";order:"+e}},grid:function(){n(F)&&(Y=d({cols:"-ms-grid-columns:(minmax(0,1fr))["+F+"];grid-template-columns: repeat("+F+", minmax(0, 1fr))",span:"-ms-grid-column-span:"+F+";grid-column: span "+F+" / span "+F,start:"-ms-grid-column:"+F+";grid-column-start:"+F,end:"-ms-grid-column-span:"+F+";grid-column-end:"+F,rows:"-ms-grid-rows:(minmax(0,1fr))["+F+"];grid-template-rows: repeat("+F+", minmax(0, 1fr))"})[L])},row:function(){a(F)&&(Y=d({span:"-ms-grid-row-span:"+F+";grid-row: span "+F+" / span "+F,start:"-ms-grid-row:"+F+";grid-row-start:"+F,end:"-ms-grid-row-span:"+F+";grid-row-end:"+F,gap:"row-gap:"+f(F)})[L])},col:function(){if(n(F)&&("span"===L?Y="-ms-grid-column-span:"+F+";grid-column:span "+F+" / span "+F+";":"start"===L?Y="-ms-grid-column:"+F+";grid-column-start:"+F:"end"===L&&(Y="-ms-grid-column-span:"+F+";grid-column-end:"+F)),a(F)&&"gap"===L){var e="px"===F?"1px":f(F);Y="-webkit-column-gap:"+e+";-moz-column-gap:"+e+"column-gap:"+e}},gap:function(){a(L)&&(Y="gap:"+f(L))},space:function(){if(q=[">:not(template)~:not(template)"],"px"===F&&(F="1px"),F)if(a(F)){var e=f(F);"x"===L?Y="margin-right:calc("+e+"*var(--space-x-reverse,0));margin-left:calc("+e+"*(1 - var(--space-x-reverse,0)))":"y"===L&&(Y="margin-top:calc("+e+"*(1 - var(--space-y-reverse,0)));margin-bottom:calc("+e+"*var(--space-y-reverse,0))")}else"reverse"===F&&(Y="--space-"+L+"-reverse:1")},divide:function(){var e;q=[">:not(template)~:not(template)"],J=1,H||(n(F)?e=F+"px":a(F)?e=F:"reverse"===F?Y="--divide-"+L+"-reverse:1":L&&(e="1px"),e&&("y"===L?Y="border-top-width:calc("+e+"*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc("+e+"*var(--divide-y-reverse,0)))":"x"===L&&(Y="border-right-width:calc("+e+"*var(--divide-x-reverse,0));border-left-width:calc("+e+"*calc(1 - var(--divide-x-reverse,0)))"))),Y||Z("border-color")},min:function(){a(F)&&("w"!==L&&"h"!==L||(Y="min-"+("w"===L?"width":"height")+":"+F))},max:function(){if("w"===L){var e=s("xs!sm!md!lg!xl",F);e>-1?Y="max-width:"+(4*e+20)+"rem":a(F)&&(Y=F.endsWith("xl")?"max-width:"+(8*parseInt(F)+24)+"rem":"max-width:"+F)}else"h"===L&&a(F)&&(Y="max-height:"+F)},tracking:function(){a(L)&&(Y="letter-spacing:"+L)},leading:function(){n(L)?Y="line-height:"+.25*Number(L)+"rem":a(L)&&(Y="line-height:"+L)},placeholder:function(){q.push("::placeholder"),Z("color")},align:function(){c("baseline!top!middle!bottom!text-top!text-bottom",D)&&(Y="vertical-align:"+D)},bg:function(){D=D.replace("-"," "),c("bottom!center!left!left bottom!left top!right!right bottom!right top!top",D)?Y="background-position:"+D:c("repeat!no-repeat!repeat-x!repeat-y",D)?Y="background-repeat:"+D:c("repeat-round!repeat-space",D)?Y="background-repeat:"+F:c("auto!cover!contain",D)?Y="background-size:"+D:c("fixed!local!scroll",L)?Y="background-attachment:"+L:Z("background-color")},rounded:function(){var e,t=V.indexOf(_);if(a(_)?(e=_,t=9):5===t?e="9999px":t>-1?e=.125*t+"rem":(!L||X[L]||c("t!b",L[0])&&c("r!l",L[1]))&&(e="0.25rem"),e){var r=X[L[0]];!L||!F&&t>-1?Y="border-radius:"+e:c("t!b",L)?(J=1,Y="border-"+r+"-left-radius:"+e+";border-"+r+"-right-radius:"+e):c("l!r",L)?(J=1,Y="border-top-"+r+"-radius:"+e+";border-bottom-"+r+"-radius:"+e):(J=2,Y="border-"+r+"-"+X[L[1]]+"-radius:"+e)}},border:function(){var e=X[L];F&&e?n(F)?(J=1,Y="border-"+e+"-width:"+F+"px"):a(F)&&(Y="border-"+e+"-width:"+F):c("solid!dashed!dotted!double!none",L)?Y="border-style:"+L:e?(J=1,Y="border-"+e+"-width:1px"):n(L)?Y="border-width:"+L+"px":a(L)?Y="border-width:"+L:Z("border-color")},opacity:function(){n(L)&&(Y="opacity:"+100/L)},transition:function(){var e=function(e){return"-webkit-transition-property:"+e+";-o-transition-property:"+e+";transition-property:"+e},t=function(e){return"-webkit-transition-property:-webkit-"+e+";transition-property:-webkit-"+e+";-o-transition-property:"+e+";transition-property:"+e+";transition-property:"+e+",-webkit-"+e};L?"colors"===L?Y=e("background-color,border-color,color,fill,stroke"):"shadow"===L?Y=t("box-shadow"):"transform"===L?Y=t("transform"):L&&(Y=e(L)):Y=(Y="-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform").replace(/S/g,"background-color,border-color,color,fill,stroke,opacity,")},duration:te,delay:te,ease:function(){var e=function(e){return"-webkit-transition-timing-function:"+e+";-o-transition-timing-function:"+e+";transition-timing-function:"+e};"in"===D?Y=e("cubic-bezier(0.4,0,1,1)"):"out"===D?Y=e("cubic-bezier(0,0,0.2,1)"):"in-out"===D?Y=e("cubic-bezier(0.4,0,0.2,1)"):"linear"===D&&(Y=e("linear"))},scale:function(){if(n(_)){var e=_/100;c("x!y",L)?(J=1,Y="--transform-scale-"+L+":"+e):Y="--transform-scale-x:"+e+";--transform-scale-y:"+e}},rotate:function(){n(L)&&(Y="--transform-rotate:"+G+L+"deg")},translate:function(){if(c("x!y",L)){if("px"===F)F="1px";else if("full"===F)F="100%";else if(F.includes("/")){var e=F.split("/");2===e.length&&(F=Number(e[0])/Number(e[1])+"%")}a(F)&&(Y="--transform-translate-"+L+":"+f(F))}},skew:function(){c("x!y",L)&&n(F)&&(Y="--transform-skew-"+L+":"+(G+F)+"deg")},transform:function(){var e="translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))";Y="-webkit-transform:"+e+";-ms-transform:"+e+";transform:"+e},origin:function(){c("center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left",D)&&(D=D.replace("-"," "),Y="-webkit-transform-origin:"+D+";-ms-transform-origin:"+D+";transform-origin:"+D)},cursor:function(){c("auto!default!pointer!wait!text!move!not-allowed",D)&&(Y="cursor:"+D)},shadow:function(){var e=d({xs:"0 0 0 1pxR.05)",sm:"0 1px 2px 0R.05)","":"0 1px 3px 0R.1), 0 1px 2px 0R.06)",md:"0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)",lg:"0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)",xl:"0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)","2xl":"0 25px 50px -12pxR.25)",inner:"inset 0 2px 4px 0R.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"})[L];e&&(e=e.replace(/R/g," rgba(0, 0, 0, 0"),console.log(e),Y="-webkit-box-shadow:"+e+";box-shadow:"+e)},outline:function(){L&&(Y="outline:"+D.replace("-"," "))},pointer:function(){L&&(Y="pointer-events:"+L)},select:function(){c("none!auto!text!contain!all!inherit!initial!unset",D)&&(Y="-webkit-user-select:"+D+";-moz-user-select:"+D+";-ms-user-select:"+D+";user-select:"+D)},fill:function(){L&&(Y="fill:"+L)},stroke:function(){n(L)?Y="stroke-width:"+L:L&&(Y="stroke:"+L)},items:function(){c("stretch!start!center!end!baseline",D)&&(Y="-webkit-box-align:"+D+";-ms-flex-align:"+D+";align-items:"+(c("start!end",D)?"flex-":"")+D)},content:function(){if(c("start!center!end!between!around")){var e=D;c("start!end",D)?D="flex-"+D:"between"===D?(e="justify",D="space-"+D):"around"===D&&(e="distribute",D="space-"+D),Y="-ms-flex-line-pack:"+e+";align-content:"+D}},self:function(){if(c("auto!start!center!end!stretch",D)){var e="-ms-grid-row-align:"+D+";",t=D;c("start!end",D)&&(D="flex-"+D,e=""),Y="-ms-flex-item-align:"+t+";"+e+"align-self:"+D}},justify:function(){if(c("start!center!end!between!around",D)){var e=D;"between"===e?(e="justify",D="space-"+D):c("start!end")&&(D="flex-"+D);var t="-webkit-box-pack:"+e+";";"around"===e&&(e="distribute",D="space-"+D,t=""),Y=t+"-ms-flex-pack:"+e+";justify-content:"+D}}}),oe=/[^:]+::?|.+/g,ie=/[.*+\-?^${}()|[\]\\]/g;function ne(){J=0,Y="",G="",v=h;var e=m.separator;":"!==e&&(h=h.replace(new RegExp(e.replace(ie,"\\$&"),"g"),":")),q=h.match(oe),h=q.pop(),q=q.map(function(e){return e.endsWith("::")?"::"+e.slice(0,-2):":"+e.slice(0,-1)});var r=u.get(h);if(r){var i=r[0],l=r[1],s=[v.slice(0,v.lastIndexOf(h)),q],c=s[0],f=s[1];if(o=v,"string"==typeof i)for(var d,p=t(i.trim().replace(/\s\s+/g," ").split(" "));!(d=p()).done;)h=c+(h=d.value),ne();return q=f,l&&"string"==typeof l&&fe(l),void(o="")}if("-"===h[0]&&(G="-",h=h.slice(1)),"string"==typeof m.prefix){if(!h.startsWith(m.prefix))return void se();h=h.slice(m.prefix.length)}var b=h.split("-");P=b[0];var g=b[1];L=void 0===g?"":g;var x=b[2];F=void 0===x?"":x;var w,y=b[3];if(H=void 0===y?"":y,_=b[b.length-1],B=b.slice(0,-1).join("-"),D=b.slice(1).join("-"),!(Y=R[h])&&(w=re[P])?w():P.length<3&&!F&&function(){var e;if("px"===L)e=G+"1px";else if("full"===L)e="100%";else if("screen"===L)"w"===P?e="100vw":"h"===P&&(e="100vh");else if("auto"===L)e="auto";else if(n(L))e=G+.25*Number(L)+"rem";else if(L.indexOf("/")>-1){var t=L.split("/"),r=t[0],o=t[1];n(r)&&n(o)&&(e=G+(Number(r)/Number(o)).toFixed(6)+"%")}else a(L)&&(e=G+L);var i=z[P[0]],l=X[P[1]];e&&i&&("x"===P[1]?(J=1,Y=i+"-right:"+e+";"+i+"-left:"+e):"y"===P[1]?(J=1,Y=i+"-top:"+e+";"+i+"-bottom:"+e):l?(J=2,Y=i+"-"+l+":"+e):Y=i+":"+e)}(),Y)fe(Y);else if("container"===h){fe("width:100%");for(var j=0,S=Object.entries(m.screens);j0){for(var e,r=[],o=t(document.styleSheets);!(e=o()).done;)r.push.apply(r,ae(e.value));var i=q[0].slice(1);if(m.screens[i])for(var n,a=Object.entries(m.screens),l=t(r);!(n=l()).done;){var s=n.value,c=s[0],f=s[1],p=le.get(f);if(!p){p=d();for(var u,b=t(a);!(u=b()).done;){var g=u.value;p[g[0]]=f.cssRules[f.insertRule("@media(min-width:"+g[1]+"){}",f.cssRules.length)]}le[f]=p}fe(c,p[i])}else for(var x,w=t(r);!(x=w()).done;){var h=x.value;fe(h[0],h[1])}}},ce=d({"::placeholder":"::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P".replace(/P/g,"placeholder"),"::selection":":::-moz-selection"});function fe(e,r){var i="",n=v,a="default",s="",f=function(){try{r.insertRule(s+"."+n+i+"{"+e+"}",r.cssRules.length)}catch(e){}};if(o&&(n=o,a="custom"),n=n.replace(/[.:()&@~*^$%,#]/g,"\\$&"),m.important&&(!0===m.important?e=e.replace(/;/g,"!important;")+"!important":"string"==typeof m.important&&(s=m.important+" ")),q.length>0){var d=k.get(a+q[0].slice(1)+J);d&&(r=r||d,q.shift())}if(r||(r=k.get(a+J)),q.length>0){for(var p=0,u=[].concat(q);pe.length)&&(t=e.length);for(var r=0,o=new Array(t);r=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(o=t[Symbol.iterator]()).next.bind(o)}var r,o,i,n=function(e){return!isNaN(e)},a=function(e){return!isNaN(parseInt(e))},l=function(e){return e.split("!")},s=function(e,t){return l(e).indexOf(t)},c=function(e,t){return l(e).includes(t)},f=function(e){return n(e)?G+.25*Number(e)+"rem":G+e},d=function(e){return void 0===e&&(e={}),Object.assign(Object.create(null),e)},p=new Map,u=new Map,m=d({separator:":",screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),b=function(e){return"[object Object]"===Object.prototype.toString.call(e)},g=function(e){if("string"!=typeof e)throw Error("Hex value is not a hex string.");if(e.startsWith("#")||(e="#"+e),e=4===e.length?e.slice(1).split("").map(function(e){return e+e}).join(""):e.slice(1),!/^[0-9a-f]{6}$/i.test(e))throw Error("Incorrect hex color format.");return e},x=function(e){if(!b(e))throw Error("Config value must be an object.")},w=new Map;r=0===document.styleSheets.length?document.head.appendChild(document.createElement("style")).sheet:document.styleSheets[0];for(var h,v,y,k=new Map,j=function(e,t){for(var o=t?"(min-width:"+t+")":"",i=0;i<3;i++)k.set(e+i,r.cssRules[r.insertRule("@media"+o+"{}",r.cssRules.length)])},z=d({p:"padding",m:"margin",h:"height",z:"z-index",w:"width"}),R=d(),S=t(l('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji!font-serif|font-family:Georgia,Cambria,"Times New Roman",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!sticky|position:-webkit-sticky;position:sticky'));!(y=S()).done;){var N=y.value.split("|");R[N[0]]=N[1]}for(var O,E=t(l("float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none"));!(O=E()).done;){var C=O.value;R[C]=C.replace("-",":")}for(var I,M=t(l("block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row"));!(I=M()).done;){var A=I.value,W=A;"flex"===A?W="-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex":"inline-flex"===A?W="-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex":"grid"===A?W="-ms-grid;display:grid":"inline-grid"===A&&(W="-ms-inline-grid;display:inline-grid"),R[A]="display:"+W}for(var T,U=t(l("static!fixed!absolute!relative"));!(T=U()).done;){var $=T.value;R[$]="position:"+$}var P,L,F,H,_,B,D,G,Y,q,J,K=l("f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459"),Q=l("gray!red!orange!yellow!green!teal!blue!indigo!purple!pink"),V=l("none!sm!nm!md!lg!full"),X=d({l:"left",r:"right",t:"top",b:"bottom"}),Z=function(e){if("opacity"===L&&n(F))Y="--"+e+"-opacity:"+("100"===F?"1":F/100);else{var t=w.get(D);if(t)F&&b(t)&&(t=t[F]);else if(F){var r=Q.indexOf(L);t=K[9*r+(Number(F[0])-1)]}else if(L&&L.startsWith("#"))try{t=g(L)}catch(e){}if(t){var o=e+":rgba("+parseInt(t.slice(0,2),16)+","+parseInt(t.slice(2,4),16)+","+parseInt(t.slice(4,6),16)+",var(--"+e+"-opacity,1))";Y=e+":#"+t+";"+o}else Y="current"===L?e+":currentColor":e+":"+D}},ee=function(){if(!H&&(c("auto!initial!inherit",_)||a(_))){var e=G+_;F?(J=1,"y"===L?Y="top:"+e+";bottom:"+e:"x"===L&&(Y="left:"+e+";right:"+e)):L&&("inset"===P?Y="top:"+e+";right:"+e+";bottom:"+e+";left:"+e:(J=2,Y=P+":"+e))}},te=function(){var e;n(L)?e=L+"ms":a(L)&&(e=L),e&&(Y="-webkit-transition-"+P+":"+e+";-o-transition-"+P+":"+e+";transition-"+P+":"+e)},re=d({object:function(){c("contain!cover!fill!none!bottom",D)?Y="-o-object-fit:"+D+";object-fit:"+D:c("bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top",D)&&(D=D.replace("-"," "),Y="-o-object-position:"+D+";object-position:"+D)},overflow:function(){c("x!y",L)&&(J=1),Y=B+":"+_},clearfix:function(){v="clearfix::after",Y='content:"";display:table;clear:both'},text:function(){var e=s("xs!sm!base!lg!xl",L);if(e>-1)Y="font-size:"+(.75+.125*e)+"rem";else if(L.endsWith("xl")){var t=L.split("x")[0];n(t)&&(Y="font-size:"+(Number(t)-2)+"rem")}else c("left!center!right!justify",D)?Y="text-align:"+D:Z("color")},font:function(){var e=s("hairline!thin!light!normal!medium!semibold!bold!extrabold!black",L);e>-1?Y="font-weight:"+100*(1+e):n(L)&&(Y="font-weight:"+L)},whitespace:function(){c("normal!pre!pre-line!pre-wrap",D)&&(Y="white-space:"+D)},inset:ee,top:ee,right:ee,bottom:ee,left:ee,flex:function(){var e=function(e,t,r){return void 0===t&&(t=1),void 0===r&&(r="0%"),"-webkit-box-flex:"+e+";-ms-flex:"+e+" "+t+" "+r+";flex:"+e+" "+t+" "+r};if(c("row!row-reverse!col!col-reverse",D))D=D.replace("col","column"),Y="-webkit-box-orient:"+("row"===L?"horizontal":"vertical")+";-webkit-box-direction:"+("reverse"===F?F:"normal")+";-ms-flex-direction:"+D+";flex-direction:"+D;else if(c("no-wrap!flex-wrap!wrap-reverse",D))"no-wrap"===D&&(D="nowrap"),Y="-ms-flex-wrap:"+D+";flex-wrap:"+D;else if(c("grow!shrink",L)){J=1;var t=F||1;Y="grow"===L?"-webkit-box-flex:"+t+";-ms-flex-positive:"+t+";flex-grow:"+t:"-ms-flex-negative:"+t+";flex-shrink:"+t}else Y="initial"===D?e(0,1,"auto"):"auto"===D?e(1,1,"auto"):"none"===D?"-webkit-box-flex:0;-ms-flex:none;flex:none":H?e(L,F,H):F?e(L,F):e(L)},order:function(){if(n(L)){var e=G+L;Y="-webkit-box-ordinal-group:"+(Number(e)+1)+";-ms-flex-order:"+e+";order:"+e}},grid:function(){n(F)&&(Y=d({cols:"-ms-grid-columns:(minmax(0,1fr))["+F+"];grid-template-columns: repeat("+F+", minmax(0, 1fr))",span:"-ms-grid-column-span:"+F+";grid-column: span "+F+" / span "+F,start:"-ms-grid-column:"+F+";grid-column-start:"+F,end:"-ms-grid-column-span:"+F+";grid-column-end:"+F,rows:"-ms-grid-rows:(minmax(0,1fr))["+F+"];grid-template-rows: repeat("+F+", minmax(0, 1fr))"})[L])},row:function(){a(F)&&(Y=d({span:"-ms-grid-row-span:"+F+";grid-row: span "+F+" / span "+F,start:"-ms-grid-row:"+F+";grid-row-start:"+F,end:"-ms-grid-row-span:"+F+";grid-row-end:"+F,gap:"row-gap:"+f(F)})[L])},col:function(){if(n(F)&&("span"===L?Y="-ms-grid-column-span:"+F+";grid-column:span "+F+" / span "+F+";":"start"===L?Y="-ms-grid-column:"+F+";grid-column-start:"+F:"end"===L&&(Y="-ms-grid-column-span:"+F+";grid-column-end:"+F)),a(F)&&"gap"===L){var e="px"===F?"1px":f(F);Y="-webkit-column-gap:"+e+";-moz-column-gap:"+e+"column-gap:"+e}},gap:function(){a(L)&&(Y="gap:"+f(L))},space:function(){if(q=[">:not(template)~:not(template)"],"px"===F&&(F="1px"),F)if(a(F)){var e=f(F);"x"===L?Y="margin-right:calc("+e+"*var(--space-x-reverse,0));margin-left:calc("+e+"*(1 - var(--space-x-reverse,0)))":"y"===L&&(Y="margin-top:calc("+e+"*(1 - var(--space-y-reverse,0)));margin-bottom:calc("+e+"*var(--space-y-reverse,0))")}else"reverse"===F&&(Y="--space-"+L+"-reverse:1")},divide:function(){var e;q=[">:not(template)~:not(template)"],J=1,H||(n(F)?e=F+"px":a(F)?e=F:"reverse"===F?Y="--divide-"+L+"-reverse:1":L&&(e="1px"),e&&("y"===L?Y="border-top-width:calc("+e+"*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc("+e+"*var(--divide-y-reverse,0)))":"x"===L&&(Y="border-right-width:calc("+e+"*var(--divide-x-reverse,0));border-left-width:calc("+e+"*calc(1 - var(--divide-x-reverse,0)))"))),Y||Z("border-color")},min:function(){a(F)&&("w"!==L&&"h"!==L||(Y="min-"+("w"===L?"width":"height")+":"+F))},max:function(){if("w"===L){var e=s("xs!sm!md!lg!xl",F);e>-1?Y="max-width:"+(4*e+20)+"rem":a(F)&&(Y=F.endsWith("xl")?"max-width:"+(8*parseInt(F)+24)+"rem":"max-width:"+F)}else"h"===L&&a(F)&&(Y="max-height:"+F)},tracking:function(){a(L)&&(Y="letter-spacing:"+L)},leading:function(){n(L)?Y="line-height:"+.25*Number(L)+"rem":a(L)&&(Y="line-height:"+L)},placeholder:function(){q.push("::placeholder"),Z("color")},align:function(){c("baseline!top!middle!bottom!text-top!text-bottom",D)&&(Y="vertical-align:"+D)},bg:function(){D=D.replace("-"," "),c("bottom!center!left!left bottom!left top!right!right bottom!right top!top",D)?Y="background-position:"+D:c("repeat!no-repeat!repeat-x!repeat-y",D)?Y="background-repeat:"+D:c("repeat-round!repeat-space",D)?Y="background-repeat:"+F:c("auto!cover!contain",D)?Y="background-size:"+D:c("fixed!local!scroll",L)?Y="background-attachment:"+L:Z("background-color")},rounded:function(){var e,t=V.indexOf(_);if(a(_)?(e=_,t=9):5===t?e="9999px":t>-1?e=.125*t+"rem":(!L||X[L]||c("t!b",L[0])&&c("r!l",L[1]))&&(e="0.25rem"),e){var r=X[L[0]];!L||!F&&t>-1?Y="border-radius:"+e:c("t!b",L)?(J=1,Y="border-"+r+"-left-radius:"+e+";border-"+r+"-right-radius:"+e):c("l!r",L)?(J=1,Y="border-top-"+r+"-radius:"+e+";border-bottom-"+r+"-radius:"+e):(J=2,Y="border-"+r+"-"+X[L[1]]+"-radius:"+e)}},border:function(){var e=X[L];F&&e?n(F)?(J=1,Y="border-"+e+"-width:"+F+"px"):a(F)&&(Y="border-"+e+"-width:"+F):c("solid!dashed!dotted!double!none",L)?Y="border-style:"+L:e?(J=1,Y="border-"+e+"-width:1px"):n(L)?Y="border-width:"+L+"px":a(L)?Y="border-width:"+L:Z("border-color")},opacity:function(){n(L)&&(Y="opacity:"+L/100)},transition:function(){var e=function(e){return"-webkit-transition-property:"+e+";-o-transition-property:"+e+";transition-property:"+e},t=function(e){return"-webkit-transition-property:-webkit-"+e+";transition-property:-webkit-"+e+";-o-transition-property:"+e+";transition-property:"+e+";transition-property:"+e+",-webkit-"+e};L?"colors"===L?Y=e("background-color,border-color,color,fill,stroke"):"shadow"===L?Y=t("box-shadow"):"transform"===L?Y=t("transform"):L&&(Y=e(L)):Y=(Y="-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform").replace(/S/g,"background-color,border-color,color,fill,stroke,opacity,")},duration:te,delay:te,ease:function(){var e=function(e){return"-webkit-transition-timing-function:"+e+";-o-transition-timing-function:"+e+";transition-timing-function:"+e};"in"===D?Y=e("cubic-bezier(0.4,0,1,1)"):"out"===D?Y=e("cubic-bezier(0,0,0.2,1)"):"in-out"===D?Y=e("cubic-bezier(0.4,0,0.2,1)"):"linear"===D&&(Y=e("linear"))},scale:function(){if(n(_)){var e=_/100;c("x!y",L)?(J=1,Y="--transform-scale-"+L+":"+e):Y="--transform-scale-x:"+e+";--transform-scale-y:"+e}},rotate:function(){n(L)&&(Y="--transform-rotate:"+G+L+"deg")},translate:function(){if(c("x!y",L)){if("px"===F)F="1px";else if("full"===F)F="100%";else if(F.includes("/")){var e=F.split("/");2===e.length&&(F=Number(e[0])/Number(e[1])+"%")}a(F)&&(Y="--transform-translate-"+L+":"+f(F))}},skew:function(){c("x!y",L)&&n(F)&&(Y="--transform-skew-"+L+":"+(G+F)+"deg")},transform:function(){var e="translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))";Y="-webkit-transform:"+e+";-ms-transform:"+e+";transform:"+e},origin:function(){c("center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left",D)&&(D=D.replace("-"," "),Y="-webkit-transform-origin:"+D+";-ms-transform-origin:"+D+";transform-origin:"+D)},cursor:function(){c("auto!default!pointer!wait!text!move!not-allowed",D)&&(Y="cursor:"+D)},shadow:function(){var e=d({xs:"0 0 0 1pxR.05)",sm:"0 1px 2px 0R.05)","":"0 1px 3px 0R.1), 0 1px 2px 0R.06)",md:"0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)",lg:"0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)",xl:"0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)","2xl":"0 25px 50px -12pxR.25)",inner:"inset 0 2px 4px 0R.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"})[L];e&&(e=e.replace(/R/g," rgba(0, 0, 0, 0"),Y="-webkit-box-shadow:"+e+";box-shadow:"+e)},outline:function(){L&&(Y="outline:"+D.replace("-"," "))},pointer:function(){L&&(Y="pointer-events:"+L)},select:function(){c("none!auto!text!contain!all!inherit!initial!unset",D)&&(Y="-webkit-user-select:"+D+";-moz-user-select:"+D+";-ms-user-select:"+D+";user-select:"+D)},fill:function(){L&&(Y="fill:"+L)},stroke:function(){n(L)?Y="stroke-width:"+L:L&&(Y="stroke:"+L)},items:function(){c("stretch!start!center!end!baseline",D)&&(Y="-webkit-box-align:"+D+";-ms-flex-align:"+D+";align-items:"+(c("start!end",D)?"flex-":"")+D)},content:function(){if(c("start!center!end!between!around")){var e=D;c("start!end",D)?D="flex-"+D:"between"===D?(e="justify",D="space-"+D):"around"===D&&(e="distribute",D="space-"+D),Y="-ms-flex-line-pack:"+e+";align-content:"+D}},self:function(){if(c("auto!start!center!end!stretch",D)){var e="-ms-grid-row-align:"+D+";",t=D;c("start!end",D)&&(D="flex-"+D,e=""),Y="-ms-flex-item-align:"+t+";"+e+"align-self:"+D}},justify:function(){if(c("start!center!end!between!around",D)){var e=D;"between"===e?(e="justify",D="space-"+D):c("start!end")&&(D="flex-"+D);var t="-webkit-box-pack:"+e+";";"around"===e&&(e="distribute",D="space-"+D,t=""),Y=t+"-ms-flex-pack:"+e+";justify-content:"+D}}}),oe=/[^:]+::?|.+/g,ie=/[.*+\-?^${}()|[\]\\]/g;function ne(){J=0,Y="",G="",v=h;var e=m.separator;":"!==e&&(h=h.replace(new RegExp(e.replace(ie,"\\$&"),"g"),":")),q=h.match(oe),h=q.pop(),q=q.map(function(e){return e.endsWith("::")?"::"+e.slice(0,-2):":"+e.slice(0,-1)});var r=u.get(h);if(r){var i=r[0],l=r[1],s=[v.slice(0,v.lastIndexOf(h)),q],c=s[0],f=s[1];if(o=v,"string"==typeof i)for(var d,p=t(i.trim().replace(/\s\s+/g," ").split(" "));!(d=p()).done;)h=c+(h=d.value),ne();return q=f,l&&"string"==typeof l&&fe(l),void(o="")}if("-"===h[0]&&(G="-",h=h.slice(1)),"string"==typeof m.prefix){if(!h.startsWith(m.prefix))return void se();h=h.slice(m.prefix.length)}var b=h.split("-");P=b[0];var g=b[1];L=void 0===g?"":g;var x=b[2];F=void 0===x?"":x;var w,y=b[3];if(H=void 0===y?"":y,_=b[b.length-1],B=b.slice(0,-1).join("-"),D=b.slice(1).join("-"),!(Y=R[h])&&(w=re[P])?w():P.length<3&&!F&&function(){var e;if("px"===L)e=G+"1px";else if("full"===L)e="100%";else if("screen"===L)"w"===P?e="100vw":"h"===P&&(e="100vh");else if("auto"===L)e="auto";else if(n(L))e=G+.25*Number(L)+"rem";else if(L.indexOf("/")>-1){var t=L.split("/"),r=t[0],o=t[1];n(r)&&n(o)&&(e=G+(Number(r)/Number(o)).toFixed(6)+"%")}else a(L)&&(e=G+L);var i=z[P[0]],l=X[P[1]];e&&i&&("x"===P[1]?(J=1,Y=i+"-right:"+e+";"+i+"-left:"+e):"y"===P[1]?(J=1,Y=i+"-top:"+e+";"+i+"-bottom:"+e):l?(J=2,Y=i+"-"+l+":"+e):Y=i+":"+e)}(),Y)fe(Y);else if("container"===h){fe("width:100%");for(var j=0,S=Object.entries(m.screens);j0){for(var e,r=[],o=t(document.styleSheets);!(e=o()).done;)r.push.apply(r,ae(e.value));var i=q[0].slice(1);if(m.screens[i])for(var n,a=Object.entries(m.screens),l=t(r);!(n=l()).done;){var s=n.value,c=s[0],f=s[1],p=le.get(f);if(!p){p=d();for(var u,b=t(a);!(u=b()).done;){var g=u.value;p[g[0]]=f.cssRules[f.insertRule("@media(min-width:"+g[1]+"){}",f.cssRules.length)]}le[f]=p}fe(c,p[i])}else for(var x,w=t(r);!(x=w()).done;){var h=x.value;fe(h[0],h[1])}}},ce=d({"::placeholder":"::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P".replace(/P/g,"placeholder"),"::selection":":::-moz-selection"});function fe(e,r){var i="",n=v,a="default",s="",f=function(){try{r.insertRule(s+"."+n+i+"{"+e+"}",r.cssRules.length)}catch(e){}};if(o&&(n=o,a="custom"),n=n.replace(/[.:()&@~*^$%,#]/g,"\\$&"),m.important&&(!0===m.important?e=e.replace(/;/g,"!important;")+"!important":"string"==typeof m.important&&(s=m.important+" ")),q.length>0){var d=k.get(a+q[0].slice(1)+J);d&&(r=r||d,q.shift())}if(r||(r=k.get(a+J)),q.length>0){for(var p=0,u=[].concat(q);p !isNaN(v)\r\nlet isStartNum = (v) => !isNaN(parseInt(v))\r\nlet split = (s) => s.split('!')\r\nlet indexOf = (s, v) => split(s).indexOf(v)\r\nlet includes = (s, v) => split(s).includes(v)\r\nlet ifRemTo = (v) => isNum(v) ? negative + Number(v) * 0.25 + 'rem' : negative + v\r\nlet newObject = (o = {}) => Object.assign(Object.create(null), o)\r\nlet classesCache = new Map()\r\nlet customCache = new Map()\r\nlet parentSheet\r\nlet config = newObject({ separator: ':', screens: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px' } })\r\nlet componentName\r\nlet addedScreens\r\n\r\nexport let component = (name, classes, props) => {\r\n if (typeof name !== 'string') {\r\n throw Error('Component must have a name.')\r\n }\r\n name = name.trim()\r\n if (classesCache.get(name)) {\r\n throw Error(`Class '${name}' was already processed.`)\r\n }\r\n customCache.set(name, [classes, props])\r\n}\r\n\r\nlet isObject = value => Object.prototype.toString.call(value) === '[object Object]'\r\nlet hex6 = value => {\r\n if (typeof value !== 'string') {\r\n throw Error('Hex value is not a hex string.')\r\n }\r\n if (!value.startsWith('#')) {\r\n value = '#' + value\r\n }\r\n value = value.length === 4 ? value.slice(1).split('').map((v) => v + v).join('') : value.slice(1)\r\n if (!/^[0-9a-f]{6}$/i.test(value)) {\r\n throw Error('Incorrect hex color format.')\r\n }\r\n return value\r\n}\r\n\r\nlet errorNotObject = value => {\r\n if (!isObject(value)) {\r\n throw Error('Config value must be an object.')\r\n }\r\n}\r\n\r\nlet customColors = new Map()\r\n\r\nexport let configure = (conf = newObject()) => {\r\n for (let s of split('separator!prefix')) {\r\n if (conf[s] !== undefined && typeof conf[s] !== 'string') {\r\n throw Error(`config.${s} must be a string.`)\r\n }\r\n }\r\n if (conf.screens) {\r\n errorNotObject(conf.screens)\r\n }\r\n if (conf.colors) {\r\n errorNotObject(conf.colors)\r\n for (let [key1, value1] of Object.entries(conf.colors)) {\r\n if (isObject(value1)) {\r\n for (let [key2, value2] of Object.entries(value1)) {\r\n customColors.set(key1 + '-' + key2, hex6(value2))\r\n }\r\n } else {\r\n customColors.set(key1, hex6(value1))\r\n }\r\n }\r\n } else {\r\n Object.assign(config, conf)\r\n }\r\n}\r\n\r\nif (document.styleSheets.length === 0) {\r\n parentSheet = document.head.appendChild(document.createElement('style')).sheet\r\n} else {\r\n parentSheet = document.styleSheets[0]\r\n}\r\n\r\nlet media = new Map()\r\nlet setMedia = (prefix, size) => {\r\n let condition = size ? `(min-width:${size})` : ''\r\n for (let i = 0; i < 3; i++) {\r\n media.set(prefix + i, parentSheet.cssRules[parentSheet.insertRule(`@media${condition}{}`, parentSheet.cssRules.length)])\r\n }\r\n}\r\n\r\nlet cls\r\nlet originalClass\r\n\r\nlet processClasses = (classes) => {\r\n if (!addedScreens) {\r\n addedScreens = true\r\n let entries = Object.entries(config.screens)\r\n for (const m of split('custom!default')) {\r\n setMedia(m)\r\n for (const [key, size] of entries) {\r\n setMedia(m + key, size)\r\n }\r\n }\r\n }\r\n if (typeof classes === 'string') {\r\n classes = classes.trim()\r\n if (!classesCache.has(classes)) {\r\n for (cls of classes.replace(/\\s\\s+/g, ' ').split(' ')) {\r\n if (classesCache.has(cls)) {\r\n continue\r\n }\r\n classesCache.set(cls, true)\r\n processClass()\r\n }\r\n classesCache.set(classes, true)\r\n }\r\n }\r\n}\r\nexport default processClasses\r\n\r\nlet formatters = newObject({\r\n p: 'padding',\r\n m: 'margin',\r\n h: 'height',\r\n z: 'z-index',\r\n w: 'width'\r\n})\r\n\r\nlet classNames = newObject()\r\n\r\n// direct map from class to values\r\nfor (let c of split('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji!font-serif|font-family:Georgia,Cambria,\"Times New Roman\",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace!sticky|position:-webkit-sticky;position:sticky')) {\r\n let [k, v] = c.split('|')\r\n classNames[k] = v\r\n}\r\n\r\n// class to value\r\nfor (let c of split('float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none')) {\r\n classNames[c] = c.replace('-', ':')\r\n}\r\n\r\n// display\r\nfor (let c of split('block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row')) {\r\n let p = c\r\n if (c === 'flex') {\r\n p = '-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex'\r\n } else if (c === 'inline-flex') {\r\n p = '-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex'\r\n } else if (c === 'grid') {\r\n p = '-ms-grid;display:grid'\r\n } else if (c === 'inline-grid') {\r\n p = '-ms-inline-grid;display:inline-grid'\r\n }\r\n classNames[c] = 'display:' + p\r\n}\r\n\r\n// position\r\nfor (let c of split('static!fixed!absolute!relative')) {\r\n classNames[c] = 'position:' + c\r\n}\r\n\r\nlet colors = split('f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459')\r\n\r\nlet colorNames = split('gray!red!orange!yellow!green!teal!blue!indigo!purple!pink')\r\n\r\nlet roundedSize = split('none!sm!nm!md!lg!full')\r\n\r\nlet edge = newObject({ l: 'left', r: 'right', t: 'top', b: 'bottom' })\r\n\r\nlet setColor = (type) => {\r\n if (secondPart === 'opacity' && isNum(thirdPart)) {\r\n rule = `--${type}-opacity:` + (thirdPart === '100' ? '1' : thirdPart / 100)\r\n } else {\r\n let color = customColors.get(rest)\r\n if (color) {\r\n if (thirdPart && isObject(color)) {\r\n color = color[thirdPart]\r\n }\r\n } else {\r\n if (thirdPart) {\r\n let colorPos = colorNames.indexOf(secondPart)\r\n color = colors[colorPos * 9 + (Number(thirdPart[0]) - 1)]\r\n } else if (secondPart && secondPart.startsWith('#')) {\r\n try {\r\n color = hex6(secondPart)\r\n } catch {}\r\n }\r\n }\r\n if (color) {\r\n let rgba = type + `:rgba(${parseInt(color.slice(0, 2), 16)},${parseInt(color.slice(2, 4), 16)},${parseInt(color.slice(4, 6), 16)},var(--${type}-opacity,1))`\r\n rule = type + `:#${color};` + rgba\r\n } else if (secondPart === 'current') {\r\n rule = type + ':' + 'currentColor'\r\n } else {\r\n rule = type + ':' + rest\r\n // console.log(rule)\r\n }\r\n }\r\n}\r\n\r\nlet setPosition = () => {\r\n if (!fourthPart && (includes('auto!initial!inherit', lastPart) || isStartNum(lastPart))) {\r\n let v = negative + lastPart\r\n if (thirdPart) {\r\n sheetLevel = 1\r\n if (secondPart === 'y') {\r\n rule = `top:${v};bottom:` + v\r\n } else if (secondPart === 'x') {\r\n rule = `left:${v};right:` + v\r\n }\r\n } else if (secondPart) {\r\n if (firstPart === 'inset') {\r\n rule = `top:${v};right:${v};bottom:${v};left:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = firstPart + ':' + v\r\n }\r\n }\r\n }\r\n}\r\n\r\nlet timeProp = () => {\r\n let v\r\n if (isNum(secondPart)) {\r\n v = secondPart + 'ms'\r\n } else if (isStartNum(secondPart)) {\r\n v = secondPart\r\n }\r\n if (v) {\r\n rule = `-webkit-transition-${firstPart}:${v};-o-transition-${firstPart}:${v};transition-${firstPart}:` + v\r\n }\r\n}\r\n\r\nlet cls2process = newObject({\r\n object: () => {\r\n if (includes('contain!cover!fill!none!bottom', rest)) {\r\n rule = `-o-object-fit:${rest};object-fit:` + rest\r\n } else if (includes('bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-o-object-position:${rest};object-position:` + rest\r\n }\r\n },\r\n overflow: () => {\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n }\r\n rule = partsWithoutEnd + ':' + lastPart\r\n },\r\n clearfix: () => {\r\n originalClass = 'clearfix::after'\r\n rule = 'content:\"\";display:table;clear:both'\r\n },\r\n text: () => {\r\n let pos = indexOf('xs!sm!base!lg!xl', secondPart)\r\n if (pos > -1) {\r\n rule = `font-size:${0.75 + (0.125 * pos)}rem`\r\n } else if (secondPart.endsWith('xl')) {\r\n let [num] = secondPart.split('x')\r\n if (isNum(num)) {\r\n rule = `font-size:${Number(num) - 2}rem`\r\n }\r\n } else if (includes('left!center!right!justify', rest)) {\r\n rule = 'text-align:' + rest\r\n } else {\r\n setColor('color')\r\n }\r\n },\r\n font: () => {\r\n let pos = indexOf('hairline!thin!light!normal!medium!semibold!bold!extrabold!black', secondPart)\r\n if (pos > -1) {\r\n rule = 'font-weight:' + (100 * (1 + pos))\r\n } else if (isNum(secondPart)) {\r\n rule = 'font-weight:' + secondPart\r\n }\r\n },\r\n whitespace: () => {\r\n if (includes('normal!pre!pre-line!pre-wrap', rest)) {\r\n rule = 'white-space:' + rest\r\n }\r\n },\r\n inset: setPosition,\r\n top: setPosition,\r\n right: setPosition,\r\n bottom: setPosition,\r\n left: setPosition,\r\n flex: () => {\r\n let ruleFunc = (v1, v2 = 1, v3 = '0%') => `-webkit-box-flex:${v1};-ms-flex:${v1} ${v2} ${v3};flex:${v1} ${v2} ` + v3\r\n if (includes('row!row-reverse!col!col-reverse', rest)) {\r\n rest = rest.replace('col', 'column')\r\n rule = `-webkit-box-orient:${secondPart === 'row' ? 'horizontal' : 'vertical'};-webkit-box-direction:${thirdPart === 'reverse' ? thirdPart : 'normal'};-ms-flex-direction:${rest};flex-direction:${rest}`\r\n } else if (includes('no-wrap!flex-wrap!wrap-reverse', rest)) {\r\n if (rest === 'no-wrap') {\r\n rest = 'nowrap'\r\n }\r\n rule = `-ms-flex-wrap:${rest};flex-wrap:${rest}`\r\n } else if (includes('grow!shrink', secondPart)) {\r\n sheetLevel = 1\r\n let v = thirdPart || 1\r\n if (secondPart === 'grow') {\r\n rule = `-webkit-box-flex:${v};-ms-flex-positive:${v};flex-grow:${v}`\r\n } else {\r\n rule = `-ms-flex-negative:${v};flex-shrink:${v}`\r\n }\r\n } else if (rest === 'initial') {\r\n rule = ruleFunc(0, 1, 'auto')\r\n } else if (rest === 'auto') {\r\n rule = ruleFunc(1, 1, 'auto')\r\n } else if (rest === 'none') {\r\n rule = '-webkit-box-flex:0;-ms-flex:none;flex:none'\r\n } else if (fourthPart) {\r\n rule = ruleFunc(secondPart, thirdPart, fourthPart)\r\n } else if (thirdPart) {\r\n rule = ruleFunc(secondPart, thirdPart)\r\n } else {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n order: () => {\r\n if (isNum(secondPart)) {\r\n let num = negative + secondPart\r\n rule = `-webkit-box-ordinal-group:${Number(num) + 1};-ms-flex-order:${num};order:` + num\r\n }\r\n },\r\n grid: () => {\r\n if (isNum(thirdPart)) {\r\n rule = newObject({\r\n cols: `-ms-grid-columns:(minmax(0,1fr))[${thirdPart}];grid-template-columns: repeat(${thirdPart}, minmax(0, 1fr))`,\r\n span: `-ms-grid-column-span:${thirdPart};grid-column: span ${thirdPart} / span ` + thirdPart,\r\n start: `-ms-grid-column:${thirdPart};grid-column-start:` + thirdPart,\r\n end: `-ms-grid-column-span:${thirdPart};grid-column-end:` + thirdPart,\r\n rows: `-ms-grid-rows:(minmax(0,1fr))[${thirdPart}];grid-template-rows: repeat(${thirdPart}, minmax(0, 1fr))`\r\n })[secondPart]\r\n }\r\n },\r\n row: () => {\r\n if (isStartNum(thirdPart)) {\r\n rule = newObject({\r\n span: `-ms-grid-row-span:${thirdPart};grid-row: span ${thirdPart} / span ${thirdPart}`,\r\n start: `-ms-grid-row:${thirdPart};grid-row-start:` + thirdPart,\r\n end: `-ms-grid-row-span:${thirdPart};grid-row-end:` + thirdPart,\r\n gap: 'row-gap:' + ifRemTo(thirdPart)\r\n })[secondPart]\r\n }\r\n },\r\n col: () => {\r\n if (isNum(thirdPart)) {\r\n if (secondPart === 'span') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column:span ${thirdPart} / span ${thirdPart};`\r\n } else if (secondPart === 'start') {\r\n rule = `-ms-grid-column:${thirdPart};grid-column-start:${thirdPart}`\r\n } else if (secondPart === 'end') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column-end:${thirdPart}`\r\n }\r\n }\r\n if (isStartNum(thirdPart) && secondPart === 'gap') {\r\n let v = thirdPart === 'px' ? '1px' : ifRemTo(thirdPart)\r\n rule = `-webkit-column-gap:${v};-moz-column-gap:${v}column-gap:` + v\r\n }\r\n },\r\n gap: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'gap:' + ifRemTo(secondPart)\r\n }\r\n },\r\n space: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n }\r\n if (thirdPart) {\r\n if (isStartNum(thirdPart)) {\r\n let v = ifRemTo(thirdPart)\r\n if (secondPart === 'x') {\r\n rule = `margin-right:calc(${v}*var(--space-x-reverse,0));margin-left:calc(${v}*(1 - var(--space-x-reverse,0)))`\r\n } else if (secondPart === 'y') {\r\n rule = `margin-top:calc(${v}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${v}*var(--space-y-reverse,0))`\r\n }\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--space-${secondPart}-reverse:1`\r\n }\r\n }\r\n },\r\n divide: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n sheetLevel = 1\r\n if (!fourthPart) {\r\n let v\r\n if (isNum(thirdPart)) {\r\n v = thirdPart + 'px'\r\n } else if (isStartNum(thirdPart)) {\r\n v = thirdPart\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--divide-${secondPart}-reverse:1`\r\n } else if (secondPart) {\r\n v = '1px'\r\n }\r\n\r\n if (v) {\r\n if (secondPart === 'y') {\r\n rule = `border-top-width:calc(${v}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${v}*var(--divide-y-reverse,0)))`\r\n } else if (secondPart === 'x') {\r\n rule = `border-right-width:calc(${v}*var(--divide-x-reverse,0));border-left-width:calc(${v}*calc(1 - var(--divide-x-reverse,0)))`\r\n }\r\n }\r\n }\r\n if (!rule) {\r\n setColor('border-color')\r\n }\r\n },\r\n min: () => {\r\n if (isStartNum(thirdPart)) {\r\n if (secondPart === 'w' || secondPart === 'h') {\r\n let p = secondPart === 'w' ? 'width' : 'height'\r\n rule = `min-${p}:` + thirdPart\r\n }\r\n }\r\n },\r\n max: () => {\r\n if (secondPart === 'w') {\r\n let pos = indexOf('xs!sm!md!lg!xl', thirdPart)\r\n if (pos > -1) {\r\n rule = `max-width:${pos * 4 + 20}rem`\r\n } else if (isStartNum(thirdPart)) {\r\n if (thirdPart.endsWith('xl')) {\r\n rule = `max-width:${parseInt(thirdPart) * 8 + 24}rem`\r\n } else {\r\n rule = 'max-width:' + thirdPart\r\n }\r\n }\r\n } else if (secondPart === 'h' && isStartNum(thirdPart)) {\r\n rule = 'max-height:' + thirdPart\r\n }\r\n },\r\n tracking: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'letter-spacing:' + secondPart\r\n }\r\n },\r\n leading: () => {\r\n if (isNum(secondPart)) {\r\n rule = `line-height:${Number(secondPart) * 0.25}rem`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'line-height:' + secondPart\r\n }\r\n },\r\n placeholder: () => {\r\n pseudos.push('::placeholder')\r\n setColor('color')\r\n },\r\n align: () => {\r\n if (includes('baseline!top!middle!bottom!text-top!text-bottom', rest)) {\r\n rule = 'vertical-align:' + rest\r\n }\r\n },\r\n bg: () => {\r\n rest = rest.replace('-', ' ')\r\n if (includes('bottom!center!left!left bottom!left top!right!right bottom!right top!top', rest)) {\r\n rule = 'background-position:' + rest\r\n } else if (includes('repeat!no-repeat!repeat-x!repeat-y', rest)) {\r\n rule = 'background-repeat:' + rest\r\n } else if (includes('repeat-round!repeat-space', rest)) {\r\n rule = 'background-repeat:' + thirdPart\r\n } else if (includes('auto!cover!contain', rest)) {\r\n rule = 'background-size:' + rest\r\n } else if (includes('fixed!local!scroll', secondPart)) {\r\n rule = 'background-attachment:' + secondPart\r\n } else {\r\n setColor('background-color')\r\n }\r\n },\r\n rounded: () => {\r\n let v\r\n let pos = roundedSize.indexOf(lastPart)\r\n if (isStartNum(lastPart)) {\r\n v = lastPart\r\n pos = 9\r\n } else if (pos === 5) {\r\n v = '9999px'\r\n } else if (pos > -1) {\r\n v = pos * 0.125 + 'rem'\r\n } else if (!secondPart || edge[secondPart] || (includes('t!b', secondPart[0]) && includes('r!l', secondPart[1]))) {\r\n v = '0.25rem'\r\n }\r\n if (v) {\r\n let place1 = edge[secondPart[0]]\r\n if (!secondPart || (!thirdPart && pos > -1)) {\r\n rule = 'border-radius:' + v\r\n } else if (includes('t!b', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-${place1}-left-radius:${v};border-${place1}-right-radius:` + v\r\n } else if (includes('l!r', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-top-${place1}-radius:${v};border-bottom-${place1}-radius:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = `border-${place1}-${edge[secondPart[1]]}-radius:` + v\r\n }\r\n }\r\n },\r\n border: () => {\r\n let b = edge[secondPart]\r\n if (thirdPart && b) {\r\n if (isNum(thirdPart)) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:${thirdPart}px`\r\n } else if (isStartNum(thirdPart)) {\r\n rule = `border-${b}-width:` + thirdPart\r\n }\r\n } else {\r\n if (includes('solid!dashed!dotted!double!none', secondPart)) {\r\n rule = 'border-style:' + secondPart\r\n } else if (b) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:1px`\r\n } else if (isNum(secondPart)) {\r\n rule = `border-width:${secondPart}px`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'border-width:' + secondPart\r\n } else {\r\n setColor('border-color')\r\n }\r\n }\r\n },\r\n opacity: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'opacity:' + 100 / secondPart\r\n }\r\n },\r\n transition: () => {\r\n let ruleFunc = (value) => `-webkit-transition-property:${value};-o-transition-property:${value};transition-property:` + value\r\n let ruleFunc2 = (value) => `-webkit-transition-property:-webkit-${value};transition-property:-webkit-${value};-o-transition-property:${value};transition-property:${value};transition-property:${value},-webkit-${value}`\r\n if (!secondPart) {\r\n rule = '-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform'\r\n rule = rule.replace(/S/g, 'background-color,border-color,color,fill,stroke,opacity,')\r\n } else if (secondPart === 'colors') {\r\n rule = ruleFunc('background-color,border-color,color,fill,stroke')\r\n } else if (secondPart === 'shadow') {\r\n rule = ruleFunc2('box-shadow')\r\n } else if (secondPart === 'transform') {\r\n rule = ruleFunc2('transform')\r\n } else if (secondPart) {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n duration: timeProp,\r\n delay: timeProp,\r\n ease: () => {\r\n let ruleFunc = (value) => `-webkit-transition-timing-function:${value};-o-transition-timing-function:${value};transition-timing-function:${value}`\r\n if (rest === 'in') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,1,1)')\r\n } else if (rest === 'out') {\r\n rule = ruleFunc('cubic-bezier(0,0,0.2,1)')\r\n } else if (rest === 'in-out') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,0.2,1)')\r\n } else if (rest === 'linear') {\r\n rule = ruleFunc('linear')\r\n }\r\n },\r\n scale: () => {\r\n if (isNum(lastPart)) {\r\n let v = lastPart / 100\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n rule = `--transform-scale-${secondPart}:` + v\r\n } else {\r\n rule = `--transform-scale-x:${v};--transform-scale-y:` + v\r\n }\r\n }\r\n },\r\n rotate: () => {\r\n if (isNum(secondPart)) {\r\n rule = `--transform-rotate:${negative}${secondPart}deg`\r\n }\r\n },\r\n translate: () => {\r\n if (includes('x!y', secondPart)) {\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n } else if (thirdPart === 'full') {\r\n thirdPart = '100%'\r\n } else if (thirdPart.includes('/')) {\r\n let fractions = thirdPart.split('/')\r\n if (fractions.length === 2) {\r\n thirdPart = Number(fractions[0]) / Number(fractions[1]) + '%'\r\n }\r\n }\r\n if (isStartNum(thirdPart)) {\r\n rule = `--transform-translate-${secondPart}:` + ifRemTo(thirdPart)\r\n }\r\n }\r\n },\r\n skew: () => {\r\n if (includes('x!y', secondPart) && isNum(thirdPart)) {\r\n rule = `--transform-skew-${secondPart}:${negative + thirdPart}deg`\r\n }\r\n },\r\n transform: () => {\r\n let v = 'translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))'\r\n rule = `-webkit-transform:${v};-ms-transform:${v};transform:` + v\r\n },\r\n origin: () => {\r\n if (includes('center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-webkit-transform-origin:${rest};-ms-transform-origin:${rest};transform-origin:` + rest\r\n }\r\n },\r\n cursor: () => {\r\n if (includes('auto!default!pointer!wait!text!move!not-allowed', rest)) {\r\n rule = 'cursor:' + rest\r\n }\r\n },\r\n shadow: () => {\r\n let shadows = newObject({\r\n xs: '0 0 0 1pxR.05)',\r\n sm: '0 1px 2px 0R.05)',\r\n '': '0 1px 3px 0R.1), 0 1px 2px 0R.06)',\r\n md: '0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)',\r\n lg: '0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)',\r\n xl: '0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)',\r\n '2xl': '0 25px 50px -12pxR.25)',\r\n inner: 'inset 0 2px 4px 0R.06)',\r\n outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',\r\n none: 'none'\r\n })\r\n let v = shadows[secondPart]\r\n if (v) {\r\n v = v.replace(/R/g, ' rgba(0, 0, 0, 0')\r\n console.log(v)\r\n rule = `-webkit-box-shadow:${v};box-shadow:` + v\r\n }\r\n },\r\n outline: () => {\r\n if (secondPart) {\r\n rule = 'outline:' + rest.replace('-', ' ')\r\n }\r\n },\r\n pointer: () => {\r\n if (secondPart) {\r\n rule = 'pointer-events:' + secondPart\r\n }\r\n },\r\n select: () => {\r\n if (includes('none!auto!text!contain!all!inherit!initial!unset', rest)) {\r\n rule = `-webkit-user-select:${rest};-moz-user-select:${rest};-ms-user-select:${rest};user-select:` + rest\r\n }\r\n },\r\n fill: () => {\r\n if (secondPart) {\r\n rule = 'fill:' + secondPart\r\n }\r\n },\r\n stroke: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'stroke-width:' + secondPart\r\n } else if (secondPart) {\r\n rule = 'stroke:' + secondPart\r\n }\r\n },\r\n items: () => {\r\n if (includes('stretch!start!center!end!baseline', rest)) {\r\n rule = `-webkit-box-align:${rest};-ms-flex-align:${rest};align-items:` + (includes('start!end', rest) ? 'flex-' : '') + rest\r\n }\r\n },\r\n content: () => {\r\n if (includes('start!center!end!between!around')) {\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n } else if (rest === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (rest === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n }\r\n\r\n rule = `-ms-flex-line-pack:${v};align-content:` + rest\r\n }\r\n },\r\n self: () => {\r\n if (includes('auto!start!center!end!stretch', rest)) {\r\n let gridRowAlign = `-ms-grid-row-align:${rest};`\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n gridRowAlign = ''\r\n }\r\n rule = `-ms-flex-item-align:${v};${gridRowAlign}align-self:` + rest\r\n }\r\n },\r\n justify: () => {\r\n if (includes('start!center!end!between!around', rest)) {\r\n let v = rest\r\n if (v === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (includes('start!end')) {\r\n rest = 'flex-' + rest\r\n }\r\n let webkit = `-webkit-box-pack:${v};`\r\n if (v === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n webkit = ''\r\n }\r\n rule = webkit + `-ms-flex-pack:${v};justify-content:` + rest\r\n }\r\n }\r\n})\r\n\r\nlet firstPart // first part\r\nlet secondPart // second part\r\nlet thirdPart // third part\r\nlet fourthPart\r\nlet lastPart // last part\r\nlet partsWithoutEnd // without end\r\nlet rest\r\nlet negative\r\nlet rule\r\nlet pseudos\r\nlet pseudosRegex = /[^:]+::?|.+/g\r\nlet specialChars = /[.*+\\-?^${}()|[\\]\\\\]/g\r\nlet sheetLevel\r\n\r\nfunction processClass () {\r\n sheetLevel = 0\r\n rule = ''\r\n negative = ''\r\n originalClass = cls\r\n let separator = config.separator\r\n if (separator !== ':') {\r\n cls = cls.replace(new RegExp(separator.replace(specialChars, '\\\\$&'), 'g'), ':')\r\n }\r\n pseudos = cls.match(pseudosRegex)\r\n cls = pseudos.pop()\r\n pseudos = pseudos.map(v => v.endsWith('::') ? '::' + v.slice(0, -2) : ':' + v.slice(0, -1))\r\n let customData = customCache.get(cls)\r\n if (customData) {\r\n let [classes, props] = customData\r\n let [pseudosStr, originalPseudos] = [originalClass.slice(0, originalClass.lastIndexOf(cls)), pseudos]\r\n componentName = originalClass\r\n if (typeof classes === 'string') {\r\n for (cls of classes.trim().replace(/\\s\\s+/g, ' ').split(' ')) {\r\n cls = pseudosStr + cls\r\n processClass()\r\n }\r\n }\r\n pseudos = originalPseudos\r\n if (props && typeof props === 'string') {\r\n setRule(props)\r\n }\r\n componentName = ''\r\n return\r\n }\r\n\r\n if (cls[0] === '-') {\r\n negative = '-'\r\n cls = cls.slice(1)\r\n }\r\n\r\n if (typeof config.prefix === 'string') {\r\n if (!cls.startsWith(config.prefix)) {\r\n notFound()\r\n return\r\n } else {\r\n cls = cls.slice(config.prefix.length)\r\n }\r\n }\r\n let parts = cls.split('-')\r\n ;[firstPart, secondPart = '', thirdPart = '', fourthPart = ''] = parts\r\n lastPart = parts[parts.length - 1]\r\n partsWithoutEnd = parts.slice(0, -1).join('-')\r\n rest = parts.slice(1).join('-')\r\n\r\n let process\r\n if (!(rule = classNames[cls]) && (process = cls2process[firstPart])) {\r\n process()\r\n } else if (firstPart.length < 3 && !thirdPart) {\r\n formatClass()\r\n }\r\n\r\n if (rule) {\r\n setRule(rule)\r\n } else if (cls === 'container') {\r\n setRule('width:100%')\r\n for (const [r, size] of Object.entries(config.screens)) {\r\n setRule('max-width:' + size, media.get(`default${r}0`))\r\n }\r\n } else {\r\n notFound()\r\n }\r\n}\r\n\r\nfunction formatClass () {\r\n let v\r\n if (secondPart === 'px') {\r\n v = `${negative}1px`\r\n } else if (secondPart === 'full') {\r\n v = '100%'\r\n } else if (secondPart === 'screen') {\r\n if (firstPart === 'w') {\r\n v = '100vw'\r\n } else if (firstPart === 'h') {\r\n v = '100vh'\r\n }\r\n } else if (secondPart === 'auto') {\r\n v = 'auto'\r\n } else if (isNum(secondPart)) {\r\n v = negative + Number(secondPart) * 0.25 + 'rem'\r\n } else if (secondPart.indexOf('/') > -1) {\r\n let [top, bottom] = secondPart.split('/')\r\n if (isNum(top) && isNum(bottom)) {\r\n v = negative + (Number(top) / Number(bottom)).toFixed(6) + '%'\r\n }\r\n } else if (isStartNum(secondPart)) {\r\n v = negative + secondPart\r\n }\r\n\r\n let basicPart = formatters[firstPart[0]]\r\n let e = edge[firstPart[1]]\r\n if (v && basicPart) {\r\n if (firstPart[1] === 'x') {\r\n sheetLevel = 1\r\n rule = basicPart + `-right:${v};${basicPart}-left:` + v\r\n } else if (firstPart[1] === 'y') {\r\n sheetLevel = 1\r\n rule = basicPart + `-top:${v};${basicPart}-bottom:` + v\r\n } else if (e) {\r\n sheetLevel = 2\r\n rule = basicPart + `-${e}:` + v\r\n } else {\r\n rule = basicPart + ':' + v\r\n }\r\n }\r\n}\r\n\r\nlet findInSheet = (sheet) => {\r\n let rules = []\r\n for (let rule of [...sheet.cssRules]) {\r\n // eslint-disable-next-line no-undef\r\n if (rule.type === CSSRule.STYLE_RULE) {\r\n if (rule.selectorText.split(',').map((item) => item.trim()).includes('.' + cls)) {\r\n let text = rule.cssText\r\n rules.push([text.slice(text.indexOf('{') + 1, text.lastIndexOf('}')), sheet])\r\n }\r\n // eslint-disable-next-line no-undef\r\n } else if (rule.type === CSSRule.MEDIA_RULE) {\r\n rules.push(...findInSheet(rule))\r\n }\r\n }\r\n return rules\r\n}\r\n\r\nlet responsiveSheets = new Map()\r\n\r\nlet notFound = () => {\r\n if (pseudos.length > 0) {\r\n let rules = []\r\n for (const sheet of document.styleSheets) {\r\n rules.push(...findInSheet(sheet))\r\n }\r\n let responsive = pseudos[0].slice(1)\r\n if (config.screens[responsive]) {\r\n let screens = Object.entries(config.screens)\r\n for (let [rule, sheet] of rules) {\r\n let sheets = responsiveSheets.get(sheet)\r\n if (!sheets) {\r\n sheets = newObject()\r\n for (const [r, size] of screens) {\r\n sheets[r] = sheet.cssRules[sheet.insertRule(`@media(min-width:${size}){}`, sheet.cssRules.length)]\r\n }\r\n responsiveSheets[sheet] = sheets\r\n }\r\n setRule(rule, sheets[responsive])\r\n }\r\n } else {\r\n for (let [rule, sheet] of rules) {\r\n setRule(rule, sheet)\r\n }\r\n }\r\n }\r\n}\r\n\r\n// pseudos = split('::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P!::P'.replace(/P/g, 'placeholder'))\r\nlet pseudoVendorPrefixes = newObject({\r\n '::placeholder': '::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P'.replace(/P/g, 'placeholder'),\r\n '::selection': ':::-moz-selection'\r\n})\r\n\r\nfunction setRule (rule, sheet) {\r\n let pseudo = ''\r\n let ruleCls = originalClass\r\n let sheetPrefix = 'default'\r\n let important = ''\r\n let insertRule = () => {\r\n try {\r\n sheet.insertRule(important + `.${ruleCls}${pseudo}{${rule}}`, sheet.cssRules.length)\r\n } catch (err) {\r\n // console.log(err)\r\n }\r\n }\r\n\r\n if (componentName) {\r\n ruleCls = componentName\r\n sheetPrefix = 'custom'\r\n }\r\n ruleCls = ruleCls.replace(/[.:()&@~*^$%,#]/g, '\\\\$&')\r\n if (config.important) {\r\n if (config.important === true) {\r\n rule = rule.replace(/;/g, '!important;') + '!important'\r\n } else if (typeof config.important === 'string') {\r\n important = config.important + ' '\r\n }\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n let mediaQuery = media.get(sheetPrefix + pseudos[0].slice(1) + sheetLevel)\r\n if (mediaQuery) {\r\n sheet = sheet || mediaQuery\r\n pseudos.shift()\r\n }\r\n }\r\n\r\n if (!sheet) {\r\n sheet = media.get(sheetPrefix + sheetLevel)\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n for (const pseudo of [...pseudos]) {\r\n let prefixes = pseudoVendorPrefixes[pseudo]\r\n if (prefixes) {\r\n pseudos.push(...split(prefixes))\r\n }\r\n }\r\n for (pseudo of pseudos) {\r\n // console.log(`.${cls}${pseudo}{${t}}`)\r\n if (includes(':first!:last', pseudo)) {\r\n pseudo = pseudo + '-child'\r\n } else if (includes(':odd!:even', pseudo)) {\r\n pseudo = `:nth-child(${pseudo.slice(1)})`\r\n } else if (pseudo.startsWith(':group')) {\r\n ruleCls = pseudo.slice(1).replace('-', ':') + ' .' + ruleCls\r\n pseudo = ''\r\n }\r\n insertRule()\r\n }\r\n } else {\r\n insertRule()\r\n }\r\n}\r\n"],"names":["parentSheet","componentName","addedScreens","isNum","v","isNaN","isStartNum","parseInt","split","s","indexOf","includes","ifRemTo","negative","Number","newObject","o","Object","assign","create","classesCache","Map","customCache","config","separator","screens","sm","md","lg","xl","isObject","value","prototype","toString","call","hex6","Error","startsWith","length","slice","map","join","test","errorNotObject","customColors","document","styleSheets","head","appendChild","createElement","sheet","cls","originalClass","media","setMedia","prefix","size","condition","i","set","cssRules","insertRule","formatters","p","m","h","z","w","classNames","c","replace","firstPart","secondPart","thirdPart","fourthPart","lastPart","partsWithoutEnd","rest","rule","pseudos","sheetLevel","colors","colorNames","roundedSize","edge","l","r","t","b","setColor","type","color","get","colorPos","rgba","setPosition","timeProp","cls2process","object","overflow","clearfix","text","pos","endsWith","num","font","whitespace","inset","top","right","bottom","left","flex","ruleFunc","v1","v2","v3","order","grid","cols","span","start","end","rows","row","gap","col","space","divide","min","max","tracking","leading","placeholder","push","align","bg","rounded","place1","border","opacity","transition","ruleFunc2","duration","delay","ease","scale","rotate","translate","fractions","skew","transform","origin","cursor","shadow","xs","2xl","inner","outline","none","console","log","pointer","select","fill","stroke","items","content","self","gridRowAlign","justify","webkit","pseudosRegex","specialChars","processClass","RegExp","match","pop","customData","classes","props","lastIndexOf","pseudosStr","originalPseudos","trim","setRule","notFound","parts","process","toFixed","basicPart","e","formatClass","entries","findInSheet","rules","CSSRule","STYLE_RULE","selectorText","item","cssText","MEDIA_RULE","responsiveSheets","responsive","sheets","pseudoVendorPrefixes","::placeholder","::selection","pseudo","ruleCls","sheetPrefix","important","err","mediaQuery","shift","prefixes","name","conf","undefined","key1","value1","has"],"mappings":"+zBAEA,IASIA,EAEAC,EACAC,EAZAC,EAAQ,SAACC,UAAOC,MAAMD,IACtBE,EAAa,SAACF,UAAOC,MAAME,SAASH,KACpCI,EAAQ,SAACC,UAAMA,EAAED,MAAM,MACvBE,EAAU,SAACD,EAAGL,UAAMI,EAAMC,GAAGC,QAAQN,IACrCO,EAAW,SAACF,EAAGL,UAAMI,EAAMC,GAAGE,SAASP,IACvCQ,EAAU,SAAC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AQ1K,EAAOE,aACpBjB,EAAM,kCAAmB,KAA9BwD,UACTV,EAASU,GACT,cAA0BiI,kBAAS,eACjC3I,EAASU,eAIf,GAAuB,iBAAZmH,IACTA,EAAUA,EAAQK,QACbpK,EAAayM,IAAI1C,IAAU,CAC9B,cAAYA,EAAQ7G,QAAQ,SAAU,KAAK9D,MAAM,qBAC3CY,EAAayM,IADd1K,aAIH/B,EAAauC,IAAIR,GAAK,GACtB2H,MAEF1J,EAAauC,IAAIwH,GAAS"} \ No newline at end of file +{"version":3,"file":"runcss.js","sources":["../src/runcss.js"],"sourcesContent":["/* eslint-disable prefer-const */\r\n\r\nlet isNum = (v) => !isNaN(v)\r\nlet isStartNum = (v) => !isNaN(parseInt(v))\r\nlet split = (s) => s.split('!')\r\nlet indexOf = (s, v) => split(s).indexOf(v)\r\nlet includes = (s, v) => split(s).includes(v)\r\nlet ifRemTo = (v) => isNum(v) ? negative + Number(v) * 0.25 + 'rem' : negative + v\r\nlet newObject = (o = {}) => Object.assign(Object.create(null), o)\r\nlet classesCache = new Map()\r\nlet customCache = new Map()\r\nlet parentSheet\r\nlet config = newObject({ separator: ':', screens: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px' } })\r\nlet componentName\r\nlet addedScreens\r\n\r\nexport let component = (name, classes, props) => {\r\n if (typeof name !== 'string') {\r\n throw Error('Component must have a name.')\r\n }\r\n name = name.trim()\r\n if (classesCache.get(name)) {\r\n throw Error(`Class '${name}' was already processed.`)\r\n }\r\n customCache.set(name, [classes, props])\r\n}\r\n\r\nlet isObject = value => Object.prototype.toString.call(value) === '[object Object]'\r\nlet hex6 = value => {\r\n if (typeof value !== 'string') {\r\n throw Error('Hex value is not a hex string.')\r\n }\r\n if (!value.startsWith('#')) {\r\n value = '#' + value\r\n }\r\n value = value.length === 4 ? value.slice(1).split('').map((v) => v + v).join('') : value.slice(1)\r\n if (!/^[0-9a-f]{6}$/i.test(value)) {\r\n throw Error('Incorrect hex color format.')\r\n }\r\n return value\r\n}\r\n\r\nlet errorNotObject = value => {\r\n if (!isObject(value)) {\r\n throw Error('Config value must be an object.')\r\n }\r\n}\r\n\r\nlet customColors = new Map()\r\n\r\nexport let configure = (conf = newObject()) => {\r\n for (let s of split('separator!prefix')) {\r\n if (conf[s] !== undefined && typeof conf[s] !== 'string') {\r\n throw Error(`config.${s} must be a string.`)\r\n }\r\n }\r\n if (conf.screens) {\r\n errorNotObject(conf.screens)\r\n }\r\n if (conf.colors) {\r\n errorNotObject(conf.colors)\r\n for (let [key1, value1] of Object.entries(conf.colors)) {\r\n if (isObject(value1)) {\r\n for (let [key2, value2] of Object.entries(value1)) {\r\n customColors.set(key1 + '-' + key2, hex6(value2))\r\n }\r\n } else {\r\n customColors.set(key1, hex6(value1))\r\n }\r\n }\r\n } else {\r\n Object.assign(config, conf)\r\n }\r\n}\r\n\r\nif (document.styleSheets.length === 0) {\r\n parentSheet = document.head.appendChild(document.createElement('style')).sheet\r\n} else {\r\n parentSheet = document.styleSheets[0]\r\n}\r\n\r\nlet media = new Map()\r\nlet setMedia = (prefix, size) => {\r\n let condition = size ? `(min-width:${size})` : ''\r\n for (let i = 0; i < 3; i++) {\r\n media.set(prefix + i, parentSheet.cssRules[parentSheet.insertRule(`@media${condition}{}`, parentSheet.cssRules.length)])\r\n }\r\n}\r\n\r\nlet cls\r\nlet originalClass\r\n\r\nlet processClasses = (classes) => {\r\n if (!addedScreens) {\r\n addedScreens = true\r\n let entries = Object.entries(config.screens)\r\n for (const m of split('custom!default')) {\r\n setMedia(m)\r\n for (const [key, size] of entries) {\r\n setMedia(m + key, size)\r\n }\r\n }\r\n }\r\n if (typeof classes === 'string') {\r\n classes = classes.trim()\r\n if (!classesCache.has(classes)) {\r\n for (cls of classes.replace(/\\s\\s+/g, ' ').split(' ')) {\r\n if (classesCache.has(cls)) {\r\n continue\r\n }\r\n classesCache.set(cls, true)\r\n processClass()\r\n }\r\n classesCache.set(classes, true)\r\n }\r\n }\r\n}\r\nexport default processClasses\r\n\r\nlet formatters = newObject({\r\n p: 'padding',\r\n m: 'margin',\r\n h: 'height',\r\n z: 'z-index',\r\n w: 'width'\r\n})\r\n\r\nlet classNames = newObject()\r\n\r\n// direct map from class to values\r\nfor (let c of split('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji!font-serif|font-family:Georgia,Cambria,\"Times New Roman\",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace!sticky|position:-webkit-sticky;position:sticky')) {\r\n let [k, v] = c.split('|')\r\n classNames[k] = v\r\n}\r\n\r\n// class to value\r\nfor (let c of split('float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none')) {\r\n classNames[c] = c.replace('-', ':')\r\n}\r\n\r\n// display\r\nfor (let c of split('block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row')) {\r\n let p = c\r\n if (c === 'flex') {\r\n p = '-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex'\r\n } else if (c === 'inline-flex') {\r\n p = '-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex'\r\n } else if (c === 'grid') {\r\n p = '-ms-grid;display:grid'\r\n } else if (c === 'inline-grid') {\r\n p = '-ms-inline-grid;display:inline-grid'\r\n }\r\n classNames[c] = 'display:' + p\r\n}\r\n\r\n// position\r\nfor (let c of split('static!fixed!absolute!relative')) {\r\n classNames[c] = 'position:' + c\r\n}\r\n\r\nlet colors = split('f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459')\r\n\r\nlet colorNames = split('gray!red!orange!yellow!green!teal!blue!indigo!purple!pink')\r\n\r\nlet roundedSize = split('none!sm!nm!md!lg!full')\r\n\r\nlet edge = newObject({ l: 'left', r: 'right', t: 'top', b: 'bottom' })\r\n\r\nlet setColor = (type) => {\r\n if (secondPart === 'opacity' && isNum(thirdPart)) {\r\n rule = `--${type}-opacity:` + (thirdPart === '100' ? '1' : thirdPart / 100)\r\n } else {\r\n let color = customColors.get(rest)\r\n if (color) {\r\n if (thirdPart && isObject(color)) {\r\n color = color[thirdPart]\r\n }\r\n } else {\r\n if (thirdPart) {\r\n let colorPos = colorNames.indexOf(secondPart)\r\n color = colors[colorPos * 9 + (Number(thirdPart[0]) - 1)]\r\n } else if (secondPart && secondPart.startsWith('#')) {\r\n try {\r\n color = hex6(secondPart)\r\n } catch {}\r\n }\r\n }\r\n if (color) {\r\n let rgba = type + `:rgba(${parseInt(color.slice(0, 2), 16)},${parseInt(color.slice(2, 4), 16)},${parseInt(color.slice(4, 6), 16)},var(--${type}-opacity,1))`\r\n rule = type + `:#${color};` + rgba\r\n } else if (secondPart === 'current') {\r\n rule = type + ':' + 'currentColor'\r\n } else {\r\n rule = type + ':' + rest\r\n // console.log(rule)\r\n }\r\n }\r\n}\r\n\r\nlet setPosition = () => {\r\n if (!fourthPart && (includes('auto!initial!inherit', lastPart) || isStartNum(lastPart))) {\r\n let v = negative + lastPart\r\n if (thirdPart) {\r\n sheetLevel = 1\r\n if (secondPart === 'y') {\r\n rule = `top:${v};bottom:` + v\r\n } else if (secondPart === 'x') {\r\n rule = `left:${v};right:` + v\r\n }\r\n } else if (secondPart) {\r\n if (firstPart === 'inset') {\r\n rule = `top:${v};right:${v};bottom:${v};left:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = firstPart + ':' + v\r\n }\r\n }\r\n }\r\n}\r\n\r\nlet timeProp = () => {\r\n let v\r\n if (isNum(secondPart)) {\r\n v = secondPart + 'ms'\r\n } else if (isStartNum(secondPart)) {\r\n v = secondPart\r\n }\r\n if (v) {\r\n rule = `-webkit-transition-${firstPart}:${v};-o-transition-${firstPart}:${v};transition-${firstPart}:` + v\r\n }\r\n}\r\n\r\nlet cls2process = newObject({\r\n object: () => {\r\n if (includes('contain!cover!fill!none!bottom', rest)) {\r\n rule = `-o-object-fit:${rest};object-fit:` + rest\r\n } else if (includes('bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-o-object-position:${rest};object-position:` + rest\r\n }\r\n },\r\n overflow: () => {\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n }\r\n rule = partsWithoutEnd + ':' + lastPart\r\n },\r\n clearfix: () => {\r\n originalClass = 'clearfix::after'\r\n rule = 'content:\"\";display:table;clear:both'\r\n },\r\n text: () => {\r\n let pos = indexOf('xs!sm!base!lg!xl', secondPart)\r\n if (pos > -1) {\r\n rule = `font-size:${0.75 + (0.125 * pos)}rem`\r\n } else if (secondPart.endsWith('xl')) {\r\n let [num] = secondPart.split('x')\r\n if (isNum(num)) {\r\n rule = `font-size:${Number(num) - 2}rem`\r\n }\r\n } else if (includes('left!center!right!justify', rest)) {\r\n rule = 'text-align:' + rest\r\n } else {\r\n setColor('color')\r\n }\r\n },\r\n font: () => {\r\n let pos = indexOf('hairline!thin!light!normal!medium!semibold!bold!extrabold!black', secondPart)\r\n if (pos > -1) {\r\n rule = 'font-weight:' + (100 * (1 + pos))\r\n } else if (isNum(secondPart)) {\r\n rule = 'font-weight:' + secondPart\r\n }\r\n },\r\n whitespace: () => {\r\n if (includes('normal!pre!pre-line!pre-wrap', rest)) {\r\n rule = 'white-space:' + rest\r\n }\r\n },\r\n inset: setPosition,\r\n top: setPosition,\r\n right: setPosition,\r\n bottom: setPosition,\r\n left: setPosition,\r\n flex: () => {\r\n let ruleFunc = (v1, v2 = 1, v3 = '0%') => `-webkit-box-flex:${v1};-ms-flex:${v1} ${v2} ${v3};flex:${v1} ${v2} ` + v3\r\n if (includes('row!row-reverse!col!col-reverse', rest)) {\r\n rest = rest.replace('col', 'column')\r\n rule = `-webkit-box-orient:${secondPart === 'row' ? 'horizontal' : 'vertical'};-webkit-box-direction:${thirdPart === 'reverse' ? thirdPart : 'normal'};-ms-flex-direction:${rest};flex-direction:${rest}`\r\n } else if (includes('no-wrap!flex-wrap!wrap-reverse', rest)) {\r\n if (rest === 'no-wrap') {\r\n rest = 'nowrap'\r\n }\r\n rule = `-ms-flex-wrap:${rest};flex-wrap:${rest}`\r\n } else if (includes('grow!shrink', secondPart)) {\r\n sheetLevel = 1\r\n let v = thirdPart || 1\r\n if (secondPart === 'grow') {\r\n rule = `-webkit-box-flex:${v};-ms-flex-positive:${v};flex-grow:${v}`\r\n } else {\r\n rule = `-ms-flex-negative:${v};flex-shrink:${v}`\r\n }\r\n } else if (rest === 'initial') {\r\n rule = ruleFunc(0, 1, 'auto')\r\n } else if (rest === 'auto') {\r\n rule = ruleFunc(1, 1, 'auto')\r\n } else if (rest === 'none') {\r\n rule = '-webkit-box-flex:0;-ms-flex:none;flex:none'\r\n } else if (fourthPart) {\r\n rule = ruleFunc(secondPart, thirdPart, fourthPart)\r\n } else if (thirdPart) {\r\n rule = ruleFunc(secondPart, thirdPart)\r\n } else {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n order: () => {\r\n if (isNum(secondPart)) {\r\n let num = negative + secondPart\r\n rule = `-webkit-box-ordinal-group:${Number(num) + 1};-ms-flex-order:${num};order:` + num\r\n }\r\n },\r\n grid: () => {\r\n if (isNum(thirdPart)) {\r\n rule = newObject({\r\n cols: `-ms-grid-columns:(minmax(0,1fr))[${thirdPart}];grid-template-columns: repeat(${thirdPart}, minmax(0, 1fr))`,\r\n span: `-ms-grid-column-span:${thirdPart};grid-column: span ${thirdPart} / span ` + thirdPart,\r\n start: `-ms-grid-column:${thirdPart};grid-column-start:` + thirdPart,\r\n end: `-ms-grid-column-span:${thirdPart};grid-column-end:` + thirdPart,\r\n rows: `-ms-grid-rows:(minmax(0,1fr))[${thirdPart}];grid-template-rows: repeat(${thirdPart}, minmax(0, 1fr))`\r\n })[secondPart]\r\n }\r\n },\r\n row: () => {\r\n if (isStartNum(thirdPart)) {\r\n rule = newObject({\r\n span: `-ms-grid-row-span:${thirdPart};grid-row: span ${thirdPart} / span ${thirdPart}`,\r\n start: `-ms-grid-row:${thirdPart};grid-row-start:` + thirdPart,\r\n end: `-ms-grid-row-span:${thirdPart};grid-row-end:` + thirdPart,\r\n gap: 'row-gap:' + ifRemTo(thirdPart)\r\n })[secondPart]\r\n }\r\n },\r\n col: () => {\r\n if (isNum(thirdPart)) {\r\n if (secondPart === 'span') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column:span ${thirdPart} / span ${thirdPart};`\r\n } else if (secondPart === 'start') {\r\n rule = `-ms-grid-column:${thirdPart};grid-column-start:${thirdPart}`\r\n } else if (secondPart === 'end') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column-end:${thirdPart}`\r\n }\r\n }\r\n if (isStartNum(thirdPart) && secondPart === 'gap') {\r\n let v = thirdPart === 'px' ? '1px' : ifRemTo(thirdPart)\r\n rule = `-webkit-column-gap:${v};-moz-column-gap:${v}column-gap:` + v\r\n }\r\n },\r\n gap: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'gap:' + ifRemTo(secondPart)\r\n }\r\n },\r\n space: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n }\r\n if (thirdPart) {\r\n if (isStartNum(thirdPart)) {\r\n let v = ifRemTo(thirdPart)\r\n if (secondPart === 'x') {\r\n rule = `margin-right:calc(${v}*var(--space-x-reverse,0));margin-left:calc(${v}*(1 - var(--space-x-reverse,0)))`\r\n } else if (secondPart === 'y') {\r\n rule = `margin-top:calc(${v}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${v}*var(--space-y-reverse,0))`\r\n }\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--space-${secondPart}-reverse:1`\r\n }\r\n }\r\n },\r\n divide: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n sheetLevel = 1\r\n if (!fourthPart) {\r\n let v\r\n if (isNum(thirdPart)) {\r\n v = thirdPart + 'px'\r\n } else if (isStartNum(thirdPart)) {\r\n v = thirdPart\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--divide-${secondPart}-reverse:1`\r\n } else if (secondPart) {\r\n v = '1px'\r\n }\r\n\r\n if (v) {\r\n if (secondPart === 'y') {\r\n rule = `border-top-width:calc(${v}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${v}*var(--divide-y-reverse,0)))`\r\n } else if (secondPart === 'x') {\r\n rule = `border-right-width:calc(${v}*var(--divide-x-reverse,0));border-left-width:calc(${v}*calc(1 - var(--divide-x-reverse,0)))`\r\n }\r\n }\r\n }\r\n if (!rule) {\r\n setColor('border-color')\r\n }\r\n },\r\n min: () => {\r\n if (isStartNum(thirdPart)) {\r\n if (secondPart === 'w' || secondPart === 'h') {\r\n let p = secondPart === 'w' ? 'width' : 'height'\r\n rule = `min-${p}:` + thirdPart\r\n }\r\n }\r\n },\r\n max: () => {\r\n if (secondPart === 'w') {\r\n let pos = indexOf('xs!sm!md!lg!xl', thirdPart)\r\n if (pos > -1) {\r\n rule = `max-width:${pos * 4 + 20}rem`\r\n } else if (isStartNum(thirdPart)) {\r\n if (thirdPart.endsWith('xl')) {\r\n rule = `max-width:${parseInt(thirdPart) * 8 + 24}rem`\r\n } else {\r\n rule = 'max-width:' + thirdPart\r\n }\r\n }\r\n } else if (secondPart === 'h' && isStartNum(thirdPart)) {\r\n rule = 'max-height:' + thirdPart\r\n }\r\n },\r\n tracking: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'letter-spacing:' + secondPart\r\n }\r\n },\r\n leading: () => {\r\n if (isNum(secondPart)) {\r\n rule = `line-height:${Number(secondPart) * 0.25}rem`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'line-height:' + secondPart\r\n }\r\n },\r\n placeholder: () => {\r\n pseudos.push('::placeholder')\r\n setColor('color')\r\n },\r\n align: () => {\r\n if (includes('baseline!top!middle!bottom!text-top!text-bottom', rest)) {\r\n rule = 'vertical-align:' + rest\r\n }\r\n },\r\n bg: () => {\r\n rest = rest.replace('-', ' ')\r\n if (includes('bottom!center!left!left bottom!left top!right!right bottom!right top!top', rest)) {\r\n rule = 'background-position:' + rest\r\n } else if (includes('repeat!no-repeat!repeat-x!repeat-y', rest)) {\r\n rule = 'background-repeat:' + rest\r\n } else if (includes('repeat-round!repeat-space', rest)) {\r\n rule = 'background-repeat:' + thirdPart\r\n } else if (includes('auto!cover!contain', rest)) {\r\n rule = 'background-size:' + rest\r\n } else if (includes('fixed!local!scroll', secondPart)) {\r\n rule = 'background-attachment:' + secondPart\r\n } else {\r\n setColor('background-color')\r\n }\r\n },\r\n rounded: () => {\r\n let v\r\n let pos = roundedSize.indexOf(lastPart)\r\n if (isStartNum(lastPart)) {\r\n v = lastPart\r\n pos = 9\r\n } else if (pos === 5) {\r\n v = '9999px'\r\n } else if (pos > -1) {\r\n v = pos * 0.125 + 'rem'\r\n } else if (!secondPart || edge[secondPart] || (includes('t!b', secondPart[0]) && includes('r!l', secondPart[1]))) {\r\n v = '0.25rem'\r\n }\r\n if (v) {\r\n let place1 = edge[secondPart[0]]\r\n if (!secondPart || (!thirdPart && pos > -1)) {\r\n rule = 'border-radius:' + v\r\n } else if (includes('t!b', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-${place1}-left-radius:${v};border-${place1}-right-radius:` + v\r\n } else if (includes('l!r', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-top-${place1}-radius:${v};border-bottom-${place1}-radius:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = `border-${place1}-${edge[secondPart[1]]}-radius:` + v\r\n }\r\n }\r\n },\r\n border: () => {\r\n let b = edge[secondPart]\r\n if (thirdPart && b) {\r\n if (isNum(thirdPart)) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:${thirdPart}px`\r\n } else if (isStartNum(thirdPart)) {\r\n rule = `border-${b}-width:` + thirdPart\r\n }\r\n } else {\r\n if (includes('solid!dashed!dotted!double!none', secondPart)) {\r\n rule = 'border-style:' + secondPart\r\n } else if (b) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:1px`\r\n } else if (isNum(secondPart)) {\r\n rule = `border-width:${secondPart}px`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'border-width:' + secondPart\r\n } else {\r\n setColor('border-color')\r\n }\r\n }\r\n },\r\n opacity: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'opacity:' + secondPart / 100.0\r\n }\r\n },\r\n transition: () => {\r\n let ruleFunc = (value) => `-webkit-transition-property:${value};-o-transition-property:${value};transition-property:` + value\r\n let ruleFunc2 = (value) => `-webkit-transition-property:-webkit-${value};transition-property:-webkit-${value};-o-transition-property:${value};transition-property:${value};transition-property:${value},-webkit-${value}`\r\n if (!secondPart) {\r\n rule = '-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform'\r\n rule = rule.replace(/S/g, 'background-color,border-color,color,fill,stroke,opacity,')\r\n } else if (secondPart === 'colors') {\r\n rule = ruleFunc('background-color,border-color,color,fill,stroke')\r\n } else if (secondPart === 'shadow') {\r\n rule = ruleFunc2('box-shadow')\r\n } else if (secondPart === 'transform') {\r\n rule = ruleFunc2('transform')\r\n } else if (secondPart) {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n duration: timeProp,\r\n delay: timeProp,\r\n ease: () => {\r\n let ruleFunc = (value) => `-webkit-transition-timing-function:${value};-o-transition-timing-function:${value};transition-timing-function:${value}`\r\n if (rest === 'in') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,1,1)')\r\n } else if (rest === 'out') {\r\n rule = ruleFunc('cubic-bezier(0,0,0.2,1)')\r\n } else if (rest === 'in-out') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,0.2,1)')\r\n } else if (rest === 'linear') {\r\n rule = ruleFunc('linear')\r\n }\r\n },\r\n scale: () => {\r\n if (isNum(lastPart)) {\r\n let v = lastPart / 100\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n rule = `--transform-scale-${secondPart}:` + v\r\n } else {\r\n rule = `--transform-scale-x:${v};--transform-scale-y:` + v\r\n }\r\n }\r\n },\r\n rotate: () => {\r\n if (isNum(secondPart)) {\r\n rule = `--transform-rotate:${negative}${secondPart}deg`\r\n }\r\n },\r\n translate: () => {\r\n if (includes('x!y', secondPart)) {\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n } else if (thirdPart === 'full') {\r\n thirdPart = '100%'\r\n } else if (thirdPart.includes('/')) {\r\n let fractions = thirdPart.split('/')\r\n if (fractions.length === 2) {\r\n thirdPart = Number(fractions[0]) / Number(fractions[1]) + '%'\r\n }\r\n }\r\n if (isStartNum(thirdPart)) {\r\n rule = `--transform-translate-${secondPart}:` + ifRemTo(thirdPart)\r\n }\r\n }\r\n },\r\n skew: () => {\r\n if (includes('x!y', secondPart) && isNum(thirdPart)) {\r\n rule = `--transform-skew-${secondPart}:${negative + thirdPart}deg`\r\n }\r\n },\r\n transform: () => {\r\n let v = 'translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))'\r\n rule = `-webkit-transform:${v};-ms-transform:${v};transform:` + v\r\n },\r\n origin: () => {\r\n if (includes('center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-webkit-transform-origin:${rest};-ms-transform-origin:${rest};transform-origin:` + rest\r\n }\r\n },\r\n cursor: () => {\r\n if (includes('auto!default!pointer!wait!text!move!not-allowed', rest)) {\r\n rule = 'cursor:' + rest\r\n }\r\n },\r\n shadow: () => {\r\n let shadows = newObject({\r\n xs: '0 0 0 1pxR.05)',\r\n sm: '0 1px 2px 0R.05)',\r\n '': '0 1px 3px 0R.1), 0 1px 2px 0R.06)',\r\n md: '0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)',\r\n lg: '0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)',\r\n xl: '0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)',\r\n '2xl': '0 25px 50px -12pxR.25)',\r\n inner: 'inset 0 2px 4px 0R.06)',\r\n outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',\r\n none: 'none'\r\n })\r\n let v = shadows[secondPart]\r\n if (v) {\r\n v = v.replace(/R/g, ' rgba(0, 0, 0, 0')\r\n // console.log(v)\r\n rule = `-webkit-box-shadow:${v};box-shadow:` + v\r\n }\r\n },\r\n outline: () => {\r\n if (secondPart) {\r\n rule = 'outline:' + rest.replace('-', ' ')\r\n }\r\n },\r\n pointer: () => {\r\n if (secondPart) {\r\n rule = 'pointer-events:' + secondPart\r\n }\r\n },\r\n select: () => {\r\n if (includes('none!auto!text!contain!all!inherit!initial!unset', rest)) {\r\n rule = `-webkit-user-select:${rest};-moz-user-select:${rest};-ms-user-select:${rest};user-select:` + rest\r\n }\r\n },\r\n fill: () => {\r\n if (secondPart) {\r\n rule = 'fill:' + secondPart\r\n }\r\n },\r\n stroke: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'stroke-width:' + secondPart\r\n } else if (secondPart) {\r\n rule = 'stroke:' + secondPart\r\n }\r\n },\r\n items: () => {\r\n if (includes('stretch!start!center!end!baseline', rest)) {\r\n rule = `-webkit-box-align:${rest};-ms-flex-align:${rest};align-items:` + (includes('start!end', rest) ? 'flex-' : '') + rest\r\n }\r\n },\r\n content: () => {\r\n if (includes('start!center!end!between!around')) {\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n } else if (rest === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (rest === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n }\r\n\r\n rule = `-ms-flex-line-pack:${v};align-content:` + rest\r\n }\r\n },\r\n self: () => {\r\n if (includes('auto!start!center!end!stretch', rest)) {\r\n let gridRowAlign = `-ms-grid-row-align:${rest};`\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n gridRowAlign = ''\r\n }\r\n rule = `-ms-flex-item-align:${v};${gridRowAlign}align-self:` + rest\r\n }\r\n },\r\n justify: () => {\r\n if (includes('start!center!end!between!around', rest)) {\r\n let v = rest\r\n if (v === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (includes('start!end')) {\r\n rest = 'flex-' + rest\r\n }\r\n let webkit = `-webkit-box-pack:${v};`\r\n if (v === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n webkit = ''\r\n }\r\n rule = webkit + `-ms-flex-pack:${v};justify-content:` + rest\r\n }\r\n }\r\n})\r\n\r\nlet firstPart // first part\r\nlet secondPart // second part\r\nlet thirdPart // third part\r\nlet fourthPart\r\nlet lastPart // last part\r\nlet partsWithoutEnd // without end\r\nlet rest\r\nlet negative\r\nlet rule\r\nlet pseudos\r\nlet pseudosRegex = /[^:]+::?|.+/g\r\nlet specialChars = /[.*+\\-?^${}()|[\\]\\\\]/g\r\nlet sheetLevel\r\n\r\nfunction processClass () {\r\n sheetLevel = 0\r\n rule = ''\r\n negative = ''\r\n originalClass = cls\r\n let separator = config.separator\r\n if (separator !== ':') {\r\n cls = cls.replace(new RegExp(separator.replace(specialChars, '\\\\$&'), 'g'), ':')\r\n }\r\n pseudos = cls.match(pseudosRegex)\r\n cls = pseudos.pop()\r\n pseudos = pseudos.map(v => v.endsWith('::') ? '::' + v.slice(0, -2) : ':' + v.slice(0, -1))\r\n let customData = customCache.get(cls)\r\n if (customData) {\r\n let [classes, props] = customData\r\n let [pseudosStr, originalPseudos] = [originalClass.slice(0, originalClass.lastIndexOf(cls)), pseudos]\r\n componentName = originalClass\r\n if (typeof classes === 'string') {\r\n for (cls of classes.trim().replace(/\\s\\s+/g, ' ').split(' ')) {\r\n cls = pseudosStr + cls\r\n processClass()\r\n }\r\n }\r\n pseudos = originalPseudos\r\n if (props && typeof props === 'string') {\r\n setRule(props)\r\n }\r\n componentName = ''\r\n return\r\n }\r\n\r\n if (cls[0] === '-') {\r\n negative = '-'\r\n cls = cls.slice(1)\r\n }\r\n\r\n if (typeof config.prefix === 'string') {\r\n if (!cls.startsWith(config.prefix)) {\r\n notFound()\r\n return\r\n } else {\r\n cls = cls.slice(config.prefix.length)\r\n }\r\n }\r\n let parts = cls.split('-')\r\n ;[firstPart, secondPart = '', thirdPart = '', fourthPart = ''] = parts\r\n lastPart = parts[parts.length - 1]\r\n partsWithoutEnd = parts.slice(0, -1).join('-')\r\n rest = parts.slice(1).join('-')\r\n\r\n let process\r\n if (!(rule = classNames[cls]) && (process = cls2process[firstPart])) {\r\n process()\r\n } else if (firstPart.length < 3 && !thirdPart) {\r\n formatClass()\r\n }\r\n\r\n if (rule) {\r\n setRule(rule)\r\n } else if (cls === 'container') {\r\n setRule('width:100%')\r\n for (const [r, size] of Object.entries(config.screens)) {\r\n setRule('max-width:' + size, media.get(`default${r}0`))\r\n }\r\n } else {\r\n notFound()\r\n }\r\n}\r\n\r\nfunction formatClass () {\r\n let v\r\n if (secondPart === 'px') {\r\n v = `${negative}1px`\r\n } else if (secondPart === 'full') {\r\n v = '100%'\r\n } else if (secondPart === 'screen') {\r\n if (firstPart === 'w') {\r\n v = '100vw'\r\n } else if (firstPart === 'h') {\r\n v = '100vh'\r\n }\r\n } else if (secondPart === 'auto') {\r\n v = 'auto'\r\n } else if (isNum(secondPart)) {\r\n v = negative + Number(secondPart) * 0.25 + 'rem'\r\n } else if (secondPart.indexOf('/') > -1) {\r\n let [top, bottom] = secondPart.split('/')\r\n if (isNum(top) && isNum(bottom)) {\r\n v = negative + (Number(top) / Number(bottom)).toFixed(6) + '%'\r\n }\r\n } else if (isStartNum(secondPart)) {\r\n v = negative + secondPart\r\n }\r\n\r\n let basicPart = formatters[firstPart[0]]\r\n let e = edge[firstPart[1]]\r\n if (v && basicPart) {\r\n if (firstPart[1] === 'x') {\r\n sheetLevel = 1\r\n rule = basicPart + `-right:${v};${basicPart}-left:` + v\r\n } else if (firstPart[1] === 'y') {\r\n sheetLevel = 1\r\n rule = basicPart + `-top:${v};${basicPart}-bottom:` + v\r\n } else if (e) {\r\n sheetLevel = 2\r\n rule = basicPart + `-${e}:` + v\r\n } else {\r\n rule = basicPart + ':' + v\r\n }\r\n }\r\n}\r\n\r\nlet findInSheet = (sheet) => {\r\n let rules = []\r\n for (let rule of [...sheet.cssRules]) {\r\n // eslint-disable-next-line no-undef\r\n if (rule.type === CSSRule.STYLE_RULE) {\r\n if (rule.selectorText.split(',').map((item) => item.trim()).includes('.' + cls)) {\r\n let text = rule.cssText\r\n rules.push([text.slice(text.indexOf('{') + 1, text.lastIndexOf('}')), sheet])\r\n }\r\n // eslint-disable-next-line no-undef\r\n } else if (rule.type === CSSRule.MEDIA_RULE) {\r\n rules.push(...findInSheet(rule))\r\n }\r\n }\r\n return rules\r\n}\r\n\r\nlet responsiveSheets = new Map()\r\n\r\nlet notFound = () => {\r\n if (pseudos.length > 0) {\r\n let rules = []\r\n for (const sheet of document.styleSheets) {\r\n rules.push(...findInSheet(sheet))\r\n }\r\n let responsive = pseudos[0].slice(1)\r\n if (config.screens[responsive]) {\r\n let screens = Object.entries(config.screens)\r\n for (let [rule, sheet] of rules) {\r\n let sheets = responsiveSheets.get(sheet)\r\n if (!sheets) {\r\n sheets = newObject()\r\n for (const [r, size] of screens) {\r\n sheets[r] = sheet.cssRules[sheet.insertRule(`@media(min-width:${size}){}`, sheet.cssRules.length)]\r\n }\r\n responsiveSheets[sheet] = sheets\r\n }\r\n setRule(rule, sheets[responsive])\r\n }\r\n } else {\r\n for (let [rule, sheet] of rules) {\r\n setRule(rule, sheet)\r\n }\r\n }\r\n }\r\n}\r\n\r\n// pseudos = split('::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P!::P'.replace(/P/g, 'placeholder'))\r\nlet pseudoVendorPrefixes = newObject({\r\n '::placeholder': '::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P'.replace(/P/g, 'placeholder'),\r\n '::selection': ':::-moz-selection'\r\n})\r\n\r\nfunction setRule (rule, sheet) {\r\n let pseudo = ''\r\n let ruleCls = originalClass\r\n let sheetPrefix = 'default'\r\n let important = ''\r\n let insertRule = () => {\r\n try {\r\n sheet.insertRule(important + `.${ruleCls}${pseudo}{${rule}}`, sheet.cssRules.length)\r\n } catch (err) {\r\n // console.log(err)\r\n }\r\n }\r\n\r\n if (componentName) {\r\n ruleCls = componentName\r\n sheetPrefix = 'custom'\r\n }\r\n ruleCls = ruleCls.replace(/[.:()&@~*^$%,#]/g, '\\\\$&')\r\n if (config.important) {\r\n if (config.important === true) {\r\n rule = rule.replace(/;/g, '!important;') + '!important'\r\n } else if (typeof config.important === 'string') {\r\n important = config.important + ' '\r\n }\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n let mediaQuery = media.get(sheetPrefix + pseudos[0].slice(1) + sheetLevel)\r\n if (mediaQuery) {\r\n sheet = sheet || mediaQuery\r\n pseudos.shift()\r\n }\r\n }\r\n\r\n if (!sheet) {\r\n sheet = media.get(sheetPrefix + sheetLevel)\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n for (const pseudo of [...pseudos]) {\r\n let prefixes = pseudoVendorPrefixes[pseudo]\r\n if (prefixes) {\r\n pseudos.push(...split(prefixes))\r\n }\r\n }\r\n for (pseudo of pseudos) {\r\n // console.log(`.${cls}${pseudo}{${t}}`)\r\n if (includes(':first!:last', pseudo)) {\r\n pseudo = pseudo + '-child'\r\n } else if (includes(':odd!:even', pseudo)) {\r\n pseudo = `:nth-child(${pseudo.slice(1)})`\r\n } else if (pseudo.startsWith(':group')) {\r\n ruleCls = pseudo.slice(1).replace('-', ':') + ' .' + ruleCls\r\n pseudo = ''\r\n }\r\n insertRule()\r\n }\r\n } else {\r\n insertRule()\r\n }\r\n}\r\n"],"names":["parentSheet","componentName","addedScreens","isNum","v","isNaN","isStartNum","parseInt","split","s","indexOf","includes","ifRemTo","negative","Number","newObject","o","Object","assign","create","classesCache","Map","customCache","config","separator","screens","sm","md","lg","xl","isObject","value","prototype","toString","call","hex6","Error","startsWith","length","slice","map","join","test","errorNotObject","customColors","document","styleSheets","head","appendChild","createElement","sheet","cls","originalClass","media","setMedia","prefix","size","condition","i","set","cssRules","insertRule","formatters","p","m","h","z","w","classNames","c","replace","firstPart","secondPart","thirdPart","fourthPart","lastPart","partsWithoutEnd","rest","rule","pseudos","sheetLevel","colors","colorNames","roundedSize","edge","l","r","t","b","setColor","type","color","get","colorPos","rgba","setPosition","timeProp","cls2process","object","overflow","clearfix","text","pos","endsWith","num","font","whitespace","inset","top","right","bottom","left","flex","ruleFunc","v1","v2","v3","order","grid","cols","span","start","end","rows","row","gap","col","space","divide","min","max","tracking","leading","placeholder","push","align","bg","rounded","place1","border","opacity","transition","ruleFunc2","duration","delay","ease","scale","rotate","translate","fractions","skew","transform","origin","cursor","shadow","xs","2xl","inner","outline","none","pointer","select","fill","stroke","items","content","self","gridRowAlign","justify","webkit","pseudosRegex","specialChars","processClass","RegExp","match","pop","customData","classes","props","lastIndexOf","pseudosStr","originalPseudos","trim","setRule","notFound","parts","process","toFixed","basicPart","e","formatClass","entries","findInSheet","rules","CSSRule","STYLE_RULE","selectorText","item","cssText","MEDIA_RULE","responsiveSheets","responsive","sheets","pseudoVendorPrefixes","::placeholder","::selection","pseudo","ruleCls","sheetPrefix","important","err","mediaQuery","shift","prefixes","name","conf","undefined","key1","value1","has"],"mappings":"+zBAEA,IASIA,EAEAC,EACAC,EAZAC,EAAQ,SAACC,UAAOC,MAAMD,IACtBE,EAAa,SAACF,UAAOC,MAAME,SAASH,KACpCI,EAAQ,SAACC,UAAMA,EAAED,MAAM,MACvBE,EAAU,SAACD,EAAGL,UAAMI,EAAMC,GAAGC,QAAQN,IACrCO,EAAW,SAACF,EAAGL,UAAMI,EAAMC,GAAGE,SAASP,IACvCQ,EAAU,SAACR,UAAMD,EAAMC,GAAKS,EAAuB,IAAZC,OAAOV,GAAY,MAAQS,E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EAASU,eAIf,GAAuB,iBAAZiH,IACTA,EAAUA,EAAQK,QACblK,EAAauM,IAAI1C,IAAU,CAC9B,cAAYA,EAAQ3G,QAAQ,SAAU,KAAK9D,MAAM,qBAC3CY,EAAauM,IADdxK,aAIH/B,EAAauC,IAAIR,GAAK,GACtByH,MAEFxJ,EAAauC,IAAIsH,GAAS"} \ No newline at end of file diff --git a/dist/runcss.modern.js b/dist/runcss.modern.js index bb7f579..e3dcb2c 100644 --- a/dist/runcss.modern.js +++ b/dist/runcss.modern.js @@ -1,2 +1,2 @@ -let e,t,r,o=e=>!isNaN(e),i=e=>!isNaN(parseInt(e)),a=e=>e.split("!"),l=(e,t)=>a(e).indexOf(t),n=(e,t)=>a(e).includes(t),s=e=>o(e)?I+.25*Number(e)+"rem":I+e,c=(e={})=>Object.assign(Object.create(null),e),f=new Map,p=new Map,d=c({separator:":",screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),m=(e,t,r)=>{if("string"!=typeof e)throw Error("Component must have a name.");if(e=e.trim(),f.get(e))throw Error(`Class '${e}' was already processed.`);p.set(e,[t,r])},b=e=>"[object Object]"===Object.prototype.toString.call(e),g=e=>{if("string"!=typeof e)throw Error("Hex value is not a hex string.");if(e.startsWith("#")||(e="#"+e),e=4===e.length?e.slice(1).split("").map(e=>e+e).join(""):e.slice(1),!/^[0-9a-f]{6}$/i.test(e))throw Error("Incorrect hex color format.");return e},x=e=>{if(!b(e))throw Error("Config value must be an object.")},w=new Map,u=(e=c())=>{for(let t of a("separator!prefix"))if(void 0!==e[t]&&"string"!=typeof e[t])throw Error(`config.${t} must be a string.`);if(e.screens&&x(e.screens),e.colors){x(e.colors);for(let[t,r]of Object.entries(e.colors))if(b(r))for(let[e,o]of Object.entries(r))w.set(t+"-"+e,g(o));else w.set(t,g(r))}else Object.assign(d,e)};e=0===document.styleSheets.length?document.head.appendChild(document.createElement("style")).sheet:document.styleSheets[0];let h,$,y=new Map,k=(t,r)=>{let o=r?`(min-width:${r})`:"";for(let r=0;r<3;r++)y.set(t+r,e.cssRules[e.insertRule(`@media${o}{}`,e.cssRules.length)])},v=c({p:"padding",m:"margin",h:"height",z:"z-index",w:"width"}),z=c();for(let e of a('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji!font-serif|font-family:Georgia,Cambria,"Times New Roman",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!sticky|position:-webkit-sticky;position:sticky')){let[t,r]=e.split("|");z[t]=r}for(let e of a("float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none"))z[e]=e.replace("-",":");for(let e of a("block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row")){let t=e;"flex"===e?t="-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex":"inline-flex"===e?t="-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex":"grid"===e?t="-ms-grid;display:grid":"inline-grid"===e&&(t="-ms-inline-grid;display:inline-grid"),z[e]="display:"+t}for(let e of a("static!fixed!absolute!relative"))z[e]="position:"+e;let j,R,S,N,O,E,C,I,M,W,P,T=a("f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459"),U=a("gray!red!orange!yellow!green!teal!blue!indigo!purple!pink"),L=a("none!sm!nm!md!lg!full"),A=c({l:"left",r:"right",t:"top",b:"bottom"}),F=e=>{if("opacity"===R&&o(S))M=`--${e}-opacity:`+("100"===S?"1":S/100);else{let t=w.get(C);if(t)S&&b(t)&&(t=t[S]);else if(S){let e=U.indexOf(R);t=T[9*e+(Number(S[0])-1)]}else if(R&&R.startsWith("#"))try{t=g(R)}catch{}if(t){let r=e+`:rgba(${parseInt(t.slice(0,2),16)},${parseInt(t.slice(2,4),16)},${parseInt(t.slice(4,6),16)},var(--${e}-opacity,1))`;M=e+`:#${t};`+r}else M="current"===R?e+":currentColor":e+":"+C}},H=()=>{if(!N&&(n("auto!initial!inherit",O)||i(O))){let e=I+O;S?(P=1,"y"===R?M=`top:${e};bottom:`+e:"x"===R&&(M=`left:${e};right:`+e)):R&&("inset"===j?M=`top:${e};right:${e};bottom:${e};left:`+e:(P=2,M=j+":"+e))}},_=()=>{let e;o(R)?e=R+"ms":i(R)&&(e=R),e&&(M=`-webkit-transition-${j}:${e};-o-transition-${j}:${e};transition-${j}:`+e)},B=c({object:()=>{n("contain!cover!fill!none!bottom",C)?M=`-o-object-fit:${C};object-fit:`+C:n("bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top",C)&&(C=C.replace("-"," "),M=`-o-object-position:${C};object-position:`+C)},overflow:()=>{n("x!y",R)&&(P=1),M=E+":"+O},clearfix:()=>{$="clearfix::after",M='content:"";display:table;clear:both'},text:()=>{let e=l("xs!sm!base!lg!xl",R);if(e>-1)M=`font-size:${.75+.125*e}rem`;else if(R.endsWith("xl")){let[e]=R.split("x");o(e)&&(M=`font-size:${Number(e)-2}rem`)}else n("left!center!right!justify",C)?M="text-align:"+C:F("color")},font:()=>{let e=l("hairline!thin!light!normal!medium!semibold!bold!extrabold!black",R);e>-1?M="font-weight:"+100*(1+e):o(R)&&(M="font-weight:"+R)},whitespace:()=>{n("normal!pre!pre-line!pre-wrap",C)&&(M="white-space:"+C)},inset:H,top:H,right:H,bottom:H,left:H,flex:()=>{let e=(e,t=1,r="0%")=>`-webkit-box-flex:${e};-ms-flex:${e} ${t} ${r};flex:${e} ${t} `+r;if(n("row!row-reverse!col!col-reverse",C))C=C.replace("col","column"),M=`-webkit-box-orient:${"row"===R?"horizontal":"vertical"};-webkit-box-direction:${"reverse"===S?S:"normal"};-ms-flex-direction:${C};flex-direction:${C}`;else if(n("no-wrap!flex-wrap!wrap-reverse",C))"no-wrap"===C&&(C="nowrap"),M=`-ms-flex-wrap:${C};flex-wrap:${C}`;else if(n("grow!shrink",R)){P=1;let e=S||1;M="grow"===R?`-webkit-box-flex:${e};-ms-flex-positive:${e};flex-grow:${e}`:`-ms-flex-negative:${e};flex-shrink:${e}`}else M="initial"===C?e(0,1,"auto"):"auto"===C?e(1,1,"auto"):"none"===C?"-webkit-box-flex:0;-ms-flex:none;flex:none":N?e(R,S,N):S?e(R,S):e(R)},order:()=>{if(o(R)){let e=I+R;M=`-webkit-box-ordinal-group:${Number(e)+1};-ms-flex-order:${e};order:`+e}},grid:()=>{o(S)&&(M=c({cols:`-ms-grid-columns:(minmax(0,1fr))[${S}];grid-template-columns: repeat(${S}, minmax(0, 1fr))`,span:`-ms-grid-column-span:${S};grid-column: span ${S} / span `+S,start:`-ms-grid-column:${S};grid-column-start:`+S,end:`-ms-grid-column-span:${S};grid-column-end:`+S,rows:`-ms-grid-rows:(minmax(0,1fr))[${S}];grid-template-rows: repeat(${S}, minmax(0, 1fr))`})[R])},row:()=>{i(S)&&(M=c({span:`-ms-grid-row-span:${S};grid-row: span ${S} / span ${S}`,start:`-ms-grid-row:${S};grid-row-start:`+S,end:`-ms-grid-row-span:${S};grid-row-end:`+S,gap:"row-gap:"+s(S)})[R])},col:()=>{if(o(S)&&("span"===R?M=`-ms-grid-column-span:${S};grid-column:span ${S} / span ${S};`:"start"===R?M=`-ms-grid-column:${S};grid-column-start:${S}`:"end"===R&&(M=`-ms-grid-column-span:${S};grid-column-end:${S}`)),i(S)&&"gap"===R){let e="px"===S?"1px":s(S);M=`-webkit-column-gap:${e};-moz-column-gap:${e}column-gap:`+e}},gap:()=>{i(R)&&(M="gap:"+s(R))},space:()=>{if(W=[">:not(template)~:not(template)"],"px"===S&&(S="1px"),S)if(i(S)){let e=s(S);"x"===R?M=`margin-right:calc(${e}*var(--space-x-reverse,0));margin-left:calc(${e}*(1 - var(--space-x-reverse,0)))`:"y"===R&&(M=`margin-top:calc(${e}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${e}*var(--space-y-reverse,0))`)}else"reverse"===S&&(M=`--space-${R}-reverse:1`)},divide:()=>{if(W=[">:not(template)~:not(template)"],P=1,!N){let e;o(S)?e=S+"px":i(S)?e=S:"reverse"===S?M=`--divide-${R}-reverse:1`:R&&(e="1px"),e&&("y"===R?M=`border-top-width:calc(${e}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${e}*var(--divide-y-reverse,0)))`:"x"===R&&(M=`border-right-width:calc(${e}*var(--divide-x-reverse,0));border-left-width:calc(${e}*calc(1 - var(--divide-x-reverse,0)))`))}M||F("border-color")},min:()=>{!i(S)||"w"!==R&&"h"!==R||(M=`min-${"w"===R?"width":"height"}:`+S)},max:()=>{if("w"===R){let e=l("xs!sm!md!lg!xl",S);e>-1?M=`max-width:${4*e+20}rem`:i(S)&&(M=S.endsWith("xl")?`max-width:${8*parseInt(S)+24}rem`:"max-width:"+S)}else"h"===R&&i(S)&&(M="max-height:"+S)},tracking:()=>{i(R)&&(M="letter-spacing:"+R)},leading:()=>{o(R)?M=`line-height:${.25*Number(R)}rem`:i(R)&&(M="line-height:"+R)},placeholder:()=>{W.push("::placeholder"),F("color")},align:()=>{n("baseline!top!middle!bottom!text-top!text-bottom",C)&&(M="vertical-align:"+C)},bg:()=>{C=C.replace("-"," "),n("bottom!center!left!left bottom!left top!right!right bottom!right top!top",C)?M="background-position:"+C:n("repeat!no-repeat!repeat-x!repeat-y",C)?M="background-repeat:"+C:n("repeat-round!repeat-space",C)?M="background-repeat:"+S:n("auto!cover!contain",C)?M="background-size:"+C:n("fixed!local!scroll",R)?M="background-attachment:"+R:F("background-color")},rounded:()=>{let e,t=L.indexOf(O);if(i(O)?(e=O,t=9):5===t?e="9999px":t>-1?e=.125*t+"rem":(!R||A[R]||n("t!b",R[0])&&n("r!l",R[1]))&&(e="0.25rem"),e){let r=A[R[0]];!R||!S&&t>-1?M="border-radius:"+e:n("t!b",R)?(P=1,M=`border-${r}-left-radius:${e};border-${r}-right-radius:`+e):n("l!r",R)?(P=1,M=`border-top-${r}-radius:${e};border-bottom-${r}-radius:`+e):(P=2,M=`border-${r}-${A[R[1]]}-radius:`+e)}},border:()=>{let e=A[R];S&&e?o(S)?(P=1,M=`border-${e}-width:${S}px`):i(S)&&(M=`border-${e}-width:`+S):n("solid!dashed!dotted!double!none",R)?M="border-style:"+R:e?(P=1,M=`border-${e}-width:1px`):o(R)?M=`border-width:${R}px`:i(R)?M="border-width:"+R:F("border-color")},opacity:()=>{o(R)&&(M="opacity:"+100/R)},transition:()=>{let e=e=>`-webkit-transition-property:${e};-o-transition-property:${e};transition-property:`+e,t=e=>`-webkit-transition-property:-webkit-${e};transition-property:-webkit-${e};-o-transition-property:${e};transition-property:${e};transition-property:${e},-webkit-${e}`;R?"colors"===R?M=e("background-color,border-color,color,fill,stroke"):"shadow"===R?M=t("box-shadow"):"transform"===R?M=t("transform"):R&&(M=e(R)):(M="-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform",M=M.replace(/S/g,"background-color,border-color,color,fill,stroke,opacity,"))},duration:_,delay:_,ease:()=>{let e=e=>`-webkit-transition-timing-function:${e};-o-transition-timing-function:${e};transition-timing-function:${e}`;"in"===C?M=e("cubic-bezier(0.4,0,1,1)"):"out"===C?M=e("cubic-bezier(0,0,0.2,1)"):"in-out"===C?M=e("cubic-bezier(0.4,0,0.2,1)"):"linear"===C&&(M=e("linear"))},scale:()=>{if(o(O)){let e=O/100;n("x!y",R)?(P=1,M=`--transform-scale-${R}:`+e):M=`--transform-scale-x:${e};--transform-scale-y:`+e}},rotate:()=>{o(R)&&(M=`--transform-rotate:${I}${R}deg`)},translate:()=>{if(n("x!y",R)){if("px"===S)S="1px";else if("full"===S)S="100%";else if(S.includes("/")){let e=S.split("/");2===e.length&&(S=Number(e[0])/Number(e[1])+"%")}i(S)&&(M=`--transform-translate-${R}:`+s(S))}},skew:()=>{n("x!y",R)&&o(S)&&(M=`--transform-skew-${R}:${I+S}deg`)},transform:()=>{let e="translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))";M=`-webkit-transform:${e};-ms-transform:${e};transform:translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))`},origin:()=>{n("center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left",C)&&(C=C.replace("-"," "),M=`-webkit-transform-origin:${C};-ms-transform-origin:${C};transform-origin:`+C)},cursor:()=>{n("auto!default!pointer!wait!text!move!not-allowed",C)&&(M="cursor:"+C)},shadow:()=>{let e=c({xs:"0 0 0 1pxR.05)",sm:"0 1px 2px 0R.05)","":"0 1px 3px 0R.1), 0 1px 2px 0R.06)",md:"0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)",lg:"0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)",xl:"0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)","2xl":"0 25px 50px -12pxR.25)",inner:"inset 0 2px 4px 0R.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"})[R];e&&(e=e.replace(/R/g," rgba(0, 0, 0, 0"),console.log(e),M=`-webkit-box-shadow:${e};box-shadow:`+e)},outline:()=>{R&&(M="outline:"+C.replace("-"," "))},pointer:()=>{R&&(M="pointer-events:"+R)},select:()=>{n("none!auto!text!contain!all!inherit!initial!unset",C)&&(M=`-webkit-user-select:${C};-moz-user-select:${C};-ms-user-select:${C};user-select:`+C)},fill:()=>{R&&(M="fill:"+R)},stroke:()=>{o(R)?M="stroke-width:"+R:R&&(M="stroke:"+R)},items:()=>{n("stretch!start!center!end!baseline",C)&&(M=`-webkit-box-align:${C};-ms-flex-align:${C};align-items:`+(n("start!end",C)?"flex-":"")+C)},content:()=>{if(n("start!center!end!between!around")){let e=C;n("start!end",C)?C="flex-"+C:"between"===C?(e="justify",C="space-"+C):"around"===C&&(e="distribute",C="space-"+C),M=`-ms-flex-line-pack:${e};align-content:`+C}},self:()=>{if(n("auto!start!center!end!stretch",C)){let e=`-ms-grid-row-align:${C};`,t=C;n("start!end",C)&&(C="flex-"+C,e=""),M=`-ms-flex-item-align:${t};${e}align-self:`+C}},justify:()=>{if(n("start!center!end!between!around",C)){let e=C;"between"===e?(e="justify",C="space-"+C):n("start!end")&&(C="flex-"+C);let t=`-webkit-box-pack:${e};`;"around"===e&&(e="distribute",C="space-"+C,t=""),M=t+`-ms-flex-pack:${e};justify-content:`+C}}}),D=/[^:]+::?|.+/g,G=/[.*+\-?^${}()|[\]\\]/g;function Y(){P=0,M="",I="",$=h;let e=d.separator;":"!==e&&(h=h.replace(new RegExp(e.replace(G,"\\$&"),"g"),":")),W=h.match(D),h=W.pop(),W=W.map(e=>e.endsWith("::")?"::"+e.slice(0,-2):":"+e.slice(0,-1));let r=p.get(h);if(r){let[e,o]=r,[i,a]=[$.slice(0,$.lastIndexOf(h)),W];if(t=$,"string"==typeof e)for(h of e.trim().replace(/\s\s+/g," ").split(" "))h=i+h,Y();return W=a,o&&"string"==typeof o&&V(o),void(t="")}if("-"===h[0]&&(I="-",h=h.slice(1)),"string"==typeof d.prefix){if(!h.startsWith(d.prefix))return void K();h=h.slice(d.prefix.length)}let a,l=h.split("-");if([j,R="",S="",N=""]=l,O=l[l.length-1],E=l.slice(0,-1).join("-"),C=l.slice(1).join("-"),!(M=z[h])&&(a=B[j])?a():j.length<3&&!S&&function(){let e;if("px"===R)e=I+"1px";else if("full"===R)e="100%";else if("screen"===R)"w"===j?e="100vw":"h"===j&&(e="100vh");else if("auto"===R)e="auto";else if(o(R))e=I+.25*Number(R)+"rem";else if(R.indexOf("/")>-1){let[t,r]=R.split("/");o(t)&&o(r)&&(e=I+(Number(t)/Number(r)).toFixed(6)+"%")}else i(R)&&(e=I+R);let t=v[j[0]],r=A[j[1]];e&&t&&("x"===j[1]?(P=1,M=t+`-right:${e};${t}-left:`+e):"y"===j[1]?(P=1,M=t+`-top:${e};${t}-bottom:`+e):r?(P=2,M=t+`-${r}:`+e):M=t+":"+e)}(),M)V(M);else if("container"===h){V("width:100%");for(const[e,t]of Object.entries(d.screens))V("max-width:"+t,y.get(`default${e}0`))}else K()}let q=e=>{let t=[];for(let r of[...e.cssRules])if(r.type===CSSRule.STYLE_RULE){if(r.selectorText.split(",").map(e=>e.trim()).includes("."+h)){let o=r.cssText;t.push([o.slice(o.indexOf("{")+1,o.lastIndexOf("}")),e])}}else r.type===CSSRule.MEDIA_RULE&&t.push(...q(r));return t},J=new Map,K=()=>{if(W.length>0){let e=[];for(const t of document.styleSheets)e.push(...q(t));let t=W[0].slice(1);if(d.screens[t]){let r=Object.entries(d.screens);for(let[o,i]of e){let e=J.get(i);if(!e){e=c();for(const[t,o]of r)e[t]=i.cssRules[i.insertRule(`@media(min-width:${o}){}`,i.cssRules.length)];J[i]=e}V(o,e[t])}}else for(let[t,r]of e)V(t,r)}},Q=c({"::placeholder":"::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P".replace(/P/g,"placeholder"),"::selection":":::-moz-selection"});function V(e,r){let o="",i=$,l="default",s="",c=()=>{try{r.insertRule(s+`.${i}${o}{${e}}`,r.cssRules.length)}catch(e){}};if(t&&(i=t,l="custom"),i=i.replace(/[.:()&@~*^$%,#]/g,"\\$&"),d.important&&(!0===d.important?e=e.replace(/;/g,"!important;")+"!important":"string"==typeof d.important&&(s=d.important+" ")),W.length>0){let e=y.get(l+W[0].slice(1)+P);e&&(r=r||e,W.shift())}if(r||(r=y.get(l+P)),W.length>0){for(const e of[...W]){let t=Q[e];t&&W.push(...a(t))}for(o of W)n(":first!:last",o)?o+="-child":n(":odd!:even",o)?o=`:nth-child(${o.slice(1)})`:o.startsWith(":group")&&(i=o.slice(1).replace("-",":")+" ."+i,o=""),c()}else c()}export default e=>{if(!r){r=!0;let e=Object.entries(d.screens);for(const t of a("custom!default")){k(t);for(const[r,o]of e)k(t+r,o)}}if("string"==typeof e&&(e=e.trim(),!f.has(e))){for(h of e.replace(/\s\s+/g," ").split(" "))f.has(h)||(f.set(h,!0),Y());f.set(e,!0)}};export{m as component,u as configure}; +let e,t,r,o=e=>!isNaN(e),i=e=>!isNaN(parseInt(e)),a=e=>e.split("!"),l=(e,t)=>a(e).indexOf(t),n=(e,t)=>a(e).includes(t),s=e=>o(e)?I+.25*Number(e)+"rem":I+e,c=(e={})=>Object.assign(Object.create(null),e),f=new Map,p=new Map,d=c({separator:":",screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),m=(e,t,r)=>{if("string"!=typeof e)throw Error("Component must have a name.");if(e=e.trim(),f.get(e))throw Error(`Class '${e}' was already processed.`);p.set(e,[t,r])},b=e=>"[object Object]"===Object.prototype.toString.call(e),g=e=>{if("string"!=typeof e)throw Error("Hex value is not a hex string.");if(e.startsWith("#")||(e="#"+e),e=4===e.length?e.slice(1).split("").map(e=>e+e).join(""):e.slice(1),!/^[0-9a-f]{6}$/i.test(e))throw Error("Incorrect hex color format.");return e},x=e=>{if(!b(e))throw Error("Config value must be an object.")},w=new Map,u=(e=c())=>{for(let t of a("separator!prefix"))if(void 0!==e[t]&&"string"!=typeof e[t])throw Error(`config.${t} must be a string.`);if(e.screens&&x(e.screens),e.colors){x(e.colors);for(let[t,r]of Object.entries(e.colors))if(b(r))for(let[e,o]of Object.entries(r))w.set(t+"-"+e,g(o));else w.set(t,g(r))}else Object.assign(d,e)};e=0===document.styleSheets.length?document.head.appendChild(document.createElement("style")).sheet:document.styleSheets[0];let h,$,y=new Map,k=(t,r)=>{let o=r?`(min-width:${r})`:"";for(let r=0;r<3;r++)y.set(t+r,e.cssRules[e.insertRule(`@media${o}{}`,e.cssRules.length)])},v=c({p:"padding",m:"margin",h:"height",z:"z-index",w:"width"}),z=c();for(let e of a('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji!font-serif|font-family:Georgia,Cambria,"Times New Roman",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!sticky|position:-webkit-sticky;position:sticky')){let[t,r]=e.split("|");z[t]=r}for(let e of a("float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none"))z[e]=e.replace("-",":");for(let e of a("block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row")){let t=e;"flex"===e?t="-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex":"inline-flex"===e?t="-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex":"grid"===e?t="-ms-grid;display:grid":"inline-grid"===e&&(t="-ms-inline-grid;display:inline-grid"),z[e]="display:"+t}for(let e of a("static!fixed!absolute!relative"))z[e]="position:"+e;let j,R,S,N,O,E,C,I,M,W,P,T=a("f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459"),U=a("gray!red!orange!yellow!green!teal!blue!indigo!purple!pink"),L=a("none!sm!nm!md!lg!full"),A=c({l:"left",r:"right",t:"top",b:"bottom"}),F=e=>{if("opacity"===R&&o(S))M=`--${e}-opacity:`+("100"===S?"1":S/100);else{let t=w.get(C);if(t)S&&b(t)&&(t=t[S]);else if(S){let e=U.indexOf(R);t=T[9*e+(Number(S[0])-1)]}else if(R&&R.startsWith("#"))try{t=g(R)}catch{}if(t){let r=e+`:rgba(${parseInt(t.slice(0,2),16)},${parseInt(t.slice(2,4),16)},${parseInt(t.slice(4,6),16)},var(--${e}-opacity,1))`;M=e+`:#${t};`+r}else M="current"===R?e+":currentColor":e+":"+C}},H=()=>{if(!N&&(n("auto!initial!inherit",O)||i(O))){let e=I+O;S?(P=1,"y"===R?M=`top:${e};bottom:`+e:"x"===R&&(M=`left:${e};right:`+e)):R&&("inset"===j?M=`top:${e};right:${e};bottom:${e};left:`+e:(P=2,M=j+":"+e))}},_=()=>{let e;o(R)?e=R+"ms":i(R)&&(e=R),e&&(M=`-webkit-transition-${j}:${e};-o-transition-${j}:${e};transition-${j}:`+e)},B=c({object:()=>{n("contain!cover!fill!none!bottom",C)?M=`-o-object-fit:${C};object-fit:`+C:n("bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top",C)&&(C=C.replace("-"," "),M=`-o-object-position:${C};object-position:`+C)},overflow:()=>{n("x!y",R)&&(P=1),M=E+":"+O},clearfix:()=>{$="clearfix::after",M='content:"";display:table;clear:both'},text:()=>{let e=l("xs!sm!base!lg!xl",R);if(e>-1)M=`font-size:${.75+.125*e}rem`;else if(R.endsWith("xl")){let[e]=R.split("x");o(e)&&(M=`font-size:${Number(e)-2}rem`)}else n("left!center!right!justify",C)?M="text-align:"+C:F("color")},font:()=>{let e=l("hairline!thin!light!normal!medium!semibold!bold!extrabold!black",R);e>-1?M="font-weight:"+100*(1+e):o(R)&&(M="font-weight:"+R)},whitespace:()=>{n("normal!pre!pre-line!pre-wrap",C)&&(M="white-space:"+C)},inset:H,top:H,right:H,bottom:H,left:H,flex:()=>{let e=(e,t=1,r="0%")=>`-webkit-box-flex:${e};-ms-flex:${e} ${t} ${r};flex:${e} ${t} `+r;if(n("row!row-reverse!col!col-reverse",C))C=C.replace("col","column"),M=`-webkit-box-orient:${"row"===R?"horizontal":"vertical"};-webkit-box-direction:${"reverse"===S?S:"normal"};-ms-flex-direction:${C};flex-direction:${C}`;else if(n("no-wrap!flex-wrap!wrap-reverse",C))"no-wrap"===C&&(C="nowrap"),M=`-ms-flex-wrap:${C};flex-wrap:${C}`;else if(n("grow!shrink",R)){P=1;let e=S||1;M="grow"===R?`-webkit-box-flex:${e};-ms-flex-positive:${e};flex-grow:${e}`:`-ms-flex-negative:${e};flex-shrink:${e}`}else M="initial"===C?e(0,1,"auto"):"auto"===C?e(1,1,"auto"):"none"===C?"-webkit-box-flex:0;-ms-flex:none;flex:none":N?e(R,S,N):S?e(R,S):e(R)},order:()=>{if(o(R)){let e=I+R;M=`-webkit-box-ordinal-group:${Number(e)+1};-ms-flex-order:${e};order:`+e}},grid:()=>{o(S)&&(M=c({cols:`-ms-grid-columns:(minmax(0,1fr))[${S}];grid-template-columns: repeat(${S}, minmax(0, 1fr))`,span:`-ms-grid-column-span:${S};grid-column: span ${S} / span `+S,start:`-ms-grid-column:${S};grid-column-start:`+S,end:`-ms-grid-column-span:${S};grid-column-end:`+S,rows:`-ms-grid-rows:(minmax(0,1fr))[${S}];grid-template-rows: repeat(${S}, minmax(0, 1fr))`})[R])},row:()=>{i(S)&&(M=c({span:`-ms-grid-row-span:${S};grid-row: span ${S} / span ${S}`,start:`-ms-grid-row:${S};grid-row-start:`+S,end:`-ms-grid-row-span:${S};grid-row-end:`+S,gap:"row-gap:"+s(S)})[R])},col:()=>{if(o(S)&&("span"===R?M=`-ms-grid-column-span:${S};grid-column:span ${S} / span ${S};`:"start"===R?M=`-ms-grid-column:${S};grid-column-start:${S}`:"end"===R&&(M=`-ms-grid-column-span:${S};grid-column-end:${S}`)),i(S)&&"gap"===R){let e="px"===S?"1px":s(S);M=`-webkit-column-gap:${e};-moz-column-gap:${e}column-gap:`+e}},gap:()=>{i(R)&&(M="gap:"+s(R))},space:()=>{if(W=[">:not(template)~:not(template)"],"px"===S&&(S="1px"),S)if(i(S)){let e=s(S);"x"===R?M=`margin-right:calc(${e}*var(--space-x-reverse,0));margin-left:calc(${e}*(1 - var(--space-x-reverse,0)))`:"y"===R&&(M=`margin-top:calc(${e}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${e}*var(--space-y-reverse,0))`)}else"reverse"===S&&(M=`--space-${R}-reverse:1`)},divide:()=>{if(W=[">:not(template)~:not(template)"],P=1,!N){let e;o(S)?e=S+"px":i(S)?e=S:"reverse"===S?M=`--divide-${R}-reverse:1`:R&&(e="1px"),e&&("y"===R?M=`border-top-width:calc(${e}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${e}*var(--divide-y-reverse,0)))`:"x"===R&&(M=`border-right-width:calc(${e}*var(--divide-x-reverse,0));border-left-width:calc(${e}*calc(1 - var(--divide-x-reverse,0)))`))}M||F("border-color")},min:()=>{!i(S)||"w"!==R&&"h"!==R||(M=`min-${"w"===R?"width":"height"}:`+S)},max:()=>{if("w"===R){let e=l("xs!sm!md!lg!xl",S);e>-1?M=`max-width:${4*e+20}rem`:i(S)&&(M=S.endsWith("xl")?`max-width:${8*parseInt(S)+24}rem`:"max-width:"+S)}else"h"===R&&i(S)&&(M="max-height:"+S)},tracking:()=>{i(R)&&(M="letter-spacing:"+R)},leading:()=>{o(R)?M=`line-height:${.25*Number(R)}rem`:i(R)&&(M="line-height:"+R)},placeholder:()=>{W.push("::placeholder"),F("color")},align:()=>{n("baseline!top!middle!bottom!text-top!text-bottom",C)&&(M="vertical-align:"+C)},bg:()=>{C=C.replace("-"," "),n("bottom!center!left!left bottom!left top!right!right bottom!right top!top",C)?M="background-position:"+C:n("repeat!no-repeat!repeat-x!repeat-y",C)?M="background-repeat:"+C:n("repeat-round!repeat-space",C)?M="background-repeat:"+S:n("auto!cover!contain",C)?M="background-size:"+C:n("fixed!local!scroll",R)?M="background-attachment:"+R:F("background-color")},rounded:()=>{let e,t=L.indexOf(O);if(i(O)?(e=O,t=9):5===t?e="9999px":t>-1?e=.125*t+"rem":(!R||A[R]||n("t!b",R[0])&&n("r!l",R[1]))&&(e="0.25rem"),e){let r=A[R[0]];!R||!S&&t>-1?M="border-radius:"+e:n("t!b",R)?(P=1,M=`border-${r}-left-radius:${e};border-${r}-right-radius:`+e):n("l!r",R)?(P=1,M=`border-top-${r}-radius:${e};border-bottom-${r}-radius:`+e):(P=2,M=`border-${r}-${A[R[1]]}-radius:`+e)}},border:()=>{let e=A[R];S&&e?o(S)?(P=1,M=`border-${e}-width:${S}px`):i(S)&&(M=`border-${e}-width:`+S):n("solid!dashed!dotted!double!none",R)?M="border-style:"+R:e?(P=1,M=`border-${e}-width:1px`):o(R)?M=`border-width:${R}px`:i(R)?M="border-width:"+R:F("border-color")},opacity:()=>{o(R)&&(M="opacity:"+R/100)},transition:()=>{let e=e=>`-webkit-transition-property:${e};-o-transition-property:${e};transition-property:`+e,t=e=>`-webkit-transition-property:-webkit-${e};transition-property:-webkit-${e};-o-transition-property:${e};transition-property:${e};transition-property:${e},-webkit-${e}`;R?"colors"===R?M=e("background-color,border-color,color,fill,stroke"):"shadow"===R?M=t("box-shadow"):"transform"===R?M=t("transform"):R&&(M=e(R)):(M="-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform",M=M.replace(/S/g,"background-color,border-color,color,fill,stroke,opacity,"))},duration:_,delay:_,ease:()=>{let e=e=>`-webkit-transition-timing-function:${e};-o-transition-timing-function:${e};transition-timing-function:${e}`;"in"===C?M=e("cubic-bezier(0.4,0,1,1)"):"out"===C?M=e("cubic-bezier(0,0,0.2,1)"):"in-out"===C?M=e("cubic-bezier(0.4,0,0.2,1)"):"linear"===C&&(M=e("linear"))},scale:()=>{if(o(O)){let e=O/100;n("x!y",R)?(P=1,M=`--transform-scale-${R}:`+e):M=`--transform-scale-x:${e};--transform-scale-y:`+e}},rotate:()=>{o(R)&&(M=`--transform-rotate:${I}${R}deg`)},translate:()=>{if(n("x!y",R)){if("px"===S)S="1px";else if("full"===S)S="100%";else if(S.includes("/")){let e=S.split("/");2===e.length&&(S=Number(e[0])/Number(e[1])+"%")}i(S)&&(M=`--transform-translate-${R}:`+s(S))}},skew:()=>{n("x!y",R)&&o(S)&&(M=`--transform-skew-${R}:${I+S}deg`)},transform:()=>{let e="translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))";M=`-webkit-transform:${e};-ms-transform:${e};transform:translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))`},origin:()=>{n("center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left",C)&&(C=C.replace("-"," "),M=`-webkit-transform-origin:${C};-ms-transform-origin:${C};transform-origin:`+C)},cursor:()=>{n("auto!default!pointer!wait!text!move!not-allowed",C)&&(M="cursor:"+C)},shadow:()=>{let e=c({xs:"0 0 0 1pxR.05)",sm:"0 1px 2px 0R.05)","":"0 1px 3px 0R.1), 0 1px 2px 0R.06)",md:"0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)",lg:"0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)",xl:"0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)","2xl":"0 25px 50px -12pxR.25)",inner:"inset 0 2px 4px 0R.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"})[R];e&&(e=e.replace(/R/g," rgba(0, 0, 0, 0"),M=`-webkit-box-shadow:${e};box-shadow:`+e)},outline:()=>{R&&(M="outline:"+C.replace("-"," "))},pointer:()=>{R&&(M="pointer-events:"+R)},select:()=>{n("none!auto!text!contain!all!inherit!initial!unset",C)&&(M=`-webkit-user-select:${C};-moz-user-select:${C};-ms-user-select:${C};user-select:`+C)},fill:()=>{R&&(M="fill:"+R)},stroke:()=>{o(R)?M="stroke-width:"+R:R&&(M="stroke:"+R)},items:()=>{n("stretch!start!center!end!baseline",C)&&(M=`-webkit-box-align:${C};-ms-flex-align:${C};align-items:`+(n("start!end",C)?"flex-":"")+C)},content:()=>{if(n("start!center!end!between!around")){let e=C;n("start!end",C)?C="flex-"+C:"between"===C?(e="justify",C="space-"+C):"around"===C&&(e="distribute",C="space-"+C),M=`-ms-flex-line-pack:${e};align-content:`+C}},self:()=>{if(n("auto!start!center!end!stretch",C)){let e=`-ms-grid-row-align:${C};`,t=C;n("start!end",C)&&(C="flex-"+C,e=""),M=`-ms-flex-item-align:${t};${e}align-self:`+C}},justify:()=>{if(n("start!center!end!between!around",C)){let e=C;"between"===e?(e="justify",C="space-"+C):n("start!end")&&(C="flex-"+C);let t=`-webkit-box-pack:${e};`;"around"===e&&(e="distribute",C="space-"+C,t=""),M=t+`-ms-flex-pack:${e};justify-content:`+C}}}),D=/[^:]+::?|.+/g,G=/[.*+\-?^${}()|[\]\\]/g;function Y(){P=0,M="",I="",$=h;let e=d.separator;":"!==e&&(h=h.replace(new RegExp(e.replace(G,"\\$&"),"g"),":")),W=h.match(D),h=W.pop(),W=W.map(e=>e.endsWith("::")?"::"+e.slice(0,-2):":"+e.slice(0,-1));let r=p.get(h);if(r){let[e,o]=r,[i,a]=[$.slice(0,$.lastIndexOf(h)),W];if(t=$,"string"==typeof e)for(h of e.trim().replace(/\s\s+/g," ").split(" "))h=i+h,Y();return W=a,o&&"string"==typeof o&&V(o),void(t="")}if("-"===h[0]&&(I="-",h=h.slice(1)),"string"==typeof d.prefix){if(!h.startsWith(d.prefix))return void K();h=h.slice(d.prefix.length)}let a,l=h.split("-");if([j,R="",S="",N=""]=l,O=l[l.length-1],E=l.slice(0,-1).join("-"),C=l.slice(1).join("-"),!(M=z[h])&&(a=B[j])?a():j.length<3&&!S&&function(){let e;if("px"===R)e=I+"1px";else if("full"===R)e="100%";else if("screen"===R)"w"===j?e="100vw":"h"===j&&(e="100vh");else if("auto"===R)e="auto";else if(o(R))e=I+.25*Number(R)+"rem";else if(R.indexOf("/")>-1){let[t,r]=R.split("/");o(t)&&o(r)&&(e=I+(Number(t)/Number(r)).toFixed(6)+"%")}else i(R)&&(e=I+R);let t=v[j[0]],r=A[j[1]];e&&t&&("x"===j[1]?(P=1,M=t+`-right:${e};${t}-left:`+e):"y"===j[1]?(P=1,M=t+`-top:${e};${t}-bottom:`+e):r?(P=2,M=t+`-${r}:`+e):M=t+":"+e)}(),M)V(M);else if("container"===h){V("width:100%");for(const[e,t]of Object.entries(d.screens))V("max-width:"+t,y.get(`default${e}0`))}else K()}let q=e=>{let t=[];for(let r of[...e.cssRules])if(r.type===CSSRule.STYLE_RULE){if(r.selectorText.split(",").map(e=>e.trim()).includes("."+h)){let o=r.cssText;t.push([o.slice(o.indexOf("{")+1,o.lastIndexOf("}")),e])}}else r.type===CSSRule.MEDIA_RULE&&t.push(...q(r));return t},J=new Map,K=()=>{if(W.length>0){let e=[];for(const t of document.styleSheets)e.push(...q(t));let t=W[0].slice(1);if(d.screens[t]){let r=Object.entries(d.screens);for(let[o,i]of e){let e=J.get(i);if(!e){e=c();for(const[t,o]of r)e[t]=i.cssRules[i.insertRule(`@media(min-width:${o}){}`,i.cssRules.length)];J[i]=e}V(o,e[t])}}else for(let[t,r]of e)V(t,r)}},Q=c({"::placeholder":"::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P".replace(/P/g,"placeholder"),"::selection":":::-moz-selection"});function V(e,r){let o="",i=$,l="default",s="",c=()=>{try{r.insertRule(s+`.${i}${o}{${e}}`,r.cssRules.length)}catch(e){}};if(t&&(i=t,l="custom"),i=i.replace(/[.:()&@~*^$%,#]/g,"\\$&"),d.important&&(!0===d.important?e=e.replace(/;/g,"!important;")+"!important":"string"==typeof d.important&&(s=d.important+" ")),W.length>0){let e=y.get(l+W[0].slice(1)+P);e&&(r=r||e,W.shift())}if(r||(r=y.get(l+P)),W.length>0){for(const e of[...W]){let t=Q[e];t&&W.push(...a(t))}for(o of W)n(":first!:last",o)?o+="-child":n(":odd!:even",o)?o=`:nth-child(${o.slice(1)})`:o.startsWith(":group")&&(i=o.slice(1).replace("-",":")+" ."+i,o=""),c()}else c()}export default e=>{if(!r){r=!0;let e=Object.entries(d.screens);for(const t of a("custom!default")){k(t);for(const[r,o]of e)k(t+r,o)}}if("string"==typeof e&&(e=e.trim(),!f.has(e))){for(h of e.replace(/\s\s+/g," ").split(" "))f.has(h)||(f.set(h,!0),Y());f.set(e,!0)}};export{m as component,u as configure}; //# sourceMappingURL=runcss.modern.js.map diff --git a/dist/runcss.modern.js.map b/dist/runcss.modern.js.map index d1cbabd..aca388d 100644 --- a/dist/runcss.modern.js.map +++ b/dist/runcss.modern.js.map @@ -1 +1 @@ -{"version":3,"file":"runcss.modern.js","sources":["../src/runcss.js"],"sourcesContent":["/* eslint-disable prefer-const */\r\n\r\nlet isNum = (v) => !isNaN(v)\r\nlet isStartNum = (v) => !isNaN(parseInt(v))\r\nlet split = (s) => s.split('!')\r\nlet indexOf = (s, v) => split(s).indexOf(v)\r\nlet includes = (s, v) => split(s).includes(v)\r\nlet ifRemTo = (v) => isNum(v) ? negative + Number(v) * 0.25 + 'rem' : negative + v\r\nlet newObject = (o = {}) => Object.assign(Object.create(null), o)\r\nlet classesCache = new Map()\r\nlet customCache = new Map()\r\nlet parentSheet\r\nlet config = newObject({ separator: ':', screens: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px' } })\r\nlet componentName\r\nlet addedScreens\r\n\r\nexport let component = (name, classes, props) => {\r\n if (typeof name !== 'string') {\r\n throw Error('Component must have a name.')\r\n }\r\n name = name.trim()\r\n if (classesCache.get(name)) {\r\n throw Error(`Class '${name}' was already processed.`)\r\n }\r\n customCache.set(name, [classes, props])\r\n}\r\n\r\nlet isObject = value => Object.prototype.toString.call(value) === '[object Object]'\r\nlet hex6 = value => {\r\n if (typeof value !== 'string') {\r\n throw Error('Hex value is not a hex string.')\r\n }\r\n if (!value.startsWith('#')) {\r\n value = '#' + value\r\n }\r\n value = value.length === 4 ? value.slice(1).split('').map((v) => v + v).join('') : value.slice(1)\r\n if (!/^[0-9a-f]{6}$/i.test(value)) {\r\n throw Error('Incorrect hex color format.')\r\n }\r\n return value\r\n}\r\n\r\nlet errorNotObject = value => {\r\n if (!isObject(value)) {\r\n throw Error('Config value must be an object.')\r\n }\r\n}\r\n\r\nlet customColors = new Map()\r\n\r\nexport let configure = (conf = newObject()) => {\r\n for (let s of split('separator!prefix')) {\r\n if (conf[s] !== undefined && typeof conf[s] !== 'string') {\r\n throw Error(`config.${s} must be a string.`)\r\n }\r\n }\r\n if (conf.screens) {\r\n errorNotObject(conf.screens)\r\n }\r\n if (conf.colors) {\r\n errorNotObject(conf.colors)\r\n for (let [key1, value1] of Object.entries(conf.colors)) {\r\n if (isObject(value1)) {\r\n for (let [key2, value2] of Object.entries(value1)) {\r\n customColors.set(key1 + '-' + key2, hex6(value2))\r\n }\r\n } else {\r\n customColors.set(key1, hex6(value1))\r\n }\r\n }\r\n } else {\r\n Object.assign(config, conf)\r\n }\r\n}\r\n\r\nif (document.styleSheets.length === 0) {\r\n parentSheet = document.head.appendChild(document.createElement('style')).sheet\r\n} else {\r\n parentSheet = document.styleSheets[0]\r\n}\r\n\r\nlet media = new Map()\r\nlet setMedia = (prefix, size) => {\r\n let condition = size ? `(min-width:${size})` : ''\r\n for (let i = 0; i < 3; i++) {\r\n media.set(prefix + i, parentSheet.cssRules[parentSheet.insertRule(`@media${condition}{}`, parentSheet.cssRules.length)])\r\n }\r\n}\r\n\r\nlet cls\r\nlet originalClass\r\n\r\nlet processClasses = (classes) => {\r\n if (!addedScreens) {\r\n addedScreens = true\r\n let entries = Object.entries(config.screens)\r\n for (const m of split('custom!default')) {\r\n setMedia(m)\r\n for (const [key, size] of entries) {\r\n setMedia(m + key, size)\r\n }\r\n }\r\n }\r\n if (typeof classes === 'string') {\r\n classes = classes.trim()\r\n if (!classesCache.has(classes)) {\r\n for (cls of classes.replace(/\\s\\s+/g, ' ').split(' ')) {\r\n if (classesCache.has(cls)) {\r\n continue\r\n }\r\n classesCache.set(cls, true)\r\n processClass()\r\n }\r\n classesCache.set(classes, true)\r\n }\r\n }\r\n}\r\nexport default processClasses\r\n\r\nlet formatters = newObject({\r\n p: 'padding',\r\n m: 'margin',\r\n h: 'height',\r\n z: 'z-index',\r\n w: 'width'\r\n})\r\n\r\nlet classNames = newObject()\r\n\r\n// direct map from class to values\r\nfor (let c of split('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji!font-serif|font-family:Georgia,Cambria,\"Times New Roman\",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace!sticky|position:-webkit-sticky;position:sticky')) {\r\n let [k, v] = c.split('|')\r\n classNames[k] = v\r\n}\r\n\r\n// class to value\r\nfor (let c of split('float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none')) {\r\n classNames[c] = c.replace('-', ':')\r\n}\r\n\r\n// display\r\nfor (let c of split('block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row')) {\r\n let p = c\r\n if (c === 'flex') {\r\n p = '-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex'\r\n } else if (c === 'inline-flex') {\r\n p = '-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex'\r\n } else if (c === 'grid') {\r\n p = '-ms-grid;display:grid'\r\n } else if (c === 'inline-grid') {\r\n p = '-ms-inline-grid;display:inline-grid'\r\n }\r\n classNames[c] = 'display:' + p\r\n}\r\n\r\n// position\r\nfor (let c of split('static!fixed!absolute!relative')) {\r\n classNames[c] = 'position:' + c\r\n}\r\n\r\nlet colors = split('f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459')\r\n\r\nlet colorNames = split('gray!red!orange!yellow!green!teal!blue!indigo!purple!pink')\r\n\r\nlet roundedSize = split('none!sm!nm!md!lg!full')\r\n\r\nlet edge = newObject({ l: 'left', r: 'right', t: 'top', b: 'bottom' })\r\n\r\nlet setColor = (type) => {\r\n if (secondPart === 'opacity' && isNum(thirdPart)) {\r\n rule = `--${type}-opacity:` + (thirdPart === '100' ? '1' : thirdPart / 100)\r\n } else {\r\n let color = customColors.get(rest)\r\n if (color) {\r\n if (thirdPart && isObject(color)) {\r\n color = color[thirdPart]\r\n }\r\n } else {\r\n if (thirdPart) {\r\n let colorPos = colorNames.indexOf(secondPart)\r\n color = colors[colorPos * 9 + (Number(thirdPart[0]) - 1)]\r\n } else if (secondPart && secondPart.startsWith('#')) {\r\n try {\r\n color = hex6(secondPart)\r\n } catch {}\r\n }\r\n }\r\n if (color) {\r\n let rgba = type + `:rgba(${parseInt(color.slice(0, 2), 16)},${parseInt(color.slice(2, 4), 16)},${parseInt(color.slice(4, 6), 16)},var(--${type}-opacity,1))`\r\n rule = type + `:#${color};` + rgba\r\n } else if (secondPart === 'current') {\r\n rule = type + ':' + 'currentColor'\r\n } else {\r\n rule = type + ':' + rest\r\n // console.log(rule)\r\n }\r\n }\r\n}\r\n\r\nlet setPosition = () => {\r\n if (!fourthPart && (includes('auto!initial!inherit', lastPart) || isStartNum(lastPart))) {\r\n let v = negative + lastPart\r\n if (thirdPart) {\r\n sheetLevel = 1\r\n if (secondPart === 'y') {\r\n rule = `top:${v};bottom:` + v\r\n } else if (secondPart === 'x') {\r\n rule = `left:${v};right:` + v\r\n }\r\n } else if (secondPart) {\r\n if (firstPart === 'inset') {\r\n rule = `top:${v};right:${v};bottom:${v};left:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = firstPart + ':' + v\r\n }\r\n }\r\n }\r\n}\r\n\r\nlet timeProp = () => {\r\n let v\r\n if (isNum(secondPart)) {\r\n v = secondPart + 'ms'\r\n } else if (isStartNum(secondPart)) {\r\n v = secondPart\r\n }\r\n if (v) {\r\n rule = `-webkit-transition-${firstPart}:${v};-o-transition-${firstPart}:${v};transition-${firstPart}:` + v\r\n }\r\n}\r\n\r\nlet cls2process = newObject({\r\n object: () => {\r\n if (includes('contain!cover!fill!none!bottom', rest)) {\r\n rule = `-o-object-fit:${rest};object-fit:` + rest\r\n } else if (includes('bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-o-object-position:${rest};object-position:` + rest\r\n }\r\n },\r\n overflow: () => {\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n }\r\n rule = partsWithoutEnd + ':' + lastPart\r\n },\r\n clearfix: () => {\r\n originalClass = 'clearfix::after'\r\n rule = 'content:\"\";display:table;clear:both'\r\n },\r\n text: () => {\r\n let pos = indexOf('xs!sm!base!lg!xl', secondPart)\r\n if (pos > -1) {\r\n rule = `font-size:${0.75 + (0.125 * pos)}rem`\r\n } else if (secondPart.endsWith('xl')) {\r\n let [num] = secondPart.split('x')\r\n if (isNum(num)) {\r\n rule = `font-size:${Number(num) - 2}rem`\r\n }\r\n } else if (includes('left!center!right!justify', rest)) {\r\n rule = 'text-align:' + rest\r\n } else {\r\n setColor('color')\r\n }\r\n },\r\n font: () => {\r\n let pos = indexOf('hairline!thin!light!normal!medium!semibold!bold!extrabold!black', secondPart)\r\n if (pos > -1) {\r\n rule = 'font-weight:' + (100 * (1 + pos))\r\n } else if (isNum(secondPart)) {\r\n rule = 'font-weight:' + secondPart\r\n }\r\n },\r\n whitespace: () => {\r\n if (includes('normal!pre!pre-line!pre-wrap', rest)) {\r\n rule = 'white-space:' + rest\r\n }\r\n },\r\n inset: setPosition,\r\n top: setPosition,\r\n right: setPosition,\r\n bottom: setPosition,\r\n left: setPosition,\r\n flex: () => {\r\n let ruleFunc = (v1, v2 = 1, v3 = '0%') => `-webkit-box-flex:${v1};-ms-flex:${v1} ${v2} ${v3};flex:${v1} ${v2} ` + v3\r\n if (includes('row!row-reverse!col!col-reverse', rest)) {\r\n rest = rest.replace('col', 'column')\r\n rule = `-webkit-box-orient:${secondPart === 'row' ? 'horizontal' : 'vertical'};-webkit-box-direction:${thirdPart === 'reverse' ? thirdPart : 'normal'};-ms-flex-direction:${rest};flex-direction:${rest}`\r\n } else if (includes('no-wrap!flex-wrap!wrap-reverse', rest)) {\r\n if (rest === 'no-wrap') {\r\n rest = 'nowrap'\r\n }\r\n rule = `-ms-flex-wrap:${rest};flex-wrap:${rest}`\r\n } else if (includes('grow!shrink', secondPart)) {\r\n sheetLevel = 1\r\n let v = thirdPart || 1\r\n if (secondPart === 'grow') {\r\n rule = `-webkit-box-flex:${v};-ms-flex-positive:${v};flex-grow:${v}`\r\n } else {\r\n rule = `-ms-flex-negative:${v};flex-shrink:${v}`\r\n }\r\n } else if (rest === 'initial') {\r\n rule = ruleFunc(0, 1, 'auto')\r\n } else if (rest === 'auto') {\r\n rule = ruleFunc(1, 1, 'auto')\r\n } else if (rest === 'none') {\r\n rule = '-webkit-box-flex:0;-ms-flex:none;flex:none'\r\n } else if (fourthPart) {\r\n rule = ruleFunc(secondPart, thirdPart, fourthPart)\r\n } else if (thirdPart) {\r\n rule = ruleFunc(secondPart, thirdPart)\r\n } else {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n order: () => {\r\n if (isNum(secondPart)) {\r\n let num = negative + secondPart\r\n rule = `-webkit-box-ordinal-group:${Number(num) + 1};-ms-flex-order:${num};order:` + num\r\n }\r\n },\r\n grid: () => {\r\n if (isNum(thirdPart)) {\r\n rule = newObject({\r\n cols: `-ms-grid-columns:(minmax(0,1fr))[${thirdPart}];grid-template-columns: repeat(${thirdPart}, minmax(0, 1fr))`,\r\n span: `-ms-grid-column-span:${thirdPart};grid-column: span ${thirdPart} / span ` + thirdPart,\r\n start: `-ms-grid-column:${thirdPart};grid-column-start:` + thirdPart,\r\n end: `-ms-grid-column-span:${thirdPart};grid-column-end:` + thirdPart,\r\n rows: `-ms-grid-rows:(minmax(0,1fr))[${thirdPart}];grid-template-rows: repeat(${thirdPart}, minmax(0, 1fr))`\r\n })[secondPart]\r\n }\r\n },\r\n row: () => {\r\n if (isStartNum(thirdPart)) {\r\n rule = newObject({\r\n span: `-ms-grid-row-span:${thirdPart};grid-row: span ${thirdPart} / span ${thirdPart}`,\r\n start: `-ms-grid-row:${thirdPart};grid-row-start:` + thirdPart,\r\n end: `-ms-grid-row-span:${thirdPart};grid-row-end:` + thirdPart,\r\n gap: 'row-gap:' + ifRemTo(thirdPart)\r\n })[secondPart]\r\n }\r\n },\r\n col: () => {\r\n if (isNum(thirdPart)) {\r\n if (secondPart === 'span') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column:span ${thirdPart} / span ${thirdPart};`\r\n } else if (secondPart === 'start') {\r\n rule = `-ms-grid-column:${thirdPart};grid-column-start:${thirdPart}`\r\n } else if (secondPart === 'end') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column-end:${thirdPart}`\r\n }\r\n }\r\n if (isStartNum(thirdPart) && secondPart === 'gap') {\r\n let v = thirdPart === 'px' ? '1px' : ifRemTo(thirdPart)\r\n rule = `-webkit-column-gap:${v};-moz-column-gap:${v}column-gap:` + v\r\n }\r\n },\r\n gap: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'gap:' + ifRemTo(secondPart)\r\n }\r\n },\r\n space: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n }\r\n if (thirdPart) {\r\n if (isStartNum(thirdPart)) {\r\n let v = ifRemTo(thirdPart)\r\n if (secondPart === 'x') {\r\n rule = `margin-right:calc(${v}*var(--space-x-reverse,0));margin-left:calc(${v}*(1 - var(--space-x-reverse,0)))`\r\n } else if (secondPart === 'y') {\r\n rule = `margin-top:calc(${v}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${v}*var(--space-y-reverse,0))`\r\n }\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--space-${secondPart}-reverse:1`\r\n }\r\n }\r\n },\r\n divide: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n sheetLevel = 1\r\n if (!fourthPart) {\r\n let v\r\n if (isNum(thirdPart)) {\r\n v = thirdPart + 'px'\r\n } else if (isStartNum(thirdPart)) {\r\n v = thirdPart\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--divide-${secondPart}-reverse:1`\r\n } else if (secondPart) {\r\n v = '1px'\r\n }\r\n\r\n if (v) {\r\n if (secondPart === 'y') {\r\n rule = `border-top-width:calc(${v}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${v}*var(--divide-y-reverse,0)))`\r\n } else if (secondPart === 'x') {\r\n rule = `border-right-width:calc(${v}*var(--divide-x-reverse,0));border-left-width:calc(${v}*calc(1 - var(--divide-x-reverse,0)))`\r\n }\r\n }\r\n }\r\n if (!rule) {\r\n setColor('border-color')\r\n }\r\n },\r\n min: () => {\r\n if (isStartNum(thirdPart)) {\r\n if (secondPart === 'w' || secondPart === 'h') {\r\n let p = secondPart === 'w' ? 'width' : 'height'\r\n rule = `min-${p}:` + thirdPart\r\n }\r\n }\r\n },\r\n max: () => {\r\n if (secondPart === 'w') {\r\n let pos = indexOf('xs!sm!md!lg!xl', thirdPart)\r\n if (pos > -1) {\r\n rule = `max-width:${pos * 4 + 20}rem`\r\n } else if (isStartNum(thirdPart)) {\r\n if (thirdPart.endsWith('xl')) {\r\n rule = `max-width:${parseInt(thirdPart) * 8 + 24}rem`\r\n } else {\r\n rule = 'max-width:' + thirdPart\r\n }\r\n }\r\n } else if (secondPart === 'h' && isStartNum(thirdPart)) {\r\n rule = 'max-height:' + thirdPart\r\n }\r\n },\r\n tracking: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'letter-spacing:' + secondPart\r\n }\r\n },\r\n leading: () => {\r\n if (isNum(secondPart)) {\r\n rule = `line-height:${Number(secondPart) * 0.25}rem`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'line-height:' + secondPart\r\n }\r\n },\r\n placeholder: () => {\r\n pseudos.push('::placeholder')\r\n setColor('color')\r\n },\r\n align: () => {\r\n if (includes('baseline!top!middle!bottom!text-top!text-bottom', rest)) {\r\n rule = 'vertical-align:' + rest\r\n }\r\n },\r\n bg: () => {\r\n rest = rest.replace('-', ' ')\r\n if (includes('bottom!center!left!left bottom!left top!right!right bottom!right top!top', rest)) {\r\n rule = 'background-position:' + rest\r\n } else if (includes('repeat!no-repeat!repeat-x!repeat-y', rest)) {\r\n rule = 'background-repeat:' + rest\r\n } else if (includes('repeat-round!repeat-space', rest)) {\r\n rule = 'background-repeat:' + thirdPart\r\n } else if (includes('auto!cover!contain', rest)) {\r\n rule = 'background-size:' + rest\r\n } else if (includes('fixed!local!scroll', secondPart)) {\r\n rule = 'background-attachment:' + secondPart\r\n } else {\r\n setColor('background-color')\r\n }\r\n },\r\n rounded: () => {\r\n let v\r\n let pos = roundedSize.indexOf(lastPart)\r\n if (isStartNum(lastPart)) {\r\n v = lastPart\r\n pos = 9\r\n } else if (pos === 5) {\r\n v = '9999px'\r\n } else if (pos > -1) {\r\n v = pos * 0.125 + 'rem'\r\n } else if (!secondPart || edge[secondPart] || (includes('t!b', secondPart[0]) && includes('r!l', secondPart[1]))) {\r\n v = '0.25rem'\r\n }\r\n if (v) {\r\n let place1 = edge[secondPart[0]]\r\n if (!secondPart || (!thirdPart && pos > -1)) {\r\n rule = 'border-radius:' + v\r\n } else if (includes('t!b', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-${place1}-left-radius:${v};border-${place1}-right-radius:` + v\r\n } else if (includes('l!r', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-top-${place1}-radius:${v};border-bottom-${place1}-radius:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = `border-${place1}-${edge[secondPart[1]]}-radius:` + v\r\n }\r\n }\r\n },\r\n border: () => {\r\n let b = edge[secondPart]\r\n if (thirdPart && b) {\r\n if (isNum(thirdPart)) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:${thirdPart}px`\r\n } else if (isStartNum(thirdPart)) {\r\n rule = `border-${b}-width:` + thirdPart\r\n }\r\n } else {\r\n if (includes('solid!dashed!dotted!double!none', secondPart)) {\r\n rule = 'border-style:' + secondPart\r\n } else if (b) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:1px`\r\n } else if (isNum(secondPart)) {\r\n rule = `border-width:${secondPart}px`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'border-width:' + secondPart\r\n } else {\r\n setColor('border-color')\r\n }\r\n }\r\n },\r\n opacity: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'opacity:' + 100 / secondPart\r\n }\r\n },\r\n transition: () => {\r\n let ruleFunc = (value) => `-webkit-transition-property:${value};-o-transition-property:${value};transition-property:` + value\r\n let ruleFunc2 = (value) => `-webkit-transition-property:-webkit-${value};transition-property:-webkit-${value};-o-transition-property:${value};transition-property:${value};transition-property:${value},-webkit-${value}`\r\n if (!secondPart) {\r\n rule = '-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform'\r\n rule = rule.replace(/S/g, 'background-color,border-color,color,fill,stroke,opacity,')\r\n } else if (secondPart === 'colors') {\r\n rule = ruleFunc('background-color,border-color,color,fill,stroke')\r\n } else if (secondPart === 'shadow') {\r\n rule = ruleFunc2('box-shadow')\r\n } else if (secondPart === 'transform') {\r\n rule = ruleFunc2('transform')\r\n } else if (secondPart) {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n duration: timeProp,\r\n delay: timeProp,\r\n ease: () => {\r\n let ruleFunc = (value) => `-webkit-transition-timing-function:${value};-o-transition-timing-function:${value};transition-timing-function:${value}`\r\n if (rest === 'in') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,1,1)')\r\n } else if (rest === 'out') {\r\n rule = ruleFunc('cubic-bezier(0,0,0.2,1)')\r\n } else if (rest === 'in-out') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,0.2,1)')\r\n } else if (rest === 'linear') {\r\n rule = ruleFunc('linear')\r\n }\r\n },\r\n scale: () => {\r\n if (isNum(lastPart)) {\r\n let v = lastPart / 100\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n rule = `--transform-scale-${secondPart}:` + v\r\n } else {\r\n rule = `--transform-scale-x:${v};--transform-scale-y:` + v\r\n }\r\n }\r\n },\r\n rotate: () => {\r\n if (isNum(secondPart)) {\r\n rule = `--transform-rotate:${negative}${secondPart}deg`\r\n }\r\n },\r\n translate: () => {\r\n if (includes('x!y', secondPart)) {\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n } else if (thirdPart === 'full') {\r\n thirdPart = '100%'\r\n } else if (thirdPart.includes('/')) {\r\n let fractions = thirdPart.split('/')\r\n if (fractions.length === 2) {\r\n thirdPart = Number(fractions[0]) / Number(fractions[1]) + '%'\r\n }\r\n }\r\n if (isStartNum(thirdPart)) {\r\n rule = `--transform-translate-${secondPart}:` + ifRemTo(thirdPart)\r\n }\r\n }\r\n },\r\n skew: () => {\r\n if (includes('x!y', secondPart) && isNum(thirdPart)) {\r\n rule = `--transform-skew-${secondPart}:${negative + thirdPart}deg`\r\n }\r\n },\r\n transform: () => {\r\n let v = 'translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))'\r\n rule = `-webkit-transform:${v};-ms-transform:${v};transform:` + v\r\n },\r\n origin: () => {\r\n if (includes('center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-webkit-transform-origin:${rest};-ms-transform-origin:${rest};transform-origin:` + rest\r\n }\r\n },\r\n cursor: () => {\r\n if (includes('auto!default!pointer!wait!text!move!not-allowed', rest)) {\r\n rule = 'cursor:' + rest\r\n }\r\n },\r\n shadow: () => {\r\n let shadows = newObject({\r\n xs: '0 0 0 1pxR.05)',\r\n sm: '0 1px 2px 0R.05)',\r\n '': '0 1px 3px 0R.1), 0 1px 2px 0R.06)',\r\n md: '0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)',\r\n lg: '0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)',\r\n xl: '0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)',\r\n '2xl': '0 25px 50px -12pxR.25)',\r\n inner: 'inset 0 2px 4px 0R.06)',\r\n outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',\r\n none: 'none'\r\n })\r\n let v = shadows[secondPart]\r\n if (v) {\r\n v = v.replace(/R/g, ' rgba(0, 0, 0, 0')\r\n console.log(v)\r\n rule = `-webkit-box-shadow:${v};box-shadow:` + v\r\n }\r\n },\r\n outline: () => {\r\n if (secondPart) {\r\n rule = 'outline:' + rest.replace('-', ' ')\r\n }\r\n },\r\n pointer: () => {\r\n if (secondPart) {\r\n rule = 'pointer-events:' + secondPart\r\n }\r\n },\r\n select: () => {\r\n if (includes('none!auto!text!contain!all!inherit!initial!unset', rest)) {\r\n rule = `-webkit-user-select:${rest};-moz-user-select:${rest};-ms-user-select:${rest};user-select:` + rest\r\n }\r\n },\r\n fill: () => {\r\n if (secondPart) {\r\n rule = 'fill:' + secondPart\r\n }\r\n },\r\n stroke: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'stroke-width:' + secondPart\r\n } else if (secondPart) {\r\n rule = 'stroke:' + secondPart\r\n }\r\n },\r\n items: () => {\r\n if (includes('stretch!start!center!end!baseline', rest)) {\r\n rule = `-webkit-box-align:${rest};-ms-flex-align:${rest};align-items:` + (includes('start!end', rest) ? 'flex-' : '') + rest\r\n }\r\n },\r\n content: () => {\r\n if (includes('start!center!end!between!around')) {\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n } else if (rest === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (rest === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n }\r\n\r\n rule = `-ms-flex-line-pack:${v};align-content:` + rest\r\n }\r\n },\r\n self: () => {\r\n if (includes('auto!start!center!end!stretch', rest)) {\r\n let gridRowAlign = `-ms-grid-row-align:${rest};`\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n gridRowAlign = ''\r\n }\r\n rule = `-ms-flex-item-align:${v};${gridRowAlign}align-self:` + rest\r\n }\r\n },\r\n justify: () => {\r\n if (includes('start!center!end!between!around', rest)) {\r\n let v = rest\r\n if (v === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (includes('start!end')) {\r\n rest = 'flex-' + rest\r\n }\r\n let webkit = `-webkit-box-pack:${v};`\r\n if (v === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n webkit = ''\r\n }\r\n rule = webkit + `-ms-flex-pack:${v};justify-content:` + rest\r\n }\r\n }\r\n})\r\n\r\nlet firstPart // first part\r\nlet secondPart // second part\r\nlet thirdPart // third part\r\nlet fourthPart\r\nlet lastPart // last part\r\nlet partsWithoutEnd // without end\r\nlet rest\r\nlet negative\r\nlet rule\r\nlet pseudos\r\nlet pseudosRegex = /[^:]+::?|.+/g\r\nlet specialChars = /[.*+\\-?^${}()|[\\]\\\\]/g\r\nlet sheetLevel\r\n\r\nfunction processClass () {\r\n sheetLevel = 0\r\n rule = ''\r\n negative = ''\r\n originalClass = cls\r\n let separator = config.separator\r\n if (separator !== ':') {\r\n cls = cls.replace(new RegExp(separator.replace(specialChars, '\\\\$&'), 'g'), ':')\r\n }\r\n pseudos = cls.match(pseudosRegex)\r\n cls = pseudos.pop()\r\n pseudos = pseudos.map(v => v.endsWith('::') ? '::' + v.slice(0, -2) : ':' + v.slice(0, -1))\r\n let customData = customCache.get(cls)\r\n if (customData) {\r\n let [classes, props] = customData\r\n let [pseudosStr, originalPseudos] = [originalClass.slice(0, originalClass.lastIndexOf(cls)), pseudos]\r\n componentName = originalClass\r\n if (typeof classes === 'string') {\r\n for (cls of classes.trim().replace(/\\s\\s+/g, ' ').split(' ')) {\r\n cls = pseudosStr + cls\r\n processClass()\r\n }\r\n }\r\n pseudos = originalPseudos\r\n if (props && typeof props === 'string') {\r\n setRule(props)\r\n }\r\n componentName = ''\r\n return\r\n }\r\n\r\n if (cls[0] === '-') {\r\n negative = '-'\r\n cls = cls.slice(1)\r\n }\r\n\r\n if (typeof config.prefix === 'string') {\r\n if (!cls.startsWith(config.prefix)) {\r\n notFound()\r\n return\r\n } else {\r\n cls = cls.slice(config.prefix.length)\r\n }\r\n }\r\n let parts = cls.split('-')\r\n ;[firstPart, secondPart = '', thirdPart = '', fourthPart = ''] = parts\r\n lastPart = parts[parts.length - 1]\r\n partsWithoutEnd = parts.slice(0, -1).join('-')\r\n rest = parts.slice(1).join('-')\r\n\r\n let process\r\n if (!(rule = classNames[cls]) && (process = cls2process[firstPart])) {\r\n process()\r\n } else if (firstPart.length < 3 && !thirdPart) {\r\n formatClass()\r\n }\r\n\r\n if (rule) {\r\n setRule(rule)\r\n } else if (cls === 'container') {\r\n setRule('width:100%')\r\n for (const [r, size] of Object.entries(config.screens)) {\r\n setRule('max-width:' + size, media.get(`default${r}0`))\r\n }\r\n } else {\r\n notFound()\r\n }\r\n}\r\n\r\nfunction formatClass () {\r\n let v\r\n if (secondPart === 'px') {\r\n v = `${negative}1px`\r\n } else if (secondPart === 'full') {\r\n v = '100%'\r\n } else if (secondPart === 'screen') {\r\n if (firstPart === 'w') {\r\n v = '100vw'\r\n } else if (firstPart === 'h') {\r\n v = '100vh'\r\n }\r\n } else if (secondPart === 'auto') {\r\n v = 'auto'\r\n } else if (isNum(secondPart)) {\r\n v = negative + Number(secondPart) * 0.25 + 'rem'\r\n } else if (secondPart.indexOf('/') > -1) {\r\n let [top, bottom] = secondPart.split('/')\r\n if (isNum(top) && isNum(bottom)) {\r\n v = negative + (Number(top) / Number(bottom)).toFixed(6) + '%'\r\n }\r\n } else if (isStartNum(secondPart)) {\r\n v = negative + secondPart\r\n }\r\n\r\n let basicPart = formatters[firstPart[0]]\r\n let e = edge[firstPart[1]]\r\n if (v && basicPart) {\r\n if (firstPart[1] === 'x') {\r\n sheetLevel = 1\r\n rule = basicPart + `-right:${v};${basicPart}-left:` + v\r\n } else if (firstPart[1] === 'y') {\r\n sheetLevel = 1\r\n rule = basicPart + `-top:${v};${basicPart}-bottom:` + v\r\n } else if (e) {\r\n sheetLevel = 2\r\n rule = basicPart + `-${e}:` + v\r\n } else {\r\n rule = basicPart + ':' + v\r\n }\r\n }\r\n}\r\n\r\nlet findInSheet = (sheet) => {\r\n let rules = []\r\n for (let rule of [...sheet.cssRules]) {\r\n // eslint-disable-next-line no-undef\r\n if (rule.type === CSSRule.STYLE_RULE) {\r\n if (rule.selectorText.split(',').map((item) => item.trim()).includes('.' + cls)) {\r\n let text = rule.cssText\r\n rules.push([text.slice(text.indexOf('{') + 1, text.lastIndexOf('}')), sheet])\r\n }\r\n // eslint-disable-next-line no-undef\r\n } else if (rule.type === CSSRule.MEDIA_RULE) {\r\n rules.push(...findInSheet(rule))\r\n }\r\n }\r\n return rules\r\n}\r\n\r\nlet responsiveSheets = new Map()\r\n\r\nlet notFound = () => {\r\n if (pseudos.length > 0) {\r\n let rules = []\r\n for (const sheet of document.styleSheets) {\r\n rules.push(...findInSheet(sheet))\r\n }\r\n let responsive = pseudos[0].slice(1)\r\n if (config.screens[responsive]) {\r\n let screens = Object.entries(config.screens)\r\n for (let [rule, sheet] of rules) {\r\n let sheets = responsiveSheets.get(sheet)\r\n if (!sheets) {\r\n sheets = newObject()\r\n for (const [r, size] of screens) {\r\n sheets[r] = sheet.cssRules[sheet.insertRule(`@media(min-width:${size}){}`, sheet.cssRules.length)]\r\n }\r\n responsiveSheets[sheet] = sheets\r\n }\r\n setRule(rule, sheets[responsive])\r\n }\r\n } else {\r\n for (let [rule, sheet] of rules) {\r\n setRule(rule, sheet)\r\n }\r\n }\r\n }\r\n}\r\n\r\n// pseudos = split('::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P!::P'.replace(/P/g, 'placeholder'))\r\nlet pseudoVendorPrefixes = newObject({\r\n '::placeholder': '::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P'.replace(/P/g, 'placeholder'),\r\n '::selection': ':::-moz-selection'\r\n})\r\n\r\nfunction setRule (rule, sheet) {\r\n let pseudo = ''\r\n let ruleCls = originalClass\r\n let sheetPrefix = 'default'\r\n let important = ''\r\n let insertRule = () => {\r\n try {\r\n sheet.insertRule(important + `.${ruleCls}${pseudo}{${rule}}`, sheet.cssRules.length)\r\n } catch (err) {\r\n // console.log(err)\r\n }\r\n }\r\n\r\n if (componentName) {\r\n ruleCls = componentName\r\n sheetPrefix = 'custom'\r\n }\r\n ruleCls = ruleCls.replace(/[.:()&@~*^$%,#]/g, '\\\\$&')\r\n if (config.important) {\r\n if (config.important === true) {\r\n rule = rule.replace(/;/g, '!important;') + '!important'\r\n } else if (typeof config.important === 'string') {\r\n important = config.important + ' '\r\n }\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n let mediaQuery = media.get(sheetPrefix + pseudos[0].slice(1) + sheetLevel)\r\n if (mediaQuery) {\r\n sheet = sheet || mediaQuery\r\n pseudos.shift()\r\n }\r\n }\r\n\r\n if (!sheet) {\r\n sheet = media.get(sheetPrefix + sheetLevel)\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n for (const pseudo of [...pseudos]) {\r\n let prefixes = pseudoVendorPrefixes[pseudo]\r\n if (prefixes) {\r\n pseudos.push(...split(prefixes))\r\n }\r\n }\r\n for (pseudo of pseudos) {\r\n // console.log(`.${cls}${pseudo}{${t}}`)\r\n if (includes(':first!:last', pseudo)) {\r\n pseudo = pseudo + '-child'\r\n } else if (includes(':odd!:even', pseudo)) {\r\n pseudo = `:nth-child(${pseudo.slice(1)})`\r\n } else if (pseudo.startsWith(':group')) {\r\n ruleCls = pseudo.slice(1).replace('-', ':') + ' .' + ruleCls\r\n pseudo = ''\r\n }\r\n insertRule()\r\n }\r\n } else {\r\n insertRule()\r\n }\r\n}\r\n"],"names":["parentSheet","componentName","addedScreens","isNum","v","isNaN","isStartNum","parseInt","split","s","indexOf","includes","ifRemTo","negative","Number","newObject","o","Object","assign","create","classesCache","Map","customCache","config","separator","screens","sm","md","lg","xl","component","name","classes","props","Error","trim","get","set","isObject","value","prototype","toString","call","hex6","startsWith","length","slice","map","join","test","errorNotObject","customColors","configure","conf","undefined","colors","key1","value1","entries","key2","value2","document","styleSheets","head","appendChild","createElement","sheet","cls","originalClass","media","setMedia","prefix","size","condition","i","cssRules","insertRule","formatters","p","m","h","z","w","classNames","c","k","replace","firstPart","secondPart","thirdPart","fourthPart","lastPart","partsWithoutEnd","rest","rule","pseudos","sheetLevel","colorNames","roundedSize","edge","l","r","t","b","setColor","type","color","colorPos","rgba","setPosition","timeProp","cls2process","object","overflow","clearfix","text","pos","endsWith","num","font","whitespace","inset","top","right","bottom","left","flex","ruleFunc","v1","v2","v3","order","grid","cols","span","start","end","rows","row","gap","col","space","divide","min","max","tracking","leading","placeholder","push","align","bg","rounded","place1","border","opacity","transition","ruleFunc2","duration","delay","ease","scale","rotate","translate","fractions","skew","transform","origin","cursor","shadow","xs","2xl","inner","outline","none","console","log","pointer","select","fill","stroke","items","content","self","gridRowAlign","justify","webkit","pseudosRegex","specialChars","processClass","RegExp","match","pop","customData","pseudosStr","originalPseudos","lastIndexOf","setRule","notFound","process","parts","toFixed","basicPart","e","formatClass","findInSheet","rules","CSSRule","STYLE_RULE","selectorText","item","cssText","MEDIA_RULE","responsiveSheets","responsive","sheets","pseudoVendorPrefixes","::placeholder","::selection","pseudo","ruleCls","sheetPrefix","important","err","mediaQuery","shift","prefixes","key","has"],"mappings":"AAEA,IASIA,EAEAC,EACAC,EAZAC,EAASC,IAAOC,MAAMD,GACtBE,EAAcF,IAAOC,MAAME,SAASH,IACpCI,EAASC,GAAMA,EAAED,MAAM,KACvBE,EAAU,CAACD,EAAGL,IAAMI,EAAMC,GAAGC,QAAQN,GACrCO,EAAW,CAACF,EAAGL,IAAMI,EAAMC,GAAGE,SAASP,GACvCQ,EAAWR,GAAMD,EAAMC,GAAKS,EAAuB,IAAZC,OAAOV,GAAY,MAAQS,EAAWT,EAC7EW,EAAY,CAACC,EAAI,KAAOC,OAAOC,OAAOD,OAAOE,OAAO,MAAOH,GAC3DI,EAAe,IAAIC,IACnBC,EAAc,IAAID,IAElBE,EAASR,EAAU,CAAES,UAAW,IAAKC,QAAS,CAAEC,GAAI,QAASC,GAAI,QAASC,GAAI,SAAUC,GAAI,YAIrFC,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rDD,EAAS,IAEX9I,SAGFA,mBAt1BkB5C,IACpB,IAAK9B,EAAc,CACjBA,GAAe,EACf,IAAIwD,EAAUzC,OAAOyC,QAAQnC,EAAOE,SACpC,IAAK,MAAMsD,KAAKvE,EAAM,kBAAmB,CACvC8D,EAASS,GACT,IAAK,MAAOmJ,EAAK1J,KAASd,EACxBY,EAASS,EAAImJ,EAAK1J,IAIxB,GAAuB,iBAAZxC,IACTA,EAAUA,EAAQG,QACbf,EAAa+M,IAAInM,IAAU,CAC9B,IAAKmC,KAAOnC,EAAQsD,QAAQ,SAAU,KAAK9E,MAAM,KAC3CY,EAAa+M,IAAIhK,KAGrB/C,EAAaiB,IAAI8B,GAAK,GACtByH,KAEFxK,EAAaiB,IAAIL,GAAS"} \ No newline at end of file +{"version":3,"file":"runcss.modern.js","sources":["../src/runcss.js"],"sourcesContent":["/* eslint-disable prefer-const */\r\n\r\nlet isNum = (v) => !isNaN(v)\r\nlet isStartNum = (v) => !isNaN(parseInt(v))\r\nlet split = (s) => s.split('!')\r\nlet indexOf = (s, v) => split(s).indexOf(v)\r\nlet includes = (s, v) => split(s).includes(v)\r\nlet ifRemTo = (v) => isNum(v) ? negative + Number(v) * 0.25 + 'rem' : negative + v\r\nlet newObject = (o = {}) => Object.assign(Object.create(null), o)\r\nlet classesCache = new Map()\r\nlet customCache = new Map()\r\nlet parentSheet\r\nlet config = newObject({ separator: ':', screens: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px' } })\r\nlet componentName\r\nlet addedScreens\r\n\r\nexport let component = (name, classes, props) => {\r\n if (typeof name !== 'string') {\r\n throw Error('Component must have a name.')\r\n }\r\n name = name.trim()\r\n if (classesCache.get(name)) {\r\n throw Error(`Class '${name}' was already processed.`)\r\n }\r\n customCache.set(name, [classes, props])\r\n}\r\n\r\nlet isObject = value => Object.prototype.toString.call(value) === '[object Object]'\r\nlet hex6 = value => {\r\n if (typeof value !== 'string') {\r\n throw Error('Hex value is not a hex string.')\r\n }\r\n if (!value.startsWith('#')) {\r\n value = '#' + value\r\n }\r\n value = value.length === 4 ? value.slice(1).split('').map((v) => v + v).join('') : value.slice(1)\r\n if (!/^[0-9a-f]{6}$/i.test(value)) {\r\n throw Error('Incorrect hex color format.')\r\n }\r\n return value\r\n}\r\n\r\nlet errorNotObject = value => {\r\n if (!isObject(value)) {\r\n throw Error('Config value must be an object.')\r\n }\r\n}\r\n\r\nlet customColors = new Map()\r\n\r\nexport let configure = (conf = newObject()) => {\r\n for (let s of split('separator!prefix')) {\r\n if (conf[s] !== undefined && typeof conf[s] !== 'string') {\r\n throw Error(`config.${s} must be a string.`)\r\n }\r\n }\r\n if (conf.screens) {\r\n errorNotObject(conf.screens)\r\n }\r\n if (conf.colors) {\r\n errorNotObject(conf.colors)\r\n for (let [key1, value1] of Object.entries(conf.colors)) {\r\n if (isObject(value1)) {\r\n for (let [key2, value2] of Object.entries(value1)) {\r\n customColors.set(key1 + '-' + key2, hex6(value2))\r\n }\r\n } else {\r\n customColors.set(key1, hex6(value1))\r\n }\r\n }\r\n } else {\r\n Object.assign(config, conf)\r\n }\r\n}\r\n\r\nif (document.styleSheets.length === 0) {\r\n parentSheet = document.head.appendChild(document.createElement('style')).sheet\r\n} else {\r\n parentSheet = document.styleSheets[0]\r\n}\r\n\r\nlet media = new Map()\r\nlet setMedia = (prefix, size) => {\r\n let condition = size ? `(min-width:${size})` : ''\r\n for (let i = 0; i < 3; i++) {\r\n media.set(prefix + i, parentSheet.cssRules[parentSheet.insertRule(`@media${condition}{}`, parentSheet.cssRules.length)])\r\n }\r\n}\r\n\r\nlet cls\r\nlet originalClass\r\n\r\nlet processClasses = (classes) => {\r\n if (!addedScreens) {\r\n addedScreens = true\r\n let entries = Object.entries(config.screens)\r\n for (const m of split('custom!default')) {\r\n setMedia(m)\r\n for (const [key, size] of entries) {\r\n setMedia(m + key, size)\r\n }\r\n }\r\n }\r\n if (typeof classes === 'string') {\r\n classes = classes.trim()\r\n if (!classesCache.has(classes)) {\r\n for (cls of classes.replace(/\\s\\s+/g, ' ').split(' ')) {\r\n if (classesCache.has(cls)) {\r\n continue\r\n }\r\n classesCache.set(cls, true)\r\n processClass()\r\n }\r\n classesCache.set(classes, true)\r\n }\r\n }\r\n}\r\nexport default processClasses\r\n\r\nlet formatters = newObject({\r\n p: 'padding',\r\n m: 'margin',\r\n h: 'height',\r\n z: 'z-index',\r\n w: 'width'\r\n})\r\n\r\nlet classNames = newObject()\r\n\r\n// direct map from class to values\r\nfor (let c of split('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji!font-serif|font-family:Georgia,Cambria,\"Times New Roman\",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace!sticky|position:-webkit-sticky;position:sticky')) {\r\n let [k, v] = c.split('|')\r\n classNames[k] = v\r\n}\r\n\r\n// class to value\r\nfor (let c of split('float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none')) {\r\n classNames[c] = c.replace('-', ':')\r\n}\r\n\r\n// display\r\nfor (let c of split('block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row')) {\r\n let p = c\r\n if (c === 'flex') {\r\n p = '-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex'\r\n } else if (c === 'inline-flex') {\r\n p = '-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex'\r\n } else if (c === 'grid') {\r\n p = '-ms-grid;display:grid'\r\n } else if (c === 'inline-grid') {\r\n p = '-ms-inline-grid;display:inline-grid'\r\n }\r\n classNames[c] = 'display:' + p\r\n}\r\n\r\n// position\r\nfor (let c of split('static!fixed!absolute!relative')) {\r\n classNames[c] = 'position:' + c\r\n}\r\n\r\nlet colors = split('f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459')\r\n\r\nlet colorNames = split('gray!red!orange!yellow!green!teal!blue!indigo!purple!pink')\r\n\r\nlet roundedSize = split('none!sm!nm!md!lg!full')\r\n\r\nlet edge = newObject({ l: 'left', r: 'right', t: 'top', b: 'bottom' })\r\n\r\nlet setColor = (type) => {\r\n if (secondPart === 'opacity' && isNum(thirdPart)) {\r\n rule = `--${type}-opacity:` + (thirdPart === '100' ? '1' : thirdPart / 100)\r\n } else {\r\n let color = customColors.get(rest)\r\n if (color) {\r\n if (thirdPart && isObject(color)) {\r\n color = color[thirdPart]\r\n }\r\n } else {\r\n if (thirdPart) {\r\n let colorPos = colorNames.indexOf(secondPart)\r\n color = colors[colorPos * 9 + (Number(thirdPart[0]) - 1)]\r\n } else if (secondPart && secondPart.startsWith('#')) {\r\n try {\r\n color = hex6(secondPart)\r\n } catch {}\r\n }\r\n }\r\n if (color) {\r\n let rgba = type + `:rgba(${parseInt(color.slice(0, 2), 16)},${parseInt(color.slice(2, 4), 16)},${parseInt(color.slice(4, 6), 16)},var(--${type}-opacity,1))`\r\n rule = type + `:#${color};` + rgba\r\n } else if (secondPart === 'current') {\r\n rule = type + ':' + 'currentColor'\r\n } else {\r\n rule = type + ':' + rest\r\n // console.log(rule)\r\n }\r\n }\r\n}\r\n\r\nlet setPosition = () => {\r\n if (!fourthPart && (includes('auto!initial!inherit', lastPart) || isStartNum(lastPart))) {\r\n let v = negative + lastPart\r\n if (thirdPart) {\r\n sheetLevel = 1\r\n if (secondPart === 'y') {\r\n rule = `top:${v};bottom:` + v\r\n } else if (secondPart === 'x') {\r\n rule = `left:${v};right:` + v\r\n }\r\n } else if (secondPart) {\r\n if (firstPart === 'inset') {\r\n rule = `top:${v};right:${v};bottom:${v};left:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = firstPart + ':' + v\r\n }\r\n }\r\n }\r\n}\r\n\r\nlet timeProp = () => {\r\n let v\r\n if (isNum(secondPart)) {\r\n v = secondPart + 'ms'\r\n } else if (isStartNum(secondPart)) {\r\n v = secondPart\r\n }\r\n if (v) {\r\n rule = `-webkit-transition-${firstPart}:${v};-o-transition-${firstPart}:${v};transition-${firstPart}:` + v\r\n }\r\n}\r\n\r\nlet cls2process = newObject({\r\n object: () => {\r\n if (includes('contain!cover!fill!none!bottom', rest)) {\r\n rule = `-o-object-fit:${rest};object-fit:` + rest\r\n } else if (includes('bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-o-object-position:${rest};object-position:` + rest\r\n }\r\n },\r\n overflow: () => {\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n }\r\n rule = partsWithoutEnd + ':' + lastPart\r\n },\r\n clearfix: () => {\r\n originalClass = 'clearfix::after'\r\n rule = 'content:\"\";display:table;clear:both'\r\n },\r\n text: () => {\r\n let pos = indexOf('xs!sm!base!lg!xl', secondPart)\r\n if (pos > -1) {\r\n rule = `font-size:${0.75 + (0.125 * pos)}rem`\r\n } else if (secondPart.endsWith('xl')) {\r\n let [num] = secondPart.split('x')\r\n if (isNum(num)) {\r\n rule = `font-size:${Number(num) - 2}rem`\r\n }\r\n } else if (includes('left!center!right!justify', rest)) {\r\n rule = 'text-align:' + rest\r\n } else {\r\n setColor('color')\r\n }\r\n },\r\n font: () => {\r\n let pos = indexOf('hairline!thin!light!normal!medium!semibold!bold!extrabold!black', secondPart)\r\n if (pos > -1) {\r\n rule = 'font-weight:' + (100 * (1 + pos))\r\n } else if (isNum(secondPart)) {\r\n rule = 'font-weight:' + secondPart\r\n }\r\n },\r\n whitespace: () => {\r\n if (includes('normal!pre!pre-line!pre-wrap', rest)) {\r\n rule = 'white-space:' + rest\r\n }\r\n },\r\n inset: setPosition,\r\n top: setPosition,\r\n right: setPosition,\r\n bottom: setPosition,\r\n left: setPosition,\r\n flex: () => {\r\n let ruleFunc = (v1, v2 = 1, v3 = '0%') => `-webkit-box-flex:${v1};-ms-flex:${v1} ${v2} ${v3};flex:${v1} ${v2} ` + v3\r\n if (includes('row!row-reverse!col!col-reverse', rest)) {\r\n rest = rest.replace('col', 'column')\r\n rule = `-webkit-box-orient:${secondPart === 'row' ? 'horizontal' : 'vertical'};-webkit-box-direction:${thirdPart === 'reverse' ? thirdPart : 'normal'};-ms-flex-direction:${rest};flex-direction:${rest}`\r\n } else if (includes('no-wrap!flex-wrap!wrap-reverse', rest)) {\r\n if (rest === 'no-wrap') {\r\n rest = 'nowrap'\r\n }\r\n rule = `-ms-flex-wrap:${rest};flex-wrap:${rest}`\r\n } else if (includes('grow!shrink', secondPart)) {\r\n sheetLevel = 1\r\n let v = thirdPart || 1\r\n if (secondPart === 'grow') {\r\n rule = `-webkit-box-flex:${v};-ms-flex-positive:${v};flex-grow:${v}`\r\n } else {\r\n rule = `-ms-flex-negative:${v};flex-shrink:${v}`\r\n }\r\n } else if (rest === 'initial') {\r\n rule = ruleFunc(0, 1, 'auto')\r\n } else if (rest === 'auto') {\r\n rule = ruleFunc(1, 1, 'auto')\r\n } else if (rest === 'none') {\r\n rule = '-webkit-box-flex:0;-ms-flex:none;flex:none'\r\n } else if (fourthPart) {\r\n rule = ruleFunc(secondPart, thirdPart, fourthPart)\r\n } else if (thirdPart) {\r\n rule = ruleFunc(secondPart, thirdPart)\r\n } else {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n order: () => {\r\n if (isNum(secondPart)) {\r\n let num = negative + secondPart\r\n rule = `-webkit-box-ordinal-group:${Number(num) + 1};-ms-flex-order:${num};order:` + num\r\n }\r\n },\r\n grid: () => {\r\n if (isNum(thirdPart)) {\r\n rule = newObject({\r\n cols: `-ms-grid-columns:(minmax(0,1fr))[${thirdPart}];grid-template-columns: repeat(${thirdPart}, minmax(0, 1fr))`,\r\n span: `-ms-grid-column-span:${thirdPart};grid-column: span ${thirdPart} / span ` + thirdPart,\r\n start: `-ms-grid-column:${thirdPart};grid-column-start:` + thirdPart,\r\n end: `-ms-grid-column-span:${thirdPart};grid-column-end:` + thirdPart,\r\n rows: `-ms-grid-rows:(minmax(0,1fr))[${thirdPart}];grid-template-rows: repeat(${thirdPart}, minmax(0, 1fr))`\r\n })[secondPart]\r\n }\r\n },\r\n row: () => {\r\n if (isStartNum(thirdPart)) {\r\n rule = newObject({\r\n span: `-ms-grid-row-span:${thirdPart};grid-row: span ${thirdPart} / span ${thirdPart}`,\r\n start: `-ms-grid-row:${thirdPart};grid-row-start:` + thirdPart,\r\n end: `-ms-grid-row-span:${thirdPart};grid-row-end:` + thirdPart,\r\n gap: 'row-gap:' + ifRemTo(thirdPart)\r\n })[secondPart]\r\n }\r\n },\r\n col: () => {\r\n if (isNum(thirdPart)) {\r\n if (secondPart === 'span') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column:span ${thirdPart} / span ${thirdPart};`\r\n } else if (secondPart === 'start') {\r\n rule = `-ms-grid-column:${thirdPart};grid-column-start:${thirdPart}`\r\n } else if (secondPart === 'end') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column-end:${thirdPart}`\r\n }\r\n }\r\n if (isStartNum(thirdPart) && secondPart === 'gap') {\r\n let v = thirdPart === 'px' ? '1px' : ifRemTo(thirdPart)\r\n rule = `-webkit-column-gap:${v};-moz-column-gap:${v}column-gap:` + v\r\n }\r\n },\r\n gap: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'gap:' + ifRemTo(secondPart)\r\n }\r\n },\r\n space: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n }\r\n if (thirdPart) {\r\n if (isStartNum(thirdPart)) {\r\n let v = ifRemTo(thirdPart)\r\n if (secondPart === 'x') {\r\n rule = `margin-right:calc(${v}*var(--space-x-reverse,0));margin-left:calc(${v}*(1 - var(--space-x-reverse,0)))`\r\n } else if (secondPart === 'y') {\r\n rule = `margin-top:calc(${v}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${v}*var(--space-y-reverse,0))`\r\n }\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--space-${secondPart}-reverse:1`\r\n }\r\n }\r\n },\r\n divide: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n sheetLevel = 1\r\n if (!fourthPart) {\r\n let v\r\n if (isNum(thirdPart)) {\r\n v = thirdPart + 'px'\r\n } else if (isStartNum(thirdPart)) {\r\n v = thirdPart\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--divide-${secondPart}-reverse:1`\r\n } else if (secondPart) {\r\n v = '1px'\r\n }\r\n\r\n if (v) {\r\n if (secondPart === 'y') {\r\n rule = `border-top-width:calc(${v}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${v}*var(--divide-y-reverse,0)))`\r\n } else if (secondPart === 'x') {\r\n rule = `border-right-width:calc(${v}*var(--divide-x-reverse,0));border-left-width:calc(${v}*calc(1 - var(--divide-x-reverse,0)))`\r\n }\r\n }\r\n }\r\n if (!rule) {\r\n setColor('border-color')\r\n }\r\n },\r\n min: () => {\r\n if (isStartNum(thirdPart)) {\r\n if (secondPart === 'w' || secondPart === 'h') {\r\n let p = secondPart === 'w' ? 'width' : 'height'\r\n rule = `min-${p}:` + thirdPart\r\n }\r\n }\r\n },\r\n max: () => {\r\n if (secondPart === 'w') {\r\n let pos = indexOf('xs!sm!md!lg!xl', thirdPart)\r\n if (pos > -1) {\r\n rule = `max-width:${pos * 4 + 20}rem`\r\n } else if (isStartNum(thirdPart)) {\r\n if (thirdPart.endsWith('xl')) {\r\n rule = `max-width:${parseInt(thirdPart) * 8 + 24}rem`\r\n } else {\r\n rule = 'max-width:' + thirdPart\r\n }\r\n }\r\n } else if (secondPart === 'h' && isStartNum(thirdPart)) {\r\n rule = 'max-height:' + thirdPart\r\n }\r\n },\r\n tracking: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'letter-spacing:' + secondPart\r\n }\r\n },\r\n leading: () => {\r\n if (isNum(secondPart)) {\r\n rule = `line-height:${Number(secondPart) * 0.25}rem`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'line-height:' + secondPart\r\n }\r\n },\r\n placeholder: () => {\r\n pseudos.push('::placeholder')\r\n setColor('color')\r\n },\r\n align: () => {\r\n if (includes('baseline!top!middle!bottom!text-top!text-bottom', rest)) {\r\n rule = 'vertical-align:' + rest\r\n }\r\n },\r\n bg: () => {\r\n rest = rest.replace('-', ' ')\r\n if (includes('bottom!center!left!left bottom!left top!right!right bottom!right top!top', rest)) {\r\n rule = 'background-position:' + rest\r\n } else if (includes('repeat!no-repeat!repeat-x!repeat-y', rest)) {\r\n rule = 'background-repeat:' + rest\r\n } else if (includes('repeat-round!repeat-space', rest)) {\r\n rule = 'background-repeat:' + thirdPart\r\n } else if (includes('auto!cover!contain', rest)) {\r\n rule = 'background-size:' + rest\r\n } else if (includes('fixed!local!scroll', secondPart)) {\r\n rule = 'background-attachment:' + secondPart\r\n } else {\r\n setColor('background-color')\r\n }\r\n },\r\n rounded: () => {\r\n let v\r\n let pos = roundedSize.indexOf(lastPart)\r\n if (isStartNum(lastPart)) {\r\n v = lastPart\r\n pos = 9\r\n } else if (pos === 5) {\r\n v = '9999px'\r\n } else if (pos > -1) {\r\n v = pos * 0.125 + 'rem'\r\n } else if (!secondPart || edge[secondPart] || (includes('t!b', secondPart[0]) && includes('r!l', secondPart[1]))) {\r\n v = '0.25rem'\r\n }\r\n if (v) {\r\n let place1 = edge[secondPart[0]]\r\n if (!secondPart || (!thirdPart && pos > -1)) {\r\n rule = 'border-radius:' + v\r\n } else if (includes('t!b', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-${place1}-left-radius:${v};border-${place1}-right-radius:` + v\r\n } else if (includes('l!r', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-top-${place1}-radius:${v};border-bottom-${place1}-radius:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = `border-${place1}-${edge[secondPart[1]]}-radius:` + v\r\n }\r\n }\r\n },\r\n border: () => {\r\n let b = edge[secondPart]\r\n if (thirdPart && b) {\r\n if (isNum(thirdPart)) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:${thirdPart}px`\r\n } else if (isStartNum(thirdPart)) {\r\n rule = `border-${b}-width:` + thirdPart\r\n }\r\n } else {\r\n if (includes('solid!dashed!dotted!double!none', secondPart)) {\r\n rule = 'border-style:' + secondPart\r\n } else if (b) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:1px`\r\n } else if (isNum(secondPart)) {\r\n rule = `border-width:${secondPart}px`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'border-width:' + secondPart\r\n } else {\r\n setColor('border-color')\r\n }\r\n }\r\n },\r\n opacity: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'opacity:' + secondPart / 100.0\r\n }\r\n },\r\n transition: () => {\r\n let ruleFunc = (value) => `-webkit-transition-property:${value};-o-transition-property:${value};transition-property:` + value\r\n let ruleFunc2 = (value) => `-webkit-transition-property:-webkit-${value};transition-property:-webkit-${value};-o-transition-property:${value};transition-property:${value};transition-property:${value},-webkit-${value}`\r\n if (!secondPart) {\r\n rule = '-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform'\r\n rule = rule.replace(/S/g, 'background-color,border-color,color,fill,stroke,opacity,')\r\n } else if (secondPart === 'colors') {\r\n rule = ruleFunc('background-color,border-color,color,fill,stroke')\r\n } else if (secondPart === 'shadow') {\r\n rule = ruleFunc2('box-shadow')\r\n } else if (secondPart === 'transform') {\r\n rule = ruleFunc2('transform')\r\n } else if (secondPart) {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n duration: timeProp,\r\n delay: timeProp,\r\n ease: () => {\r\n let ruleFunc = (value) => `-webkit-transition-timing-function:${value};-o-transition-timing-function:${value};transition-timing-function:${value}`\r\n if (rest === 'in') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,1,1)')\r\n } else if (rest === 'out') {\r\n rule = ruleFunc('cubic-bezier(0,0,0.2,1)')\r\n } else if (rest === 'in-out') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,0.2,1)')\r\n } else if (rest === 'linear') {\r\n rule = ruleFunc('linear')\r\n }\r\n },\r\n scale: () => {\r\n if (isNum(lastPart)) {\r\n let v = lastPart / 100\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n rule = `--transform-scale-${secondPart}:` + v\r\n } else {\r\n rule = `--transform-scale-x:${v};--transform-scale-y:` + v\r\n }\r\n }\r\n },\r\n rotate: () => {\r\n if (isNum(secondPart)) {\r\n rule = `--transform-rotate:${negative}${secondPart}deg`\r\n }\r\n },\r\n translate: () => {\r\n if (includes('x!y', secondPart)) {\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n } else if (thirdPart === 'full') {\r\n thirdPart = '100%'\r\n } else if (thirdPart.includes('/')) {\r\n let fractions = thirdPart.split('/')\r\n if (fractions.length === 2) {\r\n thirdPart = Number(fractions[0]) / Number(fractions[1]) + '%'\r\n }\r\n }\r\n if (isStartNum(thirdPart)) {\r\n rule = `--transform-translate-${secondPart}:` + ifRemTo(thirdPart)\r\n }\r\n }\r\n },\r\n skew: () => {\r\n if (includes('x!y', secondPart) && isNum(thirdPart)) {\r\n rule = `--transform-skew-${secondPart}:${negative + thirdPart}deg`\r\n }\r\n },\r\n transform: () => {\r\n let v = 'translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))'\r\n rule = `-webkit-transform:${v};-ms-transform:${v};transform:` + v\r\n },\r\n origin: () => {\r\n if (includes('center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-webkit-transform-origin:${rest};-ms-transform-origin:${rest};transform-origin:` + rest\r\n }\r\n },\r\n cursor: () => {\r\n if (includes('auto!default!pointer!wait!text!move!not-allowed', rest)) {\r\n rule = 'cursor:' + rest\r\n }\r\n },\r\n shadow: () => {\r\n let shadows = newObject({\r\n xs: '0 0 0 1pxR.05)',\r\n sm: '0 1px 2px 0R.05)',\r\n '': '0 1px 3px 0R.1), 0 1px 2px 0R.06)',\r\n md: '0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)',\r\n lg: '0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)',\r\n xl: '0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)',\r\n '2xl': '0 25px 50px -12pxR.25)',\r\n inner: 'inset 0 2px 4px 0R.06)',\r\n outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',\r\n none: 'none'\r\n })\r\n let v = shadows[secondPart]\r\n if (v) {\r\n v = v.replace(/R/g, ' rgba(0, 0, 0, 0')\r\n // console.log(v)\r\n rule = `-webkit-box-shadow:${v};box-shadow:` + v\r\n }\r\n },\r\n outline: () => {\r\n if (secondPart) {\r\n rule = 'outline:' + rest.replace('-', ' ')\r\n }\r\n },\r\n pointer: () => {\r\n if (secondPart) {\r\n rule = 'pointer-events:' + secondPart\r\n }\r\n },\r\n select: () => {\r\n if (includes('none!auto!text!contain!all!inherit!initial!unset', rest)) {\r\n rule = `-webkit-user-select:${rest};-moz-user-select:${rest};-ms-user-select:${rest};user-select:` + rest\r\n }\r\n },\r\n fill: () => {\r\n if (secondPart) {\r\n rule = 'fill:' + secondPart\r\n }\r\n },\r\n stroke: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'stroke-width:' + secondPart\r\n } else if (secondPart) {\r\n rule = 'stroke:' + secondPart\r\n }\r\n },\r\n items: () => {\r\n if (includes('stretch!start!center!end!baseline', rest)) {\r\n rule = `-webkit-box-align:${rest};-ms-flex-align:${rest};align-items:` + (includes('start!end', rest) ? 'flex-' : '') + rest\r\n }\r\n },\r\n content: () => {\r\n if (includes('start!center!end!between!around')) {\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n } else if (rest === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (rest === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n }\r\n\r\n rule = `-ms-flex-line-pack:${v};align-content:` + rest\r\n }\r\n },\r\n self: () => {\r\n if (includes('auto!start!center!end!stretch', rest)) {\r\n let gridRowAlign = `-ms-grid-row-align:${rest};`\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n gridRowAlign = ''\r\n }\r\n rule = `-ms-flex-item-align:${v};${gridRowAlign}align-self:` + rest\r\n }\r\n },\r\n justify: () => {\r\n if (includes('start!center!end!between!around', rest)) {\r\n let v = rest\r\n if (v === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (includes('start!end')) {\r\n rest = 'flex-' + rest\r\n }\r\n let webkit = `-webkit-box-pack:${v};`\r\n if (v === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n webkit = ''\r\n }\r\n rule = webkit + `-ms-flex-pack:${v};justify-content:` + rest\r\n }\r\n }\r\n})\r\n\r\nlet firstPart // first part\r\nlet secondPart // second part\r\nlet thirdPart // third part\r\nlet fourthPart\r\nlet lastPart // last part\r\nlet partsWithoutEnd // without end\r\nlet rest\r\nlet negative\r\nlet rule\r\nlet pseudos\r\nlet pseudosRegex = /[^:]+::?|.+/g\r\nlet specialChars = /[.*+\\-?^${}()|[\\]\\\\]/g\r\nlet sheetLevel\r\n\r\nfunction processClass () {\r\n sheetLevel = 0\r\n rule = ''\r\n negative = ''\r\n originalClass = cls\r\n let separator = config.separator\r\n if (separator !== ':') {\r\n cls = cls.replace(new RegExp(separator.replace(specialChars, '\\\\$&'), 'g'), ':')\r\n }\r\n pseudos = cls.match(pseudosRegex)\r\n cls = pseudos.pop()\r\n pseudos = pseudos.map(v => v.endsWith('::') ? '::' + v.slice(0, -2) : ':' + v.slice(0, -1))\r\n let customData = customCache.get(cls)\r\n if (customData) {\r\n let [classes, props] = customData\r\n let [pseudosStr, originalPseudos] = [originalClass.slice(0, originalClass.lastIndexOf(cls)), pseudos]\r\n componentName = originalClass\r\n if (typeof classes === 'string') {\r\n for (cls of classes.trim().replace(/\\s\\s+/g, ' ').split(' ')) {\r\n cls = pseudosStr + cls\r\n processClass()\r\n }\r\n }\r\n pseudos = originalPseudos\r\n if (props && typeof props === 'string') {\r\n setRule(props)\r\n }\r\n componentName = ''\r\n return\r\n }\r\n\r\n if (cls[0] === '-') {\r\n negative = '-'\r\n cls = cls.slice(1)\r\n }\r\n\r\n if (typeof config.prefix === 'string') {\r\n if (!cls.startsWith(config.prefix)) {\r\n notFound()\r\n return\r\n } else {\r\n cls = cls.slice(config.prefix.length)\r\n }\r\n }\r\n let parts = cls.split('-')\r\n ;[firstPart, secondPart = '', thirdPart = '', fourthPart = ''] = parts\r\n lastPart = parts[parts.length - 1]\r\n partsWithoutEnd = parts.slice(0, -1).join('-')\r\n rest = parts.slice(1).join('-')\r\n\r\n let process\r\n if (!(rule = classNames[cls]) && (process = cls2process[firstPart])) {\r\n process()\r\n } else if (firstPart.length < 3 && !thirdPart) {\r\n formatClass()\r\n }\r\n\r\n if (rule) {\r\n setRule(rule)\r\n } else if (cls === 'container') {\r\n setRule('width:100%')\r\n for (const [r, size] of Object.entries(config.screens)) {\r\n setRule('max-width:' + size, media.get(`default${r}0`))\r\n }\r\n } else {\r\n notFound()\r\n }\r\n}\r\n\r\nfunction formatClass () {\r\n let v\r\n if (secondPart === 'px') {\r\n v = `${negative}1px`\r\n } else if (secondPart === 'full') {\r\n v = '100%'\r\n } else if (secondPart === 'screen') {\r\n if (firstPart === 'w') {\r\n v = '100vw'\r\n } else if (firstPart === 'h') {\r\n v = '100vh'\r\n }\r\n } else if (secondPart === 'auto') {\r\n v = 'auto'\r\n } else if (isNum(secondPart)) {\r\n v = negative + Number(secondPart) * 0.25 + 'rem'\r\n } else if (secondPart.indexOf('/') > -1) {\r\n let [top, bottom] = secondPart.split('/')\r\n if (isNum(top) && isNum(bottom)) {\r\n v = negative + (Number(top) / Number(bottom)).toFixed(6) + '%'\r\n }\r\n } else if (isStartNum(secondPart)) {\r\n v = negative + secondPart\r\n }\r\n\r\n let basicPart = formatters[firstPart[0]]\r\n let e = edge[firstPart[1]]\r\n if (v && basicPart) {\r\n if (firstPart[1] === 'x') {\r\n sheetLevel = 1\r\n rule = basicPart + `-right:${v};${basicPart}-left:` + v\r\n } else if (firstPart[1] === 'y') {\r\n sheetLevel = 1\r\n rule = basicPart + `-top:${v};${basicPart}-bottom:` + v\r\n } else if (e) {\r\n sheetLevel = 2\r\n rule = basicPart + `-${e}:` + v\r\n } else {\r\n rule = basicPart + ':' + v\r\n }\r\n }\r\n}\r\n\r\nlet findInSheet = (sheet) => {\r\n let rules = []\r\n for (let rule of [...sheet.cssRules]) {\r\n // eslint-disable-next-line no-undef\r\n if (rule.type === CSSRule.STYLE_RULE) {\r\n if (rule.selectorText.split(',').map((item) => item.trim()).includes('.' + cls)) {\r\n let text = rule.cssText\r\n rules.push([text.slice(text.indexOf('{') + 1, text.lastIndexOf('}')), sheet])\r\n }\r\n // eslint-disable-next-line no-undef\r\n } else if (rule.type === CSSRule.MEDIA_RULE) {\r\n rules.push(...findInSheet(rule))\r\n }\r\n }\r\n return rules\r\n}\r\n\r\nlet responsiveSheets = new Map()\r\n\r\nlet notFound = () => {\r\n if (pseudos.length > 0) {\r\n let rules = []\r\n for (const sheet of document.styleSheets) {\r\n rules.push(...findInSheet(sheet))\r\n }\r\n let responsive = pseudos[0].slice(1)\r\n if (config.screens[responsive]) {\r\n let screens = Object.entries(config.screens)\r\n for (let [rule, sheet] of rules) {\r\n let sheets = responsiveSheets.get(sheet)\r\n if (!sheets) {\r\n sheets = newObject()\r\n for (const [r, size] of screens) {\r\n sheets[r] = sheet.cssRules[sheet.insertRule(`@media(min-width:${size}){}`, sheet.cssRules.length)]\r\n }\r\n responsiveSheets[sheet] = sheets\r\n }\r\n setRule(rule, sheets[responsive])\r\n }\r\n } else {\r\n for (let [rule, sheet] of rules) {\r\n setRule(rule, sheet)\r\n }\r\n }\r\n }\r\n}\r\n\r\n// pseudos = split('::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P!::P'.replace(/P/g, 'placeholder'))\r\nlet pseudoVendorPrefixes = newObject({\r\n '::placeholder': '::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P'.replace(/P/g, 'placeholder'),\r\n '::selection': ':::-moz-selection'\r\n})\r\n\r\nfunction setRule (rule, sheet) {\r\n let pseudo = ''\r\n let ruleCls = originalClass\r\n let sheetPrefix = 'default'\r\n let important = ''\r\n let insertRule = () => {\r\n try {\r\n sheet.insertRule(important + `.${ruleCls}${pseudo}{${rule}}`, sheet.cssRules.length)\r\n } catch (err) {\r\n // console.log(err)\r\n }\r\n }\r\n\r\n if (componentName) {\r\n ruleCls = componentName\r\n sheetPrefix = 'custom'\r\n }\r\n ruleCls = ruleCls.replace(/[.:()&@~*^$%,#]/g, '\\\\$&')\r\n if (config.important) {\r\n if (config.important === true) {\r\n rule = rule.replace(/;/g, '!important;') + '!important'\r\n } else if (typeof config.important === 'string') {\r\n important = config.important + ' '\r\n }\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n let mediaQuery = media.get(sheetPrefix + pseudos[0].slice(1) + sheetLevel)\r\n if (mediaQuery) {\r\n sheet = sheet || mediaQuery\r\n pseudos.shift()\r\n }\r\n }\r\n\r\n if (!sheet) {\r\n sheet = media.get(sheetPrefix + sheetLevel)\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n for (const pseudo of [...pseudos]) {\r\n let prefixes = pseudoVendorPrefixes[pseudo]\r\n if (prefixes) {\r\n pseudos.push(...split(prefixes))\r\n }\r\n }\r\n for (pseudo of pseudos) {\r\n // console.log(`.${cls}${pseudo}{${t}}`)\r\n if (includes(':first!:last', pseudo)) {\r\n pseudo = pseudo + '-child'\r\n } else if (includes(':odd!:even', pseudo)) {\r\n pseudo = `:nth-child(${pseudo.slice(1)})`\r\n } else if (pseudo.startsWith(':group')) {\r\n ruleCls = pseudo.slice(1).replace('-', ':') + ' .' + ruleCls\r\n pseudo = ''\r\n }\r\n insertRule()\r\n }\r\n } else {\r\n insertRule()\r\n }\r\n}\r\n"],"names":["parentSheet","componentName","addedScreens","isNum","v","isNaN","isStartNum","parseInt","split","s","indexOf","includes","ifRemTo","negative","Number","newObject","o","Object","assign","create","classesCache","Map","customCache","config","separator","screens","sm","md","lg","xl","component","name","classes","props","Error","trim","get","set","isObject","value","prototype","toString","call","hex6","startsWith","length","slice","map","join","test","errorNotObject","customColors","configure","conf","undefined","colors","key1","value1","entries","key2","value2","document","styleSheets","head","appendChild","createElement","sheet","cls","originalClass","media","setMedia","prefix","size","condition","i","cssRules","insertRule","formatters","p","m","h","z","w","classNames","c","k","replace","firstPart","secondPart","thirdPart","fourthPart","lastPart","partsWithoutEnd","rest","rule","pseudos","sheetLevel","colorNames","roundedSize","edge","l","r","t","b","setColor","type","color","colorPos","rgba","setPosition","timeProp","cls2process","object","overflow","clearfix","text","pos","endsWith","num","font","whitespace","inset","top","right","bottom","left","flex","ruleFunc","v1","v2","v3","order","grid","cols","span","start","end","rows","row","gap","col","space","divide","min","max","tracking","leading","placeholder","push","align","bg","rounded","place1","border","opacity","transition","ruleFunc2","duration","delay","ease","scale","rotate","translate","fractions","skew","transform","origin","cursor","shadow","xs","2xl","inner","outline","none","pointer","select","fill","stroke","items","content","self","gridRowAlign","justify","webkit","pseudosRegex","specialChars","processClass","RegExp","match","pop","customData","pseudosStr","originalPseudos","lastIndexOf","setRule","notFound","process","parts","toFixed","basicPart","e","formatClass","findInSheet","rules","CSSRule","STYLE_RULE","selectorText","item","cssText","MEDIA_RULE","responsiveSheets","responsive","sheets","pseudoVendorPrefixes","::placeholder","::selection","pseudo","ruleCls","sheetPrefix","important","err","mediaQuery","shift","prefixes","key","has"],"mappings":"AAEA,IASIA,EAEAC,EACAC,EAZAC,EAASC,IAAOC,MAAMD,GACtBE,EAAcF,IAAOC,MAAME,SAASH,IACpCI,EAASC,GAAMA,EAAED,MAAM,KACvBE,EAAU,CAACD,EAAGL,IA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IAG9BD,EAAQlD,OAAS,EAAG,CACtB,IAAK,MAAM2K,IAAU,IAAIzH,GAAU,CACjC,IAAIgI,EAAWV,EAAqBG,GAChCO,GACFhI,EAAQqD,QAAQ5I,EAAMuN,IAG1B,IAAKP,KAAUzH,EAETpF,EAAS,eAAgB6M,GAC3BA,GAAkB,SACT7M,EAAS,aAAc6M,GAChCA,EAAU,cAAaA,EAAO1K,MAAM,MAC3B0K,EAAO5K,WAAW,YAC3B6K,EAAUD,EAAO1K,MAAM,GAAGwC,QAAQ,IAAK,KAAO,KAAOmI,EACrDD,EAAS,IAEX5I,SAGFA,mBAt1BkB5C,IACpB,IAAK9B,EAAc,CACjBA,GAAe,EACf,IAAIwD,EAAUzC,OAAOyC,QAAQnC,EAAOE,SACpC,IAAK,MAAMsD,KAAKvE,EAAM,kBAAmB,CACvC8D,EAASS,GACT,IAAK,MAAOiJ,EAAKxJ,KAASd,EACxBY,EAASS,EAAIiJ,EAAKxJ,IAIxB,GAAuB,iBAAZxC,IACTA,EAAUA,EAAQG,QACbf,EAAa6M,IAAIjM,IAAU,CAC9B,IAAKmC,KAAOnC,EAAQsD,QAAQ,SAAU,KAAK9E,MAAM,KAC3CY,EAAa6M,IAAI9J,KAGrB/C,EAAaiB,IAAI8B,GAAK,GACtBuH,KAEFtK,EAAaiB,IAAIL,GAAS"} \ No newline at end of file diff --git a/dist/runcss.umd.js b/dist/runcss.umd.js index dcc7b06..e63a9ca 100644 --- a/dist/runcss.umd.js +++ b/dist/runcss.umd.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).runcss={})}(this,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(o=e[Symbol.iterator]()).next.bind(o)}var o,i,n,a=function(e){return!isNaN(e)},l=function(e){return!isNaN(parseInt(e))},s=function(e){return e.split("!")},c=function(e,t){return s(e).indexOf(t)},f=function(e,t){return s(e).includes(t)},d=function(e){return a(e)?Y+.25*Number(e)+"rem":Y+e},p=function(e){return void 0===e&&(e={}),Object.assign(Object.create(null),e)},u=new Map,m=new Map,b=p({separator:":",screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),g=function(e){return"[object Object]"===Object.prototype.toString.call(e)},x=function(e){if("string"!=typeof e)throw Error("Hex value is not a hex string.");if(e.startsWith("#")||(e="#"+e),e=4===e.length?e.slice(1).split("").map(function(e){return e+e}).join(""):e.slice(1),!/^[0-9a-f]{6}$/i.test(e))throw Error("Incorrect hex color format.");return e},w=function(e){if(!g(e))throw Error("Config value must be an object.")},h=new Map;o=0===document.styleSheets.length?document.head.appendChild(document.createElement("style")).sheet:document.styleSheets[0];for(var v,y,k,j=new Map,z=function(e,t){for(var r=t?"(min-width:"+t+")":"",i=0;i<3;i++)j.set(e+i,o.cssRules[o.insertRule("@media"+r+"{}",o.cssRules.length)])},R=p({p:"padding",m:"margin",h:"height",z:"z-index",w:"width"}),S=p(),N=r(s('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji!font-serif|font-family:Georgia,Cambria,"Times New Roman",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!sticky|position:-webkit-sticky;position:sticky'));!(k=N()).done;){var O=k.value.split("|");S[O[0]]=O[1]}for(var E,C=r(s("float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none"));!(E=C()).done;){var I=E.value;S[I]=I.replace("-",":")}for(var M,A=r(s("block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row"));!(M=A()).done;){var W=M.value,T=W;"flex"===W?T="-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex":"inline-flex"===W?T="-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex":"grid"===W?T="-ms-grid;display:grid":"inline-grid"===W&&(T="-ms-inline-grid;display:inline-grid"),S[W]="display:"+T}for(var U,$=r(s("static!fixed!absolute!relative"));!(U=$()).done;){var P=U.value;S[P]="position:"+P}var L,F,H,_,B,D,G,Y,q,J,K,Q=s("f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459"),V=s("gray!red!orange!yellow!green!teal!blue!indigo!purple!pink"),X=s("none!sm!nm!md!lg!full"),Z=p({l:"left",r:"right",t:"top",b:"bottom"}),ee=function(e){if("opacity"===F&&a(H))q="--"+e+"-opacity:"+("100"===H?"1":H/100);else{var t=h.get(G);if(t)H&&g(t)&&(t=t[H]);else if(H){var r=V.indexOf(F);t=Q[9*r+(Number(H[0])-1)]}else if(F&&F.startsWith("#"))try{t=x(F)}catch(e){}if(t){var o=e+":rgba("+parseInt(t.slice(0,2),16)+","+parseInt(t.slice(2,4),16)+","+parseInt(t.slice(4,6),16)+",var(--"+e+"-opacity,1))";q=e+":#"+t+";"+o}else q="current"===F?e+":currentColor":e+":"+G}},te=function(){if(!_&&(f("auto!initial!inherit",B)||l(B))){var e=Y+B;H?(K=1,"y"===F?q="top:"+e+";bottom:"+e:"x"===F&&(q="left:"+e+";right:"+e)):F&&("inset"===L?q="top:"+e+";right:"+e+";bottom:"+e+";left:"+e:(K=2,q=L+":"+e))}},re=function(){var e;a(F)?e=F+"ms":l(F)&&(e=F),e&&(q="-webkit-transition-"+L+":"+e+";-o-transition-"+L+":"+e+";transition-"+L+":"+e)},oe=p({object:function(){f("contain!cover!fill!none!bottom",G)?q="-o-object-fit:"+G+";object-fit:"+G:f("bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top",G)&&(G=G.replace("-"," "),q="-o-object-position:"+G+";object-position:"+G)},overflow:function(){f("x!y",F)&&(K=1),q=D+":"+B},clearfix:function(){y="clearfix::after",q='content:"";display:table;clear:both'},text:function(){var e=c("xs!sm!base!lg!xl",F);if(e>-1)q="font-size:"+(.75+.125*e)+"rem";else if(F.endsWith("xl")){var t=F.split("x")[0];a(t)&&(q="font-size:"+(Number(t)-2)+"rem")}else f("left!center!right!justify",G)?q="text-align:"+G:ee("color")},font:function(){var e=c("hairline!thin!light!normal!medium!semibold!bold!extrabold!black",F);e>-1?q="font-weight:"+100*(1+e):a(F)&&(q="font-weight:"+F)},whitespace:function(){f("normal!pre!pre-line!pre-wrap",G)&&(q="white-space:"+G)},inset:te,top:te,right:te,bottom:te,left:te,flex:function(){var e=function(e,t,r){return void 0===t&&(t=1),void 0===r&&(r="0%"),"-webkit-box-flex:"+e+";-ms-flex:"+e+" "+t+" "+r+";flex:"+e+" "+t+" "+r};if(f("row!row-reverse!col!col-reverse",G))G=G.replace("col","column"),q="-webkit-box-orient:"+("row"===F?"horizontal":"vertical")+";-webkit-box-direction:"+("reverse"===H?H:"normal")+";-ms-flex-direction:"+G+";flex-direction:"+G;else if(f("no-wrap!flex-wrap!wrap-reverse",G))"no-wrap"===G&&(G="nowrap"),q="-ms-flex-wrap:"+G+";flex-wrap:"+G;else if(f("grow!shrink",F)){K=1;var t=H||1;q="grow"===F?"-webkit-box-flex:"+t+";-ms-flex-positive:"+t+";flex-grow:"+t:"-ms-flex-negative:"+t+";flex-shrink:"+t}else q="initial"===G?e(0,1,"auto"):"auto"===G?e(1,1,"auto"):"none"===G?"-webkit-box-flex:0;-ms-flex:none;flex:none":_?e(F,H,_):H?e(F,H):e(F)},order:function(){if(a(F)){var e=Y+F;q="-webkit-box-ordinal-group:"+(Number(e)+1)+";-ms-flex-order:"+e+";order:"+e}},grid:function(){a(H)&&(q=p({cols:"-ms-grid-columns:(minmax(0,1fr))["+H+"];grid-template-columns: repeat("+H+", minmax(0, 1fr))",span:"-ms-grid-column-span:"+H+";grid-column: span "+H+" / span "+H,start:"-ms-grid-column:"+H+";grid-column-start:"+H,end:"-ms-grid-column-span:"+H+";grid-column-end:"+H,rows:"-ms-grid-rows:(minmax(0,1fr))["+H+"];grid-template-rows: repeat("+H+", minmax(0, 1fr))"})[F])},row:function(){l(H)&&(q=p({span:"-ms-grid-row-span:"+H+";grid-row: span "+H+" / span "+H,start:"-ms-grid-row:"+H+";grid-row-start:"+H,end:"-ms-grid-row-span:"+H+";grid-row-end:"+H,gap:"row-gap:"+d(H)})[F])},col:function(){if(a(H)&&("span"===F?q="-ms-grid-column-span:"+H+";grid-column:span "+H+" / span "+H+";":"start"===F?q="-ms-grid-column:"+H+";grid-column-start:"+H:"end"===F&&(q="-ms-grid-column-span:"+H+";grid-column-end:"+H)),l(H)&&"gap"===F){var e="px"===H?"1px":d(H);q="-webkit-column-gap:"+e+";-moz-column-gap:"+e+"column-gap:"+e}},gap:function(){l(F)&&(q="gap:"+d(F))},space:function(){if(J=[">:not(template)~:not(template)"],"px"===H&&(H="1px"),H)if(l(H)){var e=d(H);"x"===F?q="margin-right:calc("+e+"*var(--space-x-reverse,0));margin-left:calc("+e+"*(1 - var(--space-x-reverse,0)))":"y"===F&&(q="margin-top:calc("+e+"*(1 - var(--space-y-reverse,0)));margin-bottom:calc("+e+"*var(--space-y-reverse,0))")}else"reverse"===H&&(q="--space-"+F+"-reverse:1")},divide:function(){var e;J=[">:not(template)~:not(template)"],K=1,_||(a(H)?e=H+"px":l(H)?e=H:"reverse"===H?q="--divide-"+F+"-reverse:1":F&&(e="1px"),e&&("y"===F?q="border-top-width:calc("+e+"*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc("+e+"*var(--divide-y-reverse,0)))":"x"===F&&(q="border-right-width:calc("+e+"*var(--divide-x-reverse,0));border-left-width:calc("+e+"*calc(1 - var(--divide-x-reverse,0)))"))),q||ee("border-color")},min:function(){l(H)&&("w"!==F&&"h"!==F||(q="min-"+("w"===F?"width":"height")+":"+H))},max:function(){if("w"===F){var e=c("xs!sm!md!lg!xl",H);e>-1?q="max-width:"+(4*e+20)+"rem":l(H)&&(q=H.endsWith("xl")?"max-width:"+(8*parseInt(H)+24)+"rem":"max-width:"+H)}else"h"===F&&l(H)&&(q="max-height:"+H)},tracking:function(){l(F)&&(q="letter-spacing:"+F)},leading:function(){a(F)?q="line-height:"+.25*Number(F)+"rem":l(F)&&(q="line-height:"+F)},placeholder:function(){J.push("::placeholder"),ee("color")},align:function(){f("baseline!top!middle!bottom!text-top!text-bottom",G)&&(q="vertical-align:"+G)},bg:function(){G=G.replace("-"," "),f("bottom!center!left!left bottom!left top!right!right bottom!right top!top",G)?q="background-position:"+G:f("repeat!no-repeat!repeat-x!repeat-y",G)?q="background-repeat:"+G:f("repeat-round!repeat-space",G)?q="background-repeat:"+H:f("auto!cover!contain",G)?q="background-size:"+G:f("fixed!local!scroll",F)?q="background-attachment:"+F:ee("background-color")},rounded:function(){var e,t=X.indexOf(B);if(l(B)?(e=B,t=9):5===t?e="9999px":t>-1?e=.125*t+"rem":(!F||Z[F]||f("t!b",F[0])&&f("r!l",F[1]))&&(e="0.25rem"),e){var r=Z[F[0]];!F||!H&&t>-1?q="border-radius:"+e:f("t!b",F)?(K=1,q="border-"+r+"-left-radius:"+e+";border-"+r+"-right-radius:"+e):f("l!r",F)?(K=1,q="border-top-"+r+"-radius:"+e+";border-bottom-"+r+"-radius:"+e):(K=2,q="border-"+r+"-"+Z[F[1]]+"-radius:"+e)}},border:function(){var e=Z[F];H&&e?a(H)?(K=1,q="border-"+e+"-width:"+H+"px"):l(H)&&(q="border-"+e+"-width:"+H):f("solid!dashed!dotted!double!none",F)?q="border-style:"+F:e?(K=1,q="border-"+e+"-width:1px"):a(F)?q="border-width:"+F+"px":l(F)?q="border-width:"+F:ee("border-color")},opacity:function(){a(F)&&(q="opacity:"+100/F)},transition:function(){var e=function(e){return"-webkit-transition-property:"+e+";-o-transition-property:"+e+";transition-property:"+e},t=function(e){return"-webkit-transition-property:-webkit-"+e+";transition-property:-webkit-"+e+";-o-transition-property:"+e+";transition-property:"+e+";transition-property:"+e+",-webkit-"+e};F?"colors"===F?q=e("background-color,border-color,color,fill,stroke"):"shadow"===F?q=t("box-shadow"):"transform"===F?q=t("transform"):F&&(q=e(F)):q=(q="-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform").replace(/S/g,"background-color,border-color,color,fill,stroke,opacity,")},duration:re,delay:re,ease:function(){var e=function(e){return"-webkit-transition-timing-function:"+e+";-o-transition-timing-function:"+e+";transition-timing-function:"+e};"in"===G?q=e("cubic-bezier(0.4,0,1,1)"):"out"===G?q=e("cubic-bezier(0,0,0.2,1)"):"in-out"===G?q=e("cubic-bezier(0.4,0,0.2,1)"):"linear"===G&&(q=e("linear"))},scale:function(){if(a(B)){var e=B/100;f("x!y",F)?(K=1,q="--transform-scale-"+F+":"+e):q="--transform-scale-x:"+e+";--transform-scale-y:"+e}},rotate:function(){a(F)&&(q="--transform-rotate:"+Y+F+"deg")},translate:function(){if(f("x!y",F)){if("px"===H)H="1px";else if("full"===H)H="100%";else if(H.includes("/")){var e=H.split("/");2===e.length&&(H=Number(e[0])/Number(e[1])+"%")}l(H)&&(q="--transform-translate-"+F+":"+d(H))}},skew:function(){f("x!y",F)&&a(H)&&(q="--transform-skew-"+F+":"+(Y+H)+"deg")},transform:function(){var e="translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))";q="-webkit-transform:"+e+";-ms-transform:"+e+";transform:"+e},origin:function(){f("center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left",G)&&(G=G.replace("-"," "),q="-webkit-transform-origin:"+G+";-ms-transform-origin:"+G+";transform-origin:"+G)},cursor:function(){f("auto!default!pointer!wait!text!move!not-allowed",G)&&(q="cursor:"+G)},shadow:function(){var e=p({xs:"0 0 0 1pxR.05)",sm:"0 1px 2px 0R.05)","":"0 1px 3px 0R.1), 0 1px 2px 0R.06)",md:"0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)",lg:"0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)",xl:"0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)","2xl":"0 25px 50px -12pxR.25)",inner:"inset 0 2px 4px 0R.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"})[F];e&&(e=e.replace(/R/g," rgba(0, 0, 0, 0"),console.log(e),q="-webkit-box-shadow:"+e+";box-shadow:"+e)},outline:function(){F&&(q="outline:"+G.replace("-"," "))},pointer:function(){F&&(q="pointer-events:"+F)},select:function(){f("none!auto!text!contain!all!inherit!initial!unset",G)&&(q="-webkit-user-select:"+G+";-moz-user-select:"+G+";-ms-user-select:"+G+";user-select:"+G)},fill:function(){F&&(q="fill:"+F)},stroke:function(){a(F)?q="stroke-width:"+F:F&&(q="stroke:"+F)},items:function(){f("stretch!start!center!end!baseline",G)&&(q="-webkit-box-align:"+G+";-ms-flex-align:"+G+";align-items:"+(f("start!end",G)?"flex-":"")+G)},content:function(){if(f("start!center!end!between!around")){var e=G;f("start!end",G)?G="flex-"+G:"between"===G?(e="justify",G="space-"+G):"around"===G&&(e="distribute",G="space-"+G),q="-ms-flex-line-pack:"+e+";align-content:"+G}},self:function(){if(f("auto!start!center!end!stretch",G)){var e="-ms-grid-row-align:"+G+";",t=G;f("start!end",G)&&(G="flex-"+G,e=""),q="-ms-flex-item-align:"+t+";"+e+"align-self:"+G}},justify:function(){if(f("start!center!end!between!around",G)){var e=G;"between"===e?(e="justify",G="space-"+G):f("start!end")&&(G="flex-"+G);var t="-webkit-box-pack:"+e+";";"around"===e&&(e="distribute",G="space-"+G,t=""),q=t+"-ms-flex-pack:"+e+";justify-content:"+G}}}),ie=/[^:]+::?|.+/g,ne=/[.*+\-?^${}()|[\]\\]/g;function ae(){K=0,q="",Y="",y=v;var e=b.separator;":"!==e&&(v=v.replace(new RegExp(e.replace(ne,"\\$&"),"g"),":")),J=v.match(ie),v=J.pop(),J=J.map(function(e){return e.endsWith("::")?"::"+e.slice(0,-2):":"+e.slice(0,-1)});var t=m.get(v);if(t){var o=t[0],n=t[1],s=[y.slice(0,y.lastIndexOf(v)),J],c=s[0],f=s[1];if(i=y,"string"==typeof o)for(var d,p=r(o.trim().replace(/\s\s+/g," ").split(" "));!(d=p()).done;)v=c+(v=d.value),ae();return J=f,n&&"string"==typeof n&&de(n),void(i="")}if("-"===v[0]&&(Y="-",v=v.slice(1)),"string"==typeof b.prefix){if(!v.startsWith(b.prefix))return void ce();v=v.slice(b.prefix.length)}var u=v.split("-");L=u[0];var g=u[1];F=void 0===g?"":g;var x=u[2];H=void 0===x?"":x;var w,h=u[3];if(_=void 0===h?"":h,B=u[u.length-1],D=u.slice(0,-1).join("-"),G=u.slice(1).join("-"),!(q=S[v])&&(w=oe[L])?w():L.length<3&&!H&&function(){var e;if("px"===F)e=Y+"1px";else if("full"===F)e="100%";else if("screen"===F)"w"===L?e="100vw":"h"===L&&(e="100vh");else if("auto"===F)e="auto";else if(a(F))e=Y+.25*Number(F)+"rem";else if(F.indexOf("/")>-1){var t=F.split("/"),r=t[0],o=t[1];a(r)&&a(o)&&(e=Y+(Number(r)/Number(o)).toFixed(6)+"%")}else l(F)&&(e=Y+F);var i=R[L[0]],n=Z[L[1]];e&&i&&("x"===L[1]?(K=1,q=i+"-right:"+e+";"+i+"-left:"+e):"y"===L[1]?(K=1,q=i+"-top:"+e+";"+i+"-bottom:"+e):n?(K=2,q=i+"-"+n+":"+e):q=i+":"+e)}(),q)de(q);else if("container"===v){de("width:100%");for(var k=0,z=Object.entries(b.screens);k0){for(var e,t=[],o=r(document.styleSheets);!(e=o()).done;)t.push.apply(t,le(e.value));var i=J[0].slice(1);if(b.screens[i])for(var n,a=Object.entries(b.screens),l=r(t);!(n=l()).done;){var s=n.value,c=s[0],f=s[1],d=se.get(f);if(!d){d=p();for(var u,m=r(a);!(u=m()).done;){var g=u.value;d[g[0]]=f.cssRules[f.insertRule("@media(min-width:"+g[1]+"){}",f.cssRules.length)]}se[f]=d}de(c,d[i])}else for(var x,w=r(t);!(x=w()).done;){var h=x.value;de(h[0],h[1])}}},fe=p({"::placeholder":"::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P".replace(/P/g,"placeholder"),"::selection":":::-moz-selection"});function de(e,t){var o="",n=y,a="default",l="",c=function(){try{t.insertRule(l+"."+n+o+"{"+e+"}",t.cssRules.length)}catch(e){}};if(i&&(n=i,a="custom"),n=n.replace(/[.:()&@~*^$%,#]/g,"\\$&"),b.important&&(!0===b.important?e=e.replace(/;/g,"!important;")+"!important":"string"==typeof b.important&&(l=b.important+" ")),J.length>0){var d=j.get(a+J[0].slice(1)+K);d&&(t=t||d,J.shift())}if(t||(t=j.get(a+K)),J.length>0){for(var p=0,u=[].concat(J);pe.length)&&(t=e.length);for(var r=0,o=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(o=e[Symbol.iterator]()).next.bind(o)}var o,i,n,a=function(e){return!isNaN(e)},l=function(e){return!isNaN(parseInt(e))},s=function(e){return e.split("!")},c=function(e,t){return s(e).indexOf(t)},f=function(e,t){return s(e).includes(t)},d=function(e){return a(e)?Y+.25*Number(e)+"rem":Y+e},p=function(e){return void 0===e&&(e={}),Object.assign(Object.create(null),e)},u=new Map,m=new Map,b=p({separator:":",screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),g=function(e){return"[object Object]"===Object.prototype.toString.call(e)},x=function(e){if("string"!=typeof e)throw Error("Hex value is not a hex string.");if(e.startsWith("#")||(e="#"+e),e=4===e.length?e.slice(1).split("").map(function(e){return e+e}).join(""):e.slice(1),!/^[0-9a-f]{6}$/i.test(e))throw Error("Incorrect hex color format.");return e},w=function(e){if(!g(e))throw Error("Config value must be an object.")},h=new Map;o=0===document.styleSheets.length?document.head.appendChild(document.createElement("style")).sheet:document.styleSheets[0];for(var v,y,k,j=new Map,z=function(e,t){for(var r=t?"(min-width:"+t+")":"",i=0;i<3;i++)j.set(e+i,o.cssRules[o.insertRule("@media"+r+"{}",o.cssRules.length)])},R=p({p:"padding",m:"margin",h:"height",z:"z-index",w:"width"}),S=p(),N=r(s('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji!font-serif|font-family:Georgia,Cambria,"Times New Roman",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!sticky|position:-webkit-sticky;position:sticky'));!(k=N()).done;){var O=k.value.split("|");S[O[0]]=O[1]}for(var E,C=r(s("float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none"));!(E=C()).done;){var I=E.value;S[I]=I.replace("-",":")}for(var M,A=r(s("block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row"));!(M=A()).done;){var W=M.value,T=W;"flex"===W?T="-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex":"inline-flex"===W?T="-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex":"grid"===W?T="-ms-grid;display:grid":"inline-grid"===W&&(T="-ms-inline-grid;display:inline-grid"),S[W]="display:"+T}for(var U,$=r(s("static!fixed!absolute!relative"));!(U=$()).done;){var P=U.value;S[P]="position:"+P}var L,F,H,_,B,D,G,Y,q,J,K,Q=s("f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459"),V=s("gray!red!orange!yellow!green!teal!blue!indigo!purple!pink"),X=s("none!sm!nm!md!lg!full"),Z=p({l:"left",r:"right",t:"top",b:"bottom"}),ee=function(e){if("opacity"===F&&a(H))q="--"+e+"-opacity:"+("100"===H?"1":H/100);else{var t=h.get(G);if(t)H&&g(t)&&(t=t[H]);else if(H){var r=V.indexOf(F);t=Q[9*r+(Number(H[0])-1)]}else if(F&&F.startsWith("#"))try{t=x(F)}catch(e){}if(t){var o=e+":rgba("+parseInt(t.slice(0,2),16)+","+parseInt(t.slice(2,4),16)+","+parseInt(t.slice(4,6),16)+",var(--"+e+"-opacity,1))";q=e+":#"+t+";"+o}else q="current"===F?e+":currentColor":e+":"+G}},te=function(){if(!_&&(f("auto!initial!inherit",B)||l(B))){var e=Y+B;H?(K=1,"y"===F?q="top:"+e+";bottom:"+e:"x"===F&&(q="left:"+e+";right:"+e)):F&&("inset"===L?q="top:"+e+";right:"+e+";bottom:"+e+";left:"+e:(K=2,q=L+":"+e))}},re=function(){var e;a(F)?e=F+"ms":l(F)&&(e=F),e&&(q="-webkit-transition-"+L+":"+e+";-o-transition-"+L+":"+e+";transition-"+L+":"+e)},oe=p({object:function(){f("contain!cover!fill!none!bottom",G)?q="-o-object-fit:"+G+";object-fit:"+G:f("bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top",G)&&(G=G.replace("-"," "),q="-o-object-position:"+G+";object-position:"+G)},overflow:function(){f("x!y",F)&&(K=1),q=D+":"+B},clearfix:function(){y="clearfix::after",q='content:"";display:table;clear:both'},text:function(){var e=c("xs!sm!base!lg!xl",F);if(e>-1)q="font-size:"+(.75+.125*e)+"rem";else if(F.endsWith("xl")){var t=F.split("x")[0];a(t)&&(q="font-size:"+(Number(t)-2)+"rem")}else f("left!center!right!justify",G)?q="text-align:"+G:ee("color")},font:function(){var e=c("hairline!thin!light!normal!medium!semibold!bold!extrabold!black",F);e>-1?q="font-weight:"+100*(1+e):a(F)&&(q="font-weight:"+F)},whitespace:function(){f("normal!pre!pre-line!pre-wrap",G)&&(q="white-space:"+G)},inset:te,top:te,right:te,bottom:te,left:te,flex:function(){var e=function(e,t,r){return void 0===t&&(t=1),void 0===r&&(r="0%"),"-webkit-box-flex:"+e+";-ms-flex:"+e+" "+t+" "+r+";flex:"+e+" "+t+" "+r};if(f("row!row-reverse!col!col-reverse",G))G=G.replace("col","column"),q="-webkit-box-orient:"+("row"===F?"horizontal":"vertical")+";-webkit-box-direction:"+("reverse"===H?H:"normal")+";-ms-flex-direction:"+G+";flex-direction:"+G;else if(f("no-wrap!flex-wrap!wrap-reverse",G))"no-wrap"===G&&(G="nowrap"),q="-ms-flex-wrap:"+G+";flex-wrap:"+G;else if(f("grow!shrink",F)){K=1;var t=H||1;q="grow"===F?"-webkit-box-flex:"+t+";-ms-flex-positive:"+t+";flex-grow:"+t:"-ms-flex-negative:"+t+";flex-shrink:"+t}else q="initial"===G?e(0,1,"auto"):"auto"===G?e(1,1,"auto"):"none"===G?"-webkit-box-flex:0;-ms-flex:none;flex:none":_?e(F,H,_):H?e(F,H):e(F)},order:function(){if(a(F)){var e=Y+F;q="-webkit-box-ordinal-group:"+(Number(e)+1)+";-ms-flex-order:"+e+";order:"+e}},grid:function(){a(H)&&(q=p({cols:"-ms-grid-columns:(minmax(0,1fr))["+H+"];grid-template-columns: repeat("+H+", minmax(0, 1fr))",span:"-ms-grid-column-span:"+H+";grid-column: span "+H+" / span "+H,start:"-ms-grid-column:"+H+";grid-column-start:"+H,end:"-ms-grid-column-span:"+H+";grid-column-end:"+H,rows:"-ms-grid-rows:(minmax(0,1fr))["+H+"];grid-template-rows: repeat("+H+", minmax(0, 1fr))"})[F])},row:function(){l(H)&&(q=p({span:"-ms-grid-row-span:"+H+";grid-row: span "+H+" / span "+H,start:"-ms-grid-row:"+H+";grid-row-start:"+H,end:"-ms-grid-row-span:"+H+";grid-row-end:"+H,gap:"row-gap:"+d(H)})[F])},col:function(){if(a(H)&&("span"===F?q="-ms-grid-column-span:"+H+";grid-column:span "+H+" / span "+H+";":"start"===F?q="-ms-grid-column:"+H+";grid-column-start:"+H:"end"===F&&(q="-ms-grid-column-span:"+H+";grid-column-end:"+H)),l(H)&&"gap"===F){var e="px"===H?"1px":d(H);q="-webkit-column-gap:"+e+";-moz-column-gap:"+e+"column-gap:"+e}},gap:function(){l(F)&&(q="gap:"+d(F))},space:function(){if(J=[">:not(template)~:not(template)"],"px"===H&&(H="1px"),H)if(l(H)){var e=d(H);"x"===F?q="margin-right:calc("+e+"*var(--space-x-reverse,0));margin-left:calc("+e+"*(1 - var(--space-x-reverse,0)))":"y"===F&&(q="margin-top:calc("+e+"*(1 - var(--space-y-reverse,0)));margin-bottom:calc("+e+"*var(--space-y-reverse,0))")}else"reverse"===H&&(q="--space-"+F+"-reverse:1")},divide:function(){var e;J=[">:not(template)~:not(template)"],K=1,_||(a(H)?e=H+"px":l(H)?e=H:"reverse"===H?q="--divide-"+F+"-reverse:1":F&&(e="1px"),e&&("y"===F?q="border-top-width:calc("+e+"*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc("+e+"*var(--divide-y-reverse,0)))":"x"===F&&(q="border-right-width:calc("+e+"*var(--divide-x-reverse,0));border-left-width:calc("+e+"*calc(1 - var(--divide-x-reverse,0)))"))),q||ee("border-color")},min:function(){l(H)&&("w"!==F&&"h"!==F||(q="min-"+("w"===F?"width":"height")+":"+H))},max:function(){if("w"===F){var e=c("xs!sm!md!lg!xl",H);e>-1?q="max-width:"+(4*e+20)+"rem":l(H)&&(q=H.endsWith("xl")?"max-width:"+(8*parseInt(H)+24)+"rem":"max-width:"+H)}else"h"===F&&l(H)&&(q="max-height:"+H)},tracking:function(){l(F)&&(q="letter-spacing:"+F)},leading:function(){a(F)?q="line-height:"+.25*Number(F)+"rem":l(F)&&(q="line-height:"+F)},placeholder:function(){J.push("::placeholder"),ee("color")},align:function(){f("baseline!top!middle!bottom!text-top!text-bottom",G)&&(q="vertical-align:"+G)},bg:function(){G=G.replace("-"," "),f("bottom!center!left!left bottom!left top!right!right bottom!right top!top",G)?q="background-position:"+G:f("repeat!no-repeat!repeat-x!repeat-y",G)?q="background-repeat:"+G:f("repeat-round!repeat-space",G)?q="background-repeat:"+H:f("auto!cover!contain",G)?q="background-size:"+G:f("fixed!local!scroll",F)?q="background-attachment:"+F:ee("background-color")},rounded:function(){var e,t=X.indexOf(B);if(l(B)?(e=B,t=9):5===t?e="9999px":t>-1?e=.125*t+"rem":(!F||Z[F]||f("t!b",F[0])&&f("r!l",F[1]))&&(e="0.25rem"),e){var r=Z[F[0]];!F||!H&&t>-1?q="border-radius:"+e:f("t!b",F)?(K=1,q="border-"+r+"-left-radius:"+e+";border-"+r+"-right-radius:"+e):f("l!r",F)?(K=1,q="border-top-"+r+"-radius:"+e+";border-bottom-"+r+"-radius:"+e):(K=2,q="border-"+r+"-"+Z[F[1]]+"-radius:"+e)}},border:function(){var e=Z[F];H&&e?a(H)?(K=1,q="border-"+e+"-width:"+H+"px"):l(H)&&(q="border-"+e+"-width:"+H):f("solid!dashed!dotted!double!none",F)?q="border-style:"+F:e?(K=1,q="border-"+e+"-width:1px"):a(F)?q="border-width:"+F+"px":l(F)?q="border-width:"+F:ee("border-color")},opacity:function(){a(F)&&(q="opacity:"+F/100)},transition:function(){var e=function(e){return"-webkit-transition-property:"+e+";-o-transition-property:"+e+";transition-property:"+e},t=function(e){return"-webkit-transition-property:-webkit-"+e+";transition-property:-webkit-"+e+";-o-transition-property:"+e+";transition-property:"+e+";transition-property:"+e+",-webkit-"+e};F?"colors"===F?q=e("background-color,border-color,color,fill,stroke"):"shadow"===F?q=t("box-shadow"):"transform"===F?q=t("transform"):F&&(q=e(F)):q=(q="-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform").replace(/S/g,"background-color,border-color,color,fill,stroke,opacity,")},duration:re,delay:re,ease:function(){var e=function(e){return"-webkit-transition-timing-function:"+e+";-o-transition-timing-function:"+e+";transition-timing-function:"+e};"in"===G?q=e("cubic-bezier(0.4,0,1,1)"):"out"===G?q=e("cubic-bezier(0,0,0.2,1)"):"in-out"===G?q=e("cubic-bezier(0.4,0,0.2,1)"):"linear"===G&&(q=e("linear"))},scale:function(){if(a(B)){var e=B/100;f("x!y",F)?(K=1,q="--transform-scale-"+F+":"+e):q="--transform-scale-x:"+e+";--transform-scale-y:"+e}},rotate:function(){a(F)&&(q="--transform-rotate:"+Y+F+"deg")},translate:function(){if(f("x!y",F)){if("px"===H)H="1px";else if("full"===H)H="100%";else if(H.includes("/")){var e=H.split("/");2===e.length&&(H=Number(e[0])/Number(e[1])+"%")}l(H)&&(q="--transform-translate-"+F+":"+d(H))}},skew:function(){f("x!y",F)&&a(H)&&(q="--transform-skew-"+F+":"+(Y+H)+"deg")},transform:function(){var e="translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))";q="-webkit-transform:"+e+";-ms-transform:"+e+";transform:"+e},origin:function(){f("center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left",G)&&(G=G.replace("-"," "),q="-webkit-transform-origin:"+G+";-ms-transform-origin:"+G+";transform-origin:"+G)},cursor:function(){f("auto!default!pointer!wait!text!move!not-allowed",G)&&(q="cursor:"+G)},shadow:function(){var e=p({xs:"0 0 0 1pxR.05)",sm:"0 1px 2px 0R.05)","":"0 1px 3px 0R.1), 0 1px 2px 0R.06)",md:"0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)",lg:"0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)",xl:"0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)","2xl":"0 25px 50px -12pxR.25)",inner:"inset 0 2px 4px 0R.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)",none:"none"})[F];e&&(e=e.replace(/R/g," rgba(0, 0, 0, 0"),q="-webkit-box-shadow:"+e+";box-shadow:"+e)},outline:function(){F&&(q="outline:"+G.replace("-"," "))},pointer:function(){F&&(q="pointer-events:"+F)},select:function(){f("none!auto!text!contain!all!inherit!initial!unset",G)&&(q="-webkit-user-select:"+G+";-moz-user-select:"+G+";-ms-user-select:"+G+";user-select:"+G)},fill:function(){F&&(q="fill:"+F)},stroke:function(){a(F)?q="stroke-width:"+F:F&&(q="stroke:"+F)},items:function(){f("stretch!start!center!end!baseline",G)&&(q="-webkit-box-align:"+G+";-ms-flex-align:"+G+";align-items:"+(f("start!end",G)?"flex-":"")+G)},content:function(){if(f("start!center!end!between!around")){var e=G;f("start!end",G)?G="flex-"+G:"between"===G?(e="justify",G="space-"+G):"around"===G&&(e="distribute",G="space-"+G),q="-ms-flex-line-pack:"+e+";align-content:"+G}},self:function(){if(f("auto!start!center!end!stretch",G)){var e="-ms-grid-row-align:"+G+";",t=G;f("start!end",G)&&(G="flex-"+G,e=""),q="-ms-flex-item-align:"+t+";"+e+"align-self:"+G}},justify:function(){if(f("start!center!end!between!around",G)){var e=G;"between"===e?(e="justify",G="space-"+G):f("start!end")&&(G="flex-"+G);var t="-webkit-box-pack:"+e+";";"around"===e&&(e="distribute",G="space-"+G,t=""),q=t+"-ms-flex-pack:"+e+";justify-content:"+G}}}),ie=/[^:]+::?|.+/g,ne=/[.*+\-?^${}()|[\]\\]/g;function ae(){K=0,q="",Y="",y=v;var e=b.separator;":"!==e&&(v=v.replace(new RegExp(e.replace(ne,"\\$&"),"g"),":")),J=v.match(ie),v=J.pop(),J=J.map(function(e){return e.endsWith("::")?"::"+e.slice(0,-2):":"+e.slice(0,-1)});var t=m.get(v);if(t){var o=t[0],n=t[1],s=[y.slice(0,y.lastIndexOf(v)),J],c=s[0],f=s[1];if(i=y,"string"==typeof o)for(var d,p=r(o.trim().replace(/\s\s+/g," ").split(" "));!(d=p()).done;)v=c+(v=d.value),ae();return J=f,n&&"string"==typeof n&&de(n),void(i="")}if("-"===v[0]&&(Y="-",v=v.slice(1)),"string"==typeof b.prefix){if(!v.startsWith(b.prefix))return void ce();v=v.slice(b.prefix.length)}var u=v.split("-");L=u[0];var g=u[1];F=void 0===g?"":g;var x=u[2];H=void 0===x?"":x;var w,h=u[3];if(_=void 0===h?"":h,B=u[u.length-1],D=u.slice(0,-1).join("-"),G=u.slice(1).join("-"),!(q=S[v])&&(w=oe[L])?w():L.length<3&&!H&&function(){var e;if("px"===F)e=Y+"1px";else if("full"===F)e="100%";else if("screen"===F)"w"===L?e="100vw":"h"===L&&(e="100vh");else if("auto"===F)e="auto";else if(a(F))e=Y+.25*Number(F)+"rem";else if(F.indexOf("/")>-1){var t=F.split("/"),r=t[0],o=t[1];a(r)&&a(o)&&(e=Y+(Number(r)/Number(o)).toFixed(6)+"%")}else l(F)&&(e=Y+F);var i=R[L[0]],n=Z[L[1]];e&&i&&("x"===L[1]?(K=1,q=i+"-right:"+e+";"+i+"-left:"+e):"y"===L[1]?(K=1,q=i+"-top:"+e+";"+i+"-bottom:"+e):n?(K=2,q=i+"-"+n+":"+e):q=i+":"+e)}(),q)de(q);else if("container"===v){de("width:100%");for(var k=0,z=Object.entries(b.screens);k0){for(var e,t=[],o=r(document.styleSheets);!(e=o()).done;)t.push.apply(t,le(e.value));var i=J[0].slice(1);if(b.screens[i])for(var n,a=Object.entries(b.screens),l=r(t);!(n=l()).done;){var s=n.value,c=s[0],f=s[1],d=se.get(f);if(!d){d=p();for(var u,m=r(a);!(u=m()).done;){var g=u.value;d[g[0]]=f.cssRules[f.insertRule("@media(min-width:"+g[1]+"){}",f.cssRules.length)]}se[f]=d}de(c,d[i])}else for(var x,w=r(t);!(x=w()).done;){var h=x.value;de(h[0],h[1])}}},fe=p({"::placeholder":"::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P".replace(/P/g,"placeholder"),"::selection":":::-moz-selection"});function de(e,t){var o="",n=y,a="default",l="",c=function(){try{t.insertRule(l+"."+n+o+"{"+e+"}",t.cssRules.length)}catch(e){}};if(i&&(n=i,a="custom"),n=n.replace(/[.:()&@~*^$%,#]/g,"\\$&"),b.important&&(!0===b.important?e=e.replace(/;/g,"!important;")+"!important":"string"==typeof b.important&&(l=b.important+" ")),J.length>0){var d=j.get(a+J[0].slice(1)+K);d&&(t=t||d,J.shift())}if(t||(t=j.get(a+K)),J.length>0){for(var p=0,u=[].concat(J);p !isNaN(v)\r\nlet isStartNum = (v) => !isNaN(parseInt(v))\r\nlet split = (s) => s.split('!')\r\nlet indexOf = (s, v) => split(s).indexOf(v)\r\nlet includes = (s, v) => split(s).includes(v)\r\nlet ifRemTo = (v) => isNum(v) ? negative + Number(v) * 0.25 + 'rem' : negative + v\r\nlet newObject = (o = {}) => Object.assign(Object.create(null), o)\r\nlet classesCache = new Map()\r\nlet customCache = new Map()\r\nlet parentSheet\r\nlet config = newObject({ separator: ':', screens: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px' } })\r\nlet componentName\r\nlet addedScreens\r\n\r\nexport let component = (name, classes, props) => {\r\n if (typeof name !== 'string') {\r\n throw Error('Component must have a name.')\r\n }\r\n name = name.trim()\r\n if (classesCache.get(name)) {\r\n throw Error(`Class '${name}' was already processed.`)\r\n }\r\n customCache.set(name, [classes, props])\r\n}\r\n\r\nlet isObject = value => Object.prototype.toString.call(value) === '[object Object]'\r\nlet hex6 = value => {\r\n if (typeof value !== 'string') {\r\n throw Error('Hex value is not a hex string.')\r\n }\r\n if (!value.startsWith('#')) {\r\n value = '#' + value\r\n }\r\n value = value.length === 4 ? value.slice(1).split('').map((v) => v + v).join('') : value.slice(1)\r\n if (!/^[0-9a-f]{6}$/i.test(value)) {\r\n throw Error('Incorrect hex color format.')\r\n }\r\n return value\r\n}\r\n\r\nlet errorNotObject = value => {\r\n if (!isObject(value)) {\r\n throw Error('Config value must be an object.')\r\n }\r\n}\r\n\r\nlet customColors = new Map()\r\n\r\nexport let configure = (conf = newObject()) => {\r\n for (let s of split('separator!prefix')) {\r\n if (conf[s] !== undefined && typeof conf[s] !== 'string') {\r\n throw Error(`config.${s} must be a string.`)\r\n }\r\n }\r\n if (conf.screens) {\r\n errorNotObject(conf.screens)\r\n }\r\n if (conf.colors) {\r\n errorNotObject(conf.colors)\r\n for (let [key1, value1] of Object.entries(conf.colors)) {\r\n if (isObject(value1)) {\r\n for (let [key2, value2] of Object.entries(value1)) {\r\n customColors.set(key1 + '-' + key2, hex6(value2))\r\n }\r\n } else {\r\n customColors.set(key1, hex6(value1))\r\n }\r\n }\r\n } else {\r\n Object.assign(config, conf)\r\n }\r\n}\r\n\r\nif (document.styleSheets.length === 0) {\r\n parentSheet = document.head.appendChild(document.createElement('style')).sheet\r\n} else {\r\n parentSheet = document.styleSheets[0]\r\n}\r\n\r\nlet media = new Map()\r\nlet setMedia = (prefix, size) => {\r\n let condition = size ? `(min-width:${size})` : ''\r\n for (let i = 0; i < 3; i++) {\r\n media.set(prefix + i, parentSheet.cssRules[parentSheet.insertRule(`@media${condition}{}`, parentSheet.cssRules.length)])\r\n }\r\n}\r\n\r\nlet cls\r\nlet originalClass\r\n\r\nlet processClasses = (classes) => {\r\n if (!addedScreens) {\r\n addedScreens = true\r\n let entries = Object.entries(config.screens)\r\n for (const m of split('custom!default')) {\r\n setMedia(m)\r\n for (const [key, size] of entries) {\r\n setMedia(m + key, size)\r\n }\r\n }\r\n }\r\n if (typeof classes === 'string') {\r\n classes = classes.trim()\r\n if (!classesCache.has(classes)) {\r\n for (cls of classes.replace(/\\s\\s+/g, ' ').split(' ')) {\r\n if (classesCache.has(cls)) {\r\n continue\r\n }\r\n classesCache.set(cls, true)\r\n processClass()\r\n }\r\n classesCache.set(classes, true)\r\n }\r\n }\r\n}\r\nexport default processClasses\r\n\r\nlet formatters = newObject({\r\n p: 'padding',\r\n m: 'margin',\r\n h: 'height',\r\n z: 'z-index',\r\n w: 'width'\r\n})\r\n\r\nlet classNames = newObject()\r\n\r\n// direct map from class to values\r\nfor (let c of split('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji!font-serif|font-family:Georgia,Cambria,\"Times New Roman\",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace!sticky|position:-webkit-sticky;position:sticky')) {\r\n let [k, v] = c.split('|')\r\n classNames[k] = v\r\n}\r\n\r\n// class to value\r\nfor (let c of split('float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none')) {\r\n classNames[c] = c.replace('-', ':')\r\n}\r\n\r\n// display\r\nfor (let c of split('block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row')) {\r\n let p = c\r\n if (c === 'flex') {\r\n p = '-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex'\r\n } else if (c === 'inline-flex') {\r\n p = '-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex'\r\n } else if (c === 'grid') {\r\n p = '-ms-grid;display:grid'\r\n } else if (c === 'inline-grid') {\r\n p = '-ms-inline-grid;display:inline-grid'\r\n }\r\n classNames[c] = 'display:' + p\r\n}\r\n\r\n// position\r\nfor (let c of split('static!fixed!absolute!relative')) {\r\n classNames[c] = 'position:' + c\r\n}\r\n\r\nlet colors = split('f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459')\r\n\r\nlet colorNames = split('gray!red!orange!yellow!green!teal!blue!indigo!purple!pink')\r\n\r\nlet roundedSize = split('none!sm!nm!md!lg!full')\r\n\r\nlet edge = newObject({ l: 'left', r: 'right', t: 'top', b: 'bottom' })\r\n\r\nlet setColor = (type) => {\r\n if (secondPart === 'opacity' && isNum(thirdPart)) {\r\n rule = `--${type}-opacity:` + (thirdPart === '100' ? '1' : thirdPart / 100)\r\n } else {\r\n let color = customColors.get(rest)\r\n if (color) {\r\n if (thirdPart && isObject(color)) {\r\n color = color[thirdPart]\r\n }\r\n } else {\r\n if (thirdPart) {\r\n let colorPos = colorNames.indexOf(secondPart)\r\n color = colors[colorPos * 9 + (Number(thirdPart[0]) - 1)]\r\n } else if (secondPart && secondPart.startsWith('#')) {\r\n try {\r\n color = hex6(secondPart)\r\n } catch {}\r\n }\r\n }\r\n if (color) {\r\n let rgba = type + `:rgba(${parseInt(color.slice(0, 2), 16)},${parseInt(color.slice(2, 4), 16)},${parseInt(color.slice(4, 6), 16)},var(--${type}-opacity,1))`\r\n rule = type + `:#${color};` + rgba\r\n } else if (secondPart === 'current') {\r\n rule = type + ':' + 'currentColor'\r\n } else {\r\n rule = type + ':' + rest\r\n // console.log(rule)\r\n }\r\n }\r\n}\r\n\r\nlet setPosition = () => {\r\n if (!fourthPart && (includes('auto!initial!inherit', lastPart) || isStartNum(lastPart))) {\r\n let v = negative + lastPart\r\n if (thirdPart) {\r\n sheetLevel = 1\r\n if (secondPart === 'y') {\r\n rule = `top:${v};bottom:` + v\r\n } else if (secondPart === 'x') {\r\n rule = `left:${v};right:` + v\r\n }\r\n } else if (secondPart) {\r\n if (firstPart === 'inset') {\r\n rule = `top:${v};right:${v};bottom:${v};left:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = firstPart + ':' + v\r\n }\r\n }\r\n }\r\n}\r\n\r\nlet timeProp = () => {\r\n let v\r\n if (isNum(secondPart)) {\r\n v = secondPart + 'ms'\r\n } else if (isStartNum(secondPart)) {\r\n v = secondPart\r\n }\r\n if (v) {\r\n rule = `-webkit-transition-${firstPart}:${v};-o-transition-${firstPart}:${v};transition-${firstPart}:` + v\r\n }\r\n}\r\n\r\nlet cls2process = newObject({\r\n object: () => {\r\n if (includes('contain!cover!fill!none!bottom', rest)) {\r\n rule = `-o-object-fit:${rest};object-fit:` + rest\r\n } else if (includes('bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-o-object-position:${rest};object-position:` + rest\r\n }\r\n },\r\n overflow: () => {\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n }\r\n rule = partsWithoutEnd + ':' + lastPart\r\n },\r\n clearfix: () => {\r\n originalClass = 'clearfix::after'\r\n rule = 'content:\"\";display:table;clear:both'\r\n },\r\n text: () => {\r\n let pos = indexOf('xs!sm!base!lg!xl', secondPart)\r\n if (pos > -1) {\r\n rule = `font-size:${0.75 + (0.125 * pos)}rem`\r\n } else if (secondPart.endsWith('xl')) {\r\n let [num] = secondPart.split('x')\r\n if (isNum(num)) {\r\n rule = `font-size:${Number(num) - 2}rem`\r\n }\r\n } else if (includes('left!center!right!justify', rest)) {\r\n rule = 'text-align:' + rest\r\n } else {\r\n setColor('color')\r\n }\r\n },\r\n font: () => {\r\n let pos = indexOf('hairline!thin!light!normal!medium!semibold!bold!extrabold!black', secondPart)\r\n if (pos > -1) {\r\n rule = 'font-weight:' + (100 * (1 + pos))\r\n } else if (isNum(secondPart)) {\r\n rule = 'font-weight:' + secondPart\r\n }\r\n },\r\n whitespace: () => {\r\n if (includes('normal!pre!pre-line!pre-wrap', rest)) {\r\n rule = 'white-space:' + rest\r\n }\r\n },\r\n inset: setPosition,\r\n top: setPosition,\r\n right: setPosition,\r\n bottom: setPosition,\r\n left: setPosition,\r\n flex: () => {\r\n let ruleFunc = (v1, v2 = 1, v3 = '0%') => `-webkit-box-flex:${v1};-ms-flex:${v1} ${v2} ${v3};flex:${v1} ${v2} ` + v3\r\n if (includes('row!row-reverse!col!col-reverse', rest)) {\r\n rest = rest.replace('col', 'column')\r\n rule = `-webkit-box-orient:${secondPart === 'row' ? 'horizontal' : 'vertical'};-webkit-box-direction:${thirdPart === 'reverse' ? thirdPart : 'normal'};-ms-flex-direction:${rest};flex-direction:${rest}`\r\n } else if (includes('no-wrap!flex-wrap!wrap-reverse', rest)) {\r\n if (rest === 'no-wrap') {\r\n rest = 'nowrap'\r\n }\r\n rule = `-ms-flex-wrap:${rest};flex-wrap:${rest}`\r\n } else if (includes('grow!shrink', secondPart)) {\r\n sheetLevel = 1\r\n let v = thirdPart || 1\r\n if (secondPart === 'grow') {\r\n rule = `-webkit-box-flex:${v};-ms-flex-positive:${v};flex-grow:${v}`\r\n } else {\r\n rule = `-ms-flex-negative:${v};flex-shrink:${v}`\r\n }\r\n } else if (rest === 'initial') {\r\n rule = ruleFunc(0, 1, 'auto')\r\n } else if (rest === 'auto') {\r\n rule = ruleFunc(1, 1, 'auto')\r\n } else if (rest === 'none') {\r\n rule = '-webkit-box-flex:0;-ms-flex:none;flex:none'\r\n } else if (fourthPart) {\r\n rule = ruleFunc(secondPart, thirdPart, fourthPart)\r\n } else if (thirdPart) {\r\n rule = ruleFunc(secondPart, thirdPart)\r\n } else {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n order: () => {\r\n if (isNum(secondPart)) {\r\n let num = negative + secondPart\r\n rule = `-webkit-box-ordinal-group:${Number(num) + 1};-ms-flex-order:${num};order:` + num\r\n }\r\n },\r\n grid: () => {\r\n if (isNum(thirdPart)) {\r\n rule = newObject({\r\n cols: `-ms-grid-columns:(minmax(0,1fr))[${thirdPart}];grid-template-columns: repeat(${thirdPart}, minmax(0, 1fr))`,\r\n span: `-ms-grid-column-span:${thirdPart};grid-column: span ${thirdPart} / span ` + thirdPart,\r\n start: `-ms-grid-column:${thirdPart};grid-column-start:` + thirdPart,\r\n end: `-ms-grid-column-span:${thirdPart};grid-column-end:` + thirdPart,\r\n rows: `-ms-grid-rows:(minmax(0,1fr))[${thirdPart}];grid-template-rows: repeat(${thirdPart}, minmax(0, 1fr))`\r\n })[secondPart]\r\n }\r\n },\r\n row: () => {\r\n if (isStartNum(thirdPart)) {\r\n rule = newObject({\r\n span: `-ms-grid-row-span:${thirdPart};grid-row: span ${thirdPart} / span ${thirdPart}`,\r\n start: `-ms-grid-row:${thirdPart};grid-row-start:` + thirdPart,\r\n end: `-ms-grid-row-span:${thirdPart};grid-row-end:` + thirdPart,\r\n gap: 'row-gap:' + ifRemTo(thirdPart)\r\n })[secondPart]\r\n }\r\n },\r\n col: () => {\r\n if (isNum(thirdPart)) {\r\n if (secondPart === 'span') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column:span ${thirdPart} / span ${thirdPart};`\r\n } else if (secondPart === 'start') {\r\n rule = `-ms-grid-column:${thirdPart};grid-column-start:${thirdPart}`\r\n } else if (secondPart === 'end') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column-end:${thirdPart}`\r\n }\r\n }\r\n if (isStartNum(thirdPart) && secondPart === 'gap') {\r\n let v = thirdPart === 'px' ? '1px' : ifRemTo(thirdPart)\r\n rule = `-webkit-column-gap:${v};-moz-column-gap:${v}column-gap:` + v\r\n }\r\n },\r\n gap: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'gap:' + ifRemTo(secondPart)\r\n }\r\n },\r\n space: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n }\r\n if (thirdPart) {\r\n if (isStartNum(thirdPart)) {\r\n let v = ifRemTo(thirdPart)\r\n if (secondPart === 'x') {\r\n rule = `margin-right:calc(${v}*var(--space-x-reverse,0));margin-left:calc(${v}*(1 - var(--space-x-reverse,0)))`\r\n } else if (secondPart === 'y') {\r\n rule = `margin-top:calc(${v}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${v}*var(--space-y-reverse,0))`\r\n }\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--space-${secondPart}-reverse:1`\r\n }\r\n }\r\n },\r\n divide: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n sheetLevel = 1\r\n if (!fourthPart) {\r\n let v\r\n if (isNum(thirdPart)) {\r\n v = thirdPart + 'px'\r\n } else if (isStartNum(thirdPart)) {\r\n v = thirdPart\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--divide-${secondPart}-reverse:1`\r\n } else if (secondPart) {\r\n v = '1px'\r\n }\r\n\r\n if (v) {\r\n if (secondPart === 'y') {\r\n rule = `border-top-width:calc(${v}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${v}*var(--divide-y-reverse,0)))`\r\n } else if (secondPart === 'x') {\r\n rule = `border-right-width:calc(${v}*var(--divide-x-reverse,0));border-left-width:calc(${v}*calc(1 - var(--divide-x-reverse,0)))`\r\n }\r\n }\r\n }\r\n if (!rule) {\r\n setColor('border-color')\r\n }\r\n },\r\n min: () => {\r\n if (isStartNum(thirdPart)) {\r\n if (secondPart === 'w' || secondPart === 'h') {\r\n let p = secondPart === 'w' ? 'width' : 'height'\r\n rule = `min-${p}:` + thirdPart\r\n }\r\n }\r\n },\r\n max: () => {\r\n if (secondPart === 'w') {\r\n let pos = indexOf('xs!sm!md!lg!xl', thirdPart)\r\n if (pos > -1) {\r\n rule = `max-width:${pos * 4 + 20}rem`\r\n } else if (isStartNum(thirdPart)) {\r\n if (thirdPart.endsWith('xl')) {\r\n rule = `max-width:${parseInt(thirdPart) * 8 + 24}rem`\r\n } else {\r\n rule = 'max-width:' + thirdPart\r\n }\r\n }\r\n } else if (secondPart === 'h' && isStartNum(thirdPart)) {\r\n rule = 'max-height:' + thirdPart\r\n }\r\n },\r\n tracking: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'letter-spacing:' + secondPart\r\n }\r\n },\r\n leading: () => {\r\n if (isNum(secondPart)) {\r\n rule = `line-height:${Number(secondPart) * 0.25}rem`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'line-height:' + secondPart\r\n }\r\n },\r\n placeholder: () => {\r\n pseudos.push('::placeholder')\r\n setColor('color')\r\n },\r\n align: () => {\r\n if (includes('baseline!top!middle!bottom!text-top!text-bottom', rest)) {\r\n rule = 'vertical-align:' + rest\r\n }\r\n },\r\n bg: () => {\r\n rest = rest.replace('-', ' ')\r\n if (includes('bottom!center!left!left bottom!left top!right!right bottom!right top!top', rest)) {\r\n rule = 'background-position:' + rest\r\n } else if (includes('repeat!no-repeat!repeat-x!repeat-y', rest)) {\r\n rule = 'background-repeat:' + rest\r\n } else if (includes('repeat-round!repeat-space', rest)) {\r\n rule = 'background-repeat:' + thirdPart\r\n } else if (includes('auto!cover!contain', rest)) {\r\n rule = 'background-size:' + rest\r\n } else if (includes('fixed!local!scroll', secondPart)) {\r\n rule = 'background-attachment:' + secondPart\r\n } else {\r\n setColor('background-color')\r\n }\r\n },\r\n rounded: () => {\r\n let v\r\n let pos = roundedSize.indexOf(lastPart)\r\n if (isStartNum(lastPart)) {\r\n v = lastPart\r\n pos = 9\r\n } else if (pos === 5) {\r\n v = '9999px'\r\n } else if (pos > -1) {\r\n v = pos * 0.125 + 'rem'\r\n } else if (!secondPart || edge[secondPart] || (includes('t!b', secondPart[0]) && includes('r!l', secondPart[1]))) {\r\n v = '0.25rem'\r\n }\r\n if (v) {\r\n let place1 = edge[secondPart[0]]\r\n if (!secondPart || (!thirdPart && pos > -1)) {\r\n rule = 'border-radius:' + v\r\n } else if (includes('t!b', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-${place1}-left-radius:${v};border-${place1}-right-radius:` + v\r\n } else if (includes('l!r', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-top-${place1}-radius:${v};border-bottom-${place1}-radius:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = `border-${place1}-${edge[secondPart[1]]}-radius:` + v\r\n }\r\n }\r\n },\r\n border: () => {\r\n let b = edge[secondPart]\r\n if (thirdPart && b) {\r\n if (isNum(thirdPart)) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:${thirdPart}px`\r\n } else if (isStartNum(thirdPart)) {\r\n rule = `border-${b}-width:` + thirdPart\r\n }\r\n } else {\r\n if (includes('solid!dashed!dotted!double!none', secondPart)) {\r\n rule = 'border-style:' + secondPart\r\n } else if (b) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:1px`\r\n } else if (isNum(secondPart)) {\r\n rule = `border-width:${secondPart}px`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'border-width:' + secondPart\r\n } else {\r\n setColor('border-color')\r\n }\r\n }\r\n },\r\n opacity: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'opacity:' + 100 / secondPart\r\n }\r\n },\r\n transition: () => {\r\n let ruleFunc = (value) => `-webkit-transition-property:${value};-o-transition-property:${value};transition-property:` + value\r\n let ruleFunc2 = (value) => `-webkit-transition-property:-webkit-${value};transition-property:-webkit-${value};-o-transition-property:${value};transition-property:${value};transition-property:${value},-webkit-${value}`\r\n if (!secondPart) {\r\n rule = '-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform'\r\n rule = rule.replace(/S/g, 'background-color,border-color,color,fill,stroke,opacity,')\r\n } else if (secondPart === 'colors') {\r\n rule = ruleFunc('background-color,border-color,color,fill,stroke')\r\n } else if (secondPart === 'shadow') {\r\n rule = ruleFunc2('box-shadow')\r\n } else if (secondPart === 'transform') {\r\n rule = ruleFunc2('transform')\r\n } else if (secondPart) {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n duration: timeProp,\r\n delay: timeProp,\r\n ease: () => {\r\n let ruleFunc = (value) => `-webkit-transition-timing-function:${value};-o-transition-timing-function:${value};transition-timing-function:${value}`\r\n if (rest === 'in') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,1,1)')\r\n } else if (rest === 'out') {\r\n rule = ruleFunc('cubic-bezier(0,0,0.2,1)')\r\n } else if (rest === 'in-out') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,0.2,1)')\r\n } else if (rest === 'linear') {\r\n rule = ruleFunc('linear')\r\n }\r\n },\r\n scale: () => {\r\n if (isNum(lastPart)) {\r\n let v = lastPart / 100\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n rule = `--transform-scale-${secondPart}:` + v\r\n } else {\r\n rule = `--transform-scale-x:${v};--transform-scale-y:` + v\r\n }\r\n }\r\n },\r\n rotate: () => {\r\n if (isNum(secondPart)) {\r\n rule = `--transform-rotate:${negative}${secondPart}deg`\r\n }\r\n },\r\n translate: () => {\r\n if (includes('x!y', secondPart)) {\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n } else if (thirdPart === 'full') {\r\n thirdPart = '100%'\r\n } else if (thirdPart.includes('/')) {\r\n let fractions = thirdPart.split('/')\r\n if (fractions.length === 2) {\r\n thirdPart = Number(fractions[0]) / Number(fractions[1]) + '%'\r\n }\r\n }\r\n if (isStartNum(thirdPart)) {\r\n rule = `--transform-translate-${secondPart}:` + ifRemTo(thirdPart)\r\n }\r\n }\r\n },\r\n skew: () => {\r\n if (includes('x!y', secondPart) && isNum(thirdPart)) {\r\n rule = `--transform-skew-${secondPart}:${negative + thirdPart}deg`\r\n }\r\n },\r\n transform: () => {\r\n let v = 'translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))'\r\n rule = `-webkit-transform:${v};-ms-transform:${v};transform:` + v\r\n },\r\n origin: () => {\r\n if (includes('center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-webkit-transform-origin:${rest};-ms-transform-origin:${rest};transform-origin:` + rest\r\n }\r\n },\r\n cursor: () => {\r\n if (includes('auto!default!pointer!wait!text!move!not-allowed', rest)) {\r\n rule = 'cursor:' + rest\r\n }\r\n },\r\n shadow: () => {\r\n let shadows = newObject({\r\n xs: '0 0 0 1pxR.05)',\r\n sm: '0 1px 2px 0R.05)',\r\n '': '0 1px 3px 0R.1), 0 1px 2px 0R.06)',\r\n md: '0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)',\r\n lg: '0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)',\r\n xl: '0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)',\r\n '2xl': '0 25px 50px -12pxR.25)',\r\n inner: 'inset 0 2px 4px 0R.06)',\r\n outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',\r\n none: 'none'\r\n })\r\n let v = shadows[secondPart]\r\n if (v) {\r\n v = v.replace(/R/g, ' rgba(0, 0, 0, 0')\r\n console.log(v)\r\n rule = `-webkit-box-shadow:${v};box-shadow:` + v\r\n }\r\n },\r\n outline: () => {\r\n if (secondPart) {\r\n rule = 'outline:' + rest.replace('-', ' ')\r\n }\r\n },\r\n pointer: () => {\r\n if (secondPart) {\r\n rule = 'pointer-events:' + secondPart\r\n }\r\n },\r\n select: () => {\r\n if (includes('none!auto!text!contain!all!inherit!initial!unset', rest)) {\r\n rule = `-webkit-user-select:${rest};-moz-user-select:${rest};-ms-user-select:${rest};user-select:` + rest\r\n }\r\n },\r\n fill: () => {\r\n if (secondPart) {\r\n rule = 'fill:' + secondPart\r\n }\r\n },\r\n stroke: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'stroke-width:' + secondPart\r\n } else if (secondPart) {\r\n rule = 'stroke:' + secondPart\r\n }\r\n },\r\n items: () => {\r\n if (includes('stretch!start!center!end!baseline', rest)) {\r\n rule = `-webkit-box-align:${rest};-ms-flex-align:${rest};align-items:` + (includes('start!end', rest) ? 'flex-' : '') + rest\r\n }\r\n },\r\n content: () => {\r\n if (includes('start!center!end!between!around')) {\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n } else if (rest === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (rest === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n }\r\n\r\n rule = `-ms-flex-line-pack:${v};align-content:` + rest\r\n }\r\n },\r\n self: () => {\r\n if (includes('auto!start!center!end!stretch', rest)) {\r\n let gridRowAlign = `-ms-grid-row-align:${rest};`\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n gridRowAlign = ''\r\n }\r\n rule = `-ms-flex-item-align:${v};${gridRowAlign}align-self:` + rest\r\n }\r\n },\r\n justify: () => {\r\n if (includes('start!center!end!between!around', rest)) {\r\n let v = rest\r\n if (v === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (includes('start!end')) {\r\n rest = 'flex-' + rest\r\n }\r\n let webkit = `-webkit-box-pack:${v};`\r\n if (v === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n webkit = ''\r\n }\r\n rule = webkit + `-ms-flex-pack:${v};justify-content:` + rest\r\n }\r\n }\r\n})\r\n\r\nlet firstPart // first part\r\nlet secondPart // second part\r\nlet thirdPart // third part\r\nlet fourthPart\r\nlet lastPart // last part\r\nlet partsWithoutEnd // without end\r\nlet rest\r\nlet negative\r\nlet rule\r\nlet pseudos\r\nlet pseudosRegex = /[^:]+::?|.+/g\r\nlet specialChars = /[.*+\\-?^${}()|[\\]\\\\]/g\r\nlet sheetLevel\r\n\r\nfunction processClass () {\r\n sheetLevel = 0\r\n rule = ''\r\n negative = ''\r\n originalClass = cls\r\n let separator = config.separator\r\n if (separator !== ':') {\r\n cls = cls.replace(new RegExp(separator.replace(specialChars, '\\\\$&'), 'g'), ':')\r\n }\r\n pseudos = cls.match(pseudosRegex)\r\n cls = pseudos.pop()\r\n pseudos = pseudos.map(v => v.endsWith('::') ? '::' + v.slice(0, -2) : ':' + v.slice(0, -1))\r\n let customData = customCache.get(cls)\r\n if (customData) {\r\n let [classes, props] = customData\r\n let [pseudosStr, originalPseudos] = [originalClass.slice(0, originalClass.lastIndexOf(cls)), pseudos]\r\n componentName = originalClass\r\n if (typeof classes === 'string') {\r\n for (cls of classes.trim().replace(/\\s\\s+/g, ' ').split(' ')) {\r\n cls = pseudosStr + cls\r\n processClass()\r\n }\r\n }\r\n pseudos = originalPseudos\r\n if (props && typeof props === 'string') {\r\n setRule(props)\r\n }\r\n componentName = ''\r\n return\r\n }\r\n\r\n if (cls[0] === '-') {\r\n negative = '-'\r\n cls = cls.slice(1)\r\n }\r\n\r\n if (typeof config.prefix === 'string') {\r\n if (!cls.startsWith(config.prefix)) {\r\n notFound()\r\n return\r\n } else {\r\n cls = cls.slice(config.prefix.length)\r\n }\r\n }\r\n let parts = cls.split('-')\r\n ;[firstPart, secondPart = '', thirdPart = '', fourthPart = ''] = parts\r\n lastPart = parts[parts.length - 1]\r\n partsWithoutEnd = parts.slice(0, -1).join('-')\r\n rest = parts.slice(1).join('-')\r\n\r\n let process\r\n if (!(rule = classNames[cls]) && (process = cls2process[firstPart])) {\r\n process()\r\n } else if (firstPart.length < 3 && !thirdPart) {\r\n formatClass()\r\n }\r\n\r\n if (rule) {\r\n setRule(rule)\r\n } else if (cls === 'container') {\r\n setRule('width:100%')\r\n for (const [r, size] of Object.entries(config.screens)) {\r\n setRule('max-width:' + size, media.get(`default${r}0`))\r\n }\r\n } else {\r\n notFound()\r\n }\r\n}\r\n\r\nfunction formatClass () {\r\n let v\r\n if (secondPart === 'px') {\r\n v = `${negative}1px`\r\n } else if (secondPart === 'full') {\r\n v = '100%'\r\n } else if (secondPart === 'screen') {\r\n if (firstPart === 'w') {\r\n v = '100vw'\r\n } else if (firstPart === 'h') {\r\n v = '100vh'\r\n }\r\n } else if (secondPart === 'auto') {\r\n v = 'auto'\r\n } else if (isNum(secondPart)) {\r\n v = negative + Number(secondPart) * 0.25 + 'rem'\r\n } else if (secondPart.indexOf('/') > -1) {\r\n let [top, bottom] = secondPart.split('/')\r\n if (isNum(top) && isNum(bottom)) {\r\n v = negative + (Number(top) / Number(bottom)).toFixed(6) + '%'\r\n }\r\n } else if (isStartNum(secondPart)) {\r\n v = negative + secondPart\r\n }\r\n\r\n let basicPart = formatters[firstPart[0]]\r\n let e = edge[firstPart[1]]\r\n if (v && basicPart) {\r\n if (firstPart[1] === 'x') {\r\n sheetLevel = 1\r\n rule = basicPart + `-right:${v};${basicPart}-left:` + v\r\n } else if (firstPart[1] === 'y') {\r\n sheetLevel = 1\r\n rule = basicPart + `-top:${v};${basicPart}-bottom:` + v\r\n } else if (e) {\r\n sheetLevel = 2\r\n rule = basicPart + `-${e}:` + v\r\n } else {\r\n rule = basicPart + ':' + v\r\n }\r\n }\r\n}\r\n\r\nlet findInSheet = (sheet) => {\r\n let rules = []\r\n for (let rule of [...sheet.cssRules]) {\r\n // eslint-disable-next-line no-undef\r\n if (rule.type === CSSRule.STYLE_RULE) {\r\n if (rule.selectorText.split(',').map((item) => item.trim()).includes('.' + cls)) {\r\n let text = rule.cssText\r\n rules.push([text.slice(text.indexOf('{') + 1, text.lastIndexOf('}')), sheet])\r\n }\r\n // eslint-disable-next-line no-undef\r\n } else if (rule.type === CSSRule.MEDIA_RULE) {\r\n rules.push(...findInSheet(rule))\r\n }\r\n }\r\n return rules\r\n}\r\n\r\nlet responsiveSheets = new Map()\r\n\r\nlet notFound = () => {\r\n if (pseudos.length > 0) {\r\n let rules = []\r\n for (const sheet of document.styleSheets) {\r\n rules.push(...findInSheet(sheet))\r\n }\r\n let responsive = pseudos[0].slice(1)\r\n if (config.screens[responsive]) {\r\n let screens = Object.entries(config.screens)\r\n for (let [rule, sheet] of rules) {\r\n let sheets = responsiveSheets.get(sheet)\r\n if (!sheets) {\r\n sheets = newObject()\r\n for (const [r, size] of screens) {\r\n sheets[r] = sheet.cssRules[sheet.insertRule(`@media(min-width:${size}){}`, sheet.cssRules.length)]\r\n }\r\n responsiveSheets[sheet] = sheets\r\n }\r\n setRule(rule, sheets[responsive])\r\n }\r\n } else {\r\n for (let [rule, sheet] of rules) {\r\n setRule(rule, sheet)\r\n }\r\n }\r\n }\r\n}\r\n\r\n// pseudos = split('::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P!::P'.replace(/P/g, 'placeholder'))\r\nlet pseudoVendorPrefixes = newObject({\r\n '::placeholder': '::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P'.replace(/P/g, 'placeholder'),\r\n '::selection': ':::-moz-selection'\r\n})\r\n\r\nfunction setRule (rule, sheet) {\r\n let pseudo = ''\r\n let ruleCls = originalClass\r\n let sheetPrefix = 'default'\r\n let important = ''\r\n let insertRule = () => {\r\n try {\r\n sheet.insertRule(important + `.${ruleCls}${pseudo}{${rule}}`, sheet.cssRules.length)\r\n } catch (err) {\r\n // console.log(err)\r\n }\r\n }\r\n\r\n if (componentName) {\r\n ruleCls = componentName\r\n sheetPrefix = 'custom'\r\n }\r\n ruleCls = ruleCls.replace(/[.:()&@~*^$%,#]/g, '\\\\$&')\r\n if (config.important) {\r\n if (config.important === true) {\r\n rule = rule.replace(/;/g, '!important;') + '!important'\r\n } else if (typeof config.important === 'string') {\r\n important = config.important + ' '\r\n }\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n let mediaQuery = media.get(sheetPrefix + pseudos[0].slice(1) + sheetLevel)\r\n if (mediaQuery) {\r\n sheet = sheet || mediaQuery\r\n pseudos.shift()\r\n }\r\n }\r\n\r\n if (!sheet) {\r\n sheet = media.get(sheetPrefix + sheetLevel)\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n for (const pseudo of [...pseudos]) {\r\n let prefixes = pseudoVendorPrefixes[pseudo]\r\n if (prefixes) {\r\n pseudos.push(...split(prefixes))\r\n }\r\n }\r\n for (pseudo of pseudos) {\r\n // console.log(`.${cls}${pseudo}{${t}}`)\r\n if (includes(':first!:last', pseudo)) {\r\n pseudo = pseudo + '-child'\r\n } else if (includes(':odd!:even', pseudo)) {\r\n pseudo = `:nth-child(${pseudo.slice(1)})`\r\n } else if (pseudo.startsWith(':group')) {\r\n ruleCls = pseudo.slice(1).replace('-', ':') + ' .' + ruleCls\r\n pseudo = ''\r\n }\r\n insertRule()\r\n }\r\n } else {\r\n insertRule()\r\n }\r\n}\r\n"],"names":["parentSheet","componentName","addedScreens","isNum","v","isNaN","isStartNum","parseInt","split","s","indexOf","includes","ifRemTo","negative","Number","newObject","o","Object","assign","create","classesCache","Map","customCache","config","separator","screens","sm","md","lg","xl","isObject","value","prototype","toString","call","hex6","Error","startsWith","length","slice","map","join","test","errorNotObject","customColors","document","styleSheets","head","appendChild","createElement","sheet","cls","originalClass","media","setMedia","prefix","size","condition","i","set","cssRules","insertRule","formatters","p","m","h","z","w","classNames","c","replace","firstPart","secondPart","thirdPart","fourthPart","lastPart","partsWithoutEnd","rest","rule","pseudos","sheetLevel","colors","colorNames","roundedSize","edge","l","r","t","b","setColor","type","color","get","colorPos","rgba","setPosition","timeProp","cls2process","object","overflow","clearfix","text","pos","endsWith","num","font","whitespace","inset","top","right","bottom","left","flex","ruleFunc","v1","v2","v3","order","grid","cols","span","start","end","rows","row","gap","col","space","divide","min","max","tracking","leading","placeholder","push","align","bg","rounded","place1","border","opacity","transition","ruleFunc2","duration","delay","ease","scale","rotate","translate","fractions","skew","transform","origin","cursor","shadow","xs","2xl","inner","outline","none","console","log","pointer","select","fill","stroke","items","content","self","gridRowAlign","justify","webkit","pseudosRegex","specialChars","processClass","RegExp","match","pop","customData","classes","props","lastIndexOf","pseudosStr","originalPseudos","trim","setRule","notFound","parts","process","toFixed","basicPart","e","formatClass","entries","findInSheet","rules","CSSRule","STYLE_RULE","selectorText","item","cssText","MEDIA_RULE","responsiveSheets","responsive","sheets","pseudoVendorPrefixes","::placeholder","::selection","pseudo","ruleCls","sheetPrefix","important","err","mediaQuery","shift","prefixes","name","conf","undefined","key1","value1","has"],"mappings":"q/BAEA,IASIA,EAEAC,EACAC,EAZAC,EAAQ,SAACC,UAAOC,MAAMD,IACtBE,EAAa,SAACF,UAAOC,MAAME,SAASH,KACpCI,EAAQ,SAACC,UAAMA,EAAED,MAAM,MACvBE,EAAU,SAACD,EAAGL,UAAMI,EAAMC,GAAGC,QAAQN,IACrCO,EAAW,SAACF,EAAGL,UAAMI,EAAMC,GAAGE,SAASP,IACvCQ,EAAU,SAACR,UAAMD,EAAMC,GAAKS,EAAuB,IAAZC,OAAOV,GAAY,MAAQS,EAAWT,GAC7EW,EAAY,SAACC,mBAAAA,IAAAA,EAAI,IAAOC,OAAOC,OAAOD,OAAOE,OAAO,MAAOH,IAC3DI,EAAe,IAAIC,IACnBC,EAAc,IAAID,IAElBE,EAASR,EAAU,CAAES,UAAW,IAAKC,QAAS,CAAEC,GAAI,QAASC,GAAI,QAASC,GAAI,SAAUC,GAAI,YAe5FC,EAAW,SAAAC,SAAmD,oBAA1Cd,OAAOe,UAAUC,SAASC,KAAKH,IACnDI,EAAO,SAAAJ,GACT,GAAqB,iBAAVA,EACT,MAAMK,MAAM,kCAMd,GAJKL,EAAMM,WAAW,OACpBN,EAA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GFA,gBAl6BmB,SAAC2J,EAAMrC,EAASC,GACrC,GAAoB,iBAAToC,EACT,MAAMpL,MAAM,+BAGd,GADAoL,EAAOA,EAAKhC,OACRpK,EAAawE,IAAI4H,GACnB,MAAMpL,gBAAgBoL,8BAExBlM,EAAYqC,IAAI6J,EAAM,CAACrC,EAASC,iBA0BX,SAACqC,YAAAA,IAAAA,EAAO1M,KAC7B,cAAcP,EAAM,oCAAqB,KAAhCC,UACP,QAAgBiN,IAAZD,EAAKhN,IAAuC,iBAAZgN,EAAKhN,GACvC,MAAM2B,gBAAgB3B,wBAM1B,GAHIgN,EAAKhM,SACPkB,EAAe8K,EAAKhM,SAElBgM,EAAKxI,OAAQ,CACftC,EAAe8K,EAAKxI,QACpB,cAA2BhE,OAAOgL,QAAQwB,EAAKxI,uBAAS,YAA9C0I,OAAMC,OACd,GAAI9L,EAAS8L,GACX,cAA2B3M,OAAOgL,QAAQ2B,kBAAS,YACjDhL,EAAae,IAAIgK,EAAO,SAAYxL,cAGtCS,EAAae,IAAIgK,EAAMxL,EAAKyL,UAIhC3M,OAAOC,OAAOK,EAAQkM,cAqBL,SAACtC,GACpB,IAAKjL,EAAc,CACjBA,GAAe,EAEf,IADA,MAAI+L,EAAUhL,OAAOgL,QAAQ1K,EAAOE,aACpBjB,EAAM,kCAAmB,KAA9BwD,UACTV,EAASU,GACT,cAA0BiI,kBAAS,eACjC3I,EAASU,eAIf,GAAuB,iBAAZmH,IACTA,EAAUA,EAAQK,QACbpK,EAAayM,IAAI1C,IAAU,CAC9B,cAAYA,EAAQ7G,QAAQ,SAAU,KAAK9D,MAAM,qBAC3CY,EAAayM,IADd1K,aAIH/B,EAAauC,IAAIR,GAAK,GACtB2H,MAEF1J,EAAauC,IAAIwH,GAAS"} \ No newline at end of file +{"version":3,"file":"runcss.umd.js","sources":["../src/runcss.js"],"sourcesContent":["/* eslint-disable prefer-const */\r\n\r\nlet isNum = (v) => !isNaN(v)\r\nlet isStartNum = (v) => !isNaN(parseInt(v))\r\nlet split = (s) => s.split('!')\r\nlet indexOf = (s, v) => split(s).indexOf(v)\r\nlet includes = (s, v) => split(s).includes(v)\r\nlet ifRemTo = (v) => isNum(v) ? negative + Number(v) * 0.25 + 'rem' : negative + v\r\nlet newObject = (o = {}) => Object.assign(Object.create(null), o)\r\nlet classesCache = new Map()\r\nlet customCache = new Map()\r\nlet parentSheet\r\nlet config = newObject({ separator: ':', screens: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px' } })\r\nlet componentName\r\nlet addedScreens\r\n\r\nexport let component = (name, classes, props) => {\r\n if (typeof name !== 'string') {\r\n throw Error('Component must have a name.')\r\n }\r\n name = name.trim()\r\n if (classesCache.get(name)) {\r\n throw Error(`Class '${name}' was already processed.`)\r\n }\r\n customCache.set(name, [classes, props])\r\n}\r\n\r\nlet isObject = value => Object.prototype.toString.call(value) === '[object Object]'\r\nlet hex6 = value => {\r\n if (typeof value !== 'string') {\r\n throw Error('Hex value is not a hex string.')\r\n }\r\n if (!value.startsWith('#')) {\r\n value = '#' + value\r\n }\r\n value = value.length === 4 ? value.slice(1).split('').map((v) => v + v).join('') : value.slice(1)\r\n if (!/^[0-9a-f]{6}$/i.test(value)) {\r\n throw Error('Incorrect hex color format.')\r\n }\r\n return value\r\n}\r\n\r\nlet errorNotObject = value => {\r\n if (!isObject(value)) {\r\n throw Error('Config value must be an object.')\r\n }\r\n}\r\n\r\nlet customColors = new Map()\r\n\r\nexport let configure = (conf = newObject()) => {\r\n for (let s of split('separator!prefix')) {\r\n if (conf[s] !== undefined && typeof conf[s] !== 'string') {\r\n throw Error(`config.${s} must be a string.`)\r\n }\r\n }\r\n if (conf.screens) {\r\n errorNotObject(conf.screens)\r\n }\r\n if (conf.colors) {\r\n errorNotObject(conf.colors)\r\n for (let [key1, value1] of Object.entries(conf.colors)) {\r\n if (isObject(value1)) {\r\n for (let [key2, value2] of Object.entries(value1)) {\r\n customColors.set(key1 + '-' + key2, hex6(value2))\r\n }\r\n } else {\r\n customColors.set(key1, hex6(value1))\r\n }\r\n }\r\n } else {\r\n Object.assign(config, conf)\r\n }\r\n}\r\n\r\nif (document.styleSheets.length === 0) {\r\n parentSheet = document.head.appendChild(document.createElement('style')).sheet\r\n} else {\r\n parentSheet = document.styleSheets[0]\r\n}\r\n\r\nlet media = new Map()\r\nlet setMedia = (prefix, size) => {\r\n let condition = size ? `(min-width:${size})` : ''\r\n for (let i = 0; i < 3; i++) {\r\n media.set(prefix + i, parentSheet.cssRules[parentSheet.insertRule(`@media${condition}{}`, parentSheet.cssRules.length)])\r\n }\r\n}\r\n\r\nlet cls\r\nlet originalClass\r\n\r\nlet processClasses = (classes) => {\r\n if (!addedScreens) {\r\n addedScreens = true\r\n let entries = Object.entries(config.screens)\r\n for (const m of split('custom!default')) {\r\n setMedia(m)\r\n for (const [key, size] of entries) {\r\n setMedia(m + key, size)\r\n }\r\n }\r\n }\r\n if (typeof classes === 'string') {\r\n classes = classes.trim()\r\n if (!classesCache.has(classes)) {\r\n for (cls of classes.replace(/\\s\\s+/g, ' ').split(' ')) {\r\n if (classesCache.has(cls)) {\r\n continue\r\n }\r\n classesCache.set(cls, true)\r\n processClass()\r\n }\r\n classesCache.set(classes, true)\r\n }\r\n }\r\n}\r\nexport default processClasses\r\n\r\nlet formatters = newObject({\r\n p: 'padding',\r\n m: 'margin',\r\n h: 'height',\r\n z: 'z-index',\r\n w: 'width'\r\n})\r\n\r\nlet classNames = newObject()\r\n\r\n// direct map from class to values\r\nfor (let c of split('box-border|-webkit-box-sizing:border-box;box-sizing:border-box!box-content|-webkit-box-sizing:content-box;box-sizing:content-box!hidden|display:none!object-scale-down|object-fit:scale-down;-o-object-fit:scale-down!scrolling-touch|-webkit-overflow-scrolling:touch!scrolling-auto|-webkit-overflow-scrolling:auto!visible|visibility:visible!invisible|visibility:hidden!order-first|order:-9999!order-last|order:9999!order-none|order:0!grid-cols-none|grid-template-columns:none!col-auto|grid-column:auto!col-start-auto|-ms-grid-column:auto;grid-column-start:auto!col-end-auto|-ms-grid-column-span:auto;grid-column-end:auto!grid-rows-none|-ms-grid-rows:none;grid-template-rows:none!row-auto|grid-row:auto!row-start-auto|-ms-grid-row:auto;grid-row-start:auto!row-end-auto|-ms-grid-row-span:auto;grid-row-end:auto!gap-px|gap:1px!row-gap-px|row-gap:1px!grid-flow-row|grid-auto-flow:row!grid-flow-col|grid-auto-flow:column!grid-flow-row-dense|grid-auto-flow:row dense!grid-flow-col-dense|grid-auto-flow:column dense!min-w-full|min-width:100%!max-w-full|max-width:100%!max-w-screen-sm|max-width:640px!max-w-screen-md|max-width:768px!max-w-screen-lg|max-width:1024px!max-w-screen-xl|max-width:1280px!max-w-none|max-width:none!min-h-full|min-height:100%!min-h-screen|min-height:100vh!max-h-full|max-height:100%!max-h-screen|max-height:100vh!text-2xl|font-size:1.5rem!text-3xl|font-size:1.875rem!text-4xl|font-size:2.25rem!underline|text-decoration:underline!line-through|text-decoration:line-through!no-underline|text-decoration:none!uppercase|text-transform:uppercase!lowercase|text-transform:lowercase!capitalize|text-transform:capitalize!normal-case|text-transform:none!whitespace-no-wrap|white-space:nowrap!break-normal|word-break:normal;overflow-wrap:normal!break-words|overflow-wrap:break-word!break-all|word-break:break-all!truncate|overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap!h-auto|height:auto!max-w-2xl|max-width:42rem!tracking-tighter|letter-spacing:-0.05em!tracking-tight|letter-spacing:-0.025em!tracking-normal|0!tracking-wide:letter-spacing:0.025em!tracking-wider|letter-spacing:0.05em!tracking-widest|letter-spacing: 0.1em!leading-none|line-height:1!leading-tight|line-height:1.25!leading-snug|line-height:1.375!leading-normal|line-height:1.5!leading-relaxed|line-height:1.625!leading-loose|line-height:2!list-none|list-style-type:none!list-disc|list-style-type:disc!list-decimal|list-style-type:decimal!list-inside|list-style-position:inside!list-outside|list-style-position:outside!border|border-width:1px!border-collapse|border-collapse:collapse!border-separate|border-collapse:separate!table-auto|table-layout:auto!table-fixed|table-layout:fixed!appearance-none|-webkit-appearance:none;-moz-appearance:none;appearance:none!outline-none|outline:0!resize-none|resize:none!resize|resize:both!resize-y|resize:vertical!resize-x|resize:horizontal!fill-current|fill:currentColor!stroke-current|stroke:currentColor!sr-only|position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0!not-sr-only|position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal!font-sans|font-family:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji!font-serif|font-family:Georgia,Cambria,\"Times New Roman\",Times,serif!font-mono|font-family:Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace!sticky|position:-webkit-sticky;position:sticky')) {\r\n let [k, v] = c.split('|')\r\n classNames[k] = v\r\n}\r\n\r\n// class to value\r\nfor (let c of split('float-right!float-left!float-none!clear-left!clear-right!clear-both!clear-none')) {\r\n classNames[c] = c.replace('-', ':')\r\n}\r\n\r\n// display\r\nfor (let c of split('block!flow-root!inline-block!inline!flex!grid!inline-grid!table!table-caption!table-cell!table-column!table-column-group!table-footer-group!table-header-group!table-row-group!table-row')) {\r\n let p = c\r\n if (c === 'flex') {\r\n p = '-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex'\r\n } else if (c === 'inline-flex') {\r\n p = '-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex'\r\n } else if (c === 'grid') {\r\n p = '-ms-grid;display:grid'\r\n } else if (c === 'inline-grid') {\r\n p = '-ms-inline-grid;display:inline-grid'\r\n }\r\n classNames[c] = 'display:' + p\r\n}\r\n\r\n// position\r\nfor (let c of split('static!fixed!absolute!relative')) {\r\n classNames[c] = 'position:' + c\r\n}\r\n\r\nlet colors = split('f7fafc!edf2f7!e2e8f0!cbd5e0!a0aec0!718096!4a5568!2d3748!1a202c!fff5f5!fed7d7!feb2b2!fc8181!f56565!e53e3e!c53030!9b2c2c!742a2a!fffaf0!feebc8!fbd38d!f6ad55!ed8936!dd6b20!c05621!9c4221!7b341e!fffff0!fefcbf!faf089!f6e05e!ecc94b!d69e2e!b7791f!975a16!744210!f0fff4!c6f6d5!9ae6b4!68d391!48bb78!38a169!2f855a!276749!22543d!e6fffa!b2f5ea!81e6d9!4fd1c5!38b2ac!319795!2c7a7b!285e61!234e52!ebf8ff!bee3f8!90cdf4!63b3ed!4299e1!3182ce!2b6cb0!2c5282!2a4365!ebf4ff!c3dafe!a3bffa!7f9cf5!667eea!5a67d8!4c51bf!434190!3c366b!faf5ff!e9d8fd!d6bcfa!b794f4!9f7aea!805ad5!6b46c1!553c9a!44337a!fff5f7!fed7e2!fbb6ce!f687b3!ed64a6!d53f8c!b83280!97266d!702459')\r\n\r\nlet colorNames = split('gray!red!orange!yellow!green!teal!blue!indigo!purple!pink')\r\n\r\nlet roundedSize = split('none!sm!nm!md!lg!full')\r\n\r\nlet edge = newObject({ l: 'left', r: 'right', t: 'top', b: 'bottom' })\r\n\r\nlet setColor = (type) => {\r\n if (secondPart === 'opacity' && isNum(thirdPart)) {\r\n rule = `--${type}-opacity:` + (thirdPart === '100' ? '1' : thirdPart / 100)\r\n } else {\r\n let color = customColors.get(rest)\r\n if (color) {\r\n if (thirdPart && isObject(color)) {\r\n color = color[thirdPart]\r\n }\r\n } else {\r\n if (thirdPart) {\r\n let colorPos = colorNames.indexOf(secondPart)\r\n color = colors[colorPos * 9 + (Number(thirdPart[0]) - 1)]\r\n } else if (secondPart && secondPart.startsWith('#')) {\r\n try {\r\n color = hex6(secondPart)\r\n } catch {}\r\n }\r\n }\r\n if (color) {\r\n let rgba = type + `:rgba(${parseInt(color.slice(0, 2), 16)},${parseInt(color.slice(2, 4), 16)},${parseInt(color.slice(4, 6), 16)},var(--${type}-opacity,1))`\r\n rule = type + `:#${color};` + rgba\r\n } else if (secondPart === 'current') {\r\n rule = type + ':' + 'currentColor'\r\n } else {\r\n rule = type + ':' + rest\r\n // console.log(rule)\r\n }\r\n }\r\n}\r\n\r\nlet setPosition = () => {\r\n if (!fourthPart && (includes('auto!initial!inherit', lastPart) || isStartNum(lastPart))) {\r\n let v = negative + lastPart\r\n if (thirdPart) {\r\n sheetLevel = 1\r\n if (secondPart === 'y') {\r\n rule = `top:${v};bottom:` + v\r\n } else if (secondPart === 'x') {\r\n rule = `left:${v};right:` + v\r\n }\r\n } else if (secondPart) {\r\n if (firstPart === 'inset') {\r\n rule = `top:${v};right:${v};bottom:${v};left:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = firstPart + ':' + v\r\n }\r\n }\r\n }\r\n}\r\n\r\nlet timeProp = () => {\r\n let v\r\n if (isNum(secondPart)) {\r\n v = secondPart + 'ms'\r\n } else if (isStartNum(secondPart)) {\r\n v = secondPart\r\n }\r\n if (v) {\r\n rule = `-webkit-transition-${firstPart}:${v};-o-transition-${firstPart}:${v};transition-${firstPart}:` + v\r\n }\r\n}\r\n\r\nlet cls2process = newObject({\r\n object: () => {\r\n if (includes('contain!cover!fill!none!bottom', rest)) {\r\n rule = `-o-object-fit:${rest};object-fit:` + rest\r\n } else if (includes('bottom!center!left!left-bottom!left-top!right!right-bottom!right-top!top', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-o-object-position:${rest};object-position:` + rest\r\n }\r\n },\r\n overflow: () => {\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n }\r\n rule = partsWithoutEnd + ':' + lastPart\r\n },\r\n clearfix: () => {\r\n originalClass = 'clearfix::after'\r\n rule = 'content:\"\";display:table;clear:both'\r\n },\r\n text: () => {\r\n let pos = indexOf('xs!sm!base!lg!xl', secondPart)\r\n if (pos > -1) {\r\n rule = `font-size:${0.75 + (0.125 * pos)}rem`\r\n } else if (secondPart.endsWith('xl')) {\r\n let [num] = secondPart.split('x')\r\n if (isNum(num)) {\r\n rule = `font-size:${Number(num) - 2}rem`\r\n }\r\n } else if (includes('left!center!right!justify', rest)) {\r\n rule = 'text-align:' + rest\r\n } else {\r\n setColor('color')\r\n }\r\n },\r\n font: () => {\r\n let pos = indexOf('hairline!thin!light!normal!medium!semibold!bold!extrabold!black', secondPart)\r\n if (pos > -1) {\r\n rule = 'font-weight:' + (100 * (1 + pos))\r\n } else if (isNum(secondPart)) {\r\n rule = 'font-weight:' + secondPart\r\n }\r\n },\r\n whitespace: () => {\r\n if (includes('normal!pre!pre-line!pre-wrap', rest)) {\r\n rule = 'white-space:' + rest\r\n }\r\n },\r\n inset: setPosition,\r\n top: setPosition,\r\n right: setPosition,\r\n bottom: setPosition,\r\n left: setPosition,\r\n flex: () => {\r\n let ruleFunc = (v1, v2 = 1, v3 = '0%') => `-webkit-box-flex:${v1};-ms-flex:${v1} ${v2} ${v3};flex:${v1} ${v2} ` + v3\r\n if (includes('row!row-reverse!col!col-reverse', rest)) {\r\n rest = rest.replace('col', 'column')\r\n rule = `-webkit-box-orient:${secondPart === 'row' ? 'horizontal' : 'vertical'};-webkit-box-direction:${thirdPart === 'reverse' ? thirdPart : 'normal'};-ms-flex-direction:${rest};flex-direction:${rest}`\r\n } else if (includes('no-wrap!flex-wrap!wrap-reverse', rest)) {\r\n if (rest === 'no-wrap') {\r\n rest = 'nowrap'\r\n }\r\n rule = `-ms-flex-wrap:${rest};flex-wrap:${rest}`\r\n } else if (includes('grow!shrink', secondPart)) {\r\n sheetLevel = 1\r\n let v = thirdPart || 1\r\n if (secondPart === 'grow') {\r\n rule = `-webkit-box-flex:${v};-ms-flex-positive:${v};flex-grow:${v}`\r\n } else {\r\n rule = `-ms-flex-negative:${v};flex-shrink:${v}`\r\n }\r\n } else if (rest === 'initial') {\r\n rule = ruleFunc(0, 1, 'auto')\r\n } else if (rest === 'auto') {\r\n rule = ruleFunc(1, 1, 'auto')\r\n } else if (rest === 'none') {\r\n rule = '-webkit-box-flex:0;-ms-flex:none;flex:none'\r\n } else if (fourthPart) {\r\n rule = ruleFunc(secondPart, thirdPart, fourthPart)\r\n } else if (thirdPart) {\r\n rule = ruleFunc(secondPart, thirdPart)\r\n } else {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n order: () => {\r\n if (isNum(secondPart)) {\r\n let num = negative + secondPart\r\n rule = `-webkit-box-ordinal-group:${Number(num) + 1};-ms-flex-order:${num};order:` + num\r\n }\r\n },\r\n grid: () => {\r\n if (isNum(thirdPart)) {\r\n rule = newObject({\r\n cols: `-ms-grid-columns:(minmax(0,1fr))[${thirdPart}];grid-template-columns: repeat(${thirdPart}, minmax(0, 1fr))`,\r\n span: `-ms-grid-column-span:${thirdPart};grid-column: span ${thirdPart} / span ` + thirdPart,\r\n start: `-ms-grid-column:${thirdPart};grid-column-start:` + thirdPart,\r\n end: `-ms-grid-column-span:${thirdPart};grid-column-end:` + thirdPart,\r\n rows: `-ms-grid-rows:(minmax(0,1fr))[${thirdPart}];grid-template-rows: repeat(${thirdPart}, minmax(0, 1fr))`\r\n })[secondPart]\r\n }\r\n },\r\n row: () => {\r\n if (isStartNum(thirdPart)) {\r\n rule = newObject({\r\n span: `-ms-grid-row-span:${thirdPart};grid-row: span ${thirdPart} / span ${thirdPart}`,\r\n start: `-ms-grid-row:${thirdPart};grid-row-start:` + thirdPart,\r\n end: `-ms-grid-row-span:${thirdPart};grid-row-end:` + thirdPart,\r\n gap: 'row-gap:' + ifRemTo(thirdPart)\r\n })[secondPart]\r\n }\r\n },\r\n col: () => {\r\n if (isNum(thirdPart)) {\r\n if (secondPart === 'span') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column:span ${thirdPart} / span ${thirdPart};`\r\n } else if (secondPart === 'start') {\r\n rule = `-ms-grid-column:${thirdPart};grid-column-start:${thirdPart}`\r\n } else if (secondPart === 'end') {\r\n rule = `-ms-grid-column-span:${thirdPart};grid-column-end:${thirdPart}`\r\n }\r\n }\r\n if (isStartNum(thirdPart) && secondPart === 'gap') {\r\n let v = thirdPart === 'px' ? '1px' : ifRemTo(thirdPart)\r\n rule = `-webkit-column-gap:${v};-moz-column-gap:${v}column-gap:` + v\r\n }\r\n },\r\n gap: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'gap:' + ifRemTo(secondPart)\r\n }\r\n },\r\n space: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n }\r\n if (thirdPart) {\r\n if (isStartNum(thirdPart)) {\r\n let v = ifRemTo(thirdPart)\r\n if (secondPart === 'x') {\r\n rule = `margin-right:calc(${v}*var(--space-x-reverse,0));margin-left:calc(${v}*(1 - var(--space-x-reverse,0)))`\r\n } else if (secondPart === 'y') {\r\n rule = `margin-top:calc(${v}*(1 - var(--space-y-reverse,0)));margin-bottom:calc(${v}*var(--space-y-reverse,0))`\r\n }\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--space-${secondPart}-reverse:1`\r\n }\r\n }\r\n },\r\n divide: () => {\r\n pseudos = ['>:not(template)~:not(template)']\r\n sheetLevel = 1\r\n if (!fourthPart) {\r\n let v\r\n if (isNum(thirdPart)) {\r\n v = thirdPart + 'px'\r\n } else if (isStartNum(thirdPart)) {\r\n v = thirdPart\r\n } else if (thirdPart === 'reverse') {\r\n rule = `--divide-${secondPart}-reverse:1`\r\n } else if (secondPart) {\r\n v = '1px'\r\n }\r\n\r\n if (v) {\r\n if (secondPart === 'y') {\r\n rule = `border-top-width:calc(${v}*calc(1 - var(--divide-y-reverse,0)));border-bottom-width:calc(${v}*var(--divide-y-reverse,0)))`\r\n } else if (secondPart === 'x') {\r\n rule = `border-right-width:calc(${v}*var(--divide-x-reverse,0));border-left-width:calc(${v}*calc(1 - var(--divide-x-reverse,0)))`\r\n }\r\n }\r\n }\r\n if (!rule) {\r\n setColor('border-color')\r\n }\r\n },\r\n min: () => {\r\n if (isStartNum(thirdPart)) {\r\n if (secondPart === 'w' || secondPart === 'h') {\r\n let p = secondPart === 'w' ? 'width' : 'height'\r\n rule = `min-${p}:` + thirdPart\r\n }\r\n }\r\n },\r\n max: () => {\r\n if (secondPart === 'w') {\r\n let pos = indexOf('xs!sm!md!lg!xl', thirdPart)\r\n if (pos > -1) {\r\n rule = `max-width:${pos * 4 + 20}rem`\r\n } else if (isStartNum(thirdPart)) {\r\n if (thirdPart.endsWith('xl')) {\r\n rule = `max-width:${parseInt(thirdPart) * 8 + 24}rem`\r\n } else {\r\n rule = 'max-width:' + thirdPart\r\n }\r\n }\r\n } else if (secondPart === 'h' && isStartNum(thirdPart)) {\r\n rule = 'max-height:' + thirdPart\r\n }\r\n },\r\n tracking: () => {\r\n if (isStartNum(secondPart)) {\r\n rule = 'letter-spacing:' + secondPart\r\n }\r\n },\r\n leading: () => {\r\n if (isNum(secondPart)) {\r\n rule = `line-height:${Number(secondPart) * 0.25}rem`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'line-height:' + secondPart\r\n }\r\n },\r\n placeholder: () => {\r\n pseudos.push('::placeholder')\r\n setColor('color')\r\n },\r\n align: () => {\r\n if (includes('baseline!top!middle!bottom!text-top!text-bottom', rest)) {\r\n rule = 'vertical-align:' + rest\r\n }\r\n },\r\n bg: () => {\r\n rest = rest.replace('-', ' ')\r\n if (includes('bottom!center!left!left bottom!left top!right!right bottom!right top!top', rest)) {\r\n rule = 'background-position:' + rest\r\n } else if (includes('repeat!no-repeat!repeat-x!repeat-y', rest)) {\r\n rule = 'background-repeat:' + rest\r\n } else if (includes('repeat-round!repeat-space', rest)) {\r\n rule = 'background-repeat:' + thirdPart\r\n } else if (includes('auto!cover!contain', rest)) {\r\n rule = 'background-size:' + rest\r\n } else if (includes('fixed!local!scroll', secondPart)) {\r\n rule = 'background-attachment:' + secondPart\r\n } else {\r\n setColor('background-color')\r\n }\r\n },\r\n rounded: () => {\r\n let v\r\n let pos = roundedSize.indexOf(lastPart)\r\n if (isStartNum(lastPart)) {\r\n v = lastPart\r\n pos = 9\r\n } else if (pos === 5) {\r\n v = '9999px'\r\n } else if (pos > -1) {\r\n v = pos * 0.125 + 'rem'\r\n } else if (!secondPart || edge[secondPart] || (includes('t!b', secondPart[0]) && includes('r!l', secondPart[1]))) {\r\n v = '0.25rem'\r\n }\r\n if (v) {\r\n let place1 = edge[secondPart[0]]\r\n if (!secondPart || (!thirdPart && pos > -1)) {\r\n rule = 'border-radius:' + v\r\n } else if (includes('t!b', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-${place1}-left-radius:${v};border-${place1}-right-radius:` + v\r\n } else if (includes('l!r', secondPart)) {\r\n sheetLevel = 1\r\n rule = `border-top-${place1}-radius:${v};border-bottom-${place1}-radius:` + v\r\n } else {\r\n sheetLevel = 2\r\n rule = `border-${place1}-${edge[secondPart[1]]}-radius:` + v\r\n }\r\n }\r\n },\r\n border: () => {\r\n let b = edge[secondPart]\r\n if (thirdPart && b) {\r\n if (isNum(thirdPart)) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:${thirdPart}px`\r\n } else if (isStartNum(thirdPart)) {\r\n rule = `border-${b}-width:` + thirdPart\r\n }\r\n } else {\r\n if (includes('solid!dashed!dotted!double!none', secondPart)) {\r\n rule = 'border-style:' + secondPart\r\n } else if (b) {\r\n sheetLevel = 1\r\n rule = `border-${b}-width:1px`\r\n } else if (isNum(secondPart)) {\r\n rule = `border-width:${secondPart}px`\r\n } else if (isStartNum(secondPart)) {\r\n rule = 'border-width:' + secondPart\r\n } else {\r\n setColor('border-color')\r\n }\r\n }\r\n },\r\n opacity: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'opacity:' + secondPart / 100.0\r\n }\r\n },\r\n transition: () => {\r\n let ruleFunc = (value) => `-webkit-transition-property:${value};-o-transition-property:${value};transition-property:` + value\r\n let ruleFunc2 = (value) => `-webkit-transition-property:-webkit-${value};transition-property:-webkit-${value};-o-transition-property:${value};transition-property:${value};transition-property:${value},-webkit-${value}`\r\n if (!secondPart) {\r\n rule = '-webkit-transition-property:S-webkit-box-shadow,-webkit-transform;transition-property:S-webkit-box-shadow,-webkit-transform;-o-transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform;transition-property:Sbox-shadow,transform,-webkit-box-shadow,-webkit-transform'\r\n rule = rule.replace(/S/g, 'background-color,border-color,color,fill,stroke,opacity,')\r\n } else if (secondPart === 'colors') {\r\n rule = ruleFunc('background-color,border-color,color,fill,stroke')\r\n } else if (secondPart === 'shadow') {\r\n rule = ruleFunc2('box-shadow')\r\n } else if (secondPart === 'transform') {\r\n rule = ruleFunc2('transform')\r\n } else if (secondPart) {\r\n rule = ruleFunc(secondPart)\r\n }\r\n },\r\n duration: timeProp,\r\n delay: timeProp,\r\n ease: () => {\r\n let ruleFunc = (value) => `-webkit-transition-timing-function:${value};-o-transition-timing-function:${value};transition-timing-function:${value}`\r\n if (rest === 'in') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,1,1)')\r\n } else if (rest === 'out') {\r\n rule = ruleFunc('cubic-bezier(0,0,0.2,1)')\r\n } else if (rest === 'in-out') {\r\n rule = ruleFunc('cubic-bezier(0.4,0,0.2,1)')\r\n } else if (rest === 'linear') {\r\n rule = ruleFunc('linear')\r\n }\r\n },\r\n scale: () => {\r\n if (isNum(lastPart)) {\r\n let v = lastPart / 100\r\n if (includes('x!y', secondPart)) {\r\n sheetLevel = 1\r\n rule = `--transform-scale-${secondPart}:` + v\r\n } else {\r\n rule = `--transform-scale-x:${v};--transform-scale-y:` + v\r\n }\r\n }\r\n },\r\n rotate: () => {\r\n if (isNum(secondPart)) {\r\n rule = `--transform-rotate:${negative}${secondPart}deg`\r\n }\r\n },\r\n translate: () => {\r\n if (includes('x!y', secondPart)) {\r\n if (thirdPart === 'px') {\r\n thirdPart = '1px'\r\n } else if (thirdPart === 'full') {\r\n thirdPart = '100%'\r\n } else if (thirdPart.includes('/')) {\r\n let fractions = thirdPart.split('/')\r\n if (fractions.length === 2) {\r\n thirdPart = Number(fractions[0]) / Number(fractions[1]) + '%'\r\n }\r\n }\r\n if (isStartNum(thirdPart)) {\r\n rule = `--transform-translate-${secondPart}:` + ifRemTo(thirdPart)\r\n }\r\n }\r\n },\r\n skew: () => {\r\n if (includes('x!y', secondPart) && isNum(thirdPart)) {\r\n rule = `--transform-skew-${secondPart}:${negative + thirdPart}deg`\r\n }\r\n },\r\n transform: () => {\r\n let v = 'translatex(var(--transform-translate-x,0))translatey(var(--transform-translate-y,0))rotate(var(--transform-rotate,0))skewx(var(--transform-skew-x,0))skewy(var(--transform-skew-y,0))scalex(var(--transform-scale-x,1))scaley(var(--transform-scale-y,1))'\r\n rule = `-webkit-transform:${v};-ms-transform:${v};transform:` + v\r\n },\r\n origin: () => {\r\n if (includes('center!top!top-right!right!bottom-right!bottom!bottom-left!left!top-left', rest)) {\r\n rest = rest.replace('-', ' ')\r\n rule = `-webkit-transform-origin:${rest};-ms-transform-origin:${rest};transform-origin:` + rest\r\n }\r\n },\r\n cursor: () => {\r\n if (includes('auto!default!pointer!wait!text!move!not-allowed', rest)) {\r\n rule = 'cursor:' + rest\r\n }\r\n },\r\n shadow: () => {\r\n let shadows = newObject({\r\n xs: '0 0 0 1pxR.05)',\r\n sm: '0 1px 2px 0R.05)',\r\n '': '0 1px 3px 0R.1), 0 1px 2px 0R.06)',\r\n md: '0 4px 6px -1pxR.1), 0 2px 4px -1pxR.06)',\r\n lg: '0 10px 15px -3pxR.1), 0 4px 6px -2pxR.05)',\r\n xl: '0 20px 25px -5pxR.1), 0 10px 10px -5pxR.04)',\r\n '2xl': '0 25px 50px -12pxR.25)',\r\n inner: 'inset 0 2px 4px 0R.06)',\r\n outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',\r\n none: 'none'\r\n })\r\n let v = shadows[secondPart]\r\n if (v) {\r\n v = v.replace(/R/g, ' rgba(0, 0, 0, 0')\r\n // console.log(v)\r\n rule = `-webkit-box-shadow:${v};box-shadow:` + v\r\n }\r\n },\r\n outline: () => {\r\n if (secondPart) {\r\n rule = 'outline:' + rest.replace('-', ' ')\r\n }\r\n },\r\n pointer: () => {\r\n if (secondPart) {\r\n rule = 'pointer-events:' + secondPart\r\n }\r\n },\r\n select: () => {\r\n if (includes('none!auto!text!contain!all!inherit!initial!unset', rest)) {\r\n rule = `-webkit-user-select:${rest};-moz-user-select:${rest};-ms-user-select:${rest};user-select:` + rest\r\n }\r\n },\r\n fill: () => {\r\n if (secondPart) {\r\n rule = 'fill:' + secondPart\r\n }\r\n },\r\n stroke: () => {\r\n if (isNum(secondPart)) {\r\n rule = 'stroke-width:' + secondPart\r\n } else if (secondPart) {\r\n rule = 'stroke:' + secondPart\r\n }\r\n },\r\n items: () => {\r\n if (includes('stretch!start!center!end!baseline', rest)) {\r\n rule = `-webkit-box-align:${rest};-ms-flex-align:${rest};align-items:` + (includes('start!end', rest) ? 'flex-' : '') + rest\r\n }\r\n },\r\n content: () => {\r\n if (includes('start!center!end!between!around')) {\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n } else if (rest === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (rest === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n }\r\n\r\n rule = `-ms-flex-line-pack:${v};align-content:` + rest\r\n }\r\n },\r\n self: () => {\r\n if (includes('auto!start!center!end!stretch', rest)) {\r\n let gridRowAlign = `-ms-grid-row-align:${rest};`\r\n let v = rest\r\n if (includes('start!end', rest)) {\r\n rest = 'flex-' + rest\r\n gridRowAlign = ''\r\n }\r\n rule = `-ms-flex-item-align:${v};${gridRowAlign}align-self:` + rest\r\n }\r\n },\r\n justify: () => {\r\n if (includes('start!center!end!between!around', rest)) {\r\n let v = rest\r\n if (v === 'between') {\r\n v = 'justify'\r\n rest = 'space-' + rest\r\n } else if (includes('start!end')) {\r\n rest = 'flex-' + rest\r\n }\r\n let webkit = `-webkit-box-pack:${v};`\r\n if (v === 'around') {\r\n v = 'distribute'\r\n rest = 'space-' + rest\r\n webkit = ''\r\n }\r\n rule = webkit + `-ms-flex-pack:${v};justify-content:` + rest\r\n }\r\n }\r\n})\r\n\r\nlet firstPart // first part\r\nlet secondPart // second part\r\nlet thirdPart // third part\r\nlet fourthPart\r\nlet lastPart // last part\r\nlet partsWithoutEnd // without end\r\nlet rest\r\nlet negative\r\nlet rule\r\nlet pseudos\r\nlet pseudosRegex = /[^:]+::?|.+/g\r\nlet specialChars = /[.*+\\-?^${}()|[\\]\\\\]/g\r\nlet sheetLevel\r\n\r\nfunction processClass () {\r\n sheetLevel = 0\r\n rule = ''\r\n negative = ''\r\n originalClass = cls\r\n let separator = config.separator\r\n if (separator !== ':') {\r\n cls = cls.replace(new RegExp(separator.replace(specialChars, '\\\\$&'), 'g'), ':')\r\n }\r\n pseudos = cls.match(pseudosRegex)\r\n cls = pseudos.pop()\r\n pseudos = pseudos.map(v => v.endsWith('::') ? '::' + v.slice(0, -2) : ':' + v.slice(0, -1))\r\n let customData = customCache.get(cls)\r\n if (customData) {\r\n let [classes, props] = customData\r\n let [pseudosStr, originalPseudos] = [originalClass.slice(0, originalClass.lastIndexOf(cls)), pseudos]\r\n componentName = originalClass\r\n if (typeof classes === 'string') {\r\n for (cls of classes.trim().replace(/\\s\\s+/g, ' ').split(' ')) {\r\n cls = pseudosStr + cls\r\n processClass()\r\n }\r\n }\r\n pseudos = originalPseudos\r\n if (props && typeof props === 'string') {\r\n setRule(props)\r\n }\r\n componentName = ''\r\n return\r\n }\r\n\r\n if (cls[0] === '-') {\r\n negative = '-'\r\n cls = cls.slice(1)\r\n }\r\n\r\n if (typeof config.prefix === 'string') {\r\n if (!cls.startsWith(config.prefix)) {\r\n notFound()\r\n return\r\n } else {\r\n cls = cls.slice(config.prefix.length)\r\n }\r\n }\r\n let parts = cls.split('-')\r\n ;[firstPart, secondPart = '', thirdPart = '', fourthPart = ''] = parts\r\n lastPart = parts[parts.length - 1]\r\n partsWithoutEnd = parts.slice(0, -1).join('-')\r\n rest = parts.slice(1).join('-')\r\n\r\n let process\r\n if (!(rule = classNames[cls]) && (process = cls2process[firstPart])) {\r\n process()\r\n } else if (firstPart.length < 3 && !thirdPart) {\r\n formatClass()\r\n }\r\n\r\n if (rule) {\r\n setRule(rule)\r\n } else if (cls === 'container') {\r\n setRule('width:100%')\r\n for (const [r, size] of Object.entries(config.screens)) {\r\n setRule('max-width:' + size, media.get(`default${r}0`))\r\n }\r\n } else {\r\n notFound()\r\n }\r\n}\r\n\r\nfunction formatClass () {\r\n let v\r\n if (secondPart === 'px') {\r\n v = `${negative}1px`\r\n } else if (secondPart === 'full') {\r\n v = '100%'\r\n } else if (secondPart === 'screen') {\r\n if (firstPart === 'w') {\r\n v = '100vw'\r\n } else if (firstPart === 'h') {\r\n v = '100vh'\r\n }\r\n } else if (secondPart === 'auto') {\r\n v = 'auto'\r\n } else if (isNum(secondPart)) {\r\n v = negative + Number(secondPart) * 0.25 + 'rem'\r\n } else if (secondPart.indexOf('/') > -1) {\r\n let [top, bottom] = secondPart.split('/')\r\n if (isNum(top) && isNum(bottom)) {\r\n v = negative + (Number(top) / Number(bottom)).toFixed(6) + '%'\r\n }\r\n } else if (isStartNum(secondPart)) {\r\n v = negative + secondPart\r\n }\r\n\r\n let basicPart = formatters[firstPart[0]]\r\n let e = edge[firstPart[1]]\r\n if (v && basicPart) {\r\n if (firstPart[1] === 'x') {\r\n sheetLevel = 1\r\n rule = basicPart + `-right:${v};${basicPart}-left:` + v\r\n } else if (firstPart[1] === 'y') {\r\n sheetLevel = 1\r\n rule = basicPart + `-top:${v};${basicPart}-bottom:` + v\r\n } else if (e) {\r\n sheetLevel = 2\r\n rule = basicPart + `-${e}:` + v\r\n } else {\r\n rule = basicPart + ':' + v\r\n }\r\n }\r\n}\r\n\r\nlet findInSheet = (sheet) => {\r\n let rules = []\r\n for (let rule of [...sheet.cssRules]) {\r\n // eslint-disable-next-line no-undef\r\n if (rule.type === CSSRule.STYLE_RULE) {\r\n if (rule.selectorText.split(',').map((item) => item.trim()).includes('.' + cls)) {\r\n let text = rule.cssText\r\n rules.push([text.slice(text.indexOf('{') + 1, text.lastIndexOf('}')), sheet])\r\n }\r\n // eslint-disable-next-line no-undef\r\n } else if (rule.type === CSSRule.MEDIA_RULE) {\r\n rules.push(...findInSheet(rule))\r\n }\r\n }\r\n return rules\r\n}\r\n\r\nlet responsiveSheets = new Map()\r\n\r\nlet notFound = () => {\r\n if (pseudos.length > 0) {\r\n let rules = []\r\n for (const sheet of document.styleSheets) {\r\n rules.push(...findInSheet(sheet))\r\n }\r\n let responsive = pseudos[0].slice(1)\r\n if (config.screens[responsive]) {\r\n let screens = Object.entries(config.screens)\r\n for (let [rule, sheet] of rules) {\r\n let sheets = responsiveSheets.get(sheet)\r\n if (!sheets) {\r\n sheets = newObject()\r\n for (const [r, size] of screens) {\r\n sheets[r] = sheet.cssRules[sheet.insertRule(`@media(min-width:${size}){}`, sheet.cssRules.length)]\r\n }\r\n responsiveSheets[sheet] = sheets\r\n }\r\n setRule(rule, sheets[responsive])\r\n }\r\n } else {\r\n for (let [rule, sheet] of rules) {\r\n setRule(rule, sheet)\r\n }\r\n }\r\n }\r\n}\r\n\r\n// pseudos = split('::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P!::P'.replace(/P/g, 'placeholder'))\r\nlet pseudoVendorPrefixes = newObject({\r\n '::placeholder': '::-webkit-input-P!::-moz-P!:-ms-input-P!::-ms-input-P'.replace(/P/g, 'placeholder'),\r\n '::selection': ':::-moz-selection'\r\n})\r\n\r\nfunction setRule (rule, sheet) {\r\n let pseudo = ''\r\n let ruleCls = originalClass\r\n let sheetPrefix = 'default'\r\n let important = ''\r\n let insertRule = () => {\r\n try {\r\n sheet.insertRule(important + `.${ruleCls}${pseudo}{${rule}}`, sheet.cssRules.length)\r\n } catch (err) {\r\n // console.log(err)\r\n }\r\n }\r\n\r\n if (componentName) {\r\n ruleCls = componentName\r\n sheetPrefix = 'custom'\r\n }\r\n ruleCls = ruleCls.replace(/[.:()&@~*^$%,#]/g, '\\\\$&')\r\n if (config.important) {\r\n if (config.important === true) {\r\n rule = rule.replace(/;/g, '!important;') + '!important'\r\n } else if (typeof config.important === 'string') {\r\n important = config.important + ' '\r\n }\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n let mediaQuery = media.get(sheetPrefix + pseudos[0].slice(1) + sheetLevel)\r\n if (mediaQuery) {\r\n sheet = sheet || mediaQuery\r\n pseudos.shift()\r\n }\r\n }\r\n\r\n if (!sheet) {\r\n sheet = media.get(sheetPrefix + sheetLevel)\r\n }\r\n\r\n if (pseudos.length > 0) {\r\n for (const pseudo of [...pseudos]) {\r\n let prefixes = pseudoVendorPrefixes[pseudo]\r\n if (prefixes) {\r\n pseudos.push(...split(prefixes))\r\n }\r\n }\r\n for (pseudo of pseudos) {\r\n // console.log(`.${cls}${pseudo}{${t}}`)\r\n if (includes(':first!:last', pseudo)) {\r\n pseudo = pseudo + '-child'\r\n } else if (includes(':odd!:even', pseudo)) {\r\n pseudo = `:nth-child(${pseudo.slice(1)})`\r\n } else if (pseudo.startsWith(':group')) {\r\n ruleCls = pseudo.slice(1).replace('-', ':') + ' .' + ruleCls\r\n pseudo = ''\r\n }\r\n insertRule()\r\n }\r\n } else {\r\n insertRule()\r\n }\r\n}\r\n"],"names":["parentSheet","componentName","addedScreens","isNum","v","isNaN","isStartNum","parseInt","split","s","indexOf","includes","ifRemTo","negative","Number","newObject","o","Object","assign","create","classesCache","Map","customCache","config","separator","screens","sm","md","lg","xl","isObject","value","prototype","toString","call","hex6","Error","startsWith","length","slice","map","join","test","errorNotObject","customColors","document","styleSheets","head","appendChild","createElement","sheet","cls","originalClass","media","setMedia","prefix","size","condition","i","set","cssRules","insertRule","formatters","p","m","h","z","w","classNames","c","replace","firstPart","secondPart","thirdPart","fourthPart","lastPart","partsWithoutEnd","rest","rule","pseudos","sheetLevel","colors","colorNames","roundedSize","edge","l","r","t","b","setColor","type","color","get","colorPos","rgba","setPosition","timeProp","cls2process","object","overflow","clearfix","text","pos","endsWith","num","font","whitespace","inset","top","right","bottom","left","flex","ruleFunc","v1","v2","v3","order","grid","cols","span","start","end","rows","row","gap","col","space","divide","min","max","tracking","leading","placeholder","push","align","bg","rounded","place1","border","opacity","transition","ruleFunc2","duration","delay","ease","scale","rotate","translate","fractions","skew","transform","origin","cursor","shadow","xs","2xl","inner","outline","none","pointer","select","fill","stroke","items","content","self","gridRowAlign","justify","webkit","pseudosRegex","specialChars","processClass","RegExp","match","pop","customData","classes","props","lastIndexOf","pseudosStr","originalPseudos","trim","setRule","notFound","parts","process","toFixed","basicPart","e","formatClass","entries","findInSheet","rules","CSSRule","STYLE_RULE","selectorText","item","cssText","MEDIA_RULE","responsiveSheets","responsive","sheets","pseudoVendorPrefixes","::placeholder","::selection","pseudo","ruleCls","sheetPrefix","important","err","mediaQuery","shift","prefixes","name","conf","undefined","key1","value1","has"],"mappings":"q/BAEA,IASIA,EAEAC,EACAC,EAZAC,EAAQ,SAACC,UAAOC,MAAMD,IACtBE,EAAa,SAACF,UAAOC,MAAME,SAASH,KACpCI,EAAQ,SAACC,UAAMA,EAAED,MAAM,MACvBE,EAAU,SAACD,EAAGL,UAAMI,EAAMC,GAAGC,QAAQN,IACrCO,EAAW,SAACF,EAAGL,UAAMI,EAAMC,GAAGE,SAASP,IACvCQ,EAAU,SAACR,UAAMD,EAAMC,GAAKS,EAAuB,IAAZC,OAAOV,GAAY,MAAQS,EAAWT,GAC7EW,EAAY,SAACC,mBAAAA,IAAAA,EAAI,IAAOC,OAAOC,OAAOD,OAAOE,OAAO,MAAOH,IAC3DI,EAAe,IAAIC,IACnBC,EAAc,IAAID,IAElBE,EAASR,EAAU,CAAES,UAAW,IAAKC,QAAS,CAAEC,GAAI,QAASC,GAAI,QAASC,GAAI,SAAUC,GAAI,YAe5FC,EAAW,SAAAC,SAAmD,oBAA1Cd,OAAOe,UAAUC,SAASC,KAAKH,IACnDI,EAAO,SAAAJ,GACT,GAAqB,iBAAVA,EACT,MAAMK,MAAM,kCAMd,GAJKL,EAAMM,WAAW,OACpBN,EAAQ,IAAMA,GAEhBA,EAAyB,IAAjBA,EAAMO,OAAeP,EAAMQ,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GADAkL,EAAOA,EAAKhC,OACRlK,EAAawE,IAAI0H,GACnB,MAAMlL,gBAAgBkL,8BAExBhM,EAAYqC,IAAI2J,EAAM,CAACrC,EAASC,iBA0BX,SAACqC,YAAAA,IAAAA,EAAOxM,KAC7B,cAAcP,EAAM,oCAAqB,KAAhCC,UACP,QAAgB+M,IAAZD,EAAK9M,IAAuC,iBAAZ8M,EAAK9M,GACvC,MAAM2B,gBAAgB3B,wBAM1B,GAHI8M,EAAK9L,SACPkB,EAAe4K,EAAK9L,SAElB8L,EAAKtI,OAAQ,CACftC,EAAe4K,EAAKtI,QACpB,cAA2BhE,OAAO8K,QAAQwB,EAAKtI,uBAAS,YAA9CwI,OAAMC,OACd,GAAI5L,EAAS4L,GACX,cAA2BzM,OAAO8K,QAAQ2B,kBAAS,YACjD9K,EAAae,IAAI8J,EAAO,SAAYtL,cAGtCS,EAAae,IAAI8J,EAAMtL,EAAKuL,UAIhCzM,OAAOC,OAAOK,EAAQgM,cAqBL,SAACtC,GACpB,IAAK/K,EAAc,CACjBA,GAAe,EAEf,IADA,MAAI6L,EAAU9K,OAAO8K,QAAQxK,EAAOE,aACpBjB,EAAM,kCAAmB,KAA9BwD,UACTV,EAASU,GACT,cAA0B+H,kBAAS,eACjCzI,EAASU,eAIf,GAAuB,iBAAZiH,IACTA,EAAUA,EAAQK,QACblK,EAAauM,IAAI1C,IAAU,CAC9B,cAAYA,EAAQ3G,QAAQ,SAAU,KAAK9D,MAAM,qBAC3CY,EAAauM,IADdxK,aAIH/B,EAAauC,IAAIR,GAAK,GACtByH,MAEFxJ,EAAauC,IAAIsH,GAAS"} \ No newline at end of file diff --git a/docs/app.js b/docs/app.js index 2e9c4e1..fb1758a 100644 --- a/docs/app.js +++ b/docs/app.js @@ -43,7 +43,7 @@ const card = div.class`md:flex bg-white rounded-lg p-6`( img.class`h-16 w-16 md:h-24 md:w-24 rounded-full mx-auto md:mx-0 md:mr-6`.src`./avatar.jpg`, div.class`text-center md:text-left`( - h2.class`text-lg``Erin Lindford`, + h2.class`text-lg opacity-5``Erin Lindford`, div.class`text-purple-500``Customer Support`, div.class`text-gray-600``erinlindford@example.com`, div.class`text-gray-600``(555) 765-4321`)) diff --git a/docs/index.html b/docs/index.html index c2e92a0..c422553 100644 --- a/docs/index.html +++ b/docs/index.html @@ -29,7 +29,7 @@
-

Erin Lindford

+

Erin Lindford

Customer Support
erinlindford@example.com
(555) 765-4321
diff --git a/src/runcss.js b/src/runcss.js index 128c72e..864b82d 100644 --- a/src/runcss.js +++ b/src/runcss.js @@ -522,7 +522,7 @@ let cls2process = newObject({ }, opacity: () => { if (isNum(secondPart)) { - rule = 'opacity:' + 100 / secondPart + rule = 'opacity:' + secondPart / 100.0 } }, transition: () => { @@ -624,7 +624,7 @@ let cls2process = newObject({ let v = shadows[secondPart] if (v) { v = v.replace(/R/g, ' rgba(0, 0, 0, 0') - console.log(v) + // console.log(v) rule = `-webkit-box-shadow:${v};box-shadow:` + v } },