Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generate-atomic-css

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-atomic-css - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

12

dist/generate-atomic-css.esm.js
/**
* @name generate-atomic-css
* @fileoverview Generate Atomic CSS
* @version 3.0.8
* @version 3.0.9
* @author Roy Revelt, Codsen Ltd

@@ -10,3 +10,3 @@ * @license MIT

import{left as y,right as g}from"string-left-right";var J="3.0.8";import{left as O,right as b,leftSeq as x,rightSeq as L}from"string-left-right";function P(e){return typeof e=="string"}var F={CONFIGHEAD:"GENERATE-ATOMIC-CSS-CONFIG-STARTS",CONFIGTAIL:"GENERATE-ATOMIC-CSS-CONFIG-ENDS",CONTENTHEAD:"GENERATE-ATOMIC-CSS-CONTENT-STARTS",CONTENTTAIL:"GENERATE-ATOMIC-CSS-CONTENT-ENDS"},w=["px","em","%","rem","cm","mm","in","pt","pc","ex","ch","vw","vmin","vmax"],{CONFIGHEAD:T,CONFIGTAIL:S,CONTENTHEAD:E,CONTENTTAIL:h}=F,H=[":"];function W(e){let u=e,c="",d="";if(e.includes(T)&&e.includes(S)){if(e.indexOf(S)!==-1&&e.indexOf(E)!==-1&&e.indexOf(S)>e.indexOf(E))throw new Error("generate-atomic-css: [THROW_ID_02] Config heads are after config tails!");let s=e.indexOf(T)+T.length,l=e.indexOf(S);if(e[b(e,s)]==="*"&&e[b(e,b(e,s))]==="/"&&(s=b(e,b(e,s))+1),e[O(e,l)]==="*"&&e[O(e,O(e,l))]==="/"&&(l=O(e,O(e,l))),u=e.slice(s,l).trim(),!P(u)||!u.trim().length)return[u,c,d]}else if(e.includes(T)&&!e.includes(S)&&e.includes(E)){if(e.indexOf(T)>e.indexOf(E))throw new Error("generate-atomic-css: [THROW_ID_03] Config heads are after content heads!");u=e.slice(e.indexOf(T)+T.length,e.indexOf(E))}else if(!e.includes(T)&&!e.includes(S)&&(e.includes(E)||e.includes(h))){if(u=e,u.includes(E)){if(O(e,u.indexOf(E))){let o=u.indexOf(E);x(e,o,"/","*")&&(o=x(e,o,"/","*").leftmostChar),c=o===0?"":e.slice(0,o)}let s=u.indexOf(E)+E.length;L(u,s-1,"*","/")&&(s=L(u,s-1,"*","/").rightmostChar+1);let l=null;if(e.includes(h)){l=e.indexOf(h),e[O(e,l)]==="*"&&e[O(e,O(e,l))]==="/"&&(l=O(e,O(e,l)));let o=e.indexOf(h)+h.length;e[b(e,o-1)]==="*"&&e[b(e,b(e,o-1))]==="/"&&(o=b(e,b(e,o-1))+1),b(e,o)&&(d=e.slice(o))}l?u=u.slice(s,l).trim():u=u.slice(s).trim()}else if(u.includes(h)){let s=[],l=!1;u=u.split(`
import{left as N,right as g}from"string-left-right";var J="3.0.9";import{left as O,right as b,leftSeq as x,rightSeq as L}from"string-left-right";import{isStr as P}from"codsen-utils";var F={CONFIGHEAD:"GENERATE-ATOMIC-CSS-CONFIG-STARTS",CONFIGTAIL:"GENERATE-ATOMIC-CSS-CONFIG-ENDS",CONTENTHEAD:"GENERATE-ATOMIC-CSS-CONTENT-STARTS",CONTENTTAIL:"GENERATE-ATOMIC-CSS-CONTENT-ENDS"},w=["px","em","%","rem","cm","mm","in","pt","pc","ex","ch","vw","vmin","vmax"],{CONFIGHEAD:T,CONFIGTAIL:S,CONTENTHEAD:E,CONTENTTAIL:h}=F,H=[":"];function W(e){let u=e,c="",d="";if(e.includes(T)&&e.includes(S)){if(e.indexOf(S)!==-1&&e.indexOf(E)!==-1&&e.indexOf(S)>e.indexOf(E))throw new Error("generate-atomic-css: [THROW_ID_02] Config heads are after config tails!");let s=e.indexOf(T)+T.length,l=e.indexOf(S);if(e[b(e,s)]==="*"&&e[b(e,b(e,s))]==="/"&&(s=b(e,b(e,s))+1),e[O(e,l)]==="*"&&e[O(e,O(e,l))]==="/"&&(l=O(e,O(e,l))),u=e.slice(s,l).trim(),!P(u)||!u.trim().length)return[u,c,d]}else if(e.includes(T)&&!e.includes(S)&&e.includes(E)){if(e.indexOf(T)>e.indexOf(E))throw new Error("generate-atomic-css: [THROW_ID_03] Config heads are after content heads!");u=e.slice(e.indexOf(T)+T.length,e.indexOf(E))}else if(!e.includes(T)&&!e.includes(S)&&(e.includes(E)||e.includes(h))){if(u=e,u.includes(E)){if(O(e,u.indexOf(E))){let o=u.indexOf(E);x(e,o,"/","*")&&(o=x(e,o,"/","*").leftmostChar),c=o===0?"":e.slice(0,o)}let s=u.indexOf(E)+E.length;L(u,s-1,"*","/")&&(s=L(u,s-1,"*","/").rightmostChar+1);let l=null;if(e.includes(h)){l=e.indexOf(h),e[O(e,l)]==="*"&&e[O(e,O(e,l))]==="/"&&(l=O(e,O(e,l)));let o=e.indexOf(h)+h.length;e[b(e,o-1)]==="*"&&e[b(e,b(e,o-1))]==="/"&&(o=b(e,b(e,o-1))+1),b(e,o)&&(d=e.slice(o))}l?u=u.slice(s,l).trim():u=u.slice(s).trim()}else if(u.includes(h)){let s=[],l=!1;u=u.split(`
`).filter(i=>!i.includes("$$$")&&!l?(l||s.push(i),!1):(l||(l=!0),!0)).join(`

@@ -21,5 +21,5 @@ `);let o=u.indexOf(h);x(u,o,"/","*")&&(o=x(u,o,"/","*").leftmostChar),u=u.slice(0,o).trim(),s.length&&(c=`${s.join(`

${i.join(`
`)}`)}return[u,c,d]}function M(e,u=!0){if(!u)return e;let c=Array.from(e);if(c.length&&P(c[0])&&!c[0].trim().length)do c.shift();while(P(c[0])&&!c[0].trim().length);if(c.length&&P(c[c.length-1])&&!c[c.length-1].trim().length)do c.pop();while(c[c.length-1]&&!c[c.length-1].trim().length);return c}function j(e,u=0,c=500){let d=u,s=c,l=e,o;if(e.lastIndexOf("}")>0&&e.slice(e.lastIndexOf("}")+1).includes("|")?o=e.slice(e.lastIndexOf("}")+1).split("|").filter(r=>r.trim().length).map(r=>r.trim()).filter(r=>String(r).split("").every(i=>/\d/g.test(i))):e.includes("|")&&(o=e.split("|").filter(r=>r.trim().length).map(r=>r.trim()).filter(r=>String(r).split("").every(i=>/\d/g.test(i)))),Array.isArray(o)&&(o.length===1?s=Number.parseInt(o[0],10):o.length>1&&(d=Number.parseInt(o[0],10),s=Number.parseInt(o[1],10))),e.lastIndexOf("}")>0&&e.slice(e.lastIndexOf("}")+1).includes("|")){if(l=e.slice(0,e.indexOf("|",e.lastIndexOf("}")+1)).trimEnd(),l.trim().startsWith("|"))for(;l.trim().startsWith("|");)l=l.trim().slice(1)}else{let r=null,i=!1,a=0,t=e.length,p=null;for(let f=0,m=e.length;f<m;f++)if("0123456789".includes(e[f])?p===null&&e[f].trim().length&&(p=!0):e[f]!=="|"&&e[f].trim().length&&(p=!1),!e[f+1]&&p&&r&&(t=r),e[f]==="|"){if(p&&r){t=r;break}r=f,p=null}else!i&&e[f].trim().length&&(i=!0,r!==null&&(a=r+1));l=e.slice(a,t).trimEnd()}return[d,s,l]}function G(e,u,c,d,s,l){let o,r=0,[i,a,t]=j(e,0,500),p=d-c,f="";for(let m=i;m<=a;m++){let A=0,n=0;for(let $=0,v=t.length;$<v;$++){let _=t[$].charCodeAt(0);if(t[$]==="$"&&t[$-1]==="$"&&t[$-2]==="$"){let N=t.slice($+1),V="";if(m===0&&w.some(D=>{if(N.startsWith(D))return V=D,!0})&&(t[b(t,$+V.length)]==="{"||!t[$+V.length+1].trim().length))f+=`${t.slice(n,$-2)}${l?String(m).padStart(String(a).length-String(m).length+V.length+1):m}`,n=$+1+(V?V.length:0);else{let D="";if(w.some(C=>{if(t.startsWith(C,$+1))return D=C,!0}),!t[$-3].trim().length||H.some(C=>t.slice(n,$-2).trim().endsWith(C))){let C=0;m===0&&w.some(I=>(`${t.slice(n,$-2)}`.startsWith(I)&&(C=I.length),!0)),f+=`${t.slice(n+C,$-2)}${l?String(m).padStart(String(a).length+(m===0&&D?D.length:0)):m}`}else!t[$+1].trim().length||t[b(t,$)]==="{"?f+=`${t.slice(n,$-2)}${l?String(m).padEnd(String(a).length+(m===0&&D?+D.length:0)):m}`:(f+=`${t.slice(n,$-2)}${m}`,l&&(A=String(a).length-String(m).length));n=$+1}}if(t[$]==="{"&&l&&A&&(f+=`${t.slice(n,$)}${" ".repeat(A)}`,n=$,A=0),!t[$+1]){let N="",V=t.slice(n);m===0&&w.some(D=>{if(V.startsWith(D))return N=D,!0})?f+=`${t.slice(n+N.length)}`:f+=`${t.slice(n)}`,f+=`${m!==a?`
`)}`)}return[u,c,d]}function M(e,u=!0){if(!u)return e;let c=Array.from(e);if(c.length&&P(c[0])&&!c[0].trim().length)do c.shift();while(P(c[0])&&!c[0].trim().length);if(c.length&&P(c[c.length-1])&&!c[c.length-1].trim().length)do c.pop();while(c[c.length-1]&&!c[c.length-1].trim().length);return c}function j(e,u=0,c=500){let d=u,s=c,l=e,o;if(e.lastIndexOf("}")>0&&e.slice(e.lastIndexOf("}")+1).includes("|")?o=e.slice(e.lastIndexOf("}")+1).split("|").filter(r=>r.trim().length).map(r=>r.trim()).filter(r=>String(r).split("").every(i=>/\d/g.test(i))):e.includes("|")&&(o=e.split("|").filter(r=>r.trim().length).map(r=>r.trim()).filter(r=>String(r).split("").every(i=>/\d/g.test(i)))),Array.isArray(o)&&(o.length===1?s=Number.parseInt(o[0],10):o.length>1&&(d=Number.parseInt(o[0],10),s=Number.parseInt(o[1],10))),e.lastIndexOf("}")>0&&e.slice(e.lastIndexOf("}")+1).includes("|")){if(l=e.slice(0,e.indexOf("|",e.lastIndexOf("}")+1)).trimEnd(),l.trim().startsWith("|"))for(;l.trim().startsWith("|");)l=l.trim().slice(1)}else{let r=null,i=!1,a=0,t=e.length,p=null;for(let f=0,m=e.length;f<m;f++)if("0123456789".includes(e[f])?p===null&&e[f].trim().length&&(p=!0):e[f]!=="|"&&e[f].trim().length&&(p=!1),!e[f+1]&&p&&r&&(t=r),e[f]==="|"){if(p&&r){t=r;break}r=f,p=null}else!i&&e[f].trim().length&&(i=!0,r!==null&&(a=r+1));l=e.slice(a,t).trimEnd()}return[d,s,l]}function G(e,u,c,d,s,l){let o,r=0,[i,a,t]=j(e,0,500),p=d-c,f="";for(let m=i;m<=a;m++){let A=0,n=0;for(let $=0,v=t.length;$<v;$++){let _=t[$].charCodeAt(0);if(t[$]==="$"&&t[$-1]==="$"&&t[$-2]==="$"){let y=t.slice($+1),V="";if(m===0&&w.some(D=>{if(y.startsWith(D))return V=D,!0})&&(t[b(t,$+V.length)]==="{"||!t[$+V.length+1].trim().length))f+=`${t.slice(n,$-2)}${l?String(m).padStart(String(a).length-String(m).length+V.length+1):m}`,n=$+1+(V?V.length:0);else{let D="";if(w.some(C=>{if(t.startsWith(C,$+1))return D=C,!0}),!t[$-3].trim().length||H.some(C=>t.slice(n,$-2).trim().endsWith(C))){let C=0;m===0&&w.some(I=>(`${t.slice(n,$-2)}`.startsWith(I)&&(C=I.length),!0)),f+=`${t.slice(n+C,$-2)}${l?String(m).padStart(String(a).length+(m===0&&D?D.length:0)):m}`}else!t[$+1].trim().length||t[b(t,$)]==="{"?f+=`${t.slice(n,$-2)}${l?String(m).padEnd(String(a).length+(m===0&&D?+D.length:0)):m}`:(f+=`${t.slice(n,$-2)}${m}`,l&&(A=String(a).length-String(m).length));n=$+1}}if(t[$]==="{"&&l&&A&&(f+=`${t.slice(n,$)}${" ".repeat(A)}`,n=$,A=0),!t[$+1]){let y="",V=t.slice(n);m===0&&w.some(D=>{if(V.startsWith(D))return y=D,!0})?f+=`${t.slice(n+y.length)}`:f+=`${t.slice(n)}`,f+=`${m!==a?`
`:""}`}}s.count+=1,typeof u=="function"&&(o=Math.floor(c+m/(a-i)*p),o!==r&&(r=o,u(o)))}return f}function k(e,u){return/\.\w/g.test(e)&&(u.count+=1),e}function B(e,u,c,d,s=!0,l,o){return M(e.split(/\r?\n/).map((r,i,a)=>r.includes("$$$")?G(r,u,c+(d-c)/a.length*i,c+(d-c)/a.length*(i+1),l,o):k(r,l)),s).join(`
`)}var ee=J,U={includeConfig:!0,includeHeadsAndTails:!0,pad:!0,configOverride:null,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100};function ne(e,u){function c(n,$={}){return!$.includeConfig&&!$.includeHeadsAndTails?n:n.trim()}if(typeof e!="string")throw new Error(`generate-atomic-css: [THROW_ID_01] First input argument must be a string! It was given as "${JSON.stringify(e,null,4)}" (type ${typeof e})`);let{CONFIGHEAD:d,CONFIGTAIL:s,CONTENTHEAD:l,CONTENTTAIL:o}=F,r={count:0},i={...U,...u};if(i.includeConfig&&!i.includeHeadsAndTails&&(i.includeHeadsAndTails=!0),!i.configOverride&&!e.includes("$$$")&&!e.includes(d)&&!e.includes(s)&&!e.includes(l)&&!e.includes(o)||i?.configOverride&&typeof i.configOverride=="string"&&!i.configOverride.includes("$$$")&&!i.configOverride.includes(d)&&!i.configOverride.includes(s)&&!i.configOverride.includes(l)&&!i.configOverride.includes(o))return{log:{count:0},result:e};let a="",t="",[p,f,m]=W(i.configOverride?i.configOverride:e);if(typeof p!="string"||!p.trim())return{log:{count:0},result:""};if((i.includeConfig||i.includeHeadsAndTails)&&(a=`${l} */
`)}var ne=J,U={includeConfig:!0,includeHeadsAndTails:!0,pad:!0,configOverride:null,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100};function te(e,u){function c(n,$={}){return!$.includeConfig&&!$.includeHeadsAndTails?n:n.trim()}if(typeof e!="string")throw new Error(`generate-atomic-css: [THROW_ID_01] First input argument must be a string! It was given as "${JSON.stringify(e,null,4)}" (type ${typeof e})`);let{CONFIGHEAD:d,CONFIGTAIL:s,CONTENTHEAD:l,CONTENTTAIL:o}=F,r={count:0},i={...U,...u};if(i.includeConfig&&!i.includeHeadsAndTails&&(i.includeHeadsAndTails=!0),!i.configOverride&&!e.includes("$$$")&&!e.includes(d)&&!e.includes(s)&&!e.includes(l)&&!e.includes(o)||i?.configOverride&&typeof i.configOverride=="string"&&!i.configOverride.includes("$$$")&&!i.configOverride.includes(d)&&!i.configOverride.includes(s)&&!i.configOverride.includes(l)&&!i.configOverride.includes(o))return{log:{count:0},result:e};let a="",t="",[p,f,m]=W(i.configOverride?i.configOverride:e);if(typeof p!="string"||!p.trim())return{log:{count:0},result:""};if((i.includeConfig||i.includeHeadsAndTails)&&(a=`${l} */
`,i.includeConfig||(a=`/* ${a}`),t=`

@@ -29,3 +29,3 @@ /* ${o} */`),i.includeConfig&&(a=`/* ${d}

${s}
${a}`),e.includes(d)&&y(e,e.indexOf(d))!=null){let n=e.indexOf(d);e[y(e,n)]==="*"&&e[y(e,y(e,n))]==="/"&&(n=y(e,y(e,n)));let $="/* ";(e[g(e,n-1)]==="/"&&e[g(e,g(e,n-1))]==="*"||a.trim().startsWith("/*"))&&($=""),a=`${e.slice(0,n)}${$}${a}`}if(e.includes(s)&&g(e,e.indexOf(s)+s.length)){let n=e.indexOf(s)+s.length;e[g(e,e.indexOf(s)+s.length)]==="*"&&e[g(e,g(e,e.indexOf(s)+s.length))]==="/"&&(n=g(e,g(e,e.indexOf(s)+s.length))+1),e.slice(g(e,n-1)).startsWith(l)&&(n=g(e,n)||0+l.length,e[g(e,n-1)]==="*"&&e[g(e,g(e,n-1))]==="/"&&(n=g(e,g(e,n-1))+1),e.includes(o)&&(n=e.indexOf(o)+o.length,e[g(e,n)]==="*"&&e[g(e,g(e,n))]==="/"&&(n=g(e,g(e,n))+1)));let $=e.slice(n);$.length&&$.includes(o)&&(n=e.indexOf(o)+o.length,e[g(e,n)]==="*"&&e[g(e,g(e,n))]==="/"&&(n=g(e,g(e,n))+1)),t=`${t}${e[n]&&g(e,n-1)?e.slice(n):""}`}if(typeof f=="string"&&(a=`${f}${a}`),typeof m=="string"){if(m.trim().endsWith("/*")&&!m.trim().startsWith("*/")){let n="";typeof m=="string"&&m[0]&&!m[0].trim()&&(n=m.slice(0,g(m,0)||0)),m=`${n}/* ${m.trim()}`}t=`${t}${m}`}let A=`${c(`${a}${B(p,i.reportProgressFunc,i.reportProgressFuncFrom,i.reportProgressFuncTo,!0,r,i.pad)}${t}`,i)}
`;return{log:{count:r.count},result:A}}export{U as defaults,j as extractFromToSource,ne as genAtomic,F as headsAndTails,ee as version};
${a}`),e.includes(d)&&N(e,e.indexOf(d))!=null){let n=e.indexOf(d);e[N(e,n)]==="*"&&e[N(e,N(e,n))]==="/"&&(n=N(e,N(e,n)));let $="/* ";(e[g(e,n-1)]==="/"&&e[g(e,g(e,n-1))]==="*"||a.trim().startsWith("/*"))&&($=""),a=`${e.slice(0,n)}${$}${a}`}if(e.includes(s)&&g(e,e.indexOf(s)+s.length)){let n=e.indexOf(s)+s.length;e[g(e,e.indexOf(s)+s.length)]==="*"&&e[g(e,g(e,e.indexOf(s)+s.length))]==="/"&&(n=g(e,g(e,e.indexOf(s)+s.length))+1),e.slice(g(e,n-1)).startsWith(l)&&(n=g(e,n)||0+l.length,e[g(e,n-1)]==="*"&&e[g(e,g(e,n-1))]==="/"&&(n=g(e,g(e,n-1))+1),e.includes(o)&&(n=e.indexOf(o)+o.length,e[g(e,n)]==="*"&&e[g(e,g(e,n))]==="/"&&(n=g(e,g(e,n))+1)));let $=e.slice(n);$.length&&$.includes(o)&&(n=e.indexOf(o)+o.length,e[g(e,n)]==="*"&&e[g(e,g(e,n))]==="/"&&(n=g(e,g(e,n))+1)),t=`${t}${e[n]&&g(e,n-1)?e.slice(n):""}`}if(typeof f=="string"&&(a=`${f}${a}`),typeof m=="string"){if(m.trim().endsWith("/*")&&!m.trim().startsWith("*/")){let n="";typeof m=="string"&&m[0]&&!m[0].trim()&&(n=m.slice(0,g(m,0)||0)),m=`${n}/* ${m.trim()}`}t=`${t}${m}`}let A=`${c(`${a}${B(p,i.reportProgressFunc,i.reportProgressFuncFrom,i.reportProgressFuncTo,!0,r,i.pad)}${t}`,i)}
`;return{log:{count:r.count},result:A}}export{U as defaults,j as extractFromToSource,te as genAtomic,F as headsAndTails,ne as version};
/**
* @name generate-atomic-css
* @fileoverview Generate Atomic CSS
* @version 3.0.8
* @version 3.0.9
* @author Roy Revelt, Codsen Ltd

@@ -10,13 +10,13 @@ * @license MIT

"use strict";var generateAtomicCss=(()=>{var yt=Object.create;var B=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var At=Object.getOwnPropertyNames,De=Object.getOwnPropertySymbols,Dt=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable;var we=(e,t,n)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))Oe.call(t,n)&&we(e,n,t[n]);if(De)for(var n of De(t))wt.call(t,n)&&we(e,n,t[n]);return e};var Ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ct=(e,t)=>{for(var n in t)B(e,n,{get:t[n],enumerable:!0})},Ce=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of At(t))!Oe.call(e,o)&&o!==n&&B(e,o,{get:()=>t[o],enumerable:!(r=Et(t,o))||r.enumerable});return e};var St=(e,t,n)=>(n=e!=null?yt(Dt(e)):{},Ce(t||!e||!e.__esModule?B(n,"default",{value:e,enumerable:!0}):n,e)),Tt=e=>Ce(B({},"__esModule",{value:!0}),e);var mt=Ot((W,P)=>{var xt=200,Le="__lodash_hash_undefined__",Re=9007199254740991,fe="[object Arguments]",vt="[object Array]",Be="[object Boolean]",We="[object Date]",Vt="[object Error]",ge="[object Function]",Me="[object GeneratorFunction]",U="[object Map]",Je="[object Number]",me="[object Object]",Se="[object Promise]",He="[object RegExp]",k="[object Set]",Ge="[object String]",Ue="[object Symbol]",ie="[object WeakMap]",ke="[object ArrayBuffer]",K="[object DataView]",Ke="[object Float32Array]",qe="[object Float64Array]",Qe="[object Int8Array]",Ze="[object Int16Array]",Xe="[object Int32Array]",Ye="[object Uint8Array]",ze="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",Nt=/[\\^$.*+?()[\]{}|]/g,_t=/\w*$/,Pt=/^\[object .+?Constructor\]$/,Ft=/^(?:0|[1-9]\d*)$/,p={};p[fe]=p[vt]=p[ke]=p[K]=p[Be]=p[We]=p[Ke]=p[qe]=p[Qe]=p[Ze]=p[Xe]=p[U]=p[Je]=p[me]=p[He]=p[k]=p[Ge]=p[Ue]=p[Ye]=p[ze]=p[et]=p[tt]=!0;p[Vt]=p[ge]=p[ie]=!1;var It=typeof global=="object"&&global&&global.Object===Object&&global,jt=typeof self=="object"&&self&&self.Object===Object&&self,w=It||jt||Function("return this")(),nt=typeof W=="object"&&W&&!W.nodeType&&W,Te=nt&&typeof P=="object"&&P&&!P.nodeType&&P,Lt=Te&&Te.exports===nt;function Rt(e,t){return e.set(t[0],t[1]),e}function Bt(e,t){return e.add(t),e}function Wt(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function Mt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function rt(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ht(e,t){return e==null?void 0:e[t]}function ot(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function xe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function $e(e,t){return function(n){return e(t(n))}}function ve(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Gt=Array.prototype,Ut=Function.prototype,q=Object.prototype,oe=w["__core-js_shared__"],Ve=function(){var e=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),it=Ut.toString,T=q.hasOwnProperty,Q=q.toString,kt=RegExp("^"+it.call(T).replace(Nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=Lt?w.Buffer:void 0,_e=w.Symbol,Pe=w.Uint8Array,Kt=$e(Object.getPrototypeOf,Object),qt=Object.create,Qt=q.propertyIsEnumerable,Zt=Gt.splice,Fe=Object.getOwnPropertySymbols,Xt=Ne?Ne.isBuffer:void 0,Yt=$e(Object.keys,Object),le=j(w,"DataView"),M=j(w,"Map"),se=j(w,"Promise"),ue=j(w,"Set"),ae=j(w,"WeakMap"),J=j(Object,"create"),zt=_(le),en=_(M),tn=_(se),nn=_(ue),rn=_(ae),Ie=_e?_e.prototype:void 0,je=Ie?Ie.valueOf:void 0;function N(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function on(){this.__data__=J?J(null):{}}function ln(e){return this.has(e)&&delete this.__data__[e]}function sn(e){var t=this.__data__;if(J){var n=t[e];return n===Le?void 0:n}return T.call(t,e)?t[e]:void 0}function un(e){var t=this.__data__;return J?t[e]!==void 0:T.call(t,e)}function an(e,t){var n=this.__data__;return n[e]=J&&t===void 0?Le:t,this}N.prototype.clear=on;N.prototype.delete=ln;N.prototype.get=sn;N.prototype.has=un;N.prototype.set=an;function O(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function cn(){this.__data__=[]}function fn(e){var t=this.__data__,n=Z(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Zt.call(t,n,1),!0}function gn(e){var t=this.__data__,n=Z(t,e);return n<0?void 0:t[n][1]}function mn(e){return Z(this.__data__,e)>-1}function $n(e,t){var n=this.__data__,r=Z(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}O.prototype.clear=cn;O.prototype.delete=fn;O.prototype.get=gn;O.prototype.has=mn;O.prototype.set=$n;function F(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function dn(){this.__data__={hash:new N,map:new(M||O),string:new N}}function bn(e){return X(this,e).delete(e)}function pn(e){return X(this,e).get(e)}function hn(e){return X(this,e).has(e)}function yn(e,t){return X(this,e).set(e,t),this}F.prototype.clear=dn;F.prototype.delete=bn;F.prototype.get=pn;F.prototype.has=hn;F.prototype.set=yn;function I(e){this.__data__=new O(e)}function En(){this.__data__=new O}function An(e){return this.__data__.delete(e)}function Dn(e){return this.__data__.get(e)}function wn(e){return this.__data__.has(e)}function On(e,t){var n=this.__data__;if(n instanceof O){var r=n.__data__;if(!M||r.length<xt-1)return r.push([e,t]),this;n=this.__data__=new F(r)}return n.set(e,t),this}I.prototype.clear=En;I.prototype.delete=An;I.prototype.get=Dn;I.prototype.has=wn;I.prototype.set=On;function Cn(e,t){var n=be(e)||Qn(e)?Jt(e.length,String):[],r=n.length,o=!!r;for(var i in e)(t||T.call(e,i))&&!(o&&(i=="length"||Un(i,r)))&&n.push(i);return n}function lt(e,t,n){var r=e[t];(!(T.call(e,t)&&ct(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Z(e,t){for(var n=e.length;n--;)if(ct(e[n][0],t))return n;return-1}function Sn(e,t){return e&&st(t,pe(t),e)}function ce(e,t,n,r,o,i,l){var s;if(r&&(s=i?r(e,o,i,l):r(e)),s!==void 0)return s;if(!Y(e))return e;var a=be(e);if(a){if(s=Jn(e),!t)return Bn(e,s)}else{var g=V(e),u=g==ge||g==Me;if(Xn(e))return _n(e,t);if(g==me||g==fe||u&&!i){if(ot(e))return i?e:{};if(s=Hn(u?{}:e),!t)return Wn(e,Sn(s,e))}else{if(!p[g])return i?e:{};s=Gn(e,g,ce,t)}}l||(l=new I);var h=l.get(e);if(h)return h;if(l.set(e,s),!a)var d=n?Mn(e):pe(e);return Wt(d||e,function(m,b){d&&(b=m,m=e[b]),lt(s,b,ce(m,t,n,r,b,e,l))}),s}function Tn(e){return Y(e)?qt(e):{}}function xn(e,t,n){var r=t(e);return be(e)?r:Mt(r,n(e))}function vn(e){return Q.call(e)}function Vn(e){if(!Y(e)||Kn(e))return!1;var t=gt(e)||ot(e)?kt:Pt;return t.test(_(e))}function Nn(e){if(!at(e))return Yt(e);var t=[];for(var n in Object(e))T.call(e,n)&&n!="constructor"&&t.push(n);return t}function _n(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function de(e){var t=new e.constructor(e.byteLength);return new Pe(t).set(new Pe(e)),t}function Pn(e,t){var n=t?de(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Fn(e,t,n){var r=t?n(xe(e),!0):xe(e);return rt(r,Rt,new e.constructor)}function In(e){var t=new e.constructor(e.source,_t.exec(e));return t.lastIndex=e.lastIndex,t}function jn(e,t,n){var r=t?n(ve(e),!0):ve(e);return rt(r,Bt,new e.constructor)}function Ln(e){return je?Object(je.call(e)):{}}function Rn(e,t){var n=t?de(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Bn(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function st(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var l=t[o],s=r?r(n[l],e[l],l,n,e):void 0;lt(n,l,s===void 0?e[l]:s)}return n}function Wn(e,t){return st(e,ut(e),t)}function Mn(e){return xn(e,pe,ut)}function X(e,t){var n=e.__data__;return kn(t)?n[typeof t=="string"?"string":"hash"]:n.map}function j(e,t){var n=Ht(e,t);return Vn(n)?n:void 0}var ut=Fe?$e(Fe,Object):er,V=vn;(le&&V(new le(new ArrayBuffer(1)))!=K||M&&V(new M)!=U||se&&V(se.resolve())!=Se||ue&&V(new ue)!=k||ae&&V(new ae)!=ie)&&(V=function(e){var t=Q.call(e),n=t==me?e.constructor:void 0,r=n?_(n):void 0;if(r)switch(r){case zt:return K;case en:return U;case tn:return Se;case nn:return k;case rn:return ie}return t});function Jn(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&T.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Hn(e){return typeof e.constructor=="function"&&!at(e)?Tn(Kt(e)):{}}function Gn(e,t,n,r){var o=e.constructor;switch(t){case ke:return de(e);case Be:case We:return new o(+e);case K:return Pn(e,r);case Ke:case qe:case Qe:case Ze:case Xe:case Ye:case ze:case et:case tt:return Rn(e,r);case U:return Fn(e,r,n);case Je:case Ge:return new o(e);case He:return In(e);case k:return jn(e,r,n);case Ue:return Ln(e)}}function Un(e,t){return t=t==null?Re:t,!!t&&(typeof e=="number"||Ft.test(e))&&e>-1&&e%1==0&&e<t}function kn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Kn(e){return!!Ve&&Ve in e}function at(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||q;return e===n}function _(e){if(e!=null){try{return it.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function qn(e){return ce(e,!0,!0)}function ct(e,t){return e===t||e!==e&&t!==t}function Qn(e){return Zn(e)&&T.call(e,"callee")&&(!Qt.call(e,"callee")||Q.call(e)==fe)}var be=Array.isArray;function ft(e){return e!=null&&Yn(e.length)&&!gt(e)}function Zn(e){return zn(e)&&ft(e)}var Xn=Xt||tr;function gt(e){var t=Y(e)?Q.call(e):"";return t==ge||t==Me}function Yn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Re}function Y(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function zn(e){return!!e&&typeof e=="object"}function pe(e){return ft(e)?Cn(e):Nn(e)}function er(){return[]}function tr(){return!1}P.exports=qn});var $r={};Ct($r,{defaults:()=>ht,extractFromToSource:()=>ye,genAtomic:()=>mr,headsAndTails:()=>ne,version:()=>gr});function re(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}var nr=St(mt(),1);var L="\xA0";function rr(e){let t={value:e,hungry:!1,optional:!1};return(t.value.endsWith("?*")||t.value.endsWith("*?"))&&t.value.length>2?(t.value=t.value.slice(0,t.value.length-2),t.optional=!0,t.hungry=!0):t.value.endsWith("?")&&t.value.length>1?(t.value=t.value.slice(0,~-t.value.length),t.optional=!0):t.value.endsWith("*")&&t.value.length>1&&(t.value=t.value.slice(0,~-t.value.length),t.hungry=!0),t}function or(e){return typeof e=="string"}function ir({str:e,idx:t=0,stopAtNewlines:n=!1,stopAtRawNbsp:r=!1}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),!e[t+1]))return null;if(e[t+1]&&(e[t+1].trim()||n&&`
\r`.includes(e[t+1])||r&&e[t+1]===L))return t+1;if(e[t+2]&&(e[t+2].trim()||n&&`
\r`.includes(e[t+2])||r&&e[t+2]===L))return t+2;for(let o=t+1,i=e.length;o<i;o++)if(e[o].trim()||n&&`
\r`.includes(e[o])||r&&e[o]===L)return o;return null}function f(e,t=0){return ir({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}function lr({str:e,idx:t,stopAtNewlines:n,stopAtRawNbsp:r}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),t<1))return null;if(e[~-t]&&(e[~-t].trim()||n&&`
\r`.includes(e[~-t])||r&&e[~-t]===L))return~-t;if(e[t-2]&&(e[t-2].trim()||n&&`
\r`.includes(e[t-2])||r&&e[t-2]===L))return t-2;for(let o=t;o--;)if(e[o]&&(e[o].trim()||n&&`
\r`.includes(e[o])||r&&e[o]===L))return o;return null}function y(e,t=0){return lr({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}function $t(e,t,n,r,o){if(typeof t!="string"||!t.length||(typeof n!="number"&&(n=0),e==="right"&&!t[n+1]||e==="left"&&!t[~-n]))return null;let i=n,l=[],s,a,g,u=0;for(;u<o.length;){if(!or(o[u])||!o[u].length){u+=1;continue}let{value:h,optional:d,hungry:m}=rr(o[u]),b=e==="right"?f(t,i):y(t,i);if(r.i&&t[b].toLowerCase()===h.toLowerCase()||!r.i&&t[b]===h){let c=e==="right"?f(t,b):y(t,b);m&&(r.i&&t[c].toLowerCase()===h.toLowerCase()||!r.i&&t[c]===h)?g=!0:u+=1,typeof b=="number"&&e==="right"&&b>i+1?l.push([i+1,b]):e==="left"&&typeof b=="number"&&b<~-i&&l.unshift([b+1,i]),i=b,e==="right"?(s===void 0&&(s=b),a=b):(a===void 0&&(a=b),s=b)}else if(d){u+=1;continue}else if(g){u+=1,g=void 0;continue}else return null}return s===void 0||a===void 0?null:{gaps:l,leftmostChar:s,rightmostChar:a}}var z={i:!1};function H(e,t,...n){if(!(n!=null&&n.length))throw new Error("string-left-right/leftSeq(): only two input arguments were passed! Did you intend to use left() method instead?");let r;return re(n[0])?r=S(S({},z),n.shift()):r=z,$t("left",e,t,r,Array.from(n).reverse())}function he(e,t,...n){if(!(n!=null&&n.length))throw new Error("string-left-right/rightSeq(): only two input arguments were passed! Did you intend to use right() method instead?");let r;return re(n[0])?r=S(S({},z),n.shift()):r=z,$t("right",e,t,r,n)}var dt="3.0.8";function te(e){return typeof e=="string"}var ne={CONFIGHEAD:"GENERATE-ATOMIC-CSS-CONFIG-STARTS",CONFIGTAIL:"GENERATE-ATOMIC-CSS-CONFIG-ENDS",CONTENTHEAD:"GENERATE-ATOMIC-CSS-CONTENT-STARTS",CONTENTTAIL:"GENERATE-ATOMIC-CSS-CONTENT-ENDS"},ee=["px","em","%","rem","cm","mm","in","pt","pc","ex","ch","vw","vmin","vmax"],{CONFIGHEAD:x,CONFIGTAIL:R,CONTENTHEAD:E,CONTENTTAIL:A}=ne,ur=[":"];function bt(e){let t=e,n="",r="";if(e.includes(x)&&e.includes(R)){if(e.indexOf(R)!==-1&&e.indexOf(E)!==-1&&e.indexOf(R)>e.indexOf(E))throw new Error("generate-atomic-css: [THROW_ID_02] Config heads are after config tails!");let o=e.indexOf(x)+x.length,i=e.indexOf(R);if(e[f(e,o)]==="*"&&e[f(e,f(e,o))]==="/"&&(o=f(e,f(e,o))+1),e[y(e,i)]==="*"&&e[y(e,y(e,i))]==="/"&&(i=y(e,y(e,i))),t=e.slice(o,i).trim(),!te(t)||!t.trim().length)return[t,n,r]}else if(e.includes(x)&&!e.includes(R)&&e.includes(E)){if(e.indexOf(x)>e.indexOf(E))throw new Error("generate-atomic-css: [THROW_ID_03] Config heads are after content heads!");t=e.slice(e.indexOf(x)+x.length,e.indexOf(E))}else if(!e.includes(x)&&!e.includes(R)&&(e.includes(E)||e.includes(A))){if(t=e,t.includes(E)){if(y(e,t.indexOf(E))){let l=t.indexOf(E);H(e,l,"/","*")&&(l=H(e,l,"/","*").leftmostChar),n=l===0?"":e.slice(0,l)}let o=t.indexOf(E)+E.length;he(t,o-1,"*","/")&&(o=he(t,o-1,"*","/").rightmostChar+1);let i=null;if(e.includes(A)){i=e.indexOf(A),e[y(e,i)]==="*"&&e[y(e,y(e,i))]==="/"&&(i=y(e,y(e,i)));let l=e.indexOf(A)+A.length;e[f(e,l-1)]==="*"&&e[f(e,f(e,l-1))]==="/"&&(l=f(e,f(e,l-1))+1),f(e,l)&&(r=e.slice(l))}i?t=t.slice(o,i).trim():t=t.slice(o).trim()}else if(t.includes(A)){let o=[],i=!1;t=t.split(`
"use strict";var generateAtomicCss=(()=>{var Et=Object.create;var W=Object.defineProperty;var yt=Object.getOwnPropertyDescriptor;var At=Object.getOwnPropertyNames,we=Object.getOwnPropertySymbols,wt=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable;var De=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))Oe.call(t,n)&&De(e,n,t[n]);if(we)for(var n of we(t))Dt.call(t,n)&&De(e,n,t[n]);return e};var Ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ct=(e,t)=>{for(var n in t)W(e,n,{get:t[n],enumerable:!0})},Ce=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of At(t))!Oe.call(e,o)&&o!==n&&W(e,o,{get:()=>t[o],enumerable:!(r=yt(t,o))||r.enumerable});return e};var St=(e,t,n)=>(n=e!=null?Et(wt(e)):{},Ce(t||!e||!e.__esModule?W(n,"default",{value:e,enumerable:!0}):n,e)),Tt=e=>Ce(W({},"__esModule",{value:!0}),e);var mt=Ot((M,F)=>{var xt=200,Le="__lodash_hash_undefined__",Re=9007199254740991,fe="[object Arguments]",vt="[object Array]",Be="[object Boolean]",We="[object Date]",Vt="[object Error]",ge="[object Function]",Me="[object GeneratorFunction]",k="[object Map]",Je="[object Number]",me="[object Object]",Se="[object Promise]",He="[object RegExp]",q="[object Set]",Ge="[object String]",Ue="[object Symbol]",ie="[object WeakMap]",ke="[object ArrayBuffer]",K="[object DataView]",qe="[object Float32Array]",Ke="[object Float64Array]",Qe="[object Int8Array]",Ze="[object Int16Array]",Xe="[object Int32Array]",Ye="[object Uint8Array]",ze="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",Nt=/[\\^$.*+?()[\]{}|]/g,_t=/\w*$/,Pt=/^\[object .+?Constructor\]$/,Ft=/^(?:0|[1-9]\d*)$/,p={};p[fe]=p[vt]=p[ke]=p[K]=p[Be]=p[We]=p[qe]=p[Ke]=p[Qe]=p[Ze]=p[Xe]=p[k]=p[Je]=p[me]=p[He]=p[q]=p[Ge]=p[Ue]=p[Ye]=p[ze]=p[et]=p[tt]=!0;p[Vt]=p[ge]=p[ie]=!1;var It=typeof global=="object"&&global&&global.Object===Object&&global,jt=typeof self=="object"&&self&&self.Object===Object&&self,D=It||jt||Function("return this")(),nt=typeof M=="object"&&M&&!M.nodeType&&M,Te=nt&&typeof F=="object"&&F&&!F.nodeType&&F,Lt=Te&&Te.exports===nt;function Rt(e,t){return e.set(t[0],t[1]),e}function Bt(e,t){return e.add(t),e}function Wt(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function Mt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function rt(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ht(e,t){return e==null?void 0:e[t]}function ot(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function xe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function $e(e,t){return function(n){return e(t(n))}}function ve(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Gt=Array.prototype,Ut=Function.prototype,Q=Object.prototype,oe=D["__core-js_shared__"],Ve=function(){var e=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),it=Ut.toString,T=Q.hasOwnProperty,Z=Q.toString,kt=RegExp("^"+it.call(T).replace(Nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=Lt?D.Buffer:void 0,_e=D.Symbol,Pe=D.Uint8Array,qt=$e(Object.getPrototypeOf,Object),Kt=Object.create,Qt=Q.propertyIsEnumerable,Zt=Gt.splice,Fe=Object.getOwnPropertySymbols,Xt=Ne?Ne.isBuffer:void 0,Yt=$e(Object.keys,Object),le=L(D,"DataView"),J=L(D,"Map"),se=L(D,"Promise"),ue=L(D,"Set"),ae=L(D,"WeakMap"),H=L(Object,"create"),zt=P(le),en=P(J),tn=P(se),nn=P(ue),rn=P(ae),Ie=_e?_e.prototype:void 0,je=Ie?Ie.valueOf:void 0;function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function on(){this.__data__=H?H(null):{}}function ln(e){return this.has(e)&&delete this.__data__[e]}function sn(e){var t=this.__data__;if(H){var n=t[e];return n===Le?void 0:n}return T.call(t,e)?t[e]:void 0}function un(e){var t=this.__data__;return H?t[e]!==void 0:T.call(t,e)}function an(e,t){var n=this.__data__;return n[e]=H&&t===void 0?Le:t,this}_.prototype.clear=on;_.prototype.delete=ln;_.prototype.get=sn;_.prototype.has=un;_.prototype.set=an;function O(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function cn(){this.__data__=[]}function fn(e){var t=this.__data__,n=X(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Zt.call(t,n,1),!0}function gn(e){var t=this.__data__,n=X(t,e);return n<0?void 0:t[n][1]}function mn(e){return X(this.__data__,e)>-1}function $n(e,t){var n=this.__data__,r=X(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}O.prototype.clear=cn;O.prototype.delete=fn;O.prototype.get=gn;O.prototype.has=mn;O.prototype.set=$n;function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function dn(){this.__data__={hash:new _,map:new(J||O),string:new _}}function bn(e){return Y(this,e).delete(e)}function pn(e){return Y(this,e).get(e)}function hn(e){return Y(this,e).has(e)}function En(e,t){return Y(this,e).set(e,t),this}I.prototype.clear=dn;I.prototype.delete=bn;I.prototype.get=pn;I.prototype.has=hn;I.prototype.set=En;function j(e){this.__data__=new O(e)}function yn(){this.__data__=new O}function An(e){return this.__data__.delete(e)}function wn(e){return this.__data__.get(e)}function Dn(e){return this.__data__.has(e)}function On(e,t){var n=this.__data__;if(n instanceof O){var r=n.__data__;if(!J||r.length<xt-1)return r.push([e,t]),this;n=this.__data__=new I(r)}return n.set(e,t),this}j.prototype.clear=yn;j.prototype.delete=An;j.prototype.get=wn;j.prototype.has=Dn;j.prototype.set=On;function Cn(e,t){var n=be(e)||Qn(e)?Jt(e.length,String):[],r=n.length,o=!!r;for(var i in e)(t||T.call(e,i))&&!(o&&(i=="length"||Un(i,r)))&&n.push(i);return n}function lt(e,t,n){var r=e[t];(!(T.call(e,t)&&ct(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function X(e,t){for(var n=e.length;n--;)if(ct(e[n][0],t))return n;return-1}function Sn(e,t){return e&&st(t,pe(t),e)}function ce(e,t,n,r,o,i,l){var s;if(r&&(s=i?r(e,o,i,l):r(e)),s!==void 0)return s;if(!z(e))return e;var a=be(e);if(a){if(s=Jn(e),!t)return Bn(e,s)}else{var g=N(e),u=g==ge||g==Me;if(Xn(e))return _n(e,t);if(g==me||g==fe||u&&!i){if(ot(e))return i?e:{};if(s=Hn(u?{}:e),!t)return Wn(e,Sn(s,e))}else{if(!p[g])return i?e:{};s=Gn(e,g,ce,t)}}l||(l=new j);var h=l.get(e);if(h)return h;if(l.set(e,s),!a)var d=n?Mn(e):pe(e);return Wt(d||e,function(m,b){d&&(b=m,m=e[b]),lt(s,b,ce(m,t,n,r,b,e,l))}),s}function Tn(e){return z(e)?Kt(e):{}}function xn(e,t,n){var r=t(e);return be(e)?r:Mt(r,n(e))}function vn(e){return Z.call(e)}function Vn(e){if(!z(e)||qn(e))return!1;var t=gt(e)||ot(e)?kt:Pt;return t.test(P(e))}function Nn(e){if(!at(e))return Yt(e);var t=[];for(var n in Object(e))T.call(e,n)&&n!="constructor"&&t.push(n);return t}function _n(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function de(e){var t=new e.constructor(e.byteLength);return new Pe(t).set(new Pe(e)),t}function Pn(e,t){var n=t?de(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Fn(e,t,n){var r=t?n(xe(e),!0):xe(e);return rt(r,Rt,new e.constructor)}function In(e){var t=new e.constructor(e.source,_t.exec(e));return t.lastIndex=e.lastIndex,t}function jn(e,t,n){var r=t?n(ve(e),!0):ve(e);return rt(r,Bt,new e.constructor)}function Ln(e){return je?Object(je.call(e)):{}}function Rn(e,t){var n=t?de(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Bn(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function st(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var l=t[o],s=r?r(n[l],e[l],l,n,e):void 0;lt(n,l,s===void 0?e[l]:s)}return n}function Wn(e,t){return st(e,ut(e),t)}function Mn(e){return xn(e,pe,ut)}function Y(e,t){var n=e.__data__;return kn(t)?n[typeof t=="string"?"string":"hash"]:n.map}function L(e,t){var n=Ht(e,t);return Vn(n)?n:void 0}var ut=Fe?$e(Fe,Object):er,N=vn;(le&&N(new le(new ArrayBuffer(1)))!=K||J&&N(new J)!=k||se&&N(se.resolve())!=Se||ue&&N(new ue)!=q||ae&&N(new ae)!=ie)&&(N=function(e){var t=Z.call(e),n=t==me?e.constructor:void 0,r=n?P(n):void 0;if(r)switch(r){case zt:return K;case en:return k;case tn:return Se;case nn:return q;case rn:return ie}return t});function Jn(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&T.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Hn(e){return typeof e.constructor=="function"&&!at(e)?Tn(qt(e)):{}}function Gn(e,t,n,r){var o=e.constructor;switch(t){case ke:return de(e);case Be:case We:return new o(+e);case K:return Pn(e,r);case qe:case Ke:case Qe:case Ze:case Xe:case Ye:case ze:case et:case tt:return Rn(e,r);case k:return Fn(e,r,n);case Je:case Ge:return new o(e);case He:return In(e);case q:return jn(e,r,n);case Ue:return Ln(e)}}function Un(e,t){return t=t==null?Re:t,!!t&&(typeof e=="number"||Ft.test(e))&&e>-1&&e%1==0&&e<t}function kn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qn(e){return!!Ve&&Ve in e}function at(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Q;return e===n}function P(e){if(e!=null){try{return it.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Kn(e){return ce(e,!0,!0)}function ct(e,t){return e===t||e!==e&&t!==t}function Qn(e){return Zn(e)&&T.call(e,"callee")&&(!Qt.call(e,"callee")||Z.call(e)==fe)}var be=Array.isArray;function ft(e){return e!=null&&Yn(e.length)&&!gt(e)}function Zn(e){return zn(e)&&ft(e)}var Xn=Xt||tr;function gt(e){var t=z(e)?Z.call(e):"";return t==ge||t==Me}function Yn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Re}function z(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function zn(e){return!!e&&typeof e=="object"}function pe(e){return ft(e)?Cn(e):Nn(e)}function er(){return[]}function tr(){return!1}F.exports=Kn});var mr={};Ct(mr,{defaults:()=>ht,extractFromToSource:()=>Ee,genAtomic:()=>gr,headsAndTails:()=>ne,version:()=>fr});function re(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function V(e){return typeof e=="string"}var nr=St(mt(),1);var R="\xA0";function rr(e){let t={value:e,hungry:!1,optional:!1};return(t.value.endsWith("?*")||t.value.endsWith("*?"))&&t.value.length>2?(t.value=t.value.slice(0,t.value.length-2),t.optional=!0,t.hungry=!0):t.value.endsWith("?")&&t.value.length>1?(t.value=t.value.slice(0,~-t.value.length),t.optional=!0):t.value.endsWith("*")&&t.value.length>1&&(t.value=t.value.slice(0,~-t.value.length),t.hungry=!0),t}function or({str:e,idx:t=0,stopAtNewlines:n=!1,stopAtRawNbsp:r=!1}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),!e[t+1]))return null;if(e[t+1]&&(e[t+1].trim()||n&&`
\r`.includes(e[t+1])||r&&e[t+1]===R))return t+1;if(e[t+2]&&(e[t+2].trim()||n&&`
\r`.includes(e[t+2])||r&&e[t+2]===R))return t+2;for(let o=t+1,i=e.length;o<i;o++)if(e[o].trim()||n&&`
\r`.includes(e[o])||r&&e[o]===R)return o;return null}function f(e,t=0){return or({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}function ir({str:e,idx:t,stopAtNewlines:n,stopAtRawNbsp:r}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),t<1))return null;if(e[~-t]&&(e[~-t].trim()||n&&`
\r`.includes(e[~-t])||r&&e[~-t]===R))return~-t;if(e[t-2]&&(e[t-2].trim()||n&&`
\r`.includes(e[t-2])||r&&e[t-2]===R))return t-2;for(let o=t;o--;)if(e[o]&&(e[o].trim()||n&&`
\r`.includes(e[o])||r&&e[o]===R))return o;return null}function E(e,t=0){return ir({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}function $t(e,t,n,r,o){if(typeof t!="string"||!t.length||(typeof n!="number"&&(n=0),e==="right"&&!t[n+1]||e==="left"&&!t[~-n]))return null;let i=n,l=[],s,a,g,u=0;for(;u<o.length;){if(!V(o[u])||!o[u].length){u+=1;continue}let{value:h,optional:d,hungry:m}=rr(o[u]),b=e==="right"?f(t,i):E(t,i);if(r.i&&t[b].toLowerCase()===h.toLowerCase()||!r.i&&t[b]===h){let c=e==="right"?f(t,b):E(t,b);m&&(r.i&&t[c].toLowerCase()===h.toLowerCase()||!r.i&&t[c]===h)?g=!0:u+=1,typeof b=="number"&&e==="right"&&b>i+1?l.push([i+1,b]):e==="left"&&typeof b=="number"&&b<~-i&&l.unshift([b+1,i]),i=b,e==="right"?(s===void 0&&(s=b),a=b):(a===void 0&&(a=b),s=b)}else if(d){u+=1;continue}else if(g){u+=1,g=void 0;continue}else return null}return s===void 0||a===void 0?null:{gaps:l,leftmostChar:s,rightmostChar:a}}var ee={i:!1};function G(e,t,...n){if(!(n!=null&&n.length))throw new Error("string-left-right/leftSeq(): only two input arguments were passed! Did you intend to use left() method instead?");let r;return re(n[0])?r=S(S({},ee),n.shift()):r=ee,$t("left",e,t,r,Array.from(n).reverse())}function he(e,t,...n){if(!(n!=null&&n.length))throw new Error("string-left-right/rightSeq(): only two input arguments were passed! Did you intend to use right() method instead?");let r;return re(n[0])?r=S(S({},ee),n.shift()):r=ee,$t("right",e,t,r,n)}var dt="3.0.9";var ne={CONFIGHEAD:"GENERATE-ATOMIC-CSS-CONFIG-STARTS",CONFIGTAIL:"GENERATE-ATOMIC-CSS-CONFIG-ENDS",CONTENTHEAD:"GENERATE-ATOMIC-CSS-CONTENT-STARTS",CONTENTTAIL:"GENERATE-ATOMIC-CSS-CONTENT-ENDS"},te=["px","em","%","rem","cm","mm","in","pt","pc","ex","ch","vw","vmin","vmax"],{CONFIGHEAD:x,CONFIGTAIL:B,CONTENTHEAD:y,CONTENTTAIL:A}=ne,sr=[":"];function bt(e){let t=e,n="",r="";if(e.includes(x)&&e.includes(B)){if(e.indexOf(B)!==-1&&e.indexOf(y)!==-1&&e.indexOf(B)>e.indexOf(y))throw new Error("generate-atomic-css: [THROW_ID_02] Config heads are after config tails!");let o=e.indexOf(x)+x.length,i=e.indexOf(B);if(e[f(e,o)]==="*"&&e[f(e,f(e,o))]==="/"&&(o=f(e,f(e,o))+1),e[E(e,i)]==="*"&&e[E(e,E(e,i))]==="/"&&(i=E(e,E(e,i))),t=e.slice(o,i).trim(),!V(t)||!t.trim().length)return[t,n,r]}else if(e.includes(x)&&!e.includes(B)&&e.includes(y)){if(e.indexOf(x)>e.indexOf(y))throw new Error("generate-atomic-css: [THROW_ID_03] Config heads are after content heads!");t=e.slice(e.indexOf(x)+x.length,e.indexOf(y))}else if(!e.includes(x)&&!e.includes(B)&&(e.includes(y)||e.includes(A))){if(t=e,t.includes(y)){if(E(e,t.indexOf(y))){let l=t.indexOf(y);G(e,l,"/","*")&&(l=G(e,l,"/","*").leftmostChar),n=l===0?"":e.slice(0,l)}let o=t.indexOf(y)+y.length;he(t,o-1,"*","/")&&(o=he(t,o-1,"*","/").rightmostChar+1);let i=null;if(e.includes(A)){i=e.indexOf(A),e[E(e,i)]==="*"&&e[E(e,E(e,i))]==="/"&&(i=E(e,E(e,i)));let l=e.indexOf(A)+A.length;e[f(e,l-1)]==="*"&&e[f(e,f(e,l-1))]==="/"&&(l=f(e,f(e,l-1))+1),f(e,l)&&(r=e.slice(l))}i?t=t.slice(o,i).trim():t=t.slice(o).trim()}else if(t.includes(A)){let o=[],i=!1;t=t.split(`
`).filter(a=>!a.includes("$$$")&&!i?(i||o.push(a),!1):(i||(i=!0),!0)).join(`
`);let l=t.indexOf(A);H(t,l,"/","*")&&(l=H(t,l,"/","*").leftmostChar),t=t.slice(0,l).trim(),o.length&&(n=`${o.join(`
`);let l=t.indexOf(A);G(t,l,"/","*")&&(l=G(t,l,"/","*").leftmostChar),t=t.slice(0,l).trim(),o.length&&(n=`${o.join(`
`)}
`);let s;f(e,e.indexOf(A)+A.length)&&(s=e.indexOf(A)+A.length,e[f(e,s)]==="*"&&e[f(e,f(e,s))]==="/"&&(s=f(e,f(e,s))+1,f(e,s)&&(r=e.slice(s))))}}else{let o=new RegExp(`(\\/\\s*\\*\\s*)*${E}(\\s*\\*\\s*\\/)*`),i=new RegExp(`(\\/\\s*\\*\\s*)*${A}(\\s*\\*\\s*\\/)*`),l=!1,s=[],a=[],g=e.split(`
`);let s;f(e,e.indexOf(A)+A.length)&&(s=e.indexOf(A)+A.length,e[f(e,s)]==="*"&&e[f(e,f(e,s))]==="/"&&(s=f(e,f(e,s))+1,f(e,s)&&(r=e.slice(s))))}}else{let o=new RegExp(`(\\/\\s*\\*\\s*)*${y}(\\s*\\*\\s*\\/)*`),i=new RegExp(`(\\/\\s*\\*\\s*)*${A}(\\s*\\*\\s*\\/)*`),l=!1,s=[],a=[],g=e.split(`
`).filter(u=>l?!0:!u.includes("$$$")&&!u.includes("{")&&!u.includes(":")?(s.push(u),!1):(l=!0,!0));for(let u=g.length;u--&&(!g[u].includes("$$$")&&!g[u].includes("}")&&!g[u].includes(":"));)a.unshift(g.pop());t=g.join(`

@@ -27,5 +27,5 @@ `).replace(o,"").replace(i,""),s.length&&(n=`${s.join(`

${a.join(`
`)}`)}return[t,n,r]}function ar(e,t=!0){if(!t)return e;let n=Array.from(e);if(n.length&&te(n[0])&&!n[0].trim().length)do n.shift();while(te(n[0])&&!n[0].trim().length);if(n.length&&te(n[n.length-1])&&!n[n.length-1].trim().length)do n.pop();while(n[n.length-1]&&!n[n.length-1].trim().length);return n}function ye(e,t=0,n=500){let r=t,o=n,i=e,l;if(e.lastIndexOf("}")>0&&e.slice(e.lastIndexOf("}")+1).includes("|")?l=e.slice(e.lastIndexOf("}")+1).split("|").filter(s=>s.trim().length).map(s=>s.trim()).filter(s=>String(s).split("").every(a=>/\d/g.test(a))):e.includes("|")&&(l=e.split("|").filter(s=>s.trim().length).map(s=>s.trim()).filter(s=>String(s).split("").every(a=>/\d/g.test(a)))),Array.isArray(l)&&(l.length===1?o=Number.parseInt(l[0],10):l.length>1&&(r=Number.parseInt(l[0],10),o=Number.parseInt(l[1],10))),e.lastIndexOf("}")>0&&e.slice(e.lastIndexOf("}")+1).includes("|")){if(i=e.slice(0,e.indexOf("|",e.lastIndexOf("}")+1)).trimEnd(),i.trim().startsWith("|"))for(;i.trim().startsWith("|");)i=i.trim().slice(1)}else{let s=null,a=!1,g=0,u=e.length,h=null;for(let d=0,m=e.length;d<m;d++)if("0123456789".includes(e[d])?h===null&&e[d].trim().length&&(h=!0):e[d]!=="|"&&e[d].trim().length&&(h=!1),!e[d+1]&&h&&s&&(u=s),e[d]==="|"){if(h&&s){u=s;break}s=d,h=null}else!a&&e[d].trim().length&&(a=!0,s!==null&&(g=s+1));i=e.slice(g,u).trimEnd()}return[r,o,i]}function cr(e,t,n,r,o,i){let l,s=0,[a,g,u]=ye(e,0,500),h=r-n,d="";for(let m=a;m<=g;m++){let b=0,c=0;for(let $=0,Ee=u.length;$<Ee;$++){let dr=u[$].charCodeAt(0);if(u[$]==="$"&&u[$-1]==="$"&&u[$-2]==="$"){let G=u.slice($+1),C="";if(m===0&&ee.some(D=>{if(G.startsWith(D))return C=D,!0})&&(u[f(u,$+C.length)]==="{"||!u[$+C.length+1].trim().length))d+=`${u.slice(c,$-2)}${i?String(m).padStart(String(g).length-String(m).length+C.length+1):m}`,c=$+1+(C?C.length:0);else{let D="";if(ee.some(v=>{if(u.startsWith(v,$+1))return D=v,!0}),!u[$-3].trim().length||ur.some(v=>u.slice(c,$-2).trim().endsWith(v))){let v=0;m===0&&ee.some(Ae=>(`${u.slice(c,$-2)}`.startsWith(Ae)&&(v=Ae.length),!0)),d+=`${u.slice(c+v,$-2)}${i?String(m).padStart(String(g).length+(m===0&&D?D.length:0)):m}`}else!u[$+1].trim().length||u[f(u,$)]==="{"?d+=`${u.slice(c,$-2)}${i?String(m).padEnd(String(g).length+(m===0&&D?+D.length:0)):m}`:(d+=`${u.slice(c,$-2)}${m}`,i&&(b=String(g).length-String(m).length));c=$+1}}if(u[$]==="{"&&i&&b&&(d+=`${u.slice(c,$)}${" ".repeat(b)}`,c=$,b=0),!u[$+1]){let G="",C=u.slice(c);m===0&&ee.some(D=>{if(C.startsWith(D))return G=D,!0})?d+=`${u.slice(c+G.length)}`:d+=`${u.slice(c)}`,d+=`${m!==g?`
`:""}`}}o.count+=1,typeof t=="function"&&(l=Math.floor(n+m/(g-a)*h),l!==s&&(s=l,t(l)))}return d}function fr(e,t){return/\.\w/g.test(e)&&(t.count+=1),e}function pt(e,t,n,r,o=!0,i,l){return ar(e.split(/\r?\n/).map((s,a,g)=>s.includes("$$$")?cr(s,t,n+(r-n)/g.length*a,n+(r-n)/g.length*(a+1),i,l):fr(s,i)),o).join(`
`)}var gr=dt,ht={includeConfig:!0,includeHeadsAndTails:!0,pad:!0,configOverride:null,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100};function mr(e,t){function n(c,$={}){return!$.includeConfig&&!$.includeHeadsAndTails?c:c.trim()}if(typeof e!="string")throw new Error(`generate-atomic-css: [THROW_ID_01] First input argument must be a string! It was given as "${JSON.stringify(e,null,4)}" (type ${typeof e})`);let{CONFIGHEAD:r,CONFIGTAIL:o,CONTENTHEAD:i,CONTENTTAIL:l}=ne,s={count:0},a=S(S({},ht),t);if(a.includeConfig&&!a.includeHeadsAndTails&&(a.includeHeadsAndTails=!0),!a.configOverride&&!e.includes("$$$")&&!e.includes(r)&&!e.includes(o)&&!e.includes(i)&&!e.includes(l)||a!=null&&a.configOverride&&typeof a.configOverride=="string"&&!a.configOverride.includes("$$$")&&!a.configOverride.includes(r)&&!a.configOverride.includes(o)&&!a.configOverride.includes(i)&&!a.configOverride.includes(l))return{log:{count:0},result:e};let g="",u="",[h,d,m]=bt(a.configOverride?a.configOverride:e);if(typeof h!="string"||!h.trim())return{log:{count:0},result:""};if((a.includeConfig||a.includeHeadsAndTails)&&(g=`${i} */
`)}`)}return[t,n,r]}function ur(e,t=!0){if(!t)return e;let n=Array.from(e);if(n.length&&V(n[0])&&!n[0].trim().length)do n.shift();while(V(n[0])&&!n[0].trim().length);if(n.length&&V(n[n.length-1])&&!n[n.length-1].trim().length)do n.pop();while(n[n.length-1]&&!n[n.length-1].trim().length);return n}function Ee(e,t=0,n=500){let r=t,o=n,i=e,l;if(e.lastIndexOf("}")>0&&e.slice(e.lastIndexOf("}")+1).includes("|")?l=e.slice(e.lastIndexOf("}")+1).split("|").filter(s=>s.trim().length).map(s=>s.trim()).filter(s=>String(s).split("").every(a=>/\d/g.test(a))):e.includes("|")&&(l=e.split("|").filter(s=>s.trim().length).map(s=>s.trim()).filter(s=>String(s).split("").every(a=>/\d/g.test(a)))),Array.isArray(l)&&(l.length===1?o=Number.parseInt(l[0],10):l.length>1&&(r=Number.parseInt(l[0],10),o=Number.parseInt(l[1],10))),e.lastIndexOf("}")>0&&e.slice(e.lastIndexOf("}")+1).includes("|")){if(i=e.slice(0,e.indexOf("|",e.lastIndexOf("}")+1)).trimEnd(),i.trim().startsWith("|"))for(;i.trim().startsWith("|");)i=i.trim().slice(1)}else{let s=null,a=!1,g=0,u=e.length,h=null;for(let d=0,m=e.length;d<m;d++)if("0123456789".includes(e[d])?h===null&&e[d].trim().length&&(h=!0):e[d]!=="|"&&e[d].trim().length&&(h=!1),!e[d+1]&&h&&s&&(u=s),e[d]==="|"){if(h&&s){u=s;break}s=d,h=null}else!a&&e[d].trim().length&&(a=!0,s!==null&&(g=s+1));i=e.slice(g,u).trimEnd()}return[r,o,i]}function ar(e,t,n,r,o,i){let l,s=0,[a,g,u]=Ee(e,0,500),h=r-n,d="";for(let m=a;m<=g;m++){let b=0,c=0;for(let $=0,ye=u.length;$<ye;$++){let $r=u[$].charCodeAt(0);if(u[$]==="$"&&u[$-1]==="$"&&u[$-2]==="$"){let U=u.slice($+1),C="";if(m===0&&te.some(w=>{if(U.startsWith(w))return C=w,!0})&&(u[f(u,$+C.length)]==="{"||!u[$+C.length+1].trim().length))d+=`${u.slice(c,$-2)}${i?String(m).padStart(String(g).length-String(m).length+C.length+1):m}`,c=$+1+(C?C.length:0);else{let w="";if(te.some(v=>{if(u.startsWith(v,$+1))return w=v,!0}),!u[$-3].trim().length||sr.some(v=>u.slice(c,$-2).trim().endsWith(v))){let v=0;m===0&&te.some(Ae=>(`${u.slice(c,$-2)}`.startsWith(Ae)&&(v=Ae.length),!0)),d+=`${u.slice(c+v,$-2)}${i?String(m).padStart(String(g).length+(m===0&&w?w.length:0)):m}`}else!u[$+1].trim().length||u[f(u,$)]==="{"?d+=`${u.slice(c,$-2)}${i?String(m).padEnd(String(g).length+(m===0&&w?+w.length:0)):m}`:(d+=`${u.slice(c,$-2)}${m}`,i&&(b=String(g).length-String(m).length));c=$+1}}if(u[$]==="{"&&i&&b&&(d+=`${u.slice(c,$)}${" ".repeat(b)}`,c=$,b=0),!u[$+1]){let U="",C=u.slice(c);m===0&&te.some(w=>{if(C.startsWith(w))return U=w,!0})?d+=`${u.slice(c+U.length)}`:d+=`${u.slice(c)}`,d+=`${m!==g?`
`:""}`}}o.count+=1,typeof t=="function"&&(l=Math.floor(n+m/(g-a)*h),l!==s&&(s=l,t(l)))}return d}function cr(e,t){return/\.\w/g.test(e)&&(t.count+=1),e}function pt(e,t,n,r,o=!0,i,l){return ur(e.split(/\r?\n/).map((s,a,g)=>s.includes("$$$")?ar(s,t,n+(r-n)/g.length*a,n+(r-n)/g.length*(a+1),i,l):cr(s,i)),o).join(`
`)}var fr=dt,ht={includeConfig:!0,includeHeadsAndTails:!0,pad:!0,configOverride:null,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100};function gr(e,t){function n(c,$={}){return!$.includeConfig&&!$.includeHeadsAndTails?c:c.trim()}if(typeof e!="string")throw new Error(`generate-atomic-css: [THROW_ID_01] First input argument must be a string! It was given as "${JSON.stringify(e,null,4)}" (type ${typeof e})`);let{CONFIGHEAD:r,CONFIGTAIL:o,CONTENTHEAD:i,CONTENTTAIL:l}=ne,s={count:0},a=S(S({},ht),t);if(a.includeConfig&&!a.includeHeadsAndTails&&(a.includeHeadsAndTails=!0),!a.configOverride&&!e.includes("$$$")&&!e.includes(r)&&!e.includes(o)&&!e.includes(i)&&!e.includes(l)||a!=null&&a.configOverride&&typeof a.configOverride=="string"&&!a.configOverride.includes("$$$")&&!a.configOverride.includes(r)&&!a.configOverride.includes(o)&&!a.configOverride.includes(i)&&!a.configOverride.includes(l))return{log:{count:0},result:e};let g="",u="",[h,d,m]=bt(a.configOverride?a.configOverride:e);if(typeof h!="string"||!h.trim())return{log:{count:0},result:""};if((a.includeConfig||a.includeHeadsAndTails)&&(g=`${i} */
`,a.includeConfig||(g=`/* ${g}`),u=`

@@ -35,8 +35,8 @@ /* ${l} */`),a.includeConfig&&(g=`/* ${r}

${o}
${g}`),e.includes(r)&&y(e,e.indexOf(r))!=null){let c=e.indexOf(r);e[y(e,c)]==="*"&&e[y(e,y(e,c))]==="/"&&(c=y(e,y(e,c)));let $="/* ";(e[f(e,c-1)]==="/"&&e[f(e,f(e,c-1))]==="*"||g.trim().startsWith("/*"))&&($=""),g=`${e.slice(0,c)}${$}${g}`}if(e.includes(o)&&f(e,e.indexOf(o)+o.length)){let c=e.indexOf(o)+o.length;e[f(e,e.indexOf(o)+o.length)]==="*"&&e[f(e,f(e,e.indexOf(o)+o.length))]==="/"&&(c=f(e,f(e,e.indexOf(o)+o.length))+1),e.slice(f(e,c-1)).startsWith(i)&&(c=f(e,c)||0+i.length,e[f(e,c-1)]==="*"&&e[f(e,f(e,c-1))]==="/"&&(c=f(e,f(e,c-1))+1),e.includes(l)&&(c=e.indexOf(l)+l.length,e[f(e,c)]==="*"&&e[f(e,f(e,c))]==="/"&&(c=f(e,f(e,c))+1)));let $=e.slice(c);$.length&&$.includes(l)&&(c=e.indexOf(l)+l.length,e[f(e,c)]==="*"&&e[f(e,f(e,c))]==="/"&&(c=f(e,f(e,c))+1)),u=`${u}${e[c]&&f(e,c-1)?e.slice(c):""}`}if(typeof d=="string"&&(g=`${d}${g}`),typeof m=="string"){if(m.trim().endsWith("/*")&&!m.trim().startsWith("*/")){let c="";typeof m=="string"&&m[0]&&!m[0].trim()&&(c=m.slice(0,f(m,0)||0)),m=`${c}/* ${m.trim()}`}u=`${u}${m}`}let b=`${n(`${g}${pt(h,a.reportProgressFunc,a.reportProgressFuncFrom,a.reportProgressFuncTo,!0,s,a.pad)}${u}`,a)}
`;return{log:{count:s.count},result:b}}return Tt($r);})();
${g}`),e.includes(r)&&E(e,e.indexOf(r))!=null){let c=e.indexOf(r);e[E(e,c)]==="*"&&e[E(e,E(e,c))]==="/"&&(c=E(e,E(e,c)));let $="/* ";(e[f(e,c-1)]==="/"&&e[f(e,f(e,c-1))]==="*"||g.trim().startsWith("/*"))&&($=""),g=`${e.slice(0,c)}${$}${g}`}if(e.includes(o)&&f(e,e.indexOf(o)+o.length)){let c=e.indexOf(o)+o.length;e[f(e,e.indexOf(o)+o.length)]==="*"&&e[f(e,f(e,e.indexOf(o)+o.length))]==="/"&&(c=f(e,f(e,e.indexOf(o)+o.length))+1),e.slice(f(e,c-1)).startsWith(i)&&(c=f(e,c)||0+i.length,e[f(e,c-1)]==="*"&&e[f(e,f(e,c-1))]==="/"&&(c=f(e,f(e,c-1))+1),e.includes(l)&&(c=e.indexOf(l)+l.length,e[f(e,c)]==="*"&&e[f(e,f(e,c))]==="/"&&(c=f(e,f(e,c))+1)));let $=e.slice(c);$.length&&$.includes(l)&&(c=e.indexOf(l)+l.length,e[f(e,c)]==="*"&&e[f(e,f(e,c))]==="/"&&(c=f(e,f(e,c))+1)),u=`${u}${e[c]&&f(e,c-1)?e.slice(c):""}`}if(typeof d=="string"&&(g=`${d}${g}`),typeof m=="string"){if(m.trim().endsWith("/*")&&!m.trim().startsWith("*/")){let c="";typeof m=="string"&&m[0]&&!m[0].trim()&&(c=m.slice(0,f(m,0)||0)),m=`${c}/* ${m.trim()}`}u=`${u}${m}`}let b=`${n(`${g}${pt(h,a.reportProgressFunc,a.reportProgressFuncFrom,a.reportProgressFuncTo,!0,s,a.pad)}${u}`,a)}
`;return{log:{count:s.count},result:b}}return Tt(mr);})();
/**
* @name codsen-utils
* @fileoverview Various utility functions
* @version 1.2.0
* @version 1.3.0
* @author Roy Revelt, Codsen Ltd

@@ -49,3 +49,3 @@ * @license MIT

* @fileoverview Looks up the first non-whitespace character to the left/right of a given index
* @version 6.0.8
* @version 6.0.9
* @author Roy Revelt, Codsen Ltd

@@ -52,0 +52,0 @@ * @license MIT

{
"name": "generate-atomic-css",
"version": "3.0.8",
"version": "3.0.9",
"description": "Generate Atomic CSS",

@@ -73,4 +73,5 @@ "keywords": [

"dependencies": {
"string-left-right": "^6.0.8"
"codsen-utils": "^1.3.0",
"string-left-right": "^6.0.9"
}
}

@@ -97,4 +97,4 @@ <h1 align="center">generate-atomic-css</h1>

Copyright © 2010-2022 Roy Revelt and other contributors.
Copyright © 2010-2023 Roy Revelt and other contributors.
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc